
:root{
  --forest:#394921;
  --olive:#748E49;
  --gold:#DCAA52;
  --cream:#FBF8F1;
  --white:#FFFFFF;
  --ink:#292D29;
  --muted:#70756B;
  --line:#E7E1D6;
  --soft:#F1F1E7;
  --danger:#A54B42;
  --shadow:0 16px 50px rgba(57,73,33,.09);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;background:var(--cream);color:var(--ink);
  font-family:"Be Vietnam Pro",Arial,sans-serif;line-height:1.55;
}
body.no-scroll{overflow:hidden}
img{max-width:100%;display:block}
button,input,textarea,select{font:inherit}
a{text-decoration:none;color:inherit}
h1,h2,h3,h4,.display{
  font-family:"Lora","Times New Roman",serif;color:var(--forest);margin:0;letter-spacing:0;
}
.container{width:min(1180px,calc(100% - 40px));margin:auto}
.hidden{display:none!important}
.muted{color:var(--muted)}
.eyebrow{font-size:12px;letter-spacing:.28em;text-transform:uppercase;color:var(--olive);font-weight:700;margin-bottom:14px}
.topbar{background:var(--forest);color:var(--cream);font-size:12px}
.topbar .container{height:34px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.site-header{position:sticky;top:0;z-index:50;background:rgba(251,248,241,.96);backdrop-filter:blur(10px);border-bottom:1px solid rgba(57,73,33,.08)}
.nav{min-height:82px;display:flex;align-items:center;justify-content:space-between;gap:30px}
.brand-logo{width:285px;max-width:33vw}
.nav-links{display:flex;gap:25px;align-items:center;font-size:14px;color:#394132}
.nav-links a{padding:11px 0;border-bottom:1px solid transparent}
.nav-links a.active,.nav-links a:hover{border-color:var(--gold)}
.nav-actions{display:flex;align-items:center;gap:9px}
.circle-btn{width:42px;height:42px;border:1px solid #D9D4CA;background:white;border-radius:50%;display:grid;place-items:center;cursor:pointer;position:relative}
.cart-count{position:absolute;right:-2px;top:-4px;background:var(--gold);color:white;width:18px;height:18px;border-radius:50%;font-size:10px;display:grid;place-items:center;font-weight:700}
.mobile-menu-btn{display:none}
.btn{border:0;display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:46px;padding:0 22px;border-radius:999px;cursor:pointer;font-weight:700}
.btn.primary{background:var(--forest);color:white}
.btn.secondary{background:white;border:1px solid rgba(57,73,33,.28);color:var(--forest)}
.btn.gold{background:var(--gold);color:white}
.btn.danger{background:#F9ECEA;color:var(--danger)}
.btn.small{min-height:38px;padding:0 16px;font-size:13px}
.hero{position:relative;min-height:590px;display:flex;align-items:center;overflow:hidden;background-position:center;background-size:cover}
.hero::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(251,248,241,.96) 0%,rgba(251,248,241,.76) 38%,rgba(251,248,241,.12) 73%,rgba(251,248,241,.06) 100%)}
.hero-content{position:relative;z-index:2;padding:82px 0;max-width:710px}
.hero h1{font-size:clamp(46px,5.3vw,72px);line-height:1.02}
.hero p{font-size:18px;color:#4E574A;max-width:610px;margin:23px 0 30px}
.trust-strip{background:white;border-bottom:1px solid var(--line)}
.trust-grid{display:grid;grid-template-columns:repeat(4,1fr)}
.trust-item{padding:25px 18px;display:flex;align-items:center;gap:13px;border-right:1px solid var(--line)}
.trust-item:last-child{border-right:0}
.icon-round{width:45px;height:45px;border-radius:50%;background:#EEF0E5;color:var(--forest);display:grid;place-items:center;flex:none;font-size:22px}
.trust-item strong{display:block;color:var(--forest);font-size:14px}
.trust-item small{color:var(--muted)}
.section{padding:78px 0}
.section.white{background:white}
.section-head{display:flex;align-items:end;justify-content:space-between;gap:35px;margin-bottom:32px}
.section-head h2{font-size:clamp(34px,4vw,49px);line-height:1.06}
.section-head p{max-width:520px;margin:0;color:var(--muted)}
.grid-products{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.product-card{background:white;border:1px solid var(--line);border-radius:18px;overflow:hidden;transition:.2s}
.product-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}
.product-image{aspect-ratio:1/1;background:#F2EFE6;position:relative;overflow:hidden}
.product-image img{width:100%;height:100%;object-fit:cover}
.product-placeholder{width:100%;height:100%;display:grid;place-items:center;text-align:center;color:#8A8E83;padding:24px}
.badge{position:absolute;left:12px;top:12px;background:var(--gold);color:white;border-radius:999px;padding:5px 10px;font-size:11px;font-weight:700}
.product-info{padding:16px}
.product-info h3{font-family:"Lora","Times New Roman",serif;font-size:19px;line-height:1.3;min-height:49px}
.product-info .price{color:#B65B23;font-weight:800;font-size:18px;margin-top:10px}
.product-card .actions{display:flex;gap:8px;margin-top:14px}
.story-wrap{display:grid;grid-template-columns:.92fr 1.08fr;background:white;border:1px solid var(--line);border-radius:28px;overflow:hidden}
.story-media{min-height:450px;background-position:center;background-size:cover}
.story-copy{padding:52px}
.story-copy h2{font-size:45px;line-height:1.08;margin-bottom:20px}
.story-copy p{color:#5F675B}
.quote{border-left:3px solid var(--gold);padding-left:18px;margin:24px 0;color:var(--forest);font-family:"Lora","Times New Roman",serif;font-size:20px}
.values{background:var(--forest);color:var(--cream)}
.values h2{color:var(--cream);text-align:center;font-size:42px;margin-bottom:36px}
.values-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.value-card{padding:25px;border:1px solid rgba(255,255,255,.15);border-radius:18px}
.value-card b{display:block;margin:10px 0 5px}
.value-card span{color:#E7E4D8;font-size:14px}
.bottom-banner{min-height:230px;border-radius:28px;overflow:hidden;background-position:center;background-size:cover;position:relative;display:flex;align-items:center}
.bottom-banner::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(251,248,241,.90),rgba(251,248,241,.18))}
.bottom-content{position:relative;z-index:2;padding:35px 48px;max-width:650px}
.bottom-content h2{font-size:38px;line-height:1.08;margin-bottom:18px}
.site-footer{background:#26331D;color:#E7E4D8;padding:50px 0 28px}
.site-footer>.container{width:min(1380px,calc(100% - 64px));}
.footer-grid{display:grid;grid-template-columns:1.3fr repeat(3,1fr);gap:34px}
.footer-logo{width:270px;filter:brightness(1.05);margin-bottom:12px}
.site-footer h4{color:white;margin:0 0 13px}
.site-footer p,.site-footer a{font-size:14px;color:#D0D0C5;margin:7px 0}
.social-row{display:flex;gap:10px;margin-top:14px;flex-wrap:wrap}
.social-link{border:1px solid rgba(255,255,255,.16);padding:8px 11px;border-radius:999px;font-size:12px}
.copyright{border-top:1px solid rgba(255,255,255,.12);padding-top:20px;margin-top:34px;font-size:12px;color:#AFAFA6}
.page-hero{padding:62px 0 44px;background:linear-gradient(135deg,#FBF8F1,#EEF0E5)}
.page-hero h1{font-size:48px}
.breadcrumb{font-size:12px;color:var(--olive);margin-bottom:10px}
.filters{display:flex;gap:10px;align-items:center;justify-content:space-between;margin-bottom:26px;flex-wrap:wrap}
.search-input,.field{width:100%;border:1px solid #DDD8CE;border-radius:12px;background:white;min-height:45px;padding:10px 13px;outline:none}
.search-box{max-width:360px;width:100%}
.product-detail{display:grid;grid-template-columns:1fr 1fr;gap:52px}
.gallery-main{background:white;border:1px solid var(--line);border-radius:22px;overflow:hidden;aspect-ratio:1/1}
.gallery-main img{width:100%;height:100%;object-fit:cover}
.detail-title{font-size:42px;line-height:1.1}
.detail-price{font-size:29px;color:#B65B23;font-weight:800;margin:18px 0}
.stock-ok{color:#55713E;font-size:14px}
.qty{display:inline-flex;border:1px solid var(--line);background:white;border-radius:999px;overflow:hidden;margin:18px 0}
.qty button,.qty span{width:42px;height:42px;border:0;background:white;display:grid;place-items:center}
.tabs{margin-top:55px;border-top:1px solid var(--line);padding-top:30px}
.cart-layout{display:grid;grid-template-columns:1.3fr .7fr;gap:28px;align-items:start}
.cart-list,.summary-card,.checkout-card{background:white;border:1px solid var(--line);border-radius:20px;padding:22px}
.cart-item{display:grid;grid-template-columns:90px 1fr auto;gap:16px;padding:14px 0;border-bottom:1px solid var(--line);align-items:center}
.cart-thumb{width:90px;height:90px;background:#F2EFE6;border-radius:12px;overflow:hidden}
.cart-thumb img{width:100%;height:100%;object-fit:cover}
.total-row{display:flex;justify-content:space-between;margin:12px 0}
.total-row.grand{font-size:20px;font-weight:800;color:var(--forest);padding-top:12px;border-top:1px solid var(--line)}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.form-group label{display:block;font-size:13px;font-weight:700;color:var(--forest);margin-bottom:6px}
.form-group.full{grid-column:1/-1}
textarea.field{min-height:120px;resize:vertical}
.blog-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.post-card{background:white;border:1px solid var(--line);border-radius:18px;overflow:hidden}
.post-cover{aspect-ratio:16/10;background:#EEF0E5;overflow:hidden}
.post-cover img{width:100%;height:100%;object-fit:cover}
.post-body{padding:18px}
.post-body h3{font-size:23px;line-height:1.2}
.post-meta{font-size:12px;color:var(--muted);margin:9px 0}
.article{max-width:850px;margin:auto}
.article h1{font-size:48px;line-height:1.08}
.article-cover{margin:28px 0;border-radius:22px;overflow:hidden}
.article-content{font-size:17px;line-height:1.75}
.article-content img{border-radius:16px;margin:22px auto}
.about-grid{display:grid;grid-template-columns:1fr 1fr;gap:48px;align-items:center}
.about-image{border-radius:26px;overflow:hidden;background:#EEF0E5;min-height:440px;background-size:cover;background-position:center}
.about-copy h2{font-size:44px;line-height:1.08;margin-bottom:20px}

/* Admin */
.admin-body{background:#F5F4EE}
.admin-shell{min-height:100vh;display:grid;grid-template-columns:245px 1fr}
.admin-sidebar{background:var(--forest);color:white;padding:24px 16px;position:sticky;top:0;height:100vh}
.admin-sidebar .brand-logo{width:190px;max-width:100%;background:white;border-radius:12px;padding:8px}
.admin-menu{margin-top:26px;display:grid;gap:6px}
.admin-menu button{border:0;background:transparent;color:#E9E9DE;text-align:left;padding:11px 13px;border-radius:10px;cursor:pointer}
.admin-menu button.active,.admin-menu button:hover{background:rgba(255,255,255,.12);color:white}
.admin-main{padding:28px}
.admin-top{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}
.admin-title{font-size:34px}
.admin-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}
.stat{background:white;border:1px solid var(--line);border-radius:16px;padding:20px}
.stat strong{display:block;font-size:28px;color:var(--forest)}
.panel{background:white;border:1px solid var(--line);border-radius:18px;padding:20px;margin-top:18px}
.panel-head{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:18px}
.panel h3{font-size:24px}
.table-wrap{overflow:auto}
table{width:100%;border-collapse:collapse;font-size:14px}
th,td{text-align:left;padding:12px;border-bottom:1px solid var(--line);vertical-align:middle}
th{font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.05em}
.admin-form{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.admin-form .full{grid-column:1/-1}
.preview-box{aspect-ratio:16/6;background:#F1EFE6;border:1px dashed #CCC4B5;border-radius:14px;display:grid;place-items:center;overflow:hidden}
.preview-box img{width:100%;height:100%;object-fit:cover}
.login-card{width:min(430px,calc(100% - 30px));margin:10vh auto;background:white;border:1px solid var(--line);border-radius:22px;padding:30px;box-shadow:var(--shadow)}
.login-card .brand-logo{width:280px;max-width:100%;margin:0 auto 20px}
.login-card h1{font-size:32px;text-align:center;margin-bottom:8px}
.login-card p{text-align:center;color:var(--muted)}
.editor-toolbar{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:8px}
.editor-toolbar button{border:1px solid var(--line);background:white;border-radius:8px;padding:7px 10px;cursor:pointer}
.rich-editor{min-height:280px;border:1px solid #DDD8CE;border-radius:12px;background:white;padding:14px;outline:none}
.notice{padding:12px 14px;border-radius:12px;background:#EEF0E5;color:var(--forest);font-size:13px}
.notice.warn{background:#FFF4DA;color:#6A4F10}
.toast{position:fixed;right:20px;bottom:20px;background:var(--forest);color:white;padding:12px 16px;border-radius:12px;z-index:100;box-shadow:var(--shadow)}
.modal{position:fixed;inset:0;background:rgba(25,30,20,.48);display:grid;place-items:center;padding:20px;z-index:90}
.modal-card{background:white;width:min(720px,100%);max-height:90vh;overflow:auto;border-radius:20px;padding:22px}
.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}
.close-x{border:0;background:#F1EFE6;border-radius:50%;width:36px;height:36px;cursor:pointer}
@media(max-width:1020px){
  .grid-products{grid-template-columns:repeat(2,1fr)}
  .values-grid{grid-template-columns:repeat(2,1fr)}
  .footer-grid{grid-template-columns:1fr 1fr}
  .product-detail,.about-grid{grid-template-columns:1fr}
  .cart-layout{grid-template-columns:1fr}
  .blog-grid{grid-template-columns:repeat(2,1fr)}
  .admin-shell{grid-template-columns:1fr}
  .admin-sidebar{position:relative;height:auto}
  .admin-menu{grid-template-columns:repeat(4,1fr)}
  .admin-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:760px){
  .container{width:min(100% - 28px,1180px)}
  .topbar .container span:last-child{display:none}
  .site-header{top:0}
  .nav{min-height:72px}
  .brand-logo{width:220px;max-width:68vw}
  .nav-links{display:none;position:absolute;top:72px;left:0;right:0;background:var(--cream);padding:15px 20px;border-bottom:1px solid var(--line);flex-direction:column;align-items:stretch}
  .nav-links.open{display:flex}
  .mobile-menu-btn{display:grid}
  .nav-actions .desktop-only{display:none}
  .hero{min-height:525px;background-position:62% center}
  .hero::after{background:linear-gradient(90deg,rgba(251,248,241,.96),rgba(251,248,241,.67) 65%,rgba(251,248,241,.24))}
  .hero-content{padding:64px 0;max-width:90%}
  .hero h1{font-size:40px}
  .hero p{font-size:16px}
  .trust-grid{grid-template-columns:1fr 1fr}
  .trust-item:nth-child(2){border-right:0}
  .section{padding:58px 0}
  .section-head{display:block}
  .section-head p{margin-top:12px}
  .grid-products{gap:12px}
  .product-info{padding:13px}
  .product-info h3{font-size:17px;min-height:auto}
  .product-info .actions{display:grid}
  .story-wrap{grid-template-columns:1fr}
  .story-media{min-height:310px}
  .story-copy{padding:32px 24px}
  .story-copy h2{font-size:36px}
  .values h2{font-size:34px}
  .bottom-content{padding:28px}
  .bottom-content h2{font-size:30px}
  .footer-grid{grid-template-columns:1fr}
  .page-hero{padding:45px 0 32px}
  .page-hero h1,.article h1{font-size:38px}
  .detail-title{font-size:34px}
  .form-grid,.admin-form{grid-template-columns:1fr}
  .form-group.full,.admin-form .full{grid-column:auto}
  .blog-grid{grid-template-columns:1fr}
  .admin-main{padding:18px}
  .admin-top{align-items:flex-start;flex-direction:column}
  .admin-menu{grid-template-columns:1fr 1fr}
  .admin-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:480px){
  .trust-grid{grid-template-columns:1fr}
  .trust-item{border-right:0;border-bottom:1px solid var(--line)}
  .grid-products{grid-template-columns:1fr 1fr}
  .product-card .btn{min-height:40px;padding:0 10px;font-size:12px}
  .product-info .price{font-size:16px}
  .values-grid{grid-template-columns:1fr}
  .cart-item{grid-template-columns:72px 1fr}
  .cart-item .item-actions{grid-column:2}
  .admin-grid{grid-template-columns:1fr}
}


/* ===== Updated Homepage Look + Font Fix ===== */
.hero{
  min-height:580px;
  border-top:1px solid rgba(57,73,33,.06);
}
.hero-layout{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:24px;
  align-items:center;
}
.hero-content{
  max-width:620px;
}
.hero h1{
  font-size:clamp(50px,5.5vw,74px);
  line-height:1.02;
  letter-spacing:-0.02em;
}
.hero p{
  max-width:560px;
}
.hero-handwritten{
  justify-self:end;
  align-self:start;
  margin-top:46px;
  max-width:260px;
  color:var(--forest);
  font-family:"Lora","Times New Roman",serif;
  font-style:italic;
  font-size:28px;
  line-height:1.1;
  text-align:center;
  opacity:.92;
}
.home-products-layout{
  display:grid;
  grid-template-columns: minmax(0,1fr) 250px;
  gap:20px;
  align-items:stretch;
}
.grid-products-home{
  grid-template-columns:repeat(3,1fr);
}
.side-promo-card{
  background:white;
  border:1px solid var(--line);
  border-radius:18px;
  overflow:hidden;
  position:relative;
  min-height:100%;
  display:flex;
}
.side-promo-bg{
  position:absolute; inset:0;
  background-size:cover;
  background-position:center;
}
.side-promo-overlay{
  position:absolute; inset:0;
  background:linear-gradient(180deg,rgba(30,35,25,.08),rgba(30,35,25,.5));
}
.side-promo-content{
  position:relative;
  z-index:2;
  margin-top:auto;
  padding:22px 18px;
  color:white;
}
.side-promo-content h3{
  color:white;
  font-family:"Playfair Display","Cormorant Garamond",serif;
  font-size:34px;
  line-height:1.08;
  margin-bottom:14px;
}
.side-promo-content p{
  margin:0 0 12px 0;
  font-size:14px;
  color:rgba(255,255,255,.92);
}
.story-wrap{
  grid-template-columns: .88fr 1.12fr;
  background:linear-gradient(180deg,#FFFDF9,#FCFBF7);
}
.story-media{
  position:relative;
  overflow:hidden;
}
.story-media::after{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(180deg,rgba(33,37,24,.10),rgba(33,37,24,.18));
}
.story-overlay-text{
  position:absolute;
  left:26px;
  bottom:22px;
  z-index:3;
  color:white;
  font-family:"Lora","Times New Roman",serif;
  font-style:italic;
  font-size:30px;
  line-height:1.05;
  max-width:220px;
  text-shadow:0 3px 14px rgba(0,0,0,.22);
}
.story-copy{
  position:relative;
}
.story-copy::after{
  content:"";
  position:absolute;
  right:26px;
  bottom:26px;
  width:130px;
  height:130px;
  border-radius:50%;
  background:radial-gradient(circle at 35% 35%, rgba(116,142,73,.16), rgba(116,142,73,.08) 45%, rgba(116,142,73,0) 46%),
             radial-gradient(circle at 58% 58%, rgba(57,73,33,.12), rgba(57,73,33,.04) 50%, rgba(57,73,33,0) 51%);
  opacity:.85;
}
.story-copy h2{
  font-size:56px;
  line-height:1.02;
  letter-spacing:-0.02em;
}
.story-copy p{
  font-size:16px;
  max-width:560px;
}
.home-values-title{
  text-align:center;
  margin-bottom:26px;
}
.bottom-banner{
  min-height:200px;
}
.bottom-banner::before{
  background:linear-gradient(90deg,rgba(251,248,241,.92),rgba(251,248,241,.68) 44%,rgba(251,248,241,.18));
}
.bottom-content{
  max-width:760px;
}
.bottom-content h2{
  font-size:42px;
  font-style:italic;
  font-family:"Lora","Times New Roman",serif;
}
.leaf-deco{
  position:absolute;
  left:22px;
  bottom:18px;
  width:92px;
  height:92px;
  z-index:2;
  opacity:.34;
}
.leaf-deco::before,
.leaf-deco::after{
  content:"";
  position:absolute;
  background:rgba(116,142,73,.82);
  border-radius:50% 50% 50% 10%;
  transform-origin:bottom center;
}
.leaf-deco::before{ width:26px; height:62px; left:18px; bottom:20px; transform:rotate(-28deg);}
.leaf-deco::after{ width:26px; height:62px; left:44px; bottom:24px; transform:rotate(18deg);}
.leaf-deco span{
  position:absolute;
  width:22px;height:50px;left:2px;bottom:18px;
  background:rgba(116,142,73,.72);
  border-radius:50% 50% 50% 10%;
  transform:rotate(-42deg);
}
.section-link{
  color:var(--forest);
  font-weight:700;
  font-size:14px;
}
@media(max-width:1020px){
  .home-products-layout{
    grid-template-columns:1fr;
  }
  .side-promo-card{
    min-height:320px;
  }
}
@media(max-width:760px){
  .hero-layout{
    grid-template-columns:1fr;
    gap:10px;
  }
  .hero-handwritten{
    justify-self:start;
    margin-top:0;
    margin-bottom:16px;
    max-width:240px;
    font-size:24px;
    text-align:left;
  }
  .grid-products-home{
    grid-template-columns:repeat(2,1fr);
  }
  .side-promo-content h3{
    font-size:28px;
  }
  .story-overlay-text{
    font-size:26px;
  }
  .story-copy h2{
    font-size:44px;
  }
  .bottom-content h2{
    font-size:34px;
  }
}
@media(max-width:480px){
  .grid-products-home{
    grid-template-columns:1fr 1fr;
  }
  .hero h1{
    font-size:42px;
  }
  .story-copy h2{
    font-size:36px;
  }
}


/* ===== Web Typography Refinement =====
   Brand-web fallback:
   Display/Heading: Lora
   Body/UI: Be Vietnam Pro
*/
h1,h2,h3,h4,.display{
  font-family:"Lora","Times New Roman",serif;
  font-weight:600;
  letter-spacing:-0.018em;
}
.hero h1,
.page-hero h1,
.article h1,
.detail-title{
  font-weight:600;
}
.section-head h2,
.story-copy h2,
.about-copy h2{
  font-weight:600;
}
.product-info h3,
.post-body h3{
  font-weight:600;
}
.quote,
.hero-handwritten,
.story-overlay-text,
.bottom-content h2{
  font-family:"Lora","Times New Roman",serif;
  font-weight:500;
}
.quote,
.hero-handwritten,
.story-overlay-text,
.bottom-content h2{
  font-style:italic;
}
body,
button,
input,
textarea,
select,
.nav-links,
.eyebrow,
.btn,
.price,
.post-meta,
.admin-body{
  font-family:"Be Vietnam Pro",Arial,sans-serif;
}
.eyebrow{
  font-weight:600;
  letter-spacing:.24em;
}
.nav-links{
  font-weight:500;
}
.btn{
  font-weight:600;
}


/* ===== About page · Brand Guidelines aligned ===== */
.brand-link{display:flex;align-items:center;flex:none}
.brand-logo{height:auto;object-fit:contain}

.about-page{overflow:hidden}
.about-hero{
  background:radial-gradient(circle at 86% 15%,rgba(220,170,82,.12),transparent 26%),linear-gradient(135deg,#FBF8F1 0%,#F4F3E9 100%);
  padding:64px 0 56px;border-bottom:1px solid rgba(57,73,33,.08)
}
.about-hero-grid{display:grid;grid-template-columns:1.08fr .92fr;gap:72px;align-items:end}
.about-hero h1{font-size:clamp(44px,5vw,68px);line-height:1.04;max-width:780px}
.about-hero-grid>p{max-width:520px;margin:0 0 5px;color:#596153;font-size:17px;line-height:1.8}
.about-story-section{background:#FFFDF9}
.about-story-grid{display:grid;grid-template-columns:.94fr 1.06fr;gap:64px;align-items:center}
.about-story-image{min-height:620px;border-radius:30px;background-size:cover;background-position:center;box-shadow:0 24px 70px rgba(57,73,33,.10);position:relative;overflow:hidden}
.about-story-image::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(57,73,33,0),rgba(57,73,33,.12))}
.about-story-copy h2{font-size:clamp(38px,4.2vw,58px);line-height:1.06;margin-bottom:26px}
.about-rich-text p{margin:0 0 18px;color:#555D51;line-height:1.85;font-size:16px}
.about-signature{margin-top:30px;padding:18px 0 2px 22px;border-left:3px solid var(--gold);color:var(--forest);font-family:"Lora","Times New Roman",serif;font-style:italic;font-size:21px}
.about-purpose{background:var(--forest);color:var(--cream);position:relative}
.about-purpose::before{content:"";position:absolute;width:360px;height:360px;border:1px solid rgba(255,255,255,.07);border-radius:50%;right:-120px;top:-120px}
.about-purpose .about-section-heading h2{color:white}.about-purpose .eyebrow{color:#CED9B8}
.about-section-heading{max-width:760px;margin-bottom:36px}.about-section-heading h2{font-size:clamp(34px,4vw,50px);line-height:1.08}
.about-section-heading.centered{text-align:center;margin:0 auto 38px}
.about-section-heading.centered p{max-width:650px;margin:14px auto 0;color:var(--muted)}
.mission-vision-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.purpose-card{min-height:350px;padding:34px;border:1px solid rgba(255,255,255,.15);border-radius:24px;background:rgba(255,255,255,.055);position:relative;overflow:hidden}
.purpose-index{position:absolute;right:24px;top:12px;font-family:"Lora","Times New Roman",serif;font-size:72px;color:rgba(255,255,255,.07);line-height:1}
.purpose-label{color:#E7D6A8;font-size:12px;font-weight:700;letter-spacing:.24em;margin-bottom:28px}
.purpose-card h3{color:white;font-size:clamp(28px,3vw,40px);line-height:1.15;max-width:520px;margin-bottom:20px}
.purpose-card p{color:#E5E7DF;line-height:1.85;max-width:560px;margin:0}.vision-card{background:rgba(116,142,73,.13)}
.about-principles-section{background:var(--cream)}
.about-principles{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.principle-card{background:white;border:1px solid var(--line);border-radius:22px;padding:28px 26px;min-height:230px}
.principle-number{display:inline-grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#F1F2E9;color:var(--olive);font-size:12px;font-weight:700;margin-bottom:24px}
.principle-card h3{font-size:28px;margin-bottom:10px}.principle-card p{color:var(--muted);margin:0;line-height:1.75}
.about-closing-section{padding-top:18px}
.about-closing{border-radius:28px;padding:44px 48px;background:radial-gradient(circle at 88% 20%,rgba(220,170,82,.16),transparent 28%),linear-gradient(135deg,#F1F2E7,#FBF8F1);border:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:34px}
.about-closing h2{font-size:clamp(30px,3.5vw,44px);line-height:1.12;max-width:780px}

@media(max-width:1020px){
  .about-hero-grid{grid-template-columns:1fr;gap:20px}
  .about-story-grid{grid-template-columns:1fr;gap:34px}
  .about-story-image{min-height:480px}
  .mission-vision-grid{grid-template-columns:1fr}
  .purpose-card{min-height:auto}
}
@media(max-width:760px){
  .brand-logo{width:176px;max-width:54vw}.footer-logo{width:225px;max-width:100%}
  .about-hero{padding:42px 0 38px}.about-hero-grid{gap:16px}.about-hero h1{font-size:39px}.about-hero-grid>p{font-size:15px;line-height:1.7}
  .about-story-section{padding-top:44px}.about-story-grid{gap:28px}.about-story-image{min-height:330px;border-radius:22px}
  .about-story-copy h2{font-size:36px}.about-rich-text p{font-size:15px;line-height:1.75}.about-signature{font-size:18px}
  .about-section-heading{margin-bottom:26px}.about-section-heading h2{font-size:34px}
  .purpose-card{padding:28px 22px;border-radius:20px}.purpose-index{font-size:58px}.purpose-card h3{font-size:29px}.purpose-card p{font-size:15px;line-height:1.75}
  .about-principles{grid-template-columns:1fr}.principle-card{min-height:auto}
  .about-closing{padding:32px 24px;display:block}.about-closing .btn{margin-top:24px}
}
@media(max-width:430px){
  .brand-logo{width:160px;max-width:51vw}.nav{gap:10px}.nav-actions{gap:6px}.circle-btn{width:39px;height:39px}
  .about-hero h1{font-size:35px}.about-story-image{min-height:300px}.about-story-copy h2{font-size:33px}.about-section-heading h2{font-size:31px}
}


/* =========================================================
   V2.2 RESPONSIVE SYSTEM
   One codebase for Desktop + Tablet + Mobile
   Keeps brand layout/content; only layout adapts by viewport.
   ========================================================= */

/* Safer responsive defaults */
html{overflow-x:hidden}
body{overflow-x:hidden}
img{max-width:100%;height:auto}
button,a,input,textarea,select{touch-action:manipulation}
.field,.search-input{font-size:16px}
.summary-card{position:sticky;top:118px}
.table-wrap{-webkit-overflow-scrolling:touch}
table{min-width:680px}

/* Desktop polish */
@media(min-width:1021px){
  .site-header .nav{min-height:84px}
  .brand-logo{width:285px;max-width:30vw}
  .hero-layout{min-height:580px}
  .home-products-layout{grid-template-columns:minmax(0,1fr) 255px}
  .product-detail{align-items:start}
  .gallery-main{position:sticky;top:122px}
}

/* Tablet */
@media(max-width:1020px){
  .container{width:min(100% - 36px,1180px)}
  .brand-logo{width:230px;max-width:42vw}
  .hero{min-height:540px}
  .hero h1{font-size:clamp(46px,7vw,62px)}
  .hero-layout{grid-template-columns:1fr .6fr}
  .home-products-layout{grid-template-columns:1fr}
  .side-promo-card{min-height:340px}
  .product-detail{gap:34px}
  .summary-card{position:static}
  .admin-menu{grid-template-columns:repeat(5,minmax(120px,1fr));overflow:auto}
}

/* Mobile */
@media(max-width:760px){
  body{font-size:15px}
  .container{width:calc(100% - 28px)}
  .topbar{font-size:11px}
  .topbar .container{height:30px}
  .topbar .container span:first-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .site-header{position:sticky;top:0}
  .nav{min-height:68px;gap:8px}
  .brand-link{min-width:0}
  .brand-logo{width:164px;max-width:52vw}
  .nav-actions{gap:5px}
  .circle-btn{width:40px;height:40px;min-width:40px}
  .mobile-menu-btn{display:grid}
  .nav-links{
    top:68px;
    padding:12px 14px 18px;
    gap:0;
    box-shadow:0 18px 40px rgba(35,44,28,.12);
  }
  .nav-links a{
    min-height:48px;
    display:flex;
    align-items:center;
    padding:0 8px;
    border-bottom:1px solid var(--line);
  }

  /* Home */
  .hero{
    min-height:620px;
    background-position:60% center;
  }
  .hero::after{
    background:linear-gradient(180deg,rgba(251,248,241,.96) 0%,rgba(251,248,241,.82) 47%,rgba(251,248,241,.26) 78%,rgba(251,248,241,.10) 100%);
  }
  .hero-layout{
    min-height:620px;
    grid-template-columns:1fr;
    align-content:start;
    padding-top:58px;
    gap:18px;
  }
  .hero-content{max-width:100%;padding:0}
  .hero h1{font-size:clamp(39px,11vw,48px);line-height:1.06;max-width:95%}
  .hero p{font-size:15px;line-height:1.7;max-width:95%}
  .hero .btn{min-height:48px;padding:0 22px}
  .hero-handwritten{
    justify-self:end;
    align-self:end;
    margin-top:auto;
    margin-bottom:42px;
    max-width:210px;
    font-size:21px;
    text-align:right;
  }

  .trust-strip{padding:0}
  .trust-grid{grid-template-columns:1fr 1fr}
  .trust-item{padding:18px 10px;align-items:flex-start}
  .trust-item strong{font-size:13px}
  .trust-item small{font-size:11px;line-height:1.4}
  .icon-round{width:38px;height:38px;min-width:38px}

  .section{padding:50px 0}
  .section-head{gap:14px}
  .section-head h2{font-size:34px;line-height:1.12}
  .section-head .section-link{display:inline-flex;margin-top:10px}
  .grid-products,.grid-products-home{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .product-card{border-radius:14px}
  .product-info{padding:12px}
  .product-info h3{font-size:15px;line-height:1.3}
  .product-info .price{font-size:16px}
  .product-info .actions{display:block}
  .product-info .actions .btn.secondary{display:none}
  .product-info .actions .btn.primary{width:100%;margin-top:8px}
  .side-promo-card{min-height:300px;border-radius:18px}
  .side-promo-content{padding:20px}
  .side-promo-content h3{font-size:28px}
  .story-wrap{grid-template-columns:1fr;border-radius:20px;overflow:hidden}
  .story-media{min-height:300px}
  .story-copy{padding:30px 22px}
  .story-copy h2{font-size:35px}
  .values-grid{grid-template-columns:1fr 1fr;gap:10px}
  .value-card{padding:18px 12px}
  .bottom-banner{min-height:290px;border-radius:20px;background-position:60% center}
  .bottom-banner::before{background:linear-gradient(180deg,rgba(251,248,241,.92),rgba(251,248,241,.62) 62%,rgba(251,248,241,.25))}
  .bottom-content{padding:28px 22px;align-self:flex-start}
  .bottom-content h2{font-size:31px}

  /* Generic inner pages */
  .page-hero{padding:38px 0 30px}
  .page-hero h1{font-size:36px}
  .page-hero p{font-size:14px}
  .filters{display:grid;grid-template-columns:1fr;gap:10px}
  .search-box{max-width:none}
  .filters .muted{font-size:12px}

  /* Product detail */
  .product-detail{grid-template-columns:1fr;gap:26px}
  .gallery-main{position:static;border-radius:18px}
  .detail-title{font-size:32px}
  .detail-price{font-size:26px;margin:14px 0}
  .qty{margin:14px 0}
  .tabs{margin-top:38px;padding-top:24px}
  .mobile-product-bar{
    display:flex;
    position:fixed;
    left:0;right:0;bottom:0;
    z-index:80;
    padding:10px 14px calc(10px + env(safe-area-inset-bottom));
    background:rgba(251,248,241,.97);
    border-top:1px solid var(--line);
    box-shadow:0 -10px 28px rgba(35,44,28,.10);
    gap:10px;
    align-items:center;
  }
  .mobile-product-bar .mobile-product-price{
    flex:1;
    font-weight:800;
    color:var(--forest);
    font-size:16px;
  }
  .mobile-product-bar .btn{min-height:46px;padding:0 18px}
  body.has-mobile-product-bar{padding-bottom:78px}

  /* Cart */
  .cart-layout{grid-template-columns:1fr;gap:18px}
  .cart-list,.summary-card,.checkout-card{padding:16px;border-radius:16px}
  .cart-item{grid-template-columns:72px minmax(0,1fr);gap:12px}
  .cart-thumb{width:72px;height:72px}
  .cart-item .item-actions{grid-column:2}
  .checkout-card{margin-top:14px!important}
  .form-grid{grid-template-columns:1fr;gap:12px}
  .form-group.full{grid-column:auto}
  .summary-card{order:-1;position:static}
  .total-row.grand{font-size:18px}

  /* Blog/article */
  .blog-grid{grid-template-columns:1fr;gap:16px}
  .post-card{border-radius:16px}
  .post-body{padding:16px}
  .post-body h3{font-size:22px}
  .article{max-width:100%}
  .article h1{font-size:35px;line-height:1.12}
  .article-cover{margin:22px 0;border-radius:18px}
  .article-content{font-size:16px;line-height:1.8}
  .article-content h2{font-size:28px;line-height:1.25;margin-top:30px}
  .article-content h3{font-size:22px;line-height:1.3}

  /* About */
  .about-hero{padding:38px 0 34px}
  .about-hero h1{font-size:36px}
  .about-story-image{min-height:320px}
  .about-story-copy h2{font-size:34px}
  .mission-vision-grid{grid-template-columns:1fr}
  .purpose-card{min-height:auto}
  .purpose-card h3{font-size:29px}
  .about-principles{grid-template-columns:1fr}
  .about-closing{padding:30px 22px;display:block}
  .about-closing h2{font-size:31px}
  .about-closing .btn{width:100%;margin-top:22px}

  /* Footer */
  .site-footer{padding:42px 0 24px}
  .footer-grid{grid-template-columns:1fr;gap:24px}
  .footer-logo{width:220px}
  .social-row{gap:8px}

  /* Admin mobile */
  .admin-shell{display:block}
  .admin-sidebar{
    position:sticky;
    top:0;
    z-index:95;
    height:auto;
    padding:12px 14px;
  }
  .admin-sidebar .brand-logo{width:150px;padding:6px}
  .admin-menu{
    margin-top:10px;
    display:flex;
    overflow-x:auto;
    gap:6px;
    padding-bottom:2px;
    scrollbar-width:none;
  }
  .admin-menu::-webkit-scrollbar{display:none}
  .admin-menu button{
    flex:0 0 auto;
    white-space:nowrap;
    min-height:42px;
    padding:9px 12px;
    background:rgba(255,255,255,.06);
  }
  .admin-main{padding:16px 14px 28px}
  .admin-top{flex-direction:row;align-items:center}
  .admin-title{font-size:28px}
  .admin-grid{grid-template-columns:1fr 1fr;gap:10px}
  .stat{padding:15px}
  .stat strong{font-size:24px}
  .panel{padding:16px;border-radius:16px}
  .panel-head{align-items:flex-start;flex-direction:column}
  .panel-head .btn{width:100%}
  .admin-form{grid-template-columns:1fr}
  .admin-form .full{grid-column:auto}
  .preview-box{aspect-ratio:16/9}
  .rich-editor{min-height:220px}
  .modal{padding:0;align-items:end}
  .modal-card{
    width:100%;
    max-height:94vh;
    border-radius:22px 22px 0 0;
    padding:18px 14px calc(18px + env(safe-area-inset-bottom));
  }
  table{min-width:650px}
}

/* Very small phones */
@media(max-width:390px){
  .container{width:calc(100% - 22px)}
  .brand-logo{width:148px;max-width:49vw}
  .circle-btn{width:38px;height:38px;min-width:38px}
  .hero h1{font-size:37px}
  .grid-products,.grid-products-home{gap:8px}
  .product-info{padding:10px}
  .product-info h3{font-size:14px}
  .product-info .price{font-size:15px}
  .values-grid{grid-template-columns:1fr}
  .admin-grid{grid-template-columns:1fr}
}

.mobile-product-bar{display:none}
@media(max-width:760px){.mobile-product-bar{display:flex}}


/* ===== About CRUD + custom blocks ===== */
.about-admin-list{display:grid;gap:12px;margin-top:18px}
.about-admin-card{
  display:grid;
  grid-template-columns:110px minmax(0,1fr) auto;
  gap:16px;
  align-items:center;
  padding:14px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#fff;
}
.about-admin-thumb{
  width:110px;height:78px;border-radius:12px;overflow:hidden;
  background:#F1F1E7;display:grid;place-items:center;color:var(--muted);font-size:12px
}
.about-admin-thumb img{width:100%;height:100%;object-fit:cover}
.about-admin-noimage{padding:8px;text-align:center}
.about-admin-meta{display:flex;flex-wrap:wrap;gap:7px;align-items:center;color:var(--muted);font-size:11px}
.about-admin-meta .badge{background:#EEF1E5;color:var(--forest);padding:4px 8px;border-radius:999px;font-weight:700}
.about-admin-copy h4{margin:7px 0 4px;color:var(--forest);font-size:18px}
.about-admin-copy p{margin:0;color:var(--muted);font-size:13px;line-height:1.55}
.about-admin-actions{display:flex;gap:7px}
.empty-state{padding:28px;text-align:center;color:var(--muted);border:1px dashed var(--line);border-radius:14px}
.checkbox-row{display:flex;align-items:center;gap:8px}

.about-custom-section{background:#FFFDF9}
.about-custom-section.about-custom-alt{background:var(--cream)}
.about-custom-grid{
  display:grid;grid-template-columns:.9fr 1.1fr;gap:54px;align-items:center
}
.about-custom-grid.no-image{grid-template-columns:1fr}
.about-custom-image{
  min-height:430px;border-radius:24px;background-size:cover;background-position:center;
  box-shadow:0 18px 52px rgba(57,73,33,.09)
}
.about-custom-copy{max-width:720px}
.about-custom-copy h2{font-size:clamp(34px,4vw,50px);line-height:1.08;margin-bottom:18px}
.about-custom-copy p{color:var(--muted);line-height:1.85;margin:0 0 15px}

@media(max-width:760px){
  .about-admin-card{grid-template-columns:78px minmax(0,1fr);gap:11px;padding:11px}
  .about-admin-thumb{width:78px;height:68px}
  .about-admin-actions{grid-column:1/-1}
  .about-admin-actions .btn{flex:1}
  .about-custom-grid{grid-template-columns:1fr;gap:24px}
  .about-custom-image{min-height:300px;border-radius:20px}
  .about-custom-copy h2{font-size:33px}
}


/* ===== V2.4 About Visual System =====
   Brand: Warm Cream + Forest Green + Olive + Gold.
   Images stay text-free and focus on Lâm Đồng / highlands / agriculture.
*/
.about-story-image{
  background-image:url("../images/about-story-default.webp");
  background-position:center;
}
.mission-vision-grid{align-items:stretch}
.purpose-card{
  padding:0;
  display:flex;
  flex-direction:column;
  min-height:520px;
  background:rgba(255,255,255,.055);
}
.purpose-card-media{
  height:210px;
  flex:none;
  background-size:cover;
  background-position:center;
  position:relative;
}
.purpose-card-media::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(35,49,22,.04),rgba(35,49,22,.26));
}
.purpose-card-inner{
  position:relative;
  padding:30px 34px 36px;
  flex:1;
}
.purpose-card-inner .purpose-index{
  top:22px;
  right:24px;
}
.purpose-card-inner h3{
  margin:0 0 20px;
  padding-right:74px;
}
.vision-card .purpose-card-media{background-position:center 45%}

/* subtle brand divider: visual interest without adding invented copy */
.about-purpose{
  background:
    radial-gradient(circle at 90% 8%,rgba(220,170,82,.10),transparent 24%),
    var(--forest);
}
.about-principles-section{
  background:
    radial-gradient(circle at 8% 18%,rgba(116,142,73,.06),transparent 22%),
    var(--cream);
}

/* About images shown inside Admin */
.about-preset-wrap{
  display:grid;
  gap:10px;
}
.about-preset-title{
  font-size:12px;
  color:var(--muted);
  font-weight:600;
}
.about-preset-images{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px;
}
.about-preset-item{
  border:1px solid var(--line);
  background:white;
  padding:5px;
  border-radius:12px;
  cursor:pointer;
  transition:.18s ease;
  text-align:left;
}
.about-preset-item:hover{
  border-color:var(--olive);
  transform:translateY(-1px);
}
.about-preset-item.active{
  outline:2px solid var(--olive);
  outline-offset:1px;
}
.about-preset-item img{
  width:100%;
  aspect-ratio:16/10;
  object-fit:cover;
  border-radius:8px;
}
.about-preset-item span{
  display:block;
  padding:6px 3px 2px;
  font-size:10px;
  color:var(--forest);
  line-height:1.3;
}

@media(max-width:760px){
  .purpose-card{min-height:auto}
  .purpose-card-media{height:175px}
  .purpose-card-inner{padding:24px 22px 28px}
  .purpose-card-inner h3{font-size:29px;padding-right:58px}
  .about-preset-images{grid-template-columns:1fr 1fr 1fr}
  .about-preset-item span{font-size:9px}
}


/* ===== V2.6 Full About Admin ===== */
.about-hero{position:relative;overflow:hidden}
.about-hero-media{
  position:absolute;inset:0;
  background-size:cover;
  background-position:center;
  opacity:.14;
}
.about-hero-media::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(90deg,rgba(251,248,241,.98),rgba(251,248,241,.88) 52%,rgba(251,248,241,.64));
}
.about-hero-content{position:relative;z-index:2}

.about-fixed-admin{display:grid;gap:16px}
.about-fixed-card{
  border:1px solid var(--line);
  border-radius:18px;
  padding:18px;
  background:#fff;
}
.about-fixed-card .panel-head{margin-bottom:12px}
.about-fixed-card .preview-box{
  margin-top:10px;
  aspect-ratio:16/7;
}
.about-fixed-card .preview-box img{
  width:100%;height:100%;object-fit:cover;border-radius:12px;
}

@media(max-width:760px){
  .about-hero-media{opacity:.11}
  .about-hero-media::after{
    background:linear-gradient(180deg,rgba(251,248,241,.98),rgba(251,248,241,.90) 62%,rgba(251,248,241,.72));
  }
  .about-fixed-card{padding:14px}
}


/* ===== V2.9 MOBILE REFINEMENT =====
   Gọn header hơn + giảm nhẹ tiêu đề trên màn hình điện thoại
   Không ảnh hưởng giao diện desktop/tablet.
*/
@media(max-width:760px){
  /* Header compact */
  .topbar .container{height:28px}
  .nav{min-height:60px;gap:7px}
  .brand-logo{width:148px;max-width:48vw}
  .circle-btn{width:38px;height:38px;min-width:38px}
  .nav-actions{gap:4px}
  .nav-links{
    top:60px;
    padding-top:10px;
  }

  /* Home typography */
  .hero-layout{
    padding-top:48px;
  }
  .hero h1{
    font-size:clamp(35px,9.8vw,43px);
    line-height:1.08;
    max-width:96%;
  }
  .hero p{
    margin-top:18px;
    margin-bottom:24px;
  }
  .section-head h2{
    font-size:31px;
    line-height:1.14;
  }
  .story-copy h2{
    font-size:31px;
    line-height:1.15;
  }
  .side-promo-content h3{
    font-size:26px;
    line-height:1.15;
  }
  .bottom-content h2{
    font-size:28px;
    line-height:1.15;
  }

  /* Inner pages */
  .page-hero h1{
    font-size:33px;
    line-height:1.12;
  }
  .article h1{
    font-size:32px;
    line-height:1.14;
  }
  .article-content h2{
    font-size:26px;
  }

  /* About */
  .about-hero{
    padding:32px 0 30px;
  }
  .about-hero h1{
    font-size:32px;
    line-height:1.12;
  }
  .about-story-copy h2{
    font-size:31px;
    line-height:1.15;
  }
  .about-section-heading h2{
    font-size:29px;
    line-height:1.16;
  }
  .purpose-card h3{
    font-size:27px;
  }
  .about-closing h2{
    font-size:28px;
    line-height:1.16;
  }
}

@media(max-width:390px){
  .brand-logo{width:142px;max-width:47vw}
  .hero h1{font-size:35px}
  .about-hero h1{font-size:31px}
}

/* ===== ADMIN PRODUCT IMAGE MANAGER ===== */

.product-image-manager{
  margin-top:12px;
  padding:14px;
  border:1px solid #e4dfd3;
  border-radius:14px;
  background:#fbfaf6;
}

.product-image-manager-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:6px;
}

.product-image-manager-head strong{
  color:#394921;
}

#productImageCount{
  font-size:13px;
  color:#748E49;
  font-weight:600;
}

.product-image-help{
  font-size:13px;
  color:#777;
  margin-bottom:12px;
}

.product-image-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:12px;
  min-height:90px;
}

.product-image-card{
  position:relative;
  border:1px solid #ded8ca;
  border-radius:12px;
  overflow:hidden;
  background:white;
  cursor:grab;
  aspect-ratio:1 / 1;
}

.product-image-card:active{
  cursor:grabbing;
}

.product-image-card img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.product-image-card.is-primary{
  border:2px solid #748E49;
}

.product-image-badge{
  position:absolute;
  left:7px;
  bottom:7px;
  padding:4px 8px;
  border-radius:999px;
  background:#394921;
  color:white;
  font-size:11px;
  font-weight:700;
}

.product-image-remove{
  position:absolute;
  top:7px;
  right:7px;
  width:28px;
  height:28px;
  border:0;
  border-radius:50%;
  background:rgba(255,255,255,.92);
  cursor:pointer;
  font-size:17px;
  line-height:28px;
}

.product-image-card.dragging{
  opacity:.45;
}

@media (max-width:700px){
  .product-image-grid{
    grid-template-columns:repeat(2, minmax(0,1fr));
  }
}
/* ===== PRODUCT GALLERY ===== */

.product-thumbnails{
  display:flex;
  gap:10px;
  margin-top:12px;
  flex-wrap:wrap;
}

.product-thumb{
  width:76px;
  height:76px;
  padding:3px;
  border:1px solid #ddd;
  border-radius:10px;
  background:#fff;
  cursor:pointer;
  overflow:hidden;
  transition:.2s ease;
}

.product-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  border-radius:7px;
}

.product-thumb:hover{
  border-color:#748E49;
}

.product-thumb.active{
  border:2px solid #394921;
}

.gallery-main img{
  width:100%;
  display:block;
  object-fit:contain;
}

@media (max-width:700px){
  .product-thumb{
    width:64px;
    height:64px;
  }

  .product-thumbnails{
    gap:8px;
  }
}
.product-lightbox{position:fixed;inset:0;width:100%;height:100dvh;max-width:none;max-height:none;margin:0;border:0;background:rgba(20,25,18,.96);color:white;padding:60px 65px;overflow:hidden}
.product-lightbox[open]{display:flex;align-items:center;justify-content:center}
.product-lightbox::backdrop{background:#141912}
.product-lightbox img{max-width:100%;max-height:100%;object-fit:contain}
.product-lightbox button{position:absolute;border:0;background:#394921;color:white;border-radius:50%;width:48px;height:48px;font-size:32px;cursor:pointer}
.product-lightbox button[hidden]{display:none}
.lightbox-close{right:16px;top:12px}.lightbox-prev{left:10px;top:50%}.lightbox-next{right:10px;top:50%}
.product-lightbox p{position:absolute;bottom:10px;left:0;text-align:center;width:100%}
.lightbox-open{overflow:hidden}#productMainImage{cursor:zoom-in}
@media(max-width:760px){.product-lightbox{padding:65px 12px}.product-lightbox .lightbox-prev,.product-lightbox .lightbox-next{top:auto;bottom:50px}}

.discount-badge{display:inline-block;background:var(--forest);color:white;border-radius:6px;padding:3px 7px;font-size:13px} .price del,.detail-price del,.mobile-product-price del{font-size:.75em;color:var(--muted)}

#storyImageLine,#storyBody{white-space:pre-line}

@media(max-width:760px){.mobile-product-bar{gap:6px}.mobile-product-bar .btn{font-size:12px;padding:0 8px}.mobile-product-price{font-size:14px!important;flex:1}.mobile-product-price strong{display:block}}
.image-order-controls{display:flex;gap:5px;padding:5px}.image-order-controls button{min-width:38px;min-height:36px;border:1px solid var(--line);background:var(--cream);border-radius:6px;color:var(--forest);cursor:pointer}

/* Product categories: sidebar desktop, wrapping buttons on mobile. */
.catalog-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:26px;align-items:start}
.catalog-categories{background:white;border:1px solid var(--line);padding:18px;border-radius:16px;min-width:0}
.catalog-categories h2{font-family:inherit;font-size:14px;line-height:1.5;letter-spacing:.04em;margin:0 0 14px}
.category-filters{display:flex;flex-direction:column;gap:8px}
.category-filter{font:inherit;min-height:44px;background:var(--cream);border:1px solid var(--line);border-radius:8px;padding:10px 12px;text-align:left;white-space:normal;overflow-wrap:anywhere;cursor:pointer;color:var(--forest)}
.category-filter.active{background:var(--forest);color:white;border-color:var(--forest)}
.category-filter:focus-visible{outline:3px solid var(--gold);outline-offset:2px}
.catalog-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.catalog-grid .product-card,.related-grid .product-card{min-width:0}
.catalog-grid h3,.related-grid h3{overflow-wrap:anywhere}.related-grid{margin-top:22px;grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:1000px){.catalog-layout{grid-template-columns:190px minmax(0,1fr);gap:18px}.catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.catalog-layout{grid-template-columns:minmax(0,1fr);gap:18px}.catalog-categories{padding:12px}.category-filters{flex-direction:row;flex-wrap:wrap}.category-filter{max-width:100%;flex:0 1 auto;font-size:13px}.related-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Contact page */
.contact-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;max-width:820px}
.contact-card{display:flex;flex-direction:column;gap:8px;padding:24px;border:1px solid var(--line);border-radius:18px;background:#fff;color:var(--ink);text-decoration:none;box-shadow:0 10px 30px rgba(57,73,33,.05);transition:.18s ease}
.contact-card:hover{transform:translateY(-2px);border-color:var(--olive);box-shadow:0 14px 34px rgba(57,73,33,.09)}
.contact-card .contact-label{font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--olive)}
.contact-card strong{font-size:20px;color:var(--forest)}
.contact-card span:last-child{font-size:13px;color:var(--muted)}
@media(max-width:760px){.contact-grid{grid-template-columns:1fr}.contact-card{padding:20px}}

@media(max-width:760px){
  .site-footer>.container{width:calc(100% - 28px)}
}
@media(max-width:390px){
  .site-footer>.container{width:calc(100% - 22px)}
}


/* Mobile product cards: keep desktop-style detail action visible and center Buy now. */
.product-card{cursor:pointer}
.product-info h3 a{color:inherit;text-decoration:none}
.card-buy-now{display:none}
@media(max-width:760px){
  .product-info .actions{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:7px;
    margin-top:12px;
  }
  .product-info .actions .btn{
    min-height:39px;
    margin:0;
    padding:0 9px;
    font-size:11px;
    white-space:nowrap;
  }
  .product-info .actions .card-detail{
    display:inline-flex;
    width:100%;
  }
  .product-info .actions .card-add{
    display:inline-flex;
    width:100%;
  }
  .product-info .actions .card-buy-now{
    display:inline-flex;
    width:72%;
    align-self:center;
  }
}
@media(max-width:390px){
  .product-info .actions{gap:6px}
  .product-info .actions .btn{font-size:10.5px;padding:0 6px}
  .product-info .actions .card-buy-now{width:78%}
}
