/* ==========================================================================
   Guangzhoulssc — Core stylesheet
   Household organization & storage products store
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --brand-900: #06301f;
  --brand-800: #0a4a30;
  --brand-700: #0e6242;
  --brand-600: #12805a;
  --brand-500: #1aa274;
  --brand-300: #7fd9b8;
  --brand-100: #e2f6ee;

  --accent-600: #c9761a;
  --accent-500: #ef9226;
  --accent-100: #fdf0dd;

  --ink-900: #10201a;
  --ink-700: #33473f;
  --ink-500: #62766e;
  --ink-300: #9aa9a2;

  --surface: #ffffff;
  --surface-2: #f5f8f6;
  --surface-3: #eaf0ed;
  --line: #dce5e0;

  --danger: #c0392b;
  --star: #f4a723;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(16, 32, 26, .06);
  --shadow-sm: 0 4px 14px rgba(16, 32, 26, .07);
  --shadow-md: 0 12px 30px rgba(16, 32, 26, .10);
  --shadow-lg: 0 26px 60px rgba(16, 32, 26, .16);

  --gradient-brand: linear-gradient(135deg, var(--brand-700), var(--brand-500));
  --gradient-accent: linear-gradient(135deg, var(--accent-600), var(--accent-500));
  --gradient-soft: linear-gradient(160deg, #f3faf7 0%, #ffffff 60%);

  --container: 1240px;
  --header-h: 74px;

  --font-display: "Marcellus", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Inter Tight", "Segoe UI", system-ui, -apple-system, Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 4.4vw, 3.35rem); }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.35rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--brand-800);
  color: #fff;
  padding: .8rem 1.2rem;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

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

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 22px;
}
.section { padding: clamp(48px, 7vw, 86px) 0; }
.section--tint { background: var(--surface-2); }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.section-head p { color: var(--ink-500); margin: 0; max-width: 56ch; }
.eyebrow {
  display: inline-block;
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand-600);
  font-weight: 600;
  margin-bottom: .6rem;
}
.text-muted { color: var(--ink-500); }
.grid { display: grid; gap: 22px; }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .78rem 1.5rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: .93rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--gradient-brand); color: #fff; box-shadow: 0 10px 24px rgba(14, 98, 66, .28); }
.btn--primary:hover { box-shadow: 0 16px 32px rgba(14, 98, 66, .34); }
.btn--accent { background: var(--gradient-accent); color: #fff; box-shadow: 0 10px 24px rgba(201, 118, 26, .3); }
.btn--ghost { border: 1.5px solid var(--line); background: var(--surface); color: var(--ink-900); }
.btn--ghost:hover { border-color: var(--brand-500); color: var(--brand-700); }
.btn--light { background: rgba(255, 255, 255, .16); color: #fff; border: 1.5px solid rgba(255, 255, 255, .5); backdrop-filter: blur(8px); }
.btn--block { width: 100%; }
.btn--sm { padding: .55rem 1.05rem; font-size: .85rem; }
.btn[disabled] { opacity: .55; pointer-events: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); background: rgba(255, 255, 255, .96); }

.topbar {
  background: var(--brand-900);
  color: #cfe9de;
  font-size: .78rem;
  letter-spacing: .04em;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 36px;
}
.topbar a:hover { color: #fff; }

.header-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  min-height: var(--header-h);
}

.logo { display: inline-flex; align-items: center; gap: .6rem; }
.logo-mark {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--gradient-brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.15rem;
  box-shadow: var(--shadow-sm);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text strong { font-family: var(--font-display); font-size: 1.28rem; font-weight: 400; }
.logo-text span { font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-500); }

.header-search { position: relative; }
.header-search input {
  width: 100%;
  padding: .72rem 2.9rem .72rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--line);
  background: var(--surface-2);
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.header-search input:focus { background: #fff; border-color: var(--brand-500); outline: none; }
.header-search button {
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gradient-brand);
  color: #fff;
}

.suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  z-index: 60;
  display: none;
}
.suggest.is-open { display: block; animation: fadeIn .22s var(--ease); }
.suggest a {
  display: flex;
  gap: .8rem;
  align-items: center;
  padding: .6rem .9rem;
  border-bottom: 1px solid var(--surface-3);
}
.suggest a:last-child { border-bottom: 0; }
.suggest a:hover, .suggest a:focus { background: var(--brand-100); }
.suggest img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.suggest .s-title { font-weight: 600; font-size: .9rem; }
.suggest .s-cat { font-size: .76rem; color: var(--ink-500); }
.suggest .s-empty { padding: .9rem; color: var(--ink-500); font-size: .9rem; }

.header-actions { display: flex; align-items: center; gap: .35rem; }
.icon-btn {
  position: relative;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink-700);
  transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.icon-btn:hover { background: var(--brand-100); color: var(--brand-700); transform: translateY(-2px); }
.badge {
  position: absolute;
  top: 4px; right: 2px;
  min-width: 19px; height: 19px;
  padding: 0 5px;
  border-radius: var(--radius-pill);
  background: var(--accent-500);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  display: grid; place-items: center;
}
.hamburger { display: none; }

.main-nav { border-top: 1px solid var(--line); }
.main-nav ul { display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a {
  display: block;
  padding: .78rem .95rem;
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink-700);
  position: relative;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: .95rem; right: .95rem; bottom: .45rem;
  height: 2px;
  background: var(--brand-500);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s var(--ease);
}
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.main-nav a[aria-current="page"] { color: var(--brand-700); }

/* Mobile Navigation Drawer */
.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;

  width: min(86vw, 340px);
  background: #fff;

  z-index: 200;

  transform: translateX(100%);
  visibility: hidden;

  transition: transform .35s var(--ease), visibility .35s var(--ease);

  padding: 1.4rem;
  overflow-y: auto;

  box-shadow: var(--shadow-lg);
}

/* Open menu */
.nav-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
}


/* Drawer links */
.nav-drawer a {
  display: block;
  padding: .85rem .4rem;
  border-bottom: 1px solid var(--surface-3);
  font-weight: 500;
}


/* Drawer header */
.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}


/* Background overlay */
.overlay {
  position: fixed;
  inset: 0;

  background: rgba(10, 32, 24, .5);
  backdrop-filter: blur(3px);

  z-index: 150;

  opacity: 0;
  visibility: hidden;

  transition: opacity .3s var(--ease),
              visibility .3s var(--ease);
}


/* Overlay active */
.overlay.is-open {
  opacity: 1;
  visibility: visible;
}


/* Desktop par drawer bilkul disable */
@media (min-width: 768px) {

  .nav-drawer,
  .overlay {
    display: none !important;
  }

}


@media (max-width: 767px) {

  html,
  body {
    overflow-x: hidden;
    width: 100%;
  }

  .nav-drawer {
    position: fixed;
    top: 0;
    right: 0;

    width: 85vw;
    max-width: 320px;
    height: 100dvh;

    background: #fff;

    transform: translateX(100%);
    visibility: hidden;

    z-index: 9999;

    padding: 1.5rem;

    box-sizing: border-box;
  }

  .nav-drawer.is-open {
    transform: translateX(0);
    visibility: visible;
  }


  .drawer-head {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }


  .overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;

    opacity: 0;
    visibility: hidden;
  }

  .overlay.is-open {
    opacity: 1;
    visibility: visible;
  }

}

/* ---------- Hero slider ---------- */
.hero { position: relative; overflow: hidden; background: var(--brand-900); }
.hero-track { position: relative; min-height: clamp(420px, 60vh, 600px); }
.hero-slide {
  position: absolute; inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04);
  transition: opacity .8s var(--ease), transform 1.2s var(--ease), visibility .8s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; transform: scale(1); }
.hero-slide::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(6, 48, 31, .92) 0%, rgba(6, 48, 31, .68) 45%, rgba(6, 48, 31, .25) 100%);
}
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-content { position: relative; max-width: 620px; color: #fff; padding: 3rem 0; }
.hero-content .eyebrow { color: var(--brand-300); }
.hero-content h1 { color: #fff; }
.hero-content p { color: #d5e8e0; font-size: 1.05rem; max-width: 48ch; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero-nav {
  position: absolute;
  bottom: 26px; right: 26px;
  display: flex; gap: .5rem;
  z-index: 3;
}
.hero-nav button {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .45);
  color: #fff;
  backdrop-filter: blur(8px);
  display: grid; place-items: center;
  transition: background-color .25s var(--ease);
}
.hero-nav button:hover { background: rgba(255, 255, 255, .32); }
.hero-dots {
  position: absolute;
  bottom: 34px; left: 0; right: 0;
  display: flex; justify-content: center; gap: .5rem;
  z-index: 3;
}
.hero-dots button {
  width: 30px; height: 4px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .38);
  transition: background-color .25s var(--ease), width .25s var(--ease);
}
.hero-dots button.is-active { background: #fff; width: 46px; }

/* ---------- Value strip ---------- */
.value-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.value-strip div { background: #fff; padding: 1.3rem 1.2rem; }
.value-strip strong { display: block; font-size: .96rem; }
.value-strip span { font-size: .82rem; color: var(--ink-500); }

/* ---------- Product card ---------- */
.product-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .32s var(--ease), box-shadow .32s var(--ease), border-color .32s var(--ease);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--brand-300); }
.pc-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--surface-2); }
.pc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.product-card:hover .pc-media img { transform: scale(1.08); }
.pc-tags { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: .35rem; }
.tag {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .28rem .55rem;
  border-radius: var(--radius-pill);
  background: var(--ink-900);
  color: #fff;
}
.tag--sale { background: var(--danger); }
.tag--new { background: var(--brand-600); }
.tag--out { background: var(--ink-500); }
.pc-float {
  position: absolute;
  top: 10px; right: 10px;
  display: flex; flex-direction: column; gap: .4rem;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.product-card:hover .pc-float, .pc-float:focus-within { opacity: 1; transform: translateX(0); }
.pc-float button {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  box-shadow: var(--shadow-sm);
  display: grid; place-items: center;
  color: var(--ink-700);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.pc-float button:hover, .pc-float button.is-active { background: var(--brand-600); color: #fff; }
.pc-body { padding: 1rem 1.05rem 1.2rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.pc-cat { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--brand-600); font-weight: 600; }
.pc-title { font-family: var(--font-body); font-size: .98rem; font-weight: 600; margin: 0; line-height: 1.35; }
.pc-title a:hover { color: var(--brand-700); }
.stars { display: inline-flex; align-items: center; gap: .28rem; font-size: .8rem; color: var(--ink-500); }
.stars .s { color: var(--star); letter-spacing: .05em; }
.pc-price { display: flex; align-items: baseline; gap: .5rem; margin-top: auto; }
.price { font-size: 1.12rem; font-weight: 700; color: var(--brand-800); }
.price--old { font-size: .88rem; color: var(--ink-300); text-decoration: line-through; font-weight: 500; }

/* ---------- Categories ---------- */
.cat-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: block;
  box-shadow: var(--shadow-xs);
}
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.cat-card:hover img { transform: scale(1.09); }
.cat-card span {
  position: absolute;
  left: 12px; right: 12px; bottom: 12px;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-pill);
  padding: .55rem .95rem;
  font-weight: 600;
  font-size: .88rem;
  display: flex; justify-content: space-between; align-items: center;
}

/* ---------- Promo ---------- */
.promo-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 22px; }
.promo {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 260px;
  display: flex;
  align-items: center;
  padding: 2.2rem;
  color: #fff;
}
.promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 48, 31, .9), rgba(6, 48, 31, .35)); }
.promo > div { position: relative; z-index: 2; max-width: 30ch; }
.promo h3 { color: #fff; font-size: 1.6rem; }
.promo p { color: #d3e8df; font-size: .92rem; }

/* ---------- Reviews ---------- */
.review-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-xs);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.review-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.review-card p { font-size: .95rem; color: var(--ink-700); }
.reviewer { display: flex; align-items: center; gap: .8rem; margin-top: 1.2rem; }
.avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #fff;
  display: grid; place-items: center;
  font-weight: 700;
}
.reviewer strong { display: block; font-size: .92rem; }
.reviewer span { font-size: .78rem; color: var(--ink-500); }

/* ---------- Newsletter ---------- */
.newsletter {
  background: var(--gradient-brand);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.4rem);
  color: #fff;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  align-items: center;
  box-shadow: var(--shadow-md);
}
.newsletter h2 { color: #fff; }
.newsletter p { color: #d6f0e6; margin: 0; }
.newsletter-form { display: flex; gap: .6rem; flex-wrap: wrap; }
.newsletter-form input {
  flex: 1 1 220px;
  padding: .85rem 1.2rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(255, 255, 255, .45);
  background: rgba(255, 255, 255, .14);
  color: #fff;
  backdrop-filter: blur(8px);
}
.newsletter-form input::placeholder { color: rgba(255, 255, 255, .72); }
.newsletter-form input:focus { outline: none; border-color: #fff; background: rgba(255, 255, 255, .22); }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-900); color: #b9d5c9; padding-top: 3.4rem; margin-top: 3rem; }
.site-footer h4 { font-family: var(--font-body); color: #fff; font-size: .95rem; font-weight: 700; letter-spacing: .04em; margin-bottom: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 2.4rem; padding-bottom: 2.6rem; }
.site-footer a:hover { color: #fff; }
.site-footer li { margin-bottom: .55rem; font-size: .9rem; }
.site-footer p { font-size: .9rem; }
.socials { display: flex; gap: .55rem; margin-top: 1rem; }
.socials a {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .1);
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.socials a:hover { background: var(--brand-600); transform: translateY(-3px); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 1.2rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .83rem;
}

/* ---------- Page header ---------- */
.page-head {
  background: var(--gradient-soft);
  border-bottom: 1px solid var(--line);
  padding: clamp(2rem, 5vw, 3.4rem) 0;
}
.breadcrumbs { font-size: .82rem; color: var(--ink-500); display: flex; gap: .45rem; flex-wrap: wrap; }
.breadcrumbs a:hover { color: var(--brand-700); }
.page-head h1 { margin: .5rem 0 .2rem; }

/* ---------- Shop layout ---------- */
.shop-layout { display: grid; grid-template-columns: 268px minmax(0, 1fr); gap: 30px; align-items: start; }
.filters {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem;
  position: sticky;
  top: calc(var(--header-h) + 16px);
  box-shadow: var(--shadow-xs);
}
.filter-group { padding-bottom: 1.1rem; margin-bottom: 1.1rem; border-bottom: 1px solid var(--surface-3); }
.filter-group:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.filter-group h3 { font-family: var(--font-body); font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-500); }
.check { display: flex; align-items: center; gap: .55rem; padding: .3rem 0; font-size: .9rem; cursor: pointer; }
.check input { accent-color: var(--brand-600); width: 16px; height: 16px; }
.range-row { display: flex; align-items: center; gap: .6rem; }
.range-row input[type="number"] {
  width: 100%;
  padding: .5rem .6rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
input[type="range"] { width: 100%; accent-color: var(--brand-600); }

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.3rem;
}
.select {
  padding: .6rem 1rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--line);
  background: #fff;
}
.filter-toggle { display: none; }

.pagination { display: flex; justify-content: center; gap: .4rem; margin-top: 2.4rem; flex-wrap: wrap; }
.pagination button {
  min-width: 42px; height: 42px;
  padding: 0 .7rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: #fff;
  font-weight: 600;
  font-size: .9rem;
  transition: all .2s var(--ease);
}
.pagination button:hover { border-color: var(--brand-500); color: var(--brand-700); }
.pagination button.is-active { background: var(--gradient-brand); color: #fff; border-color: transparent; }

.empty-state { text-align: center; padding: 3.5rem 1rem; color: var(--ink-500); }

/* ---------- Modal (quick view) ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0; visibility: hidden;
  transition: opacity .28s var(--ease), visibility .28s;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(10, 32, 24, .55); backdrop-filter: blur(4px); }
.modal-panel {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 880px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(18px) scale(.98);
  transition: transform .32s var(--ease);
}
.modal.is-open .modal-panel { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute; top: 12px; right: 12px;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  box-shadow: var(--shadow-sm);
  display: grid; place-items: center;
  z-index: 3;
}
.qv { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.qv-media { background: var(--surface-2); }
.qv-media img { width: 100%; height: 100%; object-fit: cover; }
.qv-body { padding: 1.9rem; }

/* ---------- Product detail ---------- */
.product-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: 42px; align-items: start; }
.gallery-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-2);
  aspect-ratio: 1 / 1;
  position: relative;
  cursor: zoom-in;
  border: 1px solid var(--line);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease); }
.gallery-main.is-zoomed img { transform: scale(2); }
.zoom-hint {
  position: absolute; bottom: 12px; right: 12px;
  background: rgba(255, 255, 255, .88);
  padding: .35rem .8rem;
  border-radius: var(--radius-pill);
  font-size: .76rem;
  color: var(--ink-700);
}
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.thumbs button {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  aspect-ratio: 1 / 1;
  background: var(--surface-2);
}
.thumbs button.is-active { border-color: var(--brand-500); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }

.price-row { display: flex; align-items: baseline; gap: .8rem; margin: .8rem 0 1rem; }
.price-row .price { font-size: 1.9rem; }
.meta-list { font-size: .88rem; color: var(--ink-500); display: grid; gap: .3rem; margin-bottom: 1.2rem; }
.meta-list strong { color: var(--ink-900); font-weight: 600; }
.in-stock { color: var(--brand-600); font-weight: 600; }
.out-stock { color: var(--danger); font-weight: 600; }

.qty {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.qty button { width: 40px; height: 44px; font-size: 1.1rem; color: var(--ink-700); transition: background-color .2s var(--ease); }
.qty button:hover { background: var(--surface-2); }
.qty input { width: 48px; height: 44px; text-align: center; border: 0; background: transparent; font-weight: 600; }
.buy-row { display: flex; gap: .7rem; flex-wrap: wrap; align-items: center; margin-bottom: 1.4rem; }

.tabs { display: flex; gap: .4rem; border-bottom: 1px solid var(--line); flex-wrap: wrap; margin-bottom: 1.6rem; }
.tabs button {
  padding: .8rem 1.2rem;
  font-weight: 600;
  font-size: .92rem;
  color: var(--ink-500);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.tabs button.is-active { color: var(--brand-700); border-color: var(--brand-600); }
.tab-panel { display: none; animation: fadeIn .35s var(--ease); }
.tab-panel.is-active { display: block; }
.spec-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.spec-table td { padding: .7rem 0; border-bottom: 1px solid var(--surface-3); }
.spec-table td:first-child { color: var(--ink-500); width: 220px; }
.feature-list li { display: flex; gap: .6rem; padding: .35rem 0; font-size: .94rem; }
.feature-list li::before { content: "✔"; color: var(--brand-600); font-weight: 700; }

/* ---------- Cart ---------- */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 30px; align-items: start; }
.cart-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  margin-bottom: 12px;
  animation: slideUp .35s var(--ease);
}
.cart-item img { width: 96px; height: 96px; border-radius: var(--radius-sm); object-fit: cover; }
.cart-item h3 { font-family: var(--font-body); font-size: .98rem; font-weight: 600; margin: 0 0 .2rem; }
.ci-actions { display: flex; flex-direction: column; align-items: flex-end; gap: .6rem; }
.link-danger { color: var(--danger); font-size: .84rem; font-weight: 600; }
.link-danger:hover { text-decoration: underline; }

.summary {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: calc(var(--header-h) + 16px);
}
.summary-row { display: flex; justify-content: space-between; padding: .48rem 0; font-size: .93rem; color: var(--ink-700); }
.summary-total {
  display: flex; justify-content: space-between;
  border-top: 1px solid var(--line);
  margin-top: .8rem; padding-top: .9rem;
  font-size: 1.2rem; font-weight: 700;
  color: var(--brand-800);
}
.coupon-row { display: flex; gap: .5rem; margin: 1rem 0; }
.coupon-row input { flex: 1; min-width: 0; }
.note { font-size: .8rem; color: var(--ink-500); }
.hint-ok { color: var(--brand-600); font-size: .84rem; font-weight: 600; }
.hint-err { color: var(--danger); font-size: .84rem; font-weight: 600; }

/* ---------- Forms ---------- */
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .35rem; }
.input, input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="search"], select, textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
textarea { min-height: 140px; resize: vertical; }
.input:focus, input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand-500); background: #fff; }
.error { color: var(--danger); font-size: .78rem; margin-top: .25rem; display: block; min-height: 1em; }
input.is-invalid, textarea.is-invalid, select.is-invalid { border-color: var(--danger); background: #fdf3f2; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-xs);
}
.radio-card {
  display: flex; gap: .8rem; align-items: flex-start;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: .9rem 1rem;
  margin-bottom: .7rem;
  cursor: pointer;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.radio-card:hover { border-color: var(--brand-300); }
.radio-card input { accent-color: var(--brand-600); margin-top: .25rem; }
.radio-card.is-selected { border-color: var(--brand-500); background: var(--brand-100); }
.radio-card strong { display: block; font-size: .93rem; }
.radio-card span { font-size: .82rem; color: var(--ink-500); }

/* ---------- FAQ accordion ---------- */
.accordion { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.acc-item + .acc-item { border-top: 1px solid var(--line); }
.acc-trigger {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.1rem 1.3rem;
  text-align: left;
  font-weight: 600;
  font-size: .98rem;
  transition: background-color .2s var(--ease);
}
.acc-trigger:hover { background: var(--surface-2); }
.acc-trigger .chev { transition: transform .3s var(--ease); color: var(--brand-600); flex-shrink: 0; }
.acc-trigger[aria-expanded="true"] .chev { transform: rotate(180deg); }
.acc-panel { max-height: 0; overflow: hidden; transition: max-height .38s var(--ease); }
.acc-panel > div { padding: 0 1.3rem 1.2rem; color: var(--ink-700); font-size: .93rem; }

/* ---------- Legal / prose ---------- */
.prose { max-width: 78ch; }
.prose h2 { font-size: 1.4rem; margin-top: 2.2rem; }
.prose h3 { font-size: 1.05rem; margin-top: 1.6rem; font-family: var(--font-body); font-weight: 700; }
.prose ul { list-style: disc; padding-left: 1.3rem; margin-bottom: 1rem; }
.prose li { margin-bottom: .4rem; }

/* ---------- About / team ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 42px; align-items: center; }
.media-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.4rem; text-align: center;
}
.stat strong { display: block; font-family: var(--font-display); font-size: 2rem; color: var(--brand-700); }
.stat span { font-size: .85rem; color: var(--ink-500); }
.team-card { text-align: center; }
.team-card img { border-radius: var(--radius); aspect-ratio: 1/1; object-fit: cover; margin-bottom: .9rem; }
.team-card strong { display: block; }
.team-card span { font-size: .85rem; color: var(--ink-500); }

/* ---------- Contact ---------- */
.map-placeholder {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    repeating-linear-gradient(45deg, #eaf0ed 0 14px, #f5f8f6 14px 28px);
  min-height: 320px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--ink-500);
}
.info-list li { display: flex; gap: .8rem; padding: .7rem 0; border-bottom: 1px solid var(--surface-3); font-size: .92rem; }
.info-list svg { color: var(--brand-600); flex-shrink: 0; }

/* ---------- Success page ---------- */
.success-panel {
  max-width: 680px; margin-inline: auto; text-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.4rem);
  box-shadow: var(--shadow-md);
}
.success-icon {
  width: 88px; height: 88px; border-radius: 50%;
  background: var(--gradient-brand); color: #fff;
  display: grid; place-items: center; margin: 0 auto 1.4rem;
  animation: pop .5s var(--ease);
}

/* ---------- Toast ---------- */
.toast-stack {
  position: fixed;
  bottom: 22px; left: 22px;
  z-index: 300;
  display: flex; flex-direction: column; gap: .6rem;
}
.toast {
  background: var(--ink-900);
  color: #fff;
  padding: .85rem 1.2rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-size: .9rem;
  display: flex; align-items: center; gap: .6rem;
  animation: slideUp .3s var(--ease);
}
.toast--ok { background: var(--brand-700); }
.toast--err { background: var(--danger); }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #fff;
  display: grid; place-items: center;
  box-shadow: var(--shadow-md);
  z-index: 130;
  opacity: 0; visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------- Animations ---------- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pop { 0% { transform: scale(.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
main { animation: fadeIn .45s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
