/* Celfiu — public site styles */
:root{
  --green:#1f8a56; --green-d:#166a41; --green-l:#e8f5ee;
  --ink:#1c2a24; --body:#41504a; --muted:#7c8b84;
  --cream:#faf8f3; --cream-d:#f2efe7; --line:#e6e2d8;
  --gold:#c9a24b; --white:#fff;
  --radius:14px; --radius-sm:9px; --shadow:0 8px 30px rgba(23,50,37,.08);
  --shadow-sm:0 3px 12px rgba(23,50,37,.06); --wrap:1140px;
  --serif:"Fraunces","Noto Serif Thai",Georgia,serif; --sans:"Inter","Noto Sans Thai",system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;overflow-x:clip}
body{font-family:var(--sans);color:var(--body);background:var(--white);line-height:1.65;font-size:16.5px;-webkit-font-smoothing:antialiased;overflow-wrap:break-word}
h1,h2,h3,h4{font-family:var(--serif);color:var(--ink);line-height:1.15;font-weight:600}
h1{font-size:clamp(2rem,5vw,3.1rem)}
h2{font-size:clamp(1.6rem,3.5vw,2.3rem)}
h3{font-size:1.25rem}
a{color:var(--green-d);text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%;display:block}
.container{width:100%;max-width:var(--wrap);margin:0 auto;padding:0 22px}
.container.narrow{max-width:820px}
.muted{color:var(--muted)}
.eyebrow{text-transform:uppercase;letter-spacing:.14em;font-size:.78rem;font-weight:600;color:var(--green);margin-bottom:.5rem}
.lead{font-size:1.16rem;color:var(--body)}
.center{text-align:center}

/* Buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.4em;background:var(--green);color:#fff;border:1.5px solid var(--green);padding:.7em 1.35em;border-radius:100px;font-weight:600;font-size:.95rem;cursor:pointer;transition:.18s;font-family:var(--sans);line-height:1}
.btn:hover{background:var(--green-d);border-color:var(--green-d);text-decoration:none;transform:translateY(-1px)}
.btn-lg{padding:.9em 1.7em;font-size:1rem}
.btn-sm{padding:.5em 1em;font-size:.85rem}
.btn-xs{padding:.34em .7em;font-size:.76rem;border-radius:7px}
.btn-ghost{background:transparent;color:var(--green-d)}
.btn-ghost:hover{background:var(--green-l);color:var(--green-d)}
.btn-light{background:#fff;color:var(--green-d);border-color:#fff}
.btn-light:hover{background:var(--cream)}
.btn-block{display:flex;width:100%}
.btn-danger{background:#c0392b;border-color:#c0392b}
.btn-danger:hover{background:#a5281b;border-color:#a5281b}
.link-more{font-weight:600;color:var(--green-d);white-space:nowrap}

/* Header */
.topbar{background:var(--ink);color:#e9efe9;text-align:center;font-size:.85rem;padding:.5rem 0}
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.92);backdrop-filter:saturate(180%) blur(10px);border-bottom:1px solid var(--line)}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding-top:.7rem;padding-bottom:.7rem}
.brand img{display:block}
.header-right{display:flex;align-items:center;gap:1.1rem}
.lang-switch{display:flex;align-items:center;gap:.35rem;font-size:.85rem;font-weight:700;white-space:nowrap}
.lang-switch a{color:var(--muted);padding:.15rem .35rem;border-radius:6px}
.lang-switch a.active{color:var(--green-d);background:var(--green-l)}
.lang-switch a:hover{color:var(--ink);text-decoration:none}
.lang-switch span{color:var(--line);font-weight:400}
.primary-nav ul{list-style:none;display:flex;align-items:center;gap:.35rem}
.primary-nav a{color:var(--ink);font-weight:500;padding:.5rem .8rem;border-radius:8px;display:block;font-size:.96rem}
.primary-nav a:hover,.primary-nav a[aria-current=page]{background:var(--green-l);color:var(--green-d);text-decoration:none}
.has-sub{position:relative}
.has-sub .sub{position:absolute;top:100%;left:0;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);padding:.4rem;min-width:250px;display:none;flex-direction:column;gap:2px}
.has-sub:hover .sub,.has-sub:focus-within .sub{display:flex}
.has-sub .sub a{white-space:nowrap}
.nav-cta{margin-left:.4rem}
.nav-toggle{display:none;flex-direction:column;justify-content:center;gap:5px;width:44px;height:44px;background:none;border:0;cursor:pointer;padding:0;position:relative;z-index:70}
.nav-toggle span{display:block;width:24px;height:2px;background:var(--ink);border-radius:2px;margin:0 auto;transition:transform .25s ease,opacity .2s ease}
.nav-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.nav-toggle[aria-expanded="true"] span:nth-child(2){opacity:0}
.nav-toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
.nav-backdrop{position:fixed;inset:0;background:rgba(18,28,22,.45);opacity:0;visibility:hidden;transition:opacity .25s,visibility .25s;z-index:55}
body.nav-open{overflow:hidden}
body.nav-open .nav-backdrop{opacity:1;visibility:visible}

/* Hero */
.hero{background:linear-gradient(160deg,var(--cream) 0%,var(--green-l) 100%);overflow:hidden}
.hero-inner{display:grid;grid-template-columns:1.05fr .95fr;gap:2.5rem;align-items:center;padding:clamp(2.5rem,6vw,5rem) 0}
.hero-copy h1{margin:.2rem 0 .8rem}
.hero-actions{display:flex;gap:.8rem;flex-wrap:wrap;margin:1.6rem 0}
.hero-actions.center{justify-content:center}
.hero-badges{list-style:none;display:flex;flex-wrap:wrap;gap:.5rem 1.2rem;color:var(--body);font-size:.9rem;font-weight:500}
.hero-badges li{position:relative;padding-left:1.3rem}
.hero-badges li:before{content:"✓";position:absolute;left:0;color:var(--green);font-weight:700}
.hero-art img{width:100%;filter:drop-shadow(0 20px 40px rgba(23,50,37,.14))}

/* Photo hero (uploaded image) */
.hero-photo{position:relative;overflow:hidden;background:var(--cream)}
.hero-photo .hero-media{position:absolute;inset:0;z-index:0}
.hero-photo picture{display:block;width:100%;height:100%}
.hero-photo .hero-bg{width:100%;height:100%;object-fit:cover;object-position:80% center;display:block}
.hero-photo .hero-scrim{position:absolute;inset:0;background:linear-gradient(90deg,#faf8f3 0%,rgba(250,248,243,.94) 25%,rgba(250,248,243,.62) 45%,rgba(250,248,243,.15) 65%,rgba(250,248,243,0) 82%)}
.hero-photo .hero-inner{position:relative;z-index:1;display:flex;align-items:center;min-height:clamp(460px,60vh,600px);padding:clamp(2rem,5vw,3.5rem) 0}
.hero-photo .hero-copy{max-width:560px}
.hero-photo .hero-copy h1{text-shadow:0 1px 0 rgba(255,255,255,.5)}

/* Photo hero — stack on tablet/mobile so text stays fully readable */
@media(max-width:820px){
  .hero-photo{display:flex;flex-direction:column}
  .hero-photo .hero-media{position:static;order:1;height:auto}
  .hero-photo picture{height:auto}
  .hero-photo .hero-bg{height:auto;aspect-ratio:16/10;object-position:center}
  .hero-photo .hero-scrim{display:none}
  .hero-photo .hero-inner{order:2;min-height:0;display:block;padding:1.9rem 0 2.3rem}
  .hero-photo .hero-copy{max-width:none}
  .hero-photo .hero-copy h1{text-shadow:none}
}
@media(max-width:480px){
  .hero-photo .hero-bg{aspect-ratio:4/3}
}

/* Sections */
.section{padding:clamp(2.6rem,6vw,4.5rem) 0}
.section-alt{background:var(--cream)}
.section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:1rem;margin-bottom:1.8rem;flex-wrap:wrap}
.section-head.center{flex-direction:column;align-items:center;text-align:center;gap:.4rem}
.section-wellness{background:var(--ink);color:#dfe8e2}
.section-wellness h2{color:#fff}
.section-wellness p{color:#c3d0c8;margin-bottom:1rem}

/* Grid + cards */
.grid{display:grid;gap:1.4rem}
.grid-2{grid-template-columns:repeat(2,1fr)}
.grid-3{grid-template-columns:repeat(3,1fr)}
.grid-4{grid-template-columns:repeat(4,1fr)}
.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;display:flex;flex-direction:column;transition:.2s;box-shadow:var(--shadow-sm)}
.card:hover{transform:translateY(-4px);box-shadow:var(--shadow)}
.card-media{display:block;aspect-ratio:4/3;background:var(--green-l);overflow:hidden}
.card-media img{width:100%;height:100%;object-fit:cover}
.card-body{padding:1.1rem 1.2rem 1.3rem;display:flex;flex-direction:column;gap:.5rem;flex:1}
.card-eyebrow{font-size:.75rem;text-transform:uppercase;letter-spacing:.1em;color:var(--muted);font-weight:600}
.card-title{font-size:1.12rem}
.card-title a{color:var(--ink)}
.card-desc{font-size:.92rem;color:var(--body);flex:1}
.card-foot{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin-top:.4rem}
.price{font-weight:700;color:var(--ink);font-family:var(--serif)}
.price small{font-weight:400;color:var(--muted)}
.price-quote{color:var(--green-d);font-family:var(--sans);font-size:.92rem}

/* Category cards */
.cat-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:1.6rem;display:flex;flex-direction:column;gap:.5rem;color:var(--body);box-shadow:var(--shadow-sm);transition:.2s}
.cat-card:hover{transform:translateY(-4px);box-shadow:var(--shadow);text-decoration:none;border-color:var(--green)}
.cat-card h3{color:var(--ink)}

/* Values */
.value{text-align:center;padding:1rem}
.value-ico{width:54px;height:54px;margin:0 auto .8rem;border-radius:50%;background:var(--green-l);color:var(--green-d);display:flex;align-items:center;justify-content:center;font-size:1.5rem}
.value h3{margin-bottom:.3rem}
.value p{font-size:.92rem}

/* CTA band */
.cta-band{background:linear-gradient(120deg,var(--green) 0%,var(--green-d) 100%);color:#fff}
.cta-inner{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;padding:2.6rem 0;flex-wrap:wrap}
.cta-band h2{color:#fff}
.cta-band p{color:#dbeee4}

/* Page hero + breadcrumb */
.page-hero{background:var(--cream);border-bottom:1px solid var(--line);padding:2.4rem 0}
.page-hero h1{margin:.4rem 0}
.breadcrumb{font-size:.85rem;color:var(--muted);display:flex;gap:.4rem;flex-wrap:wrap;align-items:center}
.breadcrumb a{color:var(--green-d)}
.breadcrumb span[aria-current]{color:var(--ink);font-weight:500}

/* Listing */
.listing{display:grid;grid-template-columns:250px 1fr;gap:2rem;align-items:start}
.listing-side{position:sticky;top:90px}
.search{display:flex;gap:.4rem;margin-bottom:1.4rem}
.search input{flex:1;min-width:0}
.side-cats{list-style:none;display:flex;flex-direction:column;gap:2px}
.side-cats a{display:block;padding:.5rem .7rem;border-radius:8px;color:var(--body)}
.side-cats a:hover,.side-cats a.active{background:var(--green-l);color:var(--green-d);text-decoration:none;font-weight:600}
.result-count{color:var(--muted);font-size:.9rem;margin-bottom:1rem}
.empty{padding:2rem;background:var(--cream);border-radius:var(--radius);text-align:center}
.pagination{display:flex;gap:.4rem;margin-top:2rem;flex-wrap:wrap}
.pagination a{width:40px;height:40px;display:flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:9px;color:var(--ink)}
.pagination a:hover,.pagination a.active{background:var(--green);color:#fff;border-color:var(--green);text-decoration:none}

/* Product detail */
.product-grid{display:grid;grid-template-columns:1fr 1fr;gap:2.5rem;margin:1.5rem 0 2.5rem}
.product-media{background:var(--green-l);border-radius:var(--radius);overflow:hidden;aspect-ratio:1;border:1px solid var(--line)}
.product-media img{width:100%;height:100%;object-fit:cover}
.product-info .eyebrow a{color:var(--green)}
.product-price{display:flex;align-items:center;gap:1rem;flex-wrap:wrap;margin:1.2rem 0}
.product-price .price{font-size:1.7rem}
.moq{background:var(--cream-d);padding:.3rem .7rem;border-radius:7px;font-size:.85rem;color:var(--body)}
.product-actions{display:flex;gap:.8rem;flex-wrap:wrap;margin:1.4rem 0}
.sku{color:var(--muted);font-size:.85rem}
.product-body{display:grid;grid-template-columns:1fr 340px;gap:2.5rem;align-items:start;margin-top:1rem}
.product-description h2{margin-bottom:.6rem}
.product-specs{background:var(--cream);border:1px solid var(--line);border-radius:var(--radius);padding:1.4rem;position:sticky;top:90px}
.spec-table{width:100%;border-collapse:collapse;margin-bottom:1rem}
.spec-table th,.spec-table td{text-align:left;padding:.55rem 0;border-bottom:1px solid var(--line);font-size:.9rem;vertical-align:top}
.spec-table th{color:var(--muted);font-weight:600;width:42%}
.spec-table td{color:var(--ink)}

/* Prose (article/page/product description) */
.prose,.product-description{color:var(--body)}
.prose h2,.product-description h2{margin:1.8rem 0 .7rem}
.prose h3,.product-description h3{margin:1.4rem 0 .5rem;color:var(--green-d)}
.prose p,.product-description p{margin-bottom:1rem}
.prose ul,.prose ol,.product-description ul,.product-description ol{margin:0 0 1.1rem 1.2rem}
.prose li,.product-description li{margin-bottom:.4rem}
.prose a{text-decoration:underline}
.note{background:var(--cream-d);border-left:3px solid var(--gold);padding:.7rem 1rem;border-radius:0 8px 8px 0;font-size:.9rem}

/* Article single */
.article-single .article-head{margin:1rem 0 1.4rem}
.article-cover{width:100%;border-radius:var(--radius);margin-bottom:1.8rem;aspect-ratio:16/7;object-fit:cover;background:var(--green-l)}
.tags{display:flex;gap:.5rem;flex-wrap:wrap;margin-top:2rem}
.tag{background:var(--green-l);color:var(--green-d);padding:.3rem .8rem;border-radius:100px;font-size:.82rem;font-weight:500}

/* Forms */
.form label{display:block;margin-bottom:1rem;font-weight:600;color:var(--ink);font-size:.92rem}
.form input,.form select,.form textarea{width:100%;padding:.7rem .85rem;border:1.5px solid var(--line);border-radius:9px;font-family:var(--sans);font-size:1rem;font-weight:400;color:var(--ink);margin-top:.35rem;background:#fff}
.form input:focus,.form select:focus,.form textarea:focus{outline:none;border-color:var(--green)}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;opacity:0}
.card-form{background:var(--cream);padding:2rem;border-radius:var(--radius);border:1px solid var(--line)}
.contact-grid{display:grid;grid-template-columns:1fr 1.4fr;gap:2.5rem;align-items:start}
.contact-info p{margin-bottom:1rem}

/* Flash */
.flash{padding:.85rem 1.1rem;border-radius:9px;margin:1.2rem 0;font-weight:500}
.flash-success{background:var(--green-l);color:var(--green-d);border:1px solid #bfe3ce}
.flash-error{background:#fdecea;color:#b93c2e;border:1px solid #f5c6c0}

/* Error page */
.error-page{padding:4rem 0}
.err-code{font-family:var(--serif);font-size:5rem;color:var(--green-l);font-weight:700;line-height:1}

/* Badges */
.badge{display:inline-block;padding:.15rem .6rem;border-radius:100px;font-size:.72rem;font-weight:600}
.badge-green{background:var(--green-l);color:var(--green-d)}
.badge-gray{background:var(--cream-d);color:var(--body)}

/* Footer */
.site-footer{background:var(--ink);color:#b9c6bd;margin-top:0}
.footer-grid{display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr;gap:2rem;padding:3rem 0 2rem}
.footer-logo{filter:brightness(0) invert(1);opacity:.95;margin-bottom:.9rem}
.footer-about p{font-size:.92rem;margin-bottom:1rem}
.footer-contact a{color:#dfe8e2}
.footer-col h4{color:#fff;font-family:var(--sans);font-size:.8rem;text-transform:uppercase;letter-spacing:.1em;margin-bottom:.9rem}
.footer-col ul{list-style:none;display:flex;flex-direction:column;gap:.5rem}
.footer-col a{color:#b9c6bd;font-size:.92rem}
.footer-col a:hover{color:#fff}
.footer-bottom{border-top:1px solid rgba(255,255,255,.1);padding:1.3rem 0}
.footer-bottom .container{display:flex;justify-content:space-between;gap:1rem;flex-wrap:wrap;font-size:.82rem;color:#8fa298}
.disclaimer{max-width:560px}

/* Responsive */
@media(max-width:900px){
  .grid-4{grid-template-columns:repeat(2,1fr)}
  .grid-3{grid-template-columns:repeat(2,1fr)}
  .hero-inner{grid-template-columns:1fr;gap:2rem}
  .hero-art{order:-1;max-width:400px;margin-inline:auto}
  .hero-actions .btn{flex:1 1 auto;text-align:center;justify-content:center}
  .product-grid,.product-body,.contact-grid,.listing{grid-template-columns:1fr}
  .product-specs,.listing-side{position:static}
  .footer-grid{grid-template-columns:1fr 1fr}
  .nav-toggle{display:flex}
  /* Remove backdrop-filter on mobile: a backdrop-filter ancestor traps position:fixed
     children inside the header box, which cramped the off-canvas menu. */
  .site-header{backdrop-filter:none;-webkit-backdrop-filter:none;background:#fff}
  .primary-nav{position:fixed;inset:0 0 0 auto;width:min(340px,86vw);height:100%;height:100dvh;background:#fff;transform:translateX(100%);transition:transform .28s ease;padding:5.4rem 1.2rem calc(2rem + env(safe-area-inset-bottom));box-shadow:-8px 0 30px rgba(23,50,37,.18);overflow-y:auto;z-index:60;-webkit-overflow-scrolling:touch;display:flex;flex-direction:column}
  .primary-nav.open{transform:none}
  .primary-nav ul{flex-direction:column;align-items:stretch;gap:.15rem}
  .primary-nav>ul>li>a{padding:.8rem .9rem;font-size:1.02rem;border-radius:10px}
  .primary-nav .sub{position:static;display:flex;box-shadow:none;border:0;padding:.1rem 0 .4rem .9rem;min-width:0;background:transparent}
  .primary-nav .sub a{padding:.55rem .9rem;font-size:.95rem;color:var(--body)}
  .has-sub>a::after{content:"";display:inline-block;width:7px;height:7px;margin-left:.5rem;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(45deg);vertical-align:middle}
  .nav-cta{margin:.7rem 0 0}
  .nav-cta a{width:100%}
}
@media(max-width:560px){
  .grid-4,.grid-3,.grid-2{grid-template-columns:1fr}
  .form-row{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr}
  .cta-inner{flex-direction:column;align-items:flex-start}
}
