/* ============================================================
   SPIDER GADGETS: DESIGN SYSTEM
   Brand: blue, black & white. One confident accent blue over
   near-black and white surfaces. WhatsApp green stays functional
   for ordering actions only, gold stays functional for ratings.
   Display font: Fraunces (editorial, elegant)
   UI/body font: DM Sans (clean, modern, highly legible)
   ============================================================ */

/* Fonts are served from this site, not Google, so visitors' addresses are not
   sent to Google on every page. Latin subsets cover all the site's English and
   Swahili text. Both families: SIL Open Font License (see assets/fonts/). */
@font-face {
  font-family: "DM Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/assets/fonts/dm-sans-latin.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/dm-sans-italic-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces"; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url("/assets/fonts/fraunces-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces"; font-style: italic; font-weight: 500 600; font-display: swap;
  src: url("/assets/fonts/fraunces-italic-latin.woff2") format("woff2");
}

:root {
  /* Brand colors */
  --navy: #0e1116;
  --navy-2: #1a1f27;
  --blue: #1568c0;
  --blue-light: #7fc2e8;
  --cream: #fbfcfe;
  --cream-2: #eef1f5;
  --white: #ffffff;
  --ink: #14171d;
  --muted: #5f6773;
  --border: #e2e5ea;
  --whatsapp: #25d366;
  --whatsapp-dark: #1da851;
  --gold: #f2b705;
  --danger: #dc2626;

  /* Semantic tokens */
  --color-bg: var(--cream);
  --color-bg-alt: var(--cream-2);
  --color-surface: var(--white);
  --color-text: var(--ink);
  --color-text-muted: var(--muted);
  --color-border: var(--border);
  --color-primary: var(--blue);
  --color-primary-ink: var(--white);
  --color-accent: var(--navy);

  /* Typography */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing scale (marketing site, spacious) */
  --space-3xs: 4px;
  --space-2xs: 8px;
  --space-xs: 12px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 64px;
  --space-3xl: 96px;

  /* Layout */
  --container-w: 1240px;
  --radius-sm: 8px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 220ms;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(14, 17, 22, 0.06), 0 1px 1px rgba(14, 17, 22, 0.04);
  --shadow-md: 0 8px 24px rgba(14, 17, 22, 0.10);
  --shadow-lg: 0 20px 48px rgba(14, 17, 22, 0.16);
  --shadow-soft: 0 12px 32px rgba(14, 17, 22, 0.07);

  /* Premium component tokens (used by cards/buttons in a later pass) */
  --radius-card: 18px;
  --card-padding: 24px;
  --btn-height: 52px;
  --blur-glass: 16px;
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.5;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input { font: inherit; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; color: var(--navy); }
h2 { font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.75rem); }
h3 { font-size: 1.25rem; }
p { color: var(--color-text); line-height: 1.6; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

.icon { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }
.icon-xs { width: 14px; height: 14px; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 32px; height: 32px; }

/* ============ LAYOUT HELPERS ============ */
.section-head { max-width: 640px; margin: 0 auto var(--space-2xl); padding: 0 var(--space-md); text-align: center; }
.section-eyebrow {
  font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  font-size: 0.8rem; color: var(--blue); margin-bottom: var(--space-xs);
}
.section-lede { color: var(--color-text-muted); margin-top: var(--space-xs); line-height: 1.65; }

section { padding: var(--space-3xl) var(--space-md); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2xs);
  padding: 14px 26px; border-radius: var(--radius-md);
  font-weight: 600; font-size: 0.95rem; white-space: nowrap;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
  min-height: var(--btn-height); cursor: pointer;
}
.btn:hover { transform: scale(1.03); }
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--navy); color: var(--white); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--navy-2); box-shadow: var(--shadow-soft); }
.btn--dark { background: var(--navy); color: var(--white); }
.btn--dark:hover { background: var(--navy-2); }
.btn--whatsapp { background: var(--whatsapp); color: var(--white); }
.btn--whatsapp:hover { background: var(--whatsapp-dark); box-shadow: var(--shadow-soft); }
.btn--outline { background: transparent; color: var(--navy); border: 1.5px solid var(--border); }
.btn--outline:hover { border-color: var(--blue); color: var(--blue); }
.btn--ghost { background: transparent; color: var(--muted); }
.btn--ghost:hover { color: var(--danger); }
.btn--lg { padding: 16px 34px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-icon {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; color: var(--navy);
  transition: background var(--dur) var(--ease);
}
.btn-icon:hover { background: var(--cream-2); }

/* ============ ANNOUNCEMENT BAR ============ */
.announce-bar { background: var(--navy); color: var(--white); font-size: 0.8rem; }
.announce-bar__inner {
  max-width: var(--container-w); margin: 0 auto; padding: 8px var(--space-md);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-md);
}
.announce-bar__inner p { color: var(--white); display: flex; align-items: center; gap: 6px; opacity: 0.92; }
.announce-bar__phone { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.announce-bar__phone:hover { color: var(--blue-light); }

/* ============ HEADER ============ */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251, 252, 254, 0.5);
  border-bottom: 1px solid transparent;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease), backdrop-filter var(--dur) var(--ease);
}
.site-header.is-scrolled {
  background: rgba(251, 252, 254, 0.85);
  backdrop-filter: blur(var(--blur-glass));
  -webkit-backdrop-filter: blur(var(--blur-glass));
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-soft);
}
.site-header__inner {
  max-width: var(--container-w); margin: 0 auto; padding: var(--space-xs) var(--space-md);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-md);
}
.brand__logo { height: 52px; width: auto; }
.main-nav { display: flex; align-items: center; gap: var(--space-lg); }
.main-nav a { font-weight: 600; font-size: 0.92rem; color: var(--navy); transition: color var(--dur) var(--ease); }
.main-nav a:hover { color: var(--blue); }
.main-nav a.is-active { color: var(--blue); position: relative; }
.main-nav a.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; border-radius: 2px; background: var(--blue);
}

/* Smooth cross-page fade where the browser supports it; ignored elsewhere. */
@view-transition { navigation: auto; }

/* ============ SHOP TOOLBAR (search + sort) ============ */
.shop-toolbar {
  max-width: var(--container-w); margin: 0 auto var(--space-lg);
  display: flex; flex-wrap: wrap; gap: var(--space-sm); align-items: center; justify-content: center;
}
.shop-search {
  display: flex; align-items: center; gap: var(--space-2xs); flex: 1 1 260px; max-width: 420px;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 0 var(--space-sm); min-height: var(--btn-height); color: var(--muted);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.shop-search:focus-within { border-color: var(--blue); box-shadow: var(--shadow-soft); }
.shop-search input {
  flex: 1; border: none; outline: none; background: none; min-height: 44px;
  font-size: 0.95rem; color: var(--color-text);
}
.shop-sort { display: flex; align-items: center; gap: var(--space-2xs); font-size: 0.85rem; font-weight: 600; color: var(--navy); }
.shop-sort select {
  padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-md);
  background: var(--white); min-height: var(--btn-height); font-weight: 500;
}
.shop-sort select:focus-visible { border-color: var(--blue); }

/* ============ SECTION CTA ROW ============ */
.featured__cta { display: flex; justify-content: center; gap: var(--space-sm); margin-top: var(--space-xl); flex-wrap: wrap; }

/* ============ PRODUCT PAGE ============ */
.product-page { max-width: var(--container-w); margin: 0 auto; }
.breadcrumb {
  display: flex; align-items: center; gap: var(--space-2xs); flex-wrap: wrap;
  font-size: 0.85rem; color: var(--muted); margin-bottom: var(--space-lg);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb .icon { width: 12px; height: 12px; }
.breadcrumb__current { color: var(--navy); font-weight: 600; }
.product-page__body {
  display: grid; grid-template-columns: 1fr 1.2fr;
  background: var(--color-surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm);
}
.product-page__body .product-modal__media { aspect-ratio: 1/1; }
@media (max-width: 860px) {
  .product-page__body { grid-template-columns: 1fr; }
}
.header-actions { display: flex; align-items: center; gap: var(--space-2xs); }
.whatsapp-quick { color: var(--whatsapp-dark); }
.nav-toggle { display: none; }

.lang-toggle, .nav-lang {
  display: flex; align-items: center; border: 1.5px solid var(--border); border-radius: var(--radius-pill);
  padding: 3px; gap: 2px; background: var(--white);
}
.nav-lang { display: none; }
.lang-btn, .lang-pill {
  padding: 6px 11px; border-radius: var(--radius-pill); font-weight: 700; font-size: 0.72rem;
  color: var(--muted); transition: all var(--dur) var(--ease); min-height: auto;
}
.lang-btn.is-active, .lang-pill.is-active { background: var(--navy); color: var(--white); }

.cart-badge {
  position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px;
  background: var(--danger); color: var(--white); border-radius: 999px;
  font-size: 0.65rem; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.cart-badge[hidden] { display: none; }

@keyframes cart-bounce {
  0%, 100% { transform: scale(1); }
  30% { transform: scale(1.22); }
  55% { transform: scale(0.94); }
  80% { transform: scale(1.05); }
}
#cart-toggle.is-bouncing { animation: cart-bounce 480ms var(--ease); }

/* ============ HERO ============ */
.hero { padding: var(--space-2xl) var(--space-md); overflow: hidden; }
.hero__inner {
  max-width: 760px; margin: 0 auto;
  display: grid; gap: var(--space-2xl); align-items: center; text-align: center;
}
.hero__copy { min-width: 0; }
.hero__cta, .hero__badges { justify-content: center; }
.eyebrow {
  font-family: var(--font-display); font-style: italic; color: var(--blue);
  font-size: 1.1rem; margin-bottom: var(--space-sm);
}
.hero h1 { font-size: clamp(2.25rem, 1.6rem + 3vw, 3.6rem); letter-spacing: -0.01em; }
.hero h1 em { font-style: normal; color: inherit; font-weight: inherit; }
.hero__lede { margin-top: var(--space-md); font-size: 1.05rem; line-height: 1.65; color: var(--color-text-muted); max-width: 46ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-lg); }
.hero__badges { display: flex; flex-wrap: wrap; gap: var(--space-md); margin-top: var(--space-xl); }
.hero__badges li { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 600; color: var(--navy); }
.hero__badges .icon { color: var(--blue); }

/* ============ CATEGORY STRIP ============ */
.cat-strip { padding: var(--space-md); background: var(--color-bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cat-strip__inner {
  max-width: var(--container-w); margin: 0 auto;
  display: flex; gap: var(--space-sm); overflow-x: auto; scrollbar-width: none;
}
.cat-strip__inner::-webkit-scrollbar { display: none; }
.cat-strip__inner a {
  flex-shrink: 0; padding: 10px 20px; border-radius: var(--radius-pill);
  background: var(--white); border: 1px solid var(--border); font-weight: 600; font-size: 0.85rem;
  transition: all var(--dur) var(--ease);
}
.cat-strip__inner a:hover { border-color: var(--blue); color: var(--blue); }

/* ============ SHOP: hybrid rows, vertical stack of categories, each a horizontally-scrolling 2-row grid ============ */
.shop { max-width: var(--container-w); margin: 0 auto; }

.category-block { margin-bottom: var(--space-2xl); }
.category-block:last-child { margin-bottom: 0; }
.category-block__title {
  font-size: 1.3rem; margin-bottom: var(--space-md); padding-left: 2px;
  display: flex; align-items: center; gap: var(--space-2xs);
}
.category-block__title::after { content: ""; flex: 1; height: 1px; background: var(--border); margin-left: var(--space-sm); }

/* Single-row horizontal scroller: same behaviour on mobile and desktop. */
.product-row {
  display: grid; grid-auto-flow: column; grid-template-rows: repeat(1, auto);
  grid-auto-columns: max-content;
  gap: var(--space-md); overflow-x: auto; padding-bottom: var(--space-sm);
  scroll-snap-type: x proximity; scrollbar-width: thin;
  max-width: var(--container-w); margin: 0 auto;
}
.product-row::-webkit-scrollbar { height: 6px; }
.product-row::-webkit-scrollbar-thumb { background: var(--border); border-radius: var(--radius-pill); }

.product-card {
  width: 220px; flex-shrink: 0; scroll-snap-align: start;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.product-card__media {
  aspect-ratio: 1/1; background: var(--cream-2); display: flex; align-items: center; justify-content: center;
  position: relative; color: var(--muted);
}
.product-card__media img { width: 100%; height: 100%; object-fit: cover; }
.product-card__placeholder { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 0.72rem; font-weight: 600; text-align: center; padding: var(--space-sm); }
.product-card__badge {
  position: absolute; top: 10px; left: 10px; background: var(--blue); color: var(--white);
  font-size: 0.65rem; font-weight: 700; padding: 4px 10px; border-radius: var(--radius-pill); text-transform: uppercase; letter-spacing: 0.03em;
}
.product-card__body { padding: var(--card-padding) var(--card-padding) 4px; display: flex; flex-direction: column; gap: 6px; }
.product-card__name { font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--navy); line-height: 1.3; }
.product-card__price { font-weight: 700; color: var(--navy); font-size: 0.9rem; }
.product-card__price--ask { color: var(--muted); font-weight: 600; font-size: 0.82rem; }

.product-card__actions { display: flex; align-items: center; gap: var(--space-2xs); padding: var(--space-2xs) var(--card-padding) var(--card-padding); margin-top: auto; }
.product-card__actions .btn--outline { padding: 8px 12px; font-size: 0.8rem; min-height: 36px; }
.qty-stepper { display: flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius-pill); }
.qty-stepper button { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; color: var(--navy); }
.qty-stepper button:hover { color: var(--blue); }
.qty-stepper span { width: 22px; text-align: center; font-weight: 700; font-size: 0.85rem; }
.qty-stepper .icon { width: 14px; height: 14px; }

.add-to-cart-btn {
  flex: 1; background: var(--navy); color: var(--white); border-radius: var(--radius-pill);
  padding: 8px 12px; font-weight: 700; font-size: 0.78rem; min-height: 36px;
  display: flex; align-items: center; justify-content: center; gap: 4px;
  transition: background var(--dur) var(--ease);
}
.add-to-cart-btn:hover { background: var(--blue); }
.add-to-cart-btn.is-added { background: var(--whatsapp); }

/* ============ PRODUCT DETAIL MODAL ============ */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(14,17,22,0.5); backdrop-filter: blur(2px);
  z-index: 60; opacity: 0; pointer-events: none; transition: opacity var(--dur) var(--ease);
}
.modal-overlay.is-open { opacity: 1; pointer-events: auto; }
.product-modal {
  position: fixed; top: 50%; left: 50%; z-index: 61; width: min(720px, 92vw); max-height: 88vh;
  background: var(--cream); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  transform: translate(-50%, -48%) scale(0.97); opacity: 0; pointer-events: none;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
  overflow: hidden;
}
.product-modal.is-open { transform: translate(-50%, -50%) scale(1); opacity: 1; pointer-events: auto; }
.modal-close { position: absolute; top: var(--space-sm); right: var(--space-sm); z-index: 2; background: var(--white); box-shadow: var(--shadow-sm); }
.product-modal__body { max-height: 88vh; overflow-y: auto; display: grid; grid-template-columns: 1fr 1.2fr; }
.product-modal__media {
  aspect-ratio: 1/1; background: var(--cream-2); display: flex; align-items: center; justify-content: center;
  position: relative; color: var(--muted);
}
.product-modal__media img { width: 100%; height: 100%; object-fit: contain; }

/* ============ PRODUCT MEDIA CAROUSEL ============ */
.media-carousel { position: relative; width: 100%; height: 100%; overflow: hidden; }
.media-carousel__track { display: flex; width: 100%; height: 100%; transition: transform 380ms var(--ease); }
.media-carousel__slide { flex: 0 0 100%; width: 100%; height: 100%; }
.media-carousel__slide img, .media-carousel__slide video { width: 100%; height: 100%; object-fit: contain; display: block; }
.media-carousel__slide img { background: var(--cream-2); }
.media-carousel__slide video { background: var(--navy); }
.media-carousel__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(var(--blur-glass)); -webkit-backdrop-filter: blur(var(--blur-glass));
  box-shadow: var(--shadow-sm); display: flex; align-items: center; justify-content: center;
  color: var(--navy); transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.media-carousel__arrow:hover { background: var(--white); transform: translateY(-50%) scale(1.08); }
.media-carousel__arrow--prev { left: 10px; }
.media-carousel__arrow--prev .icon { transform: scaleX(-1); }
.media-carousel__arrow--next { right: 10px; }
.media-carousel__dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; z-index: 2; }
.media-carousel__dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.6); border: 1px solid rgba(14, 17, 22, 0.15); transition: background var(--dur) var(--ease), transform var(--dur) var(--ease); }
.media-carousel__dot.is-active { background: var(--white); transform: scale(1.35); box-shadow: var(--shadow-sm); }
.product-modal__info { padding: var(--space-lg); display: flex; flex-direction: column; gap: var(--space-2xs); }
.product-modal__info h2 { font-size: 1.4rem; padding-right: 40px; }
.product-modal__availability { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.8rem; color: var(--whatsapp-dark); }
.stock-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--whatsapp); }
.stock-dot--off { background: var(--danger); }
.modal-meta { display: flex; flex-direction: column; gap: 4px; margin: var(--space-2xs) 0; }
.modal-meta-row { display: flex; gap: 8px; font-size: 0.85rem; }
.modal-meta-row span { color: var(--muted); min-width: 110px; }
.modal-meta-row strong { color: var(--navy); font-weight: 600; }
.product-modal__desc { color: var(--color-text-muted); margin: var(--space-xs) 0; }
.product-modal__info h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; margin-top: var(--space-sm); }
.modal-list { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.modal-list li { position: relative; padding-left: 16px; font-size: 0.88rem; color: var(--color-text); }
.modal-list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.modal-field { display: flex; flex-direction: column; gap: 4px; font-size: 0.82rem; font-weight: 600; color: var(--navy); margin-top: var(--space-sm); }
.modal-field select {
  padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--white); min-height: 44px;
}
.product-modal__price { font-size: 1.5rem; font-weight: 700; color: var(--navy); margin-top: var(--space-xs); font-family: var(--font-display); }
.product-modal__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs); margin-top: var(--space-sm); }
.product-modal__actions .btn { flex: 1; min-width: 160px; }

.variant-list { display: flex; flex-direction: column; gap: var(--space-lg); margin-top: var(--space-2xs); }
.variant-block { padding-top: var(--space-lg); border-top: 1px solid var(--border); }
.variant-block:first-child { padding-top: 0; border-top: none; }
.variant-block__title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--navy); margin-bottom: var(--space-2xs); }

/* ============ SPOTLIGHT (creator gear) ============ */
.spotlight { background: var(--navy); color: var(--white); border-radius: var(--radius-lg); max-width: var(--container-w); margin: var(--space-3xl) auto; }
.spotlight__inner { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2xl); align-items: center; padding: var(--space-2xl); }
.spotlight h2 { color: var(--white); }
.spotlight p { color: rgba(255,255,255,0.75); margin-top: var(--space-sm); max-width: 46ch; }
.spotlight .btn--dark { background: var(--white); color: var(--navy); margin-top: var(--space-lg); }
.spotlight .btn--dark:hover { background: var(--blue-light); }
.spotlight__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-sm); }
.spotlight__card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-sm); display: flex; flex-direction: column; align-items: center; gap: var(--space-xs);
  text-align: center; font-weight: 600; font-size: 0.85rem; color: var(--blue-light);
}

/* ============ ABOUT ============ */
.about__inner { max-width: 720px; margin: 0 auto; }
.about__copy p { margin-top: var(--space-sm); color: var(--color-text-muted); max-width: 52ch; }
.about__list { margin-top: var(--space-lg); display: flex; flex-direction: column; gap: var(--space-sm); }
.about__list li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--navy); }
.about__list .icon { color: var(--blue); }

.about__map-block { margin-top: var(--space-lg); }
.about__map-label { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy); font-size: 0.9rem; }
.about__map-label .icon { color: var(--blue); }
.about__address { color: var(--color-text-muted); margin: 4px 0 var(--space-sm); font-size: 0.92rem; }
.about__map-embed {
  width: 100%; aspect-ratio: 16/9; border-radius: var(--radius-md); overflow: hidden;
  border: 1px solid var(--border); margin-bottom: var(--space-sm);
}
.about__map-embed iframe { width: 100%; height: 100%; border: 0; }
.map-consent {
  height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--space-xs); padding: var(--space-md); text-align: center; background: var(--color-bg-alt);
}
.map-consent .icon { color: var(--blue); }
.map-consent p { font-size: 0.82rem; color: var(--color-text-muted); max-width: 34ch; }

/* ============ CONTACT & SOCIAL ============ */
.contact-grid { max-width: var(--container-w); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.contact-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: var(--space-xl) var(--space-lg); text-align: center; display: flex; flex-direction: column;
  align-items: center; gap: 6px; transition: all var(--dur) var(--ease);
}
.contact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); border-color: var(--blue); }
.contact-card .icon-lg { color: var(--blue); margin-bottom: var(--space-2xs); }
.contact-card span { font-weight: 700; color: var(--navy); }
.contact-card small { color: var(--color-text-muted); font-size: 0.82rem; }

.social-block { max-width: var(--container-w); margin: var(--space-xl) auto 0; text-align: center; }
.social-block__label { font-weight: 700; color: var(--navy); margin-bottom: var(--space-sm); }
.social-row--lg a { width: 48px; height: 48px; background: var(--cream-2); color: var(--navy); }
.social-row--lg a:hover { background: var(--blue); color: var(--white); }
.social-row--lg .icon { width: 22px; height: 22px; }
.social-row--lg { justify-content: center; }

/* ============ COOKIE BANNER ============ */
.cookie-banner {
  position: fixed; left: var(--space-md); right: var(--space-md); bottom: var(--space-md); z-index: 55;
  max-width: 640px; margin: 0 auto; background: var(--navy); color: rgba(255,255,255,0.9);
  border-radius: var(--radius-md); padding: var(--space-md) var(--space-lg); box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: var(--space-sm);
}
.cookie-banner .icon { color: var(--blue-light); flex-shrink: 0; }
.cookie-banner p { color: rgba(255,255,255,0.85); font-size: 0.82rem; line-height: 1.5; }
.cookie-banner p a { color: var(--blue-light); text-decoration: underline; }
.cookie-banner__actions { flex-shrink: 0; }
.cookie-banner__actions .btn { padding: 10px 18px; font-size: 0.85rem; }

/* ============ DELIVERY ============ */
.delivery__grid { max-width: var(--container-w); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.delivery-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: var(--space-xl) var(--space-lg); text-align: center;
}
.delivery-card .icon-lg { color: var(--blue); margin: 0 auto var(--space-sm); }
.delivery-card p { color: var(--color-text-muted); margin-top: var(--space-2xs); font-size: 0.92rem; }

.location-strip {
  max-width: var(--container-w); margin: var(--space-xl) auto 0; background: var(--cream-2);
  border-radius: var(--radius-md); padding: var(--space-lg); display: flex; align-items: center;
  justify-content: space-between; gap: var(--space-md); flex-wrap: wrap;
}
.location-strip > div { display: flex; align-items: center; gap: var(--space-sm); }
.location-strip .icon { color: var(--blue); flex-shrink: 0; }
.location-strip p { color: var(--color-text-muted); font-size: 0.88rem; margin-top: 2px; }

/* ============ REVIEWS ============ */
.reviews__summary { display: flex; align-items: center; justify-content: center; gap: var(--space-2xs); margin-top: var(--space-sm); font-weight: 700; }
.reviews__stars { display: flex; gap: 2px; color: var(--gold); }
.reviews__stars .icon { width: 16px; height: 16px; }
.icon-star--empty { color: var(--border); }
.reviews-grid { max-width: var(--container-w); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.review-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-lg); }
.review-card__stars { display: flex; gap: 2px; color: var(--gold); margin-bottom: var(--space-sm); }
.review-card__stars .icon { width: 16px; height: 16px; }
.review-card__text { color: var(--color-text); font-style: italic; }
.review-card__meta { margin-top: var(--space-md); font-weight: 700; color: var(--navy); font-size: 0.88rem; }
.review-card__product { font-weight: 500; color: var(--color-text-muted); }

.reviews-empty {
  grid-column: 1 / -1; text-align: center; padding: var(--space-2xl) var(--space-md);
  border: 1.5px dashed var(--border); border-radius: var(--radius-md); color: var(--color-text-muted);
}
.reviews-empty strong { display: block; color: var(--navy); font-family: var(--font-display); font-size: 1.15rem; margin-bottom: var(--space-2xs); }

.reviews-cta { text-align: center; margin-top: var(--space-2xl); display: flex; flex-direction: column; align-items: center; gap: var(--space-sm); }
.reviews-cta p { color: var(--color-text-muted); font-weight: 600; }

/* ============ GALLERY ============ */
.gallery-grid { max-width: var(--container-w); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
.gallery-slot {
  aspect-ratio: 4/3; border: 1.5px dashed var(--border); border-radius: var(--radius-md);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-2xs);
  color: var(--muted); background: var(--cream-2); font-size: 0.85rem; font-weight: 600;
}

/* ============ FAQ ============ */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--space-sm); }
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-md) var(--space-lg); }
.faq-item summary {
  cursor: pointer; font-weight: 700; color: var(--navy); display: flex; align-items: center;
  justify-content: space-between; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { transition: transform var(--dur) var(--ease); color: var(--blue); }
.faq-item[open] summary .icon { transform: rotate(90deg); }
.faq-item p { margin-top: var(--space-sm); color: var(--color-text-muted); }

/* ============ FINAL CTA ============ */
.final-cta {
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  border-radius: var(--radius-lg); max-width: var(--container-w); margin: 0 auto var(--space-3xl);
  text-align: center; color: var(--white);
}
.final-cta h2 { color: var(--white); }
.final-cta p { color: rgba(255,255,255,0.75); margin-top: var(--space-2xs); margin-bottom: var(--space-lg); }

/* ============ FOOTER ============ */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.8); padding: var(--space-2xl) var(--space-md) 0; }
.site-footer__inner {
  max-width: var(--container-w); margin: 0 auto; display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--space-xl); padding-bottom: var(--space-2xl);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-col { display: flex; flex-direction: column; gap: var(--space-sm); }
.footer-col h4 { color: var(--white); font-family: var(--font-body); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.footer-col a { color: rgba(255,255,255,0.75); font-size: 0.92rem; display: flex; align-items: center; gap: 8px; transition: color var(--dur) var(--ease); }
.footer-col a:hover { color: var(--blue-light); }
.brand__logo--footer { height: 56px; width: auto; align-self: flex-start; border-radius: 8px; background: var(--cream); padding: 4px; }
.footer-brand p { color: var(--blue-light); font-family: var(--font-display); font-style: italic; }
.footer-address { display: flex; align-items: center; gap: 8px; font-size: 0.92rem; }
.social-row { display: flex; gap: var(--space-2xs); margin-top: var(--space-2xs); }
.social-row a {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
}
.social-row a:hover { background: var(--blue); color: var(--white); }
.site-footer__bottom { max-width: var(--container-w); margin: 0 auto; padding: var(--space-md) 0; text-align: center; font-size: 0.8rem; color: rgba(255,255,255,0.5); }

/* ============ LEGAL PAGES ============ */
.legal-page { max-width: 720px; margin: 0 auto; padding: var(--space-2xl) var(--space-md) var(--space-3xl); }
.legal-page h1 { font-size: clamp(2rem, 1.7rem + 1.2vw, 2.75rem); margin-bottom: var(--space-2xs); }
.legal-updated { color: var(--color-text-muted); font-size: 0.85rem; margin-bottom: var(--space-xl); }
.legal-page h2 { font-size: 1.15rem; margin-top: var(--space-xl); margin-bottom: var(--space-2xs); }
.legal-page p { color: var(--color-text-muted); margin-bottom: var(--space-sm); }
.legal-page a { color: var(--blue); text-decoration: underline; }

/* ============ 404 PAGE ============ */
.not-found { max-width: 560px; margin: 0 auto; padding: var(--space-3xl) var(--space-md); text-align: center; }
.not-found__code { font-family: var(--font-display); font-size: clamp(4rem, 3rem + 5vw, 6.5rem); line-height: 1; color: var(--blue); }
.not-found h1 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem); margin-top: var(--space-sm); }
.not-found p { color: var(--color-text-muted); margin-top: var(--space-sm); }
.not-found__cta { display: flex; flex-wrap: wrap; gap: var(--space-sm); justify-content: center; margin-top: var(--space-lg); }
.not-found__links { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-md); justify-content: center; margin-top: var(--space-xl); }
.not-found__links a { color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.not-found__links a:hover { color: var(--blue); }

/* ============ FLOATING WHATSAPP ============ */
/* --fab-lift is set by main.js to the cookie banner's height while it is on
   screen, so the floating buttons ride above it instead of being covered. */
.fab-whatsapp {
  position: fixed; bottom: calc(var(--space-md) + var(--fab-lift, 0px)); right: var(--space-md); z-index: 30;
  width: 56px; height: 56px; border-radius: 50%; background: var(--whatsapp); color: var(--white);
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg);
  transition: transform var(--dur) var(--ease), bottom var(--dur) var(--ease);
}
.fab-whatsapp:hover { transform: scale(1.08); }
.fab-whatsapp .icon { width: 28px; height: 28px; }

/* ============ SCROLL TO TOP / BOTTOM ============ */
/* Sits directly above the WhatsApp button. Flips direction based on scroll position. */
.fab-scroll {
  position: fixed; right: var(--space-md);
  bottom: calc(var(--space-md) + 56px + var(--space-sm) + var(--fab-lift, 0px));
  z-index: 30; width: 48px; height: 48px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  border: 2px solid var(--white); box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease),
    opacity var(--dur) var(--ease), bottom var(--dur) var(--ease);
}
.fab-scroll:hover { background: var(--blue); transform: scale(1.08); }
.fab-scroll .icon { width: 24px; height: 24px; transition: transform var(--dur) var(--ease); }
/* Chevron points right by default; rotate to point down or up. */
.fab-scroll[data-direction="down"] .icon { transform: rotate(90deg); }
.fab-scroll[data-direction="up"] .icon { transform: rotate(-90deg); }
@media (prefers-reduced-motion: reduce) {
  .fab-scroll { transition: none; }
}

/* ============ CART DRAWER ============ */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(14,17,22,0.4); backdrop-filter: blur(2px);
  z-index: 50; opacity: 0; pointer-events: none; transition: opacity var(--dur) var(--ease);
}
.cart-overlay.is-open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw); background: var(--cream);
  z-index: 51; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform var(--dur) var(--ease);
  box-shadow: var(--shadow-lg);
}
.cart-drawer.is-open { transform: translateX(0); }
.cart-drawer__header {
  display: flex; align-items: center; justify-content: space-between; padding: var(--space-md);
  border-bottom: 1px solid var(--border);
}
.cart-drawer__header h2 { font-size: 1.3rem; }
.cart-drawer__body { flex: 1; overflow-y: auto; padding: var(--space-md); display: flex; flex-direction: column; gap: var(--space-sm); }
.cart-drawer__footer { padding: var(--space-md); border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: var(--space-sm); }

.cart-empty { text-align: center; color: var(--color-text-muted); padding: var(--space-2xl) 0; }

.cart-item { display: flex; gap: var(--space-sm); background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-sm); }
.cart-item__media { width: 56px; height: 56px; border-radius: var(--radius-sm); background: var(--cream-2); flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); overflow: hidden; }
.cart-item__media img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__body { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cart-item__name { font-weight: 700; color: var(--navy); font-size: 0.9rem; }
.cart-item__price { font-size: 0.8rem; color: var(--color-text-muted); }
.cart-item__row { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.cart-item__remove { color: var(--muted); }
.cart-item__remove:hover { color: var(--danger); }

.cart-field { display: flex; flex-direction: column; gap: 4px; font-size: 0.82rem; font-weight: 600; color: var(--navy); }
.cart-field input {
  padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--white);
  min-height: 44px;
}
.cart-field input:focus-visible { border-color: var(--blue); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .spotlight__inner { grid-template-columns: 1fr; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; max-width: 420px; }
  .product-modal__body { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(300px, 80vw);
    background: var(--cream); flex-direction: column; align-items: flex-start; gap: var(--space-md);
    padding: 96px var(--space-lg) var(--space-lg); box-shadow: var(--shadow-lg);
    transform: translateX(100%); transition: transform var(--dur) var(--ease); z-index: 45;
  }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav a { font-size: 1.05rem; }
  .nav-toggle { display: inline-flex; }
  .announce-bar__inner { font-size: 0.72rem; }
  .announce-bar__inner p span { display: none; }
  .delivery__grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .spotlight__grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; max-width: 360px; }

  .lang-toggle { display: none; }
  .nav-lang { display: flex; margin-top: var(--space-md); }
}

@media (max-width: 640px) {
  section { padding: var(--space-2xl) var(--space-sm); }
  .site-footer__inner { grid-template-columns: 1fr; }
  .location-strip { flex-direction: column; align-items: flex-start; }
  .location-strip .btn { width: 100%; }
  .announce-bar__inner p { font-size: 0; gap: 0; }
  .announce-bar__inner p .icon { display: none; }
  .hero__cta .btn { flex: 1; }
  .gallery-grid { grid-template-columns: 1fr; }

  .product-card { width: 168px; }
  .category-block__title { font-size: 1.1rem; }

  .product-modal {
    top: auto; left: 0; right: 0; bottom: 0; transform: translateY(100%);
    width: 100%; max-height: 92vh; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
  .product-modal.is-open { transform: translateY(0); }
  .product-modal__body { max-height: 92vh; }
  .product-modal__actions { flex-direction: column; align-items: stretch; }
  .product-modal__actions .btn { width: 100%; }
  .product-modal__actions .qty-stepper { align-self: center; }

  .cookie-banner { flex-direction: column; align-items: flex-start; left: var(--space-sm); right: var(--space-sm); bottom: var(--space-sm); }
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__actions .btn { width: 100%; }
}

/* ============================================================
   PREMIUM REDESIGN: new sections & components
   ============================================================ */

/* ============ BRAND INTRO (Section 1: logo) ============ */
.brand-intro { background: var(--navy); padding: var(--space-2xl) var(--space-md); }
.brand-intro__inner { max-width: 420px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: var(--space-md); }
.brand-intro__logo-plate { background: var(--white); border-radius: var(--radius-lg); padding: var(--space-lg); box-shadow: var(--shadow-lg); }
.brand-intro__logo { width: 100%; max-width: 200px; height: auto; }
.brand-intro__eyebrow { color: var(--blue-light); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.78rem; }

/* ============ SHOP BY CATEGORY (list) ============ */
.categories-grid {
  max-width: 640px; margin: 0 auto; display: flex; flex-direction: column;
  border-top: 1px solid var(--border);
}
.category-tile {
  display: flex; flex-direction: row; align-items: center; gap: var(--space-md); text-align: left;
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: var(--space-sm) var(--space-xs); transition: background var(--dur) var(--ease);
}
.category-tile:hover { background: var(--cream-2); }
.category-tile__icon {
  width: 48px; height: 48px; border-radius: 50%; background: var(--cream-2); color: var(--blue);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.category-tile__name { font-weight: 700; color: var(--navy); font-size: 1rem; }

/* ============ BEST SELLERS / NEW ARRIVALS (centered product grid) ============ */
.product-row--center {
  grid-auto-flow: row; grid-template-rows: none; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  overflow-x: visible; justify-content: center; max-width: var(--container-w); margin: 0 auto;
}


/* ============ WHY CHOOSE SPIDER GADGETS ============ */
.why-us__grid { max-width: var(--container-w); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); }
.why-us__card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-xl) var(--space-lg); text-align: center; }
.why-us__card .icon-lg { color: var(--blue); margin: 0 auto var(--space-sm); }
.why-us__card h3 { font-size: 1.02rem; margin-bottom: var(--space-2xs); }
.why-us__card p { color: var(--color-text-muted); font-size: 0.88rem; }
.why-us__stats {
  max-width: var(--container-w); margin: var(--space-2xl) auto 0; background: var(--navy); border-radius: var(--radius-lg);
  display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; padding: var(--space-xl) var(--space-lg);
}
.stat-tile { display: flex; flex-direction: column; gap: 4px; }
.stat-tile__num { font-family: var(--font-display); font-size: clamp(1.8rem, 1.5rem + 1vw, 2.6rem); font-weight: 700; color: var(--white); }
.stat-tile__label { color: rgba(255, 255, 255, 0.7); font-size: 0.82rem; font-weight: 600; }

/* ============ NEWSLETTER (WhatsApp opt-in) ============ */
.newsletter { background: var(--cream-2); border-radius: var(--radius-lg); max-width: var(--container-w); margin: 0 auto var(--space-3xl); }
.newsletter__inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--space-2xl); align-items: center; padding: var(--space-2xl); }
.newsletter__copy p { color: var(--color-text-muted); margin-top: var(--space-sm); max-width: 46ch; }
.newsletter__form { display: flex; flex-direction: column; gap: var(--space-sm); background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-lg); }
.newsletter__field { display: flex; flex-direction: column; gap: 4px; font-size: 0.82rem; font-weight: 600; color: var(--navy); }
.newsletter__field input { padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); min-height: 44px; }
.newsletter__field input:focus-visible { border-color: var(--blue); }

/* ============ SKELETON LOADERS ============ */
@keyframes skeleton-shimmer { 100% { transform: translateX(100%); } }
.skeleton-card { position: relative; overflow: hidden; background: var(--cream-2); border-radius: var(--radius-md); border: 1px solid var(--border); }
.skeleton-card::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  animation: skeleton-shimmer 1.5s infinite;
}
.skeleton-card--tile { height: 64px; }
.skeleton-card--product { width: 220px; height: 320px; flex-shrink: 0; }
.skeleton-card--review { height: 160px; }
#shop-categories.skeleton-grid,
#featured-products-row.skeleton-grid,
#best-sellers-row.skeleton-grid,
#new-arrivals-row.skeleton-grid { display: flex; gap: var(--space-md); overflow: hidden; }
#categories-grid.skeleton-grid { display: flex; flex-direction: column; gap: var(--space-xs); max-width: 640px; margin: 0 auto; }
#reviews-grid.skeleton-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); max-width: var(--container-w); margin: 0 auto; }
@media (prefers-reduced-motion: reduce) {
  .skeleton-card::after { animation: none; }
}

/* ============ ROTATING TEXT (ported, vanilla) ============ */
.hero__rotate { display: flex; align-items: baseline; gap: 6px; margin-top: var(--space-sm); font-weight: 600; color: var(--navy); flex-wrap: wrap; }
.rotating-text { position: relative; display: inline-block; overflow: hidden; height: 1.3em; vertical-align: bottom; color: var(--blue); }
.rotating-text__word {
  position: absolute; left: 0; top: 0; display: block; transform: translateY(0); opacity: 1;
  transition: transform 420ms var(--ease), opacity 420ms var(--ease); white-space: nowrap;
}
.rotating-text__word.is-entering { transform: translateY(100%); opacity: 0; transition: none; }
.rotating-text__word.is-leaving { transform: translateY(-100%); opacity: 0; }

/* ============ STAR BORDER (ported, CSS-only) ============ */
.star-border-container { display: inline-block; position: relative; border-radius: var(--radius-pill); overflow: hidden; padding: 2px 0; --sb-color: var(--blue); --sb-speed: 5s; }
/* Hidden SVG icon sprite. A class rather than an inline style attribute, so the
   Content-Security-Policy can refuse inline styles. */
.icon-sprite { display: none; }
.star-border-container .border-gradient-bottom,
.star-border-container .border-gradient-top {
  position: absolute; width: 300%; height: 50%; opacity: 0.6; border-radius: 50%; z-index: 0;
  background: radial-gradient(circle, var(--sb-color, var(--blue)), transparent 10%);
  animation-duration: var(--sb-speed, 6s); animation-timing-function: linear; animation-iteration-count: infinite; animation-direction: alternate;
}
.star-border-container .border-gradient-bottom { bottom: -12px; right: -250%; animation-name: star-movement-bottom; }
.star-border-container .border-gradient-top { top: -12px; left: -250%; animation-name: star-movement-top; }
.star-border-container .inner-content { position: relative; z-index: 1; }
@keyframes star-movement-bottom { 0% { transform: translate(0%, 0%); opacity: 1; } 100% { transform: translate(-100%, 0%); opacity: 0; } }
@keyframes star-movement-top { 0% { transform: translate(0%, 0%); opacity: 1; } 100% { transform: translate(100%, 0%); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .star-border-container .border-gradient-bottom,
  .star-border-container .border-gradient-top { animation: none; opacity: 0.35; }
}

/* ============ ROUTE TRANSITION (nav "page swap" wipe) ============ */
.route-transition { position: fixed; inset: 0; z-index: 200; pointer-events: none; }
.route-transition::before { content: ""; position: absolute; inset: 0; background: var(--navy); transform: translateY(-100%); }
.route-transition.is-covering::before { transform: translateY(0); transition: transform 380ms cubic-bezier(0.76, 0, 0.24, 1); }
.route-transition.is-revealing::before { transform: translateY(100%); transition: transform 440ms cubic-bezier(0.76, 0, 0.24, 1); }

/* ============ PREMIUM REDESIGN: RESPONSIVE ============ */
@media (max-width: 1024px) {
  .why-us__grid { grid-template-columns: repeat(2, 1fr); }
  .why-us__stats { grid-template-columns: repeat(3, 1fr); }
  .newsletter__inner { grid-template-columns: 1fr; }
  #reviews-grid.skeleton-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .why-us__grid { grid-template-columns: 1fr; }
  .why-us__stats { grid-template-columns: 1fr; gap: var(--space-md); }
  .newsletter__inner { padding: var(--space-lg); }
  .hero__rotate { font-size: 0.95rem; }

  /* Keep Shop Now / WhatsApp on the first screen of a phone. The logo block
     shrinks, and the buttons move up to sit straight under the headline,
     ahead of the longer description. */
  .brand-intro { padding: var(--space-md) var(--space-md); }
  .brand-intro__inner { gap: var(--space-xs); }
  .brand-intro__logo-plate { padding: var(--space-sm); }
  .brand-intro__logo { max-width: 96px; }
  .hero { padding-top: var(--space-lg); }
  .hero__copy { display: flex; flex-direction: column; }
  .hero__cta { order: 1; margin-top: var(--space-md); }
  .hero__lede { order: 2; }
  .hero__badges { order: 3; }
  #categories-grid.skeleton-grid { grid-template-columns: repeat(2, 1fr); }
}
