/* ═══════════════════════════════════════════
   RESPONSIVE SYSTEM — Single Authority
   Loaded last — cascade handles specificity
   No !important — source order wins
   ═══════════════════════════════════════════ */

/* ── UNIVERSAL: hide mobile-only elements on desktop ── */
.mobile-hamburger,
.mobile-search-btn,
.filter-toggle-btn,
.mobile-footer-col,
.pdp-sticky-footer { display: none; }

/* ── MOBILE NAV DRAWER (Full-Screen Premium)
      Unconditional so the compact-header band (769-920px) can use it too;
      hidden while closed via opacity / translateX, not display:none ── */
.mobile-nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
  }
  .mobile-nav-overlay.open {
    opacity: 1;
    pointer-events: all;
  }

  .mobile-nav-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 85%;
    max-width: 340px;
    height: 100dvh;
    z-index: 301;
    background: #fff;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.45s cubic-bezier(0.22,1,0.36,1);
    box-shadow: 4px 0 40px rgba(0,0,0,0.08);
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .mobile-nav-drawer.open {
    transform: translateX(0);
  }

  .mobile-nav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    flex-shrink: 0;
  }
  .mobile-nav-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 300;
    letter-spacing: 0.2em;
    color: #111;
    text-transform: uppercase;
  }
  .mobile-nav-logo em {
    font-style: normal;
    color: #E45B91;
  }
  .mobile-nav-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,0.04);
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
  }
  .mobile-nav-close:active {
    background: rgba(0,0,0,0.08);
    transform: scale(0.92);
  }

  .mobile-nav-scroll {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-nav-body {
    padding: 12px 0;
  }
  .mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 400;
    color: #333;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    border-left: 3px solid transparent;
  }
  .mobile-nav-link:active {
    background: rgba(242,154,191,0.06);
    color: #E45B91;
    padding-left: 24px;
    border-left-color: #E45B91;
  }
  .mobile-nav-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
  }

  .mobile-nav-divider {
    height: 1px;
    background: rgba(0,0,0,0.05);
    margin: 6px 20px;
  }

  .mobile-nav-social {
    display: flex;
    gap: 12px;
    padding: 16px 20px 24px;
    border-top: 1px solid rgba(0,0,0,0.05);
    flex-shrink: 0;
  }
  .mobile-nav-social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.06);
    cursor: pointer;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
  }
  .mobile-nav-social-btn:active {
    background: rgba(242,154,191,0.08);
    color: #E45B91;
    border-color: rgba(242,154,191,0.2);
    transform: scale(0.92);
  }

  /* ── MOBILE SEARCH OVERLAY ── */
  .mobile-search-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 250;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 16px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.06);
    transform: translateY(-100%);
    transition: transform 0.35s cubic-bezier(0.22,1,0.36,1);
  }
  .mobile-search-overlay.open {
    transform: translateY(0);
  }
  .mobile-search-overlay.open + .mobile-hero {
    margin-top: 60px;
  }
  .mobile-search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0,0,0,0.04);
    border-radius: 12px;
    padding: 0 12px;
  }
  .mobile-search-icon {
    display: flex;
    align-items: center;
    color: var(--ash);
    flex-shrink: 0;
  }
  .mobile-search-icon svg {
    display: block;
  }
  .mobile-search-input {
    flex: 1;
    height: 44px;
    border: none;
    background: transparent;
    font-size: 14px;
    font-family: 'Jost', sans-serif;
    color: #111;
    outline: none;
  }
  .mobile-search-input::placeholder {
    color: var(--ash);
  }
  .mobile-search-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,0.03);
    border: none;
    font-size: 15px;
    cursor: pointer;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
  }
  .mobile-search-close:active {
    background: rgba(0,0,0,0.08);
    transform: scale(0.92);
  }

/* ── COMPACT HEADER BAND (narrow desktop windows + portrait tablets 769-920px):
      desktop nav+search input overflow the viewport here; switch to the
      hamburger + search-icon header (same pattern as the ≤768px header) ── */
/* Width-only band must NOT collapse the desktop nav for non-touch/mouse
   pointers (a real PC with a ~769-920px window would otherwise lose the nav
   entirely — no desktop nav AND no hamburger). Scoped to touch devices only. */
@media (any-pointer: coarse) and (min-width: 769px) and (max-width: 920px) {
  .header-nav,
  header .search-wrapper { display: none; }
  .mobile-hamburger,
  .mobile-search-btn { display: flex; }
  header#siteHeader { padding: 0 20px; gap: 6px; justify-content: flex-start; }
  .mobile-hamburger {
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 8px;
    z-index: 5;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 10px;
    transition: background 0.2s ease;
  }
  .mobile-hamburger span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
    transform-origin: center;
  }
  .mobile-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .mobile-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .mobile-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  header .header-logo-img { height: 46px; flex-shrink: 0; }
  header .header-actions { margin-left: auto; }
}

/* ── PREMIUM FILTER CHIP ── */
.premium-filter-chip {
    display: inline-flex;
    align-items: center;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    color: #333333;
    margin: 4px;
    transition: background 0.2s ease;
}
.premium-filter-chip:hover { background: #eeeeee; }
.chip-close-btn {
    background: none;
    border: none;
    color: #999999;
    font-size: 16px;
    line-height: 1;
    margin-left: 8px;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}
.chip-close-btn:hover { color: #333333; }

/* ── CART TIMER BADGE ── */
.cart-timer-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #f0f9ff;
    color: #00838f;
    border: 1px solid #b2ebf2;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
    width: 100%;
    box-sizing: border-box;
}
.cart-timer-badge strong {
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* ── CART FOOT STICKY ── */
.cart-foot {
    background: #ffffff;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.06);
}

/* Also hide checkout inline footer links on desktop */
#view-checkout .mobile-footer-col { display: none; }

/* ═══════════════════════════════════════════
   TABLET LANDSCAPE (≤1024px)
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .product-cat { display: none !important; }
  .product-name {
    font-size: 17px;
    font-weight: 600;
    color: #000000;
  }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
  /* Center-align the footer brand block on tablets — matches phone UX.
     Reuses the phone's center-alignment pattern (text-align + justify-content)
     so the title, tagline, social icons, and contact line all center together.
     Applied at the tablet breakpoint as a reliable width-based fallback,
     since pointer-based media queries can be inconsistent across tablets. */
  .footer-brand-col { text-align: center; }
  .footer-social { justify-content: center; }
  .footer-contact-row { text-align: center; }
  .occasion-grid { grid-template-columns: repeat(3, 1fr); }
  .admin-stat-grid { grid-template-columns: 1fr 1fr; }
  .shop-layout { grid-template-columns: 1fr; gap: 32px; }
  .checkout-layout { grid-template-columns: 1fr; }
}

/* ── MOBILE HERO (banner) ──
   Unconditional so ALL trigger contexts can use it: ≤768px width (phones +
   small tablets), any-width touch-primary devices (tablets in landscape),
   and fine-pointer desktops (now 16/9 — the robot hero was removed).
   It is no longer hidden on desktop. */
/* ── MOBILE HERO ── */
.mobile-hero {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    min-height: 340px;
    max-height: 640px;
    overflow: hidden;
    border-radius: 0 0 28px 28px;
    background: var(--primary-bg);
}
.mobile-hero-track { position: relative; width: 100%; height: 100%; }
.mobile-hero-slide {
    position: absolute; inset: 0;
    opacity: 0; z-index: 1;
    transition: opacity 0.8s cubic-bezier(0.65,0,0.35,1);
    display: flex; align-items: center; justify-content: center;
}
.mobile-hero-slide.active { opacity: 1; z-index: 2; }
.mobile-hero-picture {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    display: block;
}
.mobile-hero-slide img,
.mobile-hero-img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; object-position: center;
    display: block;
}
.mobile-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.12) 30%, rgba(0,0,0,0.60) 100%);
}
.mobile-hero-content {
    position: relative; z-index: 3;
    text-align: center; padding: 0 32px;
    max-width: 400px;
    transform: translateY(16px);
    transition: transform 0.8s cubic-bezier(0.65,0,0.35,1) 0.25s;
}
.mobile-hero-slide.active .mobile-hero-content { transform: translateY(0); }
.mobile-hero-eyebrow {
    font-size: 10px; letter-spacing: 0.36em;
    text-transform: uppercase; color: var(--accent);
    margin-bottom: 12px; font-weight: 500;
}
.mobile-hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(34px, 10vw, 44px);
    font-weight: 300; color: white;
    line-height: 1.05; margin-bottom: 14px;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 24px rgba(0,0,0,0.3);
}
.mobile-hero-sub {
    font-size: 13px; color: rgba(255,255,255,0.7);
    line-height: 1.65; margin-bottom: 24px; font-weight: 300;
}
.mobile-hero-cta {
  position: absolute;
  top: var(--m-top, 75%);
  left: var(--m-left, 6%);
  width: var(--m-w, auto);
  height: var(--m-h, auto);
  background: var(--m-bg, var(--accent));
  color: var(--m-c, #ffffff);
  font-size: var(--m-fs, 14px);
  border: none;
  border-radius: 8px;
  font-weight: bold;
  z-index: 10;
  cursor: pointer;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: 'Jost', sans-serif;
  letter-spacing: 0.05em;
  white-space: nowrap;
  max-width: calc(100% - 24px);
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 18px rgba(0,0,0,0.18);
  min-height: 38px;
  padding: 0 20px;
}
.mobile-hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0,0,0,0.25);
  opacity: 0.98;
}
.mobile-hero-cta:active {
  transform: scale(0.97);
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.hero-cta-label-mobile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
.hero-cta-label-desktop {
  display: none;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
.hero-content-mobile {
  display: flex;
}
.hero-content-desktop {
  display: none;
}

@media (min-width: 768px) and (min-height: 501px) {
  .hero-cta-label-mobile { display: none !important; }
  .hero-cta-label-desktop { display: inline-flex !important; align-items: center; justify-content: center; }
  .hero-content-mobile { display: none !important; }
  .hero-content-desktop { display: flex !important; }
}

@media (orientation: landscape) and (max-height: 500px) {
  .hero-cta-label-desktop { display: none !important; }
  .hero-cta-label-mobile { display: inline-flex !important; align-items: center; justify-content: center; }
  .hero-content-desktop { display: none !important; }
  .hero-content-mobile { display: flex !important; }
}

.mobile-hero-pagination {
    position: absolute; bottom: 20px; left: 50%;
    transform: translateX(-50%); z-index: 4;
    display: flex; gap: 7px;
}
.mobile-hero-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: rgba(255,255,255,0.3); cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
    border: none; padding: 0;
}
.mobile-hero-dot.active {
    width: 26px; border-radius: 3px; background: white;
}

/* ── TABLETS & ALL TOUCH DEVICES (any size, portrait AND landscape) ──
   Touch-primary devices always get the banner hero. The deciding signal is
   *any* coarse pointer (a touchscreen) being present — `any-pointer: coarse`
   — NOT the primary pointer (which is `fine` on hybrids like the Microsoft
   Surface where a trackpad/keyboard is attached, and unreliable across
   browsers). This is the W3C-recommended way to detect a touchscreen at any
   size/orientation, independent of screen width:
     - Phones/tablets: any-pointer:coarse = true (touchscreen)  -> banner
     - Surface/hybrid/2-in-1 (trackpad attached): coarse present -> banner
     - Foldables both states: coarse present                     -> banner
     - Desktop/laptop with NO touchscreen: coarse absent         -> banner (16/9)
   Width alone must NEVER decide the hero. */
@media (any-pointer: coarse) {
  .mobile-hero { display: block; width: 100%; }
}

/* ── SINGLE SOURCE OF TRUTH: TOUCH DEVICES (ANY width) ──
   html.touch-device is set once, early, from `any-pointer: coarse` (see the
   inline <head> script). Every piece of mobile CHROME — header/nav AND the
   cart drawer — reads off this ONE class so a touch device renders the
   mobile bottom-sheet cart + hamburger nav at ANY screen width (iPad Mini,
   iPad Air, iPad Pro 11/12.9, Surface Pro 7, Galaxy Tab S4, phones,
   foldables, hybrids). Genuine mouse/trackpad desktops have .mouse-device
   and keep the desktop side-panel cart + full nav bar, unchanged by width. */
html.touch-device .header-nav,
html.touch-device header .search-wrapper,
html.touch-device .desktop-only {
  display: none;
}
/* ── HEADER LAYOUT: keyed to the SINGLE-SOURCE-OF-TRUTH CLASS (html.touch-device)
   so ANY touch device (phone OR tablet, at ANY width) forces the phone reference
   layout: hamburger → logo (tight, gap 6px) → actions pushed right. This is
   deliberately independent of the raw `@media (any-pointer: coarse)` query that
   the tablet block (below) relies on — on some real devices the media query and
   the JS-detected class can diverge, and if they do the header must STILL break
   to the correct left-aligned/tight logo. Specificity (0,1,2) beats the desktop
   base rule header#siteHeader{justify-content:space-between} (0,1,1). */
html.touch-device header#siteHeader {
  justify-content: flex-start;
  gap: 6px;
}
html.touch-device header .header-logo-img {
  position: static;
  transform: none;
  flex-shrink: 0;
}
html.touch-device header .header-actions {
  margin-left: auto;
}
html.touch-device .mobile-hamburger,
html.touch-device .mobile-search-btn {
  display: flex;
}
html.touch-device .mobile-hamburger {
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 8px;
  z-index: 5;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 10px;
  transition: background 0.2s ease;
}
html.touch-device .mobile-hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
  transform-origin: center;
}
html.touch-device .mobile-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
html.touch-device .mobile-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
html.touch-device .mobile-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Cart drawer: full-width bottom-anchored sheet on EVERY touch device,
   regardless of width — never the narrow desktop side-panel.
   Uses width:100% (not 100vw) because 100vw on Android includes scrollbar
   width, pushing the button past the visible right edge. For position:fixed,
   100% equals the viewport client width (no scrollbar).
   Height uses the live --dvh (1% of visualViewport.height, set by
   setViewportUnit() in index.html and re-computed on every cart open) so the
   sheet is exactly the CURRENT visible area — never the large 100vh layout
   viewport. Raw 100vh makes a position:fixed top:0 sheet extend below the
   visible fold while a mobile URL bar / gesture bar is shown, pushing the
   footer (and the Proceed CTA below the total) off-screen and unreachable
   because the body is locked while the cart is open. calc(var(--dvh,1dvh)*100)
   degrades to native 100dvh where the var is unset, and to 100vh only where
   neither dvh nor JS is available.
   cart-foot respects safe-area-inset-bottom so the Proceed button is
   above the gesture/home-indicator bar on modern phones, and is flex-shrink:0
   so the CTA can never be compressed out of the sheet. */
html.touch-device .cart-sidebar {
  width: 100%;
  right: -100%;
  left: auto;
  height: calc(var(--dvh, 1dvh) * 100);
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 0;
  box-shadow: none;
}
html.touch-device .cart-sidebar.open {
  right: 0;
  left: auto;
}
html.touch-device .cart-foot {
  flex-shrink: 0;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}

/* Ultra-short viewports (landscape phones, ~320-440px tall): the cart head
   plus foot alone exceed the visible height, which again pushes the Proceed
   CTA below the fold. Compress shelf spacing so the pinned footer and its CTA
   fit without scrolling; the sheet's own overflow-y:auto above remains the
   final guard for any device too short even for this compressed layout. */
@media (max-width: 998px) and (max-height: 440px) {
  html.touch-device .cart-head { padding: 10px 16px; }
  html.touch-device .cart-foot { padding: 10px 16px calc(16px + env(safe-area-inset-bottom, 0px)); }
  html.touch-device .cart-items { padding: 8px 16px; }
  html.touch-device .cart-foot .coupon-row { margin-bottom: 8px; }
  html.touch-device .cart-foot .cart-suggestion { margin-bottom: 8px; padding: 8px 12px; }
  html.touch-device .cart-foot .coupon-toggle { margin-bottom: 6px; }
  html.touch-device .cart-foot .cart-subtotal { margin-bottom: 4px; }
  html.touch-device .cart-foot .cart-total { margin-bottom: 8px; padding-top: 8px; }
}

/* ═══════════════════════════════════════════
   TABLET PORTRAIT & MOBILE (≤768px)
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
  /* ── HIDE DESKTOP-ONLY ELEMENTS ──
     NOTE: #hero-root / .mobile-hero display is NOT decided here — hero
     selection is done by input modality ((any-pointer: coarse)) above, so a
     narrow mouse-driven window still correctly keeps the desktop hero. */
  .header-nav,
  header .search-wrapper,
  .desktop-only { display: none; }
  .mobile-footer-col { display: block; }
  .mobile-hamburger { display: flex; }
  .mobile-search-btn { display: flex; }

  /* ── ANNOUNCEMENT BAR ── */
  .announcement-bar { padding: 7px 0; }
  .announcement-track { gap: 40px; }
  .announcement-track span { font-size: 9px; letter-spacing: 0.18em; }

  /* ── HEADER ── */
header#siteHeader {
    height: 72px;
    padding: 0 16px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    box-shadow: 0 1px 20px rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
  }
  #siteHeader.scrolled { height: 66px; box-shadow: 0 2px 24px rgba(0,0,0,0.07); }

  .mobile-hamburger {
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 8px;
    z-index: 5;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 10px;
    transition: background 0.2s ease;
  }
  .mobile-hamburger:active {
    background: rgba(0,0,0,0.04);
  }
  .mobile-hamburger span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
    transform-origin: center;
  }
  .mobile-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .mobile-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .mobile-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

header .header-logo-img {
    height: 42px;
    flex-shrink: 0;
  }

  header .header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0;
  }

  header .header-btn {
    font-size: 18px;
    padding: 10px;
    background: none;
    cursor: pointer;
    color: var(--text-primary);
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: none;
    border-radius: 10px;
    transition: all 0.2s ease;
  }
  header .header-btn:active {
    background: rgba(0,0,0,0.04);
    transform: scale(0.94);
  }
  header .header-btn svg {
    display: block;
  }

  header .badge {
    font-size: 7px;
    width: 16px;
    height: 16px;
    top: 5px;
    right: 6px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(242,154,191,0.3);
  }

  /* ── SECTION SPACING ── */
  .section-dark > div:first-child { padding: 0 20px !important; }
  .section-header { gap: 12px; flex-wrap: wrap; }
  .section-title { font-size: clamp(26px, 7vw, 32px); letter-spacing: -0.01em; }
  .section-eyebrow { font-size: 8px; margin-bottom: 8px; padding-left: 16px; }
  .section-eyebrow::before { width: 8px; }
  .section-link { font-size: 9px; }

  /* ── PRODUCT GRID ── */
  .product-grid, .product-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--gap-grid);
  }

  /* ── PRODUCT CARDS (Luxury Edition) ── */
  .product-card {
    border-radius: 20px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02), 0 4px 16px rgba(0,0,0,0.04);
    transition: transform 0.4s cubic-bezier(0.22,1,0.36,1), box-shadow 0.4s ease;
    touch-action: manipulation;
  }
  .product-card:active {
    transform: scale(0.97);
    box-shadow: 0 1px 3px rgba(0,0,0,0.02), 0 2px 8px rgba(0,0,0,0.03);
  }

  .product-card-img-wrap {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #F4F4F5;
  }
  .product-card-img-wrap img,
  .product-card-img-wrap .product-img-el {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.22,1,0.36,1);
    display: block;
  }
.product-card:active:not(:has(.wishlist-icon:active)):not(:has(.pdp-cta-cart:active)) .product-card-img-wrap img,
  .product-card:active:not(:has(.wishlist-icon:active)):not(:has(.pdp-cta-cart:active)) .product-card-img-wrap .product-img-el {
    transform: scale(1.06);
  }

  .product-card-body {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
  }

  .product-cat { display: none !important; }
  .product-name {
    font-family: 'Lora', serif;
    font-size: 17px;
    font-weight: 600;
    color: #000000;
    line-height: 1.2;
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
  }

  .product-stars {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-bottom: 2px;
    color: #E45B91;
    font-size: 8px;
    line-height: 1;
  }
  .product-stars span {
    font-size: 7px;
    color: var(--ash);
    margin-left: 1px;
  }

  .product-price {
    font-size: 15px;
    font-weight: 600;
    color: #111;
    letter-spacing: -0.01em;
    line-height: 1.2;
  }
  .product-price-old {
    font-size: 10px;
    color: var(--ash);
    text-decoration: line-through;
    margin-left: 5px;
    font-weight: 400;
  }

  .product-card-actions {
    margin-top: auto;
  }
  .product-card-actions .pdp-cta-cart {
    flex: 1;
    width: 100%;
    height: 44px;
    border-radius: 12px;
    font-size: 10px;
    -webkit-tap-highlight-color: transparent;
  }

  .wishlist-icon {
    width: 28px;
    height: 28px;
    font-size: 11px;
    top: 7px;
    right: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    z-index: 5;
    cursor: pointer;
    transition: transform 0.25s ease;
    color: #111;
  }
  .wishlist-icon:active {
    transform: scale(0.88);
  }


  .product-badge {
    font-size: 9px;
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 5px 14px;
    background: #FF8A84;
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-md);
    line-height: 1.3;
    width: fit-content;
    max-width: 100%;
    word-break: keep-all;
    white-space: nowrap;
  }
  .discount-badge {
    font-size: 9px;
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 5px 14px;
    background: var(--noir);
    color: var(--white);
    border-radius: var(--radius-md);
    line-height: 1.3;
    width: fit-content;
    max-width: 100%;
    word-break: keep-all;
    white-space: nowrap;
  }
  .badge-new { background: var(--noir); color: var(--white); }
  .badge-sale { background: #E45B91; color: var(--white); }
  .badge-low { background: rgba(63,40,84,0.75); border: 1px solid rgba(255,100,80,0.4); color: rgba(255,160,140,0.9); }
  .product-badges {
    position: absolute;
    top: 7px;
    left: 7px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    z-index: 2;
    pointer-events: none;
    max-width: calc(100% - 14px);
  }

  /* ── OCCASIONS ── */
  .occasion-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .occasion-card {
    border-radius: 16px; padding: 20px 14px;
    min-height: 170px;
    display: flex; align-items: center; justify-content: center;
    aspect-ratio: auto;
    box-shadow: 0 2px 16px rgba(0,0,0,0.12);
    transition: transform 0.25s ease;
  }
  .occasion-card:active { transform: scale(0.97); }
  .occasion-card-content {
    position: relative; z-index: 2;
    display: flex; flex-direction: column;
    align-items: center; text-align: center;
  }
  .occasion-emoji { font-size: 28px; margin-bottom: 6px; }
  .occasion-name { font-size: 13px; font-weight: 600; letter-spacing: 0.02em; }
  .occasion-count { font-size: 10px; margin-top: 2px; opacity: 0.75; }

  /* ── OCCASIONS (homepage section visible on mobile; scroll-row,
       card sizing, and arrow styling live in components.css
       @media (max-width:1024px) block; the dedicated occasions
       page keeps its 2-col grid via .occasion-grid below) ── */

  /* ── WHY CHOOSE US ── */
  .ingredients-grid { grid-template-columns: 1fr; }
  .ingredient-card {
    padding: 28px 20px;
    border-right: none;
    border-bottom: 1px solid var(--glass-border);
  }
  .ingredient-card:last-child { border-bottom: none; }
  .ingredient-num { font-size: 8px; margin-bottom: 12px; }
  .ingredient-icon { font-size: 28px; margin-bottom: 12px; }
  .ingredient-title { font-size: 20px; margin-bottom: 10px; }
  .ingredient-text { font-size: 13px; }

  /* ── URGENCY ── */
  .urgency-grid { grid-template-columns: 1fr; gap: 12px; }
  .urgency-card { padding: 14px 16px; border-radius: 14px; }
  .urgency-icon { font-size: 32px; }
  .urgency-name { font-size: 14px; }
  .urgency-stock { font-size: 10px; }
  .urgency-price { font-size: 13px; }
  .urgency-card .pdp-cta-sm {
    min-width: 90px;
    height: 44px;
    flex: 0 0 auto;
    font-size: 10px;
    border-radius: 12px;
    padding: 0 16px;
    justify-content: center;
  }

  /* ── BENEFITS (mobile redesign) ── */
  .gift-promise {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 16px 16px;
    background: transparent;
    border: none;
  }
  .promise-item {
    padding: 20px 14px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.25s ease;
    -webkit-tap-highlight-color: transparent;
  }
  .promise-item:active {
    transform: scale(0.97);
  }
  .promise-item:nth-child(odd) { border-right: none; }
  .promise-item:nth-last-child(-n+2) { border-bottom: none; }
  .promise-icon {
    font-size: 22px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(242,154,191,0.08);
  }
  .promise-title {
    font-size: 10px;
    font-weight: 600;
    color: #111;
    letter-spacing: 0.04em;
    line-height: 1.3;
    margin-bottom: 4px;
  }
  .promise-text {
    font-size: 9px;
    color: var(--ash);
    line-height: 1.5;
  }

/* ── NEWSLETTER ── */
  .newsletter { padding: 52px 16px; }
  .newsletter-title { font-size: clamp(26px, 7vw, 32px); margin-bottom: 10px; }
  .newsletter-sub { font-size: 13px; margin-bottom: 28px; }
  .newsletter-form { flex-direction: column; gap: 12px; max-width: 100%; }
  .newsletter-input {
    border-radius: 12px; border: 1px solid rgba(0,0,0,0.06);
    padding: 14px 18px; font-size: 14px; width: 100%;
  }
  .newsletter-btn {
    width: 100%; justify-content: center;
    height: 48px; border-radius: 12px;
  }

  /* ── FOOTER ── */
  footer { padding-bottom: 0; }
  .footer-copyright-bar { padding: 16px; font-size: 10px; }
  .footer-luxury-bar {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 0; padding: 0;
    background: rgba(242,154,191,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .footer-luxury-item {
    padding: 16px 12px; font-size: 10px;
    letter-spacing: 0.06em; color: rgba(255,255,255,0.7);
    justify-content: center; text-align: center;
    border-right: 1px solid rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    flex-direction: column; gap: 4px; white-space: normal;
  }
  .footer-luxury-item:nth-child(even) { border-right: none; }
  .footer-luxury-item:nth-last-child(-n+2) { border-bottom: none; }
  .footer-luxury-icon { width: 6px; height: 6px; }
  .footer-luxury-divider { display: none; }

  .footer-top { grid-template-columns: 1fr; gap: 0; padding: 0; }
  .footer-brand-col {
    padding: 24px 16px 20px; max-width: 100%;
    border-bottom: 1px solid #E9DDD1;
    text-align: center;
  }
  .footer-brand-name { font-size: 24px; margin-bottom: 10px; }
  .footer-tagline { font-size: 13px; max-width: 100%; }
  .footer-social { justify-content: center; }
  .footer-social-icon:active {
    transform: scale(1.05);
    border-color: transparent;
    background: #FFFCF7;
    color: #4F4A43;
    box-shadow: 0 4px 20px rgba(217,143,145,0.25);
  }
  .footer-contact-row { text-align: center; }
  .footer-link { font-size: 13px; margin-bottom: 10px; touch-action: manipulation; }
  .footer-link::after { display: none; }
  .footer-payment-row {
    flex-direction: column; gap: 12px;
    padding: 20px 16px; text-align: center;
    border-top: 1px solid #E9DDD1;
  }
  .footer-payment-label { font-size: 8px; letter-spacing: 0.26em; }
  .footer-payment-icons { justify-content: center; gap: 8px; }
  .payment-icon { font-size: 10px; padding: 4px 10px; border-radius: 6px; }
  .footer-bottom { padding: 20px 16px; border-top: 1px solid #E9DDD1; }
  .footer-trust-badges { gap: 12px; margin-bottom: 14px; justify-content: center; }
  .footer-trust-item { font-size: 9px; color: #7A746B; }
  .footer-legal-row { flex-direction: column; text-align: center; gap: 10px; }
  .footer-copyright { font-size: 10px; }
  .footer-legal { gap: 16px; justify-content: center; }
  .footer-legal a { font-size: 10px; }

  /* ── SHOP ── */
  .shop-heading { padding: 16px 16px 0; }
  .shop-hero-title { font-size: 24px; }
  .shop-layout { grid-template-columns: 1fr; padding: 16px; gap: 16px; }
  .filter-panel { display: none; }
  .filter-panel.open {
    display: flex; flex-direction: column;
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100dvh;
    z-index: 500;
    background: #fff;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.22,1,0.36,1);
    border: none;
    box-shadow: 4px 0 40px rgba(0,0,0,0.08);
  }
  .filter-panel.open {
    transform: translateX(0);
  }
  .filter-drawer-header {
    display: flex; align-items: center;
    justify-content: space-between;
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    flex-shrink: 0;
    background: #fff;
  }
  .filter-drawer-title {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 600;
    letter-spacing: 0.08em; color: #111;
  }
  .filter-drawer-title svg { color: var(--accent); width: 16px; height: 16px; }
  .filter-drawer-close {
    width: 40px; height: 40px;
    border-radius: 12px;
    background: rgba(0,0,0,0.04);
    border: none; cursor: pointer;
    color: #666; display: flex;
    align-items: center; justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    font-size: 18px;
    -webkit-tap-highlight-color: transparent;
  }
  .filter-drawer-close:active {
    background: rgba(0,0,0,0.08);
    transform: scale(0.92);
  }
  .filter-drawer-body {
    flex: 1; overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 24px 20px 16px;
    background: #fff;
  }
  .filter-drawer-body::-webkit-scrollbar { display: none; }
  .filter-drawer-footer {
    display: flex; gap: 10px;
    padding: 16px 20px 20px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(0,0,0,0.06);
    flex-shrink: 0;
    background: #fff;
  }
  .filter-drawer-footer .pdp-cta {
    flex: 1; height: 48px;
    font-size: 11px; letter-spacing: 0.08em;
    border-radius: 12px;
  }
  .filter-drawer-body h3 {
    font-size: 10px; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--accent);
    margin-bottom: 12px; margin-top: 22px;
    font-weight: 600;
  }
  .filter-drawer-body h3:first-child { margin-top: 0; }
  .filter-option {
    display: flex; align-items: center;
    gap: 12px; padding: 10px 0;
    font-size: 14px; color: #333;
    cursor: pointer; -webkit-tap-highlight-color: transparent;
    min-height: 44px;
    border-radius: 8px;
    transition: background 0.2s;
  }
  .filter-option:active {
    background: rgba(242,154,191,0.06);
  }
  .filter-option input[type="radio"],
  .filter-option input[type="checkbox"] {
    --radio-size: 20px;
    width: 20px; height: 20px;
    accent-color: var(--accent);
    cursor: pointer;
    flex-shrink: 0;
  }
  .filter-group {
    margin-bottom: 4px;
  }
  .filter-toggle-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: #fff; border: 1px solid #ddd;
    padding: 8px 14px; font-size: 10px; letter-spacing: 0.1em;
    text-transform: uppercase; color: #333;
    cursor: pointer; font-family: 'Jost', sans-serif;
    border-radius: 10px; transition: all 0.2s;
    outline: none;
  }
  .shop-top { flex-direction: column; gap: 10px; align-items: flex-start; margin-bottom: 16px; }
  .shop-count { font-size: 12px; }
  .product-detail { grid-template-columns: 1fr; padding: 0; gap: 0; }
  .product-gallery { display: flex; flex-direction: column; position: static; height: auto; }
  .product-gallery .gallery-stage { order: 1; }
  .product-gallery .gallery-thumbs { order: 2; }
.gallery-main { aspect-ratio: 4/5; border-radius: 0; margin-bottom: 0; border: none; cursor: default; }
  .gallery-lightbox { align-items: center; justify-content: center; }
  .gallery-lightbox img { max-width: 100%; max-height: 100%; }
  .gallery-thumbs { flex-direction: row; width: auto; padding: 12px 16px 0; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x mandatory; }
  .product-detail .gallery-thumbs { width: auto; }
  .product-detail .gallery-thumb { width: 68px; height: 68px; flex-shrink: 0; scroll-snap-align: start; border-radius: 10px; }
  .gallery-thumb.active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-glow); }
  .product-info { padding: 20px 16px 0; }
  .product-info-eyebrow { font-size: 8px; letter-spacing: 0.22em; margin-bottom: 10px; }
  .product-info-name { font-size: 24px; line-height: 1.15; margin-bottom: 8px; }
  .product-info-tagline { font-size: 13px; line-height: 1.6; margin-bottom: 18px; }
  .product-info-rating { margin-bottom: 16px; padding-bottom: 16px; gap: 8px; flex-wrap: wrap; }
  .rating-stars { font-size: 12px; }
  .rating-count { font-size: 11px; }
  .product-info-price { font-size: 26px; margin-bottom: 18px; }
  .product-info-price .old-price { font-size: 16px; margin-left: 8px; }
  .occasion-chips { gap: 6px; margin-bottom: 20px; }
  .occasion-chip { padding: 6px 14px; font-size: 10px; border-radius: 99px; }
  .gift-options { padding: 16px; margin-bottom: 20px; border-radius: 14px; }
  .gift-opt-title { font-size: 9px; }
  .gift-opt-row { font-size: 12px; gap: 8px; }
  .gift-message-area { font-size: 12px; padding: 10px 12px; border-radius: 10px; }
  .product-detail .qty-row { flex-wrap: nowrap; gap: 8px; margin-bottom: 32px; }
  .qty-selector { height: 44px; border-radius: 12px; }
  .qty-btn { width: 40px; height: 44px; }
  .qty-num { width: 36px; font-size: 14px; }
  .pdp-cta-cart,
  .pdp-cta-buy { font-size: 10px; letter-spacing: 0.08em; }
  .qty-row .pdp-cta { padding: 0 12px; }
  .pdp-wish { width: 46px; height: 46px; font-size: 20px; border-radius: 13px; }
  .product-detail .gift-options { border-radius: 14px; }
  .product-detail .accord { margin-top: 20px; }
  .product-detail .accord-head { font-size: 13px; padding: 14px 0; }
  .product-detail .accord-body p { font-size: 14px; }
  .product-detail .product-info-rating span[style*="color:var(--accent)"] { font-size: 10px; }

  /* ── PDP URGENCY TIMER (Large variant mobile) ── */
  .urgency-timer--large { padding: 12px 16px; margin-bottom: 10px; }
  .urgency-timer--large .urgency-timer-heading { font-size: 12px; margin-bottom: 10px; gap: 6px; }
  .urgency-timer--large .urgency-timer-heading .urgency-timer-icon { width: 14px; height: 14px; }
  .urgency-timer--large .urgency-timer-boxes { gap: 6px; }
  .urgency-timer--large .urgency-timer-box { padding: 6px 8px; border-radius: 6px; }
  .urgency-timer--large .urgency-timer-digits { font-size: 18px; }
  .urgency-timer--large .urgency-timer-label { font-size: 8px; margin-top: 2px; }

  /* ── PDP REVIEWS MOBILE ── */
  .reviews-section { padding: 28px 16px; }
  .review-summary { flex-direction: column; gap: 24px; margin-bottom: 28px; padding-bottom: 24px; }
  .review-big-num { font-size: 48px; }
  .review-big-stars { font-size: 16px; }
  .review-big-count { font-size: 11px; }
  .reviews-filter-row { gap: 6px; flex-wrap: wrap; }
  .review-filter-btn { font-size: 9px; padding: 6px 12px; border-radius: 99px; }
  .customer-review-card { padding: 20px; border-radius: 14px; margin-bottom: 14px; }
  #productReviewsList { margin-top: 18px; }
  .crv-header { flex-direction: column; gap: 10px; align-items: stretch; }
  .crv-stars { font-size: 12px; }
  .crv-body { font-size: 13px; }
  .write-review-form { padding: 20px; border-radius: 14px; }
  .star-pick { font-size: 26px; }

  /* ── PDP RELATED PRODUCTS ── */
  .product-detail .section-header { margin-bottom: 20px; }
  .product-detail .product-grid { gap: 8px; }

/* ── PDP TRUST + DELIVERY STRIP (mobile) ── */
  .product-detail .pdp-breadcrumb { font-size: 10px; margin-bottom: 10px; }

  /* ── PDP STICKY FOOTER (Mobile only, both buttons) ── */
  .pdp-sticky-footer {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    gap: 10px;
    padding: 10px 16px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 -4px 24px rgba(0,0,0,0.06);
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.22,1,0.36,1);
  }
  .pdp-sticky-footer.visible {
    transform: translateY(0);
  }
.pdp-sticky-footer .pdp-cta {
    flex: 1;
    height: 52px;
    padding: 0 12px;
    font-size: 11px;
    letter-spacing: 0.08em;
    border-radius: 999px;
  }
  .pdp-sticky-footer .pdp-cta:active {
    transform: scale(0.97);
  }

  /* ── PDP SUPPLEMENTARY SECTIONS (You May Also Like) ── */
  .pdp-supplementary { padding: 40px 16px; }
  .pdp-supplementary .product-grid { gap: 8px; }

  /* ── PDP bottom spacer for sticky footer ── */
  #view-product {
    padding-bottom: 80px;
  }

  /* ── Global remove focus outlines on mobile ── */
  *:focus { outline: none !important; }
  *:focus-visible { outline: none !important; }
  *::-moz-focus-inner { border: 0 !important; }
  input:focus, select:focus, textarea:focus, button:focus { outline: none !important; box-shadow: none !important; }

  /* ── CHECKOUT ── */
  .checkout-header { padding: 16px 16px 0; }
  .checkout-layout { grid-template-columns: 1fr; padding: 0 16px 24px; gap: 16px; }
  .order-summary-panel { position: static; }
  .form-section { padding: 20px; border-radius: 14px; }
  .form-section-header { margin-bottom: 16px; }
  .form-section-header .form-section-icon { width: 36px; height: 36px; font-size: 18px; border-radius: 10px; }
  .form-section-header h3 { font-size: 14px; }
  .form-section-header p { font-size: 11px; }
  .form-row { gap: 10px; margin-bottom: 10px; }
  .form-row.triple { grid-template-columns: 1fr; }
  .form-row:last-child { margin-bottom: 0; }
  .form-group label { font-size: 9.5px; }
  .form-section .form-input { font-size: 13px; padding: 10px 14px; border-radius: 10px; }
  .payment-grid { grid-template-columns: 1fr; }
  .gift-opts-row { grid-template-columns: 1fr; }
  .delivery-opt { padding: 14px; }
  .checkout-progress { padding: 12px 0; }
  .cp-step { font-size: 10px; }
  .cp-num { width: 20px; height: 20px; font-size: 9px; }
  .btn-place-order { height: 50px; font-size: 12px; }
  .coupon-row { gap: 0; }
  .coupon-row .coupon-input { border-right: none; border-radius: 12px 0 0 12px; width: auto; flex: 1; min-width: 0; }
  .coupon-row .coupon-apply { width: 100px; flex: 0 0 auto; border-radius: 0 12px 12px 0; border-left: 1.5px solid var(--mist); padding: 0 16px; }
  .coupon-row-checkout { flex-direction: column; gap: 12px; }
  .coupon-row-checkout .coupon-input-checkout { width: 100%; }
  .coupon-row-checkout .btn-coupon-apply { width: 100%; }
  .checkout-badge { font-size: 9px; }

  /* ── MISSING VIEWS ── */

  /* Occasions */
  #view-occasions > div:first-child { padding: 48px 16px 28px !important; }
  #view-occasions > div:first-child h1 { font-size: 28px !important; }
  .occasions-page-grid { grid-template-columns: repeat(2,1fr); gap: 10px; }
  .occasion-card { padding: 24px 16px; border-radius: 18px; min-height: 140px; }

  /* Wishlist */
  #view-wishlist > div:first-child { padding: 32px 16px !important; }
  #view-wishlist > div:first-child h1 { font-size: 28px; margin-bottom: 24px; }

  /* Order Success */
  .order-success { padding: 32px 16px; }
  .success-title { font-size: 28px; }
  .success-icon { font-size: 40px; }
  .success-order { font-size: 10px; }
  .success-text { font-size: 13px; }

  /* Admin Login */
  #view-admin-login .admin-login-card { padding: 32px 20px; margin: 16px; max-width: 100%; }

  /* Quick View */
  .quick-view-content { flex-direction: column; }
  .quick-view-content > div:first-child { width: 100% !important; height: 240px !important; }
  .search-suggestions.mobile-sugg { position: static; max-height: 40vh; }
  .gift-options { padding: 16px; }
  .occasion-chips { gap: 6px; }
  .occasion-chip { padding: 5px 12px; font-size: 10px; }

  /* Shop */
  .shop-header { padding: 20px 16px 0; }
  .shop-layout { padding: 16px; }
  .shop-header h1 { font-size: 24px; }
  .shop-header p { font-size: 12px; }

  /* Checkout */
  .checkout-header { padding: 16px 16px 0; }
  .checkout-layout { padding: 0 16px 24px; }
  .form-section { padding: 18px; border-radius: 12px; }
  .form-section-header { margin-bottom: 14px; }
  .form-section-header .form-section-icon { width: 32px; height: 32px; font-size: 16px; border-radius: 8px; }
  .form-section-header h3 { font-size: 13px; }
  .form-row.triple { grid-template-columns: 1fr; }
  .payment-grid { grid-template-columns: 1fr; }
  .gift-opts-row { grid-template-columns: 1fr; }
  .order-summary-panel { padding: 18px; border-radius: 12px; }
  .order-summary-panel h3 { font-size: 18px; }

  /* Success Page */
  .order-success { padding: 32px 16px; text-align: center; }
  .success-icon { font-size: 48px; }
  .success-title { font-size: 26px; }
  .success-order { font-size: 11px; }
  .success-text { font-size: 13px; line-height: 1.6; }
  .success-actions { flex-direction: column; gap: 10px; }
  .success-actions a, .success-actions button { width: 100%; }

  /* Account */
  .account-header { padding: 20px 16px 0; }
  .account-header h1 { font-size: 24px; }
  .account-card { padding: 20px; border-radius: 14px; }
  .account-card h3 { font-size: 14px; }
  .account-field { flex-direction: column; gap: 4px; }
  .account-field label { font-size: 10px; }
  .account-field span { font-size: 13px; }
  .order-history-card { padding: 16px; border-radius: 12px; }
  .order-history-card .order-num { font-size: 10px; }
  .order-history-card .order-date { font-size: 10px; }
  .order-history-card .order-status { font-size: 8px; padding: 3px 10px; }

  /* Contact */
  .contact-page { padding: 0; }
  .contact-page input, .contact-page textarea { font-size: 13px; padding: 12px 16px; border-radius: 10px; }
  .contact-page input::placeholder, .contact-page textarea::placeholder { font-size: 12px; }
  .contact-page button[type="submit"] { font-size: 11px; }

  /* Admin */
  .admin-header { padding: 16px; }
  .admin-header h1 { font-size: 20px; }
  .admin-stat-card { padding: 16px; border-radius: 12px; }
  .admin-stat-card .stat-num { font-size: 24px; }
  .admin-stat-card .stat-label { font-size: 9px; }

  /* ── ABOUT ── */
  .about-hero { min-height: 240px; height: 36vh; }
  .about-hero-title { font-size: clamp(28px, 8vw, 36px); }
  .about-content { margin: 32px auto; padding: 0 16px; }
  .about-lead { font-size: 16px; }
  .about-body { font-size: 14px; }
  .values-grid { grid-template-columns: 1fr; padding: 0 16px 32px; gap: 16px; }
  .contact-layout { grid-template-columns: 1fr; padding: 28px 16px; gap: 28px; }
  .contact-title { font-size: 28px; }

  /* ── ACCOUNT ── */
  .account-layout { display: block; padding: 0; gap: 0; min-height: auto; }
  .account-nav { display: none !important; }
  #accountContent { padding: 16px !important; min-height: 100vh; }
  #accountContent .admin-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  #accountContent .admin-table { min-width: 600px; }
  #accountContent .admin-table td, #accountContent .admin-table th { white-space: nowrap; }
  #accountContent div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  #accountContent .dash-stats-grid { grid-template-columns: 1fr 1fr !important; }
  #accountContent div[style*="max-width:700px"] { max-width: 100% !important; }
  #accountContent .order-timeline { flex-wrap: wrap; gap: 4px; }
  #accountContent .order-timeline .timeline-step { min-width: 60px; }
  #accountContent .order-timeline .timeline-connector { width: 16px; }

  /* ── PREMIUM ORDER DETAILS MOBILE ── */
  .order-detail-container { padding: 20px !important; border-radius: var(--radius-md) !important; }
  .premium-stepper { padding: 14px; gap: 0; }
  .stepper-step { min-width: 50px; }
  .stepper-dot { width: 30px; height: 30px; font-size: 12px; }
  .stepper-label { font-size: 8px; white-space: normal; word-break: break-word; max-width: 55px; }
  .stepper-connector { width: 18px; margin-top: 14px; }
  .order-info-grid { grid-template-columns: 1fr !important; }
  #invoicePrintArea { padding: 20px !important; max-width: 100% !important; }
  #invoicePrintArea div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  #invoiceActions { flex-direction: column; align-items: stretch; }
  #invoiceActions button { width: 100%; }

  /* Mobile account menu */
  .mobile-acc-header {
    background: white; border-radius: 16px; padding: 28px 24px 24px;
    margin-bottom: 16px; text-align: center;
    border: 1px solid var(--mist);
  }
  .mobile-acc-avatar {
    width: 64px; height: 64px; border-radius: 50%;
    margin: 0 auto 12px; overflow: hidden;
    border: 2px solid var(--ivory);
    display: flex; align-items: center; justify-content: center;
    font-size: 30px;
  }
  .mobile-acc-avatar img { width: 100%; height: 100%; object-fit: cover; }
  .mobile-acc-name { font-family: 'Cormorant Garamond', serif; font-size: 20px; color: var(--noir); font-weight: 400; }
  .mobile-acc-email { font-size: 12px; color: var(--ash); margin-top: 4px; }
  .mobile-acc-menu { display: flex; flex-direction: column; gap: 8px; }
  .mobile-acc-menu-item {
    display: flex; align-items: center; gap: 14px;
    padding: 16px 18px; background: white; border-radius: 14px;
    border: 1px solid var(--mist); cursor: pointer;
    transition: all 0.15s;
  }
  .mobile-acc-menu-item:active { transform: scale(0.98); background: var(--ivory); }
  .mobile-acc-menu-icon { font-size: 18px; width: 28px; text-align: center; }
  .mobile-acc-menu-label { flex: 1; font-size: 14px; font-weight: 500; color: var(--noir); }
  .mobile-acc-menu-arrow { font-size: 14px; color: var(--ash); }

  /* Mobile section bar (sticky back + title) */
  .mobile-section-bar {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 4px; margin-bottom: 16px;
  }
  .mobile-section-back {
    width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid var(--mist); background: white;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 16px; flex-shrink: 0;
    transition: background 0.15s;
  }
  .mobile-section-back:active { background: var(--ivory); }
  .mobile-section-title { font-size: 16px; font-weight: 500; color: var(--noir); flex: 1; }

  /* ── ORDER SUCCESS ── */
  .order-timeline { flex-wrap: wrap; gap: 8px; justify-content: center; }
  .timeline-connector { width: 24px; }

  /* ── ADMIN ── */
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { position: fixed; z-index: 100; transform: translateX(-100%); transition: transform 0.3s ease; }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-content { padding: 16px; }

  /* ── CART ── */
  html.cart-open, body.cart-open {
    overflow: hidden !important;
    height: 100% !important;
    width: 100% !important;
    touch-action: none !important;
    overscroll-behavior: none !important;
  }
  html.cart-open::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    background: transparent !important;
  }
  body.cart-open::-webkit-scrollbar {
    display: none !important;
  }
  html.cart-open {
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
  }
  /* ── CART ── */
  .cart-sidebar { width: 100%; right: -100%; }
  .cart-sidebar.open { right: 0; }
  .cart-overlay { background: rgba(200, 200, 200, 0.85); backdrop-filter: blur(2px); }
  .cart-head { padding: 16px; }
  .cart-items { padding: 16px; }
  .cart-close { width: 36px; height: 36px; padding: 4px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 18px; }
  .cart-foot { padding: 16px; }
  .coupons-panel.open { max-height: 60vh; overflow-y: auto; }
  .coupon-card { padding: 10px 12px; }

  /* ── MODAL ── */
  .modal-box { padding: 28px 20px; margin: 12px; border-radius: 20px; }
  .modal-close { top: 12px; right: 12px; }
  .auth-tab { font-size: 9px; padding: 10px; }
} /* end 768px */

/* ═══════════════════════════════════════════
   PHONE (≤430px)
   ═══════════════════════════════════════════ */
/* ═══════════════════════════════════════════
   PHONE (≤480px)
   ═══════════════════════════════════════════ */
@media (max-width: 480px) {
  .mobile-hero { height: auto;
    aspect-ratio: 3 / 4;
    min-height: 340px;
    max-height: 580px; }
  .mobile-hero-title { font-size: clamp(26px, 8vw, 34px); }
  .mobile-hero-sub { font-size: 11px; }
  .product-card-body { padding: 8px 10px 10px; }
  .product-name { font-size: 13px; }
  .product-price { font-size: 13px; }
  .pdp-cta { font-size: 9px; }
  .promise-item { padding: 22px 16px; }
  .newsletter { padding: 52px 16px; }
  .newsletter-title { font-size: 26px; }
  .newsletter-input { height: 44px; font-size: 12px; }
  .newsletter-btn { font-size: 11px; }
  .form-row.triple { grid-template-columns: 1fr; }
  .payment-grid { grid-template-columns: 1fr; }
  .gift-opts-row { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .mobile-hero { height: auto;
  aspect-ratio: 3 / 4;
  min-height: 340px;
  max-height: 580px; }
  .mobile-hero-title { font-size: clamp(24px, 7.5vw, 30px); }
  .mobile-hero-sub { font-size: 10px; margin-bottom: 20px; }
  .mobile-hero-eyebrow { font-size: 8px; }
  .section-header h2 { font-size: 20px; }
  .product-card-body { padding: 6px 8px 10px; }
    .product-name { font-size: 12px; margin-bottom: 2px; }
  .product-price { font-size: 12px; }
  .product-cat { font-size: 6px; }
  .product-rating { font-size: 8px; }
  .product-card-actions { margin-top: auto; gap: 5px; }
  .pdp-cta { height: 34px; font-size: 8px; border-radius: 12px; }
  .qty-row { flex-wrap: nowrap; gap: 6px; }
  .occasion-card { padding: 18px 12px; border-radius: 16px; min-height: 120px; }
  .occasion-emoji { font-size: 26px; }
  .promise-item { padding: 18px 12px; }
  .promise-title { font-size: 8px; }
  .promise-text { font-size: 8px; }
  .newsletter { padding: 44px 16px; }
  .newsletter-title { font-size: 22px; }
  .newsletter-desc { font-size: 12px; }
  .newsletter-input { height: 42px; font-size: 11px; }
  .newsletter-btn { font-size: 10px; }
  .values-grid { gap: 12px; }
  .value-card { padding: 20px 16px; border-radius: 16px; }
  .value-card h3 { font-size: 13px; }
  .value-card p { font-size: 11px; }
  .contact-layout { padding: 24px 16px; gap: 24px; }
  .contact-title { font-size: 24px; }
  .contact-info-item { font-size: 13px; }
  #invoicePrintArea { padding: 16px !important; }
  #invoiceActions { flex-direction: column; }
  #invoiceActions button { width: 100%; }
  .checkout-layout { padding: 0 16px 20px; }
  .form-section { padding: 16px; border-radius: 10px; }
  .form-section-header { margin-bottom: 12px; gap: 10px; }
  .form-section-header .form-section-icon { width: 28px; height: 28px; font-size: 14px; border-radius: 8px; }
  .form-section-header h3 { font-size: 12px; }
  .delivery-opt { padding: 12px; }
  .payment-opt { padding: 12px; }
  .gift-opt-card { padding: 12px; }
  .btn-place-order { height: 46px; font-size: 11px; }
  .form-section .form-input { font-size: 12px; padding: 9px 12px; border-radius: 8px; }
  .order-summary-panel { padding: 16px; }
  .order-timeline { gap: 6px; }
  .timeline-step { font-size: 8px; }
  .timeline-connector { width: 20px; }
  .admin-content { padding: 14px; }
  .modal-box { padding: 24px 16px; margin: 10px; border-radius: 18px; }
}

@media (max-width: 414px) {
header#siteHeader { height: 64px; }
#siteHeader.scrolled { height: 58px; }
  .mobile-hero-title { font-size: clamp(22px, 7vw, 28px); }
  .product-info-name { font-size: 22px; }
  .product-info-price { font-size: 22px; }
  .reviews-section { padding: 24px 16px; }
  .customer-review-card { padding: 16px; }
}

@media (max-width: 390px) {
header#siteHeader { height: 60px; padding: 0 10px; }
#siteHeader.scrolled { height: 54px; }
  .mobile-nav-drawer { width: 280px; }
  .mobile-hero { height: auto;
  aspect-ratio: 3 / 4;
  min-height: 320px;
  max-height: 540px; }
  .mobile-hero-title { font-size: clamp(20px, 6.5vw, 26px); }
  .mobile-hero-sub { font-size: 9px; margin-bottom: 18px; }
  .section-header h2 { font-size: 18px; }
  .product-name { font-size: 11px; }
  .product-price { font-size: 11px; }
  .product-cat { font-size: 5.5px; }
  .product-rating { font-size: 7px; }
  .product-card-actions { margin-top: auto; gap: 4px; }
  .pdp-cta { height: 30px; font-size: 7.5px; border-radius: 11px; }
  .product-card-body { padding: 6px 8px 8px; }
  .occasion-card { padding: 16px 10px; min-height: 110px; border-radius: 14px; }
  .occasion-emoji { font-size: 22px; }
  .occasion-name { font-size: 11px; }
  .promise-item { padding: 16px 10px; }
  .promise-title { font-size: 7.5px; }
  .promise-text { font-size: 7.5px; }
  .newsletter { padding: 36px 16px; }
  .newsletter-title { font-size: 20px; }
  .newsletter-desc { font-size: 11px; }
  .newsletter-input { height: 40px; font-size: 10px; }
  .newsletter-btn { font-size: 10px; }
  .product-info-name { font-size: 20px; }
  .product-info-price { font-size: 20px; }
  .product-info-tagline { font-size: 12px; }
  .pdp-cta { height: 42px; font-size: 9px; }
  .pdp-wish { width: 42px; height: 42px; font-size: 18px; }
  .qty-selector { height: 42px; }
  .qty-btn { height: 42px; }
  .product-detail .gallery-thumb { width: 60px; height: 60px; }
  .reviews-section { padding: 24px 16px; }
  .customer-review-card { padding: 16px; border-radius: 12px; }
  .review-summary { gap: 20px; }
  .review-big-num { font-size: 40px; }
  .about-hero-title { font-size: 24px; }
  .about-lead { font-size: 14px; }
  .contact-title { font-size: 22px; }
  .checkout-header h1 { font-size: 20px; }
  .form-section { padding: 16px; }
  .order-summary-panel { padding: 16px; }
  .admin-content { padding: 12px; }
  .admin-stat-card { padding: 12px; }
  .modal-box { padding: 20px 14px; margin: 8px; border-radius: 16px; }
}

@media (max-width: 375px) {
header#siteHeader { height: 58px; padding: 0 8px; }
#siteHeader.scrolled { height: 52px; }
  .mobile-hero { height: auto;
  aspect-ratio: 3 / 4;
  min-height: 320px;
  max-height: 520px; border-radius: 0 0 20px 20px; }
  .mobile-hero-title { font-size: 20px; }
  .mobile-hero-sub { font-size: 9px; }
  .section-header h2 { font-size: 17px; }
    .product-name { font-size: 10px; margin-bottom: 1px; }
  .product-price { font-size: 10px; }
  .product-stars { font-size: 6px; }
  .product-stars span { font-size: 5px; }
  .product-cat { font-size: 5px; margin-bottom: 1px; }
  .product-rating { font-size: 6px; }
  .product-card-body { padding: 4px 6px 8px; }
  .pdp-cta { height: 28px; font-size: 7px; border-radius: 10px; }
  .product-card-actions { margin-top: auto; gap: 3px; }
  .wishlist-icon { width: 22px; height: 22px; font-size: 8px; top: 4px; right: 4px; }
  .product-badge { font-size: 7px; padding: 3px 8px; border-radius: var(--radius-sm); }
  .discount-badge { font-size: 7px; padding: 3px 8px; border-radius: var(--radius-sm); }
  .product-badges { top: 4px; left: 4px; gap: 2px; }
  .occasion-card { padding: 14px 10px; min-height: 100px; border-radius: 14px; }
  .occasion-emoji { font-size: 20px; }
  .occasion-name { font-size: 10px; }
  .promise-item { padding: 14px 10px; }
  .promise-title { font-size: 7px; }
  .promise-text { font-size: 7px; }
  .newsletter { padding: 32px 16px; }
  .newsletter-title { font-size: 18px; }
  .newsletter-desc { font-size: 10px; }
  .newsletter-input { height: 38px; font-size: 10px; }
  .newsletter-btn { font-size: 9px; }
  .product-info-name { font-size: 18px; }
  .product-info-price { font-size: 18px; }
  .product-info-tagline { font-size: 11px; }
  .pdp-cta { height: 40px; font-size: 8.5px; border-radius: 11px; }
  .pdp-wish { width: 40px; height: 40px; font-size: 16px; }
  .qty-selector { height: 40px; }
  .qty-btn { height: 40px; }
  .product-detail .gallery-thumb { width: 60px; height: 60px; }
  .reviews-section { padding: 20px 16px; }
  .customer-review-card { padding: 14px; }
  .review-big-num { font-size: 36px; }
  .product-info { padding: 16px 16px 0; }
  .about-hero-title { font-size: 22px; }
  .contact-title { font-size: 20px; }
  .contact-layout { padding: 20px 16px; }
  .success-title { font-size: 22px; }
  .order-success { padding: 24px 16px; }

  .admin-content { padding: 10px; }
  .modal-box { padding: 18px 12px; margin: 6px; border-radius: 14px; }
  .cart-sidebar { width: 100%; }
  .cart-head { padding: 12px; }
  .cart-items { padding: 12px; }
  .cart-foot { padding: 12px; }
}

@media (max-width: 360px) {
header#siteHeader { height: 54px; padding: 0 6px; }
#siteHeader.scrolled { height: 50px; }
  header .header-btn { font-size: 14px; padding: 6px; min-height: 38px; min-width: 38px; }
  .mobile-hamburger { width: 36px; height: 36px; }
  .mobile-hero { height: auto;
  aspect-ratio: 3 / 4;
  min-height: 300px;
  max-height: 500px; border-radius: 0 0 14px 14px; }
  .mobile-hero-title { font-size: 18px; }
  .mobile-hero-sub { font-size: 8px; margin-bottom: 14px; }
  .section-header h2 { font-size: 16px; }
  .product-card-body { padding: 4px 5px 6px; }
  .product-name { font-size: 9px; }
  .product-price { font-size: 9px; }
  .product-cat { font-size: 4.5px; }
  .product-rating { font-size: 6px; }
  .product-stars { font-size: 5px; }
  .product-stars span { font-size: 4.5px; }
  .pdp-cta { height: 26px; font-size: 6.5px; border-radius: 9px; }
  .product-card-actions { margin-top: auto; gap: 3px; }
  .wishlist-icon { width: 20px; height: 20px; font-size: 7px; top: 3px; right: 3px; }
  .product-badge { font-size: 6px; padding: 2px 6px; border-radius: var(--radius-sm); }
  .discount-badge { font-size: 6px; padding: 2px 6px; border-radius: var(--radius-sm); }
  .product-badges { top: 3px; left: 3px; gap: 1px; }
  .occasion-card { padding: 12px 8px; min-height: 90px; border-radius: 12px; }
  .occasion-emoji { font-size: 18px; }
  .occasion-name { font-size: 9px; }
  .promise-item { padding: 12px 8px; }
  .promise-title { font-size: 6.5px; }
  .promise-text { font-size: 6.5px; }
  .newsletter { padding: 28px 16px; }
  .newsletter-title { font-size: 16px; }
  .newsletter-desc { font-size: 9px; }
  .newsletter-input { height: 34px; font-size: 9px; }
  .newsletter-btn { font-size: 9px; }
  .product-info-name { font-size: 16px; }
  .product-info-price { font-size: 16px; }
  .product-info-tagline { font-size: 10px; }
  .product-info { padding: 14px 16px 0; }
  .product-detail .gallery-thumb { width: 60px; height: 60px; }
  .pdp-cta { height: 36px; font-size: 8px; }
  .pdp-wish { width: 36px; height: 36px; font-size: 14px; }
  .qty-row { gap: 6px; }
  .qty-selector { height: 38px; border-radius: 10px; }
  .qty-btn { width: 36px; height: 38px; }
  .qty-num { width: 30px; font-size: 13px; }
  .reviews-section { padding: 18px 16px; }
  .customer-review-card { padding: 12px; }
  .review-big-num { font-size: 32px; }
  .about-hero-title { font-size: 20px; }
  .about-hero { min-height: 200px; }
  .contact-title { font-size: 18px; }
  .success-title { font-size: 20px; }
  .order-success { padding: 20px 16px; }
  .admin-content { padding: 8px; }
  .modal-box { padding: 16px 10px; border-radius: 12px; }
  .footer-brand-name { font-size: 18px; }
}

@media (max-width: 320px) {
header#siteHeader { height: 50px; padding: 0 5px; }
#siteHeader.scrolled { height: 46px; }
  header .header-btn { font-size: 14px; min-width: 34px; min-height: 34px; padding: 6px; }
  .mobile-hamburger { width: 34px; height: 34px; padding: 6px; }
  .announcement-bar { padding: 4px 0; }
  .announcement-track span { font-size: 7px; }
  .mobile-nav-drawer { width: 260px; }
  .mobile-nav-link { padding: 12px 16px; font-size: 12px; }
  .mobile-hero { height: auto;
  aspect-ratio: 3 / 4;
  min-height: 300px;
  max-height: 480px; border-radius: 0 0 12px 12px; }
  .mobile-hero-title { font-size: 16px; }
  .mobile-hero-sub { font-size: 7px; margin-bottom: 12px; }
  .section-header h2 { font-size: 14px; }
  .product-card-body { padding: 3px 4px 6px; }
  .product-name { font-size: 8.5px; }
  .product-price { font-size: 8.5px; }
  .product-cat { font-size: 4px; }
  .product-rating { font-size: 5px; }
  .product-stars { font-size: 4.5px; }
  .product-stars span { font-size: 4px; }
  .pdp-cta { height: 24px; font-size: 6px; padding: 0 4px; border-radius: 8px; }
  .product-card-actions { margin-top: auto; gap: 2px; }
  .wishlist-icon { width: 18px; height: 18px; font-size: 6px; top: 3px; right: 3px; }
  .product-badge { font-size: 5px; padding: 2px 5px; border-radius: var(--radius-sm); }
  .discount-badge { font-size: 5px; padding: 2px 5px; border-radius: var(--radius-sm); }
  .product-badges { top: 3px; left: 3px; gap: 1px; }
  .occasion-card { padding: 10px 6px; min-height: 80px; border-radius: 10px; }
  .occasion-emoji { font-size: 16px; }
  .occasion-name { font-size: 8px; }
  .promise-item { padding: 10px 6px; }
  .promise-title { font-size: 6px; }
  .promise-text { font-size: 6px; }
  .newsletter { padding: 24px 16px; }
  .newsletter-title { font-size: 14px; }
  .newsletter-desc { font-size: 8px; }
  .newsletter-input { height: 32px; font-size: 8px; }
  .newsletter-btn { font-size: 9px; }
  .product-info-name { font-size: 14px; }
  .product-info-price { font-size: 14px; }
  .product-info-tagline { font-size: 9px; }
  .product-detail .gallery-thumb { width: 60px; height: 60px; }
  .pdp-cta { height: 34px; font-size: 7px; }
  .pdp-wish { width: 34px; height: 34px; font-size: 12px; }
  .qty-row { gap: 4px; }
  .qty-selector { height: 36px; border-radius: 9px; }
  .qty-btn { width: 34px; height: 36px; }
  .qty-num { width: 26px; font-size: 12px; }
  .reviews-section { padding: 16px; }
  .customer-review-card { padding: 10px; }
  .review-big-num { font-size: 28px; }
  .about-hero-title { font-size: 18px; }
  .contact-title { font-size: 16px; }
  .success-title { font-size: 18px; }
  .order-success { padding: 16px; }
  .admin-content { padding: 6px; }
  .modal-box { padding: 14px 8px; margin: 4px; border-radius: 10px; }
}

/* ═══════════════════════════════════════════
   LARGE SCREENS (≥1440px)
   ═══════════════════════════════════════════ */
@media (min-width: 1440px) {
  .shop-layout { padding: 40px 120px; }
  .checkout-layout { padding: 48px 120px; }
  .account-layout { grid-template-columns: 280px 1fr; padding: 48px 120px; }
  .product-detail { padding: 64px 120px; }
}

/* ═══════════════════════════════════════════
   OCCASION CARDS — FNP-STYLE CLEAN PHOTOS (MOBILE ONLY)
   Cards show the uploaded image clean, full-bleed, with no
   gradient/wash; label readability via text-shadow only.
   Desktop is untouched (these rules live only ≤768px).
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
  .occasion-name { text-shadow: 0 1px 2px rgba(255,255,255,0.45), 0 2px 6px rgba(255,255,255,0.25); }
}

/* ── FLUID MOBILE CONTACT FORM ── */
@media (max-width: 768px) {
  .contact-layout {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  .contact-layout .checkout-section {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: clamp(18px, 5vw, 28px);
    border-radius: var(--radius-lg);
  }
  .contact-layout .form-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
  }
  .contact-layout .form-field {
    width: 100%;
    min-width: 0;
  }
  .contact-layout .form-input,
  .contact-layout textarea.form-input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .contact-layout .pdp-cta-buy {
    max-width: 100%;
    box-sizing: border-box;
  }
  .contact-layout .contact-detail {
    max-width: 100%;
    overflow-wrap: break-word;
  }
}

/* ═══════════════════════════════════════════
   LOADING SCREEN — MOBILE ONLY (≤768px)
   Desktop/base values live in components.css +
   premium.css and are NOT touched here. This file
   loads last so these cleanly override the cascade.
   Logo image dimensions deliberately unchanged.
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
  #loadingScreen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-left: 0;
    padding-right: 0;
    min-height: 100vh;
    padding-bottom: 14vh;
  }

  #loadingScreen .loading-logo,
  #loadingScreen .loading-bar-track,
  #loadingScreen .loading-subtitle {
    transform: translateY(-1.3cm);
  }

  .loading-logo {
    width: min(170px, 60vw);
    max-height: 85px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
  }

  .loading-subtitle,
  .loading-subtitle.loading-welcome {
    font-size: 13.5px;
    letter-spacing: 0.08em;
    min-height: 44px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
  }

  .loading-bar-track {
    width: min(280px, 80vw);
    height: 6px;
    margin-top: 30px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 480px) {
  #loadingScreen {
    padding-bottom: 12vh;
  }

  .loading-subtitle,
  .loading-subtitle.loading-welcome {
    font-size: 13px;
    letter-spacing: 0.07em;
  }

  .loading-bar-track {
    width: min(260px, 80vw);
  }
}

@media (max-width: 390px) {
  #loadingScreen {
    padding-bottom: 12vh;
  }

  .loading-subtitle,
  .loading-subtitle.loading-welcome {
    font-size: 12.5px;
    letter-spacing: 0.06em;
  }

  .loading-bar-track {
    width: min(240px, 80vw);
  }
}

@media (max-width: 320px) {
  #loadingScreen {
    padding-bottom: 12vh;
  }

  .loading-subtitle,
  .loading-subtitle.loading-welcome {
    font-size: 12px;
    letter-spacing: 0.05em;
  }

  .loading-bar-track {
    width: min(220px, 80vw);
  }
}

/* ═══════════════════════════════════════════
   LOADING SUBTITLE — MOBILE BREATHING ROOM (≤768px)
   Rotating messages get horizontal cushion + a capped
   width so they never crowd their own box edges on
   small screens. Font sizes/letter-spacing keep the
   existing ≤480/≤390/≤320 steps above.
   ═══════════════════════════════════════════ */
@media (max-width: 768px) {
  .loading-subtitle,
  .loading-subtitle.loading-welcome {
    width: 100%;
    max-width: 340px;
    box-sizing: border-box;
    padding-left: 32px;
    padding-right: 32px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
  }
}

@media (max-width: 480px) {
  .loading-subtitle,
  .loading-subtitle.loading-welcome {
    max-width: 344px;
    font-size: 12.5px;
    letter-spacing: 0.07em;
  }
}

/* ── TABLET SPLASH: single-line tagline (iPad portrait / 601-768px) ──
   The ≤768 rules above cap the subtitle at 340px (ideal for phones 320-480px),
   but that forces the rotating tagline to wrap on iPad portrait. This override
   removes the cap for the tablet sub-range and restores the desktop-consistent
   17px / 0.1em sizing so each line renders on exactly one premium row.
   Verified: "Wrapping every detail with care..." = 511px at 17px + 80px
   padding = 591px total → fits within 768px with comfortable margin.
   Phones (≤600px) are NOT affected — their own max-width caps remain intact. */
@media (min-width: 601px) and (max-width: 768px) {
  .loading-subtitle,
  .loading-subtitle.loading-welcome {
    width: auto;
    max-width: none;
    font-size: 17px;
    letter-spacing: 0.1em;
    padding-left: 40px;
    padding-right: 40px;
  }
}

/* ═══════════════════════════════════════════
   PDP QTY ROW — MOBILE-ONLY REFINEMENT (≤767px)
   Compact-but-roomy: ~96px stepper, comfortable 14px
   button padding, one tidy line at ≥415px and a clean
   two-row stack (qty + wish / add + buy) at ≤414px.
   Higher-specificity selectors keep the older ≤768px
   and ≤360px mobile rules from fighting these values.
   Desktop (≥769px) is untouched — see premium.css.
   ═══════════════════════════════════════════ */
@media (max-width: 767px) {
  .product-detail .qty-row {
    flex-wrap: nowrap;
    gap: 10px;
    margin-bottom: 32px;
  }
  .product-detail .qty-row .qty-selector {
    width: 96px;
    height: 44px;
    flex: 0 0 auto;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    border: 1.5px solid var(--mist);
    border-radius: 12px;
    overflow: hidden;
    background: var(--card-bg);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
  }
  .product-detail .qty-row .qty-btn {
    flex: 1 1 0;
    min-width: 0;
    height: 100%;
    width: auto;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-size: 15px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .product-detail .qty-row .qty-num {
    flex: 0 0 auto;
    width: 27px;
    min-width: 27px;
    max-width: 27px;
    height: 100%;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    font-variant-numeric: tabular-nums;
  }
  .product-detail .qty-row .pdp-cta {
    flex: 1 1 0;
    min-width: 97px;
    height: 44px;
    padding: 0 13px;
    font-size: 11px;
    letter-spacing: 0.08em;
    column-gap: 6px;
    white-space: nowrap;
  }
  .product-detail .qty-row .pdp-cta svg {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
  }
}

@media (max-width: 449px) {
  .product-detail .qty-row {
    flex-wrap: wrap;
    gap: 10px;
  }
  .product-detail .qty-row .pdp-cta-group {
    display: flex;
    order: 3;
    flex: 1 0 auto;
    gap: 10px;
  }
  .product-detail .qty-row .pdp-cta-group .pdp-cta {
    flex: 1 1 0;
    min-width: 112px;
  }
  .product-detail .qty-row .qty-selector {
    order: 1;
  }
}

@media (max-width: 386px) {
  .product-detail .qty-row {
    gap: 8px;
  }
  .product-detail .qty-row .pdp-cta-group {
    gap: 8px;
  }
  .product-detail .qty-row .pdp-cta-group .pdp-cta {
    min-width: 0;
  }
  .product-detail .qty-row .qty-selector {
    width: 92px;
  }
  .product-detail .qty-row .qty-btn {
    min-width: 30px;
  }
  .product-detail .qty-row .qty-num {
    width: 25px;
    min-width: 25px;
    max-width: 25px;
  }
  .product-detail .qty-row .pdp-cta {
    padding: 0 11px;
    font-size: 10px;
    column-gap: 5px;
  }
  .product-detail .qty-row .pdp-cta svg {
    width: 13px;
    height: 13px;
    flex: 0 0 13px;
  }
}

/* ═══════════════════════════════════════════
   HELP CENTER PAGES (FAQ + Shipping & Returns) — mobile
   (≤640px: single-column panels, tighter header rhythm)
   ═══════════════════════════════════════════ */
@media (max-width: 640px) {
  .hc-page { padding: 56px 20px 72px; }
  .hc-header { margin-bottom: 40px; }
  .hc-title { margin: 12px 0 12px; }
  .hc-sub { font-size: 14px; }
  .faq-head { padding: 20px 6px; gap: 14px; }
  .faq-q { font-size: 15px; }
  .faq-icon { width: 28px; height: 28px; font-size: 17px; }
  .faq-body p { padding: 0 6px 26px; font-size: 14px; }
  .snr-grid { grid-template-columns: 1fr; gap: 20px; }
  .snr-panel { padding: 26px 22px 22px; border-radius: 18px; }
  .hc-cta { margin-top: 52px; padding-top: 30px; }
  .hc-cta a { font-size: 12px; }
}


/* The former body.on-success transparent-header hack (made the sticky header
   invisible on the order-confirmation page so the party-popper icon could
   show through it when scrolled) is REMOVED. With .order-success no longer
   raised above the header (z-index removed), content slides UNDER the
   header while scrolling — the header keeps its normal white/blur style and
   the icon can never be seen overlapping it. */

/* ---------------------------------------------------------------
   /* ═══════════════════════════════════════════════════════════════
   OUR STORY — PREMIUM EDITORIAL MOBILE (≤768 / ≤480)
   Scoped under .our-story-page. Mobile chapters render IMAGE FIRST,
   text below. Body copy stays ≥16px for readability.
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .our-story-page { overflow: hidden; }

  .our-story-page .story-hero {
    height: clamp(480px, 78vh, 620px);
  }
  .our-story-page .story-hero-media img { object-position: center 30%; }
  .our-story-page .story-hero::after {
    background: linear-gradient(180deg, rgba(25,22,19,0.10) 0%, rgba(25,22,19,0.02) 30%, rgba(25,22,19,0.42) 62%, rgba(25,22,19,0.88) 100%);
  }
  .our-story-page .story-hero-inner {
    padding: 0 22px 46px;
  }
  .our-story-page .story-eyebrow { font-size: 10.5px; margin-bottom: 16px; letter-spacing: 0.38em; }
  .our-story-page .story-hero .about-hero-title {
    font-size: clamp(34px, 10vw, 46px);
    line-height: 1.06;
  }
  .our-story-page .story-hero-quote {
    font-size: 17.5px;
    line-height: 1.7;
    margin-top: 20px;
  }
  .our-story-page .story-hero-sub {
    font-size: 10.5px;
    letter-spacing: 0.14em;
    margin-top: 20px;
    line-height: 1.8;
  }

  .our-story-page .story-chapter {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 64px 22px;
  }
  .our-story-page .story-chapter-flip .story-text { order: 2; }
  .our-story-page .story-chapter-flip .story-media { order: 1; }
  .our-story-page .story-text { order: 2; }
  .our-story-page .story-media { order: 1; }
  .our-story-page .story-media-portrait,
  .our-story-page .story-chapter:not(.story-chapter-flip) .story-media-portrait,
  .our-story-page .story-chapter-flip .story-media-portrait {
    aspect-ratio: 4 / 5;
    max-width: none;
    margin: 0;
  }
  .our-story-page .story-media-landscape {
    aspect-ratio: 4 / 3;
  }
  .our-story-page .story-chapter-num { font-size: 10.5px; margin-bottom: 14px; }
  .our-story-page .story-chapter-title { font-size: 30px; margin-bottom: 18px; }
  .our-story-page .story-text p,
  .our-story-page .story-text .about-body {
    font-size: 16.5px;
    line-height: 1.9;
    max-width: none;
  }

  .our-story-page .story-statement { padding: 72px 22px; }
  .our-story-page .story-statement::before { width: 48px; margin-bottom: 30px; }
  .our-story-page .story-statement-text {
    font-size: clamp(22px, 6.4vw, 30px);
    line-height: 1.55;
  }

  .our-story-page .story-hero-media img.banner-desktop,
  .our-story-page .story-full img.banner-desktop { display: none; }
  .our-story-page .story-hero-media img.banner-mobile {
    display: block;
    object-position: center 30%;
  }
  .our-story-page .story-full img.banner-mobile {
    display: block;
    aspect-ratio: 4 / 3;
    object-position: center;
  }

  .our-story-page .story-standard { padding: 72px 22px 80px; }
  .our-story-page .story-section-title { font-size: 32px; }
  .our-story-page .story-values-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 48px;
  }
  .our-story-page .value-card { padding: 22px 8px 0; }
  .our-story-page .value-text { max-width: 34ch; }

  .our-story-page .story-closing { padding: 88px 22px 96px; }
  .our-story-page .story-closing-line {
    font-size: clamp(38px, 11vw, 52px);
  }
  .our-story-page .story-closing-sub {
    font-size: 17.5px;
    line-height: 1.85;
    margin-top: 22px;
  }
}

@media (max-width: 480px) {
  .our-story-page .story-hero { height: clamp(460px, 76vh, 560px); }
  .our-story-page .story-chapter { padding: 56px 18px; gap: 30px; }
  .our-story-page .story-text p,
  .our-story-page .story-text .about-body { font-size: 16px; }
  .our-story-page .story-statement { padding: 64px 18px; }
  .our-story-page .story-statement-text { font-size: 20px; }
  .our-story-page .story-standard { padding: 64px 18px 72px; }
  .our-story-page .story-closing { padding: 80px 18px 88px; }
  .our-story-page .story-closing-line { font-size: 36px; }
}


/* ── SMALL-TABLET GRID BUMP (641–768px) ──
   At iPad-Mini-class widths two columns stretch cards to ~360px ("stretched
   mobile"). Three columns read as an intentional compact tablet layout.
   Placed AFTER the ≤768 block so it wins only inside this range. */
@media (min-width: 641px) and (max-width: 768px) {
  .product-grid, .product-grid-3, .occasions-page-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ── UNIVERSAL RESPONSIVE HERO CONTAINER (All Viewports & Form Factors) ──
   1. Narrow Mobile & Folded Phones (<= 767px): 3:4 portrait frame, mobile image.
   2. Unfolded Foldables (600-767px with square aspect-ratio >= 4/5): 16:10 frame, desktop/tablet image.
   3. Tablets in Portrait & Landscape (768-1023px): 16:9 cinematic frame, desktop/tablet image.
   4. Desktop / Laptop / PC (>= 1024px): 16:6.5 wide cinematic frame, desktop image (max-height capped).
   5. Ultrawide Desktops (>= 1920px): capped at 540px height to prevent banner blowout.
   6. Phones in Landscape (height <= 500px): 16:7 panoramic frame, desktop image.
   Works universally on all devices without user-agent sniffing or device whitelists. */

@media (min-width: 768px) and (max-width: 1023px) {
  .mobile-hero {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    min-height: 0;
    max-height: none;
    border-radius: 0 0 32px 32px;
    margin: 0;
  }
  .mobile-hero-cta {
    top: var(--d-top, var(--m-top, 75%));
    left: var(--d-left, var(--m-left, 5%));
    width: var(--d-w, var(--m-w, auto));
    height: var(--d-h, var(--m-h, auto));
    font-size: var(--d-fs, var(--m-fs, 14px));
    background: var(--d-bg, var(--m-bg, var(--accent)));
    color: var(--d-c, var(--m-c, #ffffff));
  }
}

@media (min-width: 1024px) {
  .mobile-hero {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    min-height: 0;
    max-height: none;
    border-radius: 0 0 36px 36px;
    margin: 0;
  }
  .mobile-hero-cta {
    top: var(--d-top, var(--m-top, 75%));
    left: var(--d-left, var(--m-left, 5%));
    width: var(--d-w, var(--m-w, auto));
    height: var(--d-h, var(--m-h, auto));
    font-size: var(--d-fs, var(--m-fs, 14px));
    background: var(--d-bg, var(--m-bg, var(--accent)));
    color: var(--d-c, var(--m-c, #ffffff));
  }
}

@media (orientation: landscape) and (max-height: 500px) {
  .mobile-hero {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 7;
    min-height: 220px;
    max-height: 360px;
    border-radius: 0 0 20px 20px;
    margin: 0;
  }
  .mobile-hero-cta {
    top: var(--m-top, 70%);
    left: var(--m-left, 6%);
    font-size: clamp(10px, 2.5vw, 12px);
    height: clamp(32px, 8vh, 40px);
    padding: 0 16px;
  }
}

/* ═══════════════════════════════════════════
   TOUCH TABLETS (≥768px): HEADER
   Left-aligned logo next to hamburger (phone reference);
   inherits desktop full cart drawer (420px, normal sizing).
   ═══════════════════════════════════════════ */
@media (any-pointer: coarse) and (min-width: 768px) {
  /* ── HEADER: LEFT-ALIGNED LOGO (match phone reference) ──
     Tablet header uses the same flex pattern as phones: hamburger → logo → actions.
     No absolute positioning centering — logo sits naturally after hamburger. */
  header#siteHeader {
    position: static;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    padding: 0 16px;
  }
  header .header-logo-img {
    position: static;
    transform: none;
    height: 42px;
    flex-shrink: 0;
  }
  header .header-actions {
    margin-left: auto;
    position: static;
    z-index: auto;
  }
  header .mobile-hamburger {
    position: static;
    z-index: auto;
  }
}

/* ── TOUCH TABLETS (≥769px): MOBILE CONTENT ARRANGEMENT ──
   Larger touch tablets (iPad Air/Pro, Surface) fell through to desktop
   multi-column/row arrangements in a few CONTENT sections, while phones and
   iPad Mini (≤768) already stacked them. Extends the SAME touch single source
   of truth (any-pointer: coarse) used by header/hero/cart/footer so every
   touch tablet matches the phone reference arrangement. Declared AFTER the
   ≤768 phone blocks (which already cover phones + iPad Mini) so this only
   affects the larger touch tablets. Layout/arrangement only — no colors,
   no buttons, no badge styling. */
@media (any-pointer: coarse) and (min-width: 769px) {
  /* NEWSLETTER: stack the form vertically (phone pattern), not the desktop
     horizontal input+button row. */
  .newsletter-form { flex-direction: column; gap: 14px; max-width: 480px; }
  .newsletter-input { width: 100%; }
  .newsletter-btn { width: 100%; justify-content: center; }
  .newsletter-sub { margin-bottom: 26px; }

  /* WHY CHOOSE US (ingredients): stack single-column (phone pattern) instead
     of the over-wide desktop 3-column row. */
  .ingredients-grid { grid-template-columns: 1fr; }
  .ingredient-card {
    padding: 28px 20px;
    border-right: none;
    border-bottom: 1px solid var(--glass-border);
  }
  .ingredient-card:last-child { border-bottom: none; }
}

/* ═══════════════════════════════════════════
   FOOTER ACCORDION — SINGLE SOURCE OF TRUTH (TOUCH)
   ═══════════════════════════════════════════
   The collapse/expand footer is driven by touch modality (any-pointer: coarse,
   the SAME flag that drives hero treatment, the cart drawer style and the
   hamburger nav), NOT by a raw width breakpoint. Any touch device — phone or
   tablet, at ANY width — gets the compact accordion footer; only genuine
   mouse/desktop (pointer: fine) contexts keep the expanded flat list from
   footer.css. mobile.css loads after footer.css so this overrides it for
   touch devices. */
@media (any-pointer: coarse) {
  /* Stack the footer single-column on ALL touch devices (phones + tablets),
     matching the phone layout. Overrides the 2-col grid that the
     width-based (max-width:1024px) tablet rule forces on ≥769px touch tablets. */
  .footer-top { grid-template-columns: 1fr; gap: 0; padding: 0; }
  .footer-brand-col {
    padding: 24px 16px 20px; max-width: 100%;
    border-bottom: 1px solid #E9DDD1;
    text-align: center;
  }
  .footer-brand-name { font-size: 24px; margin-bottom: 10px; }
  .footer-tagline { font-size: 13px; max-width: 100%; }
  .footer-social { justify-content: center; }
  .footer-contact-row { text-align: center; }
  .footer-col-wrap {
    border-bottom: 1px solid #E9DDD1;
  }
  .footer-col-head {
    display: flex; align-items: center;
    justify-content: space-between;
    padding: 16px; cursor: pointer;
    min-height: 48px;
    font-size: 9.5px; letter-spacing: 0.32em;
    text-transform: uppercase; color: #4F4A43;
    font-weight: 600; user-select: none; margin-bottom: 0;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.25s ease;
  }
  .footer-col-head:active {
    color: #D98F91;
  }
  .footer-col-head::after {
    content: '+'; font-size: 18px; font-weight: 200;
    color: #B5AC9F;
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), color 0.3s ease;
    line-height: 1;
    display: flex; align-items: center;
  }
  .footer-col-head.open { color: #4F4A43; }
  .footer-col-head.open::after {
    transform: rotate(45deg);
    color: var(--accent);
  }
  .footer-col-body {
    max-height: 0; overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.22,1,0.36,1);
    padding: 0 16px;
  }
  .footer-col-body.open {
    max-height: 320px;
    padding: 0 16px 16px;
  }
  .footer-link { font-size: 13px; margin-bottom: 10px; touch-action: manipulation; }
  .footer-link::after { display: none; }
  .footer-payment-row {
    flex-direction: column; gap: 12px;
    padding: 20px 16px; text-align: center;
    border-top: 1px solid #E9DDD1;
  }
  .footer-payment-label { font-size: 8px; letter-spacing: 0.26em; }
  .footer-payment-icons { justify-content: center; gap: 8px; }
  .payment-icon { font-size: 10px; padding: 4px 10px; border-radius: 6px; }
  .footer-bottom { padding: 20px 16px; border-top: 1px solid #E9DDD1; }
  .footer-trust-badges { gap: 12px; margin-bottom: 14px; justify-content: center; }
  .footer-trust-item { font-size: 9px; color: #7A746B; }
  .footer-legal-row { flex-direction: column; text-align: center; gap: 10px; }
  .footer-copyright { font-size: 10px; }
  .footer-legal { gap: 16px; justify-content: center; }
  .footer-legal a { font-size: 10px; }
}

/* ═══════════════════════════════════════════
   "ALMOST GONE" / URGENCY — single source of truth
   Every touch device (any-pointer: coarse, ANY width) renders the urgency
   list STACKED / single-column, one item per row full-width — exactly the
   mobile presentation on phones and iPad Mini. Quick/pure-pointer desktop
   (pointer: fine) keeps the 3-column horizontal row from components.css.
   mobile.css loads last so this overrides it for every touch device.
   ═══════════════════════════════════════════ */
@media (any-pointer: coarse) {
  .urgency-grid { grid-template-columns: 1fr; gap: 12px; }
  .urgency-card { padding: 14px 16px; border-radius: 14px; }
  .urgency-icon { font-size: 32px; }
  .urgency-name { font-size: 14px; }
  .urgency-stock { font-size: 10px; }
  .urgency-price { font-size: 13px; }
  .urgency-card .pdp-cta-sm {
    min-width: 90px;
    height: 44px;
    flex: 0 0 auto;
    font-size: 10px;
    border-radius: 12px;
    padding: 0 16px;
    justify-content: center;
  }
}

/* ═══════════════════════════════════════════
   ACCOUNT PAGE — SINGLE-COLUMN CARD LAYOUT (TOUCH)
   ═══════════════════════════════════════════
   The account/profile page must use the clean single-column card layout on
   EVERY touch device (any-pointer: coarse — the SAME single source of truth
   that drives the footer, hero and cart-styling) at ANY width, not just on
   phones. Previously the collapse + the mobile-acc component styles lived only
   inside a (max-width:768px) gate, so touch tablets (>768px) got the mobile
   menu markup from showMobileAccMenu() but the desktop sidebar+grid CSS — the
   oversized-avatar broken page. mobile.css loads last, so this overrides the
   desktop .account-layout for touch; genuine mouse/desktop (pointer: fine)
   keeps the sidebar, and phones are unaffected (this merely re-applies what
   they already had). Also centers the content at a comfortable width, which
   fixes the previously cramped "My Orders" card column on tablets as a bonus. */
@media (any-pointer: coarse) {
  .account-layout { display: block; padding: 0; gap: 0; min-height: auto; }
  .account-nav { display: none !important; }

  #accountContent {
    padding: 16px !important;
    min-height: 100vh;
    max-width: 760px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
  }
  #accountContent .admin-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  #accountContent .admin-table { min-width: 600px; }
  #accountContent .admin-table td, #accountContent .admin-table th { white-space: nowrap; }
  #accountContent div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  #accountContent .dash-stats-grid { grid-template-columns: 1fr 1fr !important; }
  #accountContent div[style*="max-width:700px"] { max-width: 100% !important; }
  #accountContent .order-timeline { flex-wrap: wrap; gap: 4px; }
  #accountContent .order-timeline .timeline-step { min-width: 60px; }
  #accountContent .order-timeline .timeline-connector { width: 16px; }

  /* Mobile account menu (single-column cards) */
  .mobile-acc-header {
    background: white; border-radius: 16px; padding: 28px 24px 24px;
    margin-bottom: 16px; text-align: center;
    border: 1px solid var(--mist);
  }
  .mobile-acc-avatar {
    width: 64px; height: 64px; border-radius: 50%;
    margin: 0 auto 12px; overflow: hidden;
    border: 2px solid var(--ivory);
    display: flex; align-items: center; justify-content: center;
    font-size: 30px;
  }
  .mobile-acc-avatar img { width: 100%; height: 100%; object-fit: cover; }
  .mobile-acc-name { font-family: 'Cormorant Garamond', serif; font-size: 20px; color: var(--noir); font-weight: 400; }
  .mobile-acc-email { font-size: 12px; color: var(--ash); margin-top: 4px; }
  .mobile-acc-menu { display: flex; flex-direction: column; gap: 8px; }
  .mobile-acc-menu-item {
    display: flex; align-items: center; gap: 14px;
    padding: 16px 18px; background: white; border-radius: 14px;
    border: 1px solid var(--mist); cursor: pointer;
    transition: all 0.15s;
  }
  .mobile-acc-menu-item:active { transform: scale(0.98); background: var(--ivory); }
  .mobile-acc-menu-icon { font-size: 18px; width: 28px; text-align: center; }
  .mobile-acc-menu-label { flex: 1; font-size: 14px; font-weight: 500; color: var(--noir); }
  .mobile-acc-menu-arrow { font-size: 14px; color: var(--ash); }

  /* Mobile section bar (sticky back + title) */
  .mobile-section-bar {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 4px; margin-bottom: 16px;
  }
  .mobile-section-back {
    width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid var(--mist); background: white;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 16px; flex-shrink: 0;
    transition: background 0.15s;
  }
  .mobile-section-back:active { background: var(--ivory); }
  .mobile-section-title { font-size: 16px; font-weight: 500; color: var(--noir); flex: 1; }

  /* Premium order details */
  .order-detail-container { padding: 20px !important; border-radius: var(--radius-md) !important; }
  .premium-stepper { padding: 14px; gap: 0; }
  .stepper-step { min-width: 50px; }
  .stepper-dot { width: 30px; height: 30px; font-size: 12px; }
  .stepper-label { font-size: 8px; white-space: normal; word-break: break-word; max-width: 55px; }
  .stepper-connector { width: 18px; margin-top: 14px; }
  .order-info-grid { grid-template-columns: 1fr !important; }
  #invoicePrintArea { padding: 20px !important; max-width: 100% !important; }
  #invoicePrintArea div[style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
#invoiceActions { flex-direction: column; align-items: stretch; }
  #invoiceActions button { width: 100%; }
}

/* ── WHATSAPP FAB (mobile) ── */
.wa-fab {
  right: max(14px, env(safe-area-inset-right, 0px));
  bottom: max(14px, env(safe-area-inset-bottom, 0px));
  width: 50px;
  height: 50px;
}
.wa-fab svg {
  width: 24px;
  height: 24px;
}
