/* BeeCost Malaysia - site stylesheet
   Type family and scale: DM Sans body, Space Grotesk headings (Manus scale).
   Palette: warm ink, cream and honey (Kimi) + BeeCost brand orange, with lime
   for savings signals (Manus). Fonts are self-hosted (SIL OFL, see assets/fonts). */

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url("../fonts/dm-sans-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 100 1000;
  src: url("../fonts/dm-sans-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url("../fonts/space-grotesk-latin-ext-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url("../fonts/space-grotesk-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- tokens ---------- */

:root {
  --ink: #1e1206;
  --ink-2: #4a3a2c;
  --muted: #6f6357;
  --paper: #fbf8f2;
  --paper-2: #f4efe6;
  --white: #fff;
  --line: #e8e1d5;
  --line-2: #d9d0c1;

  --brand: #ea4c11;
  --brand-hover: #d04008;
  --brand-soft: #fff1ea;
  --honey: #e8a33d;
  --honey-soft: #fff2d7;
  --honey-ink: #8a5a12;
  --lime: #c4f56b;
  --lime-dark: #9bd540;
  --lime-ink: #4e7924;
  --lime-soft: #effbd9;
  --sky: #dceeff;
  --sky-ink: #32748a;

  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Space Grotesk", "DM Sans", system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Manus type scale */
  --fs-display: 68px;
  --fs-h2: 54px;
  --fs-cta: 48px;
  --fs-h3: 27px;
  --fs-h4: 18px;
  --fs-lede: 17px;
  --fs-body: 15px;
  --fs-nav: 13px;
  --fs-small: 12px;
  --fs-xs: 11px;
  --fs-2xs: 10px;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(30, 18, 6, .05), 0 1px 3px rgba(30, 18, 6, .06);
  --shadow-lg: 0 20px 60px rgba(30, 18, 6, .12);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --wrap: 1200px;
  --gutter: 28px;

  --z-header: 50;
  --z-menu: 60;
}

/* ---------- base ---------- */

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
svg { display: block; }
button, input { font: inherit; }
[hidden] { display: none !important; }

a { color: var(--brand); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--brand-hover); text-decoration: underline; }

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

h1, h2, h3, h4 {
  margin: 0 0 .5rem;
  font-family: var(--display);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: -.03em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h2); }
h2 { font-size: var(--fs-h3); }
h3 { font-size: var(--fs-h4); }
p { margin: 0 0 .85rem; text-wrap: pretty; }
ul, ol { margin: 0 0 .85rem; padding-left: 1.2rem; }
li { margin-bottom: .3rem; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 0; color: #fff; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color .25s;
}
.site-header.scrolled { border-bottom-color: var(--line); }

.header-bar {
  display: flex;
  align-items: center;
  gap: 34px;
  min-height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -.04em;
  color: var(--ink);
  flex: 0 0 auto;
}
.brand:hover { text-decoration: none; color: var(--ink); }
.brand img { width: 34px; height: 34px; border-radius: 10px; }
.brand .brand-name { color: var(--brand); }

.header-links { display: flex; gap: 30px; font-size: var(--fs-nav); font-weight: 500; }
.header-links a { color: var(--ink-2); padding: 4px 0; position: relative; }
.header-links a:hover { color: var(--brand); text-decoration: none; }
.header-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--brand); transition: width .3s var(--ease);
}
.header-links a:hover::after { width: 100%; }

.header-search { flex: 1 1 260px; min-width: 0; max-width: 480px; margin-left: auto; }

.search-form {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 5px 5px 5px 6px;
  box-shadow: var(--shadow);
  transition: border-color .2s, box-shadow .2s;
}
.search-form:focus-within { border-color: var(--ink-2); box-shadow: 0 12px 24px rgba(30, 18, 6, .08); }
.search-icon { width: 18px; height: 18px; color: var(--muted); flex: none; margin: 0 6px 0 8px; }
.search-form input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: var(--fs-nav);
  padding: 8px 4px;
  -webkit-appearance: none;
}
.search-form input::placeholder { color: var(--muted); }
.search-form input:focus-visible { outline: 0; }
.search-form button {
  border: 0;
  background: var(--brand);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 9px 15px;
  font-weight: 700;
  font-size: var(--fs-small);
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s;
}
.search-form button:hover { background: var(--brand-hover); }

.nav-burger {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 42px;
  height: 42px;
  position: relative;
  flex: none;
  margin-left: auto;
  border-radius: 10px;
}
.nav-burger span {
  position: absolute; left: 10px; right: 10px; height: 2px;
  background: var(--ink); transition: transform .3s var(--ease);
}
.nav-burger span:first-child { top: 15px; }
.nav-burger span:last-child { bottom: 15px; }
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-5px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 4px var(--gutter) 18px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.nav-mobile a {
  padding: 12px 2px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.nav-mobile a:hover { color: var(--brand); text-decoration: none; }
.nav-mobile a:last-child { border-bottom: 0; }
.nav-mobile.open { display: flex; }

.site-nav { border-top: 1px solid var(--line); background: var(--paper); }
/* category slider: sits inside .wrap so it spans exactly the container width */
.nav-scroll {
  position: relative;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 0 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
  scroll-padding-inline: 48px;
}
.nav-scroll::-webkit-scrollbar { height: 5px; }
.nav-scroll::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }
.nav-scroll a {
  flex: 0 0 auto;
  padding: 7px 14px;
  border-radius: 100px;
  color: var(--ink-2);
  background: var(--white);
  font-size: var(--fs-small);
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid var(--line-2);
  transition: background .2s, color .2s, border-color .2s;
}
.nav-scroll a:hover { background: var(--brand-soft); color: var(--brand); text-decoration: none; border-color: var(--brand); }
.nav-scroll a[aria-current="page"] { background: var(--ink); color: var(--paper); border-color: var(--ink); font-weight: 600; }
/* edge fades show there is more to scroll (classes set by site.js) */
.nav-scroll.can-right { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); }
.nav-scroll.can-left { -webkit-mask-image: linear-gradient(90deg, transparent, #000 56px); mask-image: linear-gradient(90deg, transparent, #000 56px); }
.nav-scroll.can-left.can-right { -webkit-mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent); }

/* ---------- layout ---------- */

main { padding: 28px 0 72px; overflow-x: clip; }

.breadcrumbs { font-size: var(--fs-small); color: var(--muted); margin-bottom: 18px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li { margin: 0; }
.breadcrumbs li[aria-current] {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60ch;
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-2); }

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin-bottom: 18px;
}
.panel > h2 { margin-bottom: 14px; }
.panel h2 + h2, .panel p + h2, .panel ul + h2 { margin-top: 26px; }
.panel > :last-child { margin-bottom: 0; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  margin: 46px 0 18px;
}
.section-head:first-child { margin-top: 0; }
.section-head h2 { margin: 0; font-size: var(--fs-h3); }
.section-head .meta { color: var(--muted); font-size: var(--fs-small); }

/* inner-page heading block */
.hero { padding: 6px 0 30px; max-width: 760px; }
.hero h1 { font-size: var(--fs-h2); line-height: 1; margin: 0 0 16px; }
.hero .lede { color: var(--muted); font-size: var(--fs-lede); line-height: 1.65; max-width: 62ch; margin: 0 0 18px; }
.hero .lede:last-child { margin-bottom: 0; }
.hero .small.muted { margin-bottom: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero .price-block { margin: 6px 0 12px; }

.topic-media {
  display: grid;
  grid-template-columns: minmax(180px, 230px) 1fr;
  align-items: center;
  gap: 24px;
  max-width: 760px;
  margin: 0 0 30px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.topic-media-image {
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--paper-2);
  aspect-ratio: 4 / 3;
}
.topic-media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.topic-media figcaption { display: grid; gap: 8px; }
.topic-media figcaption strong {
  font-family: var(--display);
  font-size: var(--fs-h3);
  line-height: 1.1;
  letter-spacing: -.025em;
}
.topic-media figcaption > span:last-child { color: var(--muted); font-size: var(--fs-small); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 18px;
  border-radius: 100px;
  border: 1px solid var(--line-2);
  background: var(--white);
  color: var(--ink);
  font-weight: 700;
  font-size: var(--fs-nav);
  cursor: pointer;
  transition: transform .2s ease, background .2s, border-color .2s, color .2s;
}
.btn:hover { text-decoration: none; border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }
.btn-primary { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 8px 18px rgba(30, 18, 6, .13); }
.btn-primary:hover { background: #3a2a1c; border-color: #3a2a1c; color: #fff; }
.btn-primary::after { content: "\2192"; color: var(--lime); font-size: 17px; line-height: 1; }

.notice {
  border: 1px solid #f3dfb8;
  background: var(--honey-soft);
  color: var(--honey-ink);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: var(--fs-nav);
  margin-bottom: 18px;
}
.notice strong { color: #6b4409; }

/* ---------- home hero ---------- */

.hero-home {
  position: relative;
  isolation: isolate;
  max-width: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 24px;
  margin-top: -28px;
  padding: 64px 0 72px;
  min-height: 560px;
}
/* full-bleed banner behind the hero grid: product-photo wall under a cream
   wash that is near-solid behind the copy and lighter behind the record card */
.hero-home::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);
  background:
    linear-gradient(90deg, rgba(251, 248, 242, .95) 0%, rgba(251, 248, 242, .93) 44%, rgba(251, 248, 242, .74) 58%, rgba(251, 248, 242, .6) 100%),
    url("../img/hero-products.jpg") center / cover no-repeat var(--paper-2);
  background:
    linear-gradient(90deg, rgba(251, 248, 242, .95) 0%, rgba(251, 248, 242, .93) 44%, rgba(251, 248, 242, .74) 58%, rgba(251, 248, 242, .6) 100%),
    image-set(url("../img/hero-products.webp") type("image/webp"), url("../img/hero-products.jpg") type("image/jpeg")) center / cover no-repeat var(--paper-2);
  box-shadow: inset 0 -1px 0 var(--line);
}
.hero-copy { padding-right: 0; }
.hero-copy h1 { font-size: var(--fs-display); line-height: .98; margin: 18px 0 22px; }
.eyebrow {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--honey-ink);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.5;
}
.eyebrow::before { content: "\2726"; color: var(--brand); font-size: 15px; line-height: 1.1; }
.hero-home .lede { font-size: var(--fs-lede); margin-bottom: 30px; color: var(--ink-2); }
.hero-home .hero-actions { margin-bottom: 28px; }

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0;
  padding: 0;
  font-size: var(--fs-xs);
  color: var(--ink-2);
}
.stat { display: flex; align-items: baseline; gap: 5px; margin: 0; }
.stat b { font-family: var(--display); font-size: var(--fs-h4); color: var(--ink); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }

.hero-visual {
  position: relative;
  z-index: 0;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* soft cream pool that lifts the cards off the product-photo wall */
.hero-visual::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -30px -70px;
  background: radial-gradient(closest-side, rgba(251, 248, 242, .92) 55%, rgba(251, 248, 242, 0));
  pointer-events: none;
}

.record-card {
  position: relative;
  z-index: 2;
  width: 480px;
  max-width: 100%;
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: 18px;
  padding: 24px 25px 19px;
  box-shadow: 0 1px 2px rgba(30, 18, 6, .06), 0 24px 60px rgba(30, 18, 6, .18);
  transform: rotate(2deg);
}
.record-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.record-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.record-thumb {
  width: 44px; height: 44px; border-radius: 10px; flex: none;
  background: var(--paper-2); object-fit: contain; border: 1px solid var(--line);
}
.record-title strong {
  display: -webkit-box;
  font-size: var(--fs-nav);
  line-height: 1.3;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.record-title small, .record-price small { display: block; color: var(--muted); font-size: var(--fs-2xs); margin-top: 3px; }
.record-badge {
  flex: none;
  font-size: var(--fs-2xs);
  font-weight: 700;
  color: var(--lime-ink);
  background: var(--lime-soft);
  padding: 6px 10px;
  border-radius: 100px;
}
.record-price { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: 22px; }
.record-price strong { font-family: var(--display); font-size: var(--fs-h3); letter-spacing: -.03em; display: block; margin: 4px 0; }
.record-price .price-was { font-size: var(--fs-small); }
.record-price .price-good { font-size: var(--fs-2xs); color: var(--lime-ink); font-weight: 600; }
.record-rating { text-align: right; }
.record-rating strong { font-size: var(--fs-h4); color: var(--ink-2); }

.record-bars { margin: 22px 0 6px; }
.record-bars .rating-bar { margin-bottom: 6px; }
.record-bars .rating-bar:last-child { margin-bottom: 0; }

.record-foot {
  border-top: 1px solid var(--paper-2);
  padding-top: 15px;
  margin-top: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: var(--fs-2xs);
}
.record-foot .legend-dot { width: 7px; height: 7px; background: var(--lime-dark); display: inline-block; border-radius: 50%; margin-right: 6px; }
.record-foot .track-link {
  background: var(--lime-soft); color: var(--lime-ink);
  border-radius: 6px; padding: 8px 10px; font-size: var(--fs-2xs); font-weight: 700;
  transition: background .2s;
}
.record-foot .track-link:hover { background: var(--lime); text-decoration: none; }

.float-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(30, 18, 6, .2);
  padding: 12px 13px;
}
.float-card small { display: block; font-size: 8px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.float-card strong { display: block; font-size: var(--fs-nav); margin-top: 2px; }
.float-icon { width: 29px; height: 29px; border-radius: 8px; display: grid; place-items: center; font-size: 17px; font-weight: 700; flex: none; }
.float-icon.green { background: var(--lime-soft); color: var(--lime-ink); }
.float-icon.yellow { background: var(--honey-soft); color: var(--honey-ink); }
.float-save { top: 22px; left: 0; transform: rotate(-7deg); }
.float-sold { right: 10px; bottom: 26px; transform: rotate(6deg); }
.trend { color: var(--lime-ink); font-size: var(--fs-2xs); margin-left: 7px; font-weight: 600; }

/* page-load sequence on the home hero (default state is visible; animation only adds motion) */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { opacity: 0; transform: rotate(2deg) translateY(20px); } to { opacity: 1; transform: rotate(2deg); } }
@keyframes rise-save { from { opacity: 0; transform: rotate(-7deg) translateY(14px); } to { opacity: 1; transform: rotate(-7deg); } }
@keyframes rise-sold { from { opacity: 0; transform: rotate(6deg) translateY(14px); } to { opacity: 1; transform: rotate(6deg); } }
/* only when scripting is available, so the hero is never blank if animations cannot run */
.js .hero-copy > * { animation: rise .7s var(--ease) both; }
.js .hero-copy > :nth-child(2) { animation-delay: .06s; }
.js .hero-copy > :nth-child(3) { animation-delay: .12s; }
.js .hero-copy > :nth-child(4) { animation-delay: .18s; }
.js .hero-copy > :nth-child(5) { animation-delay: .24s; }
.js .record-card { animation: settle .9s var(--ease) .15s both; }
.js .float-save { animation: rise-save .8s var(--ease) .55s both; }
.js .float-sold { animation: rise-sold .8s var(--ease) .65s both; }

/* ---------- home sections ---------- */

.home-section { margin-top: 56px; }
.home-section .section-head { margin: 0 0 22px; }
.home-section .section-head h2 { font-size: var(--fs-h2); line-height: 1; letter-spacing: -.035em; }
.home-section .section-head p { color: var(--muted); font-size: var(--fs-nav); line-height: 1.65; max-width: 300px; margin: 0; }

.feature-grid { display: grid; grid-template-columns: 1.35fr 1fr; grid-auto-rows: minmax(0, 1fr); gap: 16px; }
.feature-grid .lime-card { grid-row: 1 / 3; }
.feature-card {
  border-radius: 18px;
  min-height: 0;
  padding: 28px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.feature-card h3 { font-size: var(--fs-h3); line-height: 1.04; margin: 0 0 12px; }
.feature-card p, .feature-card li { color: var(--ink-2); font-size: var(--fs-nav); line-height: 1.6; }
.feature-card ul { padding-left: 1.1rem; margin: 0; }
.feature-card li { margin-bottom: 6px; }
.feature-card p { margin: 0 0 8px; }
.feature-card a { font-size: var(--fs-xs); font-weight: 700; display: inline-block; margin-top: auto; padding-top: 14px; }
.feature-card a::after { content: "\2197"; margin-left: 8px; font-size: 15px; }
.lime-card { background: var(--lime); }
.lime-card .feature-copy { max-width: 60%; }
.lime-card { padding-bottom: 150px; }
.lime-card a { color: var(--lime-ink); }
.lime-card li, .lime-card p { color: #2d4713; }
.sky-card { background: var(--sky); }
.sky-card a { color: var(--sky-ink); }
.honey-card { background: var(--honey-soft); }
.honey-card a { color: var(--honey-ink); }

.history-mini {
  position: absolute;
  right: -6px;
  bottom: -8px;
  width: 44%;
  background: rgba(255, 255, 255, .5);
  border-radius: 13px 0 0 0;
  padding: 14px 14px 18px;
}
.history-tag { font-size: 8px; color: #587e2e; letter-spacing: .1em; text-transform: uppercase; display: flex; justify-content: space-between; align-items: baseline; }
.history-tag b { font-size: var(--fs-small); color: var(--lime-ink); letter-spacing: 0; }
.history-mini svg { width: 100%; height: 105px; margin: 6px 0; overflow: visible; }
.history-mini .line { fill: none; stroke: #699f2e; stroke-width: 3; stroke-linejoin: round; }
.history-mini .point { fill: #fff; stroke: #699f2e; stroke-width: 3; }
.history-mini .area { fill: rgba(105, 159, 46, .18); }
.history-mini > span { font-size: 8px; color: #587e2e; letter-spacing: .12em; text-transform: uppercase; display: flex; justify-content: space-between; }
.history-mini .history-name {
  display: block; margin-top: 8px; padding-top: 0; font-size: var(--fs-2xs); font-weight: 600; color: #3f6520;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.history-mini .history-name::after { content: none; }

/* ---------- grids and cards ---------- */

.grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
.grid-wide { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.grid-cats { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .2s, transform .2s ease;
}
.card:hover { border-color: var(--line-2); transform: translateY(-2px); }

.card-thumb {
  aspect-ratio: 1 / 1;
  background: var(--white);
  border-bottom: 1px solid var(--paper-2);
  position: relative;
  overflow: hidden;
}
.card-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.card-thumb .missing {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: var(--fs-xs);
  text-align: center;
  padding: 10px;
  background: var(--paper-2);
}

.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 7px; flex: 1 1 auto; }
.card-title {
  font-family: var(--sans);
  font-size: var(--fs-nav);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
  margin: 0;
  color: var(--ink);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-wrap: wrap;
}
.card-title a { color: inherit; }
.card-title a:hover { color: var(--brand); text-decoration: none; }
.card-link { display: block; }
.price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-top: auto; }
.price { font-family: var(--display); font-weight: 700; font-size: var(--fs-h4); letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.price-was { color: var(--muted); text-decoration: line-through; font-size: var(--fs-small); }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--muted); font-size: var(--fs-xs); }
.card-meta > span:first-child:not(.chip) { color: var(--honey-ink); font-weight: 600; }
.card-meta:empty { display: none; }

.chip {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 100px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--fs-2xs);
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.6;
}
.chip-brand { background: var(--brand-soft); border-color: #ffd5c2; color: var(--brand); }
.chip-blue { background: var(--sky); border-color: #c5def6; color: var(--sky-ink); }

.cat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  transition: border-color .2s, transform .2s ease;
}
.cat-card:hover { text-decoration: none; border-color: var(--line-2); transform: translateY(-2px); color: var(--ink); }
.cat-card img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--paper-2); flex: 0 0 auto; }
.cat-card .cat-name { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: -.02em; line-height: 1.2; display: block; }
.cat-card .cat-count { color: var(--muted); font-size: var(--fs-xs); display: block; margin-top: 3px; }
.cat-card br { display: none; }

/* ---------- product detail ---------- */

.product-top { display: grid; gap: 18px; }

.gallery { display: grid; gap: 10px; }
.gallery-main {
  aspect-ratio: 1 / 1;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 18px; }
.gallery-main.is-empty {
  aspect-ratio: auto;
  min-height: 150px;
  padding: 20px;
  text-align: center;
  border-style: dashed;
  border-color: var(--line-2);
  background: var(--paper-2);
}
.thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.thumbs img {
  width: 56px; height: 56px; flex: 0 0 auto;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; object-fit: contain;
}

.buy-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; }
.buy-box h1 { font-size: var(--fs-h3); line-height: 1.1; margin-bottom: 16px; }
.price-block { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.price-block .price { font-size: 42px; letter-spacing: -.04em; line-height: 1; }
.price-block .price-was { font-size: var(--fs-body); }
.save-note {
  display: inline-block;
  color: var(--lime-ink);
  background: var(--lime-soft);
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 100px;
  margin: 6px 0 0;
}
.buy-box .small.muted { margin: 14px 0 0; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 18px 0 0; }
.fact { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 9px 12px; background: var(--paper); }
.fact dt { color: var(--muted); font-size: var(--fs-2xs); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 3px; }
.fact dd { margin: 0; font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: -.02em; word-break: break-word; }

.spec-table { width: 100%; border-collapse: collapse; font-size: var(--fs-nav); }
.spec-table th, .spec-table td { text-align: left; padding: 9px 4px; border-bottom: 1px solid var(--paper-2); vertical-align: top; }
.spec-table th { width: 44%; color: var(--muted); font-weight: 500; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }

.chart { width: 100%; height: auto; display: block; margin: 8px 0 14px; overflow: visible; }
.chart .gridline { stroke: #efe9dc; stroke-width: 1; }
.chart .area { fill: url(#chart-area); }
.chart .line { fill: none; stroke: #96cc3d; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.chart .point { fill: #fff; stroke: #96cc3d; stroke-width: 3; }
.chart .marker { stroke: #bfdc8b; stroke-dasharray: 3 3; }
.chart .axis { fill: var(--muted); font-size: 11px; font-family: var(--sans); }

.rating-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: var(--fs-small); color: var(--muted); font-variant-numeric: tabular-nums; }
.rating-bar > .nowrap:first-child { width: 42px; }
.rating-bar > .nowrap:last-child { min-width: 34px; text-align: right; color: var(--ink); font-weight: 600; }
.rating-bar .bar { flex: 1 1 auto; height: 8px; border-radius: 100px; background: var(--paper-2); overflow: hidden; }
.rating-bar .bar span { display: block; height: 100%; background: var(--honey); border-radius: 100px; }

/* ---------- lists ---------- */

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list a {
  font-size: var(--fs-small);
  font-weight: 500;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--white);
  color: var(--ink-2);
  transition: border-color .2s, color .2s, background .2s;
}
.tag-list a:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }

.letter-group { margin-bottom: 22px; }
.letter-group h3 {
  font-family: var(--display);
  font-size: var(--fs-h4);
  letter-spacing: -.02em;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
  margin-bottom: 10px;
}
.letter-group h3 .muted { font-family: var(--sans); font-size: var(--fs-small); font-weight: 500; letter-spacing: 0; }
.link-cols { columns: 1; column-gap: 28px; font-size: var(--fs-nav); list-style: none; padding: 0; margin: 0; }
.link-cols li { break-inside: avoid; margin-bottom: 7px; }
.link-cols a { color: var(--ink-2); }
.link-cols a:hover { color: var(--brand); }

[data-product-index] input[type="search"] {
  flex: 1 1 220px;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font-size: var(--fs-nav);
}
[data-product-index] input[type="search"]:focus { border-color: var(--ink-2); outline: 0; }

/* ---------- footer ---------- */

.site-footer { background: var(--ink); color: rgba(251, 248, 242, .72); padding: 64px 0 36px; margin-top: 40px; }
.site-footer a { color: rgba(251, 248, 242, .72); }
.site-footer a:hover { color: var(--paper); text-decoration: none; }
.footer-grid { display: grid; gap: 34px; grid-template-columns: 1fr; padding-bottom: 44px; }
.footer-about .brand { color: var(--paper); margin-bottom: 18px; }
.footer-about .brand:hover { color: var(--paper); }
.footer-about .brand-name { color: var(--honey); }
.footer-about p { font-size: var(--fs-nav); line-height: 1.65; max-width: 40ch; color: rgba(251, 248, 242, .72); }
.footer-about p:last-child { margin-bottom: 0; }
.site-footer h2 {
  font-family: var(--sans);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--honey);
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 9px; font-size: var(--fs-nav); }
.site-footer li a { transition: color .2s, padding-left .2s; }
.site-footer li a:hover { padding-left: 6px; }
.footer-bottom {
  color: rgba(251, 248, 242, .5);
  font-size: var(--fs-xs);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
}
.footer-bottom::before {
  content: "";
  display: block;
  flex: 1 1 100%;
  height: 1px;
  background: rgba(251, 248, 242, .16);
  margin-bottom: 14px;
}

/* ---------- utility ---------- */

.muted { color: var(--muted); }
.small { font-size: var(--fs-nav); }
.mono { font-family: var(--mono); font-size: var(--fs-small); }
.nowrap { white-space: nowrap; }
.stack > * + * { margin-top: 8px; }
.two-col { display: grid; gap: 18px; grid-template-columns: 1fr; }
.cluster { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------- breakpoints ---------- */

@media (min-width: 640px) {
  .link-cols { columns: 2; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
}

@media (min-width: 900px) {
  .product-top { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); align-items: start; }
  .two-col { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
  .link-cols { columns: 3; }
  .gallery-main { position: sticky; top: 150px; }
}

@media (max-width: 980px) {
  .hero-home { grid-template-columns: 1fr; padding-top: 48px; min-height: 0; }
  .hero-home::before {
    background:
      linear-gradient(180deg, rgba(251, 248, 242, .95) 0%, rgba(251, 248, 242, .93) 52%, rgba(251, 248, 242, .72) 72%, rgba(251, 248, 242, .66) 100%),
      url("../img/hero-products.jpg") center / cover no-repeat var(--paper-2);
    background:
      linear-gradient(180deg, rgba(251, 248, 242, .95) 0%, rgba(251, 248, 242, .93) 52%, rgba(251, 248, 242, .72) 72%, rgba(251, 248, 242, .66) 100%),
      image-set(url("../img/hero-products.webp") type("image/webp"), url("../img/hero-products.jpg") type("image/jpeg")) center / cover no-repeat var(--paper-2);
  }
  .hero-copy { padding-right: 0; text-align: center; }
  .hero-copy .eyebrow, .hero-actions, .stats { justify-content: center; }
  .hero-copy .lede { margin-left: auto; margin-right: auto; }
  .hero-visual { margin-top: 36px; }
  .feature-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
  .feature-grid .lime-card { grid-row: auto; grid-column: span 2; }
}

@media (max-width: 767px) {
  :root { --gutter: 20px; }
  .header-bar { flex-wrap: wrap; gap: 12px 16px; min-height: 68px; padding-top: 12px; padding-bottom: 12px; }
  .header-links { display: none; }
  .nav-burger { display: block; }
  .header-search { flex: 1 1 100%; max-width: none; order: 3; margin: 0; }
  .brand img { width: 30px; height: 30px; }
  .brand { font-size: 19px; }
  main { padding: 18px 0 56px; }
  .hero h1 { font-size: 43px; }
  .topic-media { grid-template-columns: 1fr; gap: 16px; padding: 16px; }
  .topic-media-image { max-height: 260px; }
  .hero-copy h1 { font-size: 53px; }
  .hero-home { margin-top: -18px; padding-top: 40px; padding-bottom: 44px; }
  .hero-home .lede { font-size: 15px; }
  .hero-visual { min-height: 0; padding: 30px 0 20px; }
  .record-card { width: 100%; transform: rotate(0); }
  .js .record-card { animation-name: rise; }
  .float-card { display: none; }
  .home-section { margin-top: 44px; }
  .home-section .section-head h2 { font-size: 43px; }
  .home-section .section-head p { max-width: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { padding: 24px; }
  .feature-grid .lime-card { grid-column: auto; padding-bottom: 150px; }
  .lime-card .feature-copy { max-width: none; }
  .history-mini { width: 62%; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .grid-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-card { padding: 10px 12px; gap: 10px; }
  .cat-card img { width: 40px; height: 40px; }
  .cat-card .cat-name { font-size: 14px; }
  .card-body { padding: 10px 12px 12px; }
  .panel { padding: 18px 18px; }
  .buy-box { padding: 20px; }
  .buy-box h1 { font-size: 22px; }
  .price-block .price { font-size: 34px; }
  .spec-table th { width: 40%; }
  .section-head { margin-top: 36px; }
  .site-footer { padding-top: 48px; }
}

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

@media print {
  .site-header, .site-footer, .hero-actions, .breadcrumbs, .float-card { display: none; }
  .hero-home::before { display: none; }
  body { background: #fff; }
  .hero-copy > *, .record-card { animation: none; }
  .record-card { transform: none; box-shadow: none; }
}
