@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,500;1,400;1,500&display=swap');

/* Define Cascade Layers */
@layer reset, base, theme, components, utilities;

@layer reset {
  *, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: none;
    text-size-adjust: none;
  }

  html { overflow-x: clip; }

  body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }

  img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
    height: auto;
  }

  input, button, textarea, select {
    font: inherit;
  }

  button {
    cursor: pointer;
    background: none;
    border: none;
  }

  a {
    text-decoration: none;
    color: inherit;
  }

  ul, ol {
    list-style: none;
  }
}

@layer base {
  :root {
    /* Color Scheme configuration */
    color-scheme: dark;
    
    /* Design Tokens: Colors (HSL-based for fine-tuning).
       Deep plum-black base + refined rose primary + champagne-gold accent,
       tuned for a highly premium-boutique editorial read. */
    --color-bg: hsl(330 35% 7%);
    --color-surface: hsl(328 25% 10%);
    --color-surface-elevated: hsl(326 22% 15%);
    --color-border: hsl(330 18% 28% / 0.7);
    --color-border-glow: hsl(338 78% 62% / 0.28);

    --color-primary: hsl(338 76% 60%);
    --color-primary-deep: hsl(344 70% 46%);
    --color-primary-glow: hsl(338 76% 60% / 0.26);
    --color-primary-hover: hsl(338 80% 67%);

    --color-accent: hsl(40 64% 68%);
    --color-accent-deep: hsl(36 52% 52%);
    --color-accent-hover: hsl(40 66% 76%);

    --color-text: hsl(36 30% 96%);
    --color-text-muted: hsl(330 10% 71%);
    --color-text-dark: hsl(330 22% 7%);

    --color-success: hsl(150 62% 46%);
    --color-error: hsl(354 82% 62%);
    
    /* Typography Tokens */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --font-accent: 'Outfit', -apple-system, sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Shadows — layered, warm-black, for real depth */
    --shadow-soft: 0 10px 40px -8px rgba(0, 0, 0, 0.55);
    --shadow-card: 0 3px 10px -2px rgba(0, 0, 0, 0.35);
    --shadow-card-hover: 0 22px 46px -14px rgba(0, 0, 0, 0.62);
    --shadow-glow: 0 0 24px var(--color-primary-glow);
    --shadow-accent-glow: 0 0 18px hsl(40 64% 68% / 0.22);

    /* Spacing rhythm — consistent vertical cadence between sections */
    --space-section: clamp(3.5rem, 2rem + 6vw, 6.5rem);
  }

  body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1rem;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background-image:
      /* Film grain, inlined. This used to point at a stranger's Vercel demo
         (grainy-gradients.vercel.app), which 404s — so the texture never
         actually rendered, and every visitor's browser pinged a third party
         on every page load to find that out. Same effect, no request. */
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E"),
      radial-gradient(ellipse 100% 60% at 50% -10%, hsl(338 76% 60% / 0.15) 0%, transparent 65%),
      radial-gradient(circle at 92% 80%, hsl(40 64% 68% / 0.08) 0%, transparent 45%),
      radial-gradient(circle at 6% 96%, hsl(338 76% 50% / 0.07) 0%, transparent 45%);
    background-attachment: fixed;
  }

  h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
  }

  /* Custom Focus outline */
  :focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 4px;
  }

  /* Customized Scrollbars */
  html {
    scrollbar-color: var(--color-primary-glow) var(--color-surface);
    scrollbar-width: thin;
  }

  ::-webkit-scrollbar {
    width: 8px;
  }
  ::-webkit-scrollbar-track {
    background: var(--color-bg);
  }
  ::-webkit-scrollbar-thumb {
    background: var(--color-surface-elevated);
    border: 2px solid var(--color-bg);
    border-radius: 4px;
    transition: background var(--transition-fast);
  }
  ::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
  }

  /* Customize Selection Colors */
  ::selection {
    background-color: var(--color-primary);
    color: var(--color-bg);
  }
}

@layer theme {
}

@layer components {
  /* Brand Navigation Bar */
  .navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 16, 0.78);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 1.1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background var(--transition-fast);
  }

  .nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  .nav-logo-img {
    height: 42px;
    width: 42px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--color-primary);
    box-shadow: var(--shadow-glow);
  }

  .nav-brand-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--color-text) 50%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.01em;
  }

  .nav-links {
    display: flex;
    gap: 2rem;
  }

  @media (max-width: 768px) {
    .nav-links {
      display: none; /* In production, a mobile burger menu, but for single-page we focus on CTAs */
    }
  }

  .nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
    position: relative;
    padding-block: 0.25rem;
  }

  .nav-link:hover {
    color: var(--color-text);
  }

  .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition-fast);
  }

  .nav-link:hover::after {
    width: 100%;
  }

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

  /* Cart Toggle Button */
  .cart-toggle {
    position: relative;
    padding: 0.5rem;
    color: var(--color-text);
    transition: transform var(--transition-fast), color var(--transition-fast);
    min-inline-size: 40px;
    min-block-size: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--color-surface-elevated);
    border: 1px solid var(--color-border);
  }

  .cart-toggle:hover {
    transform: scale(1.05);
    color: var(--color-primary);
    border-color: var(--color-primary-glow);
    box-shadow: 0 0 10px var(--color-primary-glow);
  }

  .cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--color-primary);
    color: var(--color-text-dark);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    box-shadow: var(--shadow-glow);
  }

  /* Action Buttons */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    letter-spacing: -0.01em;
    min-block-size: 44px; /* Touch target minimum */
  }

  .btn-primary {
    background-color: var(--color-primary);
    color: var(--color-bg);
    box-shadow: var(--shadow-glow);
  }

  .btn-primary:hover:not(:disabled) {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 25px var(--color-primary);
  }

  .btn-primary:active:not(:disabled) {
    transform: translateY(0);
  }

  .btn-secondary {
    background-color: transparent;
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
  }

  .btn-secondary:hover:not(:disabled) {
    background-color: hsl(35 60% 65% / 0.1);
    color: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    transform: translateY(-2px);
  }

  .btn-ghost {
    background-color: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-border);
  }

  .btn-ghost:hover:not(:disabled) {
    background-color: var(--color-surface-elevated);
    border-color: var(--color-text-muted);
  }

  .btn-whatsapp {
    background-color: var(--color-success);
    color: var(--color-text-dark);
    box-shadow: 0 0 15px rgba(20, 190, 80, 0.25);
  }

  .btn-whatsapp:hover:not(:disabled) {
    background-color: hsl(145 80% 52%);
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(20, 190, 80, 0.5);
  }

  .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }

  /* Hero Section */
  .hero {
    position: relative;
    padding: 6.5rem 2rem 4.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(135deg, rgba(255,255,255,0.025) 0%, rgba(255,255,255,0.01) 100%);
    overflow: hidden;
  }

  .highlights {
    max-width: 1220px;
    margin: -1rem auto 0;
    padding: 0 2rem 3rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }

  .highlights-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018));
    border: 1px solid var(--color-border);
    border-radius: 18px;
    padding: 1.15rem 1.2rem;
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    box-shadow: 0 10px 24px rgba(0,0,0,0.2);
  }

  .highlights-card h3 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
    color: var(--color-text);
  }

  .highlights-card p {
    font-size: 0.92rem;
    color: var(--color-text-muted);
    line-height: 1.5;
  }

  @media (max-width: 900px) {
    .highlights {
      grid-template-columns: 1fr;
    }
  }

  /* Catalog Controls */
  .catalog-controls {
    padding: 2.5rem 2rem 1rem;
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
    z-index: 10;
  }

  .catalog-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    background: rgba(18, 18, 24, 0.5);
    border: 1px solid var(--color-border);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    backdrop-filter: blur(8px);
  }

  .filter-tabs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: none; /* Hide scrollbar for tabs */
  }
  .filter-tabs::-webkit-scrollbar {
    display: none;
  }

  .filter-tab {
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: all var(--transition-fast);
    white-space: nowrap;
    border: 1px solid transparent;
  }

  .filter-tab:hover {
    color: var(--color-text);
    background-color: var(--color-surface-elevated);
  }

  .filter-tab.active {
    color: var(--color-text);
    background-color: hsl(334 100% 58% / 0.12);
    border-color: var(--color-primary-glow);
    box-shadow: 0 0 10px rgba(255, 42, 133, 0.1);
  }

  .catalog-search-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-grow: 1;
    max-width: 380px;
  }

  @media (max-width: 768px) {
    .catalog-search-wrap {
      max-width: 100%;
      width: 100%;
    }
  }

  .search-input {
    width: 100%;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    padding: 0.65rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border var(--transition-fast), box-shadow var(--transition-fast);
  }

  .search-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 10px var(--color-primary-glow);
  }

  /* Catalog Layout */
  .catalog-section {
    padding: 1rem 2rem 5rem;
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
    flex-grow: 1;
  }

  .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
  }

  /* Product Card Component */
  .product-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
    display: flex;
    flex-direction: column;
    position: relative;
    content-visibility: auto;
    contain-intrinsic-size: auto 420px;
  }

  .product-card:hover {
    transform: translateY(-6px);
    border-color: var(--color-primary-glow);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 15px var(--color-border-glow);
  }

  .product-img-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: var(--color-surface-elevated);
  }

  .product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
  }

  .product-card:hover .product-img {
    transform: scale(1.08);
  }

  .product-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2;
    padding: 0.3rem 0.75rem;
    background: rgba(11, 11, 15, 0.8);
    backdrop-filter: blur(4px);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .product-info {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 0.5rem;
  }

  .product-cat {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    font-weight: 500;
  }

  .product-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--color-text);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    /* Two lines: most real product names need them, and clamping at one was
       cutting half the catalogue off mid-word. The min-height keeps the price
       rows on a shared baseline across the grid. */
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 2.6em;
  }

  .product-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.25rem;
  }

  .product-price {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-accent);
  }

  .product-price::before {
    content: 'KES ';
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-muted);
  }

  .product-card-btn {
    background: transparent;
    border: 1px solid var(--color-primary-glow);
    color: var(--color-primary);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all var(--transition-fast);
  }

  .product-card-btn:hover {
    background-color: var(--color-primary);
    color: var(--color-bg);
    box-shadow: 0 0 10px var(--color-primary-glow);
  }

  /* Modern Dialog Modals (Top Layer Animations) */
  dialog {
    border: none;
    border-radius: 16px;
    background-color: var(--color-surface);
    color: var(--color-text);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 1px 1px var(--color-border);
    margin: auto;
    max-width: 90%;
    width: 650px;
    padding: 2rem;
    max-height: 90dvh;
    overflow-y: auto;
    
    /* Animation definition */
    opacity: 0;
    transform: scale(0.95);
    transition-property: opacity, transform, display, overlay;
    transition-duration: var(--transition-smooth);
    transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
    transition-behavior: allow-discrete;
  }

  dialog[open] {
    opacity: 1;
    transform: scale(1);

    @starting-style {
      opacity: 0;
      transform: scale(0.95);
    }
  }

  dialog::backdrop {
    background-color: rgba(6, 6, 8, 0);
    backdrop-filter: blur(0px);
    transition:
      display var(--transition-smooth) allow-discrete,
      overlay var(--transition-smooth) allow-discrete,
      background-color var(--transition-smooth),
      backdrop-filter var(--transition-smooth);
  }

  dialog[open]::backdrop {
    background-color: rgba(6, 6, 8, 0.75);
    backdrop-filter: blur(12px);

    @starting-style {
      background-color: rgba(6, 6, 8, 0);
      backdrop-filter: blur(0px);
    }
  }

  .dialog-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--color-surface-elevated);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    transition: all var(--transition-fast);
  }

  .dialog-close:hover {
    color: var(--color-text);
    border-color: var(--color-primary);
    box-shadow: 0 0 8px var(--color-primary-glow);
  }

  /* Product Details Content inside Modal */
  .details-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 0.5rem;
  }

  @media (max-width: 600px) {
    .details-modal-grid {
      grid-template-columns: 1fr;
      gap: 1.5rem;
    }
  }

  .details-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .details-title {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    font-family: var(--font-heading);
  }

  .details-price {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-accent);
  }
  .details-price::before {
    content: 'KES ';
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-muted);
  }

  .details-desc {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    text-wrap: pretty;
  }

  /* Cart Drawer Modal (Sliding from Right) */
  dialog#cart-drawer {
    margin-right: 0;
    margin-block: 0;
    height: 100dvh;
    max-height: 100dvh;
    width: 440px;
    max-width: 85%;
    border-radius: 0;
    border-left: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    
    /* Sliding animations */
    transform: translateX(100%);
    transition-property: transform, opacity, display, overlay;
  }

  dialog#cart-drawer[open] {
    transform: translateX(0);
    opacity: 1;

    @starting-style {
      transform: translateX(100%);
      opacity: 0;
    }
  }

  dialog#cart-drawer::backdrop {
    background-color: rgba(6, 6, 8, 0);
    backdrop-filter: blur(0px);
  }

  dialog#cart-drawer[open]::backdrop {
    background-color: rgba(6, 6, 8, 0.7);
    backdrop-filter: blur(8px);
  }

  .cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
  }

  .cart-title {
    font-size: 1.35rem;
    font-weight: 700;
    font-family: var(--font-heading);
  }

  .cart-items-list {
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding-right: 0.25rem;
  }

  .cart-item {
    display: grid;
    grid-template-columns: 70px 1fr auto;
    gap: 1rem;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 1rem;
  }

  .qty-btn {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-muted);
    border-radius: 2px;
    transition: all var(--transition-fast);
  }
  .qty-btn:hover {
    color: var(--color-text);
    background-color: rgba(255,255,255,0.05);
  }

  .cart-footer {
    border-top: 1px solid var(--color-border);
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 1.15rem;
  }

  .cart-total-price {
    color: var(--color-accent);
  }

  .cart-disclaimer {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-align: center;
    text-wrap: pretty;
  }

  /* Style Matcher / Fashion Quiz Modal */
  dialog#quiz-modal {
    width: 550px;
    max-width: 90%;
  }

  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .section-header {
    text-align: center;
    margin-bottom: 3rem;
  }

  .section-title {
    font-size: 2.25rem;
    font-weight: 700;
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
  }

  .section-desc {
    color: var(--color-text-muted);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
  }

  .instagram-card {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--color-border);
  }

  /* Footers */
  .footer {
    background-color: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: 4rem 2rem 2.5rem;
    margin-top: auto;
    text-align: center;
  }

  .footer-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.75rem;
    color: var(--color-text);
    margin-bottom: 0.75rem;
  }

  .footer-logo span {
    color: var(--color-primary);
  }

  .footer-desc {
    color: var(--color-text-muted);
    max-width: 500px;
    margin: 0 auto 2rem;
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .footer-socials {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
  }

  .footer-social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-surface-elevated);
    border: 1px solid var(--color-border);
    display: grid;
    place-items: center;
    color: var(--color-text-muted);
    transition: all var(--transition-fast);
  }

  .footer-social-link:hover {
    color: var(--color-text);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-glow);
    transform: scale(1.1);
  }

  .footer-copyright {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    border-top: 1px solid var(--color-border);
    padding-top: 1.5rem;
    max-width: 1300px;
    margin: 0 auto;
  }
}

@layer utilities {

  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
  }
}

/* Reduced Motion Override */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-delay: -1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    background-attachment: initial !important;
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }

  dialog, dialog#cart-drawer, dialog::backdrop, dialog[open]::backdrop {
    transform: none !important;
    transition-duration: 0.01ms !important;
  }

  @starting-style {
    dialog[open], dialog#cart-drawer[open] {
      transform: none !important;
    }
  }
}

/* High Contrast / Forced Colors Mode */
@media (forced-colors: active) {
  :root {
    --color-primary: Highlight;
    --color-accent: CanvasText;
  }

  .navbar, dialog, dialog#cart-drawer, .product-card, .btn {
    border: 1px solid CanvasText !important;
  }

  .cart-badge {
    background-color: Highlight;
    color: HighlightText;
  }

  .btn-primary {
    background-color: ButtonFace;
    color: ButtonText;
  }
}

/* ================================================================
   DELIVERY SECTION (inside Cart Drawer)
   ================================================================ */
.delivery-section {
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}

.delivery-section-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-accent);
  margin-bottom: 0.9rem;
}

.delivery-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: 0.4rem;
}

.delivery-select {
  width: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 0.6rem 0.9rem;
  border-radius: 7px;
  font-size: 0.88rem;
  appearance: auto;
  transition: border var(--transition-fast), box-shadow var(--transition-fast);
}

.delivery-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 8px var(--color-primary-glow);
}

.delivery-address-input {
  width: 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  padding: 0.6rem 0.9rem;
  border-radius: 7px;
  font-size: 0.88rem;
  resize: vertical;
  min-height: 64px;
  transition: border var(--transition-fast), box-shadow var(--transition-fast);
}

.delivery-address-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 8px var(--color-primary-glow);
}

/* ================================================================
   TACEY AI FLOATING CHAT WIDGET
   ================================================================ */
#tacey-ai-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

/* Mobile adjustments for widget */
@media (max-width: 480px) {
  #tacey-ai-widget {
    bottom: 1rem;
    right: 1rem;
  }

  .ai-bubble-label {
    display: none;
  }

  .ai-bubble-btn {
    border-radius: 50%;
    padding: 1rem;
  }
}

/* ===== How Ordering Works — trust section ===== */
.how-it-works {
  max-width: 1220px;
  margin: 0 auto;
  padding: 4.5rem 2rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.step-card {
  position: relative;
  background: linear-gradient(145deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018));
  border: 1px solid var(--color-border);
  border-radius: 18px;
  padding: 1.75rem 1.4rem 1.5rem;
  box-shadow: 0 10px 24px rgba(0,0,0,0.2);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.step-card:hover {
  border-color: var(--color-border-glow);
  transform: translateY(-3px);
}

.step-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-primary-glow);
  color: var(--color-primary);
  border: 1px solid var(--color-border-glow);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.step-card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  color: var(--color-text);
}

.step-card p {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

@media (max-width: 1000px) {
  .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 580px) {
  .steps-grid { grid-template-columns: 1fr; }
  .how-it-works { padding: 3rem 1.25rem; }
}

/* ===== Hero brand flyer ===== */
.hero { gap: 3rem; flex-wrap: wrap; }

@media (max-width: 940px) {
  .hero { flex-direction: column; text-align: center; }
}

.dept-card {
  position: relative;
  display: block;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  min-height: 300px;
  background: linear-gradient(160deg, var(--color-surface-elevated), var(--color-surface));
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.dept-card:hover,
.dept-card:focus-visible {
  transform: translateY(-6px);
  border-color: var(--color-primary-glow);
  box-shadow: 0 24px 50px rgba(0,0,0,0.45), 0 0 30px var(--color-primary-glow);
}

@media (max-width: 900px) {
  .dept-card, .dept-card-overlay { min-height: 220px; }
}

/* ===== Department page hero ===== */
.dept-hero {
  position: relative;
  padding: 5.5rem 2rem 3.5rem;
  text-align: center;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
}

.dept-hero-glow {
  position: absolute;
  width: 640px;
  height: 640px;
  left: 50%;
  top: -320px;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--color-primary-glow) 0%, transparent 60%);
  opacity: 0.6;
  pointer-events: none;
}

.dept-hero-content { position: relative; z-index: 2; max-width: 760px; margin: 0 auto; }

.dept-breadcrumb {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.dept-breadcrumb a { color: var(--color-text-muted); text-decoration: none; }
.dept-breadcrumb a:hover { color: var(--color-primary); }

.dept-hero-title {
  font-size: clamp(2.2rem, 1.4rem + 3.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 0.75rem;
  background: linear-gradient(to right, #fff 30%, var(--color-accent) 70%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.dept-hero-tag {
  color: var(--color-text-muted);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
  margin-bottom: 1.75rem;
}

.dept-switcher { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

.dept-chip {
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.25s ease;
}

.dept-chip:hover { border-color: var(--color-primary-glow); color: var(--color-text); }

.dept-chip.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-text-dark);
  box-shadow: 0 0 18px var(--color-primary-glow);
}

.nav-link.active { color: var(--color-primary); }

/* ===== Shelves ===== */
.shelves {
  max-width: 1300px;
  margin: 0 auto;
  padding: 2.5rem 2rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.shelf-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.shelf-title {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 1.1rem + 1vw, 1.7rem);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.shelf-blurb { color: var(--color-text-muted); font-size: 0.9rem; margin-top: 0.3rem; }

.shelf-arrows { display: flex; gap: 0.5rem; }

.shelf-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 1.4rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.shelf-arrow:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  box-shadow: 0 0 12px var(--color-primary-glow);
}

.shelf-track {
  display: flex;
  gap: 1.1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 0.25rem 1.1rem;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(to right, transparent, black 1.5%, black 98.5%, transparent);
}

.shelf-track .product-card {
  flex: 0 0 auto;
  width: min(260px, 74vw);
  scroll-snap-align: start;
}

.shelf-empty {
  text-align: center;
  padding: 4rem 1.5rem;
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}
.shelf-empty h2 { font-family: var(--font-heading); font-size: 1.5rem; }
.shelf-empty p { color: var(--color-text-muted); line-height: 1.6; }

@media (max-width: 580px) {
  .shelves { padding: 1.75rem 1.1rem 3rem; }
  .shelf-arrows { display: none; }
}

/* ===== Scroll reveal =====
   Gated on .reveal-enabled (set in the <head> only when the browser can run
   the observer). Anything not hidden here is simply visible, which is the
   correct fallback for a shop. */
.reveal-enabled .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: inherit;
}

.reveal-enabled .reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Low stock badge ===== */
.low-stock-badge {
  color: var(--color-accent) !important;
  border-color: var(--color-accent) !important;
  animation: low-stock-pulse 2s ease-in-out infinite;
}

@keyframes low-stock-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(233, 196, 139, 0.35); }
  50%      { box-shadow: 0 0 12px 2px rgba(233, 196, 139, 0.25); }
}

@media (prefers-reduced-motion: reduce) {
  .low-stock-badge { animation: none; }
}

/* ===== Detail modal availability line ===== */
.details-availability {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-success);
  margin-bottom: 0.9rem;
}

.details-availability.low { color: var(--color-accent); }
.details-availability.sold-out { color: var(--color-error); }

/* ===== Storefront toast ===== */
#shop-toast {
  position: fixed;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-primary-glow);
  color: var(--color-text);
  border-radius: 12px;
  padding: 0.75rem 1.3rem;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 9998;
  max-width: min(92vw, 480px);
  text-align: center;
  box-shadow: 0 14px 40px rgba(0,0,0,0.55), 0 0 18px var(--color-primary-glow);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

#shop-toast.show { transform: translateX(-50%) translateY(0); }

/* ===== Mobile nav: scrollable department row instead of hiding ===== */
@media (max-width: 768px) {
  .navbar { flex-wrap: wrap; row-gap: 0.4rem; }

  /* Keep the brand and the actions on one row — at full desktop size they
     overflow 390px and the actions drop to a row of their own, turning the
     header into three stacked rows before any content is visible. */
  .nav-brand-text { font-size: 1.15rem; }
  .nav-logo-img { height: 34px; width: 34px; }
  .nav-actions { gap: 0.55rem; }
  .cart-toggle, .wishlist-nav-btn { padding: 0.4rem; }
  .nav-links {
    display: flex !important;
    order: 3;
    width: 100%;
    gap: 1.25rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: none;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-link { white-space: nowrap; font-size: 0.9rem; }

  /* Only the three departments stay in the mobile strip. With the info
     pages in there too it ran past the edge and cut off mid-word, which
     reads as broken rather than scrollable — and every one of them is
     already a tap away in the drawer. */
  .nav-link-info { display: none; }

  /* Same reasoning for the Style Matcher button: the hero's "Find My
     Style" and the drawer both open it, so it only costs header space. */
  .nav-quiz-btn { display: none; }
}

/* ============================================================
   MOBILE HAMBURGER MENU
   ============================================================ */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: var(--color-surface-elevated);
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.mobile-menu-btn:hover {
  border-color: var(--color-primary-glow);
  box-shadow: 0 0 8px var(--color-primary-glow);
}

.mobile-menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition-fast);
  transform-origin: center;
}

.mobile-menu-btn.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-menu-btn.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.mobile-menu-btn.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Nav Drawer Backdrop */
.nav-drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(6, 6, 8, 0.7);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity var(--transition-smooth), visibility var(--transition-smooth);
}

/* Invisible but present on phones, so it must never catch taps unless the
   menu is open: without this it sat over the whole shop and swallowed
   every tap on products, the bag and the tab bar. */
.nav-drawer-backdrop { pointer-events: none; visibility: hidden; }

.nav-drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

/* Nav Drawer Panel */
.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 160;
  width: min(320px, 85vw);
  height: 100dvh;
  background: var(--color-surface);
  border-left: 1px solid var(--color-border);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  transform: translateX(100%);
  transition: transform var(--transition-smooth);
  overflow-y: auto;
}

/* The closed menu used to wait just off the right edge. Phone browsers
   fix the page width at load and counted it, so a 390px phone got a 722px
   page and every pop-up was centred off-screen. Now it waits invisibly
   inside the screen and slides a little way in when opened. */
.nav-drawer {
  transform: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.nav-drawer.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  animation: nav-drawer-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes nav-drawer-in { from { transform: translateX(28px); } }

@media (prefers-reduced-motion: reduce) { .nav-drawer.open { animation: none; } }

.nav-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-drawer-brand {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  background: linear-gradient(135deg, var(--color-text) 50%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.nav-drawer-close:hover {
  color: var(--color-text);
  border-color: var(--color-primary-glow);
}

.nav-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nav-drawer-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.nav-drawer-link:hover,
.nav-drawer-link.active {
  background: var(--color-surface-elevated);
  color: var(--color-text);
  border-color: var(--color-border);
}

.nav-drawer-divider {
  height: 1px;
  background: var(--color-border);
  margin: 0.5rem 0;
}

.nav-drawer-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }
  .nav-drawer-backdrop {
    display: block;
  }
}

/* ============================================================
   WISHLIST BUTTON & HEART
   ============================================================ */
.wishlist-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(11, 11, 15, 0.75);
  backdrop-filter: blur(4px);
  border: 1px solid var(--color-border);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--color-text-muted);
}

.wishlist-btn:hover {
  border-color: hsl(340 80% 60%);
  color: hsl(340 80% 65%);
  transform: scale(1.1);
}

.wishlist-btn.wishlisted {
  color: hsl(340 80% 65%);
  border-color: hsl(340 80% 60%);
  background: hsl(340 80% 60% / 0.15);
  animation: heart-pop 0.35s ease;
}

@keyframes heart-pop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.35); }
  70%  { transform: scale(0.9); }
  100% { transform: scale(1); }
}

/* Wishlist nav button */
.wishlist-nav-btn {
  position: relative;
  padding: 0.5rem;
  color: var(--color-text);
  transition: transform var(--transition-fast), color var(--transition-fast);
  min-inline-size: 40px;
  min-block-size: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
}

.wishlist-nav-btn:hover {
  transform: scale(1.05);
  color: hsl(340 80% 65%);
  border-color: hsl(340 80% 60% / 0.4);
}

.wishlist-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: hsl(340 80% 60%);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
  display: none;
}

.wishlist-badge.visible {
  display: block;
}

/* Wishlist Drawer */
dialog#wishlist-drawer {
  margin-right: 0;
  margin-block: 0;
  height: 100dvh;
  max-height: 100dvh;
  width: 440px;
  max-width: 85%;
  border-radius: 0;
  border-left: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  transform: translateX(100%);
  transition-property: transform, opacity, display, overlay;
}

dialog#wishlist-drawer[open] {
  transform: translateX(0);
  opacity: 1;

  @starting-style {
    transform: translateX(100%);
    opacity: 0;
  }
}

dialog#wishlist-drawer::backdrop {
  background-color: rgba(6, 6, 8, 0);
  backdrop-filter: blur(0px);
}

dialog#wishlist-drawer[open]::backdrop {
  background-color: rgba(6, 6, 8, 0.7);
  backdrop-filter: blur(8px);
}

.wishlist-items-list {
  flex-grow: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-right: 0.25rem;
  margin-top: 1rem;
}

.wishlist-item {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.wishlist-item-img {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--color-border);
  flex-shrink: 0;
}

.wishlist-item-info {
  flex: 1;
  min-width: 0;
}

.wishlist-item-name {
  font-weight: 600;
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wishlist-item-price {
  color: var(--color-accent);
  font-weight: 700;
  font-size: 0.85rem;
  margin-top: 0.2rem;
}

.wishlist-item-actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: flex-end;
}

.wishlist-add-btn {
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--color-primary);
  color: var(--color-bg);
  transition: all var(--transition-fast);
}
.wishlist-add-btn:hover {
  background: var(--color-primary-hover);
}

.wishlist-remove-btn {
  font-size: 0.78rem;
  color: var(--color-error);
  opacity: 0.8;
  transition: opacity var(--transition-fast);
}
.wishlist-remove-btn:hover { opacity: 1; }

.wishlist-footer {
  border-top: 1px solid var(--color-border);
  padding-top: 1.25rem;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ============================================================
   TESTIMONIALS SECTION
   ============================================================ */
.testimonials-section {
  padding: var(--space-section) 2rem;
  max-width: 1220px;
  margin: 0 auto;
  width: 100%;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.testimonial-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018));
  border: 1px solid var(--color-border);
  border-radius: 18px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary-glow);
}

.star-rating {
  display: flex;
  gap: 0.15rem;
}

.star {
  color: var(--color-accent);
  font-size: 1rem;
}

.star.empty {
  color: var(--color-surface-elevated);
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  font-style: italic;
  flex: 1;
}

.testimonial-text::before {
  content: '"';
  color: var(--color-primary);
  font-size: 1.5rem;
  font-family: var(--font-accent);
  line-height: 0;
  vertical-align: -0.4rem;
  margin-right: 0.15rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border);
}

.testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), hsl(270 70% 50%));
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  border: 2px solid var(--color-primary-glow);
}

.testimonial-name {
  font-weight: 700;
  font-size: 0.9rem;
}

.testimonial-location {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: 0.1rem;
}

.testimonial-verified {
  margin-left: auto;
  font-size: 0.72rem;
  color: var(--color-success);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* ============================================================
   WHATSAPP STICKY BUTTON
   ============================================================ */
.wa-sticky-btn {
  position: fixed;
  bottom: 6rem;
  left: 1.5rem;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: hsl(142 70% 45%);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.75rem 1.1rem 0.75rem 0.9rem;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 24px rgba(20, 190, 80, 0.4);
  transition: all var(--transition-fast);
  overflow: hidden;
  max-width: 56px;
}

.wa-sticky-btn:hover {
  max-width: 200px;
  box-shadow: 0 6px 30px rgba(20, 190, 80, 0.6);
  background: hsl(142 80% 40%);
}

.wa-sticky-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
}

.wa-sticky-label {
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-8px);
  transition: all 0.25s ease;
}

.wa-sticky-btn:hover .wa-sticky-label {
  opacity: 1;
  transform: translateX(0);
}

.wa-sticky-pulse {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: hsl(142 70% 45%);
  animation: wa-pulse 2.5s ease-out infinite;
  z-index: -1;
}

@keyframes wa-pulse {
  0%   { opacity: 0.7; transform: scale(1); }
  70%  { opacity: 0; transform: scale(1.5); }
  100% { opacity: 0; transform: scale(1.5); }
}

@media (max-width: 768px) {
  .wa-sticky-btn {
    bottom: 5rem;
    left: 1rem;
    padding: 0.75rem;
    max-width: 56px;
  }
  .wa-sticky-label { display: none; }
}

/* ============================================================
   SIZE PICKER (chips on product modal)
   ============================================================ */
.size-picker-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.size-picker-label {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}

.size-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.size-chip {
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.size-chip:hover {
  border-color: var(--color-primary-glow);
  color: var(--color-text);
  background: hsl(334 100% 58% / 0.05);
}

.size-chip.selected {
  background: hsl(334 100% 58% / 0.12);
  border-color: var(--color-primary);
  color: var(--color-text);
  box-shadow: 0 0 8px var(--color-primary-glow);
}

.size-required-note {
  font-size: 0.78rem;
  color: var(--color-error);
  margin-top: 0.25rem;
  display: none;
}

.size-required-note.visible {
  display: block;
  animation: fadeIn 0.2s ease;
}

/* ============================================================
   MULTI-IMAGE GALLERY (product detail modal)
   ============================================================ */
.details-gallery {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.details-main-img-wrap {
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  cursor: zoom-in;
}

.details-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.25s ease, transform var(--transition-smooth);
}

.details-main-img:hover {
  transform: scale(1.04);
}

.details-main-img.fade-out {
  opacity: 0;
}

.gallery-thumbnails {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
  scrollbar-width: none;
}

.gallery-thumbnails::-webkit-scrollbar {
  display: none;
}

.gallery-thumb {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-fast);
  background: var(--color-surface-elevated);
}

.gallery-thumb:hover {
  border-color: var(--color-primary-glow);
}

.gallery-thumb.active {
  border-color: var(--color-primary);
  box-shadow: 0 0 8px var(--color-primary-glow);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   DETAILS MODAL — Wishlist heart in modal
   ============================================================ */
.modal-wishlist-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.modal-wishlist-btn:hover {
  border-color: hsl(340 80% 60%);
  color: hsl(340 80% 65%);
}

.modal-wishlist-btn.wishlisted {
  color: hsl(340 80% 65%);
  border-color: hsl(340 80% 60%);
  background: hsl(340 80% 60% / 0.15);
}

/* Availability badges */
.details-availability {
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 6px;
  background: hsl(150 62% 46% / 0.12);
  color: var(--color-success);
  display: inline-block;
}

.details-availability.low {
  background: hsl(30 90% 60% / 0.12);
  color: hsl(30 90% 60%);
}

.details-availability.sold-out {
  background: hsl(354 82% 62% / 0.1);
  color: var(--color-error);
}

/* ═══════════════════════════════════════════════════════════════
   Sitewide footer (multi-column) + static content pages
   ═══════════════════════════════════════════════════════════════ */

@layer components {

  /* ── Footer: column grid ─────────────────────────────────── */
  .footer {
    text-align: left;
    padding: clamp(3rem, 2rem + 4vw, 4.5rem) clamp(1.25rem, 5vw, 3rem) 2rem;
  }

  .footer-grid {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr) 1.3fr;
    gap: clamp(1.75rem, 3vw, 3rem);
    align-items: start;
  }

  .footer-col-brand { max-width: 34ch; }

  .footer .footer-logo {
    display: inline-block;
    font-size: 1.5rem;
    transition: color var(--transition-fast);
  }

  .footer .footer-logo:hover { color: var(--color-primary); }

  .footer .footer-desc {
    margin: 0 0 1.5rem;
    max-width: none;
    font-size: 0.9rem;
  }

  .footer .footer-socials {
    justify-content: flex-start;
    gap: 0.75rem;
    margin-bottom: 0;
  }

  .footer-col-title {
    font-family: var(--font-accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 1.1rem;
  }

  .footer-links,
  .footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
  }

  .footer-links a {
    position: relative;
    font-size: 0.92rem;
    color: var(--color-text-muted);
    transition: color var(--transition-fast), padding-left var(--transition-fast);
  }

  .footer-links a::before {
    content: "→";
    position: absolute;
    left: -1rem;
    opacity: 0;
    color: var(--color-primary);
    transition: opacity var(--transition-fast);
  }

  .footer-links a:hover,
  .footer-links a:focus-visible {
    color: var(--color-text);
    padding-left: 0.35rem;
  }

  .footer-links a:hover::before,
  .footer-links a:focus-visible::before { opacity: 1; }

  .footer-contact-list li {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--color-text-muted);
  }

  .footer-contact-list a {
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
  }

  .footer-contact-list a:hover { color: var(--color-primary); }

  .footer-contact-icon { flex-shrink: 0; }

  .footer .footer-copyright {
    margin-top: clamp(2.25rem, 4vw, 3rem);
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    align-items: center;
    justify-content: space-between;
  }

  .footer-legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.25rem;
  }

  .footer-legal-links a {
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
  }

  .footer-legal-links a:hover { color: var(--color-primary); }

  @media (max-width: 900px) {
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-col-brand { grid-column: 1 / -1; max-width: 46ch; }
  }

  @media (max-width: 520px) {
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer .footer-copyright { justify-content: flex-start; }
  }

  /* ── Nav: WhatsApp button in the slim info-page header ────── */
  .btn-nav-wa {
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
    white-space: nowrap;
  }

  @media (max-width: 1080px) {
    .btn-nav-wa span { display: none; }
    .btn-nav-wa { padding: 0.6rem; }
  }

  /* ── Content pages: hero ─────────────────────────────────── */
  .page-hero {
    position: relative;
    padding: clamp(6.5rem, 5rem + 7vw, 9rem) clamp(1.25rem, 5vw, 3rem) clamp(2.5rem, 4vw, 3.5rem);
    text-align: center;
    overflow: hidden;
    border-bottom: 1px solid var(--color-border);
    background:
      radial-gradient(ellipse 70% 100% at 50% 0%, hsl(338 60% 24% / 0.55), transparent 70%),
      var(--color-surface);
  }

  .page-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-border-glow), transparent);
  }

  .page-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--color-text-muted);
    margin-bottom: 1.1rem;
  }

  .page-breadcrumb a {
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
  }

  .page-breadcrumb a:hover { color: var(--color-primary); }

  .page-breadcrumb [aria-current="page"] { color: var(--color-text); }

  .page-eyebrow {
    display: inline-block;
    font-family: var(--font-accent);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-accent);
    border: 1px solid hsl(40 64% 68% / 0.35);
    border-radius: 100px;
    padding: 0.35rem 0.9rem;
    margin-bottom: 1rem;
  }

  .page-title {
    font-family: var(--font-heading);
    font-size: clamp(2.1rem, 1.4rem + 3.4vw, 3.4rem);
    line-height: 1.1;
    margin-bottom: 0.85rem;
  }

  .page-lede {
    max-width: 62ch;
    margin: 0 auto;
    color: var(--color-text-muted);
    font-size: clamp(0.98rem, 0.94rem + 0.2vw, 1.1rem);
    line-height: 1.65;
  }

  /* ── Content pages: body ─────────────────────────────────── */
  .page-body {
    max-width: 78ch;
    margin: 0 auto;
    padding: clamp(2.5rem, 2rem + 3vw, 4rem) clamp(1.25rem, 5vw, 3rem) clamp(3rem, 5vw, 5rem);
  }

  .page-body-wide { max-width: 1100px; }

  .page-section + .page-section { margin-top: clamp(2.5rem, 4vw, 3.5rem); }

  .page-section h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem);
    margin-bottom: 0.9rem;
  }

  .page-section h3 {
    font-family: var(--font-accent);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--color-text);
  }

  .page-section p {
    color: var(--color-text-muted);
    line-height: 1.75;
    margin-bottom: 1rem;
  }

  .page-section p:last-child { margin-bottom: 0; }

  .page-section a:not(.btn):not(.info-card):not(.link-tile) {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    text-decoration-color: hsl(338 76% 60% / 0.4);
    transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
  }

  .page-section a:not(.btn):not(.info-card):not(.link-tile):hover {
    color: var(--color-primary-hover);
    text-decoration-color: currentColor;
  }

  .page-list {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin-bottom: 1rem;
  }

  .page-list li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--color-text-muted);
    line-height: 1.65;
  }

  .page-list li::before {
    content: "✦";
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-size: 0.8rem;
    top: 0.28em;
  }

  /* ── M-Pesa paybill card ─────────────────────────────────
     The numbers themselves live once, in partials/paybill.html, and are
     stitched into every page that shows them. A paybill that drifts out of
     sync sends a customer's money somewhere else, so it gets one source. */
  .paybill-card {
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-primary);
    border-radius: 12px;
    background: var(--color-surface);
    padding: clamp(1.1rem, 3vw, 1.5rem);
    margin: 1.25rem 0;
  }

  .paybill-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.9rem;
  }

  .paybill-rows {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 2.5rem;
  }

  .paybill-row dt {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.15rem;
  }

  .paybill-row dd {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, 1.9rem);
    font-weight: 800;
    color: var(--color-text);
    /* Long digit strings are read aloud and typed by hand — keep them
       unambiguous and easy to select. */
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
    user-select: all;
  }

  .paybill-note {
    margin-top: 1rem;
    font-size: 0.88rem;
    color: var(--color-text-muted);
    line-height: 1.6;
  }

  /* ── Info cards ──────────────────────────────────────────── */
  .info-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
  }

  .info-card {
    display: block;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 1.35rem;
    transition: border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  }

  a.info-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-card-hover);
  }

  .info-card-icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.6rem;
  }

  .info-card h3 { margin-bottom: 0.4rem; }

  .info-card p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0;
  }

  .info-card-cta {
    display: inline-block;
    margin-top: 0.75rem;
    font-family: var(--font-accent);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
  }

  /* ── FAQ accordion ───────────────────────────────────────── */
  .faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .faq-item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color var(--transition-fast);
  }

  .faq-item[open] { border-color: var(--color-border-glow); }

  .faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 1.1rem 3rem 1.1rem 1.25rem;
    position: relative;
    font-family: var(--font-accent);
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-text);
  }

  .faq-item summary::-webkit-details-marker { display: none; }

  .faq-item summary::after {
    content: "+";
    position: absolute;
    right: 1.25rem;
    top: 50%;
    translate: 0 -50%;
    font-size: 1.4rem;
    line-height: 1;
    color: var(--color-primary);
    transition: rotate var(--transition-fast);
  }

  .faq-item[open] summary::after { rotate: 45deg; }

  .faq-item summary:hover { color: var(--color-primary); }

  .faq-answer {
    padding: 0 1.25rem 1.25rem;
    color: var(--color-text-muted);
    line-height: 1.7;
  }

  .faq-answer p { margin-bottom: 0.75rem; }
  .faq-answer p:last-child { margin-bottom: 0; }

  /* ── Tables (delivery rates, size charts) ────────────────── */
  .table-scroll {
    overflow-x: auto;
    margin: 1.25rem 0;
    border: 1px solid var(--color-border);
    border-radius: 14px;
  }

  .data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 380px;
  }

  .data-table caption {
    caption-side: top;
    text-align: left;
    padding: 0.9rem 1.1rem 0;
    font-size: 0.8rem;
    color: var(--color-text-muted);
  }

  .data-table th,
  .data-table td {
    padding: 0.8rem 1.1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
  }

  .data-table thead th {
    font-family: var(--font-accent);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
    background: var(--color-surface-elevated);
  }

  .data-table tbody tr:last-child td { border-bottom: none; }
  .data-table tbody tr:hover { background: hsl(338 40% 20% / 0.25); }
  .data-table td { color: var(--color-text-muted); }
  .data-table td:first-child { color: var(--color-text); font-weight: 500; }

  /* ── Contextual internal-link tiles ──────────────────────── */
  .link-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
    gap: 0.85rem;
    margin-top: 1.5rem;
  }

  .link-tile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.95rem 1.1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 100px;
    font-family: var(--font-accent);
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--color-text);
    transition: all var(--transition-fast);
  }

  .link-tile:hover {
    border-color: var(--color-primary);
    background: var(--color-surface-elevated);
    transform: translateY(-2px);
  }

  .link-tile-emoji { font-size: 1.15rem; }

  /* ── Closing CTA band ────────────────────────────────────── */
  .page-cta {
    margin-top: clamp(3rem, 5vw, 4.5rem);
    padding: clamp(2rem, 4vw, 3rem);
    text-align: center;
    border-radius: 22px;
    border: 1px solid var(--color-border);
    background:
      radial-gradient(ellipse 80% 120% at 50% 0%, hsl(338 60% 26% / 0.5), transparent 70%),
      var(--color-surface);
  }

  .page-cta h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 1.2rem + 1vw, 2rem);
    margin-bottom: 0.6rem;
  }

  .page-cta p {
    color: var(--color-text-muted);
    max-width: 52ch;
    margin: 0 auto 1.5rem;
    line-height: 1.65;
  }

  .page-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
  }

  /* ── 404 ─────────────────────────────────────────────────── */
  .notfound-code {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(4.5rem, 3rem + 12vw, 9rem);
    line-height: 1;
    background: linear-gradient(135deg, var(--color-text) 40%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
  }
}

@layer components {
  /* Contextual link row under the ordering steps */
  .how-it-works-links {
    max-width: 1000px;
    margin-inline: auto;
    justify-content: center;
  }

  /* Cross-link block at the foot of a department page */
  .dept-help {
    max-width: 1100px;
    margin: 0 auto;
    padding: var(--space-section) clamp(1.25rem, 5vw, 3rem) 0;
  }

  .dept-help .info-card-grid { margin-top: 0; }
}

@layer components {
  /* The mobile nav row scrolls horizontally. Without an edge fade it just
     looks like the last link is cut off, so hint that there is more. */
  @media (max-width: 768px) {
    .nav-links {
      -webkit-mask-image: linear-gradient(to right, #000 85%, transparent 100%);
      mask-image: linear-gradient(to right, #000 85%, transparent 100%);
      padding-right: 1.5rem;
    }

    /* Tables get the full width on small screens. */
    .page-body .table-scroll {
      margin-inline: calc(clamp(1.25rem, 5vw, 3rem) * -0.5);
    }

    .data-table th,
    .data-table td { padding: 0.7rem 0.85rem; }
  }
}

/* ═══════════════════════════════════════════════════════════════
   BRIGHT & PLAYFUL THEME (Oct 2026)
   Warm cream canvas, hot-pink + coral from Stacey's flyer, soft
   shadows. Sits after everything else and is unlayered, so it wins.
   A few "dark islands" stay dark on purpose because their text sits
   on photos: department cards, the fashion-show stage, photo
   overlays, and the footer band.
   ═══════════════════════════════════════════════════════════════ */
:root {
  color-scheme: light;
  --color-bg: hsl(24 60% 98%);
  --color-surface: #ffffff;
  --color-surface-elevated: hsl(340 70% 96%);
  --color-border: hsl(338 35% 88%);
  --color-border-glow: hsl(334 82% 46% / 0.25);

  --color-primary: hsl(334 82% 46%);
  --color-primary-deep: hsl(334 82% 38%);
  --color-primary-glow: hsl(334 82% 46% / 0.18);
  --color-primary-hover: hsl(334 82% 40%);

  --color-accent: hsl(10 78% 45%);
  --color-accent-deep: hsl(10 78% 38%);
  --color-accent-hover: hsl(10 80% 40%);

  --color-text: hsl(330 35% 13%);
  --color-text-muted: hsl(330 12% 38%);
  --color-text-dark: #ffffff;

  --color-success: hsl(150 60% 30%);
  --color-error: hsl(354 72% 45%);

  --shadow-soft: 0 12px 32px -12px hsl(334 50% 30% / 0.18);
  --shadow-card: 0 2px 10px -2px hsl(334 40% 30% / 0.10);
  --shadow-card-hover: 0 18px 36px -14px hsl(334 50% 30% / 0.28);
  --shadow-glow: 0 6px 18px -6px hsl(334 82% 46% / 0.45);
  --shadow-accent-glow: 0 6px 18px -6px hsl(10 78% 45% / 0.35);

  --tab-bar-h: 64px;
}

body {
  background-color: var(--color-bg);
  background-image:
    radial-gradient(ellipse 90% 50% at 50% -10%, hsl(334 90% 85% / 0.45) 0%, transparent 60%),
    radial-gradient(circle at 95% 30%, hsl(18 95% 85% / 0.35) 0%, transparent 40%),
    radial-gradient(circle at 0% 70%, hsl(334 90% 88% / 0.30) 0%, transparent 40%);
  background-attachment: fixed;
}

::selection { background: hsl(334 82% 46% / 0.18); color: var(--color-text); }

/* ── Dark islands keep the original night palette ───────────── */
.dept-card-overlay, .show-stage, .instagram-overlay, .footer, .curtain {
  --color-text: hsl(36 30% 96%);
  --color-text-muted: hsl(330 15% 78%);
  --color-primary: hsl(334 90% 68%);
  --color-accent: hsl(28 90% 70%);
  --color-border: hsl(330 18% 32% / 0.7);
  --color-surface: hsl(328 25% 12%);
  --color-surface-elevated: hsl(326 22% 17%);
  color-scheme: dark;
}
.footer {
  background: linear-gradient(180deg, hsl(330 40% 14%), hsl(330 45% 9%));
  color: var(--color-text);
  border-top: 0;
}

/* ── Header ──────────────────────────────────────────────────── */
.navbar {
  background: hsl(0 0% 100% / 0.86);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 1px 0 hsl(0 0% 100% / 0.6), 0 6px 20px -16px hsl(334 50% 30% / 0.4);
}
.nav-brand-text {
  background: linear-gradient(120deg, var(--color-text) 40%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.nav-logo-img { box-shadow: none; }
.cart-toggle, .wishlist-nav-btn { background: var(--color-surface); }
.mobile-menu-btn span { background: var(--color-text); }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), hsl(350 85% 52%));
  color: #fff;
}
.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--color-primary-hover), hsl(350 85% 46%));
  box-shadow: 0 10px 24px -8px hsl(334 82% 46% / 0.6);
}
.btn-secondary {
  background: var(--color-surface);
  color: var(--color-primary);
  border-color: hsl(334 82% 46% / 0.35);
}
.product-card-btn {
  background: var(--color-primary);
  color: #fff;
  border-color: transparent;
  border-radius: 999px;
}
.product-card-btn:hover { background: var(--color-primary-hover); color: #fff; }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  background:
    radial-gradient(circle at 15% 20%, hsl(334 95% 88% / 0.65), transparent 45%),
    radial-gradient(circle at 85% 75%, hsl(18 100% 86% / 0.6), transparent 45%);
}

/* ── Cards & panels: white, soft shadows ─────────────────────── */
.highlights-card, .step-card, .testimonial-card, .analytics-card, .donut-card {
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}
.catalog-filters, .glass-panel { background: hsl(0 0% 100% / 0.85); }

.product-card {
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  border-color: hsl(338 35% 92%);
}
.product-card:hover {
  border-color: hsl(334 82% 46% / 0.3);
  box-shadow: var(--shadow-card-hover);
}
.product-img-container { background: hsl(340 60% 97%); }
.product-badge {
  background: hsl(0 0% 100% / 0.92);
  color: var(--color-primary);
  border-color: transparent;
  border-radius: 999px;
}
.product-price { color: var(--color-text); }

dialog { box-shadow: 0 30px 70px -20px hsl(330 50% 20% / 0.45), 0 0 0 1px var(--color-border); }
dialog[open]::backdrop,
dialog#cart-drawer[open]::backdrop,
dialog#wishlist-drawer[open]::backdrop { background-color: hsl(330 40% 15% / 0.45); }
.nav-drawer-backdrop { background: hsl(330 40% 15% / 0.45); }
.option-selector:hover:not(:has(input:checked)),
.qty-btn:hover,
.quiz-option:hover { background-color: hsl(334 82% 46% / 0.07); }
.cart-item, .wishlist-item { border-bottom-color: var(--color-border); }
.wishlist-btn { background: hsl(0 0% 100% / 0.9); color: var(--color-primary); }

/* Gradient headlines that faded to white would vanish on cream. */
.flyer-title, .dept-hero-title {
  background: linear-gradient(110deg, var(--color-text) 30%, var(--color-primary) 70%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

/* Quick-answers chat, toasts, content pages */
.ai-chat-window { background: hsl(0 0% 100% / 0.97); box-shadow: 0 24px 60px -16px hsl(330 50% 20% / 0.45); }
#shop-toast { box-shadow: var(--shadow-soft); }
.page-hero {
  background:
    radial-gradient(ellipse 70% 100% at 50% 0%, hsl(334 95% 90% / 0.7), transparent 70%),
    radial-gradient(circle at 90% 90%, hsl(18 100% 88% / 0.5), transparent 50%);
}
.page-cta {
  background:
    radial-gradient(ellipse 80% 120% at 50% 0%, hsl(334 95% 90% / 0.7), transparent 70%);
}
.data-table tbody tr:hover { background: hsl(334 82% 46% / 0.05); }

/* ═══════════════════════════════════════════════════════════════
   PHONES: app-style layout
   ═══════════════════════════════════════════════════════════════ */
.tab-bar { display: none; }

@media (max-width: 768px) {
  /* Bottom tab bar replaces the floating WhatsApp button. */
  .tab-bar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    inset: auto 0 0 0;
    z-index: 95;
    height: calc(var(--tab-bar-h) + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: hsl(0 0% 100% / 0.94);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -8px 24px -18px hsl(330 50% 20% / 0.5);
  }
  .tab-bar-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--color-text-muted);
    -webkit-tap-highlight-color: transparent;
  }
  .tab-bar-item svg { width: 22px; height: 22px; transition: transform 0.15s ease; }
  .tab-bar-item:active svg { transform: scale(0.88); }
  .tab-bar-item[aria-current="page"] { color: var(--color-primary); }
  .tab-bar-wa { color: hsl(142 64% 32%); }
  .tab-bar-badge {
    position: absolute;
    top: 7px;
    left: calc(50% + 6px);
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
  }
  .tab-bar-badge:empty, .tab-bar-badge[data-zero] { display: none; }

  body { padding-bottom: calc(var(--tab-bar-h) + env(safe-area-inset-bottom, 0px)); }
  .wa-sticky-btn { display: none; }
  #tacey-ai-widget { bottom: calc(var(--tab-bar-h) + 14px); right: 14px; }
  #shop-toast { bottom: calc(var(--tab-bar-h) + 16px); }

  /* Header: one tidy row. Wishlist and bag live in the tab bar now. */
  .navbar { padding: 0.65rem 1rem; }
  .nav-actions .wishlist-nav-btn,
  .nav-actions .cart-toggle,
  .nav-actions .btn-nav-wa { display: none; }
  .nav-links { gap: 0.5rem; padding-top: 0.15rem; }
  .nav-link {
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: hsl(334 82% 46% / 0.07);
    color: var(--color-primary);
    font-weight: 600;
  }
  .nav-link::after { display: none; }
  .nav-link.active, .nav-link[aria-current="page"] { background: var(--color-primary); color: #fff; }

  /* Hero: get to the products fast. */
  .hero { padding: 2.25rem 1.1rem 2rem; }

  /* Highlights become a swipeable row instead of three stacked cards. */
  .highlights {
    margin-top: 0;
    padding: 1rem 1.1rem 1.5rem;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .highlights::-webkit-scrollbar { display: none; }
  .highlights-card { flex: 0 0 78%; scroll-snap-align: start; }

  /* Two products per row, everywhere. */
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
  .shelf-track { gap: 0.75rem; mask-image: none; }
  .shelf-track .product-card { width: calc((100vw - 2.2rem - 0.75rem) / 2.15); }
  .product-info { padding: 0.7rem 0.75rem 0.85rem; gap: 0.3rem; }
  .product-title { font-size: 0.95rem; }
  .product-cat { font-size: 0.66rem; }
  .product-price { font-size: 1rem; }
  .product-price::before { font-size: 0.7rem; }
  .product-price-row { flex-wrap: wrap; gap: 0.4rem; }
  .product-card-btn { padding: 0.45rem 0.8rem; font-size: 0.8rem; min-height: 36px; }
  .product-badge { top: 0.5rem; left: 0.5rem; padding: 0.2rem 0.55rem; font-size: 0.62rem; }
  .product-card:hover { transform: none; }

  .shelf-title { font-size: 1.25rem; }
}

@media (max-width: 380px) {
  .nav-brand-text { font-size: 1rem; }
}

/* Product badges: positions live here, not inline in app.js. */
.product-badge-featured { left: auto; right: 2.75rem; color: var(--color-primary); }
.product-badge-bottom { top: auto; bottom: 0.75rem; left: 0.75rem; }
.product-badge-out { color: var(--color-error); }

@media (max-width: 768px) {
  /* Two badges don't fit side by side on a half-width card. Featured wins;
     the department page already says who it's for. */
  .product-img-container:has(.product-badge-featured) .product-badge-gender { display: none; }
  .product-badge-featured { left: 0.5rem; right: auto; }
  .product-badge-bottom { bottom: 0.5rem; left: 0.5rem; }
}

@media (max-width: 768px) {
  /* Same shape on every card: price, then a full-width thumb-sized button. */
  .product-price-row { flex-direction: column; align-items: stretch; margin-top: auto; }
  .product-card-btn { width: 100%; min-height: 40px; }
}

/* ═══════════════════════════════════════════════════════════════
   HOME PAGE (Oct 2026 rebuild)
   Plain, confident boutique layout: say who we are, show the stock.
   ═══════════════════════════════════════════════════════════════ */
.home-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(2rem, 1rem + 4vw, 4.5rem) clamp(1rem, 4vw, 2rem) 2rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}
.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.9rem;
}
.home-title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(2.4rem, 1.4rem + 4.5vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: 1rem;
}
.home-title em { font-style: italic; color: var(--color-primary); }
.home-hero-sub {
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 34rem;
  margin-bottom: 1.6rem;
}
.home-hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.home-hero-actions .btn { min-height: 48px; }

/* Swipeable banner */
.promo { position: relative; min-width: 0; }
.promo-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4 / 5;
  background: var(--color-surface);
}
.promo-track::-webkit-scrollbar { display: none; }
.promo-track:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 4px; }
.promo-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  margin: 0;
  position: relative;
}
.promo-flyer { background: hsl(330 35% 8%); }
.promo-flyer img { width: 100%; height: 100%; object-fit: contain; }
.promo-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.5rem, 5vw, 2.5rem);
  gap: 0.6rem;
}
.promo-delivery { background: linear-gradient(160deg, hsl(334 82% 95%), hsl(18 100% 92%)); }
.promo-pay { background: linear-gradient(160deg, hsl(150 45% 92%), hsl(170 40% 95%)); }
.promo-kicker {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-primary);
}
.promo-pay .promo-kicker { color: hsl(150 60% 26%); }
.promo-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem);
  font-weight: 500;
  line-height: 1.12;
  color: var(--color-text);
}
.promo-text { color: var(--color-text-muted); line-height: 1.55; max-width: 26rem; }
.promo-link, .text-link, .see-all {
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.promo-link { margin-top: 0.4rem; }
.promo-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 0.9rem; }
.promo-dot {
  width: 8px; height: 8px; padding: 0;
  border-radius: 999px;
  background: hsl(334 30% 80%);
  transition: width 0.25s ease, background 0.25s ease;
}
.promo-dot[aria-current="true"] { width: 24px; background: var(--color-primary); }
/* Bigger hit area without bigger dots */
.promo-dot { position: relative; }
.promo-dot::after { content: ''; position: absolute; inset: -10px -6px; }

/* Sections */
.home-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem clamp(1rem, 4vw, 2rem) 2.5rem;
}
.home-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.home-h2 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  letter-spacing: -0.01em;
  color: var(--color-text);
}
.catalog-section .home-h2 { margin-bottom: 0.75rem; }
.new-arrivals-track { mask-image: none; padding-inline: 0; }
.new-arrivals-track .product-card { width: min(240px, 62vw); }
.arrivals-empty {
  flex: 1 0 100%;
  text-align: center;
  padding: 2.5rem 1.25rem;
  border: 1px dashed var(--color-border);
  border-radius: 18px;
  background: var(--color-surface);
  color: var(--color-text-muted);
  display: grid;
  gap: 0.6rem;
  justify-items: center;
}
.arrivals-empty-title { font-family: var(--font-heading); font-size: 1.3rem; color: var(--color-text); }

/* Department tiles: colour and type, no stock photos */
.dept-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.dept-tile {
  position: relative;
  display: grid;
  align-content: end;
  gap: 0.25rem;
  min-height: 190px;
  padding: 1.4rem;
  border-radius: 20px;
  color: var(--color-text);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.dept-tile::after {
  content: '→';
  position: absolute;
  top: 1.1rem; right: 1.2rem;
  font-size: 1.3rem;
  transition: transform 0.25s ease;
}
.dept-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }
.dept-tile:hover::after { transform: translateX(4px); }
.dept-tile-women { background: linear-gradient(150deg, hsl(334 85% 92%), hsl(345 90% 86%)); }
.dept-tile-men   { background: linear-gradient(150deg, hsl(210 40% 92%), hsl(220 35% 84%)); }
.dept-tile-kids  { background: linear-gradient(150deg, hsl(45 95% 88%), hsl(28 95% 84%)); }
.dept-tile-name { font-family: var(--font-heading); font-size: 1.9rem; font-weight: 500; line-height: 1; }
.dept-tile-meta { color: var(--color-text-muted); font-size: 0.92rem; }
.dept-tile-count {
  justify-self: start;
  margin-top: 0.5rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: hsl(0 0% 100% / 0.7);
  font-size: 0.78rem;
  font-weight: 600;
}
.dept-tile-count:empty { display: none; }

/* Instagram band and about */
.ig-band {
  max-width: 1200px;
  margin: 1rem auto 0;
  padding: 2.5rem 1.25rem;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  border-block: 1px solid var(--color-border);
}
.ig-title { font-family: var(--font-heading); font-weight: 500; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); }
.ig-text { color: var(--color-text-muted); margin-bottom: 0.5rem; }
.home-about {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.25rem 3.5rem;
  display: grid;
  gap: 1rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}
.home-about-facts { display: grid; gap: 0.4rem; }
.home-about-facts strong { display: inline-block; min-width: 6.5rem; color: var(--color-text); }
.home-about-facts a { color: var(--color-primary); font-weight: 600; }

/* Calm down legacy decoration that read as "template" */
.low-stock-badge { animation: none; }
.section-title { font-weight: 500; }

@media (max-width: 860px) {
  .home-hero { grid-template-columns: 1fr; padding-top: 1.75rem; }
  .promo-track { aspect-ratio: 5 / 4; }
  .promo-flyer img { object-fit: cover; object-position: 50% 30%; }
  .dept-tiles { grid-template-columns: 1fr; gap: 0.75rem; }
  .dept-tile { min-height: 120px; padding: 1.15rem 1.25rem; }
  .dept-tile-name { font-size: 1.6rem; }
}
@media (max-width: 768px) {
  .home-hero-actions .btn { flex: 1 1 0; padding-inline: 0.75rem; }
  .new-arrivals-track .product-card { width: calc((100vw - 2rem - 0.75rem) / 2.15); }
}

/* Catalogue and "How ordering works" line up with the new home sections. */
#catalog.catalog-section { max-width: 1200px; padding: 1.5rem clamp(1rem, 4vw, 2rem) 3rem; }
#catalog .catalog-controls { padding: 0; max-width: none; }
.how-it-works .section-header, .dept-help .section-header { text-align: left; margin-bottom: 1.5rem; }
.how-it-works .section-title, .dept-help .section-title {
  font-weight: 500;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  letter-spacing: -0.01em;
}
.how-it-works .section-desc, .dept-help .section-desc { margin-inline: 0; }
.how-it-works { max-width: 1200px; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }

@media (max-width: 768px) {
  /* Filters: two swipeable chip rows and a search box, no boxed panel. */
  #catalog .catalog-filters {
    background: none;
    border: 0;
    box-shadow: none;
    padding: 0;
    display: grid;
    gap: 0.6rem;
  }
  #catalog .filter-tabs { flex-wrap: nowrap; margin-inline: -1rem; padding-inline: 1rem; }
  #catalog .filter-tab {
    flex: 0 0 auto;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    font-size: 0.85rem;
  }
  #catalog .filter-tab.active { background: var(--color-text); color: #fff; border-color: var(--color-text); }
  #catalog .search-input { width: 100%; min-height: 44px; border-radius: 12px; }
}

@media (max-width: 768px) {
  .steps-grid { gap: 0.6rem; }
  .step-card {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 0.85rem;
    align-items: start;
    padding: 1rem 1.1rem;
  }
  .step-card .step-number { grid-row: span 2; margin: 0; }
  .step-card h3 { margin: 0.15rem 0 0.25rem; }
  .step-card p { grid-column: 2; font-size: 0.92rem; }
}

/* Closed drawers must not be drawn at all. They were display:flex even when
   closed, parked just off the right edge, which made phone browsers lay the
   whole page out 722px wide on a 390px screen (pop-ups off-centre, sideways
   wobble). The slide-in still works through the existing @starting-style. */
dialog#cart-drawer:not([open]),
dialog#wishlist-drawer:not([open]) { display: none; }

/* ═══════════════════════════════════════════════════════════════
   PRODUCT SHEET & BAG (Oct 2026)
   ═══════════════════════════════════════════════════════════════ */
.details-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  margin-top: 1rem;
}
.details-add { flex: 1 1 auto; min-height: 50px; font-size: 1rem; }
.modal-wishlist-btn, .modal-share-btn {
  width: 50px; height: 50px;
  flex: 0 0 auto;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  cursor: pointer;
}
.modal-share-btn:hover, .modal-wishlist-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
.modal-wishlist-btn.wishlisted { color: var(--color-primary); border-color: hsl(334 82% 46% / 0.4); background: hsl(334 82% 46% / 0.06); }
.details-ask {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: hsl(142 64% 30%);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.details-price { color: var(--color-text); }

/* Bag: clearer delivery box and totals */
.delivery-section { background: hsl(340 60% 97%); border-color: var(--color-border); }
.delivery-section-header { color: var(--color-text); }
.cart-total-price { color: var(--color-text); }
#cart-grand-total { color: var(--color-primary); font-size: 1.25rem !important; }
#checkout-whatsapp-btn { min-height: 52px; font-size: 1rem; border-radius: 14px; }
.delivery-address-input[hidden], .delivery-label[hidden] { display: none; }

@media (max-width: 768px) {
  /* Product view: a bottom sheet that slides up, with the buy bar pinned. */
  dialog#product-detail-modal[open] {
    position: fixed;
    inset: auto 0 0 0;
    margin: 0;
    width: 100%;
    max-width: 100%;
    max-height: 92dvh;
    padding: 0.5rem 1.1rem 0;
    border: 0;
    border-radius: 24px 24px 0 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    animation: sheet-up 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  }
  dialog#product-detail-modal[open]::before {
    content: '';
    display: block;
    width: 44px; height: 5px;
    margin: 0.35rem auto 0.6rem;
    border-radius: 999px;
    background: hsl(330 15% 82%);
  }
  #product-detail-modal .dialog-close { top: 0.9rem; right: 0.9rem; }
  #product-detail-modal .details-modal-grid { gap: 1rem; margin-top: 0; }
  #product-detail-modal .details-main-img-wrap { border-radius: 18px; overflow: hidden; }
  #product-detail-modal .details-title { font-size: 1.6rem; margin: 0.2rem 0 0.1rem; }
  #product-detail-modal .details-actions {
    position: sticky;
    bottom: 0;
    margin: 1rem -1.1rem 0;
    padding: 0.75rem 1.1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
    background: hsl(0 0% 100% / 0.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--color-border);
  }

  /* Bag: full screen on phones, totals and checkout always in view. */
  dialog#cart-drawer[open] {
    width: 100%;
    max-width: 100%;
    padding: 1rem 1.1rem 0;
    border-left: 0;
  }
  #cart-drawer .cart-footer {
    position: sticky;
    bottom: 0;
    margin: 0 -1.1rem;
    padding: 0.9rem 1.1rem calc(0.9rem + env(safe-area-inset-bottom, 0px));
    gap: 0.6rem;
    background: var(--color-surface);
    box-shadow: 0 -10px 24px -18px hsl(330 50% 20% / 0.5);
  }
  #cart-drawer .delivery-section { padding: 0.85rem; }
  #cart-drawer .cart-disclaimer { font-size: 0.78rem; margin: 0; }
}

@keyframes sheet-up { from { transform: translateY(40px); opacity: 0.6; } }
@media (prefers-reduced-motion: reduce) { dialog#product-detail-modal[open] { animation: none; } }

/* Page behind an open sheet stays exactly where it was. */
body.sheet-open { position: fixed; inset-inline: 0; overflow: hidden; }

/* Search on the shop pages */
.shelf-search-wrap { max-width: 1300px; margin: 0 auto; padding: 1.25rem clamp(1rem, 4vw, 2rem) 0; }
.shelf-search { width: 100%; max-width: 520px; min-height: 46px; border-radius: 12px; }
.shelf-search-empty { margin-top: 0.75rem; color: var(--color-text-muted); }
.shelf-search-empty a { color: var(--color-primary); font-weight: 600; }
.product-card[hidden], .shelf[hidden] { display: none; }

.shop-all-btn { display: flex; width: 100%; max-width: 360px; margin: 1.25rem auto 0; min-height: 48px; }
