/* ==========================================================================
   Mall of Rawalpindi - Storefront stylesheet
   1. Tokens & reset
   2. Layout primitives
   3. Buttons, badges & forms
   4. Header, navigation & search
   5. Hero & home sections
   6. Product cards & grids
   7. Shop listing & filters
   8. Product detail
   9. Cart, checkout & account
   10. Footer, toasts & utilities
   11. Responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens & reset
   -------------------------------------------------------------------------- */
:root {
  --violet-50:  #fff7e0;
  --violet-100: #ffedc2;
  --violet-200: #ffdd8f;
  --violet-300: #ffcc4d;
  --violet-400: #f9b21c;
  --violet-500: #f9a100;
  --violet-600: #f9a100;
  --violet-700: #e08e00;
  --violet-800: #b87200;
  --violet-900: #8f5800;

  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;

  --slate-50:  #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  --green-500: #10b981;
  --green-600: #059669;
  --red-500:   #ef4444;
  --red-600:   #dc2626;
  --blue-500:  #3b82f6;
  --blue-600:  #2563eb;

  --brand:       #f9a100;
  --brand-dark:  #b87200;
  --brand-light: var(--violet-50);
  --accent:      var(--amber-500);
  --ink:         var(--slate-900);
  --ink-soft:    var(--slate-500);
  --line:        var(--slate-200);
  --surface:     #ffffff;
  --canvas:      #f7f7fb;

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --radius-xl: 30px;

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .08), 0 1px 2px rgba(15, 23, 42, .04);
  --shadow:    0 4px 16px rgba(15, 23, 42, .08);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, .10);
  --shadow-lg: 0 20px 55px rgba(15, 23, 42, .16);
  --shadow-brand: 0 10px 30px rgba(109, 40, 217, .28);

  --header-h: 132px;
  --container: 1280px;

  --ease: cubic-bezier(.4, 0, .2, 1);
  --font: "Segoe UI", Roboto, "Helvetica Neue", system-ui, -apple-system, "Noto Sans",
          Arial, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--canvas);
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; }

h1, h2, h3, h4, h5 { margin: 0 0 .5rem; line-height: 1.22; font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2.05rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.02rem; }
p  { margin: 0 0 1rem; }

::selection { background: var(--violet-200); color: var(--violet-900); }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

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

/* --------------------------------------------------------------------------
   2. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.section { padding: clamp(2.2rem, 5vw, 3.6rem) 0; }
.section--tight { padding: 1.6rem 0; }
.section--alt { background: var(--surface); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.7rem;
  flex-wrap: wrap;
}
.section-head__text { max-width: 640px; }
.section-head p { color: var(--ink-soft); margin: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: .45rem;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--violet-600));
}

.grid { display: grid; gap: 1.1rem; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.stack   { display: flex; flex-direction: column; gap: .6rem; }
.row     { display: flex; align-items: center; gap: .7rem; }
.row--wrap { flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.spacer  { flex: 1; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card--pad { padding: 1.35rem; }

.divider { height: 1px; background: var(--line); border: 0; margin: 1.4rem 0; }

/* --------------------------------------------------------------------------
   3. Buttons, badges & forms
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .72rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  font-size: .92rem;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform .16s var(--ease), box-shadow .2s var(--ease),
              background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn:hover  { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn.is-disabled { opacity: .5; pointer-events: none; box-shadow: none; }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary { --btn-bg: linear-gradient(135deg, var(--violet-600), var(--violet-800)); box-shadow: var(--shadow-brand); }
.btn--dark    { --btn-bg: var(--slate-900); }
.btn--accent  { --btn-bg: linear-gradient(135deg, var(--amber-400), var(--amber-600)); --btn-fg: var(--slate-900); }
.btn--success { --btn-bg: linear-gradient(135deg, var(--green-500), var(--green-600)); }
.btn--danger  { --btn-bg: linear-gradient(135deg, var(--red-500), var(--red-600)); }
.btn--ghost   { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--violet-300); color: var(--brand); background: var(--violet-50); }
.btn--light   { --btn-bg: #fff; --btn-fg: var(--brand); }
.btn--sm      { padding: .48rem .9rem; font-size: .82rem; }
.btn--lg      { padding: .95rem 1.9rem; font-size: 1rem; }
.btn--block   { display: flex; width: 100%; }
.btn--icon    { padding: .55rem; border-radius: 999px; width: 40px; height: 40px; }

.link-underline {
  font-weight: 700;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
}
.link-underline:hover { text-decoration: underline; }
.link-underline svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-underline:hover svg { transform: translateX(3px); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .22rem .6rem;
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: var(--slate-100);
  color: var(--slate-700);
}
.badge--brand   { background: var(--violet-100); color: var(--violet-800); }
.badge--sale    { background: var(--red-500); color: #fff; }
.badge--new     { background: var(--green-500); color: #fff; }
.badge--hot     { background: var(--amber-500); color: var(--slate-900); }
.badge--out     { background: var(--slate-200); color: var(--slate-600); }
.badge--soft    { background: var(--violet-50); color: var(--violet-700); }

/* --- forms --- */
.field { margin-bottom: 1rem; }
.field__label {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  margin-bottom: .38rem;
  color: var(--slate-700);
}
.field__hint { font-size: .78rem; color: var(--ink-soft); margin-top: .3rem; }
.field__error { font-size: .8rem; color: var(--red-600); margin-top: .3rem; font-weight: 600; }

.input, .select, .textarea {
  width: 100%;
  padding: .72rem .95rem;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font-size: .94rem;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--slate-300); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--violet-500);
  box-shadow: 0 0 0 4px var(--violet-100);
}
.input::placeholder, .textarea::placeholder { color: var(--slate-400); }
.textarea { min-height: 120px; resize: vertical; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .8rem center;
  background-size: 16px;
  padding-right: 2.4rem;
}
.input.is-error, .select.is-error { border-color: var(--red-500); }

.check {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  cursor: pointer;
  font-size: .88rem;
  user-select: none;
}
.check input { width: 18px; height: 18px; margin: .12rem 0 0; accent-color: var(--brand); flex: none; cursor: pointer; }

.form-grid { display: grid; gap: 0 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid .span-2 { grid-column: 1 / -1; }

/* --- qty stepper --- */
.qty {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
}
.qty button {
  width: 36px; height: 36px;
  border: 0; background: transparent;
  font-size: 1.1rem; font-weight: 700; color: var(--slate-600);
  display: grid; place-items: center;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.qty button:hover:not(:disabled) { background: var(--violet-50); color: var(--brand); }
.qty button:disabled { opacity: .35; cursor: not-allowed; }
.qty input {
  width: 44px; height: 36px;
  border: 0; text-align: center; font-weight: 700;
  font-size: .95rem; -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty--sm button { width: 30px; height: 30px; font-size: .95rem; }
.qty--sm input  { width: 34px; height: 30px; font-size: .85rem; }

/* --------------------------------------------------------------------------
   4. Header, navigation & search
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--slate-900);
  color: var(--slate-300);
  font-size: .8rem;
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 38px; }
.topbar__links { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; }
.topbar a:hover { color: #fff; }
.topbar__promo { color: var(--amber-400); font-weight: 700; }
.topbar__phone { display: inline-flex; align-items: center; gap: .35rem; }
.topbar__phone svg { width: 14px; height: 14px; }

.header {
  background: linear-gradient(90deg, #bfa100 0%, var(--brand) 100%);
  border-bottom: 1px solid rgba(255,255,255,.2);
  position: sticky;
  top: 0;
  z-index: 60;
  color: #fff;
}
.header__main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.5rem;
  min-height: 74px;
}

.logo { display: inline-flex; align-items: center; gap: .65rem; flex: none; }
.logo__img { height: 52px; width: auto; flex: none; border-radius: 10px; object-fit: contain; }
.logo__mark {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--violet-700), var(--violet-900));
  color: #fff;
  display: grid; place-items: center;
  font-weight: 900; font-size: 1.05rem; letter-spacing: -.04em;
  box-shadow: var(--shadow-brand);
  flex: none;
}
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__name { font-weight: 900; font-size: 1.06rem; letter-spacing: -.03em; color: #fff; }
.logo__tag  { font-size: .66rem; color: rgba(255,255,255,.9); font-weight: 700; text-transform: uppercase; letter-spacing: .11em; }

.searchbar { position: relative; }
.searchbar__form { display: flex; gap: .5rem; }
.searchbar__input {
  flex: 1; min-width: 0;
  padding: .68rem 1rem .68rem 2.6rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--slate-50);
  font-size: .92rem;
  transition: border-color .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease);
}
.searchbar__input:focus {
  outline: none; background: #fff;
  border-color: var(--violet-500);
  box-shadow: 0 0 0 4px var(--violet-100);
}
.searchbar__icon {
  position: absolute; left: .95rem; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--slate-400); pointer-events: none;
}
.searchbar__btn { flex: none; }

.searchbar__panel {
  position: absolute; top: calc(100% + .5rem); left: 0; right: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: .5rem;
  max-height: 420px; overflow-y: auto;
  display: none;
  z-index: 70;
}
.searchbar__panel.is-open { display: block; }
.searchbar__hint {
  padding: .6rem .8rem;
  font-size: .82rem;
  color: var(--ink-soft);
  display: flex; align-items: center; gap: .4rem;
}
.suggest {
  display: flex; align-items: center; gap: .7rem;
  padding: .55rem .7rem;
  border-radius: var(--radius-sm);
  transition: background .15s var(--ease);
}
.suggest:hover, .suggest.is-active { background: var(--violet-50); }
.suggest img {
  width: 42px; height: 42px; border-radius: 8px; object-fit: cover;
  background: var(--slate-100); flex: none;
}
.suggest__name { font-size: .87rem; font-weight: 600; line-height: 1.3; }
.suggest__meta { font-size: .76rem; color: var(--ink-soft); }
.suggest__price { margin-left: auto; font-weight: 800; font-size: .86rem; white-space: nowrap; }

.headeractions { display: flex; align-items: center; gap: .3rem; }
.headeraction {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: .1rem;
  padding: .45rem .7rem;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: .68rem; font-weight: 700;
  transition: background .16s var(--ease), color .16s var(--ease);
}
.headeraction:hover { background: rgba(255,255,255,.25); color: #fff; }
.headeraction svg { width: 22px; height: 22px; stroke-width: 1.9; }
.headeraction__count {
  position: absolute; top: .1rem; right: .35rem;
  min-width: 19px; height: 19px; padding: 0 4px;
  display: grid; place-items: center;
  background: var(--red-500); color: #fff;
  border-radius: 999px;
  font-size: .66rem; font-weight: 800;
  border: 2px solid #fff;
}
.headeraction__count.is-zero { display: none; }
.headeraction--menu { display: none; }

.nav { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.nav__list { display: flex; align-items: center; gap: .2rem; list-style: none; margin: 0; padding: 0; }
.nav__list--center { justify-content: center; flex-wrap: wrap; }
.nav__item { position: relative; }
.nav__link {
  display: flex; align-items: center; gap: .35rem;
  padding: .78rem .9rem;
  font-size: .875rem; font-weight: 700;
  color: var(--slate-700);
  border-bottom: 2.5px solid transparent;
  white-space: nowrap;
  transition: color .16s var(--ease), border-color .16s var(--ease), background .16s var(--ease);
}
.nav__link:hover, .nav__item:hover > .nav__link { color: var(--brand); border-bottom-color: var(--violet-300); background: var(--violet-50); }
.nav__link.is-active { color: var(--brand); border-bottom-color: var(--brand); }
.nav__link svg { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.nav__item:hover > .nav__link svg { transform: rotate(180deg); }
.nav__spacer { flex: 1; }

/* --- mega menu --- */
.megamenu {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%);
  min-width: 700px;
  background: #fff;
  border: 1px solid var(--violet-200);
  border-top: 3px solid var(--brand);
  border-radius: var(--radius);
  box-shadow: 0 18px 50px -12px rgba(180, 95, 0, .28);
  padding: 1.4rem;
  display: none;
  z-index: 65;
  animation: fadeDown .18s var(--ease);
}
@keyframes megamenuShift { from { opacity: 0; pointer-events: none; transform: translateX(-50%) translateY(-6px); } to { opacity: 1; transform: translateX(-50%); } }
.nav__item:hover > .megamenu { display: block; animation: megamenuShift .2s var(--ease); }
.megamenu__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .35rem 1.2rem; }
.megamenu__link {
  display: flex; align-items: center; gap: .6rem; flex: 0 0 auto;
  padding: .55rem .65rem; border-radius: var(--radius-sm);
  font-size: .87rem; font-weight: 600; color: var(--slate-700);
  white-space: nowrap;
  transition: background .14s var(--ease), color .14s var(--ease), transform .14s var(--ease);
}
.megamenu__link:hover { background: var(--violet-50); color: var(--brand); transform: translateX(3px); }
.megamenu__link span { font-size: 1.1rem; }

@keyframes fadeDown { from { opacity: 0; pointer-events: none; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.nav__deals {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .35rem .95rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
  color: var(--slate-900);
  font-size: .78rem; font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 4px 14px -4px rgba(249, 161, 0, .55);
}
.nav__deals:hover { transform: translateY(-1px); color: #000; }

/* --- mobile drawer --- */
.sidenav {
  position: fixed; inset: 0 auto 0 0;
  width: min(340px, 86vw);
  background: #fff;
  z-index: 100;
  transform: translateX(-102%);
  transition: transform .28s var(--ease);
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.sidenav.is-open { transform: none; }
/* cart drawer slides in from the right */
.sidenav--cart {
  inset: 0 0 0 auto;
  width: min(420px, 94vw);
  transform: translateX(102%);
}
.sidenav--cart.is-open { transform: none; }
.sidenav__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, var(--violet-700), var(--violet-900));
  color: #fff;
}
.sidenav__head .logo__name, .sidenav__head .logo__tag { color: #fff; }
.sidenav__body { flex: 1; overflow-y: auto; padding: .6rem 0 2rem; }
.sidenav__close {
  width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.12); color: #fff;
  display: grid; place-items: center;
}
.sidenav__close:hover { background: rgba(255,255,255,.24); }
.sidenav__link {
  display: flex; align-items: center; gap: .6rem;
  padding: .8rem 1.15rem;
  font-weight: 600; font-size: .93rem;
  border-bottom: 1px solid var(--slate-100);
  color: var(--slate-700);
}
.sidenav__link:hover, .sidenav__link.is-active { background: var(--violet-50); color: var(--brand); }
.sidenav__link .cnt { margin-left: auto; font-size: .74rem; color: var(--slate-400); font-weight: 700; }
.sidenav__link svg { width: 18px; height: 18px; flex: none; color: inherit; }
.sidenav__sub { padding-left: 1.7rem; font-size: .86rem; }
.sidenav__foot { padding: 1rem 1.15rem; border-top: 1px solid var(--line); display: grid; gap: .55rem; }

.scrim {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, .55);
  backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none; visibility: hidden;
  transition: opacity .28s var(--ease), visibility .28s var(--ease);
  z-index: 90;
}
.scrim.is-open { opacity: 1; visibility: visible; }
.scrim--drawer { z-index: 95; }

/* --------------------------------------------------------------------------
   5. Hero & home sections
   -------------------------------------------------------------------------- */
.hero { position: relative; background: var(--slate-900); overflow: hidden; min-height: 520px; }
.hero__slider { position: relative; min-height: 520px; }
.hero__slide {
  position: absolute; inset: 0;
  min-height: 520px;
  display: grid; align-items: center;
  opacity: 0; pointer-events: none; visibility: hidden;
  transition: opacity .6s var(--ease), visibility .6s var(--ease);
}
.hero__slide.is-active { position: relative; opacity: 1; visibility: visible; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero__slide::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(0, 0, 0, .62), rgba(0, 0, 0, .32) 60%, rgba(0, 0, 0, .15));
}
.hero__grid {
  position: relative; z-index: 2;
}
.hero__visual {
  width: clamp(180px, 26vw, 340px); height: auto;
  border-radius: 26px;
  box-shadow: 0 24px 60px -12px rgba(0,0,0,.45), 0 0 0 4px rgba(255,255,255,.35);
  transform: rotate(2.5deg);
  transition: transform .3s var(--ease);
}
.hero__slide.is-active .hero__visual { transform: rotate(0); }
.hero__inner {
  position: relative;
  padding: clamp(2.6rem, 6vw, 4.6rem) 0;
  display: grid; gap: 1.2rem;
  max-width: 660px;
}
.hero__badge svg { flex: none; width: 14px; height: 14px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: .35rem;
  align-self: start;
  padding: .3rem .75rem;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  color: #fff;
  font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  backdrop-filter: blur(6px);
  width: fit-content;
  white-space: nowrap;
  flex-wrap: nowrap;
}
.hero__title { color: #fff; font-size: clamp(2rem, 5.5vw, 3.5rem); margin: 0; text-shadow: 0 3px 20px rgba(0,0,0,.28); }
.hero__text  { color: rgba(255,255,255,.9); font-size: clamp(.98rem, 2vw, 1.18rem); margin: 0; max-width: 480px; }
.hero__cta   { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: .5rem; }
.hero__dots  { position: absolute; bottom: 1.3rem; right: 20px; display: flex; gap: .4rem; z-index: 3; }
.hero__dot {
  width: 9px; height: 9px; border-radius: 999px; border: 0;
  background: rgba(255,255,255,.45); transition: all .25s var(--ease); padding: 0;
}
.hero__dot.is-active { width: 30px; background: #fff; }

/* --- trust strip --- */
.trustbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.trustbar__grid { display: flex; flex-wrap: nowrap; overflow-x: auto; }
.trustbar__item { display: flex; align-items: center; gap: .8rem; padding: 1rem .6rem; flex: 1 0 auto; min-width: 220px; white-space: nowrap; }
.trustbar__title, .trustbar__desc { white-space: nowrap; }
.trustbar__item + .trustbar__item { border-left: 1px solid var(--line); }
.trustbar__icon {
  width: 42px; height: 42px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
  background: var(--violet-50); color: var(--brand);
}
.trustbar__icon svg { width: 21px; height: 21px; }
.trustbar__title { font-weight: 800; font-size: .87rem; }
.trustbar__desc  { font-size: .77rem; color: var(--ink-soft); }

/* --- category tiles --- */
.catgrid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: .85rem; }
.cattile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem .5rem;
  text-align: center;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.cattile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--violet-300); }
.cattile__icon { font-size: 2rem; line-height: 1; margin-bottom: .5rem; }
.cattile__name { font-size: .82rem; font-weight: 700; display: block; line-height: 1.3; }
.cattile__count { font-size: .72rem; color: var(--ink-soft); }

/* --- category banners --- */
.promogrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.promocard {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 1.7rem;
  min-height: 168px;
  color: #fff;
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  box-shadow: var(--shadow);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.promocard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.promocard::after {
  content: ""; position: absolute; right: -34px; bottom: -46px;
  width: 168px; height: 168px; border-radius: 50%;
  background: rgba(255,255,255,.11);
}
.promocard__title { font-size: 1.32rem; font-weight: 900; margin: 0 0 .3rem; }
.promocard__text  { font-size: .88rem; opacity: .9; margin: 0 0 1rem; max-width: 74%; }
.promocard .btn { position: relative; z-index: 2; align-self: flex-start; }
.promocard--a { background: linear-gradient(135deg, #8f5800, #f9a100); }
.promocard--b { background: linear-gradient(135deg, #0f766e, #14b8a6); }
.promocard--c { background: linear-gradient(135deg, #9a3412, #f59e0b); }

/* --- countdown --- */
.countdown { display: flex; gap: .4rem; }
.countdown__unit {
  min-width: 52px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 10px;
  padding: .4rem .3rem;
  text-align: center;
  backdrop-filter: blur(6px);
}
.countdown__num  { display: block; font-size: 1.22rem; font-weight: 900; line-height: 1.1; }
.countdown__lbl  { font-size: .62rem; text-transform: uppercase; letter-spacing: .1em; opacity: .8; }

/* --- brand strip --- */
.brandstrip { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: .4rem; scrollbar-width: thin; }
.brandstrip::-webkit-scrollbar { height: 6px; }
.brandstrip::-webkit-scrollbar-thumb { background: var(--slate-300); border-radius: 6px; }
.brandchip {
  flex: none;
  padding: .65rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 700; font-size: .87rem;
  color: var(--slate-600);
  white-space: nowrap;
  transition: all .18s var(--ease);
}
.brandchip:hover { border-color: var(--violet-400); color: var(--brand); background: var(--violet-50); }

/* --- feature banner --- */
.featureband {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 0;
  border-radius: var(--radius-xl); overflow: hidden;
  background: linear-gradient(135deg, var(--violet-900), var(--violet-700));
  color: #fff;
  box-shadow: var(--shadow-md);
}
.featureband__body { padding: clamp(1.6rem, 4vw, 2.8rem); display: flex; flex-direction: column; justify-content: center; }
.featureband h2 { color: #fff; }
.featureband p { color: rgba(255,255,255,.85); }
.featureband__points { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: .5rem; }
.featureband__points li { display: flex; align-items: center; gap: .55rem; font-size: .9rem; }
.featureband__points li::before {
  content: "✓"; width: 21px; height: 21px; flex: none;
  border-radius: 50%; background: rgba(255,255,255,.18);
  display: grid; place-items: center; font-size: .74rem; font-weight: 900;
}
.featureband__media { position: relative; min-height: 250px; }
.featureband__media img { width: 100%; height: 100%; object-fit: cover; }

/* --- testimonials --- */
.quote {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem;
  height: 100%;
  display: flex; flex-direction: column;
}
.quote__stars { margin-bottom: .6rem; }
.quote__text { font-size: .9rem; color: var(--slate-600); flex: 1; }
.quote__who { display: flex; align-items: center; gap: .65rem; margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--line); }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--violet-600), var(--violet-800));
  color: #fff; font-weight: 800; font-size: .82rem;
}
.quote__name { font-weight: 800; font-size: .88rem; }
.quote__loc  { font-size: .76rem; color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   6. Product cards & grids
   -------------------------------------------------------------------------- */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
  gap: 1.1rem;
}

.pcard {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.pcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--violet-200); }

.pcard__media { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--slate-100); overflow: hidden; }
.pcard__img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .45s var(--ease), opacity .3s var(--ease);
}
.pcard:hover .pcard__img { transform: scale(1.06); }
.pcard__img--alt { position: absolute; inset: 0; opacity: 0; pointer-events: none; display: none; }
.pcard:hover .pcard__img--alt { opacity: 0; display: none; pointer-events: none; }

.pcard__flags { position: absolute; top: .6rem; left: .6rem; display: flex; flex-direction: column; gap: .3rem; align-items: flex-start; z-index: 2; }
.pcard__wish {
  position: absolute; top: .6rem; right: .6rem; z-index: 3;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  border: 1px solid var(--line);
  color: var(--slate-500);
  box-shadow: var(--shadow-xs);
  transition: all .18s var(--ease);
}
.pcard__wish:hover { color: var(--red-500); transform: scale(1.1); }
.pcard__wish.is-active { color: var(--red-500); background: #fff; }
.pcard__wish svg { width: 17px; height: 17px; }
.pcard__wish.is-active svg { fill: currentColor; }

.pcard__quick {
  position: absolute; left: .6rem; right: .6rem; bottom: .6rem; z-index: 2;
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity .22s var(--ease), transform .22s var(--ease);
}
.pcard:hover .pcard__quick { opacity: 1; transform: none; }

.pcard__body { padding: .85rem .9rem 1rem; display: flex; flex-direction: column; flex: 1; gap: .3rem; }
.pcard__brand { font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--violet-600); }
.pcard__title {
  font-size: .9rem; font-weight: 700; line-height: 1.35; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.4em;
}
.pcard__title:hover { color: var(--brand); }
.pcard__rating { display: flex; align-items: center; gap: .35rem; font-size: .74rem; color: var(--ink-soft); }
.pcard__price { display: flex; align-items: baseline; gap: .45rem; flex-wrap: wrap; margin-top: auto; padding-top: .35rem; }
.pcard__price-now { font-size: 1.02rem; font-weight: 900; color: var(--slate-900); }
.pcard__price-was { font-size: .8rem; color: var(--slate-400); text-decoration: line-through; }
.pcard__price-off { font-size: .74rem; font-weight: 800; color: var(--green-600); }
.pcard__foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .45rem; font-size: .72rem; color: var(--ink-soft); }
.pcard__stock { display: inline-flex; align-items: center; gap: .28rem; font-weight: 700; }
.pcard__stock--in  { color: var(--green-600); }
.pcard__stock--low { color: var(--amber-600); }
.pcard__stock--out { color: var(--red-600); }
.pcard__stock::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.stars { display: inline-flex; gap: 1px; }
.star { width: 13px; height: 13px; }
.star path { fill: #cbd5e1; }
.star--full path { fill: var(--amber-500); }
.star--half path { fill: var(--amber-500); }

/* --- scroll reveal --- */
[data-reveal].is-in { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* --- list / horizontal card --- */
.pcard--row { flex-direction: row; }
.pcard--row .pcard__media { width: 200px; flex: none; aspect-ratio: auto; }
.pcard--row .pcard__body { padding: 1.05rem 1.15rem; }
.pcard--row .pcard__title { font-size: 1rem; min-height: 0; -webkit-line-clamp: 2; }
.pcard--row .pcard__desc { font-size: .84rem; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard--row .pcard__actions { display: flex; gap: .5rem; margin-top: .6rem; }

/* --- skeletons --- */
.skeleton { background: linear-gradient(90deg, var(--slate-100) 25%, var(--slate-200) 37%, var(--slate-100) 63%); background-size: 400% 100%; animation: shimmer 1.3s infinite; border-radius: var(--radius-sm); }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* --------------------------------------------------------------------------
   7. Shop listing & filters
   -------------------------------------------------------------------------- */
.page-head {
  background: linear-gradient(135deg, var(--violet-800), #7a4a00);
  color: #fff;
  padding: 1.6rem 0;
}
.page-head h1 { color: #fff; margin: 0; font-size: clamp(1.4rem, 3vw, 2rem); }
.page-head p { color: rgba(255,255,255,.82); margin: .3rem 0 0; font-size: .9rem; }

.crumbs { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; font-size: .82rem; margin-bottom: .6rem; }
.crumbs a { opacity: .8; }
.crumbs a:hover { opacity: 1; text-decoration: underline; }
.crumbs span { opacity: .55; }
.page-head .crumbs a, .page-head .crumbs span { color: #fff; }

.shop { display: grid; grid-template-columns: 268px minmax(0, 1fr); gap: 1.4rem; align-items: start; }

.filters { position: sticky; top: calc(var(--header-h) + 10px); }
.filterbox { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.filterbox:first-child { padding-top: 0; }
.filterbox__head {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; background: none; border: 0; padding: 0 0 .7rem;
  font-weight: 800; font-size: .92rem; color: var(--ink);
}
.filterbox__head svg { width: 16px; height: 16px; color: var(--slate-400); transition: transform .2s var(--ease); }
.filterbox.is-collapsed .filterbox__head svg { transform: rotate(-90deg); }
.filterbox.is-collapsed .filterbox__body { display: none; }
.filterbox__body { display: grid; gap: .1rem; }

.checkrow {
  display: flex; align-items: center; gap: .55rem;
  padding: .3rem 0; font-size: .87rem; cursor: pointer; color: var(--slate-700);
}
.checkrow:hover { color: var(--brand); }
.checkrow input { width: 16px; height: 16px; accent-color: var(--brand); flex: none; cursor: pointer; }
.checkrow__cnt { margin-left: auto; font-size: .74rem; color: var(--slate-400); font-weight: 700; }
.checkrow__sub { padding-left: 1.1rem; }

.pricerange { display: flex; gap: .5rem; align-items: center; }
.pricerange .input { padding: .5rem .6rem; font-size: .84rem; }

.shopbar {
  display: flex; align-items: center; gap: .8rem; flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .7rem .9rem;
  margin-bottom: 1.1rem;
}
.shopbar__count { font-size: .88rem; color: var(--ink-soft); }
.shopbar__count strong { color: var(--ink); }
.shopbar__right { margin-left: auto; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.shopbar .select { width: auto; min-width: 172px; padding-block: .5rem; font-size: .86rem; }

.viewtoggle { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.viewtoggle button { padding: .45rem .6rem; border: 0; background: #fff; color: var(--slate-500); display: grid; place-items: center; }
.viewtoggle button.is-active { background: var(--violet-600); color: #fff; }
.viewtoggle svg { width: 16px; height: 16px; }

.filterbar-mobile { display: none; }
.filterpanel-head { display: none; }

.activefilters { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem .5rem .3rem .8rem;
  background: var(--violet-50);
  border: 1px solid var(--violet-200);
  border-radius: 999px;
  font-size: .8rem; font-weight: 700; color: var(--violet-800);
}
.chip a { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--violet-200); color: var(--violet-800); }
.chip a:hover { background: var(--red-500); color: #fff; }

.empty { text-align: center; padding: 3rem 1rem; }
.empty img { width: 210px; margin: 0 auto 1.2rem; }
.empty h3 { margin-bottom: .4rem; }
.empty p { color: var(--ink-soft); max-width: 420px; margin: 0 auto 1.4rem; }

/* pagination */
.pagination ul { display: flex; gap: .3rem; list-style: none; padding: 0; margin: 1.8rem 0 0; justify-content: center; flex-wrap: wrap; }
.page-btn {
  min-width: 38px; height: 38px; padding: 0 .6rem;
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  font-weight: 700; font-size: .88rem; color: var(--slate-700);
  transition: all .16s var(--ease);
}
.page-btn:hover { border-color: var(--violet-400); color: var(--brand); }
.page-btn.is-current { background: var(--violet-600); border-color: var(--violet-600); color: #fff; }
.page-btn.is-disabled { opacity: .4; pointer-events: none; }
.page-dots { display: grid; place-items: center; min-width: 26px; color: var(--slate-400); }

/* --------------------------------------------------------------------------
   8. Product detail
   -------------------------------------------------------------------------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.2rem; align-items: start; }

.gallery__main {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__flags { position: absolute; top: .9rem; left: .9rem; display: flex; flex-direction: column; gap: .35rem; align-items: flex-start; }
.gallery__zoom {
  position: absolute; bottom: .9rem; right: .9rem;
  padding: .45rem .7rem;
  background: rgba(255,255,255,.94);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .76rem; font-weight: 700; color: var(--slate-600);
  display: inline-flex; align-items: center; gap: .35rem;
  cursor: zoom-in;
}
.gallery__zoom svg { width: 15px; height: 15px; }
.gallery__thumbs { display: flex; gap: .6rem; margin-top: .7rem; overflow-x: auto; padding-bottom: .2rem; }
.gallery__thumb {
  width: 78px; height: 78px; flex: none;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  overflow: hidden; background: var(--slate-100);
  padding: 0; cursor: pointer;
  transition: border-color .16s var(--ease), transform .16s var(--ease);
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb:hover { transform: translateY(-2px); }
.gallery__thumb.is-active { border-color: var(--brand); }

.pdp__brand { font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--violet-600); }
.pdp__title { font-size: clamp(1.4rem, 3vw, 1.95rem); margin: .35rem 0 .6rem; }
.pdp__meta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: .85rem; color: var(--ink-soft); padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.pdp__meta a { color: var(--violet-600); font-weight: 600; }
.pdp__meta a:hover { text-decoration: underline; }
.pdp__meta .row > svg { width: 15px; height: 15px; color: var(--brand); flex: none; }

.pdp__pricebox { display: flex; align-items: baseline; gap: .7rem; flex-wrap: wrap; margin: 1rem 0; }
.pdp__price-now { font-size: 2.1rem; font-weight: 900; color: var(--slate-900); letter-spacing: -.03em; }
.pdp__price-was { font-size: 1.05rem; color: var(--slate-400); text-decoration: line-through; }
.pdp__price-off { padding: .28rem .7rem; background: var(--green-500); color: #fff; border-radius: 999px; font-weight: 800; font-size: .8rem; }

.pdp__desc { color: var(--slate-600); font-size: .93rem; }
.pdp__desc p:last-child { margin-bottom: 0; }

.pdp__extras { display: grid; gap: .55rem; margin: 1.1rem 0; padding: 1rem; background: var(--violet-50); border-radius: var(--radius); }
.pdp__extra { display: flex; align-items: center; gap: .55rem; font-size: .86rem; color: var(--slate-700); }
.pdp__extra svg { width: 18px; height: 18px; color: var(--brand); flex: none; }

.pdp__buybox { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin: 1.2rem 0; }
.pdp__buynow { flex: 1; min-width: 200px; }

.pdp__usps { display: grid; gap: .5rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.pdp__usp { display: flex; align-items: center; gap: .55rem; font-size: .85rem; color: var(--slate-600); }
.pdp__usp svg { width: 17px; height: 17px; color: var(--green-600); flex: none; }

.spec-table { width: 100%; border-collapse: collapse; font-size: .89rem; }
.spec-table th, .spec-table td { padding: .62rem .5rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec-table th { width: 42%; color: var(--slate-500); font-weight: 700; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }

/* tabs */
.tabs { margin-top: 2.4rem; }
.tabs__nav { display: flex; gap: .3rem; border-bottom:2px solid var(--line); overflow-x: auto; }
.tabs__btn {
  padding: .8rem 1.05rem; border: 0; background: none;
  font-weight: 800; font-size: .9rem; color: var(--ink-soft);
  border-bottom: 3px solid transparent;
  white-space: nowrap; transition: all .16s var(--ease);
}
.tabs__btn:hover { color: var(--brand); }
.tabs__btn.is-active { color: var(--brand); border-bottom-color: var(--brand); }
.tabs__panel { display: none; padding-top: 1.4rem; }
.tabs__panel.is-active { display: block; animation: fadeUp .22s var(--ease); }
@keyframes fadeUp { from { opacity: 0; pointer-events: none; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* reviews */
.reviews { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 2rem; }
.reviewscore { text-align: center; padding: 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); align-self: start; }
.reviewscore__num { font-size: 3rem; font-weight: 900; line-height: 1; letter-spacing: -.04em; }
.reviewscore__out { color: var(--ink-soft); font-size: .84rem; margin-bottom: .5rem; }
.reviewbar { display: flex; align-items: center; gap: .5rem; font-size: .78rem; margin-top: .3rem; }
.reviewbar__track { flex: 1; height: 7px; background: var(--slate-200); border-radius: 999px; overflow: hidden; }
.reviewbar__fill { height: 100%; background: var(--amber-500); border-radius: 999px; }
.reviewbar__lbl { width: 30px; color: var(--ink-soft); flex: none; }

.review { padding: 1rem 0; border-bottom: 1px solid var(--line); display: flex; gap: .85rem; }
.review:last-child { border-bottom: 0; }
.review__head { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .35rem; }
.review__name { font-weight: 800; font-size: .89rem; }
.review__date { font-size: .76rem; color: var(--ink-soft); }
.review__title { font-weight: 700; font-size: .9rem; margin: 0 0 .25rem; }
.review__text { font-size: .88rem; color: var(--slate-600); margin: 0; }

.star-input { display: inline-flex; gap: .15rem; flex-direction: row-reverse; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; pointer-events: none; }
.star-input label { cursor: pointer; font-size: 1.5rem; line-height: 1; color: var(--slate-300); transition: color .12s var(--ease); }
.star-input input:checked ~ label,
.star-input label:hover,
.star-input label:hover ~ label { color: var(--amber-500); }

/* --- FAQ accordion --- */
.faq { border-bottom: 1px solid var(--line); }
.faq:last-child { border-bottom: 0; }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .95rem .2rem;
  font-weight: 800; font-size: .96rem;
  cursor: pointer;
  list-style: none;
  transition: color .12s var(--ease);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--brand); }
.faq__icon { flex: none; display: grid; place-items: center; transition: transform .2s var(--ease); color: var(--ink-soft); }
.faq__icon svg { width: 18px; height: 18px; }
.faq[open] .faq__icon { transform: rotate(180deg); }
.faq__a { padding: 0 .2rem 1rem; color: var(--slate-600); font-size: .92rem; max-width: 78ch; }

/* --------------------------------------------------------------------------
   9. Cart, checkout & account
   -------------------------------------------------------------------------- */
.layout-2 { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 1.6rem; align-items: start; }
.layout-sidebar { position: sticky; top: calc(var(--header-h) + 10px); }

.summary { position: sticky; top: calc(var(--header-h) + 10px); }
.summary__title { font-size: 1rem; font-weight: 800; padding-bottom: .8rem; border-bottom: 1px solid var(--line); margin-bottom: .8rem; }
.summary__row { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; padding: .35rem 0; }
.summary__row span:first-child { color: var(--slate-600); }
.summary__row span:last-child { font-weight: 700; white-space: nowrap; }
.summary__row--discount span { color: var(--green-600); }
.summary__row--discount span:last-child { color: var(--green-600); }
.summary__total {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  margin-top: .8rem; padding-top: .8rem; border-top: 2px solid var(--slate-200);
}
.summary__total-label { font-weight: 800; font-size: 1.02rem; }
.summary__total-value { font-weight: 900; font-size: 1.4rem; color: var(--brand); letter-spacing: -.02em; }
.summary__note { font-size: .78rem; color: var(--ink-soft); margin-top: .5rem; }
.summary__progress { height: 7px; background: var(--slate-200); border-radius: 999px; overflow: hidden; margin: .6rem 0; }
.summary__progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--green-500), var(--green-600)); border-radius: 999px; transition: width .4s var(--ease); }

.couponform { display: flex; gap: .4rem; margin-top: .9rem; }
.couponform .input { flex: 1; text-transform: uppercase; }

.carttable { width: 100%; border-collapse: collapse; }
.carttable th {
  text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--slate-500); font-weight: 800; padding: .7rem .8rem; border-bottom: 1px solid var(--line);
  background: var(--slate-50);
}
.carttable th:first-child { border-radius: 10px 0 0 10px; }
.carttable th:last-child  { border-radius: 0 10px 10px 0; }
.carttable td { padding: .95rem .8rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.carttable tr:last-child td { border-bottom: 0; }
.cartitem { display: flex; gap: .85rem; align-items: center; min-width: 210px; }
.cartitem img { width: 66px; height: 66px; border-radius: 10px; object-fit: cover; background: var(--slate-100); flex: none; }
.cartitem__name { font-weight: 700; font-size: .89rem; line-height: 1.35; display: block; }
.cartitem__name:hover { color: var(--brand); }
.cartitem__sku { font-size: .74rem; color: var(--ink-soft); }
.cartitem__unit { font-size: .78rem; color: var(--slate-500); margin-top: .1rem; }
.cartitem__remove { color: var(--slate-400); font-size: .76rem; display: inline-flex; align-items: center; gap: .25rem; }
.cartitem__remove:hover { color: var(--red-600); }
.cartitem__remove svg { width: 14px; height: 14px; }
.cartline--out { opacity: .62; }

.freebar { display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--slate-600); }

/* steps */
.steps { display: flex; align-items: center; gap: .4rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: .5rem; font-size: .84rem; color: var(--ink-soft); font-weight: 600; }
.step__num {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--slate-200); color: var(--slate-600);
  font-size: .78rem; font-weight: 800;
}
.step.is-active { color: var(--brand); }
.step.is-active .step__num { background: var(--brand); color: #fff; box-shadow: 0 0 0 4px var(--violet-100); }
.step.is-done .step__num { background: var(--green-500); color: #fff; }
.step__line { width: 26px; height: 2px; background: var(--slate-200); border-radius: 2px; }

.payopt {
  display: flex; align-items: flex-start; gap: .7rem;
  padding: .95rem 1.05rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .16s var(--ease);
  margin-bottom: .6rem;
  background: #fff;
}
.payopt:hover { border-color: var(--violet-300); background: var(--violet-50); }
.payopt.is-selected { border-color: var(--brand); background: var(--violet-50); box-shadow: 0 0 0 3px var(--violet-100); }
.payopt input { margin-top: .2rem; accent-color: var(--brand); width: 17px; height: 17px; flex: none; }
.payopt__title { font-weight: 800; font-size: .92rem; }
.payopt__desc  { font-size: .8rem; color: var(--ink-soft); }
.payopt__icon  { margin-left: auto; }
.payopt__icon svg { width: 26px; height: 26px; }
.row-icon { width: 17px; height: 17px; flex: none; color: var(--brand); }
.card h4 > svg { width: 18px; height: 18px; vertical-align: -3px; color: var(--brand); }

/* account */
.account { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 1.6rem; align-items: start; }
.account__nav { padding: .5rem; position: sticky; top: calc(var(--header-h) + 10px); }
.account__user { padding: .9rem; text-align: center; border-bottom: 1px solid var(--line); margin-bottom: .4rem; }
.account__user .avatar { width: 58px; height: 58px; font-size: 1.15rem; margin: 0 auto .6rem; }
.account__name { font-weight: 800; font-size: .95rem; }
.account__mail { font-size: .78rem; color: var(--ink-soft); word-break: break-all; }
.account__link {
  display: flex; align-items: center; gap: .6rem;
  padding: .62rem .75rem; border-radius: var(--radius-sm);
  font-size: .87rem; font-weight: 700; color: var(--slate-600);
}
.account__link svg { width: 17px; height: 17px; flex: none; }
.account__link:hover { background: var(--violet-50); color: var(--brand); }
.account__link.is-active { background: var(--violet-600); color: #fff; }
.account__link .cnt { margin-left: auto; font-size: .74rem; opacity: .8; }

.table-wrap { overflow-x: auto; border-radius: var(--radius); }
.data-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.data-table th {
  text-align: left; padding: .75rem .9rem; background: var(--slate-50);
  font-size: .74rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--slate-500); font-weight: 800; white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
.data-table td { padding: .85rem .9rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tbody tr:hover { background: var(--slate-50); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table__num { text-align: right; white-space: nowrap; }
.data-table__actions { display: flex; gap: .35rem; }
.iconbtn {
  width: 32px; height: 32px; border-radius: 8px;
  display: grid; place-items: center;
  border: 1px solid var(--line); background: #fff; color: var(--slate-500);
  transition: all .15s var(--ease);
}
.iconbtn:hover { border-color: var(--violet-400); color: var(--brand); background: var(--violet-50); }
.iconbtn svg { width: 15px; height: 15px; }

.alert {
  display: flex; gap: .7rem; align-items: flex-start;
  padding: .85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  border: 1px solid transparent;
  margin-bottom: 1rem;
}
.alert svg { width: 19px; height: 19px; flex: none; margin-top: .1rem; }
.alert--success { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.alert--danger  { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.alert--warning { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.alert--info    { background: var(--violet-50); border-color: var(--violet-200); color: var(--violet-800); }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 1.15rem 1.7rem; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: .35rem;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--violet-500); box-shadow: 0 0 0 3px var(--violet-100);
}
.timeline li::after {
  content: ""; position: absolute; left: 4.5px; top: 1.35rem; bottom: -.15rem;
  width: 1px; background: var(--line);
}
.timeline li:last-child::after { display: none; }
.timeline__title { font-weight: 800; font-size: .89rem; }
.timeline__time  { font-size: .77rem; color: var(--ink-soft); }

/* auth pages */
.authwrap { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 100vh; }
.authform { display: grid; place-items: center; padding: 2.5rem 1.5rem; }
.authform__inner { width: 100%; max-width: 430px; }
.authart {
  background: linear-gradient(150deg, var(--violet-900), var(--violet-700) 55%, #f9a100);
  color: #fff;
  padding: 3rem;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.authart::before, .authart::after {
  content: ""; position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.06);
}
.authart::before { width: 420px; height: 420px; top: -140px; right: -140px; }
.authart::after  { width: 300px; height: 300px; bottom: -110px; left: -90px; }
.authart__points { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .85rem; position: relative; }
.authart__points li { display: flex; gap: .7rem; align-items: flex-start; font-size: .92rem; }
.authart__points .tick {
  width: 26px; height: 26px; flex: none; border-radius: 8px;
  background: rgba(255,255,255,.16); display: grid; place-items: center; font-size: .8rem; font-weight: 900;
}

.demobox {
  background: var(--slate-50);
  border: 1px dashed var(--slate-300);
  border-radius: var(--radius-sm);
  padding: .8rem .9rem;
  font-size: .8rem;
  color: var(--slate-600);
}
.demobox strong { color: var(--ink); }
.demobox code {
  background: #fff; border: 1px solid var(--line); border-radius: 4px;
  padding: .05rem .3rem; font-size: .78rem; color: var(--violet-700);
}

/* --------------------------------------------------------------------------
   10. Footer, toasts & utilities
   -------------------------------------------------------------------------- */
.footer { background: var(--slate-900); color: var(--slate-400); margin-top: 3rem; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 2rem; padding: 2.6rem 0; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: .9rem; }
.footer p { font-size: .87rem; }
.footer__links { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.footer__links a { font-size: .87rem; transition: color .15s var(--ease), padding-left .15s var(--ease); }
.footer__links a svg { width: 16px; height: 16px; vertical-align: -3px; flex: none; }
.card p svg { width: 17px; height: 17px; vertical-align: -3px; color: var(--brand); flex: none; margin-right: .2rem; }
.footer__links a:hover { color: #fff; padding-left: 4px; }
.footer .logo__name, .footer .logo__tag { color: #fff; }
.footer__contact { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; font-size: .87rem; }
.footer__contact li { display: flex; gap: .55rem; align-items: flex-start; }
.footer__contact svg { width: 16px; height: 16px; flex: none; margin-top: .2rem; color: var(--violet-400); }

.newsform { display: flex; gap: .4rem; margin-top: .9rem; }
.newsform .input { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.14); color: #fff; }
.newsform .input::placeholder { color: var(--slate-500); }
.newsform .input:focus { background: rgba(255,255,255,.12); border-color: var(--violet-400); box-shadow: none; }

.socials { display: flex; gap: .45rem; margin-top: 1rem; }
.socials a {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.08);
  color: var(--slate-300);
  transition: all .16s var(--ease);
}
.socials a:hover { background: var(--violet-600); color: #fff; transform: translateY(-2px); }
.socials svg { width: 17px; height: 17px; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.1rem 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  font-size: .82rem;
}
.paymethods { display: flex; gap: .4rem; flex-wrap: wrap; }
.paymethods span {
  padding: .28rem .6rem; border-radius: 6px;
  background: rgba(255,255,255,.08);
  font-size: .72rem; font-weight: 700; color: var(--slate-300);
}

/* toasts */
.toasts {
  position: fixed; top: 16px; right: 16px;
  z-index: 200;
  display: flex; flex-direction: column; gap: .55rem;
  max-width: min(370px, calc(100vw - 32px));
}
.toast {
  display: flex; align-items: flex-start; gap: .65rem;
  padding: .8rem .95rem;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-size: .87rem;
  animation: toastIn .26s var(--ease);
}
.toast.is-out { animation: toastOut .26s var(--ease) forwards; }
.toast--success { border-left-color: var(--green-500); }
.toast--danger  { border-left-color: var(--red-500); }
.toast--warning { border-left-color: var(--amber-500); }
.toast__icon { width: 19px; height: 19px; flex: none; margin-top: .1rem; }
.toast--success .toast__icon { color: var(--green-600); }
.toast--danger  .toast__icon { color: var(--red-600); }
.toast--warning .toast__icon { color: var(--amber-600); }
.toast--info    .toast__icon { color: var(--brand); }
.toast__body { flex: 1; }
.toast__title { font-weight: 800; }
.toast__msg { color: var(--slate-600); font-size: .84rem; }
.toast__close { border: 0; background: none; color: var(--slate-400); padding: 0 2px; }
.toast__close:hover { color: var(--ink); }

@keyframes toastIn  { from { opacity: 0; pointer-events: none; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; pointer-events: none; transform: translateX(28px); height: 0; padding-block: 0; margin: 0; } }

/* mini cart drawer */
.minicart { display: flex; flex-direction: column; height: 100%; }
.minicart__head { padding: 1.1rem 1.2rem; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.minicart__head h3 { margin: 0; font-size: 1.05rem; }
.minicart__body { flex: 1; overflow-y: auto; padding: .4rem 0; }
.minicart__foot { border-top: 1px solid var(--line); padding: 1rem 1.2rem 1.3rem; }
.minicart__empty { padding: 2.5rem 1.2rem; text-align: center; }
.minicart__empty img { width: 140px; margin: 0 auto .9rem; }
.minicart__row { display: flex; gap: .7rem; padding: .7rem 1.2rem; align-items: center; }
.minicart__row img { width: 52px; height: 52px; border-radius: 9px; object-fit: cover; background: var(--slate-100); flex: none; }
.minicart__name { font-size: .83rem; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.minicart__meta { font-size: .78rem; color: var(--ink-soft); }
.minicart__price { margin-left: auto; font-weight: 800; font-size: .85rem; white-space: nowrap; }

.spin { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.mt-0{margin-top:0}.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.6rem}.mt-4{margin-top:2.4rem}
.mb-0{margin-bottom:0}.mb-1{margin-bottom:.5rem}.mb-2{margin-bottom:1rem}.mb-3{margin-bottom:1.6rem}
.text-center{text-align:center}.text-right{text-align:right}
.text-muted{color:var(--ink-soft)}
.text-brand{color:var(--brand)}
.text-sm{font-size:.84rem}
.text-xs{font-size:.76rem}
.fw-700{font-weight:700}.fw-800{font-weight:800}
.hide{display:none !important}
.nowrap{white-space:nowrap}
.hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

/* --------------------------------------------------------------------------
   11. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .catgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer__top { grid-template-columns: 1fr 1fr 1fr; }
  .shop { grid-template-columns: 240px minmax(0, 1fr); }
  .products { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}

@media (max-width: 980px) {
  :root { --header-h: 68px; }
  .topbar { display: none; }
  .header__main { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; min-height: 58px; }
  .headeraction--menu { display: flex; }
  .header__search { flex: 1 1 100%; order: 4; padding-bottom: .7rem; }
  .nav { display: none; }
  .logo__img { height: 40px; }
  .headeractions { order: 3; }
  .headeraction span:not(.headeraction__count) { display: none; }
  .headeraction { padding: .45rem .5rem; }
  .logo { order: 2; }
  .headeraction--menu { order: 1; }
  .shop { grid-template-columns: minmax(0, 1fr); }
  .filters {
    position: fixed; inset: 0 auto 0 0; width: min(320px, 88vw);
    background: #fff; z-index: 100; transform: translateX(-102%);
    transition: transform .28s var(--ease); overflow-y: auto;
    padding: 1rem 1.15rem 6rem; box-shadow: var(--shadow-lg);
  }
  .filters.is-open { transform: none; }
  .filterbar-mobile { display: inline-flex; }
  .filterpanel-head {
    display: flex; align-items: center; justify-content: space-between;
    margin: -.3rem 0 1rem; padding-bottom: .7rem;
    border-bottom: 1px solid var(--line); font-size: 1rem;
  }
  .filterpanel-head strong { display: inline-flex; align-items: center; gap: .4rem; }
  .pdp { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .layout-2 { grid-template-columns: minmax(0, 1fr); }
  .summary, .layout-sidebar, .account__nav, .filters { position: static; }
  .account { grid-template-columns: minmax(0, 1fr); }
  .reviews { grid-template-columns: minmax(0, 1fr); }
  .featureband { grid-template-columns: minmax(0, 1fr); }
  .featureband__media { min-height: 190px; order: -1; }
  .promogrid { grid-template-columns: minmax(0, 1fr); }
  .authwrap { grid-template-columns: minmax(0, 1fr); }
  .authart { display: none; }
  .trustbar__item { min-width: 210px; }
  .trustbar__item + .trustbar__item { border-left: 1px solid var(--line); border-top: 0; }
  .hero__dots { right: auto; left: 20px; }
}

@media (max-width: 720px) {
  .container { padding-inline: 15px; }
  .catgrid { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: .7rem; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
  .catgrid .cattile { flex: 0 0 auto; min-width: 126px; max-width: 150px; scroll-snap-align: start; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .pcard__body { padding: .7rem .75rem .85rem; }
  .pcard__title { font-size: .84rem; }
  .pcard__price-now { font-size: .94rem; }
  .pcard--row { flex-direction: column; }
  .pcard--row .pcard__media { width: 100%; aspect-ratio: 1/1; }
  .form-grid, .form-grid--3 { grid-template-columns: minmax(0, 1fr); }
  .grid--3, .grid--4, .grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head { flex-direction: column; align-items: flex-start; }
  .footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 1rem; }
  .footer__brand-col { grid-column: 1 / -1; }
  .toasts { left: 12px; right: 12px; top: 12px; max-width: none; }
  .carttable thead { display: none; }
  .carttable tbody tr { display: grid; gap: .5rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .carttable td { border: 0; padding: .2rem .8rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
  .carttable td::before { content: attr(data-label); font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--slate-500); font-weight: 800; flex: none; }
  .carttable td:first-child::before { display: none; }
  .carttable td:first-child { display: block; }
  .cartitem { min-width: 0; }
  .pdp__price-now { font-size: 1.7rem; }
  .tabs__nav { gap: 0; }
  .tabs__btn { padding: .7rem .8rem; font-size: .84rem; }
}

@media (max-width: 460px) {
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
  .logo__tag { display: none; }
  .headeraction span:not(.headeraction__count) { display: none; }
  .headeraction { padding: .45rem .5rem; }
}

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

@media print {
  .topbar, .header, .nav, .footer, .btn, .sidenav, .scrim, .toasts { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; border-color: #ccc; }
}