/* ═══════════════════════════════════════════════════════════
   Kidioz Theme — single source of truth for all app styling.
   Based on: kidioz (17).html — never override these tokens.
   ═══════════════════════════════════════════════════════════ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border-width: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-y: auto;
  height: auto;
  min-height: 100%;
  scrollbar-gutter: stable;
}

@media (max-width: 768px) {
  html, body {
    scroll-behavior: auto;
  }
  :root {
    --site-header-offset: calc(env(safe-area-inset-top, 0px) + 90px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html, body {
    scroll-behavior: auto;
  }
  .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .nav-mobile-overlay,
  .nav-mobile-drawer--open {
    animation: none;
  }
}

/* Scroll-triggered fade-up */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }
.fade-up-delay-4 { transition-delay: 0.4s; }

:root {
  --glass-bg: #ffffff;
  --glass-border: rgba(15, 42, 68, 0.08);
  --card-shadow: 0 2px 12px rgba(15, 42, 68, 0.06);
  --teal: #2BB8C8;
  --teal-dark: #1A9BAF;
  --navy: #0F2A44;
  --navy-light: #1F4970;
  --coral: #FF8A6B;
  --text-dark: #0F2A3F;
  --text-mid: #2C3E50;
  --shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.12);
  --product-btn-radius: 8px;
  --product-card-radius: var(--product-btn-radius);
  /* Sticky announce bar + nav height — use for layout-level modal top inset */
  --site-header-offset: calc(env(safe-area-inset-top, 0px) + 98px);
  /* Mobile account tab bar — synced from AccountNav via ResizeObserver */
  --account-nav-height: 49px;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #FEF7E6 0%, #FCE9D8 50%, #E8F3F9 100%);
  background-attachment: fixed;
  color: var(--text-dark);
  overflow-x: clip;
  overflow-y: auto;
  height: auto;
  min-height: 100%;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

body.no-scroll,
body.mmz-scroll-locked {
  overflow: hidden;
}

/* When scrollbar-gutter reserves space, extend header to full viewport on scroll lock. */
@supports (scrollbar-gutter: stable) {
  body.no-scroll .site-header-wrap,
  body.mmz-scroll-locked .site-header-wrap {
    width: 100vw;
    max-width: 100vw;
  }
}

/* Fallback when scrollbar-gutter is unsupported: pad body and extend sticky header. */
@supports not (scrollbar-gutter: stable) {
  body.no-scroll,
  body.mmz-scroll-locked {
    padding-inline-end: var(--mmz-scrollbar-width, 0px);
  }

  body.mmz-scroll-locked .site-header-wrap {
    margin-inline-end: calc(-1 * var(--mmz-scrollbar-width, 0px));
    padding-inline-end: var(--mmz-scrollbar-width, 0px);
  }
}

@media (max-width: 768px) {
  body {
    background-attachment: scroll;
  }
}

/* ── Utility ────────────────────────────────────────────── */
.glass-bg {
  background: #ffffff;
  border: 1px solid var(--glass-border);
  box-shadow: var(--card-shadow);
}

/* ── Announce bar ──────────────────────────────────────── */
.announce-bar {
  background: var(--teal);
  padding: 9px 20px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: white;
  letter-spacing: 0.2px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* ── Fixed header wrapper (announce bar + nav together) ──
   Fixed (not sticky) so header stays visible when body uses overflow-x: clip. */
.site-header-wrap {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  left: 0;
  right: 0;
  z-index: 200;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  box-shadow: 0 2px 24px rgba(15,42,68,0.08);
}

/* In-flow spacer — reserves space so main content is not hidden under the fixed header */
.site-header-spacer {
  height: var(--site-header-offset);
  pointer-events: none;
  flex-shrink: 0;
}

/* ── Header shell ──────────────────────────────────────── */
.kidioz-header {
  background: #ffffff;
  border-bottom: 1px solid var(--glass-border);
}

/* ── Nav top row ───────────────────────────────────────── */
.nav-inner {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 28px;
  height: 68px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
}

/* Logo */
.nav-logo {
  display: inline-flex;
  align-items: center;
  color: var(--navy);
  text-decoration: none;
}
.logo-img { height: 36px; width: auto; display: block; object-fit: contain; }

/* Search */
.nav-search-wrap {
  background: #ffffff;
  border: 1.5px solid rgba(43,184,200,0.2);
  border-radius: 999px;
  padding: 5px 5px 5px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 440px;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.nav-search-wrap:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(43,184,200,0.12);
}
.nav-search-icon { width: 16px; height: 16px; opacity: 0.45; color: var(--navy); flex-shrink: 0; }
.nav-search-wrap input {
  background: transparent;
  border: none;
  outline: none;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  flex: 1;
  min-width: 0;
  color: var(--navy);
}
.nav-search-wrap input::placeholder { color: #a0aab4; }
.nav-search-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--teal);
  color: #ffffff;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(43,184,200,0.28);
}
.nav-search-btn:hover {
  background: var(--teal-dark);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(43,184,200,0.35);
}
.nav-search-btn:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
.nav-search-btn svg { display: block; }

/* Right actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 160px;
  min-height: 40px;
}

.nav-icon-btn {
  background: rgba(15,42,68,0.05);
  border: none;
  cursor: pointer;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  transition: background 0.2s, transform 0.15s, color 0.2s;
  position: relative;
  flex-shrink: 0;
}
.nav-icon-btn svg { display: block; }
.nav-icon-btn:hover { background: rgba(43,184,200,0.13); color: var(--teal); transform: scale(1.08); }

.nav-icon-btn--user {
  width: auto;
  border-radius: 999px;
  padding: 0 14px 0 8px;
  gap: 7px;
  font-size: 17px;
}
.nav-user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  font-family: 'Inter', sans-serif;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Auth group (sign in / sign up) */
.nav-auth-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-signin-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.2s;
  white-space: nowrap;
}
.nav-signin-link:hover { background: rgba(43,184,200,0.1); }

.nav-signup-btn {
  font-size: 13px;
  font-weight: 700;
  color: white;
  background: var(--teal);
  text-decoration: none;
  padding: 9px 20px;
  border-radius: 999px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(43,184,200,0.3);
}
.nav-signup-btn:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(43,184,200,0.4);
}

/* Auth loading skeleton */
.nav-auth-group--loading {
  width: 140px;
  justify-content: center;
}
.nav-auth-loading {
  display: inline-block;
  width: 80px;
  height: 18px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  border-radius: 9px;
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Cart badge */
.nav-cart-wrap { position: relative; }
.cart-badge {
  position: absolute;
  top: -3px; right: -3px;
  background: var(--coral);
  color: white;
  font-size: 9px;
  font-weight: 700;
  border-radius: 999px;
  min-width: 17px;
  height: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  border: 1.5px solid white;
}

/* User dropdown */
.nav-user-wrap { position: relative; }
.nav-user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 200px;
  border-radius: 20px;
  padding: 18px 16px;
  flex-direction: column;
  gap: 4px;
  z-index: 300;
  box-shadow: 0 16px 40px rgba(15,42,68,0.18);
  border: 1px solid var(--glass-border);
}
/* Bridge the 10px gap between button and dropdown so :hover doesn't break */
.nav-user-wrap::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
  pointer-events: auto;
  z-index: 299;
}
.nav-user-wrap:hover .nav-user-dropdown,
.nav-user-wrap:focus-within .nav-user-dropdown,
.nav-user-wrap--open .nav-user-dropdown { display: flex; }

.nav-user-greeting {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(15,42,68,0.08);
  margin-bottom: 6px;
}
.nav-user-item {
  display: block;
  font-size: 14px;
  color: var(--text-mid);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 10px;
  transition: background 0.15s;
  font-weight: 500;
}
.nav-user-item:hover { background: rgba(43,184,200,0.1); color: var(--teal); }
.nav-user-signout {
  margin-top: 6px;
  border: 1.5px solid var(--coral);
  background: none;
  color: var(--coral);
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background 0.2s, color 0.2s;
  text-align: left;
}
.nav-user-signout:hover { background: var(--coral); color: white; }

/* ── Category strip ────────────────────────────────────── */
.nav-cats {
  background: #ffffff;
  border-top: 1px solid rgba(15, 42, 68, 0.06);
}
.nav-cats-inner {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.nav-cats-inner::-webkit-scrollbar { display: none; }
.nav-cat-link {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
  text-decoration: none;
  padding: 9px 14px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.18s, color 0.18s;
}
.nav-cat-link:hover { background: rgba(43,184,200,0.12); color: var(--teal); }
.nav-cat-link--sale { color: var(--coral); }
.nav-cat-link--sale:hover { background: rgba(255,138,107,0.1); color: var(--coral); }
.nav-cat-link--new { color: #7c3aed; }
.nav-cat-link--new:hover { background: rgba(124,58,237,0.08); color: #7c3aed; }

/* Hamburger (hidden on desktop) */
.nav-hamburger { display: none; }

.nav-leading { display: none; }

.nav-mobile-overlay {
  display: none;
}

.nav-mobile-search {
  display: none;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 max(14px, env(safe-area-inset-left));
  background: #ffffff;
  border-bottom: 0 solid transparent;
  transition:
    max-height 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.22s ease,
    padding 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.22s ease;
}

.nav-search-toggle--active {
  background: rgba(43, 184, 200, 0.16);
  color: var(--teal);
}

/* Show/hide helpers */
.nav-mobile-only  { display: none; }
.nav-desktop-only { display: flex; }

/* Mobile nav-inner: hamburger | logo | actions (auth, search, language, cart) */

/* Page main spacing — stack above decorative stars */
.page-main {
  position: relative;
  z-index: 1;
  isolation: isolate;
  min-height: 60vh;
}

/* ── Hero carousel ─────────────────────────────────────── */
.hero { padding: 24px 24px 28px; }
.hero-stage {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  border-radius: 28px;
  overflow: hidden;
  height: clamp(420px, 60vh, 600px);
  box-shadow: 0 25px 50px rgba(15, 42, 68, 0.18);
  container-type: inline-size;
  container-name: hero;
}
.hero-carousel { position: absolute; inset: 0; z-index: 1; overflow: hidden; }
.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.2, 0.85, 0.4, 1);
}
.carousel-slide {
  flex: 0 0 100%;
  height: 100%;
  position: relative;
  background-size: cover;
  background-position: center;
}
.carousel-slide--img {
  background-color: #e8e0f0;
}
.carousel-slide--img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(to right,
    rgba(15,42,68,0.45) 0%, rgba(15,42,68,0.25) 40%,
    rgba(15,42,68,0.1) 70%, rgba(15,42,68,0) 100%);
  pointer-events: none;
}
.captions-layer {
  position: absolute; inset: 0; z-index: 3;
  overflow: hidden; pointer-events: none;
}
.captions-track {
  display: flex; height: 100%;
  transition: transform 0.7s cubic-bezier(0.2, 0.85, 0.4, 1);
}
.caption-slot { flex: 0 0 100%; height: 100%; position: relative; }
.slide-overlay {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
}
.slide-caption {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  padding: 50px 72px 130px 100px;
  color: white; max-width: 820px;
}
.hero-caption-stage {
  position: absolute;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  margin: 0;
  color: white;
  pointer-events: none;
}
.hero-caption-stage .slide-eyebrow,
.hero-caption-stage .slide-title,
.hero-caption-stage .slide-subtitle {
  margin: 0;
  padding: 0;
}
.hero-caption-stage .hero-slide-cta { pointer-events: auto; }
.hero-caption-stage .slide-title em { color: var(--slide-title-accent, #FFD966); font-style: italic; }
.hero-caption-stage .slide-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin-bottom: 7px;
  opacity: 0;
  transform: translateY(30px);
}
.hero-caption-stage .slide-title {
  font-size: clamp(var(--slide-title-size-min, 24px), 4.8cqi, var(--slide-title-size, 48px));
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1.5px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.5);
  margin-bottom: 9px;
  opacity: 0;
  transform: translateY(30px);
}
.hero-caption-stage .slide-subtitle {
  font-size: clamp(var(--slide-subtitle-size-min, 12px), 1.15cqi, var(--slide-subtitle-size, 17px));
  font-weight: 500;
  line-height: 1.4;
  max-width: 520px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.5);
  margin-bottom: 0;
  opacity: 0;
  transform: translateY(30px);
}
.hero-caption-stage .hero-slide-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin: 17px 0 0;
  padding: 15px 32px;
  background: #1A8F9C;
  color: white;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(26,143,156,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  opacity: 0;
  transform: translateY(30px);
}
.hero-caption-stage .hero-slide-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(26,143,156,0.5); }
.slide-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: #FFD966; margin-bottom: 18px;
  width: fit-content;
}
.slide-caption:not(.slide-caption--designed) .slide-eyebrow {
  opacity: 0; transform: translateY(30px);
}
.slide-eyebrow::before { content: ''; width: 32px; height: 2px; background: currentColor; }
.slide-title {
  font-size: clamp(36px, 4.8vw, 60px);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -1.5px; margin-bottom: 18px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.5);
}
.slide-caption:not(.slide-caption--designed) .slide-title {
  opacity: 0; transform: translateY(30px);
}
.slide-title em { font-style: italic; color: #FFD966; }
.slide-subtitle {
  font-size: clamp(15px, 1.15vw, 17px);
  font-weight: 500; line-height: 1.6; max-width: 520px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.5);
}
.slide-caption:not(.slide-caption--designed) .slide-subtitle {
  opacity: 0; transform: translateY(30px);
}
.hero-fixed-cta {
  position: absolute; bottom: 70px; left: 100px; z-index: 6;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--teal); color: white;
  padding: 15px 32px; border-radius: 999px;
  font-weight: 700; font-size: 15px;
  cursor: pointer; border: none; text-decoration: none;
  box-shadow: 0 10px 24px rgba(43,184,200,0.4);
  transition: 0.2s;
}
.hero-fixed-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(43,184,200,0.5); }
.hero-slide-cta {
  display: inline-flex; align-items: center; gap: 10px; width: fit-content;
  margin-top: 0; pointer-events: auto;
  background: #1A8F9C; color: white;
  padding: 15px 32px; border-radius: 999px;
  font-weight: 700; font-size: 15px;
  cursor: pointer; border: none; text-decoration: none;
  box-shadow: 0 10px 24px rgba(26,143,156,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}
.slide-caption:not(.slide-caption--designed) .hero-slide-cta {
  opacity: 0; transform: translateY(30px);
}
.hero-slide-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(26,143,156,0.5); }
.hero--loading .hero-stage { min-height: 420px; border-radius: 24px; }

.caption-slot.active .hero-caption-stage .slide-eyebrow  { animation: slideFadeUp 0.7s ease-out 0.25s forwards; }
.caption-slot.active .hero-caption-stage .slide-title    { animation: slideFadeUp 0.8s ease-out 0.45s forwards; }
.caption-slot.active .hero-caption-stage .slide-subtitle { animation: slideFadeUpSubtitle 0.8s ease-out 0.65s forwards; }
.caption-slot.active .hero-caption-stage .hero-slide-cta { animation: slideFadeUp 0.8s ease-out 0.85s forwards; }
.caption-slot.active .slide-caption:not(.slide-caption--designed) .slide-eyebrow  { animation: slideFadeUp 0.7s ease-out 0.25s forwards; }
.caption-slot.active .slide-caption:not(.slide-caption--designed) .slide-title    { animation: slideFadeUp 0.8s ease-out 0.45s forwards; }
.caption-slot.active .slide-caption:not(.slide-caption--designed) .slide-subtitle { animation: slideFadeUpSubtitle 0.8s ease-out 0.65s forwards; }
.caption-slot.active .slide-caption:not(.slide-caption--designed) .hero-slide-cta { animation: slideFadeUp 0.8s ease-out 0.85s forwards; }
@keyframes slideFadeUp { to { opacity: 1; transform: translateY(0); } }
@keyframes slideFadeUpSubtitle { to { opacity: var(--slide-subtitle-opacity, 1); transform: translateY(0); } }

.carousel-arrow {
  position: absolute; top: 50%;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.95); border: none; cursor: pointer;
  font-size: 22px; font-weight: 700; color: var(--navy);
  z-index: 5; transform: translateY(-50%);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2); transition: 0.2s;
}
.carousel-arrow:hover { transform: translateY(-50%) scale(1.1); background: white; }
.carousel-arrow.prev { left: 20px; }
.carousel-arrow.next { right: 20px; }

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  max-width: 1280px;
  margin: 16px auto 0;
}
.carousel-indicators .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(15, 42, 68, 0.28); cursor: pointer;
  transition: 0.25s;
}
.carousel-indicators .dot.active {
  background: var(--navy, #0F2A44);
  width: 28px;
  border-radius: 999px;
}

/* ── Sections ──────────────────────────────────────────── */
.age-section, .cats-section, .products-section, .why-section, .newsletter,
.product-carousel-section { padding: 48px 24px; }
.section-title { text-align: center; font-size: 28px; font-weight: 800; color: var(--navy); margin-bottom: 32px; }
.section-header { display: flex; align-items: center; justify-content: space-between; max-width: 1300px; margin: 0 auto 32px; flex-wrap: wrap; gap: 12px; }
.section-header .section-title { margin: 0; text-align: left; }
.section-header .view-all { color: var(--teal); text-decoration: none; font-weight: 600; white-space: nowrap; }
.section-header .view-all:hover { text-decoration: underline; }

/* Shop toolbar (shared: Products + Home mobile) */
.shop-header {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-bottom: 24px;
  padding: 12px 16px;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow, 0 20px 35px -12px rgba(0,0,0,0.12));
  gap: 12px;
}
.shop-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
}
.shop-category-strip {
  display: flex;
  gap: 8px;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2px 0 4px;
  -webkit-overflow-scrolling: touch;
}
.shop-category-strip::-webkit-scrollbar { display: none; }
.shop-cat-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--glass-border, #e8e8e8);
  background: #ffffff;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark, #2C3E50);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  cursor: pointer;
  font-family: inherit;
}
.shop-cat-pill:hover {
  background: rgba(43, 184, 200, 0.1);
  border-color: rgba(43, 184, 200, 0.35);
  color: var(--navy, #0F2A44);
}
.shop-cat-pill.active {
  background: #1A8F9C;
  color: #ffffff;
  border-color: #1A8F9C;
}
.results-count {
  color: var(--text-mid, #2C3E50);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.sort-control {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: flex-end;
}
.sort-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid, #2C3E50);
  white-space: nowrap;
}
.sort-control select,
.sort-control .custom-select--sort {
    flex: 1;
    max-width: 200px;
    min-width: 0;
}

/* CustomSelect — ported from Blazor CustomSelect.razor.css */
.custom-select {
  position: relative;
  display: block;
  width: 100%;
}
.custom-select--inline {
  display: flex;
  align-items: center;
  gap: 8px;
}
.custom-select--above {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.custom-select__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid, #2C3E50);
  white-space: nowrap;
}
.custom-select__control {
  position: relative;
  width: 100%;
  min-width: 0;
}
.custom-select--inline .custom-select__control {
  flex: 1;
}
.custom-select__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  padding-inline-end: 38px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  background: #ffffff;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy, #0F2A44);
  cursor: pointer;
  text-align: start;
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
}
.custom-select__trigger:hover:not(:disabled) {
  border-color: var(--teal, #2BB8C8);
}
.custom-select__trigger:focus-visible {
  outline: none;
  border-color: var(--teal, #2BB8C8);
  box-shadow: 0 0 0 3px rgba(43, 184, 200, 0.15);
}
.custom-select__trigger:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.custom-select--open .custom-select__trigger {
  border-color: var(--teal, #2BB8C8);
  box-shadow: 0 0 0 3px rgba(43, 184, 200, 0.15);
}
.custom-select__value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.custom-select__caret {
  position: absolute;
  inset-inline-end: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy, #0F2A44);
  pointer-events: none;
  transition: transform 0.2s;
}
.custom-select--open .custom-select__caret {
  transform: translateY(-50%) rotate(180deg);
}
.custom-select__backdrop {
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: transparent;
  border: none;
  cursor: default;
  padding: 0;
}
.custom-select__panel {
  position: absolute;
  top: calc(100% + 6px);
  inset-inline-start: 0;
  inset-inline-end: 0;
  z-index: 450;
  background: #ffffff;
  border: 1px solid rgba(43, 184, 200, 0.28);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 42, 68, 0.16);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: min(320px, 60vh);
}
.custom-select__panel--portaled {
  position: fixed;
  top: auto;
  left: auto;
  right: auto;
  bottom: auto;
  inset: auto;
  inset-inline-start: auto;
  inset-inline-end: auto;
  margin: 0;
  z-index: 10060;
  max-height: none;
  transform: none;
}
.custom-select__search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
}
.custom-select__search-icon {
  display: flex;
  color: #888;
  flex-shrink: 0;
}
.custom-select__search-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy, #0F2A44);
  background: transparent;
  padding: 4px 0;
  min-height: 28px;
}
.custom-select__search-input::placeholder {
  color: #999;
}
.custom-select__list {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.custom-select__option {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  background: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy, #0F2A44);
  text-align: start;
  transition: background 0.15s, color 0.15s;
}
.custom-select__option:hover:not(:disabled),
.custom-select__option--highlighted:not(:disabled) {
  background: rgba(43, 184, 200, 0.1);
  color: var(--teal, #2BB8C8);
}
.custom-select__option--selected {
  background: rgba(43, 184, 200, 0.14);
  color: var(--teal, #2BB8C8);
}
.custom-select__option:focus-visible {
  outline: 2px solid var(--teal, #2BB8C8);
  outline-offset: -2px;
}
.custom-select__option:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.custom-select__empty {
  padding: 14px 12px;
  font-size: 14px;
  color: #888;
  text-align: center;
}
.custom-select--sort {
  flex: 1;
  max-width: 200px;
  min-width: 0;
}
.custom-select--sort .custom-select__trigger {
  min-height: 40px;
}
@media (max-width: 640px) {
  .custom-select--sort {
    max-width: none;
  }
  .custom-select__panel {
    max-height: min(280px, 50vh);
  }
}

.view-toggle {
  display: flex;
  direction: ltr;
  gap: 3px;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 3px;
  background: #e8e8e8;
  flex-shrink: 0;
}
.view-btn {
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  border-radius: 7px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  transition: all 0.15s;
}
.view-btn:hover { color: var(--navy, #0F2A44); background: #ffffff; }
.view-btn.active { background: white; color: var(--navy, #0F2A44); box-shadow: 0 1px 4px rgba(0,0,0,0.15); }

/* Home: mobile landing toolbar (featured browse, not catalog) */
.home-mobile-toolbar {
  display: none;
}
.home-mobile-section-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy, #0F2A44);
  margin: 0;
  line-height: 1.2;
}
@media (max-width: 768px) {
  .home-desktop-only { display: none; }
  .home-mobile-toolbar {
    display: flex;
    margin: 0 auto 18px;
    max-width: 1300px;
  }
  .home-mobile-toolbar .home-landing-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .home-mobile-toolbar .view-toggle {
    flex-shrink: 0;
  }
}

/* Horizontal chip rows — clip ~half of next item as scroll affordance */
.scroll-peek-wrap {
  overflow: hidden;
  --scroll-peek-clip: clamp(44px, 14vw, 72px);
}
.age-section .scroll-peek-wrap {
  --section-inline-padding: 24px;
  margin-inline: calc(-1 * var(--section-inline-padding));
  padding-inline-start: var(--section-inline-padding);
}
.cats-section .scroll-peek-wrap {
  --section-inline-padding: 24px;
  margin-inline: calc(-1 * var(--section-inline-padding));
  padding-inline-start: var(--section-inline-padding);
}
.shop-header .scroll-peek-wrap {
  --section-inline-padding: 16px;
  margin-inline: calc(-1 * var(--section-inline-padding));
  padding-inline-start: var(--section-inline-padding);
}
.product-carousel-peek {
  --section-inline-padding: 24px;
  margin-inline: calc(-1 * var(--section-inline-padding));
  padding-inline-start: var(--section-inline-padding);
}
.product-carousel-section .product-carousel-title {
  margin-bottom: 24px;
}
.product-carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2px 0 8px;
  width: 100%;
}
.product-carousel-track::-webkit-scrollbar { display: none; }
.product-carousel-card {
  flex: 0 0 min(72vw, 260px);
  scroll-snap-align: start;
  text-decoration: none;
  color: inherit;
  display: block;
}
.product-carousel-card .prod-img-wrap { aspect-ratio: 1; }
.product-carousel-card .prod-body { padding: 14px 4px 0; }
.scroll-peek-wrap.is-overflow > .shop-category-strip,
.scroll-peek-wrap.is-overflow > .age-filters,
.scroll-peek-wrap.is-overflow > .cats-feature-row,
.scroll-peek-wrap.is-overflow > .product-carousel-track {
  margin-inline-end: calc(-1 * var(--scroll-peek-clip));
  padding-inline-end: var(--scroll-peek-clip);
}

.age-filters {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  padding: 2px 0 4px;
  width: 100%;
}
.age-filters::-webkit-scrollbar { display: none; }

@media (min-width: 769px) {
  .age-filters {
    justify-content: center;
    width: max-content;
    max-width: 100%;
    margin-inline: auto;
    padding: 4px 0 8px;
  }
  .scroll-peek-wrap.is-overflow > .age-filters {
    justify-content: flex-start;
    width: 100%;
    margin-inline-start: 0;
  }
}
.age-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid var(--glass-border);
  border-radius: 60px;
  box-shadow: var(--card-shadow);
  padding: 10px 24px;
  font-family: inherit;
  font-weight: 600;
  font-size: inherit;
  line-height: 1.4;
  white-space: nowrap;
  cursor: pointer;
  color: var(--text-dark);
  transition: 0.2s;
  text-decoration: none;
  box-sizing: border-box;
  vertical-align: middle;
}
button.age-btn {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
}
.age-btn span {
  display: inline-block;
  line-height: 1.4;
  white-space: nowrap;
}
.age-btn:hover {
  background: rgba(43,184,200,0.14);
  border-color: rgba(43,184,200,0.35);
  transform: translateY(-1px);
}
.age-btn.active { background: var(--teal); color: white; border-color: var(--teal); }

.cats-grid, .products-grid, .blog-grid { display: grid; gap: 24px; max-width: 1300px; margin: 0 auto; }
.cats-grid { grid-template-columns: repeat(2,1fr); }

.cat-card {
  background: #ffffff;
  border-radius: 32px; padding: 28px 16px; text-align: center;
  border: 1px solid var(--glass-border); text-decoration: none;
  box-shadow: var(--card-shadow);
  color: inherit; transition: 0.2s;
  min-height: 168px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.cat-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.cat-card__icon { font-size: 42px; line-height: 1; }
.cat-card__name { font-weight: 800; margin: 12px 0 4px; color: var(--navy); }
.cat-card__meta { color: var(--text-mid); font-size: 14px; margin-top: 4px; }
.cat-card__icon {
  font-size: 42px;
  line-height: 1;
}

/* page-main stacking defined above */
@keyframes page-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.products-grid { grid-template-columns: 1fr; }
.prod-tab-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.prod-tab {
  background: #ffffff;
  border: 1px solid var(--glass-border); border-radius: 60px;
  box-shadow: var(--card-shadow);
  padding: 10px 24px; font-weight: 600; cursor: pointer;
  color: var(--text-dark); transition: 0.2s;
}
.prod-tab.active { background: var(--teal); color: white; border-color: var(--teal); }

.prod-card {
  background: #ffffff;
  border-radius: var(--product-btn-radius); overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--card-shadow);
  transition: 0.2s; text-decoration: none; color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.prod-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.prod-img-wrap { aspect-ratio: 1; background: #f0f2f5; position: relative; overflow: hidden; min-height: 0; }
.products-section .products-grid { min-height: 320px; }
.prod-img { width: 100%; height: 100%; object-fit: cover; }
.prod-badge {
  position: absolute; top: 12px; left: 12px;
  background: #1A8F9C; color: white; font-size: 10px;
  padding: 4px 12px; border-radius: 30px; font-weight: 800;
}
.prod-body { padding: 18px; flex: 0 0 auto; min-width: 0; }
.prod-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-dark);
  margin-bottom: 6px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.prod-price { font-weight: 800; font-size: 16px; color: var(--navy); }
.prod-old-price { font-size: 12px; color: #767676; text-decoration: line-through; }
.btn-add-small {
  background: rgba(200,237,245,0.7); border: none;
  padding: 7px 14px; border-radius: 40px;
  font-weight: 700; cursor: pointer; color: var(--navy); transition: 0.2s;
}
.btn-add-small:hover { background: var(--teal); color: white; }

.blog-grid { grid-template-columns: 1fr; }
.blog-card {
  background: #ffffff;
  border-radius: 32px; padding: 28px; border: 1px solid var(--glass-border);
  box-shadow: var(--card-shadow);
}
.blog-card h3 { color: var(--navy); margin: 16px 0 8px; }
.blog-card p  { color: var(--text-mid); line-height: 1.6; }

/* ── Newsletter ────────────────────────────────────────── */
.newsletter {
  position: relative;
  padding: 0;
  overflow: hidden;
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.newsletter .nl-content {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  padding: 40px 20px 36px;
  text-align: center;
}
.newsletter .nl-title {
  font-size: clamp(22px, 5vw, 28px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.4px;
  color: #fff;
  margin: 0 0 8px;
}
.newsletter .nl-sub {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.5;
  margin: 0 auto 20px;
  max-width: 34ch;
}
.newsletter .nl-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}
.newsletter .nl-input {
  flex: 1;
  min-width: 0;
  width: 100%;
  padding: 13px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.newsletter .nl-input::placeholder { color: rgba(255, 255, 255, 0.4); }
.newsletter .nl-input:focus {
  border-color: var(--teal);
  background: rgba(255, 255, 255, 0.1);
}
.newsletter .nl-btn {
  background: var(--teal);
  color: #fff;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
  width: 100%;
  box-shadow: none;
}
.newsletter .nl-btn:hover {
  background: #25a5b8;
  transform: translateY(-1px);
}
.newsletter .nl-disclaimer {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.38);
  margin: 0;
  line-height: 1.4;
}
.newsletter .nl-benefits {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.32);
  margin: 14px 0 0;
  line-height: 1.5;
  letter-spacing: 0.01em;
}
@media (min-width: 480px) {
  .newsletter .nl-content { padding: 48px 24px 44px; }
  .newsletter .nl-sub { font-size: 15px; margin-bottom: 22px; }
  .newsletter .nl-form {
    flex-direction: row;
    align-items: stretch;
    gap: 8px;
  }
  .newsletter .nl-btn { width: auto; flex-shrink: 0; padding-inline: 22px; }
}
@media (min-width: 769px) {
  .newsletter .nl-content { max-width: 520px; padding: 56px 24px 48px; }
  .newsletter .nl-title { font-size: 30px; }
}
.nl-btn {
  background: var(--teal);
  color: #fff;
  padding: 15px 32px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: 0.2s;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(43, 184, 200, 0.35);
}
.nl-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(43, 184, 200, 0.45);
}

/* ── Footer ────────────────────────────────────────────── */
footer.kidioz-footer {
  background: var(--navy-light);
  padding: 48px 24px 24px;
  color: #fff;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}
.footer-col-title {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}
.footer-links,
.footer-social {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links li {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}
.footer-links li + li {
  margin-top: 2px;
}
.kidioz-footer .footer-links li a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 4px 0;
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  transition: color 0.15s ease;
}
.kidioz-footer .footer-links li a:hover {
  color: var(--teal);
}
.footer-brand {
  padding-bottom: 8px;
}
.footer-logo {
  margin-bottom: 12px;
}
.footer-logo .logo-img {
  height: 28px;
  width: auto;
  filter: brightness(0) invert(1);
}
.footer-tagline {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.6;
  max-width: 280px;
}
.footer-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.footer-social li {
  margin: 0;
}
.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.footer-social-link svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  opacity: 0.9;
}
.footer-social-link:hover {
  color: var(--teal);
  background: rgba(43, 184, 200, 0.12);
  border-color: rgba(43, 184, 200, 0.35);
}
.footer-social-link:hover svg {
  opacity: 1;
}
.footer-copy {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.32);
  line-height: 1.5;
}

/* ── Connection Status Bar (YouTube-style) ──────────────── */
.connection-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: max(8px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 8px max(16px, env(safe-area-inset-left));
  font-size: 13px;
  font-weight: 500;
  min-height: 32px;
  max-width: 100%;
  box-sizing: border-box;
  animation: slideDown 0.3s ease-out;
}
@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.connection-bar--offline {
  background: #cc0000;
  color: white;
}
.connection-bar--reconnecting {
  background: #ffcc00;
  color: #333;
}
.connection-bar--lost {
  background: #cc0000;
  color: white;
}

.connection-bar__icon { font-size: 14px; flex-shrink: 0; }
.connection-bar__text {
  flex: 1 1 120px;
  min-width: 0;
  text-align: center;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.connection-bar__retry {
  background: rgba(255,255,255,0.2);
  border: none;
  color: inherit;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
  white-space: nowrap;
}
.connection-bar__retry:hover { background: rgba(255,255,255,0.3); }

.connection-bar__spinner {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── App Loading Overlay ───────────────────────────────── */
/* Scroll lock is applied via body.mmz-scroll-locked (KidiozEffects / scroll-lock), not :has(),
   so dismissed overlays cannot leave html/body overflow:hidden behind. */
.app-loading-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: 100%;
  z-index: 9999;
  background: linear-gradient(135deg, #FEF7E6 0%, #FCE9D8 50%, #E8F3F9 100%);
  display: grid;
  place-items: center;
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.5s ease;
  pointer-events: auto;
  min-height: 100dvh;
  min-height: 100svh;
  padding:
    env(safe-area-inset-top, 0px)
    env(safe-area-inset-right, 0px)
    env(safe-area-inset-bottom, 0px)
    env(safe-area-inset-left, 0px);
  box-sizing: border-box;
}
.app-loading-overlay--fading {
  opacity: 0;
  pointer-events: none;
}
.app-loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 1;
  width: min(320px, calc(100% - 40px));
  max-width: 100%;
  margin: auto;
  padding: 0;
  box-sizing: border-box;
  gap: 18px;
  flex-shrink: 0;
  animation: loadingFadeIn 0.4s ease-out;
}
@keyframes loadingFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.app-loading-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
  line-height: 0;
}
.app-loading-logo .logo-img {
  height: 56px;
  width: auto;
  max-width: min(260px, 78vw);
  display: block;
  object-fit: contain;
  margin: 0 auto;
}

.app-loading-spinner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0;
}
.app-loading-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--teal);
  animation: loadingDot 1.4s ease-in-out infinite;
}
.app-loading-dot:nth-child(2) { animation-delay: 0.2s; background: var(--coral); }
.app-loading-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes loadingDot {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
  40% { transform: scale(1); opacity: 1; }
}

.app-loading-text {
  font-size: clamp(13px, 3.8vw, 15px);
  color: var(--text-mid);
  font-weight: 500;
  line-height: 1.5;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0 4px;
  text-align: center;
  overflow-wrap: break-word;
  word-break: normal;
  animation: loadingPulse 2s ease-in-out infinite;
}
@keyframes loadingPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.app-loading-bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: loadingFloat 8s ease-in-out infinite;
}
.app-loading-bg-shape--top {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(43,184,200,0.35) 0%, transparent 70%);
  top: -150px;
  right: -100px;
}
.app-loading-bg-shape--bottom {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,138,107,0.3) 0%, transparent 70%);
  bottom: -100px;
  left: -100px;
  animation-delay: -4s;
}
@keyframes loadingFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.05); }
}

@media (max-width: 480px) {
  .app-loading-content { gap: 16px; width: min(300px, calc(100% - 32px)); }
  .app-loading-logo .logo-img { height: 44px; max-width: min(200px, 72vw); }
  .app-loading-spinner { gap: 10px; }
  .app-loading-bg-shape--top {
    width: 280px;
    height: 280px;
    top: -80px;
    right: -60px;
  }
  .app-loading-bg-shape--bottom {
    width: 220px;
    height: 220px;
    bottom: -60px;
    left: -60px;
  }
  .connection-bar {
    font-size: 12px;
    gap: 6px 10px;
    padding-inline: max(12px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-right));
  }
  .connection-bar__retry {
    padding: 6px 10px;
    min-height: 32px;
  }
  .hero--loading .hero-stage { min-height: min(52vh, 320px); border-radius: 16px; }
}

/* Shared page-level loading text (cart, checkout, shop, account, etc.) */
.acct-loading,
.shop-loading,
.qv-loading,
.reviews-loading,
.orders-loading-overlay {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}
.acct-loading p,
.shop-loading p,
.cart-loading p,
.checkout-loading p,
.product-loading p,
.confirm-loading p,
.auth-loading-inline p,
.qv-loading p {
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
  line-height: 1.45;
  padding-inline: 4px;
}

/* Hide elements during loading */
.site-header-wrap--hidden {
  visibility: hidden;
  opacity: 0;
}
.page-main--hidden {
  display: none;
}

/* ── Auth loading (route + account) ─────────────────────── */
.auth-route-inline-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(60vh, 480px);
  width: 100%;
  padding: 24px 16px;
  box-sizing: border-box;
}

.auth-loading-inline {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  text-align: center;
  gap: 4px;
}

.auth-loading-inline p {
  margin: 0;
  font-size: clamp(13px, 3.8vw, 15px);
  color: var(--text-mid);
  font-weight: 500;
  line-height: 1.45;
}

.acct-sidebar-auth-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 4px 0 12px;
  width: 100%;
}

.acct-avatar--placeholder {
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  color: transparent;
}

.acct-sidebar-auth-line {
  height: 12px;
  width: 72%;
  border-radius: 6px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.acct-sidebar-auth-line--short {
  width: 52%;
  animation-delay: 0.15s;
}

/* ── Auth background (Kidioz style) ─────────────────────── */
.auth-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, #FEF7E6 0%, #FCE9D8 50%, #E8F3F9 100%);
  background-attachment: fixed;
  overflow: hidden;
}
.auth-bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.6;
  pointer-events: none;
}
.auth-bg-shape--top {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(43,184,200,0.25) 0%, transparent 70%);
  top: -200px;
  right: -200px;
}
.auth-bg-shape--bottom {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,138,107,0.2) 0%, transparent 70%);
  bottom: -150px;
  left: -150px;
}

/* ── Stars canvas (visible on all pages) ───────────────── */
.stars-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;  /* Above background gradient, below content */
}
.star-particle {
  position: absolute;
  color: #FFD966;
  font-size: 16px;
  text-shadow: 0 0 6px rgba(255, 217, 102, 0.45);
}

@media (max-width: 768px) {
  #starCanvas {
    display: none !important;
  }
}

/* ── Blazor plumbing ───────────────────────────────────── */
#blazor-error-ui {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
#blazor-error-ui .dismiss { cursor: pointer; }
.blazor-error-boundary {
  padding: 0;
  color: inherit;
  background: transparent;
}
.blazor-error-boundary::after { content: none; }

/* Circuit-level friendly error overlay (mmz-error-recovery.js) */
#mmz-friendly-error-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(26, 26, 46, 0.45);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.mmz-friendly-error-overlay__card {
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}
.mmz-friendly-error-overlay__icon {
  color: var(--brand-teal, #2bdbe8);
  margin-bottom: 1rem;
}
.mmz-friendly-error-overlay__title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary, #1a1a2e);
  margin: 0 0 0.75rem;
}
.mmz-friendly-error-overlay__message {
  font-size: 1rem;
  color: var(--text-secondary, #5a5a72);
  margin: 0 0 0.5rem;
  line-height: 1.6;
}
.mmz-friendly-error-overlay__reassure {
  font-size: 0.9rem;
  color: var(--text-muted, #8888a0);
  margin: 0 0 1.5rem;
}
.mmz-friendly-error-overlay__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.mmz-friendly-error-overlay__btn {
  background: var(--brand-teal, #2bdbe8);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}
.mmz-friendly-error-overlay__home {
  font-size: 0.9rem;
  color: var(--brand-teal, #2bdbe8);
  text-decoration: none;
  font-weight: 500;
}
.mmz-friendly-error-overlay__home:hover { text-decoration: underline; }
.invalid { outline: 1px solid #e50000; }
.validation-message { color: #e50000; }
.valid.modified:not([type=checkbox]) { outline: 1px solid #26b050; }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 768px) {
  .site-header-wrap { overflow-x: clip; }
  .announce-bar {
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    text-overflow: clip;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
  }
  .announce-bar::-webkit-scrollbar { display: none; }
  .nav-inner {
    grid-template-columns: auto 1fr auto;
    height: 60px;
    padding-inline: max(12px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-right));
    gap: 8px;
  }
  .nav-leading {
    display: flex;
    align-items: center;
    flex-shrink: 0;
  }
  .nav-logo {
    min-width: 0;
    max-width: 84px;
    justify-self: start;
  }
  .nav-logo .logo-img {
    max-width: 100%;
    height: 24px;
  }
  .nav-search-toggle {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }
  .nav-search-wrap { display: none; }
  .nav-mobile-search {
    display: block;
  }
  .nav-mobile-search--open {
    max-height: 56px;
    opacity: 1;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(15, 42, 68, 0.06);
  }
  .nav-mobile-search .nav-search-wrap {
    display: flex;
    width: 100%;
    max-width: none;
  }
  .nav-actions {
    min-width: 0;
    gap: 3px;
  }
  .nav-hamburger { display: flex; }
  .nav-desktop-only { display: none !important; }
  .nav-mobile-only  { display: flex; }
  /* Compact auth on mobile bar */
  .nav-signin-link { padding: 6px 8px; font-size: 12px; }
  .nav-signup-btn  { padding: 7px 10px; font-size: 11px; box-shadow: none; }
  .nav-cats-inner { padding: 0 12px; }
  .nav-hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
  }
  .nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: 0.2s;
  }
  .nav-hamburger--open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-hamburger--open span:nth-child(2) { opacity: 0; }
  .nav-hamburger--open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
  .nav-hamburger--filters-active::after {
    content: "";
    position: absolute;
    top: 6px;
    inset-inline-end: 2px;
    width: 8px;
    height: 8px;
    background: var(--teal, #2BB8C8);
    border-radius: 50%;
    border: 2px solid #fff;
  }
  /* Disable hover dropdown on mobile — use hamburger drawer instead */
  .nav-user-wrap:hover .nav-user-dropdown,
  .nav-user-wrap:focus-within .nav-user-dropdown { display: none; }
  .nav-user-wrap::after { display: none; }
  /* Mobile sidebar drawer */
  .nav-mobile-overlay {
    display: block;
    position: fixed;
    inset: 0;
    top: var(--site-header-offset);
    z-index: 199;
    border: none;
    padding: 0;
    margin: 0;
    background: rgba(15, 42, 68, 0.42);
    cursor: pointer;
    animation: nav-mobile-overlay-in 0.22s ease forwards;
  }

  @keyframes nav-mobile-overlay-in {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  @keyframes nav-mobile-drawer-slide-in {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
  }

  @keyframes nav-mobile-drawer-slide-in-rtl {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
  }

  .nav-mobile-drawer {
    position: fixed;
    top: var(--site-header-offset);
    inset-inline-start: 0;
    bottom: 0;
    width: min(320px, 88vw);
    max-width: 100%;
    z-index: 200;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 28px rgba(15, 42, 68, 0.14);
    border-inline-end: 1px solid rgba(15, 42, 68, 0.08);
    overflow: hidden;
  }

  .nav-mobile-drawer--open {
    animation: nav-mobile-drawer-slide-in 0.28s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }

  [dir="rtl"] .nav-mobile-drawer--open {
    animation-name: nav-mobile-drawer-slide-in-rtl;
  }

  .nav-mobile-drawer-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 12px 16px max(16px, env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .nav-mobile-drawer-title {
    margin: 0 0 8px;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #888;
  }

  .nav-mobile-drawer-title--section {
    margin-top: 2px;
  }

  .nav-mobile-categories {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .nav-mobile-categories-loading,
  .nav-mobile-categories-empty {
    margin: 4px 10px 8px;
    font-size: 13px;
    color: #888;
  }

  .nav-mobile-link--all {
    font-weight: 700;
    color: var(--navy, #0f2a44);
  }

  .nav-mobile-category-tree {
    margin: 4px 0 4px;
    padding: 0 2px;
  }

  .nav-mobile-category-tree .category-tree-row {
    min-height: 40px;
  }

  .nav-mobile-category-link {
    padding: 10px 8px;
    font-size: 14px;
    border-radius: 10px;
  }

  .nav-mobile-category-link:hover {
    background: rgba(43, 184, 200, 0.09);
    color: var(--teal, #2bb8c8);
  }
  .nav-mobile-user-header {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
    padding: 8px 10px 12px;
    border-bottom: 1px solid rgba(15,42,68,0.07);
    margin-bottom: 4px;
  }
  .nav-mobile-link {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-mid);
    text-decoration: none;
    padding: 11px 10px;
    border-radius: 10px;
    transition: background 0.15s;
  }
  .nav-mobile-link:hover,
  .nav-mobile-link:active { background: rgba(43,184,200,0.09); color: var(--teal); }
  .nav-mobile-link--highlight {
    background: var(--teal);
    color: white;
    text-align: center;
    font-weight: 700;
    margin-top: 4px;
    border-radius: 12px;
  }
  .nav-mobile-link--highlight:hover { background: var(--teal-dark); color: white; }
  .nav-mobile-divider {
    border: none;
    border-top: 1px solid rgba(15,42,68,0.07);
    margin: 6px 0;
  }
  .nav-mobile-signout {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--coral);
    text-decoration: none;
    padding: 11px 10px;
    border-radius: 10px;
    transition: background 0.15s;
  }
  .nav-mobile-signout:hover { background: rgba(255,138,107,0.08); }
  .nav-cats { display: none; }
  /* Hero — edge-to-edge on mobile */
  .hero {
    padding: 0;
  }
  .hero-stage {
    height: min(52vw, 360px);
    min-height: 260px;
    max-height: 360px;
    max-width: none;
    margin: 0;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
  }
  .slide-caption {
    padding: 16px 12px 62px;
    justify-content: flex-end;
    align-items: flex-start;
    max-width: 75%;
    overflow: visible;
  }
  .hero-caption-stage {
    left: 14px !important;
    top: auto !important;
    bottom: 18px !important;
    right: 14px !important;
    width: auto !important;
    max-width: none !important;
    transform: none !important;
    text-align: left !important;
    align-items: flex-start !important;
    padding: 0;
    --slide-title-size-min: 18px !important;
    --slide-title-size: 26px !important;
    --slide-subtitle-size-min: 12px !important;
    --slide-subtitle-size: 14px !important;
  }
  .hero-caption-stage .slide-eyebrow {
    margin-bottom: 6px;
    font-size: 10px !important;
    letter-spacing: 1.4px !important;
    gap: 8px;
  }
  .hero-caption-stage .slide-eyebrow::before {
    width: 22px;
    height: 2px;
  }
  .hero-caption-stage .slide-title {
    margin-bottom: 0;
    font-size: clamp(18px, 5.2vw, 26px) !important;
    letter-spacing: -0.4px;
    line-height: 1.22;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    text-wrap: balance;
  }
  .hero-caption-stage .hero-slide-cta {
    margin-top: 12px;
    padding: 10px 20px !important;
    font-size: 13px !important;
    gap: 8px;
    box-shadow: 0 6px 18px rgba(26, 143, 156, 0.35);
  }
  .slide-title {
    font-size: clamp(14px, 4vw, 20px);
    letter-spacing: -0.2px;
    margin-bottom: 0;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    line-height: 1.25;
  }
  .slide-subtitle { display: none; }
  .slide-eyebrow {
    font-size: 9px;
    letter-spacing: 1.2px;
    margin-bottom: 6px;
    white-space: nowrap;
  }
  .carousel-arrow { display: none; }
  /* CTA — absolute bottom-centre, well below the caption text */
  .hero-fixed-cta {
    left: 12px;
    transform: none;
    bottom: 14px;
    padding: 9px 20px;
    font-size: 12px;
    white-space: nowrap;
    gap: 6px;
  }
  .hero-fixed-cta:hover { transform: translateY(-2px); }
  .carousel-indicators { margin-top: 12px; padding: 0 14px; }
  /* Sections */
  .age-section, .cats-section, .why-section, .products-section { padding: 28px 14px; }
  .products-section { padding: 28px 8px; }
  .products-section .home-products-header {
    margin-bottom: 16px;
  }
  .products-section .home-products-header .section-title {
    font-size: 20px;
  }
  .products-section .products-grid {
    max-width: none;
    margin: 0;
    padding: 0;
    gap: 8px;
  }
  .products-see-more-wrap {
    padding: 0 8px;
  }
  .product-carousel-section {
    padding: 28px 0;
  }
  .product-carousel-section .section-title {
    padding: 0 14px;
  }
  .product-carousel-peek {
    --section-inline-padding: 14px;
  }
  .newsletter { padding: 0; }
  .section-title { font-size: 22px; margin-bottom: 18px; }
  .section-header { margin-bottom: 18px; }
  .section-header .section-title { font-size: 20px; }
  /* Grids on mobile */
  .cats-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .blog-grid { grid-template-columns: 1fr !important; }
  .products-grid { grid-template-columns: repeat(2, 1fr) !important; }
  /* Product tab row — scroll on mobile */
  .prod-tab-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    justify-content: flex-start;
    padding-bottom: 4px;
  }
  .prod-tab-row::-webkit-scrollbar { display: none; }
  .prod-tab { flex-shrink: 0; }
  /* Footer — mobile: compact brand, shop/support side-by-side */
  footer.kidioz-footer {
    padding: 16px max(16px, env(safe-area-inset-left)) max(14px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-right));
    overflow-x: hidden;
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 14px;
    min-width: 0;
  }
  .footer-brand {
    grid-column: 1 / -1;
    padding-bottom: 10px;
    text-align: center;
  }
  .footer-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 6px;
  }
  .footer-logo .logo-img {
    height: 22px;
  }
  .footer-tagline {
    font-size: 12px;
    line-height: 1.4;
    max-width: 260px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.55);
  }
  .footer-col {
    min-width: 0;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .footer-connect {
    grid-column: 1 / -1;
    padding-top: 12px;
  }
  .footer-connect .footer-col-title {
    position: static;
    width: auto;
    height: auto;
    margin: 0 0 8px;
    overflow: visible;
    clip: auto;
    white-space: normal;
    border: 0;
    text-align: center;
  }
  .footer-social {
    justify-content: center;
    gap: 10px;
  }
  .footer-social-link {
    width: 36px;
    height: 36px;
    min-height: 36px;
  }
  .footer-social-link svg {
    width: 15px;
    height: 15px;
  }
  .footer-col-title {
    margin-bottom: 6px;
    font-size: 10px;
    letter-spacing: 0.08em;
  }
  .footer-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
  }
  .footer-links li {
    font-size: 12px;
    line-height: 1.3;
  }
  .footer-links li + li {
    margin-top: 0;
  }
  .kidioz-footer .footer-links li a {
    min-height: 28px;
    padding: 2px 0;
    display: flex;
    align-items: center;
  }
  .footer-col-title,
  .footer-links li,
  .footer-copy { overflow-wrap: break-word; word-break: break-word; }
  .footer-copy {
    margin-top: 12px;
    padding-top: 10px;
    font-size: 10px;
    line-height: 1.4;
    text-align: center;
  }
  .age-section .scroll-peek-wrap { --section-inline-padding: 14px; }
  .cats-section .scroll-peek-wrap { --section-inline-padding: 14px; }
  .shop-header .scroll-peek-wrap { --section-inline-padding: 12px; }
  .age-filters { gap: 8px; }
  .age-btn {
    min-height: 36px;
    padding: 8px 16px;
    font-size: 13px;
  }
  .shop-cat-pill { min-height: 34px; padding: 7px 14px; font-size: 12px; }
  .shop-category-strip { gap: 6px; }
  .shop-header { padding: 10px 12px; margin-bottom: 16px; }
  /* Newsletter */
  .newsletter .nl-content { padding: 32px 16px 28px; }
  .newsletter .nl-benefits { display: none; }
  /* Auth */
  .auth-section { padding: 60px 14px 32px; }
  .auth-card { padding: 32px 20px 28px; border-radius: 24px; }

}

@media (max-width: 399px) {
  footer.kidioz-footer {
    padding: 14px max(14px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-right));
  }
  .footer-logo .logo-img {
    height: 20px;
  }
  .footer-tagline {
    font-size: 11px;
    line-height: 1.35;
  }
  .footer-col {
    padding-top: 8px;
  }
  .footer-col-title {
    margin-bottom: 4px;
    font-size: 9px;
  }
  .footer-links li {
    font-size: 11px;
  }
  .kidioz-footer .footer-links li a {
    min-height: 26px;
    padding: 1px 0;
  }
  .footer-social-link {
    width: 34px;
    height: 34px;
    min-height: 34px;
  }
  .footer-copy {
    margin-top: 10px;
    padding-top: 8px;
    font-size: 9px;
  }
}

@media (min-width: 640px) and (max-width: 767px) {
  .cats-grid { grid-template-columns: repeat(3,1fr); }
  .products-grid { grid-template-columns: repeat(2,1fr); }
  .blog-grid { grid-template-columns: repeat(2,1fr); }
  footer.kidioz-footer {
    padding: 18px max(20px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-right));
  }
  .footer-tagline {
    font-size: 13px;
    max-width: 320px;
  }
  .footer-col-title {
    margin-bottom: 6px;
    font-size: 10px;
  }
  .footer-links li {
    font-size: 13px;
  }
  .kidioz-footer .footer-links li a {
    min-height: 30px;
    padding: 3px 0;
    font-size: 13px;
  }
  .footer-copy {
    margin-top: 14px;
    padding-top: 12px;
    font-size: 11px;
  }
}

@media (min-width: 640px) {
  .cats-grid { grid-template-columns: repeat(3,1fr); }
  .products-grid { grid-template-columns: repeat(2,1fr); }
  .blog-grid { grid-template-columns: repeat(2,1fr); }
}

@media (min-width: 769px) {
  footer.kidioz-footer {
    padding: 28px 20px 14px;
  }
  .footer-inner {
    max-width: 920px;
  }
  .footer-grid {
    grid-template-columns: minmax(180px, 240px) repeat(3, max-content);
    gap: 16px 22px;
    justify-content: start;
  }
  .footer-brand {
    display: block;
    grid-column: auto;
    padding-bottom: 0;
    text-align: start;
  }
  .footer-logo {
    display: block;
    margin-bottom: 8px;
  }
  .footer-logo .logo-img {
    height: 24px;
  }
  .footer-tagline {
    font-size: 12px;
    line-height: 1.45;
    max-width: 220px;
    margin: 0;
    color: rgba(255, 255, 255, 0.5);
  }
  .footer-col {
    padding-top: 0;
    border-top: none;
  }
  .footer-connect {
    padding-top: 0;
    border-top: none;
  }
  .footer-links {
    display: block;
  }
  .footer-connect .footer-col-title {
    position: static;
    width: auto;
    height: auto;
    margin: 0 0 8px;
    overflow: visible;
    clip: auto;
    white-space: normal;
    border: 0;
    text-align: start;
  }
  .footer-social {
    justify-content: flex-start;
    gap: 8px;
  }
  .footer-social-link {
    width: 34px;
    height: 34px;
    min-height: 34px;
  }
  .footer-social-link svg {
    width: 15px;
    height: 15px;
  }
  .footer-col-title {
    margin-bottom: 8px;
    font-size: 10px;
    letter-spacing: 0.07em;
  }
  .footer-links li {
    font-size: 13px;
    line-height: 1.35;
  }
  .footer-links li + li {
    margin-top: 0;
  }
  .kidioz-footer .footer-links li a {
    min-height: 28px;
    padding: 1px 0;
  }
  .footer-copy {
    margin-top: 20px;
    padding-top: 12px;
    font-size: 11px;
    line-height: 1.4;
    text-align: center;
  }
}

@media (min-width: 1024px) {
  .products-grid { grid-template-columns: repeat(4,1fr); }
  .cats-grid { grid-template-columns: repeat(5,1fr); }
  .blog-grid { grid-template-columns: repeat(3,1fr); }
  footer.kidioz-footer {
    padding: 32px 24px 16px;
  }
  .footer-inner {
    max-width: 960px;
  }
  .footer-grid {
    grid-template-columns: minmax(200px, 260px) repeat(3, max-content);
    gap: 18px 28px;
  }
  .footer-brand {
    grid-column: auto;
    padding-bottom: 0;
  }
  .footer-tagline { max-width: 240px; }
  .footer-col-title {
    margin-bottom: 9px;
  }
  .footer-copy {
    margin-top: 22px;
    padding-top: 13px;
  }
}

/* ── Auth layout (no nav) ───────────────────────────────── */
.auth-layout-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Auth pages ─────────────────────────────────────────── */
.auth-section {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  position: relative;
  animation: authFadeIn 0.5s ease-out both;
}
@keyframes authFadeIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.auth-card {
  width: 100%;
  max-width: 460px;
  border-radius: 32px;
  padding: 44px 40px 40px;
  background: #ffffff;
  border: 1.5px solid var(--glass-border);
  box-shadow: 0 24px 64px rgba(15,42,68,0.14), 0 2px 8px rgba(43,184,200,0.06);
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  z-index: 1;
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  text-decoration: none;
  transition: opacity 0.15s;
}
.auth-logo:hover { opacity: 0.8; }
.auth-logo .logo-img { height: 40px; }

.auth-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  margin-bottom: 6px;
}

.auth-subtitle {
  font-size: 14px;
  color: #6b7a8d;
  text-align: center;
  margin-bottom: 28px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.auth-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}

.auth-optional {
  font-weight: 400;
  color: #9ca3af;
}

.auth-field > input,
.auth-field .auth-input-wrap input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid rgba(43,184,200,0.25);
  border-radius: 14px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  background: #ffffff;
  color: var(--navy);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.auth-field > input:focus,
.auth-field .auth-input-wrap input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(43,184,200,0.15);
}
.auth-field > input::placeholder,
.auth-field .auth-input-wrap input::placeholder { color: #b0bac4; }

.auth-input-wrap {
  position: relative;
}
.auth-input-wrap input { padding-right: 44px; }
.auth-eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  line-height: 0;
  transition: color 0.2s;
}
.auth-eye:hover { color: var(--teal-dark); }
.auth-eye:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  border-radius: 4px;
}
.auth-eye-icon {
  width: 20px;
  height: 20px;
  display: block;
}

.auth-validation {
  font-size: 12px;
  color: #e05050;
  margin-top: 2px;
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 20px;
}

.auth-row--2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  justify-content: stretch;
  margin-bottom: 0;
}

.auth-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
}
.auth-link:hover { text-decoration: underline; }

.auth-submit {
  width: 100%;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px;
  font-size: 16px;
}
.auth-submit:disabled { opacity: 0.65; cursor: not-allowed; }

.auth-spinner {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

.auth-alert {
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  margin-bottom: 16px;
  font-weight: 500;
}
.auth-alert--error {
  background: rgba(224,80,80,0.1);
  color: #c0392b;
  border: 1px solid rgba(224,80,80,0.3);
}

.auth-switch {
  text-align: center;
  font-size: 14px;
  color: #6b7a8d;
  margin-top: 20px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 16px;
  color: #8a97a8;
  font-size: 13px;
  font-weight: 600;
  text-transform: lowercase;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(107, 122, 141, 0.25);
}

.auth-google-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid rgba(107, 122, 141, 0.35);
  background: #fff;
  color: #1f2a37;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.auth-google-btn:hover {
  background: #f8fafc;
  border-color: rgba(43, 184, 200, 0.45);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}
.auth-google-btn--disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.auth-google-btn--disabled:hover {
  background: #fff;
  border-color: rgba(107, 122, 141, 0.35);
  box-shadow: none;
}
.auth-google-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.danger-title {
  color: #e53e3e !important;
}

.danger-btn {
  width: 100%;
  padding: 13px;
  background: #e53e3e;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}
.danger-btn:hover:not(:disabled) { background: #c53030; }
.danger-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.danger-checklist {
  background: rgba(229,62,62,0.07);
  border: 1px solid rgba(229,62,62,0.25);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.danger-check-item {
  font-size: 13.5px;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-link-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
  font-weight: 600;
  color: var(--teal);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.auth-link-btn:disabled { opacity: 0.5; cursor: default; }

input[autocomplete="one-time-code"] {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 8px;
  text-align: center;
}

.auth-remember {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mid);
  cursor: pointer;
  user-select: none;
}
.auth-remember input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--teal);
  cursor: pointer;
}

.auth-privacy-notice {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mid);
  line-height: 1.45;
  margin: 0 0 12px;
  text-align: center;
}
.auth-privacy-notice .auth-link {
  font-weight: 600;
}

.auth-consent-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.auth-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mid);
  cursor: pointer;
  user-select: none;
  line-height: 1.45;
}
.auth-consent--optional {
  color: var(--text-mid);
}
.auth-consent input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin-top: 2px;
  accent-color: var(--teal);
  cursor: pointer;
  flex-shrink: 0;
}
.auth-consent .auth-link {
  font-weight: 600;
}

.auth-card--signup .auth-field {
  margin-bottom: 12px;
}
.auth-card--signup .auth-submit {
  margin-top: 4px;
}
.auth-consent-group--compact {
  gap: 6px;
  margin-bottom: 8px;
}
.auth-consent--compact {
  font-size: 12px;
  line-height: 1.35;
}
.auth-privacy-notice--compact {
  font-size: 12px;
  line-height: 1.4;
  margin: 0 0 10px;
}

/* ── Nav auth links ─────────────────────────────────────── */
.nav-auth-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 20px;
  transition: background 0.2s;
}
.nav-auth-link:hover { background: rgba(43,184,200,0.1); }

.nav-auth-signup {
  font-size: 13px;
  padding: 8px 18px;
  border-radius: 20px;
}

.nav-account-wrap {
  position: relative;
}
.nav-account-wrap:hover .nav-account-menu { display: flex; }

.nav-account-menu {
  display: none;
  flex-direction: column;
  gap: 10px;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 180px;
  border-radius: 16px;
  padding: 16px;
  z-index: 200;
  box-shadow: 0 10px 30px rgba(15,42,68,0.15);
}

.nav-account-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}

.nav-account-logout {
  background: none;
  border: 2px solid var(--coral);
  color: var(--coral);
  border-radius: 10px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background 0.2s, color 0.2s;
}
.nav-account-logout:hover { background: var(--coral); color: #fff; }

@media (max-width: 768px) {
  .auth-card { padding: 32px 20px 28px; }
  .auth-row--2col { grid-template-columns: 1fr; }
  .nav-auth-link, .nav-auth-signup { display: none; }
  .nav-account-menu {
    position: static;
    box-shadow: none;
    border-radius: 12px;
    padding: 8px 0 0;
    background: transparent;
    border: none;
    min-width: 0;
  }
}

/* ═══════════════════════════════════════════════════════
   Account Section
   ═══════════════════════════════════════════════════════ */

.account-wrap {
  max-width: 1160px;
  margin: 40px auto;
  padding: 0 24px 80px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: start;
  position: relative;
  z-index: 1;
}

/* ── Sidebar ─────────────────────────────────────────── */
.account-sidebar {
  border-radius: 22px;
  padding: 28px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: sticky;
  top: var(--site-header-offset);
}

.acct-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  font-family: 'Plus Jakarta Sans', sans-serif;
  margin: 0 auto 10px;
  box-shadow: 0 6px 18px rgba(43,184,200,0.35);
}

.acct-name {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 3px;
}

.acct-email {
  text-align: center;
  font-size: 11px;
  color: #8a9ab0;
  margin-bottom: 18px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 4px;
}

.acct-divider {
  border: none;
  border-top: 1px solid rgba(15,42,68,0.08);
  margin: 6px 0 10px;
}

.acct-divider--bottom { margin-top: auto; }

.acct-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-mid);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.acct-nav-link svg { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.7; }
.acct-nav-link:hover { background: rgba(43,184,200,0.09); color: var(--teal-dark); }
.acct-nav-link:hover svg, .acct-nav-link.active svg { opacity: 1; }
.acct-nav-link.active {
  background: rgba(43,184,200,0.12);
  color: var(--teal-dark);
  font-weight: 600;
}

.acct-signout {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: #d9534f;
  background: none;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  text-decoration: none;
  transition: background 0.15s;
  font-family: 'Inter', sans-serif;
}
.acct-signout svg { width: 16px; height: 16px; flex-shrink: 0; }
.acct-signout:hover { background: rgba(217,83,79,0.07); }

/* ── Main content area ───────────────────────────────── */
.account-main { min-width: 0; }

/* ── Shared account page utilities ───────────────────── */
.acct-page-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 22px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.acct-section-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin: 28px 0 14px;
  padding-top: 22px;
  border-top: 1px solid rgba(15,42,68,0.07);
  letter-spacing: -0.01em;
}

.account-main .acct-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  text-align: center;
  background: #ffffff;
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  padding: 32px 24px;
}

.acct-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  text-align: center;
}

.account-main .acct-loading p {
  margin: 0;
  font-size: 14px;
  color: #6b7a8d;
  font-weight: 500;
}

.loading-spinner { display: flex; gap: 8px; margin-bottom: 16px; }
.spinner-dot {
  width: 10px;
  height: 10px;
  background: var(--teal, #2BB8C8);
  border-radius: 50%;
  animation: acctBounce 1.4s ease-in-out infinite both;
}
.spinner-dot:nth-child(1) { animation-delay: -0.32s; }
.spinner-dot:nth-child(2) { animation-delay: -0.16s; }
@keyframes acctBounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

.acct-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  text-align: center;
  padding: 36px 28px;
}
.acct-empty--card {
  background: #ffffff;
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: var(--card-shadow);
}
.acct-empty-icon {
  color: rgba(43,184,200,0.35);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(43,184,200,0.08);
}
.acct-empty h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.acct-empty p { color: #6b7a8d; font-size: 14px; margin-bottom: 22px; line-height: 1.55; max-width: 360px; }

.account-main .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--navy);
  color: white;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 8px 20px rgba(15,42,68,0.18);
}
.account-main .btn-primary:hover:not(:disabled) {
  background: var(--teal);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(43,184,200,0.35);
}
.account-main .btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.account-main .nl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  text-decoration: none;
  min-height: 46px;
  padding: 12px 28px;
}
.account-main .nl-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.nl-btn-danger {
  background: #e05050;
  box-shadow: 0 10px 24px rgba(224,80,80,0.28);
}
.nl-btn-danger:hover:not(:disabled) {
  background: #c0392b;
  box-shadow: 0 14px 28px rgba(224,80,80,0.35);
}

.acct-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--teal-dark);
  text-decoration: none;
  transition: color 0.15s, gap 0.15s;
}
.acct-link:hover { color: var(--navy); }

.acct-delete h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #c0392b;
  margin-bottom: 10px;
}
.acct-delete p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 18px;
}
.acct-card h1:not(.acct-page-title) {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}
.acct-card > p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 8px;
}

.account-main .btn-secondary {
  display: inline-block;
  padding: 10px 20px;
  background: #f8f9fa;
  color: var(--navy, #0F2A44);
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.15s;
}
.account-main .btn-secondary:hover {
  background: var(--navy, #0F2A44);
  color: white;
  border-color: var(--navy, #0F2A44);
}

.account-main .btn-cancel {
  color: #666;
  font-size: 14px;
  text-decoration: none;
  font-weight: 600;
}
.account-main .btn-cancel:hover { color: var(--navy, #0F2A44); }

/* Returns flow (shared across MyReturns, ReturnRequest, ReturnDetail) */
.returns-list { display: flex; flex-direction: column; gap: 12px; }

.return-card {
  display: block;
  padding: 18px 22px;
  background: #ffffff;
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.15s, border-color 0.2s;
}
.return-card:hover {
  box-shadow: 0 8px 28px rgba(15,42,68,0.1);
  transform: translateY(-2px);
  border-color: rgba(43,184,200,0.25);
}

.return-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.return-id { font-weight: 700; font-size: 15px; color: var(--navy, #0F2A44); }
.return-subtitle { color: #666; font-size: 14px; margin: 4px 0 0; }
.return-status {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}
.status-pending { background: #FFF3E0; color: #E65100; }
.status-approved { background: #E3F2FD; color: #1565C0; }
.status-received { background: #E8EAF6; color: #283593; }
.status-refunded { background: #E8F5E9; color: #2E7D32; }
.status-rejected { background: #FFEBEE; color: #C62828; }

.return-body { display: flex; gap: 24px; flex-wrap: wrap; }
.return-detail { display: flex; flex-direction: column; gap: 2px; }
.return-detail-label { font-size: 12px; color: #888; }
.return-detail-value { font-size: 14px; font-weight: 600; color: var(--navy, #0F2A44); }
.return-reason-summary { margin-top: 10px; padding-top: 10px; border-top: 1px solid #f0f0f0; }

.return-form {
  background: #ffffff;
  padding: 24px 28px;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--card-shadow);
}
.return-intro { color: #444; font-size: 14px; margin-bottom: 20px; }
.return-line { padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
.return-line-check { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.return-line-name { font-size: 14px; font-weight: 600; color: var(--navy, #0F2A44); }
.return-line-fields {
  margin-top: 10px;
  margin-inline-start: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field-inline { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #666; flex-wrap: wrap; }
.return-qty { width: 70px; padding: 6px 8px; border-radius: 8px; border: 1px solid #ddd; }
.field-hint { color: #aaa; font-size: 12px; }
.return-item-note {
  width: 100%;
  max-width: 400px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 13px;
}
.return-reason-label {
  display: block;
  margin-top: 16px;
  font-weight: 600;
  font-size: 14px;
  color: var(--navy, #0F2A44);
}
.return-select.custom-select {
  width: 100%;
  max-width: 400px;
  margin-top: 8px;
}

.return-select .custom-select__trigger {
  padding: 10px 14px;
  padding-inline-end: 38px;
  border-radius: 8px;
  border-color: #ddd;
  font-weight: 500;
  min-height: 44px;
}
.return-reason {
  width: 100%;
  margin-top: 8px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 14px;
  resize: vertical;
}
.return-error { color: #c62828; font-size: 14px; margin-top: 12px; }
.return-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 20px;
  flex-wrap: wrap;
}

.detail-card {
  background: #ffffff;
  padding: 24px 28px;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--card-shadow);
  margin-bottom: 16px;
}
.status-message {
  padding: 14px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.5;
}
.status-message--rejected { background: #FFEBEE; color: #B71C1C; border: 1px solid #FFCDD2; }
.status-message--approved { background: #E3F2FD; color: #0D47A1; border: 1px solid #BBDEFB; }
.detail-grid { display: flex; gap: 24px; flex-wrap: wrap; }
.detail-item { display: flex; flex-direction: column; gap: 4px; }
.detail-label {
  font-size: 12px;
  color: #888;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.detail-value { font-size: 14px; font-weight: 600; color: var(--navy, #0F2A44); }
.detail-notes { margin-top: 16px; padding-top: 16px; border-top: 1px solid #f0f0f0; }
.detail-notes p {
  margin: 6px 0 0;
  color: #444;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
}
.status-message-content { margin-top: 8px; line-height: 1.7; }
.status-message-content p { margin: 0 0 0.75em; }
.status-message-content p:last-child { margin-bottom: 0; }
.status-message-content ul,
.status-message-content ol { margin: 0.5em 0 0.75em 1.25em; padding: 0; }
.status-message-content li { margin-bottom: 0.35em; }
.status-message-content a { color: inherit; font-weight: 600; text-decoration: underline; }
.status-message-content strong { font-weight: 700; }

.detail-card .acct-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy, #0F2A44);
  margin: 0 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(15,42,68,0.07);
  text-align: start;
}

.detail-card .detail-items-title {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid rgba(15,42,68,0.07);
}

.item-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  gap: 12px;
}
.item-row:last-child { border-bottom: none; }
.item-name { font-weight: 600; color: var(--navy, #0F2A44); font-size: 14px; }
.item-variant { font-size: 13px; color: #666; margin-top: 2px; }
.item-condition { font-size: 12px; color: #888; margin-top: 4px; font-style: italic; }
.item-qty { font-weight: 700; font-size: 14px; color: var(--navy, #0F2A44); white-space: nowrap; }

.required-mark { color: #c62828; font-weight: 500; font-size: 12px; }
.optional-mark { color: #888; font-weight: 400; font-size: 12px; }

.account-main .return-form .section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy, #0F2A44);
  margin: 20px 0 12px;
}
.account-main .return-form .section-title:first-of-type { margin-top: 0; }

/* Minimal error / not-found pages */
.page-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px 60px;
  box-sizing: border-box;
}
.page-wrap h1,
.page-wrap h2,
.page-wrap h3 {
  color: var(--navy, #0F2A44);
  overflow-wrap: break-word;
}
.page-wrap p {
  color: var(--text-mid, #6b7a8d);
  line-height: 1.6;
  overflow-wrap: break-word;
}

.acct-card {
  background: #ffffff;
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  padding: 28px 32px;
  margin-bottom: 22px;
  box-shadow:
    var(--card-shadow),
    0 1px 0 rgba(255,255,255,0.8) inset;
}

.acct-card--danger {
  border: 1.5px solid rgba(229,62,62,0.22);
  background: linear-gradient(180deg, rgba(255,235,235,0.35) 0%, #ffffff 120px);
}

.acct-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(15,42,68,0.07);
  display: flex;
  align-items: center;
  gap: 9px;
}
.acct-card-title svg { width: 18px; height: 18px; color: var(--teal); }

.acct-card-title--danger {
  color: #e53e3e;
}
.acct-card-title--danger svg {
  color: #e53e3e;
}

.acct-card-text {
  font-size: 14px;
  color: var(--text-mid);
}

.acct-card-text--spaced {
  margin-bottom: 16px;
}

/* Dashboard stats */
.acct-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.acct-stat {
  background: #ffffff;
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 22px 16px;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: transform 0.15s, box-shadow 0.2s, border-color 0.2s;
  position: relative;
  overflow: hidden;
}
.acct-stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), rgba(43,184,200,0.35));
  opacity: 0.85;
}
.acct-stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15,42,68,0.08);
  border-color: rgba(43,184,200,0.22);
}

.acct-stat--link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.acct-stat--link:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
.acct-stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--teal-dark);
  font-family: 'Plus Jakarta Sans', sans-serif;
  line-height: 1;
  margin-bottom: 8px;
}
.acct-stat-label {
  font-size: 11.5px;
  color: #8a9ab0;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.acct-quick-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}
.acct-quick-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 22px 14px;
  border-radius: 18px;
  background: rgba(43,184,200,0.04);
  border: 1.5px solid rgba(43,184,200,0.12);
  box-shadow: none;
  text-decoration: none;
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s, background 0.2s;
  text-align: center;
  position: relative;
  z-index: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.acct-quick-link:hover {
  border-color: var(--teal);
  background: rgba(43,184,200,0.08);
  box-shadow: 0 8px 22px rgba(43,184,200,0.14);
  transform: translateY(-2px);
}
.acct-quick-link svg {
  width: 26px;
  height: 26px;
  color: var(--teal);
  padding: 8px;
  border-radius: 12px;
  background: rgba(43,184,200,0.1);
  box-sizing: content-box;
}

/* Skeleton loader */
.acct-skeleton {
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s infinite;
}
@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Forms */
.acct-form { display: flex; flex-direction: column; gap: 18px; }
.acct-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.acct-field { display: flex; flex-direction: column; gap: 6px; }
.acct-field label { font-size: 13px; font-weight: 600; color: var(--navy); }
.acct-field-hint {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: #8a9ab0;
  line-height: 1.4;
  margin: -2px 0 2px;
}
.acct-field-optional { font-weight: 400; color: #8a9ab0; font-size: 12px; }
.acct-field input,
.acct-field select,
.acct-field textarea {
  width: 100%;
  background: #ffffff;
  border: 2px solid rgba(43,184,200,0.22);
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: var(--navy);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.acct-field .auth-input-wrap {
  width: 100%;
  display: block;
  position: relative;
}
.acct-field .auth-input-wrap input {
  padding-right: 44px;
}
.acct-field input:focus,
.acct-field select:focus,
.acct-field textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(43,184,200,0.12);
}
.acct-field input::placeholder { color: #b0bac4; }
.acct-field input:disabled { opacity: 0.55; cursor: not-allowed; }
.acct-validation { font-size: 12px; color: #d9534f; font-weight: 500; }

.acct-alert {
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 13.5px;
  font-weight: 500;
  margin-bottom: 2px;
}
.acct-alert--error  { background: rgba(217,83,79,0.07); color: #b94040; border: 1px solid rgba(217,83,79,0.18); }
.acct-alert--success { background: rgba(43,184,200,0.07); color: var(--teal-dark); border: 1px solid rgba(43,184,200,0.2); }

.acct-form-actions { display: flex; gap: 12px; align-items: center; margin-top: 10px; }

.acct-address-form-panel {
  margin-bottom: 16px;
  padding: 20px;
  background: rgba(43,184,200,0.04);
  border-radius: 14px;
  border: 1.5px solid rgba(43,184,200,0.15);
  box-sizing: border-box;
}
.acct-address-form-panel .acct-form-actions {
  margin-top: 10px;
  margin-bottom: 0;
}

/* Addresses */
.acct-address-list { display: flex; flex-direction: column; gap: 14px; }

.acct-address-card {
  background: #ffffff;
  border: 1.5px solid rgba(15,42,68,0.08);
  box-shadow: var(--card-shadow);
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.acct-address-card--default { border-color: rgba(43,184,200,0.4); background: rgba(43,184,200,0.03); }

.acct-address-info { flex: 1; min-width: 0; }
.acct-address-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--teal-dark);
  background: rgba(43,184,200,0.1);
  padding: 2px 10px;
  border-radius: 999px;
  margin-bottom: 7px;
}
.acct-address-line { font-size: 13.5px; color: var(--text-mid); line-height: 1.65; }

.acct-address-actions { display: flex; gap: 7px; flex-shrink: 0; }

.acct-btn-ghost {
  background: none;
  border: 1.5px solid rgba(15,42,68,0.12);
  border-radius: 9px;
  padding: 6px 13px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-mid);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.15s, color 0.15s;
}
.acct-btn-ghost:hover { border-color: var(--teal); color: var(--teal-dark); }

.acct-btn-danger {
  background: none;
  border: 1.5px solid rgba(217,83,79,0.18);
  border-radius: 9px;
  padding: 6px 13px;
  font-size: 12.5px;
  font-weight: 600;
  color: #d9534f;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background 0.15s;
}
.acct-btn-danger:hover { background: rgba(217,83,79,0.06); }

/* Orders list */
.orders-section { position: relative; }
.orders-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 640px) {
  .orders-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .orders-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.order-card {
  display: flex;
  flex-direction: column;
  padding: 18px 20px;
  background: #ffffff;
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  box-shadow: var(--card-shadow);
  transition: box-shadow 0.2s, transform 0.15s, border-color 0.2s;
  min-height: 100%;
}
.order-card:hover {
  box-shadow: 0 8px 28px rgba(15,42,68,0.1);
  transform: translateY(-2px);
  border-color: rgba(43,184,200,0.22);
}
.order-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 12px; }
.order-number { font-weight: 700; font-size: 15px; color: var(--navy); word-break: break-word; font-family: 'Plus Jakarta Sans', sans-serif; }
.order-status {
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  text-transform: capitalize;
  white-space: nowrap;
  flex-shrink: 0;
  background: rgba(43,184,200,0.1);
  color: var(--teal-dark);
  letter-spacing: 0.02em;
}
.order-status.status-pending { background: #FEF3C7; color: #92400E; }
.order-status.status-confirmed { background: #DBEAFE; color: #1E40AF; }
.order-status.status-packing { background: #E0E7FF; color: #3730A3; }
.order-status.status-shipped { background: #E0F2FE; color: #0369A1; }
.order-status.status-delivered { background: #D1FAE5; color: #047857; }
.order-status.status-cancelled { background: #FEE2E2; color: #B91C1C; }
.order-body { display: flex; gap: 24px; flex-wrap: wrap; }
.order-detail { display: flex; flex-direction: column; gap: 2px; }
.order-detail-label { font-size: 12px; color: #888; }
.order-detail-value { font-size: 14px; font-weight: 600; color: var(--navy, #0F2A44); }
.order-card-link { text-decoration: none; color: inherit; display: block; flex: 1; }
.btn-track {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 11px 14px;
  background: rgba(43,184,200,0.08);
  color: var(--teal-dark);
  border: 1.5px solid rgba(43,184,200,0.25);
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  text-align: center;
  text-decoration: none;
  transition: all 0.15s;
  box-sizing: border-box;
}
.btn-track:hover {
  background: var(--teal);
  color: white;
  border-color: var(--teal);
}
.btn-return {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 11px 14px;
  text-align: center;
  background: #ffffff;
  color: var(--navy);
  border: 1.5px solid rgba(15,42,68,0.14);
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.15s;
}
.btn-return:hover:not(:disabled) {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}
.btn-return:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.return-order-action {
  margin-top: 8px;
}
.return-order-hint {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-muted, rgba(15, 42, 68, 0.62));
  text-align: center;
}
.tracking-actions .tracking-return-action {
  width: 100%;
  margin-top: 4px;
}
.tracking-actions .tracking-return-action .btn-return {
  width: auto;
  min-width: 160px;
}

/* Order tracking page */
.tracking-page {
  max-width: 720px;
}

.tracking-panel {
  background: #ffffff;
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--card-shadow);
  margin-bottom: 16px;
}

.tracking-panel--empty {
  text-align: center;
  padding: 32px 24px;
  color: var(--text-mid);
}

.tracking-panel--empty p {
  margin: 0 0 16px;
}

.tracking-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.tracking-order-number {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.tracking-placed-at {
  margin: 4px 0 0;
  font-size: 13px;
  color: #8a9ab0;
}

.tracking-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0 16px;
  border-bottom: 1px solid #f0f0f0;
  margin-bottom: 16px;
}

.tracking-summary-label {
  font-size: 13px;
  color: #888;
  font-weight: 600;
}

.tracking-summary-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
}

.tracking-page .status-timeline-card {
  background: rgba(43,184,200,0.04);
  border-radius: 16px;
  border: 1px solid rgba(43,184,200,0.12);
  padding: 20px 12px;
  margin-bottom: 20px;
}

.tracking-page .timeline-track {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tracking-page .timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.tracking-page .timeline-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #E2E8F0;
  background: white;
  color: #94A3B8;
}

.tracking-page .timeline-dot svg {
  width: 16px;
  height: 16px;
}

.tracking-page .timeline-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
  animation: confirm-timeline-pulse 1.5s ease-in-out infinite;
}

.tracking-page .timeline-label {
  font-size: 10px;
  font-weight: 600;
  color: #94A3B8;
  text-align: center;
  max-width: 56px;
  line-height: 1.2;
}

.tracking-page .timeline-line {
  flex: 1;
  height: 2px;
  background: #E2E8F0;
  min-width: 12px;
  max-width: 40px;
  margin: 0 2px;
  margin-bottom: 20px;
}

.tracking-page .timeline-step.completed .timeline-dot {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
}

.tracking-page .timeline-step.completed .timeline-label {
  color: var(--navy);
}

.tracking-page .timeline-step.current .timeline-dot {
  border-color: var(--teal);
  color: var(--teal);
}

.tracking-page .timeline-step.current .timeline-label {
  color: var(--teal-dark);
  font-weight: 700;
}

.tracking-page .timeline-line.completed {
  background: var(--teal);
}

.tracking-section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 12px;
}

.tracking-timeline {
  margin-bottom: 20px;
}

.tracking-events {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tracking-event {
  display: flex;
  gap: 14px;
  padding: 0 0 18px;
  position: relative;
}

.tracking-event:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 18px;
  bottom: 0;
  width: 2px;
  background: #E2E8F0;
}

.tracking-event--completed:not(:last-child)::before {
  background: rgba(43,184,200,0.35);
}

.tracking-event-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #E2E8F0;
  background: white;
  flex-shrink: 0;
  margin-top: 2px;
}

.tracking-event--completed .tracking-event-dot {
  background: var(--teal);
  border-color: var(--teal);
}

.tracking-event-status {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}

.tracking-event-desc {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.45;
}

.tracking-event-time {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #8a9ab0;
}

.tracking-shipment {
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}

.shipment-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  font-size: 13px;
}

.shipment-label {
  color: #888;
  font-weight: 600;
}

.shipment-value {
  color: var(--navy);
  font-weight: 600;
  text-align: end;
}

.tracking-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* Wishlist grid */
.wishlist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.wishlist-card {
  background: #ffffff;
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.15s, border-color 0.2s;
}
.wishlist-card:hover {
  box-shadow: 0 8px 28px rgba(15,42,68,0.1);
  transform: translateY(-2px);
  border-color: rgba(43,184,200,0.22);
}
.wishlist-image { display: block; aspect-ratio: 1; overflow: hidden; }
.wishlist-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.wishlist-card:hover .wishlist-image img { transform: scale(1.03); }
.wishlist-info { padding: 14px; }
.wishlist-name { display: block; font-size: 14px; font-weight: 600; color: var(--navy, #0F2A44); text-decoration: none; margin-bottom: 4px; line-height: 1.3; }
.wishlist-name:hover { color: var(--teal, #2BB8C8); }
.wishlist-price { font-size: 14px; font-weight: 700; color: var(--teal, #2BB8C8); margin-bottom: 12px; }
.wishlist-actions { display: flex; align-items: center; gap: 8px; }
.btn-view {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: white;
  padding: 9px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.btn-view:hover { background: var(--teal); transform: translateY(-1px); }
.btn-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1.5px solid rgba(15,42,68,0.1);
  background: white;
  color: #8a9ab0;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-remove:hover { background: rgba(255,138,107,0.12); color: var(--coral); border-color: rgba(255,138,107,0.35); }

/* ── Mobile ──────────────────────────────────────────── */
@media (max-width: 820px) {
  /* Stack sidebar above content; pad-top reserves space for fixed tab bar */
  .account-wrap {
    grid-template-columns: 1fr;
    padding: var(--account-nav-height) 0 70px;
    margin: 0;
    gap: 0;
  }

  html:has(.account-wrap) {
    scroll-padding-top: calc(var(--site-header-offset) + var(--account-nav-height));
  }

  /* Sidebar → fixed horizontal tab bar below site header (reliable vs body overflow-x: clip) */
  .account-sidebar {
    position: fixed;
    top: var(--site-header-offset);
    left: 0;
    right: 0;
    width: 100%;
    z-index: 195;
    border-radius: 0;
    padding: 0 8px;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    border: none;
    border-bottom: 1px solid rgba(15,42,68,0.09);
    background: #ffffff;
    box-shadow: 0 2px 12px rgba(15, 42, 68, 0.08);
    box-sizing: border-box;
    isolation: isolate;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .account-sidebar.glass-bg {
    border: none;
    box-shadow: 0 2px 12px rgba(15, 42, 68, 0.08);
  }
  .account-sidebar::-webkit-scrollbar { display: none; }

  /* Hide profile block on mobile */
  .acct-avatar, .acct-name, .acct-email,
  .acct-divider, .acct-divider--bottom { display: none; }

  /* Nav links → compact underline tabs */
  .acct-nav-link {
    flex-shrink: 0;
    flex-direction: row;
    padding: 14px 14px;
    border-radius: 0;
    font-size: 13px;
    gap: 6px;
    color: #7a8899;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    align-items: center;
  }
  .acct-nav-link:hover  { background: none; color: var(--navy); }
  .acct-nav-link.active {
    background: none;
    color: var(--teal-dark);
    border-bottom-color: var(--teal);
    font-weight: 600;
    box-shadow: none;
  }
  .acct-nav-link svg { opacity: 0.6; }
  .acct-nav-link.active svg { opacity: 1; }

  /* Sign out → compact tab */
  .acct-signout {
    flex-shrink: 0;
    padding: 14px 14px;
    border-radius: 0;
    font-size: 13px;
    gap: 6px;
    white-space: nowrap;
    margin-left: auto;
  }

  /* Main content starts below fixed tab bar — no z-index (prior z-index:1 caused overlap) */
  .account-main {
    padding: 20px 16px 0;
    position: relative;
    z-index: 0;
  }

  /* Cards */
  .acct-card {
    padding: 18px 16px;
    border-radius: 16px;
    margin-bottom: 14px;
  }
  .acct-card-title { font-size: 15px; margin-bottom: 16px; padding-bottom: 12px; }

  /* Forms */
  .acct-form-row { grid-template-columns: 1fr; }
  .acct-form { gap: 14px; }

  /* Stats — 2×2 grid */
  .acct-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .acct-stat { padding: 16px 12px; }
  .acct-stat-value { font-size: 22px; }

  /* Quick links — 3 columns on mobile for even 5-item grid */
  .acct-quick-links { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .acct-quick-link {
    padding: 14px 8px;
    font-size: 11.5px;
    min-height: 72px;
    justify-content: center;
  }
  .acct-quick-link svg { width: 22px; height: 22px; }

  /* Address cards — stack vertically */
  .acct-address-card { flex-direction: column; gap: 12px; }
  .acct-address-actions { justify-content: flex-start; flex-wrap: wrap; }

  /* Form actions — wrap on small screens */
  .acct-form-actions { flex-wrap: wrap; }

  .tracking-page .timeline-label {
    font-size: 9px;
    max-width: 48px;
  }

  .tracking-panel {
    padding: 18px 16px;
  }

  .tracking-page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .tracking-actions {
    flex-direction: column;
  }

  .tracking-actions .btn-secondary,
  .tracking-actions .btn-cancel {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* Shared account page title & returns mobile */
  .acct-page-title { font-size: 20px; margin-bottom: 16px; }
  .return-card,
  .return-form,
  .detail-card { padding: 14px 16px; }
  .return-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .return-status {
    white-space: normal;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
  }
  .return-line-fields { margin-inline-start: 0; }
  .return-select,
  .return-item-note,
  .return-reason,
  .return-qty { max-width: none; font-size: 16px; }
  .return-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .return-actions .btn-primary,
  .return-actions .btn-secondary,
  .return-actions .btn-cancel {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* Account card buttons — full width (Security, notifications, etc.) */
  .acct-card .nl-btn,
  .acct-card--danger .nl-btn,
  .acct-form-actions .nl-btn,
  .acct-form-actions .btn-primary {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
    min-height: 48px;
  }
  .acct-form-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ── Small phones (≤ 480px) ───────────────────────────────── */
@media (max-width: 480px) {
  .hero-caption-stage {
    left: 12px !important;
    bottom: 16px !important;
    right: 12px !important;
    --slide-title-size-min: 17px !important;
    --slide-title-size: 24px !important;
  }
  .hero-caption-stage .slide-eyebrow {
    font-size: 9px !important;
    letter-spacing: 1.2px !important;
    margin-bottom: 5px;
  }
  .hero-caption-stage .slide-eyebrow::before {
    width: 18px;
  }
  .hero-caption-stage .slide-title {
    font-size: clamp(17px, 4.8vw, 24px) !important;
    line-height: 1.2;
  }
  .hero-caption-stage .hero-slide-cta {
    margin-top: 10px;
    padding: 9px 18px !important;
    font-size: 12px !important;
  }
  .age-btn { min-height: 34px; padding: 7px 14px; font-size: 12px; }
}

/* ── Extra-small phones (≤ 420px) ───────────────────────── */
@media (max-width: 420px) {
  .nav-inner {
    padding-inline: max(10px, env(safe-area-inset-left)) max(10px, env(safe-area-inset-right));
    gap: 8px;
  }
  .nav-logo { max-width: 76px; }
  .nav-logo .logo-img { height: 22px; }
  .nav-search-toggle { width: 34px; height: 34px; }
  .nav-icon-btn { width: 34px; height: 34px; }
  .nav-cart-wrap .nav-icon-btn { width: 38px; height: 38px; }
  .nav-signin-link { padding: 5px 6px; font-size: 11px; }
  .nav-signup-btn { padding: 6px 8px; font-size: 10px; }

  .hero {
    padding: 0 0 16px;
  }
  .hero-stage {
    height: min(54vw, 320px);
    min-height: 220px;
    max-height: 320px;
    border-radius: 0;
  }
  .hero-caption-stage {
    left: 10px !important;
    bottom: 14px !important;
    right: 10px !important;
    --slide-title-size-min: 16px !important;
    --slide-title-size: 22px !important;
  }
  .hero-caption-stage .slide-eyebrow {
    font-size: 9px !important;
    letter-spacing: 1.1px !important;
    margin-bottom: 4px;
  }
  .hero-caption-stage .slide-eyebrow::before {
    width: 16px;
  }
  .hero-caption-stage .slide-title {
    font-size: clamp(16px, 4.6vw, 22px) !important;
    letter-spacing: -0.3px;
    line-height: 1.2;
  }
  .hero-caption-stage .hero-slide-cta {
    margin-top: 10px;
    padding: 9px 16px !important;
    font-size: 12px !important;
  }
  .slide-caption { padding: 10px 10px 54px; overflow: hidden; }
  .slide-title {
    font-size: clamp(13px, 4vw, 17px);
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
  }
  .slide-eyebrow { display: none; }
  .hero-fixed-cta { font-size: 12px; padding: 9px 16px; bottom: 14px; }
  .carousel-indicators { margin-top: 10px; }
  .carousel-arrow { width: 28px; height: 28px; font-size: 13px; }

  .auth-card { padding: 28px 16px 24px; border-radius: 20px; }
  .auth-title { font-size: 22px; }
  .auth-card--signup .auth-field { margin-bottom: 10px; gap: 4px; }
  .auth-card--signup .auth-field > input,
  .auth-card--signup .auth-field .auth-input-wrap input { padding: 11px 14px; font-size: 14px; }
  .auth-card--signup .auth-consent-group--compact { margin-bottom: 6px; }
  .auth-card--signup .auth-privacy-notice--compact { margin-bottom: 8px; }

  .newsletter .nl-content { padding: 28px 14px 24px; }

  .acct-stats { grid-template-columns: 1fr 1fr; }
  .acct-quick-links { grid-template-columns: repeat(3, 1fr); }
  .account-main { padding: 14px 12px 0; }
  .acct-card { padding: 16px 13px; }

  .announce-bar { font-size: 11px; padding: 7px 14px; }
  .section-title { font-size: 20px; }

  .acct-page-title { font-size: 18px; }
  .return-form,
  .return-card,
  .detail-card { padding: 12px 14px; }
}

@media (max-width: 768px) {
  .page-wrap {
    padding: max(24px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(32px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  }

  .prod-wishlist {
    width: 40px;
    height: 40px;
  }

  .return-form,
  .return-card,
  .detail-card {
    box-sizing: border-box;
    padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  }
  .return-body { gap: 12px; }
  .return-detail-value,
  .status-message-content { overflow-wrap: break-word; }
  .account-main .btn-primary {
    width: 100%;
    min-height: 48px;
    font-size: 16px;
  }
  .account-main .btn-secondary,
  .account-main .btn-cancel {
    text-align: center;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* ── Order confirmation (confirm-page) — scoped to avoid orders-list .order-card clash */
.confirm-loading,
.confirm-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  text-align: center;
  padding: max(24px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.confirm-error h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--navy, #0F2A44);
  margin-bottom: 8px;
}
.confirm-error p {
  color: #888;
  margin-bottom: 24px;
}
.btn-shop {
  background: var(--navy, #0F2A44);
  color: white;
  padding: 14px 32px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
}

/* Inherits sitewide peach gradient + stars from body / page-main */
.confirm-page {
  padding: 24px 16px 48px;
  max-width: 960px;
  margin: 0 auto;
  text-align: start;
  box-sizing: border-box;
}

.confirm-page .order-header-bar {
  text-align: center;
  margin-bottom: 20px;
}

.confirm-page .order-receipt-logo {
  display: block;
  width: 160px;
  height: auto;
  max-width: 100%;
  margin: 0 auto 16px;
  border: 0;
}

.confirm-page .order-header-bar h1 {
  font-size: 24px;
  font-weight: 800;
  color: var(--navy, #0F2A44);
  margin: 0 0 6px;
  text-align: center;
}

.confirm-page .order-subtitle {
  color: #64748B;
  font-size: 14px;
  margin: 0;
  text-align: center;
}

.confirm-page .status-timeline-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  padding: 24px 16px;
  margin-bottom: 20px;
}

.confirm-page .timeline-track {
  display: flex;
  align-items: center;
  justify-content: center;
}

.confirm-page .timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.confirm-page .timeline-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #E2E8F0;
  background: white;
  color: #94A3B8;
  transition: all 0.3s;
}

.confirm-page .timeline-dot svg {
  width: 16px;
  height: 16px;
}

.confirm-page .timeline-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal, #2BB8C8);
  animation: confirm-timeline-pulse 1.5s ease-in-out infinite;
}

@keyframes confirm-timeline-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

.confirm-page .timeline-label {
  font-size: 11px;
  font-weight: 600;
  color: #94A3B8;
  text-align: center;
  white-space: nowrap;
}

.confirm-page .timeline-line {
  flex: 1;
  height: 2px;
  background: #E2E8F0;
  min-width: 16px;
  max-width: 50px;
  margin: 0 4px;
  margin-bottom: 20px;
  transition: background 0.3s;
}

.confirm-page .timeline-step.completed .timeline-dot {
  background: var(--teal, #2BB8C8);
  border-color: var(--teal, #2BB8C8);
  color: white;
}

.confirm-page .timeline-step.completed .timeline-label {
  color: var(--navy, #0F2A44);
}

.confirm-page .timeline-step.current .timeline-dot {
  border-color: var(--teal, #2BB8C8);
  color: var(--teal, #2BB8C8);
}

.confirm-page .timeline-step.current .timeline-label {
  color: var(--teal, #2BB8C8);
  font-weight: 700;
}

.confirm-page .timeline-line.completed {
  background: var(--teal, #2BB8C8);
}

.confirm-page .order-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  align-items: start;
}

.confirm-page .order-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  margin-bottom: 16px;
  overflow: hidden;
  display: block;
  padding: 0;
  border: none;
  min-height: unset;
}

.confirm-page .order-card:hover {
  transform: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.confirm-page .card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #F1F5F9;
  gap: 12px;
}

.confirm-page .card-header h2 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy, #0F2A44);
  margin: 0;
  text-align: start;
}

.confirm-page .status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  flex-shrink: 0;
  text-align: center;
}

.confirm-page .status-pending { background: #FEF3C7; color: #92400E; }
.confirm-page .status-confirmed { background: #DBEAFE; color: #1E40AF; }
.confirm-page .status-packing { background: #E0E7FF; color: #3730A3; }
.confirm-page .status-shipped { background: #D1FAE5; color: #065F46; }
.confirm-page .status-delivered { background: #D1FAE5; color: #047857; }
.confirm-page .status-cancelled { background: #FEE2E2; color: #991B1B; }

.confirm-page .order-meta {
  padding: 16px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.confirm-page .meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
  text-align: start;
}

.confirm-page .meta-label {
  font-size: 11px;
  color: #94A3B8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: start;
}

.confirm-page .meta-value {
  font-size: 13px;
  color: var(--navy, #0F2A44);
  font-weight: 600;
  text-align: start;
}

.confirm-page .items-list { padding: 12px 20px; }

.confirm-page .item-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: 14px;
  row-gap: 2px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid #F8FAFC;
}

.confirm-page .item-row:last-child { border-bottom: none; }

.confirm-page .item-img-wrap { grid-column: 1; grid-row: 1 / span 2; }

.confirm-page .item-img-wrap img,
.confirm-page .item-img-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  background: #F1F5F9;
}

.confirm-page .item-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: var(--navy, #0F2A44);
}

.confirm-page .item-info {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-width: 0;
  text-align: start;
}

.confirm-page .item-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--navy, #0F2A44);
  margin: 0;
  text-align: start;
}

.confirm-page .item-variant,
.confirm-page .item-qty {
  font-size: 12px;
  color: #94A3B8;
  margin: 2px 0 0;
  text-align: start;
}

.confirm-page .item-price {
  grid-column: 3;
  grid-row: 1;
  font-weight: 700;
  font-size: 14px;
  color: var(--navy, #0F2A44);
  white-space: nowrap;
  align-self: start;
  justify-self: end;
}

.confirm-page .addons-section { padding: 0 20px 16px; }

.confirm-page .addons-section h4 {
  font-size: 12px;
  color: #94A3B8;
  font-weight: 600;
  text-transform: uppercase;
  margin: 0 0 8px;
  text-align: start;
}

.confirm-page .addon-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  font-size: 13px;
  color: #475569;
  padding: 6px 0;
}

.confirm-page .addon-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.confirm-page .addon-img,
.confirm-page .addon-img-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  background: #F1F5F9;
  flex-shrink: 0;
}

.confirm-page .summary-rows { padding: 16px 20px; }

.confirm-page .summary-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 16px;
  align-items: baseline;
  padding: 6px 0;
  font-size: 13px;
  color: #64748B;
}

.confirm-page .summary-row > span:first-child {
  text-align: start;
  min-width: 0;
  word-break: break-word;
}

.confirm-page .summary-row span:last-child {
  font-weight: 600;
  color: var(--navy, #0F2A44);
  white-space: nowrap;
  text-align: end;
  justify-self: end;
}

.confirm-page .summary-total {
  padding-top: 12px;
  margin-top: 8px;
  border-top: 1px solid #F1F5F9;
  font-size: 16px;
  font-weight: 800;
  color: var(--navy, #0F2A44);
}

.confirm-page .shipping-value {
  color: #22C55E !important;
  font-weight: 700;
}

.confirm-page .shipping-info {
  padding: 16px 18px;
  margin: 0 20px 16px;
  border-inline-start: 3px solid var(--teal, #2BB8C8);
  background: rgba(43, 184, 200, 0.06);
  border-start-end-radius: 10px;
  border-end-end-radius: 10px;
  text-align: start;
}

.confirm-page .shipping-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--navy, #0F2A44);
  margin: 0 0 6px;
  text-align: start;
}

.confirm-page .shipping-info p {
  font-size: 13px;
  color: #475569;
  line-height: 1.6;
  margin: 0;
  text-align: start;
}

.confirm-page .shipping-phone {
  margin-top: 8px !important;
  font-weight: 600;
  color: var(--navy, #0F2A44) !important;
}

.confirm-page .order-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  z-index: 2;
}

.receipt-sheet__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(15, 42, 68, 0.08);
  position: relative;
  z-index: 2;
}

.confirm-page .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  background: var(--navy, #0F2A44);
  color: white;
  text-align: center;
  padding: 14px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
  border: none;
  box-sizing: border-box;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.confirm-page .btn-primary:hover {
  background: var(--teal, #2BB8C8);
}

.confirm-page .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  background: #F1F5F9;
  color: var(--navy, #0F2A44);
  text-align: center;
  padding: 14px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s;
  border: none;
  box-sizing: border-box;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.confirm-page .btn-secondary:hover {
  background: #E2E8F0;
}

@media (max-width: 768px) {
  .confirm-page .order-layout { grid-template-columns: 1fr; }
  .confirm-page .timeline-label { font-size: 10px; }
  .confirm-page .timeline-dot { width: 28px; height: 28px; }
  .confirm-page .shipping-info { margin-inline: 16px; }
  .confirm-page .order-meta { grid-template-columns: 1fr; }
  .receipt-hero__success-title {
    font-size: clamp(14px, 4.5vw + 0.2rem, 20px);
    white-space: nowrap;
  }
  .receipt-hero__number { font-size: 20px; }
  .receipt-hero__number--track { font-size: 28px; }
  .track-order-sheet__hero { padding: 18px 14px; }
  .track-order-sheet__section { padding: 12px 14px; }
  .track-order-sheet__actions { padding: 14px; }
  .track-order-landing__card { padding: 28px 20px; }

  .confirm-page--receipt .receipt-sheet {
    padding: 14px 12px calc(20px + env(safe-area-inset-bottom));
  }

  .confirm-page--receipt .receipt-sheet__actions,
  .confirm-page .order-actions {
    padding-bottom: env(safe-area-inset-bottom);
  }

  .track-order-sheet__actions {
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
  }

  .confirm-page--receipt .receipt-key-meta {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px 12px;
  }

  .confirm-page--receipt .status-timeline-card--compact {
    padding: 10px 8px;
  }

  .confirm-page--receipt .status-timeline-card--compact .timeline-dot {
    width: 20px;
    height: 20px;
  }

  .confirm-page--receipt .status-timeline-card--compact .timeline-label {
    font-size: 9px;
  }

  .confirm-page--receipt .status-timeline-card--compact .timeline-line {
    margin-bottom: 14px;
    min-width: 8px;
    max-width: 24px;
  }
}

/* ── Receipt-style order confirmation ── */
.confirm-page--receipt {
  padding: 16px 12px 32px;
}

.confirm-page--receipt .receipt-sheet {
  background: #fffdf8;
  border: 1px solid rgba(15, 42, 68, 0.08);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(15, 42, 68, 0.08);
  padding: 16px 14px 20px;
}

.confirm-page--receipt .receipt-key-meta {
  grid-template-columns: 1fr 1fr;
}

.confirm-page--receipt .order-layout {
  margin-top: 16px;
  gap: 12px;
}

.confirm-page--receipt .order-card {
  margin-bottom: 12px;
  border-radius: 12px;
}

.confirm-page--receipt .card-header {
  padding: 12px 16px;
}

.confirm-page--receipt .items-list {
  padding: 8px 16px;
}

.confirm-page--receipt .item-row {
  padding: 8px 0;
  column-gap: 10px;
}

.confirm-page--receipt .item-img-wrap img,
.confirm-page--receipt .item-img-placeholder {
  width: 44px;
  height: 44px;
}

.confirm-page--receipt .summary-rows {
  padding: 12px 16px;
}

.order-receipt-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(15, 42, 68, 0.06);
  box-shadow: 0 1px 8px rgba(15, 42, 68, 0.04);
  padding: 14px 12px;
  overflow: hidden;
}

.receipt-screenshot-hint {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(43, 184, 200, 0.14) 0%, rgba(15, 42, 68, 0.06) 100%);
  border: 1px solid rgba(43, 184, 200, 0.32);
  color: var(--navy, #0f2a44);
}

.receipt-screenshot-hint--compact {
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 10px;
}

.receipt-screenshot-hint--compact .receipt-screenshot-hint__icon {
  width: 20px;
  height: 20px;
}

.receipt-screenshot-hint--compact .receipt-screenshot-hint__text {
  flex: 1 1 180px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
}

.receipt-screenshot-hint--compact .receipt-download {
  margin-top: 0;
  flex: 0 0 auto;
}

.receipt-screenshot-hint--compact .btn-receipt-download {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 8px;
}

.receipt-screenshot-hint__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  color: var(--teal-dark, #1a9baf);
}

.receipt-screenshot-hint__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.receipt-screenshot-hint__body {
  flex: 1;
  min-width: 0;
}

.receipt-screenshot-hint__text {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  text-align: start;
}

.receipt-download {
  margin-top: 12px;
}

.btn-receipt-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  color: var(--navy, #0f2a44);
  background: transparent;
  border: 1.5px solid var(--navy, #0f2a44);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-receipt-download:hover:not(:disabled) {
  color: var(--teal-dark, #1a9baf);
  border-color: var(--teal, #2bb8c8);
  background: rgba(43, 184, 200, 0.08);
}

.btn-receipt-download:disabled {
  opacity: 0.65;
  cursor: wait;
}

.receipt-download__error {
  margin: 10px 0 0;
}

.receipt-download__error p {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: #b45309;
}

.receipt-download__fallback {
  margin-top: 4px !important;
  font-weight: 500 !important;
  color: #64748b !important;
}

.receipt-key-card {
  margin-bottom: 16px;
  padding: 0;
  overflow: hidden;
}

.receipt-key-block {
  background: rgba(43, 184, 200, 0.04);
  border: 1px solid rgba(43, 184, 200, 0.14);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
}

.receipt-key-meta {
  padding: 10px 12px;
  gap: 8px 12px;
}

.receipt-key-block .receipt-track-link {
  margin: 0;
  padding: 8px 12px;
  border: none;
  border-top: 1px dashed rgba(15, 42, 68, 0.1);
  border-radius: 0;
  background: transparent;
}

.receipt-key-meta .meta-value--total {
  font-size: 16px;
  font-weight: 800;
  color: var(--navy, #0f2a44);
}

.receipt-hero {
  text-align: center;
  margin-bottom: 20px;
}

.receipt-hero--compact {
  margin-bottom: 10px;
}

.receipt-hero__success-title {
  margin: 0 0 10px;
  font-size: clamp(15px, 4.8vw + 0.35rem, 26px);
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
  color: var(--navy, #0f2a44);
  font-family: "Plus Jakarta Sans", sans-serif;
}

.receipt-hero__whatsapp {
  margin: 0 auto 22px;
  max-width: 36em;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
  color: #475569;
}

.receipt-hero__brand {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal, #2bb8c8);
}

.receipt-hero__headline {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 2px;
}

.receipt-hero__eyebrow {
  margin: 12px 0 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal, #2bb8c8);
}

.receipt-hero__number {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  color: var(--navy, #0f2a44);
  font-family: "Plus Jakarta Sans", sans-serif;
  letter-spacing: 0.02em;
}

.receipt-hero__status-title {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  color: #64748b;
}

.receipt-hero__subtitle,
.receipt-hero__placed {
  margin: 0;
  font-size: 13px;
  text-align: center;
  color: #64748b;
}

.receipt-hero__placed,
.tracking-placed-at,
.tracking-event-time {
  direction: ltr;
  unicode-bidi: isolate;
}

.receipt-hero--compact .receipt-hero__badge {
  margin-top: 0;
}

.receipt-hero__badge {
  display: inline-block;
  margin-top: 12px;
}

.status-timeline-card--compact {
  padding: 12px 10px !important;
  margin-bottom: 10px !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  border: 1px solid rgba(15, 42, 68, 0.06);
}

.status-timeline-card--compact .timeline-step {
  gap: 4px;
}

.status-timeline-card--compact .timeline-dot {
  width: 22px;
  height: 22px;
}

.status-timeline-card--compact .timeline-dot svg {
  width: 12px;
  height: 12px;
}

.status-timeline-card--compact .timeline-pulse {
  width: 8px;
  height: 8px;
}

.status-timeline-card--compact .timeline-label {
  font-size: 10px;
}

.status-timeline-card--compact .timeline-line {
  min-width: 10px;
  max-width: 32px;
  margin-bottom: 16px;
}

.receipt-items-compact {
  padding-top: 8px;
  border-top: 1px dashed rgba(15, 42, 68, 0.1);
}

.receipt-item-compact {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0;
  font-size: 12px;
  line-height: 1.35;
}

.receipt-item-compact__name {
  flex: 1;
  min-width: 0;
  color: var(--navy, #0f2a44);
  font-weight: 500;
  text-align: start;
}

.receipt-item-compact__qty {
  color: #94a3b8;
  font-weight: 600;
}

.receipt-item-compact__price {
  flex-shrink: 0;
  font-weight: 700;
  color: var(--navy, #0f2a44);
  white-space: nowrap;
}

.receipt-items-compact__more {
  margin: 4px 0 0;
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  text-align: center;
}

.receipt-divider {
  height: 1px;
  margin: 0 0 20px;
  background: repeating-linear-gradient(
    90deg,
    rgba(15, 42, 68, 0.15) 0,
    rgba(15, 42, 68, 0.15) 6px,
    transparent 6px,
    transparent 12px
  );
}

.receipt-track-link {
  background: rgba(43, 184, 200, 0.06);
  border: 1px solid rgba(43, 184, 200, 0.18);
  border-radius: 14px;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.receipt-track-link__label {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}

.receipt-track-link__row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.receipt-track-link__code {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy, #0f2a44);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.receipt-track-link__code:hover {
  color: var(--teal-dark, #1a9baf);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.receipt-track-link__copy {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--navy, #0f2a44);
  background: #fff;
  color: var(--navy, #0f2a44);
  border-radius: 8px;
  cursor: pointer;
}

.receipt-track-link__copy svg {
  width: 16px;
  height: 16px;
}

.receipt-track-link__copy:hover:not(:disabled) {
  background: var(--navy, #0f2a44);
  color: #fff;
}

.receipt-track-link__copy:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── Public track-order pages ── */
.track-order-page {
  max-width: 640px;
}

.track-order-sheet {
  background: #fffdf8;
  border: 1px solid rgba(15, 42, 68, 0.08);
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(15, 42, 68, 0.08);
  overflow: hidden;
}

.track-order-section-divider {
  border: none;
  border-top: 1px solid rgba(15, 42, 68, 0.08);
  margin: 0;
  width: 100%;
}

.track-order-sheet__hero {
  padding: 20px 16px;
}

.track-order-sheet__section {
  padding: 14px 16px;
  text-align: start;
}

.track-order-sheet__heading {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy, #0f2a44);
  margin: 0 0 12px;
  text-align: start;
}

.track-order-sheet .status-timeline-card,
.track-order-sheet .status-timeline-card--compact,
.track-order-sheet .status-timeline-card--vertical {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.track-order-sheet .track-order-timeline {
  margin-bottom: 0;
}

/* ── Vertical order status timeline (track-order page) ── */
.status-timeline-card--vertical {
  padding: 0;
}

.timeline-track-vertical {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline-step-vertical {
  display: flex;
  gap: 14px;
  align-items: stretch;
}

.timeline-step-vertical__rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 28px;
}

.timeline-step-vertical .timeline-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #e2e8f0;
  background: #fff;
  color: #94a3b8;
  flex-shrink: 0;
  z-index: 1;
}

.timeline-step-vertical .timeline-dot svg {
  width: 14px;
  height: 14px;
}

.timeline-step-vertical .timeline-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal, #2bb8c8);
  animation: confirm-timeline-pulse 1.5s ease-in-out infinite;
}

.timeline-line-vertical {
  flex: 1;
  width: 2px;
  min-height: 12px;
  background: #e2e8f0;
  margin: 4px 0;
}

.timeline-step-vertical__body {
  flex: 1;
  min-width: 0;
  padding-bottom: 16px;
  text-align: start;
}

.timeline-step-vertical:last-child .timeline-step-vertical__body {
  padding-bottom: 0;
}

.timeline-step-vertical__title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #94a3b8;
  line-height: 1.3;
  margin: 0 0 4px;
  text-align: start;
}

.timeline-step-vertical__desc {
  margin: 0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.45;
  text-align: start;
}

.timeline-step-vertical__time {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #8a9ab0;
  direction: ltr;
  text-align: start;
}

.timeline-step-vertical.completed .timeline-dot {
  background: var(--teal, #2bb8c8);
  border-color: var(--teal, #2bb8c8);
  color: #fff;
}

.timeline-step-vertical.completed .timeline-step-vertical__title {
  color: var(--navy, #0f2a44);
}

.timeline-step-vertical.completed .timeline-line-vertical {
  background: var(--teal, #2bb8c8);
}

.timeline-step-vertical.current .timeline-dot {
  border-color: var(--teal, #2bb8c8);
  color: var(--teal, #2bb8c8);
}

.timeline-step-vertical.current .timeline-step-vertical__title {
  color: var(--teal, #2bb8c8);
}

.timeline-step-vertical.current .timeline-line-vertical {
  background: #e2e8f0;
}

.timeline-line-vertical.completed {
  background: var(--teal, #2bb8c8);
}

.track-order-sheet .tracking-shipment,
.track-order-sheet .tracking-events {
  padding: 0;
  margin: 0;
}

.track-order-sheet .summary-rows {
  padding: 0;
}

.track-order-sheet .track-order-shipping {
  margin: 12px 0 0;
  padding-block: 14px;
  padding-inline: 16px;
  border-top: 1px dashed rgba(15, 42, 68, 0.12);
  text-align: start;
}

.track-order-sheet .track-order-shipping p,
.track-order-sheet .track-order-shipping .shipping-name {
  text-align: start;
}

.track-order-sheet__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px;
  border-top: 1px solid rgba(15, 42, 68, 0.08);
  position: relative;
  z-index: 2;
}

.track-order-sheet__actions .btn-secondary,
.track-order-sheet__actions .btn-primary,
.receipt-sheet__actions .btn-secondary,
.receipt-sheet__actions .btn-primary {
  flex: 1;
  min-width: 140px;
  min-height: 48px;
  text-align: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.receipt-hero--track {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-bottom: 0;
  text-align: center;
}

.receipt-hero--track .order-receipt-logo {
  margin-bottom: 12px;
}

.receipt-hero--track .receipt-hero__eyebrow {
  margin: 0 0 10px;
}

.receipt-hero__number--track {
  margin: 0 0 8px;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: 0.03em;
}

.receipt-hero--track .receipt-hero__placed {
  margin: 0 0 16px;
}

.receipt-hero__status-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.receipt-hero--track .receipt-hero__status-title {
  margin: 0;
}

.receipt-hero--track .receipt-hero__badge {
  margin-top: 0;
}

.track-order-landing {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 55vh;
  padding: 32px 16px 48px;
}

.track-order-landing__card {
  width: 100%;
  max-width: 420px;
  background: #fffdf8;
  border: 1px solid rgba(15, 42, 68, 0.08);
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(15, 42, 68, 0.08);
  padding: 36px 28px;
  text-align: center;
}

.track-order-landing__title {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 800;
  color: var(--navy, #0f2a44);
}

.track-order-landing__subtitle {
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 1.5;
  color: #64748b;
}

.track-order-landing__form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: start;
}

.track-order-landing__label {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy, #0f2a44);
}

.track-order-landing__input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d8e0ea;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 16px;
  color: var(--navy, #0f2a44);
  background: #fff;
}

.track-order-landing__input:focus {
  outline: 2px solid rgba(43, 184, 200, 0.35);
  border-color: var(--teal, #2bb8c8);
}

.track-order-landing__submit {
  margin-top: 8px;
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: var(--navy, #0f2a44);
  cursor: pointer;
}

.track-order-landing__submit:hover {
  background: #1a3d5c;
}

.track-order-page .tracking-events {
  list-style: none;
}

@media (max-width: 480px) {
  .timeline-step-vertical {
    gap: 10px;
  }

  .timeline-step-vertical__rail {
    width: 24px;
  }

  .timeline-step-vertical .timeline-dot {
    width: 24px;
    height: 24px;
  }

  .timeline-step-vertical .timeline-dot svg {
    width: 12px;
    height: 12px;
  }

  .timeline-step-vertical__title {
    font-size: 14px;
  }

  .timeline-step-vertical__desc {
    font-size: 12px;
  }

  .timeline-step-vertical__time {
    font-size: 11px;
  }
}


/* Google Places autocomplete dropdown — must sit above checkout cards and sticky summary */
.pac-container,
.mmz-places-dropdown {
  z-index: 10000 !important;
}

.mmz-places-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(15, 42, 68, 0.12);
  max-height: 240px;
  overflow-y: auto;
}

.mmz-places-item {
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.4;
  color: #333;
  cursor: pointer;
}

.mmz-places-item:hover,
.mmz-places-item:focus {
  background: #f0f8fa;
}

.social-proof-toast {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 9000;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: min(360px, calc(100vw - 32px));
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(15, 42, 68, 0.08);
  box-shadow: 0 8px 24px rgba(15, 42, 68, 0.12);
  animation: social-proof-in 0.35s ease;
}

.social-proof-toast__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--navy, #0f2a44);
}

.social-proof-toast__dismiss {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: #888;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}

.product-viewer-count {
  margin: 8px 0 12px;
  font-size: 13px;
  color: var(--text-mid, #5a6a7a);
}

@keyframes social-proof-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .social-proof-toast { animation: none; }
}

.customer-notif-toast {
  position: fixed;
  right: 16px;
  top: 16px;
  z-index: 9100;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: min(380px, calc(100vw - 32px));
  padding: 14px 16px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(15, 42, 68, 0.1);
  box-shadow: 0 8px 24px rgba(15, 42, 68, 0.14);
  animation: social-proof-in 0.35s ease;
}

.customer-notif-toast__body {
  flex: 1;
  min-width: 0;
}

.customer-notif-toast__title {
  display: block;
  font-size: 14px;
  color: var(--navy, #0f2a44);
}

.customer-notif-toast__message {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-mid, #5a6a7a);
}

.customer-notif-toast__action {
  flex-shrink: 0;
  align-self: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy, #0f2a44);
  text-decoration: underline;
}

.customer-notif-toast__dismiss {
  flex-shrink: 0;
  border: none;
  background: transparent;
  color: #888;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}

@media (prefers-reduced-motion: reduce) {
  .customer-notif-toast { animation: none; }
}

/* PWA bottom prompts — shared across storefront routes */
.mmz-bottom-prompt {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 8490;
  padding: 12px max(16px, env(safe-area-inset-left))
    max(12px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-right));
  background: #fff;
  border-top: 1px solid rgba(43, 184, 200, 0.2);
  box-shadow: 0 -4px 20px rgba(15, 42, 68, 0.1);
}

.mmz-bottom-prompt--install {
  z-index: 8495;
}

.mmz-bottom-prompt__dismiss {
  position: absolute;
  top: 8px;
  right: max(12px, env(safe-area-inset-right));
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #888;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.mmz-bottom-prompt__dismiss:hover,
.mmz-bottom-prompt__dismiss:focus-visible {
  color: var(--navy, #0f2a44);
  background: rgba(43, 184, 200, 0.1);
  outline: none;
}

.mmz-bottom-prompt__inner {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding-right: 24px;
}

.mmz-bottom-prompt__lead {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
  color: var(--navy, #0f2a44);
  opacity: 0.88;
}

.mmz-bottom-prompt__hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
  color: var(--navy, #0f2a44);
  opacity: 0.65;
}

.mmz-bottom-prompt__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.mmz-bottom-prompt__actions .nl-btn {
  flex: 1 1 auto;
  min-width: 120px;
  margin: 0;
}

.mmz-bottom-prompt__steps {
  text-align: center;
}

.mmz-bottom-prompt__steps-title {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy, #0f2a44);
}

.mmz-bottom-prompt__steps-list {
  margin: 0;
  padding: 0 0 0 1.25rem;
  font-size: 12px;
  line-height: 1.5;
  color: var(--navy, #0f2a44);
  opacity: 0.82;
  text-align: left;
  display: inline-block;
}

body.mmz-notif-prompt-active .page-main {
  padding-bottom: calc(var(--mmz-notif-prompt-height, 120px) + env(safe-area-inset-bottom, 0px));
}

body.mmz-pwa-install-prompt-active .page-main {
  padding-bottom: calc(var(--mmz-pwa-install-prompt-height, 120px) + env(safe-area-inset-bottom, 0px));
}

body.mmz-battery-prompt-active .page-main {
  padding-bottom: calc(var(--mmz-battery-prompt-height, 120px) + env(safe-area-inset-bottom, 0px));
}

body.mmz-notif-prompt-active .social-proof-toast {
  bottom: calc(var(--mmz-notif-prompt-height, 120px) + 12px);
}

body.mmz-pwa-install-prompt-active .social-proof-toast {
  bottom: calc(var(--mmz-pwa-install-prompt-height, 120px) + 12px);
}

body.mmz-battery-prompt-active .social-proof-toast {
  bottom: calc(var(--mmz-battery-prompt-height, 120px) + 12px);
}

@media (min-width: 769px) {
  .mmz-bottom-prompt {
    padding: 16px max(24px, env(safe-area-inset-left))
      max(16px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-right));
  }

  .mmz-bottom-prompt__inner {
    max-width: 560px;
    gap: 12px;
  }

  .mmz-bottom-prompt__lead {
    font-size: 14px;
  }
}
