/* ==========================================================================
   Dollar 1 2 3 — storefront theme
   Built from how Pakistani e-commerce actually works (daraz.pk, idealancy.pk,
   bagallery.com, sapphireonline.pk): white ground, one green brand colour from
   the logo, black prices with red savings, an offer bar at the very top, a
   trust strip directly under the hero answering the cash-on-delivery worry,
   photo category tiles, and a two-per-row product grid on phones — which is
   where 85%+ of Pakistani orders are placed.
   ========================================================================== */

:root {
  /* --- brand --- */
  --brand: #12764a;               /* green, taken from the logo */
  --brand-dark: #0d5738;
  --brand-tint: #e8f4ee;
  --save: #d92d20;                /* savings / discount red */
  --save-tint: #fef3f2;
  --amber-tint: #fff6e6;          /* trust strip ground */
  --amber-ink: #8a6a34;
  --amber-icon: #b45309;

  /* --- ink & surfaces --- */
  --ink: #15171c;
  --ink-soft: #5f646e;
  --ink-faint: #8b909b;
  --line: #e7e9ee;
  --line-strong: #d7dae1;
  --surface: #ffffff;
  --bg: #ffffff;
  --bg-deep: #f7f8fa;
  --photo-plate: #f7f8fa;

  --danger: #d92d20;
  --success: #12764a;
  --success-tint: #e8f4ee;
  --success-line: #a7d8c0;
  --gold: #b45309;

  --r: 14px;
  --r-sm: 10px;
  --r-pill: 999px;
  --container: 1240px;

  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: var(--sans);
  --track: .12em;

  --shadow: 0 8px 24px rgba(20, 22, 30, .08);
  --shadow-lift: 0 14px 34px rgba(20, 22, 30, .12);

  /* --- legacy aliases ---
     ~60 account/cart/checkout/admin view files carry inline style="" calls
     written against an older token naming scheme (--color-text-muted,
     --radius-lg, --shadow-md, etc). An undefined var() doesn't fall back to
     anything — it invalidates the whole declaration — so redesigning the
     palette without these aliases silently drops borders/radii/shadows on
     every one of those call sites. Keep this block whenever the palette is
     redesigned again. */
  --color-bg: var(--bg);
  --color-border: var(--line);
  --color-primary: var(--brand);
  --color-accent: var(--save);
  --color-danger: var(--danger);
  --color-success: var(--success);
  --color-text: var(--ink);
  --color-text-muted: var(--ink-soft);
  --muted: var(--ink-soft);
  --radius-sm: var(--r-sm);
  --radius-md: var(--r);
  --radius-lg: var(--r);
  --shadow-md: var(--shadow);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.18;
  margin: 0 0 .5em;
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: var(--track);
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 6px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 22px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  font: 700 14px/1 var(--sans);
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.btn:hover { background: var(--bg-deep); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[disabled] { opacity: .5; cursor: not-allowed; }

.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }

.btn-accent { background: var(--save); border-color: var(--save); color: #fff; }
.btn-accent:hover { filter: brightness(.94); }

.btn-outline, .btn-ghost { background: #fff; border: 1px solid var(--line-strong); color: var(--ink); }
.btn-block { display: flex; width: 100%; }

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

.topbar {
  background: var(--brand);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
  padding: 7px 14px;
  letter-spacing: .01em;
}
.topbar span + span::before { content: "·"; margin: 0 8px; opacity: .6; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.site-header__bar {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 11px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.site-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.site-logo img { height: 38px; width: 38px; border-radius: 10px; object-fit: cover; }
.site-logo__text { font-weight: 800; font-size: 17px; letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }

.site-search { position: relative; flex: 1; min-width: 0; max-width: 520px; }
.site-search form { position: relative; display: block; }
.site-search__icon {
  position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
  width: 17px; height: 17px; color: var(--ink-faint); pointer-events: none;
}
.site-search input[type="text"] {
  width: 100%;
  height: 42px;
  padding: 0 16px 0 42px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--bg-deep);
  color: var(--ink);
  font: 400 14px/1 var(--sans);
  outline: none;
  transition: border-color .16s ease, background .16s ease;
}
.site-search input[type="text"]::placeholder { color: var(--ink-faint); }
.site-search input[type="text"]:focus { border-color: var(--brand); background: #fff; }

.site-search__suggestions {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-lift); overflow: hidden; z-index: 70;
  max-height: 380px; overflow-y: auto;
}
.site-search__item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.site-search__item:hover { background: var(--bg-deep); }
.site-search__item img { width: 42px; height: 42px; object-fit: cover; border-radius: 8px; background: var(--photo-plate); }
.site-search__item-price { margin-left: auto; font-weight: 800; }

.site-header__actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }

.icon-link {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--r-pill);
  color: var(--ink); transition: background .16s ease;
}
.icon-link svg { width: 21px; height: 21px; }
.icon-link:hover { background: var(--bg-deep); }

.icon-badge {
  position: absolute; top: 2px; right: 1px;
  min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: var(--r-pill); background: var(--save); color: #fff;
  font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

.mobile-menu-toggle {
  display: none; width: 40px; height: 40px; align-items: center; justify-content: center;
  border: none; background: none; color: var(--ink); cursor: pointer; border-radius: var(--r-pill);
}
.mobile-menu-toggle svg { width: 23px; height: 23px; }

/* category nav row under the header (desktop) */
.site-nav {
  display: flex; align-items: center; gap: 24px;
  max-width: var(--container); margin: 0 auto;
  padding: 0 20px 10px;
  font-size: 13.5px; font-weight: 600;
}
.site-nav a { color: var(--ink-soft); white-space: nowrap; padding: 3px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--brand); }

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

.hero { padding: 16px 0 0; }

/* Banner carousel. Slides are stacked in one grid cell and cross-faded, so the
   slider's height is the tallest slide and nothing jumps as it advances. */
.hero-slider { position: relative; border-radius: 18px; overflow: hidden; }
.hero-slider__viewport { display: grid; }

.hero-slide {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 10px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s ease, visibility .5s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; }

/* Per-slide tints — what stops a banner from feeling like one flat block. */
.hero-slide.is-green { background: linear-gradient(100deg, var(--brand-dark), var(--brand) 55%, #1b9a62); color: #fff; }
.hero-slide.is-peach { background: linear-gradient(100deg, #ffe9d6, #fff4ea); color: #6b3a18; }
.hero-slide.is-blue  { background: linear-gradient(100deg, #dceafc, #eef5ff); color: #17406e; }
.hero-slide.is-mint  { background: linear-gradient(100deg, #d9f2e6, #eefaf4); color: #0d5738; }
.hero-slide.is-rose  { background: linear-gradient(100deg, #fde4ea, #fff1f4); color: #7a2740; }

/* Extra room on the left so the previous-arrow never sits on top of the headline. */
.hero-slide__copy { padding: 36px 34px 44px 68px; }
.hero-slide__eyebrow {
  display: inline-block; font-size: 11px; font-weight: 700;
  letter-spacing: var(--track); text-transform: uppercase;
  opacity: .78; margin-bottom: 8px;
}
.hero-slide__title { font-size: clamp(23px, 3.2vw, 34px); margin: 0 0 10px; font-weight: 800; color: inherit; }
.hero-slide__text { font-size: 14.5px; opacity: .88; margin: 0 0 20px; max-width: 44ch; }

.hero-slide__cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 11px 26px;
  border-radius: var(--r-pill);
  background: currentColor; font-weight: 700; font-size: 14px;
  transition: transform .16s ease, filter .16s ease;
}
/* The label takes the slide's own background so the button always reads. */
.hero-slide.is-green .hero-slide__cta { background: #fff; color: var(--brand-dark); }
.hero-slide.is-peach .hero-slide__cta { background: #6b3a18; color: #fff4ea; }
.hero-slide.is-blue  .hero-slide__cta { background: #17406e; color: #eef5ff; }
.hero-slide.is-mint  .hero-slide__cta { background: #0d5738; color: #eefaf4; }
.hero-slide.is-rose  .hero-slide__cta { background: #7a2740; color: #fff1f4; }
.hero-slide__cta:hover { transform: translateY(-1px); filter: brightness(1.06); }

/* The photo fills its half of the banner. Positioned rather than sized with
   height:100% — inside a grid row whose height is indefinite that resolves to
   zero and the image disappears entirely. */
.hero-slide__media { position: relative; min-height: 270px; height: 100%; }
.hero-slide__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.hero-slider__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: var(--r-pill);
  border: none; background: rgba(255, 255, 255, .9); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 3; box-shadow: var(--shadow);
  transition: background .16s ease, transform .16s ease;
}
.hero-slider__arrow svg { width: 20px; height: 20px; }
.hero-slider__arrow:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.hero-slider__arrow--prev { left: 14px; }
.hero-slider__arrow--next { right: 14px; }

.hero-slider__dots { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 3;
                     display: flex; justify-content: center; gap: 7px; }
.hero__dot { width: 7px; height: 7px; padding: 0; border: none; border-radius: var(--r-pill);
             background: rgba(0, 0, 0, .22); cursor: pointer; transition: width .22s ease, background .22s ease; }
.hero__dot.is-active { width: 22px; background: var(--brand); }

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

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  background: var(--amber-tint);
  border-radius: var(--r);
  padding: 15px 18px;
  margin-top: 14px;
}
.trust-strip__item { display: flex; align-items: center; gap: 11px; }
.trust-strip__item svg { width: 23px; height: 23px; color: var(--amber-icon); flex: none; }
.trust-strip__item strong { display: block; font-size: 13px; font-weight: 700; line-height: 1.25; color: var(--ink); }
.trust-strip__item span { display: block; font-size: 11.5px; color: var(--amber-ink); }

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

.section { padding: 30px 0; }
.section--tint { background: var(--bg-deep); }

.section__header { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section__title { font-size: clamp(18px, 2.4vw, 22px); margin: 0; }
.section__more { font-size: 13.5px; font-weight: 700; color: var(--brand); white-space: nowrap; }
.section__more:hover { text-decoration: underline; }
.section-intro { margin-bottom: 16px; }
.section-intro .section__title { margin: 0; }

/* ------------------------------------------------------------ categories -- */

.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }

.cat-card { display: block; }
.cat-card__main { display: block; }
.cat-card__media {
  display: block; border-radius: 12px; overflow: hidden;
  aspect-ratio: 1 / 1; background: var(--photo-plate);
  transition: transform .2s ease, box-shadow .2s ease;
}
.cat-card:hover .cat-card__media { transform: translateY(-3px); box-shadow: var(--shadow); }
.cat-card__media img { width: 100%; height: 100%; object-fit: cover; }
.cat-card__body { display: block; text-align: center; margin-top: 9px; }
.cat-card__name { display: block; font-size: 13px; font-weight: 700; line-height: 1.3; }
.cat-card__count { display: block; font-size: 11.5px; color: var(--ink-faint); margin-top: 1px; }

/* price-entry tile — "under Rs. 250", the shortcut bargain shoppers look for */
.cat-card--deal .cat-card__media {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--brand-tint); color: var(--brand-dark); text-align: center; padding: 10px;
}
.cat-card--deal strong { font-size: clamp(18px, 2.4vw, 24px); font-weight: 800; line-height: 1.05; }
.cat-card--deal em { font-style: normal; font-size: 12px; font-weight: 700; }

.cat-card__subs { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; margin-top: 7px; }
.sub-chip, .subcat-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: #fff;
  font-size: 11.5px; font-weight: 600; color: var(--ink-soft);
}
.sub-chip:hover, .subcat-chip:hover { border-color: var(--brand); color: var(--brand); }
.sub-chip span, .subcat-chip__count { color: var(--ink-faint); font-size: 11px; }

.subcat-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 18px; }
.subcat-chip { padding: 5px 12px 5px 5px; }
.subcat-chip img { width: 26px; height: 26px; border-radius: var(--r-pill); object-fit: cover; background: var(--photo-plate); }
.subcat-chip__name { font-size: 12.5px; }

/* ---------------------------------------------------------- product card -- */

.product-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }

.product-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); }

.product-card__frame {
  display: block; position: relative;
  background: var(--photo-plate); aspect-ratio: 1 / 1; overflow: hidden;
}
.product-card__image { width: 100%; height: 100%; object-fit: cover; }

.product-card__tile {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 26px; letter-spacing: .04em; color: #fff;
}
.tile-blue { background: #2f6fd0; }
.tile-lime { background: var(--brand); }
.tile-orange { background: #d9822b; }
.tile-green { background: #0d5738; }

.product-card__body { padding: 11px 12px 13px; display: flex; flex-direction: column; flex: 1; }
.product-card__name {
  font-size: 12.5px; font-weight: 500; color: #33363d; line-height: 1.35;
  margin-bottom: 8px; min-height: 34px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; }
.product-card__price { line-height: 1.25; }

.price { font-size: 15.5px; font-weight: 800; color: var(--ink); display: block; }
.price--old { font-size: 11.5px; color: var(--ink-faint); text-decoration: line-through; margin-right: 5px; }
.price-save { font-size: 11px; font-weight: 700; color: var(--save); }

.add-btn {
  width: 36px; height: 36px; flex: none;
  border: none; border-radius: var(--r-pill);
  background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .16s ease, transform .16s ease;
}
.add-btn svg { width: 18px; height: 18px; }
.add-btn:hover { background: var(--brand-dark); transform: scale(1.06); }
.add-btn[disabled] { background: var(--line-strong); cursor: not-allowed; transform: none; }

.badge-sale {
  position: absolute; top: 9px; left: 9px; z-index: 2;
  padding: 3px 9px; border-radius: var(--r-pill);
  background: var(--save); color: #fff; font-size: 10.5px; font-weight: 700;
}
.badge-out {
  display: inline-block; margin-top: 5px;
  padding: 2px 9px; border-radius: var(--r-pill);
  background: var(--bg-deep); border: 1px solid var(--line);
  color: var(--ink-soft); font-size: 11px; font-weight: 600;
}

.wishlist-toggle-form { position: absolute; top: 7px; right: 7px; z-index: 2; margin: 0; }
.wishlist-toggle-btn {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: rgba(255, 255, 255, .92);
  color: var(--ink-soft); cursor: pointer; transition: color .16s ease, border-color .16s ease;
}
.wishlist-toggle-btn svg { width: 16px; height: 16px; }
.wishlist-toggle-btn:hover, .wishlist-toggle-btn--active { color: var(--save); border-color: var(--save); }

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

.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; }

.shop-filters {
  border: 1px solid var(--line); border-radius: var(--r); background: #fff;
  padding: 18px; position: sticky; top: 88px;
}
.shop-filters h3 {
  font-size: 11px; font-weight: 700; letter-spacing: var(--track);
  text-transform: uppercase; color: var(--ink-faint); margin: 0 0 10px;
}
.shop-filters .filter-group { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.shop-filters .filter-group:last-of-type { border-bottom: none; }

.shop-filters .category-link {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 7px 10px; border-radius: var(--r-sm);
  font-size: 13.5px; font-weight: 600; color: var(--ink-soft);
}
.shop-filters .category-link:hover { background: var(--bg-deep); color: var(--ink); }
.shop-filters .category-link.active { background: var(--brand-tint); color: var(--brand-dark); }

.shop-filters .category-link--child {
  margin-left: 10px; padding-left: 13px;
  border-left: 2px solid var(--line); border-radius: 0 var(--r-sm) var(--r-sm) 0;
  font-weight: 500; font-size: 13px; color: var(--ink-faint);
}
.shop-filters .category-link--child:hover { color: var(--ink); }
.category-link__count { font-size: 11px; color: var(--ink-faint); }

.shop-filters .price-inputs { display: flex; align-items: center; gap: 8px; }
.shop-filters .price-inputs input { width: 100%; }

.filter-toggle-btn { display: none; margin-bottom: 14px; }

.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.shop-toolbar__count { font-size: 13px; color: var(--ink-soft); }
.shop-toolbar select { min-width: 190px; }

/* ----------------------------------------------------------------- forms -- */

label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }

input[type="text"], input[type="email"], input[type="password"], input[type="tel"],
input[type="number"], input[type="date"], input[type="search"], textarea, select {
  width: 100%; min-height: 42px; padding: 10px 13px;
  border-radius: var(--r-sm); border: 1px solid var(--line-strong);
  background: #fff; color: var(--ink);
  font: 400 14px/1.5 var(--sans); outline: none;
  transition: border-color .16s ease, box-shadow .16s ease;
}
textarea { min-height: 110px; resize: vertical; }
select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235f646e' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
  padding-right: 36px;
}
input::placeholder, textarea::placeholder { color: var(--ink-faint); }
input:focus, textarea:focus, select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(18, 118, 74, .12); }

.form-group { margin-bottom: 15px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.field-error { color: var(--danger); font-size: 12px; margin-top: 4px; }

.checkbox-row { display: flex; align-items: center; gap: 9px; }
.checkbox-row input { width: 17px; height: 17px; min-height: 0; accent-color: var(--brand); }
.checkbox-row label { margin: 0; font-weight: 500; }

.alert { padding: 12px 16px; border-radius: var(--r-sm); margin-bottom: 15px; font-size: 14px; border: 1px solid transparent; }
.alert-success { background: var(--success-tint); border-color: var(--success-line); color: #0d5738; }
.alert-error { background: var(--save-tint); border-color: #f5c2bd; color: #9a2318; }

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

.cart-list { display: flex; flex-direction: column; gap: 12px; }

.cart-line {
  display: grid; grid-template-columns: 84px 1fr auto; gap: 15px; align-items: center;
  padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: #fff;
}
.cart-line--unavailable { opacity: .6; }
.cart-line__image { width: 84px; height: 84px; object-fit: cover; border-radius: var(--r-sm); background: var(--photo-plate); }
.cart-line__name { font-weight: 700; }
.cart-line__variant { font-size: 12.5px; color: var(--ink-faint); }
.cart-line__qty { display: flex; align-items: center; gap: 8px; }
.cart-line__qty input { width: 64px; text-align: center; }
.cart-line__subtotal { font-weight: 800; }
.cart-line__actions { display: flex; align-items: center; gap: 12px; }

.cart-summary, .checkout-summary {
  border: 1px solid var(--line); border-radius: var(--r); background: #fff;
  padding: 20px; position: sticky; top: 88px;
}
.cart-summary__row, .checkout-summary__line { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 14px; }

.checkout-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }

/* --------------------------------------------------------------- account -- */

.account-layout { display: grid; grid-template-columns: 225px 1fr; gap: 28px; align-items: start; }
.account-nav { border: 1px solid var(--line); border-radius: var(--r); background: #fff; padding: 10px; }
.account-nav a { display: block; padding: 9px 12px; border-radius: var(--r-sm); font-size: 14px; color: var(--ink-soft); }
.account-nav a:hover { background: var(--bg-deep); color: var(--ink); }

.admin-card { border: 1px solid var(--line); border-radius: var(--r); background: #fff; padding: 20px; margin-bottom: 18px; }
.admin-card h2 { font-size: 17px; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14px; }
.admin-table th { font-size: 11px; letter-spacing: var(--track); text-transform: uppercase; color: var(--ink-faint); font-weight: 700; }

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

.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-item strong { display: block; font-size: 14px; }
.trust-item span { font-size: 12.5px; color: var(--ink-faint); }
.trust-item__icon { font-size: 22px; }

.site-footer { border-top: 1px solid var(--line); background: var(--bg-deep); padding: 42px 0 0; margin-top: 30px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 30px; padding-bottom: 32px; }
.site-footer h4 { font-size: 11px; letter-spacing: var(--track); text-transform: uppercase; color: var(--ink-faint); margin-bottom: 12px; }
.footer-grid a, .footer-note { display: block; font-size: 13.5px; color: var(--ink-soft); padding: 4px 0; }
.footer-grid a:hover { color: var(--brand); }
.footer-bottom { border-top: 1px solid var(--line); padding: 16px 20px; text-align: center; font-size: 12.5px; color: var(--ink-faint); }

.whatsapp-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 61;
  width: 54px; height: 54px; border-radius: var(--r-pill);
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .22);
  transition: transform .18s ease;
}
.whatsapp-fab:hover { transform: scale(1.06); }
.whatsapp-fab svg { width: 28px; height: 28px; fill: currentColor; }

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

@media (max-width: 1100px) {
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .product-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 900px) {
  .hero-slide { grid-template-columns: 1fr; gap: 0; }
  .hero-slide__copy { padding: 22px 20px 26px; order: 2; }
  .hero-slide__media { order: 1; min-height: 0; height: 200px; }
  .hero-slider__arrow { display: none; }   /* swipe instead — arrows crowd a phone */
  .hero-slider__dots { bottom: 10px; }
  .shop-layout { grid-template-columns: 1fr; }
  .shop-filters { position: static; display: none; }
  .shop-filters.shop-filters--open { display: block; }
  .filter-toggle-btn { display: inline-flex; }
  .checkout-layout { grid-template-columns: 1fr; }
  .product-detail-grid { grid-template-columns: 1fr; gap: 24px; }
  .account-layout { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .mobile-menu-toggle { display: flex; }
  .site-nav.site-nav--open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 0;
    padding: 8px 20px 14px; background: #fff; border-bottom: 1px solid var(--line);
  }
  .site-nav.site-nav--open a { padding: 9px 0; font-size: 14.5px; width: 100%; border-bottom: 1px solid var(--line); }
  .site-nav.site-nav--open a:last-child { border-bottom: 0; }
}

@media (max-width: 720px) {
  .container { padding: 0 14px; }
  .site-header__bar { padding: 10px 14px; gap: 10px; }
  .site-logo img { height: 34px; width: 34px; }
  .site-logo__text { display: none; }
  .section { padding: 22px 0; }
  .trust-strip { grid-template-columns: 1fr; gap: 10px; padding: 13px 15px; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 11px; }
  .form-grid { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 64px 1fr; }
  .cart-line__image { width: 64px; height: 64px; }
  .cart-line__actions { grid-column: 1 / -1; justify-content: space-between; }
  .hero-slide__title { font-size: 22px; }
  .hero-slide__text { font-size: 13.5px; margin-bottom: 16px; }
}

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