  :root{
    /* fallback tokens */
    --bg: #071018;
    --surface: #0f1620;
    --text: #eef6fb;
    --muted: #9fb3d2;
    --accent: #ff6b6b;      /* primary solid CTA */
    --accent-2: #2ea6ff;    /* secondary solid CTA */
    --danger: #ff3b30;
    --border: rgba(255,255,255,0.04);
    --shadow: 0 10px 36px rgba(0,0,0,0.6);
    --shadow-soft: 0 6px 18px rgba(0,0,0,0.45);
    --font-display: "Poppins", system-ui, sans-serif;
    --font-sans: "Inter", system-ui, sans-serif;
    --ease: cubic-bezier(.2,.9,.2,1);
    --nav-glass: rgba(11, 13, 15, 0.75); /* Darker, richer glass */
  --nav-border: rgba(255, 255, 255, 0.08);
  --nav-highlight: rgba(255, 255, 255, 0.1);
  --nav-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  --gold-glow: 0 0 20px rgba(255, 183, 0, 0.15);
  --ease-elastic: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }

  /* small resets */
  .zippy-nav * { box-sizing: border-box; }
  .top-nav, .mobile-top, .mobile-bottom { font-family: var(--font-sans); -webkit-font-smoothing:antialiased; }
  a { 
    text-decoration: none!important;
  }
  /* ---------------------------
     TOP NAV: layout and scrolled
     --------------------------- */
  .top-nav {
    position: fixed;
    top: 0; left: 16px; right: 16px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding: 12px 18px; border-radius: 14px;
    background: transparent;
    transition: background .22s var(--ease), box-shadow .22s var(--ease), transform .22s var(--ease);
    z-index: 1400; pointer-events: auto;
  }

  .top-nav.scrolled {
    left: 50%; transform: translateX(-50%); top: 10px;
    width: calc(100% - 64px); max-width: 1100px;
    background: var(--surface);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
  }

  /* =====================
     BRAND — improved lockup
     ===================== */
   /* Elegant brand text — pure font-based identity */
  .brand {
    display: inline-block;
    text-decoration: none;
    line-height: 1;
    cursor: pointer;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  .brand-text {
    font-family: 'Cinzel Decorative', serif;
    font-weight: 700;
    font-size: 1.85rem;
    color: #ffb700ff; /* warm gold tone, refined but not flashy */
    letter-spacing: 1.2px;
    text-transform: none;
    
    transition: transform 0.25s cubic-bezier(.2, .9, .2, 1), text-shadow 0.25s;
    text-shadow:
      0 1px 0 rgba(255,255,255,0.05),
      0 3px 12px rgba(0,0,0,0.3);

  }
  .brand-text:hover {
    text-decoration: none;
  }
  /* Micro-interaction: slight lift on hover/focus for a tactile feel */
  @media (hover: hover) {
    .brand:hover .brand-text,
    .brand:focus-visible .brand-text {
      transform: translateY(-2px);
      text-shadow: 0 6px 18px rgba(224,181,76,0.25);
      text-decoration:none;
    }
  }

  /* Accessibility — subtle focus outline */
  .brand:focus-visible {
    outline: 2px solid rgba(224,181,76,0.3);
    outline-offset: 4px;
    border-radius: 4px;
  }

  /* Responsive scaling */
  @media (max-width: 768px) {
    .brand-text {
      font-size: 1.5rem;
      letter-spacing: 1px;
    }
  }

  @media (max-width: 420px) {
    .brand-text {
      font-size: 1.25rem;
      letter-spacing: 0.8px;
    }
  }
  /* ---------------------------
     LINKS — smoother underline (scaleX)
     --------------------------- */
  .links { display:flex; gap:18px; align-items:center; justify-content:center; flex:1; }
  .links a {
    color:var(--text); text-decoration:none; font-weight:700; padding:8px 6px; border-radius:10px;
    position:relative; display:inline-flex; align-items:center; transition: color .14s, transform .12s;
  }
  .links a:hover { transform: translateY(-3px); color: yellow; }

  /* smoother underline using transform */
  .links a::after {
    content: "";
    position: absolute;
    left: 12%;
    bottom: -8px;
    height: 3px;
    width: 76%;
    background: yellow;
    border-radius: 3px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .28s var(--ease), opacity .22s;
    opacity: .95;
  }
  .links a:hover::after, .links a.active::after {
    transform: scaleX(1);
  }

  /* ---------------------------
     ICONS cluster + controls
     --------------------------- */
/* Icons & Buttons */
.icons { display: flex; align-items: center; gap: 12px; }

.icon-btn {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--nav-border);
  color: #fff;
  cursor: pointer;
  transition: 0.3s var(--ease-elastic);
}
.icon-btn:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); border-color: rgba(255,255,255,0.2); }

.icon-badge {
  position: absolute; top: -2px; right: -2px;
  min-width: 20px; height: 20px;
  border-radius: 10px;
  background: var(--color-danger);
  color: #fff;
  font-size: 10px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(255, 59, 48, 0.4);
  border: 2px solid #0b0b0d; /* Inner stroke for separation */
}

  /* Account: scrolled solid pill */
  .account-btn { display:none; border:0; padding:0; background:transparent; }
  .top-nav.scrolled .account-btn {
    display:grid; width:48px; height:48px; border-radius:12px; background:var(--accent);
    box-shadow: 0 10px 28px rgba(0,0,0,0.35); border:none; place-items:center;
  }
  .top-nav.scrolled .account-btn .bx { color:#071018; font-size:1.5rem; }

  /* Sign-in CTA — made more attractive (solid pill with icon) */
  .signin-cta { display:flex; align-items:center; gap:8px; }
  .signin-cta .btn {
    display:inline-flex; align-items:center; gap:8px;
    padding:8px 19px;  border:0;   background: yellow; /* Bright yellow */ color:#071018; font-weight:900;
    cursor:pointer; box-shadow: 0 12px 36px rgba(0,0,0,0.18); font-size:0.95rem;
    transition: transform .12s, box-shadow .12s;
  }
  .signin-cta .btn .btn-icon { width:20px; height:20px; display:inline-grid; place-items:center; background:transparent; color:#071018; }
.signin-cta .btn:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 12px 36px rgba(255, 215, 102, 0.28);
  background: #ffe082;
  color: #111;
}
  .signin-cta .icon-only { width:48px; height:48px; border-radius:12px; display:grid; place-items:center; background:var(--accent); border:0; color:#071018; }
  .top-nav:not(.scrolled) .signin-cta .icon-only { display:none; }
  .top-nav.scrolled .signin-cta .btn { display:none; }
  .top-nav.scrolled .signin-cta .icon-only { display:grid; }

  /* ---------------------------
     MOBILE top + bottom
     --------------------------- */
  .mobile-top, .mobile-bottom { display:none; }
  @media (max-width:980px) {
    .top-nav { display:none; }
    .mobile-top {
      display:flex; position:fixed; top:0; left:0; right:0; height:56px; align-items:center; justify-content:space-between;
      padding:0 12px; background:var(--surface); box-shadow:var(--shadow-soft); z-index:1200; border-bottom:1px solid var(--border);
    }


    .mobile-top .right-icons { display:flex; gap:8px; align-items:center; }

    /* ensure cart icon visible on mobile top (top-right) */
    .mobile-top .icon-btn { width:44px; height:44px; border-radius:10px; }

    .mobile-bottom {
      display:flex; position:fixed; bottom:0; left:0; right:0; height:64px; background:var(--surface);
      justify-content:space-around; align-items:center; box-shadow:var(--shadow-soft); z-index:9999; padding:0 12px; gap:8px;
      border-top:1px solid var(--border);
      transition: transform 0.32s cubic-bezier(.2,.9,.2,1), opacity 0.22s;
      will-change: transform, opacity;
    }
    .mobile-bottom.hide {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
    }
    .mobile-bottom.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    }
    .mobile-bottom a {
      display:flex; flex-direction:column; align-items:center; font-size:12px; color:var(--text); text-decoration:none;
      gap:4px; padding:6px 8px; border-radius:10px; transition: transform .12s, background .12s; width:64px; justify-content:center;
      position:relative;
    }
    .mobile-bottom a .bx { font-size:1.3rem; color:var(--text); }
    .mobile-bottom a.active { background: rgba(255,255,255,0.02); transform:translateY(-2px); border-radius:12px; }

    .mobile-bottom a:hover::after, .mobile-bottom a.active::after { width:56%; }

    .mobile-add { width:64px; height:64px; border-radius:50%; display:grid; place-items:center; color:#fff; font-weight:800;
                 background:var(--accent); box-shadow: 0 12px 36px rgba(0,0,0,0.2); transform:translateY(-18px); border:none; animation: pulse 2s infinite; }
    .mobile-add .bx { font-size:1.2rem; }

    .mobile-bottom a.cart-mobile { position:relative; }
    .mobile-bottom a .icon-wrap { width:44px; height:44px; border-radius:10px; display:grid; place-items:center; background:transparent; }
  }

  @media (max-width:420px) {
    .mobile-bottom a { width:auto; padding:8px; }
    .mobile-bottom a span { font-size:11px; }
  }

  /* ---------------------------
     CART drawer (desktop) & bottom-sheet (mobile)
     --------------------------- */
  .cart-sidebar {
    position: fixed; right: 20px; top: 20px; height: calc(100vh - 40px); width: 380px; max-width: calc(100vw - 48px);
    transform: translateX(520px); transition: transform .32s var(--ease), opacity .2s; background:var(--surface); box-shadow:var(--shadow);
    border-radius:12px; overflow:hidden; z-index:1600; display:flex; flex-direction:column;
  }
  .cart-sidebar.open { transform: translateX(0); }
  .cart-header { padding:14px 16px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--border); }
  .cart-header h3 { margin:0; font-size:1rem; color:var(--text); }
  .cart-close { background:transparent; border:0; cursor:pointer; color:var(--muted); }

  .cart-body { padding:14px; overflow:auto; flex:1; display:flex; flex-direction:column; gap:12px; }
  .cart-empty { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; padding:18px; color:var(--muted); text-align:center; }
  .suggestions { display:grid; gap:10px; width:100%; }
  .suggest-item { display:flex; gap:10px; align-items:center; padding:10px; border-radius:10px; background: rgba(255,255,255,0.01); border:1px solid rgba(255,255,255,0.02); }
  .suggest-item .thumb { width:64px; height:64px; border-radius:8px; background-size:cover; background-position:center; flex:0 0 64px; }
  .suggest-item .meta { flex:1; display:flex; flex-direction:column; gap:6px; }
  .suggest-item .title { font-weight:700; color:var(--text); }
  .suggest-item .price { color:var(--accent); font-weight:800; }
  .suggest-item .btn-add { padding:8px 10px; border-radius:8px; border:0; cursor:pointer; font-weight:800; background:var(--accent); color:#071018; }

  .cart-footer { padding:12px; border-top:1px solid var(--border); display:flex; justify-content:space-between; gap:8px; background:transparent; }
/* Checkout Button - "Pulse" */
@keyframes pulse-gold {
  0% { box-shadow: 0 0 0 0 rgba(255, 209, 102, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(255, 209, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 209, 102, 0); }
}

.checkout-btn {
  background: linear-gradient(135deg, #ffd166 0%, #ffb700 100%);
  color: #000;
  font-weight: 800;
  letter-spacing: 0.5px;
  border-radius: 12px;
  animation: pulse-gold 2s infinite;
  border: none;
}
  @media (max-width:720px) {
    .cart-sidebar {
      left: 50%;
      right: auto;
      top: auto;
      bottom: 0;
      height: 72vh;
      width: 100%;
      max-width: 520px;
      transform: translate(-50%, 110%);
      border-radius: 12px 12px 0 0;
      margin-left: auto;
      margin-right: auto;
      
    }
    .cart-sidebar.open {
      transform: translate(-50%, 0);
    }
  }

  /* Mobile-plus sheet */
  .mobile-plus-backdrop { position:fixed; inset:0; display:none; align-items:flex-end; justify-content:center; background:rgba(0,0,0,0.5); z-index:1700; }
  .mobile-plus-backdrop.open { display:flex; }
  .mobile-plus-modal { width:100%; max-width:520px; border-radius:14px 14px 0 0; background:var(--surface); box-shadow: 0 -18px 60px rgba(0,0,0,0.6); padding:14px; transform:translateY(16px); opacity:0; transition: transform .22s var(--ease), opacity .18s; }
  .mobile-plus-backdrop.open .mobile-plus-modal { transform:translateY(0); opacity:1; }
  .mobile-plus-header { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:8px; }
  .mobile-plus-title { font-weight:900; font-size:1rem; color:var(--text); }
  .mobile-plus-desc { color:var(--muted); font-size:13px; }
  .mobile-plus-close { background:transparent; border:0; font-size:1.3rem; color:var(--muted); cursor:pointer; padding:6px; border-radius:8px; }

  .mobile-plus-list { display:grid; gap:10px; }
  .mobile-plus-item { display:flex; align-items:center; gap:12px; padding:12px; border-radius:10px; background: rgba(255,255,255,0.01); cursor:pointer; transition: transform .12s, box-shadow .12s; }
  .mobile-plus-item:active, .mobile-plus-item:focus { transform:translateY(-4px); box-shadow:var(--shadow-soft); outline:none; }
  .mobile-plus-item .icon { width:44px; height:44px; display:grid; place-items:center; border-radius:8px; background:yellow; color:black; }
  .mobile-plus-item .title { font-weight:800; color:var(--text); }
  .mobile-plus-item .sub { color:var(--muted); font-size:13px; }

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

    /* Smooth bottom-sheet animation for Quick Actions menu on mobile */
  .mobile-plus-backdrop {
    transition: background 0.28s cubic-bezier(.2,.9,.2,1);
  }
  .mobile-plus-modal {
    transform: translateY(100%);
    opacity: 0;
    transition: transform 0.48s cubic-bezier(.2,.9,.2,1), opacity 0.48s cubic-bezier(.2,.9,.2,1);
  }
  .mobile-plus-backdrop.open .mobile-plus-modal {
    transform: translateY(0);
    opacity: 1;
  }

  /* Remove View button in cart footer */
  #viewFullBtn {
    display: none !important;
  }

  /* Make checkout button thinner and yellow */
.checkout-btn {
  padding: 8px 18px;
  border-radius: 12px;
  border: 3px solid transparent;
  border-image: red 1;
  background: yellow;
  background-size: 200% 200%;
  color: #071018;
  font-size: 1.08rem;
  font-weight: 500;
  box-shadow: 0 6px 18px rgba(255,215,102,0.18), 0 0 12px #ffd16688;
  animation: pulse 2s infinite;
  transition: background .18s, box-shadow .18s, transform .16s;
  position: relative;
  overflow: hidden;
}
@keyframes checkout-bg-move {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes checkout-beat {
  0%, 100% { transform: scale(1); box-shadow: 0 6px 18px rgba(255,215,102,0.18), 0 0 12px #ffd16688; }
  50% { transform: scale(1.06); box-shadow: 0 12px 36px rgba(255,215,102,0.28), 0 0 24px #ffd166cc; }
}
.checkout-btn:hover {
  box-shadow: 0 16px 48px rgba(255,215,102,0.32), 0 0 24px #ffd166cc;
  transform: scale(1.04);
}

  /* Make total bigger and bolder */
  #cartTotalLabel {
    font-size: 1.25rem;
    font-weight: 900;
    color: yellow;
    letter-spacing: 0.02em;
  }
  /* Ensure mobile-bottom is fully hidden when cart opens */
.mobile-bottom.hide {
  transform: translateY(110%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Slightly emphasize total on mobile and make checkout more punchy */
@media (max-width:720px){
  #cartTotalLabel {
    font-size: 1.4rem;
    font-weight: 900;
    color: #ffd166;
    text-shadow: 0 6px 18px rgba(0,0,0,0.35);
  }
  .checkout-btn {
    padding: 10px 20px;
    border-radius: 14px;
    font-weight: 900;
    letter-spacing: 0.02em;
    box-shadow: 0 18px 48px rgba(255,215,102,0.22), 0 0 18px #ffd16688;
    transform-origin: center;
  }
  .checkout-btn:focus {
    outline: 3px solid rgba(255,215,102,0.22);
  }
}
.cart-header {
  position: relative;
}
.cart-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 1.6rem;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background 0.18s;
}
.cart-close:hover {
  background: #ffd16633;
  color: var(--danger);
}

