/* =========================================================
   ALL GARDEN 888 — Catalogue styles
   Big-box hardware look: bold condensed type, strong green
   header, high-contrast price tags, dense product grids.
   ========================================================= */

:root {
  /* Brand — sampled from the ALL GARDEN 888 logo
     lime #C1FA6A · leaf #80DA55 · emerald #00B069 · forest outline #09340D */
  --logo-lime:    #C1FA6A;
  --logo-leaf:    #80DA55;
  --logo-emerald: #00B069;
  --logo-forest:  #09340D;

  --green-950: var(--logo-forest);   /* darkest surfaces */
  --green-900: #0E4416;              /* dark panels */
  --green-700: #00804C;              /* emerald darkened for white text (5:1) */
  --green-600: var(--logo-emerald);  /* borders, accents (no text) */
  --green-100: #DDF6C4;
  --green-50:  #F3FCE8;
  --yellow:    var(--logo-lime);     /* highlight colour (always with forest text) */
  --lime-hover: #D3FC94;
  --amber-50:  #FFF7E0;
  --amber-700: #8A5A00;

  /* Semantic */
  --bg: #F3F4F2;
  --surface: #FFFFFF;
  --ink: #1B1F1D;
  --muted: #545B57;
  --line: #D9DED9;
  --focus: #1A73E8;
  --primary: var(--green-700);
  --primary-hover: var(--green-900);
  --on-primary: #FFFFFF;

  /* Type */
  /* Latin glyphs use Barlow; Thai glyphs fall through to Noto Sans Thai / Kanit */
  --font: "Barlow", "Noto Sans Thai", system-ui, -apple-system, "Segoe UI", "Leelawadee UI", sans-serif;
  --font-display: "Barlow Condensed", "Kanit", "Barlow", "Leelawadee UI", sans-serif;

  /* Shape & depth */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --shadow-1: 0 1px 2px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.08);
  --shadow-2: 0 6px 18px rgba(0,0,0,.12);

  /* Motion */
  --t-fast: 150ms;
  --t-med: 240ms;
  --ease-out: cubic-bezier(.2,.8,.2,1);

  /* Layers */
  --z-header: 40;
  --z-scrim: 90;
  --z-drawer: 100;

  --container: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; outline: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0; letter-spacing: .005em; }
p { margin: 0; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 200;
  background: var(--yellow); color: var(--ink); padding: 10px 16px;
  font-weight: 700; border-radius: var(--r-sm); text-decoration: none;
}
.skip-link:focus { top: 8px; }

/* Icons rendered by JS into [data-icon] */
.ico { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico--sm { width: 16px; height: 16px; }
.ico--lg { width: 28px; height: 28px; }

/* ---------- Utility bar ---------- */
.utility { background: var(--green-950); color: #E4EEE8; font-size: 14px; }
.utility__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 36px; }
.utility__links { display: flex; gap: 20px; }
.utility__item { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; white-space: nowrap; }
@media (max-width: 900px) { .utility__hours { display: none; } .utility__links { width: 100%; justify-content: space-between; } }
a.utility__item:hover { color: var(--yellow); }
@media (max-width: 640px) {
  .utility__inner > .utility__item { display: none; }
  .utility__links { width: 100%; justify-content: space-between; }
}

/* ---------- Header ---------- */
.header { background: #fff; color: var(--ink); position: sticky; top: 0; z-index: var(--z-header); box-shadow: 0 1px 0 var(--line); }
.header__inner { display: flex; align-items: center; gap: 20px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  background: transparent; border: 0; border-radius: var(--r-md); cursor: pointer; color: inherit;
  transition: background var(--t-fast);
}
.icon-btn:hover { background: var(--green-50); }
.icon-btn .ico { width: 26px; height: 26px; }
.header__menu { display: none; }

.logo { display: inline-flex; align-items: center; text-decoration: none; flex: none; border-radius: var(--r-sm); }
.logo__img { height: 76px; width: auto; }

.search { flex: 1; display: flex; min-width: 0; max-width: 680px; margin: 0 auto; }
.search input {
  flex: 1; min-width: 0; height: 48px; padding: 0 16px;
  border: 2px solid var(--green-700); border-right: 0; border-radius: var(--r-md) 0 0 var(--r-md);
  font: inherit; font-size: 16px; color: var(--ink); background: #fff;
}
.search input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--logo-lime); }
.search__btn {
  width: 56px; height: 48px; display: grid; place-items: center; cursor: pointer;
  background: var(--green-700); color: #fff; border: 0; border-radius: 0 var(--r-md) var(--r-md) 0;
  transition: background var(--t-fast);
}
.search__btn:hover { background: var(--green-950); }
.search__btn .ico { width: 24px; height: 24px; stroke-width: 2.5; }

.header__contact {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; color: var(--green-950);
  padding: 10px 14px; border-radius: var(--r-md); border: 2px solid var(--green-700); min-height: 44px;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.header__contact:hover { background: var(--green-50); }

@media (max-width: 900px) {
  .header__menu { display: inline-grid; margin-left: -8px; color: var(--green-950); }
  .header__inner { gap: 8px 12px; }
  .logo__img { height: 56px; }
  .search { order: 5; flex-basis: 100%; max-width: none; }
  .header__contact span { display: none; }
  .header__contact { margin-left: auto; border: 0; padding: 10px; }
}

/* ---------- Category nav ---------- */
.catnav { background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-1); }
/* Desktop: forest-green category bar with lime active marker */
@media (min-width: 901px) {
  .catnav { background: var(--green-950); border-bottom: 0; }
  .catnav .catnav__link { color: #fff; }
  .catnav .catnav__link .ico { color: var(--logo-lime); }
  .catnav .catnav__link:hover { color: var(--logo-lime); border-bottom-color: rgba(193,250,106,.4); }
  .catnav .catnav__link[aria-current="page"] { color: var(--logo-lime); border-bottom-color: var(--logo-lime); }
  /* wrap onto a second row rather than hiding departments off-screen */
  .catnav__list { flex-wrap: wrap; column-gap: 0; }
  .catnav .catnav__link { padding-left: 11px; padding-right: 11px; gap: 6px; }
}
/* Desktop menu shows text only so all departments fit on one row (icons stay in the phone menu) */
@media (min-width: 901px) {
  .catnav .catnav__link .ico { display: none; }
  .catnav .catnav__link { padding-left: 10px; padding-right: 10px; }
}
@media (min-width: 901px) and (max-width: 1240px) {
  .catnav .catnav__link { padding: 9px 8px 7px; font-size: 15px; }
}
.catnav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.catnav__link {
  display: flex; align-items: center; gap: 8px; padding: 14px 14px 12px;
  text-decoration: none; font-weight: 600; color: var(--ink);
  border-bottom: 3px solid transparent; transition: color var(--t-fast), border-color var(--t-fast);
  white-space: nowrap;
}
.catnav__link .ico { color: var(--green-700); }
.catnav__link:hover { color: var(--green-700); border-bottom-color: var(--green-100); }
.catnav__link[aria-current="page"] { color: var(--green-700); border-bottom-color: var(--green-700); }
.catnav__head { display: none; }

@media (max-width: 900px) {
  .catnav {
    position: fixed; inset: 0 auto 0 0; width: min(320px, 86vw); z-index: var(--z-drawer);
    transform: translateX(-100%); transition: transform var(--t-med) var(--ease-out);
    overflow-y: auto; border: 0; box-shadow: none; visibility: hidden;
    transition: transform var(--t-med) var(--ease-out), visibility 0s linear var(--t-med);
  }
  .catnav.is-open { visibility: visible; transition: transform var(--t-med) var(--ease-out); }
  .catnav.is-open { transform: none; box-shadow: var(--shadow-2); }
  .catnav .container { padding: 0; }
  .catnav__head {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 8px 12px 16px; background: var(--green-950); color: #fff;
    font-family: var(--font-display); font-size: 22px; font-weight: 700;
  }
  .catnav__list { flex-direction: column; gap: 0; }
  .catnav__link { border-bottom: 1px solid var(--line); padding: 16px; min-height: 56px; }
  .catnav__link[aria-current="page"] { border-bottom-color: var(--line); box-shadow: inset 4px 0 0 var(--green-700); background: var(--green-50); }
}
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: var(--z-scrim); }

/* ---------- Generic ---------- */
.section { padding: 32px 0; }
.section--tight { padding: 20px 0; }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section__title { font-size: 30px; font-weight: 800; text-transform: uppercase; }
.link-more { font-weight: 700; color: var(--green-700); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.link-more:hover { text-decoration: underline; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: var(--r-md); border: 2px solid transparent;
  font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--primary); color: var(--on-primary); }
.btn--primary:hover { background: var(--primary-hover); }
.btn--yellow { background: var(--yellow); color: var(--green-950); }
.btn--yellow:hover { background: var(--lime-hover); }
/* WhatsApp green with dark text (white on #25D366 fails contrast) */
.btn--wa { background: #25D366; color: var(--green-950); }
.btn--wa:hover { background: #1EBE5B; }
.btn--wechat { background: #fff; color: var(--green-950); border-color: #07C160; }
.btn--wechat:hover { background: #EAFBF1; }
.link-btn {
  display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; min-height: 32px; padding: 0 10px;
  border: 1px solid var(--green-700); border-radius: 999px; background: #fff; color: var(--green-700);
  font-weight: 600; font-size: 14px; cursor: pointer;
}
.link-btn:hover { background: var(--green-50); }
.utility__btn { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: inherit; min-height: 28px; }
.utility__btn:hover { color: var(--yellow); }
.footer__copy { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: inherit; text-align: left; }
.footer__copy:hover { color: var(--yellow); text-decoration: underline; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 300; max-width: calc(100% - 32px);
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--green-950); color: #fff; padding: 12px 18px; border-radius: var(--r-md);
  box-shadow: var(--shadow-2); font-weight: 600; border-left: 4px solid var(--yellow);
  transition: opacity var(--t-med) var(--ease-out), transform var(--t-med) var(--ease-out);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.btn--outline { background: #fff; border-color: var(--green-700); color: var(--green-700); }
.btn--outline:hover { background: var(--green-50); }

.breadcrumb { font-size: 14px; color: var(--muted); padding: 16px 0 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumb li:not(:last-child)::after { content: "›"; margin-left: 6px; }
.breadcrumb a { color: var(--green-700); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Hero ---------- */
.hero { padding-top: 20px; }
.hero__grid { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.promo {
  position: relative; overflow: hidden; border-radius: var(--r-lg); color: #fff;
  background: var(--green-900); display: flex; flex-direction: column; justify-content: center;
  padding: 32px; min-height: 340px; text-decoration: none;
}
.promo__eyebrow {
  display: inline-block; align-self: flex-start; background: var(--yellow); color: var(--green-950);
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 16px;
  padding: 4px 10px; border-radius: var(--r-sm); margin-bottom: 12px;
}
.promo__title { font-size: clamp(36px, 5vw, 60px); font-weight: 800; text-transform: uppercase; max-width: 12ch; }
.promo__text { font-size: 18px; max-width: 38ch; margin: 12px 0 20px; color: #D6E8DD; }
.promo__art { position: absolute; right: -20px; bottom: -10px; width: 46%; max-width: 380px; opacity: .95; pointer-events: none; }
.promo > *:not(.promo__art) { position: relative; z-index: 1; }
.promo--side { min-height: 0; padding: 24px; }
.promo--side .promo__title { font-size: 34px; }
.promo--emerald { background: var(--green-700); }
.promo--emerald .promo__text { color: #E3F8D2; }
.promo--emerald .link-more { color: var(--logo-lime); }
.promo--light { background: var(--green-50); color: var(--ink); border: 2px solid var(--logo-leaf); }
.promo--light .promo__text { color: var(--muted); }
.hero__side { display: grid; gap: 16px; grid-template-rows: 1fr 1fr; }
.promo--side .promo__text { margin: 6px 0 0; font-size: 16px; }
.promo--side .link-more { margin-top: 10px; color: inherit; }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__side { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .promo { min-height: 300px; padding: 24px; }
  .promo__art { width: 50%; opacity: .35; }
  .promo--side { min-height: 0; }
}
@media (max-width: 560px) { .hero__side { grid-template-columns: 1fr; } }

/* ---------- Category tiles ---------- */
.cat-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cat-tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  text-decoration: none; display: flex; flex-direction: column; overflow: hidden;
  transition: box-shadow var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.cat-tile:hover { box-shadow: var(--shadow-2); border-color: var(--green-600); transform: translateY(-2px); }
.cat-tile__art { aspect-ratio: 4 / 3; background: var(--green-50); display: grid; place-items: center; padding: 12px; }
.cat-tile__art svg { width: 80%; height: 100%; }
.cat-tile__body { padding: 12px 14px 14px; }
.cat-tile__name { font-size: 20px; font-weight: 700; }
.cat-tile__count { font-size: 14px; color: var(--muted); }
@media (max-width: 560px)  { .cat-tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; } .cat-tile__name { font-size: 18px; } }

/* ---------- Value strip ---------- */
.values { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.values__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 20px 0; }
.value { display: flex; gap: 12px; align-items: center; }
.value__ico { width: 48px; height: 48px; border-radius: 50%; background: var(--green-50); color: var(--green-700); display: grid; place-items: center; flex: none; }
.value__ico .ico { width: 24px; height: 24px; }
.value strong { display: block; font-size: 16px; }
.value span { font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .values__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .values__grid { grid-template-columns: 1fr; } }

/* ---------- Product grid & card ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .grid--4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .grid, .grid--4 { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  display: flex; flex-direction: column; overflow: hidden;
  transition: box-shadow var(--t-fast), border-color var(--t-fast);
}
.card:hover { box-shadow: var(--shadow-2); border-color: #B9C2BC; }
.card__media { aspect-ratio: 1 / 1; background: #fff; display: grid; place-items: center; padding: 16px; border-bottom: 1px solid #EEF0EE; }
.card__media svg, .card__media img { width: 100%; height: 100%; object-fit: contain; }
.card__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card__brand { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.card__name { font-family: var(--font); font-size: 16px; font-weight: 600; line-height: 1.35; }
.card__name a { text-decoration: none; }
.card__name a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.card__name a:hover { text-decoration: underline; }
.card__size { font-size: 14px; color: var(--muted); }
.card__foot { margin-top: auto; padding-top: 8px; display: flex; align-items: end; justify-content: space-between; gap: 8px; }
.card__code { font-size: 12px; color: var(--muted); }

.price { font-family: var(--font-display); font-weight: 800; color: var(--ink); line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price__cur { font-size: .6em; vertical-align: .55em; margin-right: 1px; }
.card .price { font-size: 30px; }

.badge {
  position: absolute; top: 10px; left: 10px; z-index: 1;
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  padding: 4px 8px; border-radius: var(--r-sm); background: var(--logo-lime); color: var(--green-950);
  box-shadow: inset 0 0 0 1.5px var(--green-950);
}
.badge--new { background: var(--green-700); color: #fff; box-shadow: none; }
.tag-hazard {
  display: inline-flex; align-items: center; gap: 4px; align-self: flex-start;
  font-size: 12px; font-weight: 700; color: var(--amber-700); background: var(--amber-50);
  border: 1px solid #F1DFA8; border-radius: var(--r-sm); padding: 2px 6px;
}
@media (max-width: 720px) {
  .card__body { padding: 10px; }
  .card .price { font-size: 26px; }
  .card__name { font-size: 15px; }
}

/* ---------- Listing page ---------- */
.listing__head { padding: 12px 0 20px; }
.listing__title { font-size: clamp(32px, 4vw, 44px); font-weight: 800; text-transform: uppercase; }
.listing__blurb { color: var(--muted); margin-top: 6px; }
.listing { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; padding-bottom: 48px; }
.listing--nofilters { grid-template-columns: 1fr; }
.filters[hidden], .filters-toggle[hidden] { display: none !important; }
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); position: sticky; top: 92px; }
.filters__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.filters__head h2 { font-size: 22px; }
.filters__clear { background: none; border: 0; color: var(--green-700); font-weight: 700; cursor: pointer; padding: 8px; text-decoration: underline; }
.filters fieldset { border: 0; margin: 0; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.filters fieldset:last-of-type { border-bottom: 0; }
.filters legend { font-weight: 700; padding: 0; margin-bottom: 8px; float: left; width: 100%; }
.filters legend + * { clear: both; }
.check { display: flex; align-items: center; gap: 10px; min-height: 40px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--green-700); cursor: pointer; flex: none; }
.check__count { margin-left: auto; color: var(--muted); font-size: 14px; }
.price-range { display: flex; gap: 8px; align-items: center; }
.price-range label { flex: 1; font-size: 14px; color: var(--muted); }
.price-range input { width: 100%; height: 44px; padding: 0 10px; border: 1px solid #A9B2AC; border-radius: var(--r-sm); font: inherit; margin-top: 2px; }
.filters__done { display: none; }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.toolbar__count { font-weight: 600; }
.toolbar__right { display: flex; gap: 8px; align-items: center; }
.select-wrap { display: flex; align-items: center; gap: 8px; }
.select-wrap label { font-size: 14px; color: var(--muted); white-space: nowrap; }
.filters-toggle { white-space: nowrap; }
.select-wrap select { height: 44px; padding: 0 36px 0 12px; border: 1px solid #A9B2AC; border-radius: var(--r-sm); font: inherit; background: #fff; cursor: pointer; }
.filters-toggle { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 8px 0 12px;
  border: 1px solid var(--green-700); color: var(--green-700); background: var(--green-50);
  border-radius: 999px; font-weight: 600; font-size: 14px; cursor: pointer;
}
.chip:hover { background: var(--green-100); }

.subcats { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.subcat {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); text-decoration: none; font-weight: 600; cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.subcat:hover { border-color: var(--green-700); }
.subcat[aria-pressed="true"] { background: var(--green-700); border-color: var(--green-700); color: #fff; }

.empty { background: #fff; border: 1px dashed #A9B2AC; border-radius: var(--r-md); padding: 40px 24px; text-align: center; }
.empty h2 { font-size: 26px; margin-bottom: 8px; }
.empty p { color: var(--muted); margin-bottom: 16px; }

@media (max-width: 900px) {
  .listing { grid-template-columns: 1fr; }
  .filters-toggle { display: inline-flex; min-height: 44px; }
  .filters {
    position: fixed; inset: auto 0 0 0; top: auto; max-height: 85dvh; overflow-y: auto; z-index: var(--z-drawer);
    border-radius: var(--r-lg) var(--r-lg) 0 0; transform: translateY(100%);
    visibility: hidden; transition: transform var(--t-med) var(--ease-out), visibility 0s linear var(--t-med);
  }
  .filters.is-open { transform: none; visibility: visible; box-shadow: var(--shadow-2); transition: transform var(--t-med) var(--ease-out); }
  .filters__done { display: block; position: sticky; bottom: 0; padding: 12px 16px; background: #fff; border-top: 1px solid var(--line); }
  .filters__done .btn { width: 100%; }
}

/* ---------- Product detail ---------- */
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; padding: 16px 0 40px; align-items: start; }
.pdp__media { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); aspect-ratio: 1 / 1; display: grid; place-items: center; padding: 40px; position: relative; }
.pdp__media svg, .pdp__media img { width: 100%; height: 100%; object-fit: contain; }
.pdp__brand { font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--green-700); }
.pdp__title { font-size: clamp(30px, 3.5vw, 42px); font-weight: 800; margin: 4px 0 8px; }
.pdp__meta { color: var(--muted); font-size: 14px; display: flex; gap: 16px; flex-wrap: wrap; }
.pdp__price-box { margin: 20px 0; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); }
.pdp__price-box .price { font-size: 56px; }
.pdp__price-note { color: var(--muted); font-size: 14px; margin-top: 6px; }
.pdp__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.pdp__actions .btn--outline, .pdp__actions .btn--wa { grid-column: 1 / -1; }
.pdp__desc { font-size: 17px; margin-bottom: 20px; max-width: 65ch; }
.notice {
  display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); margin-bottom: 20px;
  background: var(--amber-50); border: 1px solid #F1DFA8; color: #4A3500;
}
.notice .ico { color: var(--amber-700); margin-top: 2px; }
.specs { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.specs caption { text-align: left; font-family: var(--font-display); font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.specs th, .specs td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs tr:last-child th, .specs tr:last-child td { border-bottom: 0; }
.specs th { width: 40%; background: var(--green-50); font-weight: 600; }
@media (max-width: 900px) {
  .pdp { grid-template-columns: 1fr; gap: 20px; }
  .pdp__media { padding: 24px; max-height: 70vh; }
  .pdp__price-box .price { font-size: 48px; }
}
@media (max-width: 420px) { .pdp__actions { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 16px 0 48px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.panel h2 { font-size: 28px; margin-bottom: 16px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list .value__ico { width: 44px; height: 44px; }
.contact-list strong { display: block; }
.contact-list a { color: var(--green-700); font-weight: 600; }
.panel--map { display: flex; flex-direction: column; gap: 12px; }
.panel--map h2 { margin-bottom: 4px; }
.map { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); background: var(--green-50); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__addr { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.map__addr .ico { color: var(--green-700); }
.map__btn { align-self: flex-start; }
@media (max-width: 480px) { .map__btn { align-self: stretch; } }
.map-ph { aspect-ratio: 4 / 3; border-radius: var(--r-md); background: var(--green-50) repeating-linear-gradient(45deg, transparent 0 14px, rgba(15,107,66,.06) 14px 28px); display: grid; place-items: center; color: var(--muted); text-align: center; padding: 16px; }
@media (max-width: 800px) { .contact { grid-template-columns: 1fr; } }

/* ---------- Brochures & Guides ---------- */
.guides { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; padding: 0 0 48px; }
.guide { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; }
.guide__media { display: block; background: var(--green-50); aspect-ratio: 3 / 4; overflow: hidden; border-bottom: 1px solid var(--line); }
.guide__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform var(--t-med); }
.guide__media:hover img { transform: scale(1.03); }
.guide__body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.guide__title { font-size: 22px; font-weight: 700; line-height: 1.25; }
.guide__desc { color: var(--muted); margin: 0; }
.guide__langs { display: flex; gap: 8px; flex-wrap: wrap; }
.guide__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; }
.guide__actions .btn { flex: 1 1 140px; }
@media (max-width: 480px) { .guides { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--green-900); color: #fff; border-radius: var(--r-lg); padding: 28px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.cta-band h2 { font-size: 32px; text-transform: uppercase; }
.cta-band p { color: #CFE3D7; margin-top: 4px; }
.cta-band__btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { background: var(--green-950); color: #D3E2D9; margin-top: 40px; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; padding-top: 40px; padding-bottom: 32px; }
.footer__logo { height: 88px; width: auto; }
.footer__tag { margin-top: 6px; max-width: 34ch; }
.footer__h { font-size: 20px; color: #fff; margin-bottom: 12px; text-transform: uppercase; }
.footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer__list li { display: flex; gap: 8px; align-items: flex-start; }
.footer__list .ico { margin-top: 2px; color: var(--yellow); }
.footer__list a { text-decoration: none; }
.footer__list a:hover { color: var(--yellow); text-decoration: underline; }
.footer__legal { border-top: 1px solid rgba(255,255,255,.12); padding-top: 16px; padding-bottom: 24px; font-size: 14px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: #A9C1B3; }
@media (max-width: 800px) { .footer__grid { grid-template-columns: 1fr; gap: 24px; } }

body.no-scroll { overflow: hidden; }

/* ---------- Real catalogue additions ---------- */
.price-ask {
  display: inline-flex; align-items: center; min-height: 28px; padding: 2px 10px; border-radius: 999px;
  background: var(--green-50); color: var(--green-700); border: 1px solid var(--green-100);
  font-weight: 700; font-size: 14px; white-space: nowrap;
}
.price-ask--lg { font-family: var(--font-display); font-size: 30px; padding: 4px 16px; border-radius: var(--r-md); }
.badge--clearance { background: var(--green-950); color: var(--logo-lime); box-shadow: none; }
.card__name { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__media { padding: 8px; }
.cat-tile__art { overflow: hidden; min-height: 0; }
.cat-tile__art { position: relative; }
.cat-tile__art img { position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); object-fit: contain; mix-blend-mode: multiply; }
.more { display: flex; justify-content: center; margin-top: 24px; }
.more .btn { min-width: 260px; }

.pdp__gallery { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pdp__media { padding: 16px; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.thumb {
  width: 72px; height: 72px; padding: 4px; border-radius: var(--r-md); border: 2px solid var(--line);
  background: #fff; cursor: pointer; transition: border-color var(--t-fast);
}
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb:hover { border-color: var(--green-600); }
.thumb[aria-pressed="true"] { border-color: var(--green-700); box-shadow: 0 0 0 2px var(--green-100); }

.pdp__desc { font-size: 16px; margin-bottom: 20px; max-width: 70ch; overflow-wrap: anywhere; }
.pdp__desc p { margin: 0 0 8px; }
.pdp__desc ul { margin: 0 0 12px; padding-left: 22px; }
.pdp__desc li { margin-bottom: 4px; }
.pdp__desc strong { color: var(--green-950); }

/* Supplier infographic images shown one after another below the description */
.detail-imgs { max-width: 760px; margin: 16px auto 0; display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.detail-imgs img { width: 100%; height: auto; display: block; }

/* ---------- Language switch ---------- */
.lang { display: inline-flex; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 2px; }
.lang__btn {
  min-width: 44px; min-height: 28px; padding: 0 10px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: #E4EEE8; font-size: 13px; font-weight: 700; line-height: 1;
  transition: background var(--t-fast), color var(--t-fast);
}
.lang__btn:hover { color: #fff; background: rgba(255,255,255,.12); }
.lang__btn[aria-pressed="true"] { background: var(--yellow); color: var(--green-950); }
.utility__links { align-items: center; }
@media (max-width: 420px) {
  .utility__links { gap: 10px; }
  .utility__links .ico { display: none; }
}

/* ---------- Thai typography ----------
   Thai has tall vowel and tone marks above/below the line, so
   headings need more line-height; Kanit is wider than the
   condensed Latin face, so big headings are scaled down a little. */
:lang(th) body, html:lang(th) { line-height: 1.65; }
html:lang(th) h1, html:lang(th) h2, html:lang(th) h3 { line-height: 1.3; letter-spacing: 0; }
.promo__title { white-space: pre-line; text-wrap: balance; }
html:lang(th) .promo__title { font-size: clamp(32px, 4.2vw, 52px); max-width: none; }
html:lang(th) .promo--side .promo__title { font-size: 30px; }
html:lang(th) .section__title { font-size: 28px; }
html:lang(th) .listing__title { font-size: clamp(28px, 3.6vw, 40px); }
html:lang(th) .pdp__title { font-size: clamp(26px, 3vw, 36px); }
html:lang(th) .cta-band h2 { font-size: 28px; }
html:lang(th) .card__name { line-height: 1.5; }
html:lang(th) .price { line-height: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; scroll-behavior: auto !important; }
}
