/* ==========================================================================
   প্রকৃতির মিঠাই — storefront
   Palette lives in tokens so every theme keeps the same type and rhythm.
   ========================================================================== */

:root {
  --font-sans: 'Hind Siliguri', 'Noto Sans Bengali', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-latin: 'Poppins', 'Hind Siliguri', system-ui, sans-serif;
  --bg: #f7f3e8;
  --bg-soft: #f1ebdc;
  --surface: #fffdf7;
  --surface-2: #f4eee0;
  --surface-3: #ebe3d1;
  --ink: #1f2a18;
  --ink-soft: #3c4a33;
  --muted: #6d7665;
  --line: #e3dbc8;
  --line-strong: #d3c8b0;
  --brand: #2f6b1f;
  --brand-700: #245416;
  --brand-600: #357a24;
  --brand-100: #e8f0dd;
  --brand-050: #f1f6ea;
  --accent: #e6ae35;
  --accent-strong: #cf9420;
  --accent-soft: #fdf1cf;
  --accent-ink: #3b2a05;
  --danger: #b3382c;
  --danger-soft: #fbe9e6;
  --ok: #2c7a4b;
  --ok-soft: #e5f3ea;
  --info: #2c5f8a;
  --info-soft: #e6eff7;
  --warn: #9a6412;
  --warn-soft: #fbf0d8;
  --wa: #25d366;
  --wa-ink: #073b1e;
  --header-bg: rgba(247, 243, 232, .88);
  --drawer-bg: #fffdf7;
  --hero-overlay: linear-gradient(90deg, rgba(17, 37, 14, .9) 0%, rgba(17, 37, 14, .72) 42%, rgba(17, 37, 14, .18) 78%, rgba(17, 37, 14, .05) 100%);
  --shadow-sm: 0 2px 6px rgba(45, 38, 20, .05), 0 1px 2px rgba(45, 38, 20, .06);
  --shadow-md: 0 12px 30px rgba(45, 38, 20, .09), 0 3px 8px rgba(45, 38, 20, .05);
  --shadow-lg: 0 28px 70px rgba(30, 27, 15, .18);
  --radius: 22px;
  --radius-sm: 14px;
  --container: 1240px;
  color-scheme: light;
}

[data-theme="harvest"] {
  --bg: #fbf3e6;
  --bg-soft: #f4e9d7;
  --surface: #fffcf5;
  --surface-2: #f6eddc;
  --surface-3: #efe2ca;
  --ink: #2c2118;
  --ink-soft: #4a3a2a;
  --muted: #7a6954;
  --line: #e8dac3;
  --line-strong: #d9c6a6;
  --brand: #8a4a1f;
  --brand-700: #6d3714;
  --brand-600: #9c5728;
  --brand-100: #f6e6d6;
  --brand-050: #fbf2e8;
  --accent: #d99a2b;
  --accent-strong: #bd7f17;
  --accent-soft: #fbecc9;
  --accent-ink: #3e2a06;
  --header-bg: rgba(251, 243, 230, .9);
  --drawer-bg: #fffcf5;
  --hero-overlay: linear-gradient(90deg, rgba(48, 26, 10, .9) 0%, rgba(48, 26, 10, .7) 44%, rgba(48, 26, 10, .16) 100%);
}

[data-theme="rose"] {
  --bg: #fdf4f2;
  --bg-soft: #f9e9e6;
  --surface: #fffbfa;
  --surface-2: #f8ecea;
  --surface-3: #f2dedb;
  --ink: #2d1c21;
  --ink-soft: #4b333a;
  --muted: #7d636a;
  --line: #eed9d6;
  --line-strong: #e0c4c0;
  --brand: #8c3550;
  --brand-700: #71273f;
  --brand-600: #a0435f;
  --brand-100: #f7e2e7;
  --brand-050: #fcf0f2;
  --accent: #db8a63;
  --accent-strong: #c1704c;
  --accent-soft: #fbe7dd;
  --accent-ink: #3d1c0f;
  --header-bg: rgba(253, 244, 242, .9);
  --drawer-bg: #fffbfa;
  --hero-overlay: linear-gradient(90deg, rgba(53, 18, 28, .9) 0%, rgba(53, 18, 28, .68) 44%, rgba(53, 18, 28, .14) 100%);
}

[data-theme="night"] {
  --bg: #0c1410;
  --bg-soft: #0f1a14;
  --surface: #121f18;
  --surface-2: #17271d;
  --surface-3: #1d3025;
  --ink: #eaf1e5;
  --ink-soft: #ccd9c9;
  --muted: #9aa99a;
  --line: #24372b;
  --line-strong: #31493a;
  --brand: #82bf65;
  --brand-700: #a3d688;
  --brand-600: #70ad53;
  --brand-100: #1a2e20;
  --brand-050: #14241a;
  --accent: #e8bd54;
  --accent-strong: #f2ce72;
  --accent-soft: #2d2917;
  --accent-ink: #201803;
  --danger: #ef8474;
  --danger-soft: #331b18;
  --ok: #7ccb9b;
  --ok-soft: #16291d;
  --info: #9cc4e6;
  --info-soft: #16232e;
  --warn: #e3b264;
  --warn-soft: #2b2316;
  --wa: #2fbf6a;
  --wa-ink: #061f10;
  --header-bg: rgba(12, 20, 16, .88);
  --drawer-bg: #121f18;
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, .3);
  --shadow-md: 0 14px 34px rgba(0, 0, 0, .4);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, .55);
  --hero-overlay: linear-gradient(90deg, rgba(4, 12, 8, .94) 0%, rgba(4, 12, 8, .76) 44%, rgba(4, 12, 8, .22) 100%);
  color-scheme: dark;
}

/* ---------- reset ---------- */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
p { text-wrap: pretty; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}
.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: fixed; inset-inline-start: 16px; top: -80px; z-index: 200;
  background: var(--brand-700); color: #fff; padding: .7rem 1.1rem;
  border-radius: 0 0 12px 12px; transition: top .18s ease;
}
.skip-link:focus { top: 0; }
.muted { color: var(--muted); }
.block { display: block; }
.optional { color: var(--muted); font-weight: 400; font-size: .85em; }

.icon { width: 1.15em; height: 1.15em; flex: none; }
.eyebrow {
  font-size: .75rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brand); margin-bottom: .35rem;
}

/* ---------- buttons ---------- */

.btn {
  --btn-bg: var(--brand);
  --btn-ink: #fff;
  --btn-border: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 46px; padding: .62rem 1.25rem;
  background: var(--btn-bg); color: var(--btn-ink);
  border: 1px solid var(--btn-border); border-radius: 999px;
  font-weight: 600; font-size: .95rem; line-height: 1.2; text-align: center;
  transition: transform .16s ease, background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn .icon { width: 1.1em; height: 1.1em; }
.btn-dark { --btn-bg: var(--ink); --btn-ink: var(--bg); }
.btn-accent { --btn-bg: var(--accent); --btn-ink: var(--accent-ink); }
.btn-light { --btn-bg: var(--surface); --btn-ink: var(--ink); }
.btn-outline { --btn-bg: transparent; --btn-ink: var(--ink); --btn-border: var(--line-strong); }
.btn-outline:hover { --btn-bg: var(--surface); border-color: var(--brand); color: var(--brand); }
.btn-ghost-light { --btn-bg: rgba(255, 255, 255, .1); --btn-ink: #fff; --btn-border: rgba(255, 255, 255, .5); }
.btn-ghost-light:hover { --btn-bg: rgba(255, 255, 255, .2); }
.btn-wa { --btn-bg: var(--wa); --btn-ink: var(--wa-ink); }
.btn-danger { --btn-bg: var(--danger-soft); --btn-ink: var(--danger); --btn-border: transparent; }
.btn-danger:hover { --btn-bg: var(--danger); --btn-ink: #fff; }
.btn-block { width: 100%; }
.btn-lg { min-height: 52px; padding: .8rem 1.6rem; font-size: 1rem; }
.btn-sm { min-height: 38px; padding: .42rem .85rem; font-size: .85rem; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: transparent; border: 1px solid transparent; color: inherit;
  transition: background-color .16s ease, border-color .16s ease;
}
.icon-btn:hover { background: var(--surface-2); border-color: var(--line); }
.link-btn {
  display: inline-flex; align-items: center; gap: .35rem;
  background: none; border: 0; padding: 0; font-size: .82rem;
  color: var(--muted); text-decoration: underline; text-underline-offset: 3px;
}
.link-btn:hover { color: var(--brand); }
.link-btn.danger { color: var(--danger); }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .88rem; color: var(--brand); }
.link-arrow .icon { transition: transform .16s ease; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- announcement + header ---------- */

.announce {
  background: var(--brand-700); color: #fdf8e9;
  font-size: .8rem; letter-spacing: .02em; text-align: center;
  padding: .45rem 1rem;
}
.announce .container { display: flex; justify-content: center; align-items: center; gap: .5rem; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-grid {
  display: grid; grid-template-columns: auto minmax(220px, 1fr) auto;
  align-items: center; gap: 26px; padding-block: 12px;
}
.brand { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.brand-mark { width: 44px; height: 44px; border-radius: 12px; }
.brand-photo { border-radius: 50%; object-fit: cover; background: #fbf7e8; }
.brand-logo { width: auto; max-width: 190px; height: 48px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; min-width: 0; }
.brand-text strong { font-size: 1.14rem; letter-spacing: -.01em; white-space: nowrap; }
.brand-text small { font-size: .68rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.header-search {
  display: flex; align-items: center; gap: .25rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 4px 4px 16px;
  box-shadow: var(--shadow-sm); min-width: 0;
}
.header-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100); }
.header-search input {
  flex: 1; min-width: 0; border: 0; background: transparent;
  padding: .45rem 0; font-size: .9rem; outline: none;
}
.header-search input::placeholder { color: var(--muted); opacity: .8; }
.header-search button {
  display: inline-flex; align-items: center; gap: .35rem;
  background: var(--brand); color: #fff; border: 0;
  border-radius: 999px; padding: .52rem 1rem; font-size: .85rem; font-weight: 600;
}
.header-search button:hover { background: var(--brand-700); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.search-open { display: none; }

.theme-switch { position: relative; }
.theme-trigger {
  display: inline-flex; align-items: center; gap: .35rem;
  list-style: none; cursor: pointer; font-size: .8rem; font-weight: 600;
  color: var(--ink-soft); padding: .55rem .7rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
}
.theme-trigger::-webkit-details-marker { display: none; }
.theme-trigger:hover { border-color: var(--brand); color: var(--brand); }
.theme-panel {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 70;
  width: 258px; padding: 16px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-md);
}
.theme-title { font-size: .78rem; font-weight: 700; color: var(--muted); margin-bottom: .6rem; }
.theme-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.theme-option {
  display: flex; align-items: center; gap: 8px; text-align: left;
  background: var(--surface-2); border: 1px solid transparent;
  border-radius: 12px; padding: 8px; font-size: .78rem; font-weight: 600;
}
.theme-option:hover { border-color: var(--brand); }
.theme-option[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-050); }
.swatch { width: 26px; height: 26px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.swatch-fresh { background: linear-gradient(135deg, #2f6b1f 0 50%, #e6ae35 50% 100%); }
.swatch-harvest { background: linear-gradient(135deg, #8a4a1f 0 50%, #d99a2b 50% 100%); }
.swatch-rose { background: linear-gradient(135deg, #8c3550 0 50%, #db8a63 50% 100%); }
.swatch-night { background: linear-gradient(135deg, #0c1410 0 50%, #82bf65 50% 100%); }
.theme-note { margin-top: .6rem; font-size: .7rem; color: var(--muted); }

.cart-button {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--brand); color: #fff; border-radius: 999px;
  padding: .42rem .9rem .42rem .55rem; min-height: 46px;
  transition: background-color .16s ease, transform .16s ease;
}
.cart-button:hover { background: var(--brand-700); transform: translateY(-1px); }
.cart-icon-wrap { position: relative; display: inline-flex; }
.cart-icon-wrap .icon { width: 22px; height: 22px; }
.cart-count {
  position: absolute; top: -7px; right: -9px;
  min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--font-latin); font-size: .66rem; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--brand);
}
.cart-amount { font-family: var(--font-latin); font-size: .78rem; font-weight: 500; }

.cat-nav { background: var(--surface); border-top: 1px solid var(--line); }
.cat-nav-inner { display: flex; align-items: center; gap: 16px; min-height: 46px; }
.all-chip {
  display: inline-flex; align-items: center; gap: .35rem; flex: none;
  background: var(--accent-soft); color: var(--accent-ink);
  padding: .35rem .8rem; border-radius: 999px; font-size: .8rem; font-weight: 700;
}
.all-chip .icon { width: 14px; height: 14px; }
.cat-links { display: flex; align-items: center; gap: 20px; overflow-x: auto; scrollbar-width: none; }
.cat-links::-webkit-scrollbar { display: none; }
.cat-links a { white-space: nowrap; font-size: .85rem; color: var(--ink-soft); padding-block: 12px; border-bottom: 2px solid transparent; }
.cat-links a:hover { color: var(--brand); }
.cat-links a[aria-current="page"] { color: var(--brand); border-color: var(--brand); font-weight: 600; }
.nav-phone { display: flex; align-items: center; gap: .5rem; margin-left: auto; flex: none; padding-left: 16px; border-left: 1px solid var(--line); }
.nav-phone-icon { display: inline-flex; width: 32px; height: 32px; border-radius: 50%; background: var(--brand-100); color: var(--brand); align-items: center; justify-content: center; }
.nav-phone-icon .icon { width: 16px; height: 16px; }
.nav-phone small { display: block; font-size: .62rem; color: var(--muted); line-height: 1.2; }
.nav-phone strong { display: block; font-family: var(--font-latin); font-size: .78rem; line-height: 1.35; }

/* ---------- notices ---------- */

.notice-wrap { margin-top: 18px; }
.flash {
  display: flex; align-items: flex-start; gap: .55rem;
  padding: .75rem 1rem; border-radius: var(--radius-sm);
  font-size: .88rem; border: 1px solid transparent;
  background: var(--ok-soft); color: var(--ok);
}
.flash .icon { margin-top: .15rem; }
.flash-error { background: var(--danger-soft); color: var(--danger); }
.flash-warn { background: var(--warn-soft); color: var(--warn); }
.flash a { text-decoration: underline; font-weight: 600; }
.form-alert {
  background: var(--danger-soft); color: var(--danger);
  border-radius: var(--radius-sm); padding: .9rem 1rem; font-size: .88rem;
}
.form-alert strong { display: flex; align-items: center; gap: .4rem; margin-bottom: .3rem; }
.form-alert ul { list-style: disc; padding-left: 1.3rem; }

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

.hero-wrap { padding-top: 26px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; align-items: stretch; }
.hero-main {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 492px; border-radius: 30px; display: flex; align-items: center;
  background: #14260f; box-shadow: var(--shadow-md);
}
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-main::after { content: ''; position: absolute; inset: 0; background: var(--hero-overlay); z-index: 1; }
.hero-content { position: relative; z-index: 2; color: #fff; padding: 52px clamp(24px, 4.6vw, 60px); max-width: 610px; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .22);
  color: #f8f2dc; border-radius: 999px; padding: .35rem .8rem;
  font-size: .74rem; font-weight: 600; letter-spacing: .03em; margin-bottom: 1rem;
}
.hero-kicker .icon { width: 15px; height: 15px; color: var(--accent); }
.hero-content h1 { font-size: clamp(2rem, 4.2vw, 3.35rem); line-height: 1.14; letter-spacing: -.02em; max-width: 15ch; }
.hero-text { margin-top: .9rem; color: rgba(255, 255, 255, .86); font-size: 1.02rem; max-width: 44ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .45rem 1.1rem; margin-top: 1.6rem; font-size: .78rem; color: rgba(255, 255, 255, .9); }
.hero-badges span { display: inline-flex; align-items: center; gap: .35rem; }
.hero-badges .icon { width: 15px; height: 15px; color: var(--accent); }

.hero-side {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: 30px; min-height: 100%; display: flex; flex-direction: column;
  background: #14281b; box-shadow: var(--shadow-md);
}
.hero-side-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-side::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(9, 24, 14, .05) 18%, rgba(9, 24, 14, .72) 62%, rgba(9, 24, 14, .94) 100%);
}
.hero-side-content { position: relative; z-index: 2; color: #fff; padding: 26px 24px 24px; margin-top: auto; }
.hero-side-kicker { display: flex; align-items: center; gap: .35rem; color: var(--accent); font-size: .74rem; font-weight: 700; letter-spacing: .05em; }
.hero-side-content h2 { font-size: 1.5rem; line-height: 1.25; margin-top: .45rem; }
.hero-side-content p { margin-top: .45rem; font-size: .82rem; color: rgba(255, 255, 255, .78); }
.hero-side-content .btn { margin-top: 1rem; }
.hero-wa { display: inline-flex; align-items: center; gap: .35rem; margin-top: .85rem; font-size: .76rem; color: rgba(255, 255, 255, .82); }
.hero-wa:hover { color: #fff; }

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

.category-section { margin-top: 54px; }
.product-section { margin-top: 52px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 22px; }
.section-head h2 { font-size: clamp(1.35rem, 2.2vw, 1.85rem); }
.section-head.compact { margin-bottom: 18px; align-items: center; }
.section-link { display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; font-weight: 600; color: var(--brand); white-space: nowrap; }
.section-link .icon { transition: transform .16s ease; }
.section-link:hover .icon { transform: translateX(3px); }
.rail-controls { display: flex; gap: .4rem; }
.rail-btn {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
}
.rail-btn:hover { border-color: var(--brand); color: var(--brand); }
.rail-btn[data-rail="prev"] .icon { transform: rotate(180deg); }
.rail-controls .rail-btn:disabled { opacity: .35; cursor: default; }
.mobile-rail { display: none; justify-content: center; margin-top: 14px; }

.category-rail {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 2px 2px 8px; scrollbar-width: none;
}
.category-rail::-webkit-scrollbar { display: none; }
.category-card {
  flex: 0 0 148px; scroll-snap-align: start; text-align: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  padding: 14px 10px 16px; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.category-card:hover { transform: translateY(-3px); border-color: var(--brand); box-shadow: var(--shadow-sm); }
.category-thumb {
  display: flex; align-items: center; justify-content: center;
  width: 108px; height: 108px; margin: 0 auto 10px;
  border-radius: 18px; overflow: hidden; background: var(--surface-2);
}
.category-thumb img { width: 100%; height: 100%; object-fit: cover; }
.category-name { display: block; font-size: .9rem; font-weight: 600; }
.category-count { display: block; font-size: .72rem; color: var(--muted); margin-top: 1px; }

/* ---------- trust ---------- */

.trust-strip { margin-top: 50px; padding-block: 26px; background: var(--brand-100); border-block: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.trust-item { display: flex; align-items: center; gap: .8rem; }
.trust-icon {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--surface); color: var(--brand); box-shadow: var(--shadow-sm);
}
.trust-icon .icon { width: 22px; height: 22px; }
.trust-item strong { display: block; font-size: .9rem; line-height: 1.35; }
.trust-item p { font-size: .77rem; color: var(--muted); margin-top: 1px; }

/* ---------- product cards ---------- */

.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.product-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 20px; overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.product-card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.product-media { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--surface-2); }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .product-media img { transform: scale(1.035); }
.product-body { display: flex; flex-direction: column; flex: 1; padding: 14px 15px 16px; }
.product-kicker { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); font-weight: 700; }
.product-title { font-size: .98rem; font-weight: 600; line-height: 1.4; margin-top: 3px; min-height: 2.7em; }
.product-title a:hover { color: var(--brand); }
.product-unit { font-size: .77rem; color: var(--muted); margin-top: 1px; }
.price-row { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; margin-top: .5rem; }
.price { font-family: var(--font-latin); font-size: 1.06rem; font-weight: 600; letter-spacing: -.01em; }
.price-compare { font-family: var(--font-latin); font-size: .8rem; color: var(--muted); }
.stock-note { font-size: .7rem; color: var(--warn); margin-top: .2rem; font-weight: 600; }
.stock-ok { color: var(--ok); font-weight: 500; }
.badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; padding: .18rem .6rem;
  font-family: var(--font-latin); font-size: .68rem; font-weight: 600;
}
.badge-sale { background: var(--accent); color: var(--accent-ink); }
.badge-sold { background: var(--ink); color: var(--bg); }
.product-card .add-form { margin-top: auto; padding-top: 12px; }
.product-card .btn { min-height: 42px; font-size: .85rem; }
.product-card.is-soldout .product-media img { filter: grayscale(.6); opacity: .7; }
.product-card.is-soldout .price { color: var(--muted); }

/* ---------- promo + newsletter ---------- */

.promo-strip {
  position: relative; isolation: isolate; overflow: hidden;
  margin-top: 56px; border-radius: 28px; min-height: 280px;
  display: flex; align-items: center; box-shadow: var(--shadow-md);
}
.promo-strip > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.promo-strip::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(48, 34, 8, .88), rgba(48, 34, 8, .62) 44%, rgba(48, 34, 8, .05) 80%);
}
.promo-content { position: relative; z-index: 2; color: #fff; padding: 40px clamp(24px, 5vw, 56px); max-width: 560px; }
.promo-content .eyebrow { color: var(--accent); }
.promo-content h2 { font-size: clamp(1.5rem, 2.8vw, 2.15rem); }
.promo-content p { margin-top: .5rem; color: rgba(255, 255, 255, .84); font-size: .92rem; max-width: 42ch; }
.promo-content .btn { margin-top: 1.2rem; }

.newsletter-card {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  margin-top: 56px; padding: clamp(24px, 4vw, 40px);
  background: var(--brand-100); border-radius: 26px; border: 1px solid var(--line);
}
.newsletter-card h2 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); }
.newsletter-card p:not(.eyebrow) { color: var(--ink-soft); font-size: .9rem; max-width: 56ch; margin-top: .35rem; }
.newsletter-actions { display: flex; flex-wrap: wrap; gap: .6rem; flex: none; }

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

.site-footer { margin-top: 72px; background: #16260e; color: #e9e4d2; }
[data-theme="harvest"] .site-footer { background: #2d1a0c; }
[data-theme="rose"] .site-footer { background: #2c1620; }
[data-theme="night"] .site-footer { background: #08110c; }
.footer-grid { display: grid; grid-template-columns: 1.6fr .9fr .9fr 1.35fr; gap: 2.5rem; padding-block: 52px 40px; }
.footer-brand .brand-mark { background: rgba(255, 255, 255, .06); }
.footer-brand .brand-text strong { color: #fff; }
.footer-brand .brand-text small { color: #a8b8a0; }
.footer-brand p { margin-top: 1rem; font-size: .84rem; color: #a9b9a3; max-width: 34ch; }
.footer-social { display: flex; gap: .45rem; margin-top: 1rem; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .08); color: #f1ecd8;
}
.footer-social a:hover { background: var(--accent); color: var(--accent-ink); }
.footer-col h2 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: .9rem; }
.footer-col a, .footer-col span { display: flex; align-items: center; gap: .4rem; font-size: .84rem; color: #b6c4ae; padding-block: .26rem; }
.footer-col a:hover { color: #fff; }
.footer-col .icon { width: 15px; height: 15px; }
.footer-contact span { color: #9fb096; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
  padding-block: 18px 22px; border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .76rem; color: #93a58b;
}

/* ---------- cart drawer + toast ---------- */

.drawer-backdrop {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(8, 15, 7, .5); opacity: 0;
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  transition: opacity .25s ease;
}
body.cart-open .drawer-backdrop { opacity: 1; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100;
  width: min(430px, 100%); display: flex; flex-direction: column;
  background: var(--drawer-bg); box-shadow: var(--shadow-lg);
  transform: translateX(102%); transition: transform .28s cubic-bezier(.32, .72, .24, 1);
}
body.cart-open .cart-drawer { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.15rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: 6px 20px; }
.drawer-loading { color: var(--muted); font-size: .85rem; padding-block: 2rem; text-align: center; }
.drawer-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.drawer-line-img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--surface-2); }
.drawer-line-name { font-size: .88rem; font-weight: 600; line-height: 1.35; display: block; }
.drawer-line-unit { font-size: .72rem; color: var(--muted); }
.drawer-line-price { font-family: var(--font-latin); font-size: .82rem; margin-top: .25rem; }
.drawer-line-actions { display: flex; flex-direction: column; align-items: flex-end; gap: .4rem; }
.drawer-line-actions button {
  border: 1px solid var(--line); background: var(--surface); border-radius: 50%;
  width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted);
}
.drawer-line-actions button:hover { color: var(--danger); border-color: var(--danger); }
.drawer-empty { text-align: center; padding: 2.5rem 1rem; color: var(--muted); font-size: .9rem; }
.drawer-foot { padding: 16px 20px 20px; border-top: 1px solid var(--line); display: grid; gap: .55rem; }
.drawer-total { display: flex; justify-content: space-between; align-items: baseline; font-size: .92rem; }
.drawer-total strong { font-family: var(--font-latin); font-size: 1.15rem; }
.drawer-note { display: flex; align-items: center; gap: .35rem; font-size: .72rem; color: var(--muted); margin-bottom: .2rem; }
.drawer-note .icon { width: 14px; height: 14px; }

.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 120;
  transform: translate(-50%, 20px); opacity: 0;
  background: var(--ink); color: var(--bg);
  padding: .7rem 1.15rem; border-radius: 999px;
  font-size: .85rem; box-shadow: var(--shadow-md); pointer-events: none;
  transition: opacity .2s ease, transform .2s ease; max-width: calc(100% - 2rem);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  width: 56px; height: 56px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--wa); color: #fff; box-shadow: 0 10px 26px rgba(37, 211, 102, .38);
}
.wa-float:hover { transform: translateY(-2px); }
.wa-float .wa-icon { width: 30px; height: 30px; }
.wa-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--wa); opacity: .55;
  animation: wa-pulse 2.4s ease-out infinite;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: .5; }
  70% { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}

/* ---------- page hero + breadcrumb ---------- */

.page-hero { padding-block: 34px 10px; }
.page-hero .container { max-width: var(--container); }
.page-hero h1 { font-size: clamp(1.6rem, 3vw, 2.25rem); margin-top: .35rem; }
.page-hero p { color: var(--muted); margin-top: .35rem; font-size: .92rem; }
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; font-size: .76rem; color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb span:last-child { color: var(--ink-soft); }

/* ---------- shop ---------- */

.shop-layout { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 20px; }
.shop-layout > *, .shop-main, .shop-side, .shop-toolbar { min-width: 0; }
.filter-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.filter-card + .filter-card { margin-top: 16px; }
.filter-card h2 { font-size: .92rem; margin-bottom: .6rem; }
.filter-link { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: .85rem; padding: .38rem 0; color: var(--ink-soft); }
.filter-link span { font-family: var(--font-latin); font-size: .7rem; color: var(--muted); background: var(--surface-2); border-radius: 999px; padding: .05rem .45rem; }
.filter-link:hover { color: var(--brand); }
.filter-link.active { color: var(--brand); font-weight: 600; }
.filter-help { background: var(--brand-100); }
.filter-help > .icon { width: 28px; height: 28px; color: var(--brand); margin-bottom: .4rem; }
.filter-help p { font-size: .8rem; color: var(--ink-soft); margin: .25rem 0 .8rem; }
.shop-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .8rem; margin-bottom: 18px; }
.filter-chips { display: flex; gap: .4rem; min-width: 0; max-width: 100%; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.filter-chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; border: 1px solid var(--line); background: var(--surface);
  border-radius: 999px; padding: .32rem .75rem; font-size: .78rem; color: var(--ink-soft);
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.sort-form { display: flex; align-items: center; gap: .45rem; }
.sort-form label { font-size: .78rem; color: var(--muted); }
.sort-form select {
  border: 1px solid var(--line); background: var(--surface); border-radius: 999px;
  padding: .38rem .75rem; font-size: .8rem; outline: none;
}
.sort-form select:focus { border-color: var(--brand); }
.shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pagination { display: flex; align-items: center; justify-content: center; gap: .35rem; margin-top: 32px; flex-wrap: wrap; }
.page-link {
  min-width: 40px; height: 40px; padding: 0 .7rem;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); font-size: .82rem;
}
.page-link:hover { border-color: var(--brand); color: var(--brand); }
.page-link.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.page-link.disabled { opacity: .4; }
.page-info { font-size: .8rem; color: var(--muted); padding-inline: .4rem; }

/* ---------- empty ---------- */

.empty-state { text-align: center; padding: clamp(2.5rem, 7vw, 5rem) 1.25rem; background: var(--surface); border: 1px dashed var(--line-strong); border-radius: 26px; margin-top: 22px; }
.empty-icon { display: inline-flex; align-items: center; justify-content: center; width: 74px; height: 74px; border-radius: 50%; background: var(--brand-100); color: var(--brand); margin-bottom: 1rem; }
.empty-icon .icon { width: 34px; height: 34px; }
.empty-state h1, .empty-state h2 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); }
.empty-state > p { color: var(--muted); max-width: 46ch; margin: .5rem auto 0; font-size: .9rem; }
.empty-state .btn { margin-top: 1.2rem; }
.page-404 { margin-top: 40px; }
.empty-cart { margin-top: 0; }

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

.product-detail { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: clamp(24px, 4vw, 56px); align-items: start; margin-top: 22px; }
.product-gallery { position: sticky; top: 130px; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.product-gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.product-gallery .badge { top: 16px; left: 16px; font-size: .78rem; padding: .28rem .75rem; }
.product-info h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-top: .25rem; }
.product-unit-lg { color: var(--muted); font-size: .9rem; margin-top: .1rem; }
.detail-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.detail-price strong { font-family: var(--font-latin); font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 600; letter-spacing: -.02em; }
.detail-price s { font-family: var(--font-latin); color: var(--muted); font-size: .95rem; }
.discount-pill { background: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: .18rem .6rem; font-size: .72rem; font-weight: 700; }
.save-pill { background: var(--ok-soft); color: var(--ok); border-radius: 999px; padding: .18rem .6rem; font-size: .72rem; font-weight: 700; }
.stock-line { display: flex; align-items: center; gap: .35rem; font-size: .8rem; color: var(--ok); margin-top: .5rem; font-weight: 600; }
.stock-line .icon { width: 15px; height: 15px; }
.stock-line.stock-out { color: var(--danger); }
.detail-add { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .7rem; margin-top: 1.35rem; padding-top: 1.35rem; border-top: 1px solid var(--line); }
.qty-label { width: 100%; font-size: .76rem; font-weight: 700; color: var(--muted); margin-bottom: -.2rem; }
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); overflow: hidden; }
.qty-stepper button { width: 42px; height: 46px; background: transparent; border: 0; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; }
.qty-stepper button:hover { background: var(--surface-2); color: var(--brand); }
.qty-stepper input { width: 46px; height: 46px; border: 0; text-align: center; background: transparent; font-family: var(--font-latin); font-size: .95rem; -moz-appearance: textfield; outline: none; }
.qty-stepper input::-webkit-outer-spin-button, .qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-sm button { width: 34px; height: 34px; }
.qty-sm input { width: 38px; height: 34px; font-size: .85rem; }
.detail-add .btn { flex: 1; min-width: 200px; }
.detail-points { margin-top: 1.35rem; display: grid; gap: .7rem; }
.detail-points li { display: flex; gap: .55rem; align-items: flex-start; font-size: .8rem; color: var(--muted); }
.detail-points .icon { width: 19px; height: 19px; color: var(--brand); margin-top: .12rem; }
.detail-points strong { display: block; color: var(--ink); font-size: .84rem; }
.product-desc { margin-top: 1.5rem; padding-top: 1.35rem; border-top: 1px solid var(--line); }
.product-desc h2 { font-size: 1rem; margin-bottom: .35rem; }
.product-desc p { font-size: .88rem; color: var(--ink-soft); }

/* ---------- cart page ---------- */

.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 26px; align-items: start; margin-top: 20px; }
.cart-main { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 20px; }
.free-delivery-bar { background: var(--brand-050); border: 1px solid var(--line); border-radius: 14px; padding: .7rem .9rem; font-size: .8rem; color: var(--ink-soft); margin-bottom: 10px; }
.free-delivery-bar span { display: flex; align-items: center; gap: .4rem; }
.free-delivery-bar.done { background: var(--ok-soft); color: var(--ok); font-weight: 600; display: flex; align-items: center; gap: .4rem; }
.progress { height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; margin-top: .55rem; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--accent)); border-radius: inherit; transition: width .3s ease; }
.p-0 { width: 0; } .p-10 { width: 10%; } .p-20 { width: 20%; } .p-30 { width: 30%; }
.p-40 { width: 40%; } .p-50 { width: 50%; } .p-60 { width: 60%; } .p-70 { width: 70%; }
.p-80 { width: 80%; } .p-90 { width: 90%; } .p-100 { width: 100%; }
.cart-lines { display: grid; }
.cart-line { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.cart-line:last-child { border-bottom: 0; }
.cart-line-img img { width: 92px; height: 92px; border-radius: 14px; object-fit: cover; background: var(--surface-2); }
.cart-line-name { font-weight: 600; font-size: .93rem; line-height: 1.4; display: block; }
.cart-line-name:hover { color: var(--brand); }
.cart-line-unit { font-size: .76rem; color: var(--muted); }
.cart-line-price { font-family: var(--font-latin); font-size: .88rem; margin-top: .3rem; }
.cart-line-price span { color: var(--muted); font-size: .76rem; margin-left: .2rem; }
.cart-line-form { display: flex; align-items: center; gap: .7rem; margin-top: .55rem; flex-wrap: wrap; }
.cart-line-remove .icon-btn { color: var(--muted); width: 36px; height: 36px; }
.cart-line-remove .icon-btn:hover { color: var(--danger); background: var(--danger-soft); }
.cart-continue { padding-top: 14px; }
.summary-card { position: sticky; top: 124px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 20px; box-shadow: var(--shadow-sm); }
.summary-card h2 { font-size: 1.05rem; margin-bottom: .8rem; }
.summary-card dl { display: grid; gap: .5rem; }
.summary-card dl > div { display: flex; justify-content: space-between; gap: 1rem; font-size: .85rem; color: var(--ink-soft); }
.summary-card dd { font-family: var(--font-latin); font-size: .85rem; }
.summary-card .summary-total { border-top: 1px solid var(--line); padding-top: .6rem; margin-top: .2rem; font-weight: 700; color: var(--ink); font-size: .95rem; }
.summary-card .summary-total dd { font-size: 1.05rem; }
.summary-discount { color: var(--ok) !important; font-weight: 600; }
.summary-discount dd { color: var(--ok); }
.coupon-box { border: 1px dashed var(--line-strong); border-radius: 14px; padding: .7rem; margin-bottom: .9rem; background: var(--surface-2); }
.coupon-box.is-applied { border-style: solid; border-color: var(--ok); background: var(--ok-soft); }
.coupon-box.has-error { border-color: var(--danger); }
.coupon-form label { display: block; font-size: .72rem; font-weight: 700; color: var(--muted); margin-bottom: .35rem; }
.coupon-row { display: flex; gap: .4rem; }
.coupon-row input { min-width: 0; flex: 1; text-transform: uppercase; }
.coupon-row .btn { flex: none; }
.coupon-note { font-size: .7rem; margin-top: .4rem; font-weight: 600; }
.coupon-note.ok { color: var(--ok); }
.coupon-note.error { color: var(--danger); }
.coupon-box .link-btn { margin-top: .3rem; font-size: .72rem; color: var(--muted); }
.summary-note { display: flex; align-items: flex-start; gap: .4rem; background: var(--brand-050); border-radius: 12px; padding: .6rem .7rem; font-size: .72rem; color: var(--muted); margin-block: .9rem; }
.summary-note .icon { width: 15px; height: 15px; color: var(--brand); margin-top: .1rem; }
.summary-card .btn + .btn { margin-top: .5rem; }
.summary-foot { font-size: .7rem; color: var(--muted); margin-top: .7rem; text-align: center; }

/* ---------- checkout ---------- */

.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; margin-top: 20px; }
.checkout-form { display: grid; gap: 16px; }
.form-card { border: 1px solid var(--line); background: var(--surface); border-radius: 20px; padding: 20px; margin: 0; min-width: 0; }
.form-card legend { display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: 1rem; padding: 0 .3rem; }
.form-card legend span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--brand-100); color: var(--brand);
  font-family: var(--font-latin); font-size: .75rem; font-weight: 600;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid.three { grid-template-columns: repeat(3, 1fr); }
.field { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.field.span-2 { grid-column: 1 / -1; }
.field label, .field-label { font-size: .8rem; font-weight: 600; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  border: 1px solid var(--line); background: var(--bg);
  border-radius: 12px; padding: .6rem .75rem; font-size: .88rem;
  width: 100%; outline: none; transition: border-color .16s ease, box-shadow .16s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100); }
.field textarea { resize: vertical; min-height: 70px; }
.field .help { font-size: .7rem; color: var(--muted); }
.field .check { font-size: .82rem; }
.zone-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.zone-option { position: relative; display: block; cursor: pointer; }
.zone-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.zone-option > span { display: grid; gap: 1px; border: 1px solid var(--line); border-radius: 14px; padding: .7rem .85rem; background: var(--bg); transition: border-color .16s ease, background-color .16s ease; }
.zone-option strong { font-size: .85rem; }
.zone-option small { font-size: .7rem; color: var(--muted); }
.zone-option b { font-family: var(--font-latin); font-size: .8rem; margin-top: .2rem; }
.zone-option input:checked + span { border-color: var(--brand); background: var(--brand-050); box-shadow: inset 0 0 0 1px var(--brand); }
.zone-option input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.cod-box { display: flex; align-items: flex-start; gap: .8rem; background: var(--brand-050); border: 1px solid var(--line); border-radius: 14px; padding: .9rem; }
.cod-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: var(--surface); color: var(--brand); flex: none; }
.cod-box strong { font-size: .9rem; }
.cod-box p { font-size: .76rem; color: var(--muted); }
.cod-check { margin-left: auto; display: inline-flex; align-items: center; gap: .25rem; color: var(--ok); font-size: .73rem; font-weight: 700; white-space: nowrap; }
.checkout-privacy { display: flex; align-items: center; justify-content: center; gap: .35rem; font-size: .72rem; color: var(--muted); }
.checkout-privacy .icon { width: 14px; height: 14px; }
.wa-alt { text-align: center; border-top: 1px solid var(--line); padding-top: 1rem; }
.wa-alt > span { display: block; font-size: .72rem; color: var(--muted); margin-bottom: .4rem; }
.checkout-summary { position: sticky; top: 124px; }
.checkout-items { display: grid; gap: .6rem; margin-bottom: .9rem; max-height: 280px; overflow-y: auto; padding-right: 4px; }
.checkout-item { display: grid; grid-template-columns: 44px 1fr auto; gap: .55rem; align-items: center; }
.checkout-item img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: var(--surface-2); }
.checkout-item strong { display: block; font-size: .78rem; line-height: 1.35; }
.checkout-item small { font-size: .7rem; color: var(--muted); }
.checkout-item > span { font-family: var(--font-latin); font-size: .78rem; }

/* ---------- order success ---------- */

.order-success { padding-top: 34px; }
.success-card {
  max-width: 660px; margin: 0 auto; text-align: center;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 26px; padding: clamp(26px, 5vw, 46px); box-shadow: var(--shadow-sm);
}
.success-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--ok-soft); color: var(--ok); margin-bottom: .9rem;
}
.success-icon .icon { width: 30px; height: 30px; }
.success-card h1 { font-size: clamp(1.5rem, 3vw, 2rem); }
.order-number { margin-top: .6rem; font-size: .9rem; color: var(--muted); }
.order-number strong { font-family: var(--font-latin); color: var(--ink); font-size: 1rem; letter-spacing: .03em; }
.status-pill {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; padding: .18rem .65rem; font-size: .7rem; font-weight: 700;
  background: var(--surface-2); color: var(--muted); white-space: nowrap;
}
.status-pending { background: var(--warn-soft); color: var(--warn); }
.status-confirmed, .status-packed { background: var(--info-soft); color: var(--info); }
.status-shipped { background: var(--brand-100); color: var(--brand); }
.status-delivered { background: var(--ok-soft); color: var(--ok); }
.status-cancelled { background: var(--danger-soft); color: var(--danger); }
.success-card .status-pill { margin-top: .65rem; padding: .25rem .8rem; font-size: .76rem; }
.success-text { margin-top: .8rem; color: var(--muted); font-size: .88rem; }
.success-card > .btn { margin-top: 1rem; }
.success-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .55rem; margin-top: 1.1rem; }
.order-details { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 960px; margin: 22px auto 0; }
.detail-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.detail-card h2 { font-size: 1rem; margin-bottom: .7rem; }
.order-line { display: grid; grid-template-columns: 48px 1fr auto; gap: .55rem; align-items: center; padding-block: .4rem; border-bottom: 1px solid var(--line); }
.order-line img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; }
.order-line strong { display: block; font-size: .8rem; line-height: 1.35; }
.order-line small { font-size: .7rem; color: var(--muted); }
.order-line > span { font-family: var(--font-latin); font-size: .76rem; }
.order-line + dl { margin-top: .6rem; }
.detail-card dl { display: grid; gap: .35rem; }
.detail-card dl > div { display: flex; justify-content: space-between; gap: 1rem; font-size: .8rem; color: var(--muted); }
.detail-card dd { color: var(--ink); text-align: right; }
.detail-card .summary-total { border-top: 1px solid var(--line); margin-top: .35rem; padding-top: .45rem; font-weight: 700; color: var(--ink); }
.info-list > div { border-bottom: 1px dashed var(--line); padding-bottom: .35rem; }
.info-list > div:last-child { border-bottom: 0; }
.cod-note { display: flex; align-items: center; gap: .35rem; margin-top: .8rem; font-size: .72rem; color: var(--muted); }
.cod-note .icon { width: 14px; height: 14px; }
.order-help { text-align: center; margin-top: 20px; font-size: .8rem; color: var(--muted); }
.order-help a { color: var(--brand); font-weight: 600; }

/* ---------- responsive ---------- */

@media (max-width: 1180px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 300px; }
  .header-grid { gap: 18px; }
  .footer-grid { grid-template-columns: 1.4fr .8fr .8fr 1.2fr; gap: 1.8rem; }
}

@media (max-width: 1024px) {
  .nav-phone { display: none; }
  .shop-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 20px; }
  .cart-layout { grid-template-columns: minmax(0, 1fr) 330px; }
  .checkout-layout { grid-template-columns: minmax(0, 1fr) 340px; }
  .product-detail { gap: 30px; }
}

@media (max-width: 900px) {
  .header-grid { grid-template-columns: auto 1fr auto; }
  .search-open { display: inline-flex; }
  .header-search {
    position: absolute; left: 0; right: 0; top: 100%; margin-inline: 1.25rem;
    margin-top: 6px; opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    z-index: 60;
  }
  .header-search.is-open { opacity: 1; visibility: visible; transform: none; }
  .header-actions { gap: 6px; }
  .theme-trigger span { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-main { min-height: 440px; }
  .hero-side { min-height: 330px; }
  .hero-side-content { padding-top: 70px; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-layout { grid-template-columns: 1fr; }
  .shop-side { display: none; }
  .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .summary-card, .checkout-summary { position: static; }
  .checkout-summary { order: -1; }
  .product-gallery { position: static; }
  .product-detail { grid-template-columns: 1fr; }
  .product-gallery { max-width: 560px; }
  .order-details { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .newsletter-card { flex-direction: column; align-items: flex-start; }
  .newsletter-actions { width: 100%; }
  .newsletter-actions .btn { flex: 1; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 1.75rem, var(--container)); }
  .announce { font-size: .72rem; }
  .header-grid { padding-block: 10px; gap: 10px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-text strong { font-size: 1rem; }
  .brand-text small { display: none; }
  .cart-amount { display: none; }
  .cart-button { padding: .4rem .5rem; min-height: 42px; }
  .theme-switch { display: none; }
  .cat-nav-inner { gap: 10px; min-height: 42px; }
  .all-chip { font-size: .74rem; padding: .28rem .65rem; }
  .cat-links { gap: 15px; }
  .cat-links a { font-size: .79rem; }
  .hero-wrap { padding-top: 14px; }
  .hero-main { min-height: 420px; border-radius: 22px; }
  .hero-content { padding: 32px 22px; }
  .hero-content h1 { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  .hero-text { font-size: .9rem; }
  .hero-badges { font-size: .72rem; gap: .3rem .8rem; }
  .hero-actions .btn { flex: 1; }
  .hero-side { min-height: 300px; border-radius: 22px; }
  .category-section { margin-top: 36px; }
  .product-section { margin-top: 38px; }
  .section-head { margin-bottom: 16px; }
  .section-head h2 { font-size: 1.35rem; }
  .section-link { font-size: .78rem; }
  .rail-controls { display: none; }
  .mobile-rail { display: flex; }
  .category-card { flex: 0 0 128px; padding: 10px 8px 12px; }
  .category-thumb { width: 94px; height: 94px; }
  .trust-strip { margin-top: 36px; padding-block: 20px; }
  .trust-item { gap: .55rem; }
  .trust-icon { width: 40px; height: 40px; }
  .trust-item strong { font-size: .82rem; }
  .trust-item p { font-size: .7rem; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-body { padding: 11px 11px 13px; }
  .product-title { font-size: .86rem; min-height: 2.8em; }
  .product-unit { font-size: .7rem; }
  .price { font-size: .95rem; }
  .price-compare { font-size: .72rem; }
  .product-card .btn { min-height: 40px; font-size: .76rem; padding-inline: .5rem; }
  .product-kicker { font-size: .62rem; }
  .stock-note { font-size: .65rem; }
  .promo-strip { margin-top: 38px; border-radius: 22px; min-height: 300px; }
  .promo-content { padding: 26px 22px; }
  .newsletter-card { margin-top: 38px; border-radius: 20px; }
  .site-footer { margin-top: 48px; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; padding-block: 36px 24px; }
  .footer-bottom { flex-direction: column; }
  .shop-toolbar { flex-direction: column; align-items: stretch; }
  .filter-chips { flex: 1 1 100%; width: 100%; }
  .sort-form { justify-content: space-between; min-width: 0; }
  .sort-form select { flex: 1; min-width: 0; max-width: 100%; }
  .field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]),
  .field select,
  .field textarea,
  .header-search input,
  .qty-stepper input,
  .sort-form select { font-size: 16px; }
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cart-main { padding: 14px; }
  .cart-line { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 10px; }
  .cart-line-img img { width: 64px; height: 64px; }
  .form-grid, .form-grid.three { grid-template-columns: 1fr; }
  .zone-grid { grid-template-columns: 1fr; }
  .form-card { padding: 16px; }
  .cod-box { flex-wrap: wrap; }
  .cod-check { margin-left: 0; }
  .order-details { gap: 12px; }
  .detail-card { padding: 16px; }
  .wa-float { width: 50px; height: 50px; right: 14px; bottom: 14px; }
  .wa-float .wa-icon { width: 26px; height: 26px; }
  .toast { bottom: 76px; }
  .empty-state { border-radius: 20px; }
}

@media (max-width: 390px) {
  .product-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .brand-text strong { font-size: .92rem; }
  .hero-content { padding: 26px 18px; }
  .hero-kicker { font-size: .66rem; }
  .hero-side-content { padding-inline: 18px; }
  .hero-side-content h2 { font-size: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .wa-ring { display: none; }
}
