/* ============ TechSprint — Sprint-style theme ============
   Palette: sage page bg, white sheet, deep green ink, orange accent
========================================================== */
:root {
  /* Best Buy-inspired palette: electric blue + tag yellow on clean greys */
  --blue: #0046be;
  --blue-deep: #00339a;
  --navy: #00113d;
  --yellow: #ffe000;
  --line: #dde1e5;

  --sage: #ffffff;      /* page background — clean white */
  --sheet: #ffffff;     /* cards / sheets */
  --cream: #f5f6f8;     /* soft panels / image wells */
  --tint: #f5f6f8;      /* alternating section band */
  --ink: #1a1a1a;       /* primary text — near black */
  --ink-soft: #3d4550;  /* secondary text — dark grey */
  --muted: #6b7280;     /* tertiary text */
  --orange: var(--blue);        /* primary action */
  --orange-deep: var(--blue-deep);
  --green-pill: var(--navy);    /* dark buttons */
  --star: #f5a623;
  --success: #0b7a3d;

  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow-soft: 0 10px 30px rgba(29, 37, 44, 0.08);
  --shadow-chip: 0 10px 26px rgba(29, 37, 44, 0.12);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* An explicit `display` in a rule beats the browser's [hidden]{display:none},
   which silently leaves "hidden" panels on screen. Keep this ABOVE everything. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--sage);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

.muted { color: var(--muted); }
.small { font-size: 0.8rem; }
.stars { color: var(--star); letter-spacing: 2px; font-size: 0.8rem; white-space: nowrap; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:active { transform: scale(0.97); }

.btn-orange {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 70, 190, 0.30);
}
.btn-orange:hover { background: var(--orange-deep); transform: translateY(-2px); }

.btn-dark {
  background: var(--green-pill);
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 17, 61, 0.30);
}
.btn-dark:hover { background: var(--ink); transform: translateY(-2px); }

.btn-lg { padding: 1.05rem 2.3rem; font-size: 1rem; }
.btn-lg .arrow { transition: transform 0.25s ease; }
.btn-lg:hover .arrow { transform: translateX(6px); }

.btn-ghost {
  background: var(--cream);
  color: var(--ink);
  font-size: 0.82rem;
  padding: 0.6rem 1.1rem;
}
.btn-ghost:hover { background: #e6eaf0; }

/* ============ Navbar — Best Buy blue banner ============ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--blue);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  transition: box-shadow 0.25s ease;
}
.navbar.scrolled { box-shadow: 0 6px 20px rgba(0, 17, 61, 0.22); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
}

/* =========================================================
   LOGO — yellow price-tag monogram + wordmark lockup
   "JK" sits inside the tag, the rest of the name reads as a
   wordmark in the header's foreground colour.
   ========================================================= */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  line-height: 1;
  color: #fff;
}
.logo-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  background: var(--yellow);
  color: #1a1a1a;
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1;
  padding: 0.5em 0.62em 0.5em 1.1em;
  border-radius: 4px 7px 7px 4px;
  /* pointed left edge = price-tag silhouette */
  clip-path: polygon(0.62em 0, 100% 0, 100% 100%, 0.62em 100%, 0 50%);
  transition: filter 0.2s ease, transform 0.2s ease;
}
/* punched hole */
.logo-mark::before {
  content: "";
  position: absolute;
  left: 0.72em;
  top: 50%;
  transform: translateY(-50%);
  width: 0.26em;
  height: 0.26em;
  border-radius: 50%;
  background: #1a1a1a;
}
.logo-word {
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: currentColor;
}
.logo:hover .logo-mark { filter: brightness(1.06); transform: translateY(-1px); }
.logo-dot { display: none; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.2rem);
}

.nav-link {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding-block: 0.3rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nav-link:hover { color: #fff; }
.nav-link.active { color: #fff; border-color: var(--yellow); }

/* header CTA in tag-yellow so it pops off the blue */
.nav-cta.btn-orange {
  background: var(--yellow);
  color: #1a1a1a;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}
.nav-cta.btn-orange:hover { background: #ffe94d; }

.nav-actions { display: flex; align-items: center; gap: 0.8rem; }

.cart-btn {
  position: relative;
  background: rgba(255, 255, 255, 0.16);
  border: none;
  font-size: 1.15rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.cart-btn:hover { background: rgba(255, 255, 255, 0.26); transform: translateY(-2px); }
.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--yellow);
  color: #1a1a1a;
  font-size: 0.68rem;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  padding-inline: 4px;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.16);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  padding: 10px;
}
.hamburger span {
  display: block;
  height: 2.5px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============ Hero ============ */
.hero {
  background: var(--sheet);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
  overflow: hidden;
}

.hero-title {
  font-size: clamp(2rem, 6vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  position: relative;
  display: inline-block;
}
.hero-title span { position: relative; }
.hero-title #heroTitle2::after {
  content: "⤳";
  position: absolute;
  top: -1.2em;
  right: -0.9em;
  font-size: 0.5em;
  color: var(--orange);
  opacity: 0.7;
}

.hero-cta { margin-top: clamp(1.4rem, 3vw, 2.2rem); }

/* stage */
.hero-stage {
  position: relative;
  margin: clamp(1.8rem, 4.5vw, 3rem) auto 0;
  max-width: 720px;
}

.hero-blob {
  position: relative;
  margin-inline: auto;
  width: min(78vw, 520px);
  aspect-ratio: 1.6 / 1;
  background: var(--cream);
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.orbit-ring {
  position: absolute;
  inset: -9%;
  border: 1px solid rgba(29, 37, 44, 0.18);
  border-radius: 50%;
  pointer-events: none;
}
.orbit-dot {
  position: absolute;
  right: 4%;
  bottom: 8%;
  width: 22px;
  height: 22px;
  border: 2px solid var(--orange);
  border-radius: 50%;
  background: #fff;
}

.hero-product { transition: transform 0.4s ease, opacity 0.4s ease; }
.hero-product.switching { transform: scale(0.6) rotate(-8deg); opacity: 0; }

.hero-photo {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-photo.switching { transform: scale(1.08); opacity: 0; }
.hero-photo.hidden { display: none; }

.hero-emoji {
  font-size: clamp(6rem, 20vw, 11rem);
  line-height: 1;
  display: block;
  filter: drop-shadow(0 24px 30px rgba(29, 37, 44, 0.25));
  animation: floaty 5s ease-in-out infinite;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* floating chips */
.float-chip {
  position: absolute;
  background: #fff;
  border-radius: 999px;
  box-shadow: var(--shadow-chip);
  font-weight: 700;
  display: flex;
  align-items: center;
  z-index: 2;
}

.price-chip {
  top: 12%;
  left: clamp(0px, 4%, 40px);
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(29, 37, 44, 0.15);
  background: var(--sheet);
  justify-content: center;
  font-size: clamp(0.95rem, 2vw, 1.25rem);
  white-space: nowrap;
  animation: floaty 6s ease-in-out infinite;
}

.sold-chip {
  top: 34%;
  right: clamp(-6px, 2%, 30px);
  padding: 0.7rem 1.1rem;
  font-size: clamp(0.75rem, 1.6vw, 0.9rem);
  font-weight: 600;
  gap: 0.3rem;
  animation: floaty 7s ease-in-out infinite reverse;
}
.sold-chip strong { font-weight: 800; }

.review-chip {
  bottom: 4%;
  left: clamp(-8px, 3%, 40px);
  padding: 0.65rem 1rem;
  gap: 0.7rem;
  border-radius: 999px;
  text-align: left;
  animation: floaty 8s ease-in-out infinite;
}
.review-chip p { font-size: clamp(0.72rem, 1.5vw, 0.85rem); font-weight: 700; line-height: 1.3; }
.chip-emoji { font-size: 1.6rem; }
.chip-avatar {
  font-size: 1.4rem;
  background: var(--cream);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

/* pager */
.hero-pager {
  margin-top: clamp(1.2rem, 3vw, 2rem);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.pager-arrow {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--ink-soft);
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: background 0.2s ease;
}
.pager-arrow:hover { background: var(--cream); }

.pager-dots { display: flex; gap: 0.6rem; }
.pager-dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(29, 37, 44, 0.08);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.pager-dot.active {
  background: var(--green-pill);
  color: #fff;
  transform: translateY(-2px);
}

/* ============ Sections ============ */
.section { padding: clamp(2.25rem, 5.5vw, 4rem) 0; }
.section-tint .section-title {
  font-size: clamp(1.7rem, 4.5vw, 2.6rem);
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.02em;
}
.section-sub {
  text-align: center;
  color: var(--ink-soft);
  margin-top: 0.6rem;
  font-size: clamp(0.9rem, 2vw, 1rem);
}

/* ============ Categories ============ */
.categories { padding-bottom: 0; }

.cat-row {
  margin-top: clamp(1.2rem, 3vw, 2rem);
  display: flex;
  gap: clamp(0.7rem, 2vw, 1.2rem);
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 0.5rem 0.25rem 1rem;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.cat-row::-webkit-scrollbar { display: none; }

/* first/last auto margins center the row when it fits, yet keep every
   item reachable when it overflows and scrolls (unlike justify-content) */
.cat-item:first-child { margin-left: auto; }
.cat-item:last-child { margin-right: auto; }

.cat-item {
  scroll-snap-align: center;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0.4rem;
  min-width: 86px;
}

.cat-icon {
  width: clamp(58px, 9vw, 72px);
  height: clamp(58px, 9vw, 72px);
  border-radius: 50%;
  background: var(--sheet);
  box-shadow: var(--shadow-soft);
  border: 2px solid transparent;
  display: grid;
  place-items: center;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.cat-item:hover .cat-icon { transform: translateY(-4px); }

.cat-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: color 0.25s ease;
}

.cat-item.active .cat-icon {
  background: var(--green-pill);
  border-color: var(--green-pill);
  box-shadow: 0 14px 30px rgba(0, 17, 61, 0.30);
}
.cat-item.active .cat-label { color: var(--ink); }

.section-shop { padding-top: clamp(1rem, 2.5vw, 1.75rem); }

.grid-empty {
  text-align: center;
  color: var(--ink-soft);
  font-weight: 600;
  padding: 1.5rem 0;
}

/* =========================================================
   PRODUCT SHOWCASE
   Clean retail cards: 4 per row, white surface, quiet borders,
   yellow sale badges, blue primary action.
   ========================================================= */
:root {
  --pc-radius: 14px;
  --pc-border: #e3e6ea;
  --pc-border-hover: #c9d2df;
  --pc-shadow-hover: 0 12px 28px rgba(26, 26, 26, 0.10);
  --pc-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---- Grid: 4 per row ---- */
.product-grid {
  margin-top: clamp(1.4rem, 3.5vw, 2.25rem);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.6rem, 1.1vw, 0.9rem);
  align-items: stretch;
}
@media (max-width: 1024px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* phones/tablets keep TWO products per row all the way down */
@media (max-width: 760px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
  /* compact the card so two fit comfortably on a phone */
  .product-card { padding: 0.5rem 0.5rem 0.7rem; border-radius: 12px; }
  .pc-badges { top: 8px; left: 8px; gap: 0.22rem; }
  .pc-badge { font-size: 0.58rem; padding: 0.22rem 0.45rem; }
  .pc-body { padding-top: 0.6rem; }
  .pc-title { font-size: 0.8rem; min-height: 2.4em; }
  .pc-stars { font-size: 0.72rem; letter-spacing: 1px; }
  .pc-count { font-size: 0.65rem; }
  .pc-price { font-size: 1rem; }
  .pc-old { font-size: 0.72rem; }
  .pc-actions { padding-top: 0.6rem; gap: 0.35rem; }
  .pc-btn { font-size: 0.78rem; padding: 0.6rem 0.4rem; }
  .pc-btn--wa { font-size: 0.7rem; padding: 0.5rem 0.4rem; }
  .offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
}

/* ---- Card ---- */
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--pc-border);
  border-radius: var(--pc-radius);
  padding: 0.7rem 0.7rem 0.9rem;
  transition: border-color 0.22s var(--pc-ease), box-shadow 0.22s var(--pc-ease), transform 0.22s var(--pc-ease);
  opacity: 0;
  transform: translateY(12px);
  animation: pcFadeIn 0.45s var(--pc-ease) forwards;
  animation-delay: var(--pc-delay, 0ms);
}
@keyframes pcFadeIn { to { opacity: 1; transform: none; } }

.product-card:hover,
.product-card:focus-within {
  transform: translateY(-4px);
  border-color: var(--pc-border-hover);
  box-shadow: var(--pc-shadow-hover);
}

/* ---- Badges: yellow for savings, blue for new, black for best seller ---- */
.pc-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  pointer-events: none;
}
.pc-badge {
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.28rem 0.6rem;
  border-radius: 4px;
  line-height: 1.25;
}
.pc-badge--sale    { background: var(--yellow); color: #1a1a1a; }
.pc-badge--new     { background: var(--blue);   color: #fff; }
.pc-badge--best    { background: #1a1a1a;       color: #fff; }
.pc-badge--limited { background: #fff4cc;       color: #8a6100; border: 1px solid #f0d98a; }
.pc-badge--default { background: #eef1f5;       color: var(--ink-soft); }

/* ---- Media: fixed SQUARE frame, identical on every card ----
   Square matches standard product-packaging photography (1:1). Using
   `contain` guarantees the whole product — including packaging text —
   is always visible and never cropped or distorted. ---------------- */
.pc-media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  width: 100%;
  padding: 0;
  background: #fff;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}
.pc-media:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.pc-img {
  position: relative;
  z-index: 1;
  /* every image sits in the SAME square frame at full resolution */
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.35s var(--pc-ease);
}
.product-card:hover .pc-img { transform: scale(1.045); }
.pc-emoji {
  position: absolute;
  font-size: 4.6rem;
  z-index: 0;
  filter: drop-shadow(0 8px 10px rgba(26, 26, 26, 0.14));
}
.pc-out {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  background: rgba(26, 26, 26, 0.86);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-align: center;
  padding: 0.32rem 0;
}

/* clean whitespace between image and copy — no divider, like Best Buy */
.pc-body {
  padding-top: 0.85rem;
}

.pc-title {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
  cursor: pointer;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
  transition: color 0.18s ease;
}
.pc-title:hover { color: var(--blue); }

.pc-rating { display: flex; align-items: center; gap: 0.35rem; margin-top: 0.5rem; }
.pc-stars { color: var(--star); font-size: 0.8rem; letter-spacing: 1.5px; line-height: 1; }
.pc-count { font-size: 0.72rem; color: var(--muted); font-weight: 500; }

.pc-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.6rem;
}
.pc-price { font-size: 1.22rem; font-weight: 800; color: #1a1a1a; letter-spacing: -0.02em; }
.pc-old { font-size: 0.8rem; color: var(--muted); text-decoration: line-through; }

/* ---- Actions pinned to the bottom for equal heights ---- */
.pc-actions {
  margin-top: auto;
  padding-top: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.pc-btn {
  width: 100%;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.72rem 0.6rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: var(--blue);
  color: #fff;
  transition: background 0.2s var(--pc-ease), box-shadow 0.2s var(--pc-ease), transform 0.12s ease;
}
.pc-btn:hover:not(:disabled) { background: var(--blue-deep); box-shadow: 0 6px 16px rgba(0, 70, 190, 0.28); }
.pc-btn:active:not(:disabled) { transform: scale(0.985); }
.pc-btn:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.pc-btn:disabled { background: #e6e9ee; color: #98a2b3; cursor: not-allowed; }

/* secondary WhatsApp action reads as an outline button */
.pc-btn--wa {
  background: #fff;
  color: #1a7f42;
  border: 1.5px solid #cfe9d9;
  font-size: 0.8rem;
  padding: 0.58rem 0.6rem;
}
.pc-btn--wa:hover:not(:disabled) { background: #f1faf4; border-color: #25d366; box-shadow: none; }
.pc-btn--wa .wa-glyph {
  width: 1em; height: 1em;
  /* recolour the white glyph to match the green outline style */
  filter: invert(35%) sepia(48%) saturate(720%) hue-rotate(96deg) brightness(92%) contrast(90%);
}

/* add-to-cart confirmation */
.pc-btn.is-added { background: var(--success); }
@keyframes pcPop { 50% { transform: scale(1.04); } }
.pc-btn.is-added { animation: pcPop 0.3s var(--pc-ease); }

.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;
}

@media (prefers-reduced-motion: reduce) {
  .product-card { opacity: 1; transform: none; animation: none; }
  .product-card:hover .pc-img { transform: none; }
}

/* ============ Colour swatches ============ */
.color-dots { display: flex; gap: 0.3rem; margin: 0.5rem 0 0; }
.color-dot {
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--sw, #ccc);
  border: 1.5px solid rgba(29, 37, 44, 0.18);
  display: inline-block; flex-shrink: 0;
}
.color-dots.sm .color-dot { width: 12px; height: 12px; }
.ci-color { display: inline-flex; align-items: center; gap: 0.25rem; }
.ci-color .color-dot { width: 11px; height: 11px; border-width: 1px; }

/* =========================================================
   PRODUCT DETAIL VIEW (PDP) — Apple-style two-column layout
   Left: large image + thumbnail rail. Right: title, rating,
   copy, price, quantity, buy actions, delivery promise.
   ========================================================= */
.pdp {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(1.2rem, 3vw, 2.6rem);
  align-items: start;
  padding: clamp(1.4rem, 3vw, 2.4rem);
}

/* ---- Left: gallery ---- */
.pdp-gallery { position: sticky; top: 0; }
.pdp-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #fff;
  border-radius: 14px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.pdp-stage img { width: 100%; height: 100%; object-fit: contain; }
.pdp-out {
  position: absolute;
  inset: auto 0 0 0;
  background: rgba(26, 26, 26, 0.88);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  padding: 0.4rem 0;
}
.pdp-thumbs {
  display: flex;
  gap: 0.55rem;
  margin-top: 0.85rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 0.2rem;
}
.pdp-thumbs::-webkit-scrollbar { display: none; }
.thumb-btn {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid var(--line);
  background: #fff;
  cursor: pointer;
  padding: 3px;
  transition: border-color 0.2s ease;
}
.thumb-btn img { width: 100%; height: 100%; object-fit: contain; }
.thumb-btn.active { border-color: var(--ink); border-width: 2px; }
.thumb-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---- Right: details ---- */
.pdp-info { min-width: 0; }
.pdp-title {
  font-size: clamp(1.15rem, 2.1vw, 1.5rem);
  font-weight: 800;
  line-height: 1.32;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.pdp-rating { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.6rem; }
.pdp-rating .stars { color: var(--star); font-size: 0.95rem; letter-spacing: 2px; }
.pdp-rating .muted { font-size: 0.85rem; }
.pdp-rule { border: 0; border-top: 1px solid var(--line); margin: 1rem 0; }
.pdp-desc { color: var(--ink-soft); font-size: 0.93rem; line-height: 1.65; }
.pdp-bullets {
  margin: 0.9rem 0 0;
  padding-left: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.pdp-bullets li { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.5; }
.pdp-bullets:empty { display: none; }

.pdp-colors { margin: 1.1rem 0 0; }
.mc-label { font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); }
.mc-label b { color: var(--ink); }
.mc-swatches { display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.mc-swatch {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--sw, #ccc);
  border: 2px solid rgba(29, 37, 44, 0.15);
  cursor: pointer; padding: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.mc-swatch:hover { transform: scale(1.1); }
.mc-swatch.active { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--ink); }

.pdp-price {
  font-size: clamp(1.4rem, 2.6vw, 1.75rem);
  font-weight: 800;
  color: var(--ink);
  margin: 1.25rem 0 1rem;
  letter-spacing: -0.02em;
}
.pdp-price .pdp-was {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: line-through;
  margin-left: 0.55rem;
  letter-spacing: 0;
}

/* ---- Quantity + buy ---- */
.pdp-buy { display: flex; gap: 0.7rem; align-items: stretch; }
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 0.18rem;
  flex: 0 0 auto;
}
.qty-stepper button {
  width: 38px; height: 38px;
  border: 0; background: none; cursor: pointer;
  font-size: 1.15rem; font-weight: 700; color: var(--ink);
  border-radius: 50%;
  transition: background 0.15s ease;
}
.qty-stepper button:hover { background: var(--cream); }
.qty-stepper button:disabled { opacity: 0.35; cursor: not-allowed; }
.qty-value { min-width: 34px; text-align: center; font-weight: 700; font-size: 0.95rem; }

.pdp-btn {
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  border-radius: 999px;
  padding: 0.95rem 1.4rem;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.12s ease;
}
.pdp-btn:active:not(:disabled) { transform: scale(0.99); }
.pdp-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.pdp-add { flex: 1; background: var(--navy); color: #fff; }
.pdp-add:hover:not(:disabled) { background: #000a24; box-shadow: 0 8px 20px rgba(0, 17, 61, 0.28); }
.pdp-buynow {
  width: 100%;
  margin-top: 0.7rem;
  background: var(--yellow);
  color: #1a1a1a;
}
.pdp-buynow:hover:not(:disabled) { background: #ffe94d; box-shadow: 0 8px 20px rgba(255, 224, 0, 0.4); }
.pdp-btn:disabled { background: #e6e9ee; color: #98a2b3; cursor: not-allowed; box-shadow: none; }

/* ---- Meta actions ---- */
.pdp-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  margin: 1.15rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}
.pdp-meta-btn {
  background: none; border: 0; cursor: pointer;
  font-family: inherit; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.03em; text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.3rem 0;
  transition: color 0.18s ease;
}
.pdp-meta-btn:hover { color: var(--blue); }
.pdp-meta-btn.is-wished { color: #e0526b; }
.pdp-meta-btn .wa-glyph {
  width: 1em; height: 1em;
  filter: invert(28%) sepia(12%) saturate(600%) hue-rotate(175deg) brightness(92%) contrast(88%);
}

/* ---- Delivery promise ---- */
.pdp-delivery {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-top: 1.15rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.pdp-truck { font-size: 1.1rem; line-height: 1.2; }
.pdp-freeship { color: var(--success); font-weight: 700; }
.pdp-guarantee {
  margin-top: 0.8rem;
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
}

/* ---- Mobile: stack into one column ---- */
@media (max-width: 760px) {
  .pdp { grid-template-columns: 1fr; gap: 1.1rem; padding: 1.1rem; }
  .pdp-gallery { position: static; }
  .pdp-stage { border-radius: 12px; }
  .thumb-btn { width: 54px; height: 54px; }
  .pdp-title { font-size: 1.08rem; }
  .pdp-price { font-size: 1.35rem; margin: 1rem 0 0.85rem; }
  .pdp-buy { gap: 0.5rem; }
  .qty-stepper button { width: 34px; height: 34px; }
  .pdp-btn { padding: 0.85rem 1rem; font-size: 0.85rem; }
  .pdp-meta { gap: 0.3rem 0.9rem; }
  .pdp-meta-btn { font-size: 0.72rem; }
}

/* ============ Free delivery strip ============ */
.delivery-strip {
  display: flex; align-items: center; gap: 0.5rem; justify-content: center;
  background: #e4f4ea; color: var(--success);
  font-size: 0.82rem; padding: 0.6rem 1rem;
  margin: 0.8rem 1.4rem 0; border-radius: 12px;
}

/* ============ Receipt view ============ */
.receipt-wrap { padding: 1.6rem 1.4rem; display: flex; flex-direction: column; gap: 0.7rem; text-align: center; }
.receipt-tick { font-size: 2.6rem; }
.receipt-title { font-size: 1.3rem; font-weight: 800; }
.receipt-sub { font-size: 0.87rem; color: var(--ink-soft); }
.receipt-box {
  text-align: left;
  background: var(--cream);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  margin: 0.5rem 0;
  font-size: 0.85rem;
}
.rc-row { display: flex; justify-content: space-between; gap: 0.8rem; padding: 0.22rem 0; }
.rc-row span:first-child { color: var(--ink-soft); }
.rc-items { border-top: 1px dashed rgba(29, 37, 44,.2); border-bottom: 1px dashed rgba(29, 37, 44,.2); margin: 0.5rem 0; padding: 0.4rem 0; }
.rc-total { font-size: 1.05rem; padding-top: 0.5rem; }
.rc-total b { font-weight: 800; }
.receipt-wrap .btn { width: 100%; }

/* ============ Stock badges ============ */
.stock-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  letter-spacing: 0.01em;
}
.stock-badge.in { background: #e4f4ea; color: var(--success); }
.stock-badge.low { background: #fff1dd; color: #b5701a; }
.stock-badge.out { background: #fbe6e6; color: #c23c3c; }
/* inline (inside modal reviews line) */
.product-reviews .stock-badge,
#modalReviews .stock-badge { position: static; margin-left: 0.4rem; }

/* ============ Promo video ============ */
.promo-video {
  margin: clamp(1.6rem, 4vw, 2.6rem) auto 0;
  max-width: 900px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: #000;
  aspect-ratio: 16 / 9;
}
.promo-video iframe,
.promo-video video {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  object-fit: cover;
}

/* ============ Offers ============ */
#offers { background: var(--tint); }
.offer-grid {
  margin-top: clamp(1.4rem, 3.5vw, 2.25rem);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.7rem, 1.4vw, 1rem);
  max-width: 1000px;
  margin-inline: auto;
}
/* offer cards: same language as the shop cards, just a touch larger */
.offer-card { padding: 1.1rem 1.15rem 1.25rem; }
.offer-card .pc-title { font-size: 0.96rem; }
.offer-card .pc-price { font-size: 1.4rem; }
.offer-card .pc-btn { font-size: 0.92rem; padding: 0.82rem 0.6rem; }

@media (max-width: 860px) { .offer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .offer-grid { grid-template-columns: 1fr; } }

/* ============ Reviews — moving marquee ============ */
.marquee {
  margin-top: clamp(1.6rem, 4vw, 2.6rem);
  overflow: hidden;
  padding: 0.6rem 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.marquee-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: marquee-scroll 46s linear infinite;
}
.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track { animation-play-state: paused; }

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.rv-card {
  flex: 0 0 clamp(260px, 78vw, 340px);
  background: var(--sheet);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.rv-card.is-new { outline: 2px solid var(--orange); }

.rv-head { display: flex; align-items: center; gap: 0.7rem; }
.rv-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cream);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}
.rv-id { min-width: 0; }
.rv-id strong { display: block; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-id .muted { font-size: 0.8rem; }
.rv-stars { color: var(--star); letter-spacing: 2px; font-size: 0.9rem; }
.rv-text {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Leave a review form ---------- */
.review-form-card {
  margin-top: clamp(1.6rem, 4vw, 2.6rem);
  max-width: 640px;
  margin-inline: auto;
  background: var(--sheet);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.5rem, 4vw, 2.2rem);
}
.review-form-card h3 { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.01em; }
.review-form-sub { color: var(--ink-soft); font-size: 0.9rem; margin-top: 0.25rem; }

.review-form { margin-top: 1.2rem; display: flex; flex-direction: column; gap: 0.9rem; }
.rf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }

.review-form input,
.review-form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.8rem 1.1rem;
  border: 1.5px solid rgba(29, 37, 44, 0.15);
  border-radius: 14px;
  outline: none;
  background: var(--cream);
  color: var(--ink);
  transition: border-color 0.2s ease;
  resize: vertical;
}
.review-form input:focus,
.review-form textarea:focus { border-color: var(--green-pill); }

.rf-rating { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; }
.rf-rating-label { font-weight: 700; font-size: 0.9rem; }
.star-picker { display: flex; gap: 0.2rem; }
.star-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.7rem;
  line-height: 1;
  color: #d9d9d9;
  padding: 0 0.05rem;
  transition: color 0.15s ease, transform 0.15s ease;
}
.star-btn:hover { transform: scale(1.15); }
.star-btn.active { color: var(--star); }

.rf-submit { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.form-msg { font-weight: 600; font-size: 0.88rem; min-height: 1.2em; }
.form-msg.ok { color: var(--success); }
.form-msg.err { color: #d24b4b; }

/* ============ Contact section ============ */
.contact-grid {
  margin-top: clamp(1.6rem, 4vw, 2.6rem);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(1.2rem, 3vw, 2rem);
  align-items: start;
}
.contact-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.contact-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--sheet);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 1.1rem 1.2rem;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
a.contact-card:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(29, 37, 44, 0.14); }
.contact-ic {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--cream);
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}
.contact-ic.wa { background: #25d366; }
.contact-card strong { display: block; font-size: 0.95rem; }
.contact-card .muted { font-size: 0.82rem; }

.contact-form {
  background: var(--sheet);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: clamp(1.4rem, 3.5vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink);
}
.contact-form input,
.contact-form textarea {
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.75rem 1rem;
  border: 1.5px solid rgba(29, 37, 44, 0.15);
  border-radius: 12px;
  outline: none;
  background: var(--cream);
  color: var(--ink);
  transition: border-color 0.2s ease;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--green-pill); }
.contact-form .req { color: var(--orange-deep); }
.contact-form .btn { width: 100%; }

/* ============ Footer — compact & professional ============ */
.footer {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  background: var(--ink);
  color: #dbe2ea;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: clamp(2rem, 4vw, 2.6rem) 0 1.4rem;
}
.footer .logo { color: #fff; font-size: 1.3rem; }

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  padding-bottom: 1.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand p {
  margin-top: 0.7rem;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #9aa8b6;
  max-width: 30ch;
}
.footer-social { display: flex; gap: 0.6rem; margin-top: 1rem; }
/* white chips so the real brand-colour icons stay vivid on the dark footer */
.footer-social .soc {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.footer-social .soc svg { display: block; }
.footer-social .soc:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28); }
.footer-social .soc:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }

.footer-col { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  margin-bottom: 0.2rem;
}
.footer-col a {
  color: #9aa8b6;
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: #fff; }
.footer-col .muted { color: #78868f; }
.footer-phone {
  display: inline-flex !important;
  align-items: center;
  gap: 0.45rem;
  color: #fff !important;
  font-weight: 800;
  font-size: 0.95rem !important;
}
.footer-phone .wa-glyph { width: 1.05em; height: 1.05em; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  padding-top: 1.2rem;
}
.footer-bottom .muted { color: #78868f; }
.footer-legal { display: flex; gap: 1.2rem; }
.footer-legal a { color: #9aa8b6; text-decoration: none; font-size: 0.82rem; }
.footer-legal a:hover { color: #fff; }

/* ============ Cart drawer & modal ============ */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(29, 37, 44, 0.45);
  backdrop-filter: blur(2px);
  z-index: 70;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.overlay.show { opacity: 1; }
.overlay[hidden] { display: none; }

.icon-close {
  background: var(--cream);
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.icon-close:hover { background: #e6eaf0; transform: rotate(90deg); }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 96vw);
  background: var(--sheet);
  z-index: 80;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  box-shadow: -20px 0 60px rgba(29, 37, 44, 0.25);
  /* exactly its own width off-screen — 110% used to push the document wider
     than the phone viewport, which caused sideways drag + zoom-out */
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.38s;
}
.cart-drawer.open { transform: translateX(0); visibility: visible; }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.3rem 1.4rem;
  border-bottom: 1px solid rgba(29, 37, 44, 0.08);
}
.drawer-head h3 { font-size: 1.2rem; font-weight: 800; }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-item {
  display: flex;
  gap: 0.9rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(29, 37, 44, 0.08);
}
.cart-item:last-child { border-bottom: none; padding-bottom: 0; }
.cart-item-img {
  width: 74px;
  height: 74px;
  border-radius: 14px;
  object-fit: cover;
  background: var(--cream);
  flex-shrink: 0;
}
.cart-item-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.cart-item-info h4 { font-size: 0.92rem; font-weight: 700; line-height: 1.3; }
.cart-item-unit { font-size: 0.8rem; font-weight: 600; color: var(--muted); }

.qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--cream);
  border-radius: 999px;
  padding: 0.2rem;
  width: fit-content;
  margin-top: 0.1rem;
}
.qty-controls button {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  border: none;
  background: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(29, 37, 44, 0.1);
  transition: transform 0.15s ease;
}
.qty-controls button:hover { transform: translateY(-1px); }
.qty-controls .qty { font-weight: 800; font-size: 0.88rem; min-width: 22px; text-align: center; }

.cart-item-end {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  flex-shrink: 0;
}
.cart-item-remove {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1rem;
  cursor: pointer;
  padding: 0.2rem;
  transition: color 0.2s ease, transform 0.2s ease;
}
.cart-item-remove:hover { color: #d24b4b; transform: scale(1.15); }
.cart-item-line { font-weight: 800; font-size: 0.98rem; color: var(--ink); }

.cart-empty {
  text-align: center;
  color: var(--ink-soft);
  font-weight: 600;
  padding: 2.5rem 1.4rem;
}

/* order summary (big-store style) */
.drawer-foot {
  padding: 1.1rem 1.4rem 1.3rem;
  border-top: 1px solid rgba(29, 37, 44, 0.1);
  background: var(--sheet);
  box-shadow: 0 -10px 24px rgba(29, 37, 44, 0.05);
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}
.summary-row .free-tag { color: var(--success); font-weight: 700; }
.summary-total {
  border-top: 1px dashed rgba(29, 37, 44, 0.18);
  padding-top: 0.7rem;
  margin-top: 0.2rem;
  color: var(--ink);
  font-weight: 700;
}
.summary-total strong { font-size: 1.35rem; font-weight: 800; }
.checkout-btn { width: 100%; margin-top: 0.6rem; }
.cart-trust {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.9rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  flex-wrap: wrap;
}

/* modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(29, 37, 44, 0.45);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.modal.show { opacity: 1; }
/* The [hidden] attribute must beat the explicit display above, otherwise the
   invisible modal covers the whole page and swallows every click. */
.modal[hidden] { display: none; }

.modal-card {
  position: relative;
  background: var(--sheet);
  border-radius: 18px;
  /* wide enough for the two-column product page */
  width: min(1040px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 40px 80px rgba(29, 37, 44, 0.35);
  transform: scale(0.96) translateY(14px);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.modal.show .modal-card { transform: scale(1) translateY(0); }

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.9);
}

body.no-scroll { overflow: hidden; }

/* ============ WhatsApp glyph + button ============ */
.wa-glyph {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  vertical-align: -0.2em;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2032%2032%22%3E%3Cpath%20d%3D%22M16%20.5C7.4.5.5%207.4.5%2016c0%202.8.7%205.5%202%207.8L.4%2031.6l8-2.1c2.2%201.2%204.7%201.9%207.6%201.9%208.6%200%2015.5-6.9%2015.5-15.5S24.6.5%2016%20.5zm0%2028.3c-2.5%200-4.9-.7-6.9-1.9l-.5-.3-4.8%201.3%201.3-4.7-.3-.5C3.5%2020.7%202.9%2018.4%202.9%2016%202.9%208.8%208.8%202.9%2016%202.9S29.1%208.8%2029.1%2016%2023.2%2028.8%2016%2028.8zm7.1-9.6c-.4-.2-2.3-1.1-2.6-1.3-.4-.1-.6-.2-.9.2-.2.4-.9%201.2-1.1%201.4-.2.2-.4.2-.7.1-.4-.2-1.6-.6-3.1-1.9-1.1-1-1.9-2.3-2.1-2.6-.2-.4%200-.6.2-.7.2-.2.4-.4.5-.6.2-.2.2-.3.4-.6.1-.2%200-.4%200-.6-.1-.2-.9-2.1-1.2-2.9-.3-.7-.6-.6-.8-.6h-.7c-.2%200-.6.1-.9.4-.3.4-1.2%201.2-1.2%202.8%200%201.7%201.2%203.3%201.4%203.5.2.2%202.4%203.7%205.9%205.1.8.4%201.5.6%202%20.8.8.3%201.6.2%202.2.1.7-.1%202.1-.9%202.4-1.7.3-.8.3-1.5.2-1.7-.1-.1-.3-.2-.6-.4z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.wa-glyph.large { width: 30px; height: 30px; vertical-align: middle; }

.btn-whatsapp {
  background: #25d366;
  color: #fff;
  box-shadow: 0 12px 26px rgba(37, 211, 102, 0.35);
}
.btn-whatsapp:hover { background: #1ebe5b; transform: translateY(-2px); }

/* ============ Floating WhatsApp button ============ */
.whatsapp-fab {
  position: fixed;
  right: 20px;
  bottom: 22px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0;
  height: 60px;
  padding: 0;
  background: #25d366;
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 14px 34px rgba(37, 211, 102, 0.45);
  overflow: hidden;
  transition: padding 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-fab .wa-glyph { flex: 0 0 auto; margin: 0 15px; }
.whatsapp-fab-label {
  max-width: 0;
  white-space: nowrap;
  opacity: 0;
  transition: max-width 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
}
.whatsapp-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(37, 211, 102, 0.55);
}
.whatsapp-fab:hover .whatsapp-fab-label {
  max-width: 160px;
  opacity: 1;
  margin-right: 20px;
}
@keyframes wa-pulse {
  0% { box-shadow: 0 14px 34px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 14px 34px rgba(37, 211, 102, 0.45), 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 14px 34px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0); }
}
.whatsapp-fab { animation: wa-pulse 2.6s ease-out infinite; }

/* ============ Cart drawer views ============ */
.drawer-view {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
#cartView { overflow: hidden; }
/* the strip, guarantee and totals stay put — only the item list scrolls */
.delivery-strip,
.cart-guarantee,
.drawer-foot { flex-shrink: 0; }
.cart-empty { flex: 1; display: grid; place-items: center; }
#checkoutView { overflow-y: auto; }

.cart-guarantee {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin: 0 1.4rem;
  padding: 0.9rem 1rem;
  background: #f0f5ff;
  border: 1px solid rgba(0, 70, 190, 0.22);
  border-radius: 14px;
}
.cart-guarantee.slim { margin: 0; padding: 0.75rem 0.9rem; }
.cart-guarantee .guarantee-icon { font-size: 1.2rem; line-height: 1.3; }
.cart-guarantee p { font-size: 0.82rem; line-height: 1.5; color: var(--ink-soft); }
.cart-guarantee strong { color: var(--ink); }

/* checkout view */
.checkout-form { padding: 0.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; gap: 0.85rem; }
.checkout-heading {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-top: 0.2rem;
}
.co-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.checkout-form .req { color: var(--orange-deep); }
.checkout-form .opt { color: var(--muted); font-weight: 500; font-size: 0.78rem; }
.back-link {
  align-self: flex-start;
  margin: 1rem 0 0 1.4rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.back-link:hover { color: var(--ink); }

.checkout-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink);
}
.checkout-form input,
.checkout-form textarea {
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.75rem 1rem;
  border: 1.5px solid rgba(29, 37, 44, 0.15);
  border-radius: 12px;
  outline: none;
  background: var(--cream);
  color: var(--ink);
  transition: border-color 0.2s ease;
  resize: vertical;
}
.checkout-form input:focus,
.checkout-form textarea:focus { border-color: var(--green-pill); }

.pay-method {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 1rem;
  border: 2px solid var(--green-pill);
  border-radius: 14px;
  background: #f0f5ff;
}
.pay-method .pay-icon { font-size: 1.5rem; }
.pay-method strong { display: block; font-size: 0.95rem; }
.pay-method .muted { display: block; }
.pay-method .pay-check {
  margin-left: auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--green-pill);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 800;
}

.checkout-summary {
  border-top: 1px dashed rgba(29, 37, 44, 0.18);
  border-bottom: 1px dashed rgba(29, 37, 44, 0.18);
  padding: 0.8rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.checkout-summary .cs-line {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.checkout-summary .cs-total {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink);
  margin-top: 0.2rem;
}
.place-order-btn { width: 100%; margin-top: 0.2rem; }

/* modal WhatsApp additions */
/* ============ Toast ============ */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 120px);
  background: var(--green-pill);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  box-shadow: var(--shadow-chip);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 100;
  max-width: 90vw;
  text-align: center;
}
.toast.show { transform: translate(-50%, 0); }

/* ============ Reveal on scroll ============ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

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

/* ============ Responsive: tablet & phone ============ */
@media (max-width: 860px) {
  /* MOBILE VIEWPORT LOCK — keeps the page pinned to the screen width so it
     can't drift sideways or zoom out if any element overhangs the edge. */
  html, body {
    overflow-x: hidden;
    max-width: 100%;
    overscroll-behavior-x: none;
  }
  /* nothing may create a horizontal scroll on a phone */
  .hero, .section, .footer, .marquee, .container { max-width: 100%; }

  .hamburger { display: flex; }

  .nav-links {
    position: fixed;
    inset: 66px 0 auto 0;
    background: var(--sheet);
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 1.2rem 6% 1.6rem;
    gap: 0.4rem;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: 0 30px 50px rgba(29, 37, 44, 0.18);
    transform: translateY(-130%);
    transition: transform 0.35s ease;
    z-index: 40;
  }
  .nav-links.open { transform: translateY(0); }

  /* the mobile drawer is a white sheet, so links go back to dark text */
  .nav-link {
    padding: 0.8rem 0;
    border-bottom: none;
    border-radius: 12px;
    color: var(--ink-soft);
  }
  .nav-link:hover { background: var(--cream); color: var(--ink); }
  .nav-link.active { background: var(--cream); color: var(--blue); }
  .nav-cta { margin-top: 0.6rem; }

  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 1.4rem 1rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .contact-methods { grid-template-columns: 1fr; }
  .sold-chip { top: auto; bottom: 30%; right: 0; }
  .review-chip { position: static; margin: 1.4rem auto 0; width: fit-content; animation: none; }
  .price-chip { top: 6%; left: 0; }
  .hero-blob { width: 88vw; }
  .rf-grid { grid-template-columns: 1fr; }
  .pager-dot { width: 34px; height: 34px; }
}
