  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  :root {
    --bg: #faf6ef;
    --surface: #ffffff;
    --surface2: #efe6d8;
    --accent: #d9730c;
    --accent2: #e8431a;
    --text: #2a2118;
    --muted: #6a5d4f;
    --border: rgba(40,30,20,0.13);
    --glow: rgba(217,115,12,0.12);
    --success: #059669;
    --successBg: #dcfce7;
    --warnBg: #fef3c7;
    --errorBg: #fee2e2;
  }
  html[data-theme="dark"] {
    --bg: #1c1712;
    --surface: #262019;
    --surface2: #33291e;
    --text: #f2ece0;
    --muted: #a3937d;
    --border: rgba(250,246,239,0.12);
    --glow: rgba(217,115,12,0.22);
  }
  body { font-family: 'DM Sans', sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; }
  img { max-width: 100%; }
  button, input, select { font-family: 'DM Sans', sans-serif; }
  ::-webkit-scrollbar { width: 6px; }
  ::-webkit-scrollbar-track { background: var(--surface2); }
  ::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

  /* ── APP-LIKE MOBILE POLISH ─────────────────────────────────
     Removes the flash-highlight/outline Android/iOS browsers show on
     tap by default (feels web-y), adds momentum scrolling to any
     horizontally-scrolling strip (category ticker, carousels), and
     gives buttons/links/cards a quick press-down feel instead of the
     browser's default highlight — small things that add up to an
     app feel rather than a website-in-a-browser feel. */
  html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
  a, button, .action-item, .card, [onclick] {
    -webkit-tap-highlight-color: transparent;
  }
  a:active, button:active, .action-item:active, .card:active,
  .mbn-tab:active, [onclick]:active {
    transform: scale(0.97);
    transition: transform 0.08s ease;
  }
  .category-links, .horizontal-scroll, [class*="-scroll-row"], [class*="-carousel"] {
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }
  @media (max-width: 768px) {
    button, .action-item, a.btn, .btn, input[type="checkbox"], input[type="radio"] {
      min-height: 40px;
    }
  }
  @keyframes toastIn { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
  @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes slideDown { from { transform: translateY(-100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
  @keyframes modalIn { from { opacity: 0; transform: scale(0.94) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }
  @keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }

  /* ── QUICK VIEW MODAL ─────────────────────────────────────── */
  #qv-overlay {
    display: none; position: fixed; inset: 0; z-index: 9000;
    background: rgba(20,14,8,0.55); backdrop-filter: blur(4px);
    animation: overlayIn 0.25s ease;
    overflow-y: auto; padding: 2rem 1rem;
  }
  #qv-overlay.open { display: flex; align-items: flex-start; justify-content: center; }
  #qv-modal {
    background: var(--surface); border-radius: 20px; width: 100%; max-width: 920px;
    position: relative; animation: modalIn 0.3s cubic-bezier(.22,.68,0,1.2);
    box-shadow: 0 30px 80px rgba(0,0,0,0.25); overflow: hidden; margin: auto;
  }
  #qv-close {
    position: absolute; top: 1.2rem; right: 1.2rem; z-index: 10;
    width: 40px; height: 40px; border-radius: 50%; border: none;
    background: var(--surface2); cursor: pointer; font-size: 1.1rem;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s; color: var(--text);
  }
  #qv-close:hover { background: var(--accent); color: #fff; transform: rotate(90deg); }
  .qv-body { display: grid; grid-template-columns: 1fr 1fr; min-height: 480px; }
  .qv-image-side {
    background: var(--surface2); display: flex; flex-direction: column;
    align-items: center; justify-content: center; padding: 3rem 2rem; gap: 1.5rem;
    position: relative;
  }
  .qv-big-emoji { font-size: 8rem; line-height: 1; filter: drop-shadow(0 8px 24px rgba(0,0,0,0.12)); }
  .qv-big-emoji img { width: 260px; height: 260px; max-width: 100%; object-fit: cover; border-radius: 16px; }
  .qv-discount-tag {
    position: absolute; top: 1.2rem; left: 1.2rem; z-index: 5;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff; font-weight: 800; font-size: 1rem;
    padding: 0.5rem 1rem; border-radius: 24px;
    box-shadow: 0 4px 12px rgba(217,115,12,0.4);
  }
  .qv-thumbnails { display: flex; gap: 0.6rem; }
  .qv-thumb {
    width: 48px; height: 48px; background: var(--surface); border-radius: 10px;
    border: 2px solid var(--border); display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; cursor: pointer; transition: all 0.2s; overflow: hidden;
  }
  .qv-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
  .qv-thumb.active, .qv-thumb:hover { border-color: var(--accent); background: rgba(217,115,12,0.08); }
  .qv-info-side { padding: 2.5rem 2.5rem 2rem; display: flex; flex-direction: column; gap: 1.1rem; overflow-y: auto; }
  .qv-category { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
  .qv-name { font-family: 'Playfair Display', serif; font-size: 1.6rem; color: var(--text); line-height: 1.2; }
  .qv-rating-row { display: flex; align-items: center; gap: 0.75rem; }
  .qv-stars { color: var(--accent); font-size: 1.1rem; }
  .qv-rating-val { font-weight: 700; font-size: 0.9rem; color: var(--text); }
  .qv-reviews-count { color: var(--muted); font-size: 0.85rem; }
  .qv-price-row { display: flex; align-items: baseline; gap: 0.75rem; }
  .qv-sale { font-size: 2rem; font-weight: 800; color: var(--accent); }
  .qv-orig { font-size: 1rem; color: var(--muted); text-decoration: line-through; }
  .qv-save-badge { background: #dcfce7; color: #15803d; font-size: 0.78rem; font-weight: 700; padding: 0.3rem 0.7rem; border-radius: 20px; }
  .qv-divider { height: 1px; background: var(--border); }
  .qv-desc { font-size: 0.92rem; color: var(--muted); line-height: 1.7; }
  .qv-desc strong { color: var(--text); }
  .qv-features { display: flex; flex-direction: column; gap: 0.45rem; }
  .qv-feature { display: flex; align-items: center; gap: 0.6rem; font-size: 0.88rem; color: var(--text); }
  .qv-feature::before { content: '✓'; color: var(--success); font-weight: 700; }
  .qv-stock-row { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; font-weight: 600; }
  .qv-qty-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
  .qv-qty-label { font-size: 0.85rem; font-weight: 600; color: var(--text); }
  .qv-qty-controls { display: flex; border: 2px solid var(--border); border-radius: 10px; overflow: hidden; }
  .qv-qty-controls button { width: 40px; height: 40px; border: none; background: var(--surface2); cursor: pointer; font-size: 1.2rem; font-weight: 700; color: var(--text); transition: background 0.2s; }
  .qv-qty-controls button:hover { background: var(--accent); color: #fff; }
  .qv-qty-val { width: 44px; display: flex; align-items: center; justify-content: center; font-size: 1rem; font-weight: 700; background: var(--surface); }
  .qv-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
  .qv-add-btn {
    flex: 1; padding: 0.9rem 1.5rem; background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff; border: none; border-radius: 10px; font-weight: 700; font-size: 0.95rem;
    cursor: pointer; transition: all 0.2s; box-shadow: 0 4px 16px var(--glow);
  }
  .qv-add-btn:hover { opacity: 0.9; transform: translateY(-1px); }
  .qv-add-btn:disabled { background: #ccc; cursor: not-allowed; box-shadow: none; opacity: 0.6; transform: none; }
  .qv-add-btn.added { background: var(--success); }
  .qv-wish-btn {
    width: 48px; height: 48px; border-radius: 10px; border: 2px solid var(--border);
    background: var(--surface); cursor: pointer; font-size: 1.3rem; transition: all 0.2s;
    display: flex; align-items: center; justify-content: center;
  }
  .qv-wish-btn:hover { border-color: var(--accent2); }
  .qv-wish-btn.in-wishlist { background: #fff0f0; border-color: var(--accent2); }
  .qv-share-btn {
    width: 48px; height: 48px; border-radius: 10px; border: 2px solid var(--border);
    background: var(--surface); cursor: pointer; transition: all 0.2s; color: var(--text);
    display: flex; align-items: center; justify-content: center;
  }
  .qv-share-btn:hover { border-color: var(--accent); color: var(--accent); }
  .qv-full-details-link {
    display: inline-block; font-size: 0.82rem; font-weight: 700; color: var(--accent);
    text-decoration: none; margin: -0.5rem 0 0.8rem;
  }
  .qv-full-details-link:hover { text-decoration: underline; }
  .share-btn.copied-flash, .qv-share-btn.copied-flash { animation: shareCopiedPulse 0.5s ease; border-color: #22965a !important; color: #22965a !important; }
  @keyframes shareCopiedPulse {
    0% { transform: scale(1); }
    40% { transform: scale(1.18); }
    100% { transform: scale(1); }
  }
  .qv-trust { display: flex; gap: 0.5rem; flex-wrap: wrap; }
  .qv-trust-chip { font-size: 0.78rem; color: var(--muted); background: var(--bg); border: 1px solid var(--border); border-radius: 20px; padding: 0.3rem 0.75rem; }

  /* ── SELLER CONNECT (Ask a question / Chat / Follow) ────────── */
  .seller-connect-row { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.2rem; }
  .sc-btn {
    flex: 1; min-width: 130px; display: flex; align-items: center; justify-content: center; gap: 0.4rem;
    padding: 0.65rem 0.9rem; border-radius: 10px; border: 1.5px solid var(--border);
    background: var(--surface); color: var(--text); font-size: 0.82rem; font-weight: 700;
    cursor: pointer; transition: all 0.18s; text-decoration: none;
  }
  .sc-btn:hover { border-color: var(--accent); color: var(--accent); }
  .sc-btn.following { background: rgba(217,115,12,0.1); border-color: var(--accent); color: var(--accent); }

  /* ── ASK A QUESTION MODAL ─────────────────────────────────── */
  #aq-overlay {
    display: none; position: fixed; inset: 0; z-index: 9500; background: rgba(20,14,8,0.55);
    backdrop-filter: blur(4px); align-items: center; justify-content: center; padding: 1.2rem;
  }
  #aq-overlay.open { display: flex; }
  #aq-modal {
    background: var(--surface); border-radius: 18px; width: 100%; max-width: 420px;
    padding: 1.6rem 1.5rem; box-shadow: 0 30px 80px rgba(0,0,0,0.25); animation: modalIn 0.28s cubic-bezier(.22,.68,0,1.2);
  }
  #aq-modal h3 { font-family: 'Playfair Display', serif; font-size: 1.25rem; margin-bottom: 0.3rem; }
  #aq-modal .aq-sub { font-size: 0.83rem; color: var(--muted); margin-bottom: 1.1rem; }
  #aq-modal .field { margin-bottom: 0.85rem; }
  #aq-modal label { display: block; font-size: 0.8rem; font-weight: 700; margin-bottom: 0.3rem; }
  #aq-modal input, #aq-modal textarea {
    width: 100%; padding: 0.65rem 0.8rem; border-radius: 9px; border: 1.5px solid var(--border);
    font-family: inherit; font-size: 0.88rem; background: var(--bg);
  }
  #aq-modal textarea { min-height: 90px; resize: vertical; }
  #aq-modal .aq-actions { display: flex; gap: 0.6rem; justify-content: flex-end; margin-top: 0.4rem; }
  #aq-modal .aq-btn-cancel { padding: 0.6rem 1.1rem; border-radius: 9px; border: none; background: var(--surface2); color: var(--text); font-weight: 700; cursor: pointer; }
  #aq-modal .aq-btn-send { padding: 0.6rem 1.3rem; border-radius: 9px; border: none; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; font-weight: 700; cursor: pointer; }
  #aq-error { display: none; color: #b91c1c; font-size: 0.8rem; margin-top: -0.4rem; margin-bottom: 0.6rem; }

  /* ── SELLER CHAT POPUP ────────────────────────────────────── */
  #sc-chat-panel {
    display: none; position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 9400;
    width: 320px; max-width: calc(100vw - 2rem); height: 440px; max-height: calc(100vh - 3rem);
    background: var(--surface); border-radius: 18px; box-shadow: 0 24px 60px rgba(0,0,0,0.25);
    flex-direction: column; overflow: hidden; border: 1px solid var(--border);
  }
  #sc-chat-panel.open { display: flex; }
  .sc-chat-head { background: var(--ink, #241b12); color: #faf6ef; padding: 0.9rem 1.1rem; display: flex; align-items: center; gap: 0.6rem; }
  .sc-chat-head b { font-size: 0.9rem; flex: 1; }
  .sc-chat-head button { background: none; border: none; color: #faf6ef; font-size: 1rem; cursor: pointer; opacity: 0.8; }
  .sc-chat-head button:hover { opacity: 1; }
  .sc-chat-body { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.55rem; }
  .sc-chat-msg { max-width: 78%; padding: 0.55rem 0.8rem; border-radius: 13px; font-size: 0.84rem; line-height: 1.5; }
  .sc-chat-msg.mine { align-self: flex-end; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; border-bottom-right-radius: 4px; }
  .sc-chat-msg.theirs { align-self: flex-start; background: var(--surface2); border-bottom-left-radius: 4px; }
  .sc-chat-input-row { display: flex; gap: 0.5rem; padding: 0.7rem 0.8rem; border-top: 1px solid var(--border); }
  .sc-chat-input-row input { flex: 1; padding: 0.55rem 0.7rem; border-radius: 9px; border: 1.5px solid var(--border); font-size: 0.85rem; }
  .sc-chat-input-row button { padding: 0.5rem 0.8rem; border-radius: 9px; border: none; background: var(--accent); color: #fff; cursor: pointer; font-weight: 700; }
  .sc-chat-empty { flex: 1; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 0.82rem; text-align: center; padding: 1rem; }

  /* Related Products section inside modal */
  .qv-related { background: var(--bg); padding: 2rem 2.5rem; border-top: 1px solid var(--border); }
  .qv-related h4 { font-family: 'Playfair Display', serif; font-size: 1.15rem; color: var(--text); margin-bottom: 1.25rem; font-weight: 700; }
  .qv-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .qv-rel-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
    overflow: hidden; cursor: pointer; transition: all 0.25s;
  }
  .qv-rel-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 6px 18px var(--glow); }
  .qv-rel-image { background: var(--surface2); height: 90px; display: flex; align-items: center; justify-content: center; font-size: 2.4rem; overflow: hidden; }
  .qv-rel-image img { width: 100%; height: 100%; object-fit: cover; }
  .qv-rel-body { padding: 0.75rem; }
  .qv-rel-name { font-size: 0.82rem; font-weight: 500; color: var(--text); margin-bottom: 0.3rem; line-height: 1.3; }
  .qv-rel-price { font-size: 0.9rem; font-weight: 700; color: var(--accent); }

  /* Quick view trigger on card hover */
  .qv-trigger {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: rgba(217,115,12,0.92); color: #fff;
    text-align: center; padding: 0.6rem; font-size: 0.82rem; font-weight: 700;
    letter-spacing: 0.04em; cursor: pointer; transform: translateY(100%);
    transition: transform 0.25s ease; border: none; width: 100%;
    z-index: 3;
  }
  .card-image:hover .qv-trigger,
  .product-card:hover .qv-trigger { transform: translateY(0); }

  /* On touch devices hover can get stuck and overlap text below the image,
     so show Quick View as a small static overlay instead of a hover-reveal bar */
  @media (hover: none) {
    .qv-trigger {
      position: absolute; bottom: 0.6rem; left: 0.6rem; right: 0.6rem;
      transform: none; border-radius: 8px; padding: 0.5rem;
      font-size: 0.75rem; width: auto;
    }
    .card-image:hover .qv-trigger,
    .product-card:hover .qv-trigger { transform: none; }
  }

  @media (max-width: 700px) {
    .qv-body { grid-template-columns: 1fr; }
    .qv-image-side { padding: 2rem; min-height: 240px; }
    .qv-big-emoji { font-size: 5rem; }
    .qv-related-grid { grid-template-columns: repeat(2, 1fr); }
    .qv-info-side { padding: 1.5rem; }
  }

/* ─── NEW HEADER STYLES (Market Ribbon) ─── */

  /* TOP INFO BAR */
  .top-info-bar {
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    color: #fff;
    padding: 0.55rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    animation: slideDown 0.6s ease forwards;
  }

  .top-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    font-weight: 500;
    opacity: 0.95;
  }

  .top-left svg {
    flex-shrink: 0;
  }

  .top-right {
    display: flex;
    align-items: center;
    gap: 1.8rem;
  }

  .lang-toggle-btn {
    background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.3); color: #fff;
    font-size: 0.76rem; font-weight: 700; padding: 0.3rem 0.65rem; border-radius: 999px; cursor: pointer;
    letter-spacing: 0.02em; transition: background 0.2s;
  }
  .lang-toggle-btn:hover { background: rgba(255,255,255,0.26); }
  .lang-toggle-btn.active-gu { background: #fff; color: var(--accent); }

  .top-right a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    opacity: 0.92;
    transition: opacity 0.3s;
  }

  .top-right a:hover {
    opacity: 1;
    text-decoration: underline;
  }

  .top-right a.offers-link {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    text-decoration: none;
    opacity: 0.95;
    transition: all 0.3s;
  }

  .top-right a.offers-link:hover {
    gap: 0.6rem;
    opacity: 1;
    text-decoration: none;
  }

  /* MAIN HEADER — Market Ribbon */
  .main-header {
    background: linear-gradient(180deg, #fffaf2 0%, #fbf3e6 100%);
    padding: 1.1rem 3rem;
    display: flex;
    align-items: center;
    gap: 2.2rem;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    animation: slideDown 0.8s ease forwards;
    transition: transform 0.3s ease;
  }

  .main-header.header-hidden {
    transform: translateY(-100%);
  }

  /* LOGO — actual brand image */
  .logo-section {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
  }

  .logo-image {
    height: 64px;
    width: auto;
    display: block;
    flex-shrink: 0;
  }

  /* LOCATION SELECTOR */
  .location-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.3s;
  }

  .location-selector:hover {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--glow);
  }

  .location-selector i {
    color: var(--accent);
    font-size: 1.05rem;
  }

  .location-text {
    display: flex;
    flex-direction: column;
  }

  .location-label {
    font-size: 0.7rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .location-name {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text);
  }

  /* SEARCH BAR — soft glowing pill */
  .search-section {
    flex: 1;
    position: relative;
  }

  .search-container {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 999px;
    padding: 0.3rem 0.3rem 0.3rem 1.3rem;
    transition: border-color 0.25s, box-shadow 0.25s;
  }

  .search-container:hover,
  .search-container:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--glow);
  }

  .search-input {
    flex: 1;
    padding: 0.6rem 0.5rem;
    border: none;
    background: transparent;
    font-size: 0.92rem;
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    outline: none;
  }

  .search-input::placeholder {
    color: #a89c8a;
  }

  .search-btn {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.25s;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .search-btn:hover {
    transform: scale(1.07) rotate(8deg);
    box-shadow: none;
  }

  /* VOICE SEARCH MIC BUTTON */
  .voice-search-btn {
    background: transparent;
    color: var(--muted);
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .voice-search-btn:hover { color: var(--accent); background: var(--surface2); }
  .voice-search-btn.listening {
    color: #fff;
    background: var(--accent2);
    animation: micPulse 1.2s ease-in-out infinite;
  }
  @keyframes micPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(232,67,26,0.45); }
    50% { box-shadow: 0 0 0 8px rgba(232,67,26,0); }
  }

  /* LIVE SEARCH SUGGESTIONS DROPDOWN */
  .search-suggestions {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 14px; box-shadow: 0 12px 32px rgba(20,15,10,0.15);
    max-height: 380px; overflow-y: auto;
    z-index: 500; display: none; padding: 0.4rem;
  }
  .search-suggestions.active { display: block; }
  .search-suggestion-item {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.6rem 0.6rem; border-radius: 10px; cursor: pointer;
    transition: background 0.15s;
  }
  .search-suggestion-item:hover,
  .search-suggestion-item.highlighted { background: var(--surface2); }
  .ssi-thumb {
    width: 42px; height: 42px; border-radius: 8px; flex-shrink: 0;
    background: var(--surface2); display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; overflow: hidden;
  }
  .ssi-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .voice-history-icon { background: rgba(217,115,12,0.1); }
  .ssi-info { flex: 1; min-width: 0; }
  .ssi-name {
    font-size: 0.88rem; font-weight: 600; color: var(--text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .ssi-category { font-size: 0.72rem; color: var(--muted); }
  .ssi-price { font-size: 0.85rem; font-weight: 700; color: var(--accent); white-space: nowrap; }
  .search-suggestions-empty {
    padding: 1.25rem 1rem; text-align: center; color: var(--muted); font-size: 0.85rem;
  }
  .search-suggestions-fuzzy-note {
    padding: 0.5rem 0.9rem; font-size: 0.74rem; color: var(--muted); font-style: italic;
    border-bottom: 1px solid var(--border);
  }
  .search-suggestions-footer {
    padding: 0.6rem 0.75rem 0.3rem; border-top: 1px solid var(--border); margin-top: 0.3rem;
    font-size: 0.78rem; color: var(--accent); font-weight: 600; cursor: pointer; text-align: center;
  }
  @media (max-width: 640px) {
    .search-suggestions { max-height: 320px; border-radius: 12px; }
    .ssi-thumb { width: 36px; height: 36px; }
    .ssi-name { font-size: 0.82rem; }
    .ssi-category { font-size: 0.68rem; }
    .ssi-price { font-size: 0.78rem; }
  }

  /* HEADER ACTIONS */
  .header-actions {
    display: flex;
    gap: 1.6rem;
    align-items: center;
    flex-shrink: 0;
  }

  .action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.28rem;
    cursor: pointer;
    text-decoration: none;
    color: var(--text);
    transition: all 0.3s;
    position: relative;
  }

  .action-item:hover {
    color: var(--accent);
  }

  .action-icon {
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }

  .action-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-align: center;
  }

  .cart-badge {
    position: absolute;
    top: -7px;
    right: -11px;
    background: var(--accent2);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 700;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  }

  .wallet-badge {
    width: auto;
    min-width: 20px;
    height: 18px;
    border-radius: 10px;
    padding: 0 5px;
    right: -14px;
    top: -8px;
    font-size: 0.62rem;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
  }

  .account-dropdown {
    position: relative;
    flex-direction: row;
    align-items: center;
    gap: 0.6rem;
    background: var(--text);
    color: #f2e9da;
    padding: 0.5rem 1.1rem 0.5rem 0.5rem;
    border-radius: 999px;
    transition: background 0.25s;
  }

  .account-dropdown:hover {
    color: #f2e9da;
    background: #1d1610;
  }

  .account-dropdown .action-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    font-size: 0.85rem;
    color: #fff;
    font-weight: 700;
  }

  .account-dropdown .action-label {
    font-size: 0.78rem;
    font-weight: 600;
  }

  .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(40,30,20,0.16);
    min-width: 200px;
    margin-top: 0;
    padding-top: 0.8rem;
    z-index: 1000;
  }

  .account-dropdown:hover .dropdown-menu,
  .account-dropdown:focus-within .dropdown-menu {
    display: block;
  }

  .dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 1.2rem;
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
    border-bottom: 1px solid var(--border);
  }

  .dropdown-menu a:last-child {
    border-bottom: none;
  }

  .dropdown-menu a:hover {
    background: var(--glow);
    color: var(--accent);
    padding-left: 1.5rem;
  }

  .wallet-menu-badge {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.15rem 0.55rem;
    border-radius: 20px;
    white-space: nowrap;
  }

  /* AUTH STATE VISIBILITY — toggled by JS based on login session */
  /* .dropdown-menu a sets display:flex with higher specificity (class+
     element) than a bare .auth-member-only class selector, so the plain
     version below was always losing and never actually hiding anything —
     these use the same .dropdown-menu a chain to win on specificity. */
  .dropdown-menu a.auth-member-only { display: none; }
  body.is-logged-in .dropdown-menu a.auth-guest-only { display: none; }
  body.is-logged-in .dropdown-menu a.auth-member-only { display: flex; }

  /* CATEGORY BAR — auto-scrolling marquee of all categories */
  .category-bar {
    background: var(--surface2);
    padding: 0.85rem 0;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    border-bottom: 1px solid var(--border);
    animation: slideDown 1s ease forwards;
    overflow: hidden;
    position: relative;
  }
  .category-bar::before, .category-bar::after {
    content: '';
    position: absolute; top: 0; bottom: 0; width: 60px; z-index: 2; pointer-events: none;
  }
  .category-bar::before { left: 0; background: linear-gradient(90deg, var(--surface2), transparent); }
  .category-bar::after { right: 0; background: linear-gradient(270deg, var(--surface2), transparent); }

  .category-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    white-space: nowrap;
    animation: catMarquee 120s linear infinite;
    will-change: transform;
  }
  .category-bar:hover .category-links,
  .category-bar.paused .category-links {
    animation-play-state: paused;
  }
  @keyframes catMarquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
  }
  @media (prefers-reduced-motion: reduce) {
    .category-links { animation: none; }
  }

  .category-links a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.3s;
    white-space: nowrap;
  }

  .category-links a:hover {
    color: var(--accent);
  }

  .category-links a.offers {
    color: var(--accent);
  }

  @keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }

  /* ─── RESPONSIVE ─── */
  

  /* ─── RESPONSIVE ─── */
  @media (max-width: 1024px) {
    .main-header {
      flex-wrap: wrap;
      gap: 1rem;
      padding: 1rem 2rem;
    }

    .search-section {
      order: 3;
      flex-basis: 100%;
    }

    .category-links {
      gap: 1.5rem;
    }

    .category-links a {
      font-size: 0.85rem;
    }
  }

  @media (max-width: 768px) {
    .top-info-bar {
      flex-direction: column;
      gap: 0.8rem;
      padding: 0.8rem 1.5rem;
      text-align: center;
    }

    .top-right {
      gap: 1rem;
      font-size: 0.8rem;
      flex-wrap: wrap;
      justify-content: center;
    }

    .main-header {
      flex-wrap: wrap;
      gap: 0.8rem;
      padding: 0.8rem 1.5rem;
    }

    .logo-image {
      height: 50px;
    }

    .location-selector {
      display: none;
    }

    .search-section {
      order: 3;
      flex-basis: 100%;
    }

    .header-actions {
      gap: 1rem;
      order: 2;
      flex: 1;
      justify-content: flex-end;
    }

    .action-label {
      font-size: 0.7rem;
    }

    .account-dropdown {
      padding: 0.4rem 0.9rem 0.4rem 0.4rem;
      gap: 0.45rem;
    }

    .category-bar {
      padding: 0.7rem 0;
    }

    .category-links {
      gap: 1.5rem;
      animation-duration: 150s;
    }
  }

  @media (max-width: 480px) {
    .top-info-bar {
      padding: 0.6rem 1rem;
      font-size: 0.68rem;
    }

    .top-left span {
      font-size: 0.68rem;
    }

    .top-right {
      gap: 0.7rem;
      font-size: 0.68rem;
      flex-wrap: wrap;
      justify-content: center;
    }

    .main-header {
      padding: 0.7rem 1rem;
      gap: 0.6rem;
    }

    .logo-image {
      height: 40px;
    }

    .search-section {
      max-width: 100%;
    }

    .search-container {
      padding: 0.2rem 0.2rem 0.2rem 0.9rem;
    }

    .search-input {
      padding: 0.5rem 0.4rem;
      font-size: 0.85rem;
    }

    .search-btn {
      width: 36px;
      height: 36px;
    }

    .header-actions {
      gap: 0.85rem;
    }

    .action-icon {
      font-size: 1.15rem;
    }

    .action-label {
      display: none;
    }

    .account-dropdown {
      padding: 0.3rem;
      gap: 0;
    }

    .account-dropdown .action-icon {
      width: 28px;
      height: 28px;
      font-size: 0.78rem;
    }

    .category-links {
      gap: 1rem;
    }

    .category-links a {
      font-size: 0.8rem;
    }

    .category-links a i,
    .category-links a svg {
      display: none;
    }
  }

  /* PAGE HEADER */
  .page-header {
    padding: 3rem 4rem 2rem;
    background: linear-gradient(135deg, var(--glow), rgba(232,67,26,0.05));
    border-bottom: 1px solid var(--border);
  }
  .breadcrumb { display: flex; gap: 0.5rem; font-size: 0.85rem; color: var(--muted); margin-bottom: 1.5rem; align-items: center; }
  .breadcrumb a { color: var(--accent); cursor: pointer; text-decoration: none; }
  .breadcrumb span.sep { color: var(--muted); }
  .page-header h1 { font-family: 'Playfair Display', serif; font-size: 2.5rem; color: var(--text); margin-bottom: 0.5rem; }
  .page-header p { color: var(--muted); }

  /* SHOP LAYOUT */
  .shop-layout {
    display: grid; grid-template-columns: 280px 1fr;
    gap: 3rem; padding: 3rem 4rem; max-width: 1600px; margin: 0 auto;
  }
  .sidebar {
    background: var(--surface); padding: 2rem; border-radius: 12px;
    border: 1px solid var(--border); height: fit-content;
    position: sticky; top: 110px;
    max-height: calc(100vh - 130px); overflow-y: auto;
  }
  .sidebar-drawer-head { display: none; }
  .sidebar-close-btn { display: none; }

  /* MOBILE STICKY FILTER + SORT BAR (hidden on desktop) */
  .mobile-filter-bar { display: none; }
  .sidebar-overlay { display: none; }
  .sidebar-section { margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
  .sidebar-section:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
  .sidebar-filter-actions { margin-top: 1.5rem; }
  .sidebar-section h3 { font-weight: 600; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1rem; color: var(--text); }
  .cat-list { display: flex; flex-direction: column; gap: 0.8rem; }
  .cat-list label { display: flex; align-items: center; gap: 0.6rem; cursor: pointer; font-size: 0.9rem; color: var(--text); }
  .cat-list input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
  .price-inputs { display: flex; gap: 0.5rem; margin-bottom: 1rem; align-items: center; }
  .price-inputs input { width: 80px; padding: 0.5rem; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); color: var(--text); outline: none; }
  
  /* ADVANCED PRICE RANGE SLIDER */
  .price-range-container {
    width: 100%;
    margin-bottom: 1.5rem;
  }

  .price-range-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(217, 115, 12, 0.08) 0%, rgba(232, 67, 26, 0.05) 100%);
    border-radius: 12px;
    border: 1px solid var(--border);
  }

  .price-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .price-badge-label {
    font-size: 0.7rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    margin-bottom: 0.3rem;
  }

  .price-badge-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent);
    font-family: 'DM Sans', sans-serif;
  }

  .price-badge-divider {
    color: var(--border);
    font-weight: 300;
    margin: 0 0.75rem;
    font-size: 1.2rem;
  }

  .slider-container {
    position: relative;
    margin: 2rem 0 1.5rem 0;
    padding: 0 8px;
  }

  .slider-track {
    position: relative;
    height: 8px;
    background: var(--surface2);
    border-radius: 10px;
    outline: none;
  }

  .slider-progress {
    position: absolute;
    height: 8px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent2) 100%);
    border-radius: 10px;
    top: 0;
    pointer-events: none;
    box-shadow: 0 2px 8px rgba(217, 115, 12, 0.3);
  }

  .range-input-wrapper {
    position: absolute;
    top: 0;
    left: 8px;
    right: 8px;
    width: auto;
    height: 8px;
  }

  .range-slider-input {
    position: absolute;
    width: 100%;
    height: 22px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    background: none;
    border: none;
    outline: none;
    -webkit-appearance: none;
    pointer-events: none;
    z-index: 5;
  }

  .range-slider-input::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
    cursor: pointer;
    pointer-events: auto;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(217, 115, 12, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.4);
    transition: all 0.2s ease;
    position: relative;
    z-index: 6;
  }

  .range-slider-input::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(217, 115, 12, 0.45), inset 0 1px 2px rgba(255, 255, 255, 0.4);
  }

  .range-slider-input::-webkit-slider-thumb:active {
    transform: scale(1.25);
  }

  .range-slider-input::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
    cursor: pointer;
    pointer-events: auto;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(217, 115, 12, 0.35), inset 0 1px 2px rgba(255, 255, 255, 0.4);
    transition: all 0.2s ease;
  }

  .range-slider-input::-moz-range-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 20px rgba(217, 115, 12, 0.45), inset 0 1px 2px rgba(255, 255, 255, 0.4);
  }

  .range-slider-input::-moz-range-thumb:active {
    transform: scale(1.25);
  }

  .range-slider-input::-moz-range-track {
    background: none;
    border: none;
  }

  .slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: 0.75rem;
    padding: 0 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .range-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
  }

  .range-input-group {
    position: relative;
  }

  .range-input-group label {
    display: block;
    font-size: 0.7rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    margin-bottom: 0.5rem;
    white-space: nowrap;
  }

  .range-input-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid var(--border);
    border-radius: 10px;
    background: var(--bg);
    color: var(--text);
    outline: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
  }

  .range-input-group input:focus {
    border-color: var(--accent);
    background: rgba(217, 115, 12, 0.04);
    box-shadow: 0 0 0 3px rgba(217, 115, 12, 0.1);
  }

  .slider-info {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: var(--bg);
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--muted);
  }

  .slider-info::before {
    content: 'ℹ';
    font-weight: 700;
    color: var(--accent);
    margin-right: 0.25rem;
  }
  .btn-primary { width: 100%; padding: 0.8rem; background: var(--accent); color: #fff; border: none; border-radius: 8px; cursor: pointer; font-weight: 600; margin-bottom: 0.5rem; transition: opacity 0.2s; }
  .btn-primary:hover { opacity: 0.9; }
  .btn-secondary { width: 100%; padding: 0.8rem; background: transparent; color: var(--text); border: 1px solid var(--border); border-radius: 8px; cursor: pointer; transition: background 0.2s; }
  .btn-secondary:hover { background: var(--surface2); }
  .sort-select { width: 100%; padding: 0.65rem 1rem; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); cursor: pointer; outline: none; }
  .product-count { margin-bottom: 1.5rem; font-size: 0.95rem; color: var(--muted); }
  .product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 2rem; }

  /* PRODUCT CARD */
  .product-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 12px; overflow: hidden; transition: all 0.3s;
  }
  .product-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 8px 24px var(--glow);
  }
  .product-card {
    display: flex; flex-direction: column;
  }
  .card-image {
    position: relative; background: var(--surface2); height: 200px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
  }
  .card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .card-emoji { font-size: 4rem; }
  .discount-strip {
    background: linear-gradient(90deg, var(--accent2), var(--accent));
    padding: 0.4rem 1rem; display: flex; align-items: center;
  }
  .discount-badge {
    color: #fff; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.02em;
  }
  .wishlist-btn {
    position: absolute; top: 0.75rem; right: 0.75rem;
    border: none; width: 36px; height: 36px; border-radius: 50%;
    font-size: 1.3rem; cursor: pointer; transition: all 0.2s;
    display: flex; align-items: center; justify-content: center;
    background: transparent; box-shadow: none;
    filter: drop-shadow(0 1px 3px rgba(0,0,0,0.45));
    z-index: 2;
  }
  .wishlist-btn:hover { transform: scale(1.12); }
  .wishlist-btn.in-wishlist { transform: scale(1.05); }
  .card-utility-row { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.3rem; }
  .card-utility-row .card-category { margin-bottom: 0; }
  .card-utility-icons { display: flex; align-items: center; gap: 0.3rem; flex-shrink: 0; }
  .share-btn {
    border: none; width: 26px; height: 26px; border-radius: 50%;
    cursor: pointer; transition: all 0.2s;
    display: flex; align-items: center; justify-content: center;
    background: var(--surface2); color: var(--muted);
  }
  .share-btn:hover { color: var(--accent); background: var(--accent-bg, rgba(217,115,12,0.1)); }
  .compare-toggle-btn {
    border: none; width: 26px; height: 26px; border-radius: 50%;
    cursor: pointer; transition: all 0.2s; font-size: 0.85rem;
    display: flex; align-items: center; justify-content: center;
    background: var(--surface2); color: var(--muted);
  }
  .compare-toggle-btn:hover { color: var(--accent); background: var(--accent-bg, rgba(217,115,12,0.1)); }
  .compare-toggle-btn.in-compare { background: var(--accent); color: #fff; }
  .qv-trigger-mobile { display: none; }
  .card-body { padding: 1.25rem 1.5rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
  .card-category { font-size: 0.72rem; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.4rem; font-weight: 700; }
  .card-name { font-size: 1rem; margin-bottom: 0.4rem; line-height: 1.4; font-weight: 600; color: var(--text); }
  .card-rating { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; font-size: 0.85rem; }
  .stars { color: var(--accent); }
  .reviews { color: var(--muted); }
  .stock-in, .stock-low, .stock-out { font-size: 0.78rem; margin-bottom: 0.5rem; text-align: left; }
  .stock-in { color: #15803d; }
  .stock-low { color: #b45309; }
  .stock-out { color: #991b1b; }
  .card-footer-row {
    margin-top: auto; padding-top: 0.5rem;
    display: flex; flex-direction: column; align-items: stretch; gap: 0.6rem;
  }
  .card-price { display: flex; flex-direction: row; align-items: baseline; gap: 0.4rem; }
  .original-price { font-size: 0.82rem; color: var(--muted); text-decoration: line-through; }
  .sale-price { font-size: 1.15rem; font-weight: 700; color: var(--accent); }
  .card-cta-group { display: flex; gap: 0.5rem; }
  .add-to-cart-btn, .buy-now-btn {
    flex: 1; padding: 0.6rem 0.8rem; border-radius: 8px;
    font-weight: 600; cursor: pointer; transition: all 0.3s; font-size: 0.82rem;
    white-space: nowrap; text-align: center;
  }
  .add-to-cart-btn {
    color: var(--text); border: 1px solid var(--border);
    background: var(--surface2);
  }
  .add-to-cart-btn:hover:not(:disabled) { background: var(--accent); color: #fff; border-color: var(--accent); }
  .add-to-cart-btn:disabled { background: #eee; color: #999; cursor: not-allowed; opacity: 0.7; flex: 1 1 100%; }
  .add-to-cart-btn.added { background: var(--success); color: #fff; border-color: var(--success); }
  .card-cart-cta { flex: 1; min-width: 0; } /* min-width:0 lets the stepper shrink instead of forcing the card wider on small screens */
  .card-qty-stepper {
    display: flex; align-items: stretch; justify-content: space-between;
    border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
    background: var(--surface2); height: 100%; min-height: 34px;
  }
  .card-qty-stepper button {
    flex: 0 0 28px; border: none; background: transparent; cursor: pointer;
    font-size: 1rem; font-weight: 700; color: var(--accent);
    display: flex; align-items: center; justify-content: center; padding: 0;
  }
  .card-qty-stepper button:hover:not(:disabled) { background: var(--accent); color: #fff; }
  .card-qty-stepper button:disabled { color: var(--muted); cursor: not-allowed; }
  .card-qty-val {
    flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center;
    font-size: 0.85rem; font-weight: 700; color: var(--text);
  }
  .buy-now-btn {
    color: #fff; border: 1px solid var(--accent); background: var(--accent);
  }
  .buy-now-btn:hover { filter: brightness(1.08); box-shadow: 0 4px 12px var(--glow); }
  .notify-btn { background: var(--surface2); color: var(--text); border: 1px solid var(--border); }
  .notify-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); filter: none; box-shadow: none; }

  /* ─── PRODUCT GRID / CARD — MOBILE (2 columns, compact, no overlap) ─── */
  @media (max-width: 640px) {
    .shop-layout { padding: 1.5rem 1rem; gap: 1.5rem; }
    .product-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 0.9rem;
    }
    .card-image { height: 130px; }
    /* Wishlist stays on the image; share/compare now live inline in the
       card body (see .card-utility-icons), so they no longer need to be
       squeezed onto the image edge or risk being clipped there. */
    .wishlist-btn { top: 0.5rem; width: 30px; height: 30px; font-size: 1.1rem; }
    .card-utility-icons { gap: 0.25rem; }
    .share-btn, .compare-toggle-btn { width: 22px; height: 22px; }
    .share-btn svg { width: 12px; height: 12px; }
    .compare-toggle-btn { font-size: 0.72rem; }
    .card-emoji { font-size: 2.5rem; }
    .card-body { padding: 0.8rem 0.9rem 0.9rem; }
    .card-category { font-size: 0.62rem; margin-bottom: 0.25rem; }
    .card-name {
      font-size: 0.82rem; margin-bottom: 0.3rem;
      display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
      overflow: hidden;
    }
    .card-rating { font-size: 0.72rem; gap: 0.35rem; margin-bottom: 0.35rem; }
    .stock-in, .stock-low, .stock-out { font-size: 0.68rem; margin-bottom: 0.35rem; }
    .card-footer-row { flex-wrap: wrap; gap: 0.4rem; }
    .original-price { font-size: 0.7rem; }
    .sale-price { font-size: 0.95rem; }
    .card-cta-group { gap: 0.35rem; }
    .add-to-cart-btn, .buy-now-btn { padding: 0.5rem 0.4rem; font-size: 0.7rem; }
    .discount-strip { padding: 0.3rem 0.75rem; }
    .discount-badge { font-size: 0.66rem; }

    /* Wishlist button — icon only, no circle background, sits fully inside the image */
    .wishlist-btn {
      top: 0.5rem; right: 0.5rem;
      width: 28px; height: 28px; font-size: 1.05rem;
      background: transparent; box-shadow: none;
    }
    .wishlist-btn.in-wishlist { transform: scale(1.05); }

    /* Quick View — permanent small box above the category name (not an image overlay on mobile) */
    .qv-trigger { display: none; }
    .qv-trigger-mobile {
      display: flex; align-items: center; justify-content: center; gap: 0.3rem;
      width: 100%; margin-bottom: 0.5rem;
      padding: 0.4rem 0.5rem; font-size: 0.68rem; font-weight: 700;
      letter-spacing: 0.02em; color: #fff;
      background: rgba(217,115,12,0.92); border: none; border-radius: 6px;
      cursor: pointer;
    }
  }

  /* RECENTLY VIEWED */
  .recently-viewed-section {
    padding: 3rem 4rem; max-width: 1600px; margin: 0 auto;
    display: none; /* hidden by default, shown when products exist */
  }
  .recently-viewed-section.active { display: block; animation: fadeIn 0.3s ease; }
  .recently-viewed-title {
    font-family: 'Playfair Display', serif; font-size: 1.8rem;
    color: var(--text); margin-bottom: 2rem; font-weight: 600;
    display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap;
  }
  .continue-shopping-see-all {
    font-family: 'DM Sans', sans-serif; font-size: 0.85rem; font-weight: 700;
    color: var(--accent); text-decoration: none;
  }
  .continue-shopping-see-all:hover { text-decoration: underline; }

  /* Complete your profile nudge */
  .profile-nudge { max-width: 1600px; margin: 1.5rem auto 0; padding: 0 4rem; }
  .profile-nudge-inner {
    position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem;
    background: var(--surface2); border: 1px solid var(--border); border-radius: 12px;
    padding: 1rem 3rem 1rem 1.25rem;
  }
  .profile-nudge-text { flex: 1 1 260px; font-size: 0.88rem; color: var(--text); }
  .profile-nudge-fields { display: flex; gap: 0.6rem; flex-wrap: wrap; }
  .profile-nudge-input {
    padding: 0.5rem 0.7rem; border: 1px solid var(--border); border-radius: 8px;
    background: var(--bg); color: var(--text); font-size: 0.85rem; font-family: inherit;
  }
  .profile-nudge-save {
    padding: 0.5rem 1rem; background: var(--accent); color: #fff; border: none;
    border-radius: 8px; font-weight: 700; cursor: pointer; font-size: 0.85rem;
  }
  .profile-nudge-close {
    position: absolute; top: 0.6rem; right: 0.7rem; background: none; border: none;
    color: var(--muted); cursor: pointer; font-size: 1rem; line-height: 1;
  }
  @media (max-width: 640px) {
    .profile-nudge { padding: 0 1rem; }
    .profile-nudge-inner { padding: 1rem 2.2rem 1rem 1rem; }
  }
  @media (max-width: 640px) {
    .recently-viewed-section { padding: 2rem 1rem; }
    .recently-viewed-section.active { padding-bottom: 0; }
    .recently-viewed-title { font-size: 1.3rem; margin-bottom: 1.2rem; }
    .recently-viewed-card { flex: 0 0 145px; width: 145px; }
    .rv-image { height: 110px; font-size: 2.2rem; }
    .rv-body { padding: 0.7rem; }
    .rv-name { font-size: 0.78rem; }
    .rv-price { font-size: 0.88rem; }
  }
  .recently-viewed-grid {
    display: flex; flex-wrap: nowrap; overflow-x: auto;
    scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
    gap: 1.5rem; margin-bottom: 3rem; padding-bottom: 0.75rem;
    scrollbar-width: thin;
  }
  .recently-viewed-grid::-webkit-scrollbar { height: 6px; }
  .recently-viewed-grid::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }
  .recently-viewed-grid::-webkit-scrollbar-track { background: transparent; }
  .recently-viewed-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 10px; overflow: hidden; transition: all 0.3s;
    cursor: pointer; position: relative; transform: scale(0.95);
    animation: fadeIn 0.3s ease forwards;
    flex: 0 0 200px; width: 200px; scroll-snap-align: start;
  }
  .recently-viewed-card:hover {
    transform: scale(1) translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 6px 18px var(--glow);
  }
  .rv-image {
    position: relative; background: var(--surface2); height: 150px;
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem; overflow: hidden;
  }
  .rv-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .rv-body { padding: 1rem; }
  .rv-name { font-size: 0.9rem; font-weight: 500; color: var(--text); margin-bottom: 0.4rem; line-height: 1.3; }
  .rv-price { font-size: 1rem; font-weight: 700; color: var(--accent); }
  .rv-badge {
    position: absolute; top: 0.5rem; right: 0.5rem;
    background: var(--accent); color: #fff; font-size: 0.7rem;
    padding: 0.3rem 0.6rem; border-radius: 4px; font-weight: 600;
  }

  /* EMPTY STATE */
  .empty-state {
    text-align: center; padding: 4rem; background: var(--surface);
    border-radius: 12px; border: 1px solid var(--border);
  }
  .empty-state .big-icon { font-size: 3rem; display: block; margin-bottom: 1rem; }
  .empty-state h3 { font-family: 'Playfair Display', serif; font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--text); }
  .empty-state p { color: var(--muted); margin-bottom: 1.5rem; }

  /* TOAST */
  #toast-container {
    position: fixed; bottom: 2rem; right: 2rem; z-index: 9999;
    display: flex; flex-direction: column; gap: 1rem;
  }
  .toast {
    color: #fff; padding: 1rem 1.5rem; border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15); font-size: 0.9rem;
    font-weight: 500; animation: toastIn 0.3s ease;
    background: var(--success);
  }
  .toast.warn { background: #b45309; }
  .toast.error { background: #991b1b; }

  /* WISHLIST PAGE */
  .wishlist-actions {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.5rem 0; border-bottom: 1px solid var(--border); margin-bottom: 0.5rem;
    flex-wrap: wrap; gap: 1rem;
  }
  .shared-wishlist-banner {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    background: var(--surface2); border: 1px solid var(--border); border-radius: 10px;
    padding: 0.9rem 1.2rem; margin: 1.5rem 0; font-size: 0.88rem; color: var(--text); flex-wrap: wrap;
  }
  .outline-btn {
    padding: 0.65rem 1.2rem; background: transparent; color: var(--accent2);
    border: 2px solid var(--accent2); border-radius: 8px;
    font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: all 0.3s;
  }
  .outline-btn:hover { background: var(--accent2); color: #fff; }

  /* CART PAGE */
  .cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 3rem; align-items: start; }
  .cart-page-inner { padding: 2rem 4rem 5rem; max-width: 1600px; margin: 0 auto; }
  .trust-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2rem; }

  /* Save Cart for Later */
  .cart-save-row { display: flex; justify-content: flex-end; margin: 0.8rem 0 1.5rem; }
  .cart-save-btn {
    background: none; border: 1.5px solid var(--border); color: var(--text);
    padding: 0.55rem 1rem; border-radius: 8px; font-size: 0.83rem; font-weight: 600; cursor: pointer;
  }
  .cart-save-btn:hover { border-color: var(--accent); color: var(--accent); }

  .saved-carts-panel {
    max-width: 1600px; margin: 2rem auto 0; padding: 0 4rem;
  }
  .saved-carts-title { font-family: 'Playfair Display', serif; font-size: 1.3rem; margin-bottom: 1rem; }
  .saved-cart-row {
    display: flex; align-items: center; gap: 1rem; background: var(--surface);
    border: 1px solid var(--border); border-radius: 12px; padding: 0.9rem 1.1rem; margin-bottom: 0.8rem;
  }
  .saved-cart-thumbs { display: flex; flex-shrink: 0; }
  .saved-cart-thumb {
    width: 42px; height: 42px; border-radius: 8px; background: var(--surface2);
    display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
    border: 2px solid var(--bg); margin-left: -10px; overflow: hidden;
  }
  .saved-cart-thumb:first-child { margin-left: 0; }
  .saved-cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .saved-cart-more { background: var(--accent); color: #fff; font-size: 0.7rem; font-weight: 700; }
  .saved-cart-info { flex: 1; min-width: 0; }
  .saved-cart-name { font-weight: 700; font-size: 0.92rem; }
  .saved-cart-meta { font-size: 0.78rem; color: var(--muted); margin-top: 0.15rem; }
  .saved-cart-actions { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
  .btn-secondary.sm { width: auto; padding: 0.5rem 0.9rem; font-size: 0.8rem; }
  .saved-cart-delete {
    background: none; border: none; color: var(--muted); font-size: 1rem; cursor: pointer; padding: 0.3rem;
  }
  .saved-cart-delete:hover { color: #dc2626; }
  @media (max-width: 640px) {
    .saved-carts-panel { padding: 0 1rem; }
    .saved-cart-row { flex-wrap: wrap; }
    .saved-cart-actions { width: 100%; justify-content: flex-end; }
  }
  .trust-item { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 1rem; text-align: center; }
  .trust-item .t-icon { font-size: 1.4rem; margin-bottom: 0.3rem; }
  .trust-item .t-title { font-weight: 600; font-size: 0.82rem; color: var(--text); }
  .trust-item .t-sub { font-size: 0.75rem; color: var(--muted); }
  .cart-item {
    background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
    padding: 1.5rem; margin-bottom: 1rem; display: flex; gap: 1.5rem; align-items: center;
  }
  .cart-thumb {
    background: var(--surface2); width: 90px; height: 90px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center; font-size: 2.5rem; flex-shrink: 0;
    overflow: hidden;
  }
  .cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .cart-info { flex: 1; }
  .cart-info .cat { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.25rem; font-weight: 600; }
  .cart-info .name { font-weight: 600; font-size: 1rem; color: var(--text); margin-bottom: 0.5rem; }
  .cart-info .price-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem; }
  .cart-info .price-row .p { font-weight: 700; font-size: 1.1rem; color: var(--accent); }
  .cart-info .price-row .op { font-size: 0.85rem; color: var(--muted); text-decoration: line-through; }
  .qty-controls { display: flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
  .qty-controls button { width: 36px; height: 36px; border: none; background: var(--surface2); cursor: pointer; font-size: 1.1rem; font-weight: 700; color: var(--text); }
  .qty-controls .qty-val { width: 40px; display: flex; align-items: center; justify-content: center; font-size: 0.95rem; font-weight: 600; background: var(--surface); }
  .remove-btn { background: none; border: none; cursor: pointer; color: var(--accent2); font-size: 0.9rem; font-weight: 600; margin-left: auto; }
  .coupon-box { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; margin-top: 0.5rem; }
  .coupon-box h4 { font-weight: 600; font-size: 0.95rem; margin-bottom: 1rem; color: var(--text); }
  .coupon-row { display: flex; gap: 0.75rem; margin-bottom: 0.5rem; }
  .coupon-input { flex: 1; border: 1px solid var(--border); border-radius: 8px; padding: 0.65rem 1rem; background: var(--bg); color: var(--text); outline: none; font-size: 0.9rem; }
  .coupon-input:focus { border-color: var(--accent); }
  .apply-btn { padding: 0.65rem 1.2rem; background: var(--accent); color: #fff; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; }
  .coupon-chips { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.75rem; }
  .coupon-chip { background: var(--surface2); border: 1px dashed var(--accent); border-radius: 6px; padding: 0.25rem 0.75rem; font-size: 0.8rem; cursor: pointer; color: var(--accent); font-weight: 600; }
  .coupon-err { color: #991b1b; font-size: 0.85rem; margin-bottom: 0.5rem; }
  .coupon-applied { display: flex; justify-content: space-between; align-items: center; background: #f0fdf4; border: 1px solid #86efac; border-radius: 8px; padding: 0.75rem 1rem; font-size: 0.9rem; }
  .summary-box { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 2rem; position: sticky; top: 110px; }
  .summary-box h3 { font-family: 'Playfair Display', serif; font-size: 1.4rem; margin-bottom: 1.5rem; color: var(--text); }
  .summary-row { display: flex; justify-content: space-between; margin-bottom: 0.9rem; font-size: 0.95rem; color: var(--muted); }
  .summary-row .v { color: var(--text); font-weight: 400; }
  .summary-row.green .v, .summary-row.green { color: #15803d; }
  .summary-row.green .v { font-weight: 600; }
  .summary-total { border-top: 1px solid var(--border); padding-top: 1rem; margin-top: 0.5rem; display: flex; justify-content: space-between; }
  .summary-total .tl { font-weight: 700; font-size: 1.1rem; color: var(--text); }
  .summary-total .tv { font-weight: 700; font-size: 1.3rem; color: var(--accent); }
  .checkout-btn {
    width: 100%; margin-top: 1.5rem; padding: 1rem;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff; border: none; border-radius: 10px; font-weight: 700;
    font-size: 1rem; cursor: pointer; box-shadow: 0 4px 16px var(--glow); transition: all 0.3s;
  }
  .checkout-btn:hover { opacity: 0.92; }
  .ssl-note { text-align: center; margin-top: 1.5rem; font-size: 0.8rem; color: var(--muted); }
  .pay-icons { text-align: center; margin-top: 0.75rem; font-size: 1.4rem; letter-spacing: 0.2rem; }

  /* CHECKOUT */
  .checkout-wrap { padding: 2rem 4rem 5rem; max-width: 1200px; margin: 0 auto; }
  .checkout-wrap h2 { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--text); margin-bottom: 2rem; }
  .step-bar { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1.25rem 2rem; margin-bottom: 2rem; display: flex; align-items: center; }
  .step-item { display: flex; align-items: center; flex: 1; }
  .step-circle { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 700; background: #e5e7eb; color: #9ca3af; }
  .step-circle.active { background: var(--accent); color: #fff; }
  .step-circle.done { background: var(--success); color: #fff; }
  .step-label { font-size: 0.9rem; margin-left: 0.5rem; color: #9ca3af; }
  .step-label.active { color: var(--accent); font-weight: 600; }
  .step-label.done { color: var(--success); }
  .step-line { flex: 1; height: 2px; background: #e5e7eb; margin: 0 0.75rem; }
  .step-line.done { background: var(--success); }
  .checkout-grid { display: grid; grid-template-columns: 1fr 340px; gap: 2.5rem; align-items: start; }
  .checkout-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 2rem; }
  .checkout-card h3 { font-family: 'Playfair Display', serif; font-size: 1.4rem; margin-bottom: 1.5rem; color: var(--text); }
  .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .form-grid .full { grid-column: 1 / -1; }
  .form-lbl { font-size: 0.82rem; font-weight: 600; color: var(--muted); display: block; margin-bottom: 0.4rem; text-transform: uppercase; letter-spacing: 0.04em; }
  .form-inp { width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--text); outline: none; font-size: 0.95rem; transition: border-color 0.2s; }
  .form-inp:focus { border-color: var(--accent); }

  /* ─── LOGIN / SIGNUP PAGES ─── */
  .auth-wrap {
    display: flex; justify-content: center; align-items: flex-start;
    padding: 3rem 1.5rem 6rem; min-height: 60vh;
  }
  .auth-card {
    width: 100%; max-width: 460px; background: var(--surface);
    border: 1px solid var(--border); border-radius: 16px;
    padding: 2.5rem 2.25rem; box-shadow: 0 20px 50px rgba(40,30,20,0.08);
  }
  .auth-header { text-align: center; margin-bottom: 2rem; }
  .auth-icon {
    width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 1rem;
    background: var(--glow); display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
  }
  .auth-header h1 {
    font-family: 'Playfair Display', serif; font-size: 1.7rem; color: var(--text); margin-bottom: 0.5rem;
  }
  .auth-header p { font-size: 0.88rem; color: var(--muted); line-height: 1.6; }

  .auth-field { margin-bottom: 1.1rem; }
  .auth-password-wrap { position: relative; }
  .auth-password-wrap .form-inp { padding-right: 2.8rem; }
  .auth-eye-btn {
    position: absolute; top: 50%; right: 0.6rem; transform: translateY(-50%);
    background: none; border: none; cursor: pointer; font-size: 1rem;
    color: var(--muted); padding: 0.3rem;
  }

  .auth-row-between {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1.4rem; flex-wrap: wrap; gap: 0.5rem;
  }
  .auth-checkbox-label {
    display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem;
    color: var(--muted); cursor: pointer;
  }
  .auth-checkbox-label input { width: 15px; height: 15px; accent-color: var(--accent); cursor: pointer; }
  .auth-link-small { font-size: 0.85rem; color: var(--accent); text-decoration: none; font-weight: 600; }
  .auth-link-small:hover { text-decoration: underline; }

  .auth-error {
    background: rgba(232,67,26,0.08); border: 1px solid rgba(232,67,26,0.25);
    color: var(--accent2); font-size: 0.85rem; padding: 0.75rem 1rem;
    border-radius: 8px; margin-bottom: 1.2rem;
  }

  .auth-submit-btn {
    width: 100%; padding: 0.95rem; border: none; border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff; font-weight: 700; font-size: 0.98rem; cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
  }
  .auth-submit-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px var(--glow); }

  .auth-divider {
    display: flex; align-items: center; text-align: center; margin: 1.75rem 0 1.25rem;
    color: var(--muted); font-size: 0.82rem;
  }
  .auth-divider::before, .auth-divider::after {
    content: ''; flex: 1; height: 1px; background: var(--border);
  }
  .auth-divider span { padding: 0 0.9rem; white-space: nowrap; }

  .auth-alt-btn {
    display: block; width: 100%; text-align: center; padding: 0.85rem;
    border: 1.5px solid var(--border); border-radius: 10px; text-decoration: none;
    color: var(--text); font-weight: 600; font-size: 0.92rem; transition: all 0.2s;
  }
  .auth-alt-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--glow); }

  /* VENDOR REGISTRATION — role cross-links */
  .vendor-roles-row { display: flex; flex-wrap: wrap; gap: 1.5rem; }
  .vendor-roles-row a { color: var(--muted); text-decoration: none; font-size: 0.9rem; font-weight: 600; transition: color 0.2s; }
  .vendor-roles-row a:hover { color: var(--accent); }

  @media (max-width: 540px) {
    .auth-card { padding: 2rem 1.5rem; }
    .auth-wrap { padding: 2rem 1rem 4rem; }
  }

  /* ─── LOGIN / SIGNUP POP-UP MODAL ─── */
  .auth-modal-overlay {
    position: fixed; inset: 0; background: rgba(20,15,10,0.6);
    z-index: 3000; display: flex; align-items: center; justify-content: center;
    padding: 1.5rem; opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
  }
  .auth-modal-overlay.open { opacity: 1; pointer-events: auto; }
  .auth-modal {
    background: var(--surface); border-radius: 20px; overflow: hidden;
    width: 100%; max-width: 900px; height: 92vh; max-height: 640px;
    display: grid; grid-template-columns: 380px 1fr; grid-template-rows: minmax(0, 1fr);
    box-shadow: 0 30px 80px rgba(0,0,0,0.35);
    transform: translateY(18px) scale(0.98); transition: transform 0.35s ease;
    position: relative;
  }
  .auth-modal-overlay.open .auth-modal { transform: translateY(0) scale(1); }
  .auth-modal-image, .auth-modal-form-panel { min-height: 0; height: 100%; }

  .auth-modal-image {
    position: relative; background-size: cover; background-position: center;
    background-color: var(--surface2);
  }
  .auth-modal-image::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(20,15,10,0.05) 35%, rgba(20,15,10,0.75) 100%);
  }
  .auth-modal-image-caption {
    position: absolute; left: 1.75rem; right: 1.75rem; bottom: 1.75rem; z-index: 2; color: #fff;
  }
  .auth-modal-image-caption .tag {
    display: inline-block; background: rgba(255,255,255,0.18); backdrop-filter: blur(4px);
    padding: 0.3rem 0.8rem; border-radius: 20px; font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.7rem;
  }
  .auth-modal-image-caption h3 {
    font-family: 'Playfair Display', serif; font-size: 1.4rem; line-height: 1.3; margin-bottom: 0.4rem;
  }
  .auth-modal-image-caption p { font-size: 0.82rem; opacity: 0.9; }

  .auth-modal-close {
    position: absolute; top: 1rem; right: 1rem; z-index: 6;
    width: 34px; height: 34px; border-radius: 50%; border: none; cursor: pointer;
    background: rgba(255,255,255,0.92); color: var(--text); font-size: 1rem;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.18); transition: transform 0.2s;
  }
  .auth-modal-close:hover { transform: scale(1.1); }

  .auth-modal-form-panel {
    padding: 2.25rem 2.5rem 2rem; overflow-y: auto; display: flex; flex-direction: column;
    min-height: 0; -webkit-overflow-scrolling: touch;
  }
  .auth-modal-logo {
    height: 58px; width: auto; max-width: 80%; object-fit: contain; margin: 0 auto 0.5rem; display: block;
    image-rendering: -webkit-optimize-contrast; image-rendering: crisp-edges;
  }
  .auth-modal-form-panel h1 {
    font-family: 'Playfair Display', serif; font-size: 1.45rem; text-align: center;
    color: var(--text); margin-bottom: 0.35rem;
  }
  .auth-modal-form-panel > p.auth-modal-sub {
    text-align: center; font-size: 0.85rem; color: var(--muted); margin-bottom: 1.5rem;
  }

  .auth-modal-tabs {
    display: flex; background: var(--surface2); border-radius: 12px; padding: 4px; margin-bottom: 1.6rem;
  }
  .auth-modal-tab {
    flex: 1; text-align: center; padding: 0.65rem; border: none; background: transparent;
    border-radius: 9px; font-weight: 700; font-size: 0.88rem; color: var(--muted);
    cursor: pointer; transition: all 0.25s;
  }
  .auth-modal-tab.active {
    background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff;
    box-shadow: 0 4px 12px var(--glow);
  }

  .auth-modal-panel { display: none; }
  .auth-modal-panel.active { display: block; animation: fadeIn 0.3s ease; }

  .auth-google-btn {
    display: flex; align-items: center; justify-content: center; gap: 0.65rem;
    width: 100%; padding: 0.8rem; border: 1.5px solid var(--border); border-radius: 10px;
    background: var(--surface); cursor: pointer; font-weight: 600; font-size: 0.88rem;
    color: var(--text); transition: all 0.2s;
  }
  .auth-google-btn:hover { border-color: var(--accent); background: var(--glow); }

  @media (max-width: 900px) {
    .auth-modal { grid-template-columns: 300px 1fr; max-width: 780px; }
    .auth-modal-form-panel { padding: 2rem 2rem 1.75rem; }
    .auth-modal-logo { height: 50px; }
  }

  @media (max-width: 768px) {
    .auth-modal-overlay { padding: 1.25rem; align-items: flex-start; }
    .auth-modal { grid-template-columns: 1fr; max-width: 440px; margin: auto 0; max-height: 90vh; }
    .auth-modal-image { display: none; }
    .auth-modal-form-panel { padding: 2.5rem 1.75rem 1.75rem; }
    .auth-modal-logo { height: 48px; }
  }

  @media (max-width: 480px) {
    .auth-modal-overlay { padding: 0.85rem; }
    .auth-modal { border-radius: 16px; max-height: 92vh; }
    .auth-modal-form-panel { padding: 2.25rem 1.4rem 1.5rem; }
    .auth-modal-logo { height: 42px; margin-bottom: 0.35rem; }
    .auth-modal-form-panel h1 { font-size: 1.25rem; }
    .auth-modal-form-panel > p.auth-modal-sub { font-size: 0.8rem; margin-bottom: 1.25rem; }
    .auth-modal-tabs { margin-bottom: 1.3rem; }
    .auth-modal-tab { padding: 0.55rem; font-size: 0.84rem; }
    .auth-field { margin-bottom: 0.9rem; }
    .auth-close, .auth-modal-close { top: 0.7rem; right: 0.7rem; width: 30px; height: 30px; font-size: 0.9rem; }
  }

  @media (max-width: 360px) {
    .auth-modal-overlay { padding: 0.5rem; }
    .auth-modal-form-panel { padding: 2rem 1.1rem 1.25rem; }
    .auth-modal-logo { height: 38px; }
    .auth-modal-form-panel h1 { font-size: 1.15rem; }
    .form-inp { padding: 0.65rem 0.85rem; font-size: 0.88rem; }
    .auth-submit-btn { padding: 0.8rem; font-size: 0.9rem; }
  }

  /* Short / landscape viewports — keep the modal from overflowing the screen height */
  @media (max-height: 640px) {
    .auth-modal-overlay { align-items: flex-start; padding-top: 1rem; padding-bottom: 1rem; }
    .auth-modal { max-height: 96vh; }
    .auth-modal-logo { height: 34px; margin-bottom: 0.35rem; }
    .auth-modal-form-panel { padding-top: 1.5rem; }
    .auth-modal-form-panel > p.auth-modal-sub { margin-bottom: 1rem; }
    .auth-modal-tabs { margin-bottom: 1rem; }
    .auth-field { margin-bottom: 0.7rem; }
  }
  @media (max-height: 640px) and (min-width: 769px) {
    .auth-modal-image-caption { bottom: 1rem; }
    .auth-modal-image-caption h3 { font-size: 1.1rem; }
  }

  /* ─── HELP/SUPPORT CHAT WIDGET ─── */
  .chat-widget-bubble {
    position: fixed; bottom: 1.75rem; right: 1.75rem; z-index: 2500;
    width: 58px; height: 58px; border-radius: 50%; border: none; cursor: pointer;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff; font-size: 1.5rem; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 28px var(--glow); transition: transform 0.25s;
  }
  .chat-widget-bubble:hover { transform: scale(1.08); }
  .cwb-badge {
    position: absolute; top: -2px; right: -2px; background: #e11d48; color: #fff;
    font-size: 0.65rem; font-weight: 800; width: 18px; height: 18px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; border: 2px solid var(--surface);
  }

  .chat-widget-panel {
    position: fixed; bottom: 6.25rem; right: 1.75rem; z-index: 2500;
    width: 360px; max-width: calc(100vw - 2rem); height: 520px; max-height: 74vh;
    background: var(--surface); border-radius: 18px; overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,0.25); border: 1px solid var(--border);
    display: flex; flex-direction: column;
    opacity: 0; transform: translateY(16px) scale(0.97); pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  .chat-widget-panel.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

  .chat-widget-header {
    background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff;
    padding: 1rem 1.1rem; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
  }
  .chat-widget-header-info { display: flex; align-items: center; gap: 0.7rem; }
  .chat-widget-avatar {
    width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center; font-size: 1.15rem; flex-shrink: 0;
  }
  .chat-widget-title { font-weight: 700; font-size: 0.92rem; }
  .chat-widget-status { font-size: 0.72rem; opacity: 0.9; display: flex; align-items: center; gap: 0.35rem; }
  .cw-dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; display: inline-block; }
  .chat-widget-header-actions { display: flex; gap: 0.4rem; }
  .chat-widget-icon-btn {
    width: 28px; height: 28px; border-radius: 50%; border: none; background: rgba(255,255,255,0.18);
    color: #fff; cursor: pointer; font-size: 0.85rem; display: flex; align-items: center; justify-content: center;
  }
  .chat-widget-icon-btn:hover { background: rgba(255,255,255,0.3); }

  .chat-widget-role-picker { padding: 1.5rem 1.25rem; text-align: center; }
  .chat-widget-role-picker p { font-size: 0.88rem; color: var(--muted); margin-bottom: 1.1rem; }
  .chat-role-btn {
    display: block; width: 100%; text-align: left; padding: 0.85rem 1rem; margin-bottom: 0.6rem;
    border: 1.5px solid var(--border); border-radius: 10px; background: var(--bg); color: var(--text);
    font-weight: 600; font-size: 0.88rem; cursor: pointer; transition: all 0.2s;
  }
  .chat-role-btn:hover { border-color: var(--accent); background: var(--glow); }

  .chat-widget-body {
    flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.6rem;
  }
  .chat-msg { display: flex; }
  .chat-msg-bot { justify-content: flex-start; }
  .chat-msg-user { justify-content: flex-end; }
  .chat-bubble {
    max-width: 80%; padding: 0.65rem 0.9rem; border-radius: 14px; font-size: 0.85rem; line-height: 1.5;
  }
  .chat-msg-bot .chat-bubble { background: var(--surface2); color: var(--text); border-bottom-left-radius: 4px; }
  .chat-msg-user .chat-bubble { background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
  .chat-typing { display: flex; gap: 4px; align-items: center; padding: 0.8rem 1rem; }
  .chat-typing span {
    width: 6px; height: 6px; border-radius: 50%; background: var(--muted); display: inline-block;
    animation: chatTypingBounce 1.2s infinite ease-in-out;
  }
  .chat-typing span:nth-child(2) { animation-delay: 0.15s; }
  .chat-typing span:nth-child(3) { animation-delay: 0.3s; }
  @keyframes chatTypingBounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }

  .chat-widget-input-row {
    display: flex; gap: 0.6rem; padding: 0.85rem; border-top: 1px solid var(--border); flex-shrink: 0;
  }
  .chat-widget-input-row input {
    flex: 1; border: 1px solid var(--border); border-radius: 999px; padding: 0.65rem 1rem;
    background: var(--bg); color: var(--text); font-size: 0.85rem; outline: none;
  }
  .chat-widget-input-row input:focus { border-color: var(--accent); }
  #chat-widget-send {
    width: 38px; height: 38px; border-radius: 50%; border: none; flex-shrink: 0;
    background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; cursor: pointer; font-size: 1rem;
  }

  .chat-msg-system { justify-content: center; }
  .chat-escalation-note {
    background: var(--glow); color: var(--accent); border: 1px dashed var(--accent);
    font-size: 0.76rem; font-weight: 600; padding: 0.6rem 0.9rem; border-radius: 10px;
    text-align: center; max-width: 90%;
  }
  .chat-escalate-btn {
    display: block; margin-top: 0.5rem; padding: 0.45rem 0.8rem; border: none; border-radius: 8px;
    background: #fff; color: var(--accent); font-weight: 700; font-size: 0.78rem; cursor: pointer;
  }
  .chat-escalate-btn:hover { background: var(--surface2); }

  @media (max-width: 480px) {
    .chat-widget-bubble { bottom: 1.1rem; right: 1.1rem; width: 52px; height: 52px; font-size: 1.3rem; }
    .chat-widget-panel {
      bottom: 0; right: 0; left: 0; width: 100%; max-width: 100%; height: 82vh; max-height: 82vh;
      border-radius: 18px 18px 0 0;
    }
  }


  /* SAME AS BILLING TOGGLE BOX */
  .same-as-billing-box {
    display: flex; align-items: flex-start; gap: 0.85rem;
    margin-top: 1.75rem; padding: 1rem 1.1rem;
    background: var(--bg); border: 1.5px solid var(--border);
    border-radius: 10px; cursor: pointer; transition: border-color 0.2s, background 0.2s;
    user-select: none;
  }
  .same-as-billing-box:hover { border-color: var(--accent); }
  .same-as-billing-box.checked { border-color: var(--accent); background: rgba(217,115,12,0.06); }
  .sab-check {
    flex-shrink: 0; width: 22px; height: 22px; border-radius: 6px;
    border: 2px solid var(--border); background: var(--surface);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; font-weight: 900; color: transparent;
    transition: all 0.2s; margin-top: 0.1rem;
  }
  .same-as-billing-box.checked .sab-check {
    background: var(--accent); border-color: var(--accent); color: #fff;
  }
  .sab-title { font-size: 0.92rem; font-weight: 600; color: var(--text); }
  .sab-sub { font-size: 0.8rem; color: var(--muted); margin-top: 0.15rem; }

  #shipping-address-section { display: none; }
  #shipping-address-section.show { display: block; animation: fadeIn 0.25s ease; }
  .pay-option { border: 2px solid var(--border); border-radius: 10px; padding: 1rem 1.25rem; cursor: pointer; display: flex; align-items: center; gap: 1rem; background: var(--surface); margin-bottom: 0.75rem; transition: all 0.2s; }
  .pay-option.selected { border-color: var(--accent); background: rgba(217,115,12,0.04); }
  .pay-radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #d1d5db; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .pay-radio.checked { border-color: var(--accent); }
  .pay-radio .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
  .pay-option .pay-label { font-weight: 600; font-size: 0.95rem; color: var(--text); }
  .pay-option .pay-sub { font-size: 0.8rem; color: var(--muted); }

  .wallet-pay-toggle {
    display: flex; align-items: center; gap: 1rem; border: 2px solid var(--border); border-radius: 10px;
    padding: 1rem 1.25rem; cursor: pointer; background: var(--surface); transition: all 0.2s;
  }
  .wallet-pay-toggle.active { border-color: var(--accent); background: rgba(217,115,12,0.05); }
  .wallet-pay-check {
    width: 22px; height: 22px; border-radius: 6px; border: 2px solid #d1d5db; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 800; color: #fff;
  }
  .wallet-pay-check.checked { border-color: var(--accent); background: var(--accent); }
  .wallet-pay-label { font-weight: 700; font-size: 0.95rem; color: var(--text); }
  .wallet-pay-sub { font-size: 0.8rem; color: var(--muted); margin-top: 0.15rem; }
  .wallet-pay-sub a { color: var(--accent); font-weight: 600; }
  .wallet-fullcover {
    background: rgba(34,150,90,0.08); border: 1.5px dashed #22965a; color: #1d7a4a;
    border-radius: 10px; padding: 1rem 1.25rem; font-weight: 600; font-size: 0.9rem;
  }
  .mini-summary { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1.75rem; position: sticky; top: 110px; }
  .mini-summary h3 { font-family: 'Playfair Display', serif; font-size: 1.2rem; margin-bottom: 1.25rem; color: var(--text); }
  .mini-item { display: flex; gap: 0.75rem; margin-bottom: 0.9rem; align-items: center; }
  .mini-item .m-emoji { font-size: 1.75rem; width: 42px; height: 42px; flex-shrink: 0; border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--surface2); }
  .mini-item .m-emoji img { width: 100%; height: 100%; object-fit: cover; }
  .mini-item .m-name { font-size: 0.85rem; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mini-item .m-qty { font-size: 0.78rem; color: var(--muted); }
  .mini-item .m-price { font-size: 0.9rem; font-weight: 700; color: var(--accent); flex-shrink: 0; }
  .review-address { background: var(--surface2); border-radius: 10px; padding: 1rem 1.25rem; margin-bottom: 1.25rem; }
  .review-address .ra-label { font-weight: 600; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 0.4rem; }
  .review-address .ra-name { font-size: 0.95rem; color: var(--text); }
  .review-address .ra-addr { font-size: 0.9rem; color: var(--muted); }
  .review-item { display: flex; justify-content: space-between; padding: 0.7rem 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; color: var(--text); }
  .review-item .rp { font-weight: 600; color: var(--accent); }
  .review-pay { margin-top: 1.25rem; background: var(--surface2); border-radius: 10px; padding: 1rem 1.25rem; }
  .review-pay .rp-label { font-size: 0.85rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
  .btn-row { display: flex; gap: 1rem; margin-top: 1.5rem; }
  .btn-back { flex: 0.4; padding: 0.9rem; background: transparent; color: var(--text); border: 1px solid var(--border); border-radius: 10px; font-weight: 600; cursor: pointer; }
  .btn-next { flex: 1; padding: 0.9rem; background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; border: none; border-radius: 10px; font-weight: 700; cursor: pointer; font-size: 1rem; }
  .btn-place { flex: 1; padding: 0.9rem; background: linear-gradient(135deg, #059669, #047857); color: #fff; border: none; border-radius: 10px; font-weight: 700; cursor: pointer; font-size: 1rem; }
  .order-success { padding: 4rem 2rem; display: flex; justify-content: center; }
  .success-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 4rem; text-align: center; max-width: 480px; box-shadow: 0 8px 32px var(--glow); animation: fadeIn 0.4s ease; }
  .success-card .s-icon { font-size: 4rem; margin-bottom: 1rem; }
  .success-card h2 { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--text); margin-bottom: 0.75rem; }
  .success-card p { color: var(--muted); margin-bottom: 2rem; line-height: 1.6; }
  .order-details { background: linear-gradient(135deg, var(--glow), rgba(232,67,26,0.05)); border: 1px solid var(--border); border-radius: 10px; padding: 1.25rem; margin-bottom: 2rem; text-align: left; }
  .order-detail-row { font-size: 0.9rem; color: var(--text); margin-bottom: 0.4rem; }

  /* FOOTER */
  .logo {
    height: auto;
    max-height: 50px;
    width: auto;
    max-width: 200px;
    display: block;
    object-fit: contain;
  }

  footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 4rem 4rem 2rem;
  }

  .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
  }

  .footer-brand .logo { display: block; margin-bottom: 1rem; max-width: 190px; width: 100%; height: auto; }

  .footer-desc {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 280px;
  }

  .social-links { display: flex; gap: 0.8rem; }

  .social-btn {
    width: 44px; height: 44px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--muted);
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s, color 0.2s, background 0.2s;
    text-decoration: none;
  }

  .social-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--glow); transform: translateY(-2px); }

  .footer-col h4 {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 1.2rem;
  }

  /* Footer columns use <details>/<summary> so they can collapse into a
     tap-to-expand accordion on mobile — this is what actually shortens
     the long mobile scroll, since 3 columns of links no longer sit fully
     expanded one after another. On desktop they stay open (see JS that
     keeps/sets the `open` attribute based on viewport width). */
  .footer-col summary {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 1.2rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .footer-col summary::-webkit-details-marker { display: none; }
  .footer-col summary::after {
    display: none;
    content: '';
    width: 8px; height: 8px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: rotate(45deg);
    transition: transform 0.2s;
    margin-left: 0.6rem;
    flex-shrink: 0;
  }
  .footer-col[open] summary::after { transform: rotate(-135deg); }
  .footer-col summary::marker { display: none; content: ''; }

  .footer-col ul { list-style: none; }

  .footer-col ul li {
    margin-bottom: 0.7rem;
  }

  .footer-col ul li a {
    font-size: 0.85rem;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s;
  }

  .footer-col ul li a:hover { color: var(--text); }

  .footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .footer-bottom p { font-size: 0.82rem; color: var(--muted); }

  /* PAGE WRAPPER */
  .page { display: none; }
  .page.active { display: block; }

  /* UPSELL NOTE */
  .upsell-note { font-size: 0.8rem; color: var(--accent); margin-top: -8px; margin-bottom: 12px; }
  .save-note { text-align: right; font-size: 0.85rem; color: #15803d; margin-top: 0.5rem; }

  /* RESPONSIVE NAV */
  @media (max-width: 900px) {
    .shop-layout { grid-template-columns: 1fr; padding: 2rem 1.5rem; }
    .recently-viewed-section.active + .shop-layout { padding-top: 0.75rem; }
    .cart-layout { grid-template-columns: 1fr; }
    .cart-page-inner { padding: 1.5rem 1.5rem 4rem; }
    .trust-row { grid-template-columns: repeat(2, 1fr); }
    .checkout-grid { grid-template-columns: 1fr; }
    .page-header { padding: 2rem 1.5rem; }
    .checkout-wrap { padding: 1.5rem 1.5rem 4rem; }
    .form-grid { grid-template-columns: 1fr; }
    footer { padding: 3rem 1.5rem 1.5rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; gap: 0.6rem; text-align: center; }

    /* Narrow phones — the 2-column layout was still cramped enough for the
       logo/description column to get clipped, so stack everything into a
       single clean column instead. */
    @media (max-width: 560px) {
      .footer-grid { grid-template-columns: 1fr; gap: 1rem; text-align: center; }
      .footer-brand .logo { max-width: 160px; margin: 0 auto 1rem; }
      .footer-desc { max-width: 100%; }
      .social-links { justify-content: center; }
      .social-btn { width: 46px; height: 46px; font-size: 1.3rem; }
      /* No arrow — instead the whole header reads as a tappable pill
         (background + border) with a +/− indicator, so it's obvious
         there's collapsed content underneath without using a chevron. */
      .footer-col summary {
        justify-content: space-between; gap: 0.5rem; text-align: left;
        background: var(--surface2); border: 1px solid var(--border);
        border-radius: 8px; padding: 0.55rem 0.8rem; margin-bottom: 0.6rem;
        font-size: 0.76rem;
      }
      .footer-col summary::after {
        display: flex; align-items: center; justify-content: center;
        content: '+';
        width: 16px; height: 16px; border-radius: 50%;
        background: var(--accent); color: #fff;
        font-size: 0.8rem; font-weight: 700; line-height: 1;
        border: none; transform: none; margin-left: 0;
      }
      .footer-col[open] summary { margin-bottom: 0.8rem; }
      .footer-col[open] summary::after { content: '−'; transform: none; }
      .footer-col ul { padding: 0; }
    }

    /* ─── CART & CHECKOUT — TABLET/MOBILE ─── */
    .cart-item { padding: 1.1rem; gap: 1rem; }
    .cart-thumb { width: 72px; height: 72px; font-size: 2rem; }
    .summary-box, .coupon-box { padding: 1.5rem; }
    .summary-box { position: static; top: auto; }
    .mini-summary { position: static; top: auto; padding: 1.5rem; }
    .step-bar { padding: 1rem 1.25rem; }
    .step-label { font-size: 0.82rem; margin-left: 0.35rem; }
    .step-circle { width: 28px; height: 28px; font-size: 0.78rem; }
    .step-line { margin: 0 0.4rem; }
  }

  @media (max-width: 640px) {
    .cart-page-inner { padding: 1.25rem 1rem 4rem; }
    .checkout-wrap { padding: 1.25rem 1rem 4rem; }
    .trust-row { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
    .trust-item { padding: 0.75rem 0.5rem; }
    .trust-item .t-icon { font-size: 1.15rem; }
    .trust-item .t-title { font-size: 0.74rem; }
    .trust-item .t-sub { font-size: 0.66rem; }

    .cart-item {
      flex-wrap: wrap; padding: 1rem; gap: 0.85rem;
    }
    .cart-thumb { width: 64px; height: 64px; font-size: 1.8rem; }
    .cart-info { min-width: 0; flex-basis: calc(100% - 64px - 0.85rem); }
    .cart-info .name { font-size: 0.92rem; }
    .cart-info .price-row .p { font-size: 1rem; }
    .qty-controls button { width: 32px; height: 32px; }
    .qty-controls .qty-val { width: 34px; }
    .remove-btn { font-size: 0.82rem; }

    .coupon-row { flex-direction: column; }
    .apply-btn { width: 100%; }
    .summary-box, .coupon-box { padding: 1.25rem; }

    /* Checkout step bar — smaller circles, hide labels below the step to avoid overlap/overflow */
    .step-bar { padding: 0.85rem 0.75rem; }
    .step-circle { width: 26px; height: 26px; font-size: 0.72rem; }
    .step-label { display: none; }
    .step-line { margin: 0 0.3rem; }
  }

  @media (max-width: 400px) {
    .trust-row { grid-template-columns: 1fr 1fr; }
    .cart-thumb { width: 56px; height: 56px; font-size: 1.6rem; }
    .cart-info { flex-basis: calc(100% - 56px - 0.75rem); }
  }

  @media (max-width: 900px) {
    /* ─── STICKY FILTER + SORT BAR ─── */
    .mobile-filter-bar {
      display: flex; align-items: center; gap: 0.7rem;
      position: sticky; top: var(--header-h, 56px); z-index: 40;
      background: var(--surface); border: 1px solid var(--border);
      border-radius: 10px; padding: 0.6rem 0.75rem; margin-bottom: 1.25rem;
      box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    }
    .mfb-btn {
      display: flex; align-items: center; gap: 0.4rem;
      background: var(--accent); color: #fff; border: none;
      padding: 0.6rem 1rem; border-radius: 8px; font-size: 0.85rem; font-weight: 600;
      cursor: pointer; white-space: nowrap; position: relative;
    }
    .mfb-count {
      display: inline-flex; align-items: center; justify-content: center;
      min-width: 18px; height: 18px; padding: 0 4px;
      background: #fff; color: var(--accent);
      border-radius: 50%; font-size: 0.68rem; font-weight: 700;
    }
    .mfb-sort {
      flex: 1; padding: 0.6rem 0.75rem; border: 1px solid var(--border);
      border-radius: 8px; background: var(--bg); color: var(--text);
      font-size: 0.82rem; outline: none; cursor: pointer;
    }

    /* ─── FILTER DRAWER ─── */
    .sidebar-overlay {
      display: block; position: fixed; inset: 0;
      background: rgba(15,9,3,0.5); z-index: 3990;
      opacity: 0; pointer-events: none; transition: opacity 0.25s ease;
    }
    .sidebar-overlay.active { opacity: 1; pointer-events: auto; }
    .sidebar {
      position: fixed; top: 0; left: 0; bottom: 0;
      width: 84%; max-width: 340px; height: 100vh; max-height: none;
      border-radius: 0; border: none; border-right: 1px solid var(--border);
      z-index: 3999; overflow-y: auto;
      transform: translateX(-100%);
      transition: transform 0.3s ease;
      padding: 1.5rem 1.5rem calc(2rem + 58px + env(safe-area-inset-bottom, 0px));
    }
    .sidebar.drawer-open { transform: translateX(0); }
    .sidebar-drawer-head {
      display: flex; align-items: center; justify-content: space-between;
      margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border);
    }
    .sidebar-close-btn {
      display: flex; align-items: center; justify-content: center;
      width: 32px; height: 32px; border-radius: 50%; border: none;
      background: var(--surface2); color: var(--text); font-size: 1rem; cursor: pointer;
    }
  }


/* ════════════════════════════════════════════════════════════════
   DELIVER-TO LOCATION MODAL
   ════════════════════════════════════════════════════════════════ */
.location-modal-overlay {
  position: fixed; inset: 0; background: rgba(20,15,10,0.55);
  display: flex; align-items: center; justify-content: center;
  z-index: 2000; opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease; padding: 1.5rem;
}
.location-modal-overlay.open { opacity: 1; pointer-events: auto; }
.location-modal {
  background: var(--surface); border-radius: 16px; width: 100%; max-width: 420px;
  max-height: 80vh; display: flex; flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25); overflow: hidden;
  transform: translateY(10px); transition: transform 0.25s ease;
}
.location-modal-overlay.open .location-modal { transform: translateY(0); }
.location-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border);
}
.location-modal-head h3 { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--text); }
.location-modal-close {
  border: none; background: var(--surface2); width: 32px; height: 32px; border-radius: 50%;
  cursor: pointer; font-size: 1rem; color: var(--text); display: flex; align-items: center; justify-content: center;
}
.location-pincode-row { display: flex; gap: 0.6rem; margin: 1rem 1.5rem 0; }
.location-pincode-input {
  flex: 1; padding: 0.75rem 1rem; border: 2px solid var(--border); border-radius: 10px;
  outline: none; font-size: 0.95rem; background: var(--bg); color: var(--text);
}
.location-pincode-input:focus { border-color: var(--accent); }
.location-pincode-btn {
  padding: 0 1.4rem; border: none; border-radius: 10px; background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; font-weight: 700; font-size: 0.9rem; cursor: pointer;
}
.location-pincode-msg { margin: 0.5rem 1.5rem 0; font-size: 0.8rem; min-height: 1.1em; }
.location-pincode-msg.error { color: #d93c28; }
.location-pincode-msg.success { color: #22965a; font-weight: 600; }
.location-pincode-msg.loading { color: var(--muted); }
.location-divider {
  display: flex; align-items: center; gap: 0.8rem; margin: 1rem 1.5rem 0;
  font-size: 0.76rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em;
}
.location-divider::before, .location-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.location-search-input {
  margin: 0.9rem 1.5rem 0.5rem; padding: 0.75rem 1rem; border: 2px solid var(--border);
  border-radius: 10px; outline: none; font-size: 0.95rem; background: var(--bg); color: var(--text);
}
.location-search-input:focus { border-color: var(--accent); }
.location-list { overflow-y: auto; padding: 0.5rem 1rem 1.25rem; flex: 1; }
.location-item {
  width: 100%; display: flex; align-items: center; gap: 0.75rem;
  padding: 0.85rem 0.75rem; border: none; background: none; cursor: pointer;
  border-radius: 10px; font-size: 0.95rem; color: var(--text); text-align: left;
  transition: background 0.15s;
}
.location-item:hover { background: var(--surface2); }
.location-item.selected { color: var(--accent); font-weight: 700; }
.location-item svg { color: var(--accent); flex-shrink: 0; }
.location-check { margin-left: auto; color: var(--accent); font-weight: 700; }
.location-empty { padding: 2rem 1rem; text-align: center; color: var(--muted); font-size: 0.9rem; }

/* ─── BACK TO TOP BUTTON ─── */
.back-to-top-btn {
  position: fixed;
  right: 1.5rem;
  bottom: 6.5rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease, visibility 0.25s;
  z-index: 900;
}
.back-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top-btn:hover { background: var(--accent2); }
@media (max-width: 768px) {
  .back-to-top-btn { right: 1rem; bottom: 5.5rem; width: 42px; height: 42px; }
}

/* ═══ PRODUCT IMAGE FALLBACK (broken/missing photo) ═══ */
.img-fallback {
  width: 100%; height: 100%; min-height: 60px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.5rem; background: var(--bg, #faf6ef); color: var(--muted, #8a7d6d);
  padding: 0.6rem;
}
.img-fallback-mark {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent, #d9730c), var(--accent2, #e8431a));
  color: #fff; font-family: 'Playfair Display', Georgia, serif; font-weight: 800; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 10px rgba(217,115,12,0.25);
}
.img-fallback-text {
  font-size: 0.7rem; font-weight: 600; line-height: 1.35; text-align: center; color: var(--muted, #8a7d6d);
}
.img-fallback.compact { min-height: 0; gap: 0; padding: 0.2rem; }
.img-fallback.compact .img-fallback-mark { width: 22px; height: 22px; border-radius: 6px; font-size: 0.78rem; }

.wallet-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 20px; padding: 2rem 2.4rem; margin: 2rem 0 1.2rem; color: #fff;
  box-shadow: 0 16px 40px rgba(217,115,12,0.25);
}
.wallet-hero-label { font-size: 0.85rem; font-weight: 600; opacity: 0.9; letter-spacing: 0.03em; }
.wallet-hero-amount { font-family: 'Playfair Display', serif; font-size: 2.6rem; font-weight: 700; margin: 0.3rem 0; }
.wallet-hero-sub { font-size: 0.85rem; opacity: 0.85; }
.wallet-add-btn {
  background: #fff; color: var(--accent); border: none; padding: 0.9rem 1.6rem; border-radius: 12px;
  font-weight: 700; font-size: 0.95rem; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}
.wallet-add-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0,0,0,0.2); }

.wallet-promo {
  display: flex; align-items: center; gap: 0.9rem; background: var(--glow);
  border: 1px dashed var(--accent); border-radius: 14px; padding: 1rem 1.3rem;
  margin-bottom: 1.5rem; font-size: 0.88rem; color: var(--text); line-height: 1.5;
}
.wallet-promo-ic { font-size: 1.6rem; flex-shrink: 0; }

.wallet-panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 1.6rem 1.8rem; margin-bottom: 1.5rem;
}
.wallet-panel-title { font-family: 'Playfair Display', serif; font-size: 1.25rem; font-weight: 700; margin-bottom: 1.1rem; }

.wallet-chip-row { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.wallet-chip {
  padding: 0.6rem 1.2rem; border-radius: 10px; border: 1.5px solid var(--border); background: var(--bg);
  font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: all 0.15s;
}
.wallet-chip:hover { border-color: var(--accent); color: var(--accent); }
.wallet-chip.selected { background: var(--accent); border-color: var(--accent); color: #fff; }

.wallet-custom-row { display: flex; align-items: center; gap: 0.6rem; }
.wallet-amount-group { display: flex; flex: 1; }
.wallet-rupee {
  display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  background: var(--bg); border: 1.5px solid var(--border); border-right: none;
  border-radius: 10px 0 0 10px; font-weight: 700; color: var(--muted); flex-shrink: 0;
}
.wallet-custom-input {
  flex: 1; height: 44px; padding: 0 0.9rem; border: 1.5px solid var(--border); border-left: none;
  border-radius: 0 10px 10px 0; font-size: 0.95rem; font-family: inherit; min-width: 0;
}
.wallet-confirm-btn {
  padding: 0 1.6rem; height: 44px; border: none; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff;
  font-weight: 700; cursor: pointer; white-space: nowrap;
}
.wallet-confirm-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.wallet-hint { font-size: 0.78rem; color: var(--muted); margin-top: 0.7rem; }

.wallet-method-label { font-size: 0.85rem; font-weight: 700; margin: 1.2rem 0 0.6rem; color: var(--text); }
.wallet-method-row { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 1rem; }
.wallet-method-chip {
  padding: 0.55rem 1rem; border-radius: 10px; border: 1.5px solid var(--border); background: var(--bg);
  font-weight: 600; font-size: 0.86rem; cursor: pointer; transition: all 0.15s;
}
.wallet-method-chip:hover { border-color: var(--accent); }
.wallet-method-chip.selected { background: var(--accent); border-color: var(--accent); color: #fff; }
.wallet-method-fields { margin-bottom: 0.5rem; }
.wallet-field-lbl { display: block; font-size: 0.8rem; font-weight: 600; color: var(--muted); margin-bottom: 0.35rem; }
.wallet-card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }

.wallet-upi-strip {
  display: flex; align-items: center; gap: 0.8rem; background: var(--bg); border: 1px solid var(--border);
  border-radius: 12px; padding: 0.8rem 1.2rem; margin-bottom: 1.2rem; font-size: 0.86rem;
}
.wallet-upi-ic { font-size: 1.2rem; }
.wallet-upi-change {
  background: none; border: 1.5px solid var(--border); border-radius: 8px; padding: 0.35rem 0.8rem;
  font-size: 0.8rem; font-weight: 600; color: var(--accent); cursor: pointer;
}
.wallet-upi-change:hover { border-color: var(--accent); }

.wallet-bday-strip {
  display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap;
  background: var(--bg); border: 1px dashed var(--accent); border-radius: 12px;
  padding: 0.9rem 1.2rem; margin-bottom: 1.2rem; font-size: 0.86rem;
}
.wallet-bday-strip.saved { border-style: solid; }
.wallet-bday-ic { font-size: 1.3rem; }
.wallet-bday-sub { font-size: 0.78rem; color: var(--muted); margin-top: 0.15rem; }
.wallet-bday-input {
  padding: 0.5rem 0.7rem; border-radius: 8px; border: 1.5px solid var(--border); font-size: 0.85rem; font-family: inherit;
}
.wallet-bday-save {
  background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; border: none;
  border-radius: 8px; padding: 0.5rem 1rem; font-weight: 700; font-size: 0.83rem; cursor: pointer;
}

.wallet-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.wallet-panel-head .wallet-panel-title { margin-bottom: 0; }
.wallet-txn-tabs { display: flex; gap: 0.5rem; }
.wallet-tab-chip {
  padding: 0.4rem 0.85rem; border-radius: 20px; border: 1.5px solid var(--border); background: var(--bg);
  font-size: 0.8rem; font-weight: 600; cursor: pointer; color: var(--muted); transition: all 0.15s;
}
.wallet-tab-chip:hover { color: var(--text); }
.wallet-tab-chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ═══ CAREERS PAGE ═══ */
.careers-hero {
  text-align: center; padding: 3rem 2rem; margin: 2rem 0 2.5rem;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-radius: 22px; color: #fff; box-shadow: 0 20px 50px rgba(217,115,12,0.25);
}
.careers-hero-badge {
  display: inline-block; background: rgba(255,255,255,0.2); padding: 0.4rem 1rem;
  border-radius: 20px; font-size: 0.8rem; font-weight: 700; margin-bottom: 1rem;
}
.careers-hero h2 { font-family: 'Playfair Display', serif; font-size: 2.1rem; font-weight: 700; margin-bottom: 0.9rem; max-width: 640px; margin-left: auto; margin-right: auto; }
.careers-hero p { font-size: 0.95rem; opacity: 0.92; max-width: 560px; margin: 0 auto 1.6rem; line-height: 1.6; }
.careers-cta-btn {
  display: inline-block; background: #fff; color: var(--accent); text-decoration: none;
  padding: 0.9rem 1.8rem; border-radius: 12px; font-weight: 700; font-size: 0.95rem;
  transition: transform 0.15s, box-shadow 0.15s; box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.careers-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0,0,0,0.2); }
.careers-cta-btn.outline {
  background: transparent; color: var(--accent); border: 2px solid var(--accent); box-shadow: none;
}
.careers-cta-btn.outline:hover { background: var(--accent); color: #fff; }

.careers-perks-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-bottom: 2.5rem;
}
.careers-perk-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1.6rem 1.4rem; text-align: center;
}
.careers-perk-ic { font-size: 2rem; display: block; margin-bottom: 0.8rem; }
.careers-perk-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--text); }
.careers-perk-card p { font-size: 0.83rem; color: var(--muted); line-height: 1.55; }

.careers-depts { margin-bottom: 2.5rem; text-align: center; }
.careers-depts h3 { font-family: 'Playfair Display', serif; font-size: 1.4rem; margin-bottom: 1.2rem; }
.careers-dept-chips { display: flex; gap: 0.7rem; flex-wrap: wrap; justify-content: center; }
.careers-dept-chip {
  background: var(--bg); border: 1.5px solid var(--border); border-radius: 20px;
  padding: 0.55rem 1.1rem; font-size: 0.86rem; font-weight: 600; color: var(--text);
}

.careers-apply-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  background: var(--bg); border: 1.5px dashed var(--accent); border-radius: 18px; padding: 1.8rem 2rem;
}
.careers-apply-strip h3 { font-family: 'Playfair Display', serif; font-size: 1.25rem; margin-bottom: 0.4rem; }
.careers-apply-strip p { font-size: 0.85rem; color: var(--muted); max-width: 400px; }

@media (max-width: 900px) {
  .careers-perks-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .careers-hero { padding: 2.2rem 1.4rem; }
  .careers-hero h2 { font-size: 1.6rem; }
  .careers-perks-grid { grid-template-columns: 1fr; }
  .careers-apply-strip { flex-direction: column; align-items: flex-start; }
}

/* ═══ VENDOR STORE PAGE ═══ */
.store-banner {
  height: 220px; background-position: center; background-size: cover; background-color: var(--surface2);
  background-image: linear-gradient(135deg, rgba(217,115,12,0.15), rgba(232,67,26,0.08));
}
.store-banner.no-image { background-image: linear-gradient(135deg, var(--accent), var(--accent2)); opacity: 0.85; }

.store-id-card {
  display: flex; align-items: flex-start; gap: 1.4rem; flex-wrap: wrap;
  padding: 1.6rem 0.5rem 1.5rem; position: relative; z-index: 2;
}
.store-logo {
  width: 96px; height: 96px; border-radius: 20px; background: #fff; border: 4px solid #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15); display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; font-weight: 800; color: var(--accent); overflow: hidden; flex-shrink: 0;
  margin-top: -56px;
}
.store-logo img { width: 100%; height: 100%; object-fit: cover; }
.store-id-info { flex: 1; min-width: 240px; padding-top: 0.5rem; }
.store-name { font-family: 'Playfair Display', serif; font-size: 1.9rem; font-weight: 700; color: var(--text); }
.store-verified-badge {
  display: inline-flex; align-items: center; gap: 0.2rem; font-family: 'DM Sans', sans-serif; font-size: 0.68rem;
  font-weight: 800; letter-spacing: 0.02em; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent2));
  padding: 0.28rem 0.6rem; border-radius: 999px; vertical-align: middle; margin-left: 0.4rem;
}
.store-tagline { color: var(--muted); font-size: 0.95rem; margin-top: 0.2rem; }
.store-meta-row { display: flex; gap: 1.1rem; flex-wrap: wrap; margin-top: 0.6rem; font-size: 0.84rem; color: var(--muted); font-weight: 600; }

/* Reading mode / font size scaling — applied on <html> */
html.font-large { font-size: 112%; }
html.font-xlarge { font-size: 128%; }

/* Offline banner */
.offline-banner {
  display: none; position: fixed; top: 0; left: 0; right: 0; z-index: 4000;
  background: #b45309; color: #fff; text-align: center; font-size: 0.82rem; font-weight: 600;
  padding: 0.55rem 1rem;
}
.offline-banner.show { display: block; }
body:has(.offline-banner.show) .top-info-bar { margin-top: 2.4rem; }
.store-scorecard { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 0.8rem; }
.scorecard-stat { display: flex; flex-direction: column; }
.scorecard-stat b { font-size: 1.1rem; color: var(--accent); }
.scorecard-stat span { font-size: 0.74rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; }
.store-id-actions { display: flex; gap: 0.7rem; padding-top: 0.5rem; flex-wrap: wrap; }
.store-follow-btn {
  padding: 0.7rem 1.3rem; border-radius: 10px; border: 1.5px solid var(--border); background: var(--surface);
  font-weight: 700; font-size: 0.87rem; cursor: pointer; transition: all 0.18s;
}
.store-follow-btn:hover { border-color: var(--accent); color: var(--accent); }
.store-follow-btn.following { background: rgba(217,115,12,0.1); border-color: var(--accent); color: var(--accent); }
.store-share-btn {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.7rem 1.1rem; border-radius: 10px;
  border: 1.5px solid var(--border); background: var(--surface); font-weight: 700; font-size: 0.87rem; cursor: pointer;
  transition: all 0.18s;
}
.store-share-btn:hover { border-color: var(--accent); color: var(--accent); }

.store-about-row {
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  background: var(--bg); border: 1px solid var(--border); border-radius: 14px; padding: 1.2rem 1.5rem; margin-bottom: 1.5rem;
}
.store-about-row p { font-size: 0.88rem; color: var(--text); line-height: 1.6; max-width: 640px; flex: 1; }
.store-social-row { display: flex; gap: 0.6rem; }
.store-social-row a {
  width: 38px; height: 38px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 1.05rem; text-decoration: none;
}
.store-social-row a:hover { border-color: var(--accent); }

.store-policy-strip { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 2rem; }
.store-policy-chip {
  display: flex; align-items: center; gap: 0.5rem; background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; padding: 0.5rem 1rem; font-size: 0.82rem; cursor: default;
}
.store-policy-chip b { font-weight: 700; }

.store-products-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1.2rem; }
.store-products-head h3 { font-family: 'Playfair Display', serif; font-size: 1.35rem; }
.store-products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.2rem; }
.store-prod-card {
  display: block; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden; transition: transform 0.18s, box-shadow 0.18s;
}
.store-prod-card:not(.no-link):hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0,0,0,0.08); }
.store-prod-card.no-link { cursor: default; opacity: 0.85; }
.store-prod-image {
  position: relative; aspect-ratio: 1/1; background: var(--bg); display: flex; align-items: center; justify-content: center;
}
.store-prod-image img { width: 100%; height: 100%; object-fit: cover; }
.store-prod-emoji { font-size: 2.6rem; }
.store-prod-badge {
  position: absolute; top: 0.6rem; left: 0.6rem; background: var(--accent2); color: #fff;
  font-size: 0.7rem; font-weight: 800; padding: 0.2rem 0.5rem; border-radius: 6px;
}
.store-prod-oos {
  position: absolute; inset: 0; background: rgba(0,0,0,0.45); color: #fff; font-size: 0.78rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.store-prod-body { padding: 0.9rem 1rem; }
.store-prod-name { font-size: 0.87rem; font-weight: 600; color: var(--text); margin-bottom: 0.4rem; line-height: 1.35; }
.store-prod-price { display: flex; align-items: center; gap: 0.5rem; }
.store-prod-sale { font-weight: 800; font-size: 0.95rem; color: var(--text); }
.store-prod-mrp { font-size: 0.78rem; color: var(--muted); text-decoration: line-through; }

@media (max-width: 640px) {
  .store-banner { height: 150px; }
  .store-id-card { flex-direction: column; align-items: flex-start; padding-top: 1rem; }
  .store-logo { width: 76px; height: 76px; margin-top: -42px; }
  .store-id-actions { width: 100%; }
  .store-follow-btn, .store-share-btn { flex: 1; justify-content: center; }
  .store-products-grid { grid-template-columns: repeat(2, 1fr); }
}

.wallet-txn-row {
  display: flex; align-items: center; gap: 0.9rem; padding: 0.9rem 0; border-bottom: 1px solid var(--border);
}
.wallet-txn-row:last-child { border-bottom: none; }
.wallet-txn-ic {
  width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 800; flex-shrink: 0;
}
.wallet-txn-ic.credit { background: rgba(34,150,90,0.12); color: #22965a; }
.wallet-txn-ic.debit { background: rgba(217,60,40,0.12); color: #d93c28; }
.wallet-txn-mid { flex: 1; min-width: 0; }
.wallet-txn-desc { font-weight: 600; font-size: 0.92rem; color: var(--text); }
.wallet-txn-date { font-size: 0.78rem; color: var(--muted); margin-top: 0.1rem; }
.wallet-txn-amt { font-weight: 700; font-size: 0.95rem; white-space: nowrap; }
.wallet-txn-amt.credit { color: #22965a; }
.wallet-txn-amt.debit { color: #d93c28; }

@media (max-width: 640px) {
  .wallet-hero { padding: 1.6rem 1.4rem; }
  .wallet-hero-amount { font-size: 2.1rem; }
  .wallet-add-btn { width: 100%; }
  .wallet-custom-row { flex-wrap: wrap; }
  .wallet-custom-row .wallet-confirm-btn { width: 100%; }
  .wallet-card-grid { grid-template-columns: 1fr; }
  .wallet-panel-head { flex-direction: column; align-items: flex-start; }
  .wallet-upi-strip { flex-wrap: wrap; }
}

/* ═══ GREETING MODAL (birthday / anniversary / festival) ═══ */
#greeting-overlay {
  display: none; position: fixed; inset: 0; z-index: 9700;
  background: rgba(20,14,8,0.6); backdrop-filter: blur(5px);
  align-items: center; justify-content: center; padding: 1.2rem;
}
#greeting-overlay.open { display: flex; }
#greeting-modal {
  background: linear-gradient(160deg, #fff 0%, var(--glow) 100%);
  border-radius: 24px; width: 100%; max-width: 420px; text-align: center;
  padding: 2.6rem 2rem 2.2rem; box-shadow: 0 30px 90px rgba(0,0,0,0.3);
  animation: greetingPop 0.45s cubic-bezier(.22,1.4,.36,1);
  border: 3px solid #fff;
}
@keyframes greetingPop {
  0% { transform: scale(0.7) translateY(20px); opacity: 0; }
  60% { transform: scale(1.04); opacity: 1; }
  100% { transform: scale(1) translateY(0); }
}
#greeting-emoji {
  font-size: 4rem; line-height: 1; margin-bottom: 0.8rem;
  animation: greetingBounce 1.4s ease-in-out infinite;
}
@keyframes greetingBounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(-4deg); }
}
#greeting-title {
  font-family: 'Playfair Display', serif; font-size: 1.55rem; font-weight: 700;
  color: var(--text); margin-bottom: 0.7rem;
}
#greeting-message { font-size: 0.92rem; color: var(--muted); line-height: 1.6; margin-bottom: 1.4rem; }
#greeting-amount {
  display: inline-flex; flex-direction: column; align-items: center; gap: 0.15rem;
  background: var(--surface); border: 1.5px dashed var(--accent); border-radius: 14px;
  padding: 0.9rem 1.6rem; font-size: 1.5rem; font-weight: 800; color: var(--accent);
  margin-bottom: 1.6rem;
}
#greeting-amount span { font-size: 0.72rem; font-weight: 600; color: var(--muted); }
#greeting-close-btn {
  width: 100%; padding: 0.9rem; border: none; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff;
  font-weight: 700; font-size: 0.95rem; cursor: pointer; transition: transform 0.15s;
}
#greeting-close-btn:hover { transform: translateY(-2px); }

@media (max-width: 480px) {
  #greeting-modal { padding: 2.2rem 1.5rem 1.8rem; }
  #greeting-emoji { font-size: 3.2rem; }
  #greeting-title { font-size: 1.3rem; }
}

/* ═══ PRODUCT DETAIL PAGE ═══ */
.pdp-wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
  max-width: 1300px; margin: 0 auto; padding: 1.5rem 4rem 3rem;
}
.pdp-gallery { position: sticky; top: 1.5rem; align-self: start; }
.pdp-main-image {
  aspect-ratio: 1/1; border-radius: 18px; overflow: hidden; background: var(--surface);
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  position: relative; touch-action: pan-y;
}
.pdp-main-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.pdp-main-image:hover img { transform: scale(1.06); }
.pdp-gallery-counter {
  position: absolute; bottom: 0.7rem; right: 0.7rem; background: rgba(20,14,8,0.65); color: #fff;
  font-size: 0.75rem; font-weight: 600; padding: 0.25rem 0.6rem; border-radius: 20px; pointer-events: none;
}
.pdp-thumbs { display: flex; gap: .6rem; margin-top: .8rem; flex-wrap: wrap; }
.pdp-thumb {
  width: 66px; height: 66px; border-radius: 10px; overflow: hidden; cursor: pointer;
  border: 2px solid var(--border); background: var(--surface); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; transition: border-color .15s;
}
.pdp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp-thumb:hover { border-color: var(--accent2); }
.pdp-thumb.active { border-color: var(--accent); }
.pdp-emoji-fallback { font-size: 6rem; }
.pdp-trust-row#pdp-trust-row-mobile { display: none; margin-top: 1rem; gap: 0.6rem; flex-wrap: wrap; }

.pdp-info { padding-top: 0.5rem; }
.pdp-cat { font-size: 0.78rem; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.4rem; }
.pdp-title { font-family: 'Playfair Display', serif; font-size: 1.7rem; font-weight: 700; color: var(--text); line-height: 1.3; margin-bottom: 0.6rem; }
.pdp-rating-row { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1.1rem; }
.pdp-stars { color: #f5a623; font-size: 0.95rem; }
.pdp-rating-num { font-weight: 700; font-size: 0.9rem; color: var(--text); }
.pdp-review-link { font-size: 0.85rem; color: var(--muted); text-decoration: underline; }
.pdp-review-link:hover { color: var(--accent); }

.pdp-price-block { padding: 1rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 1rem; }
.pdp-price-now { font-size: 2rem; font-weight: 800; color: var(--text); margin-right: 0.7rem; }
.pdp-price-mrp { font-size: 1.05rem; color: var(--muted); text-decoration: line-through; margin-right: 0.6rem; }
.pdp-price-off { font-size: 0.95rem; color: #22965a; font-weight: 700; }
.pdp-price-note { font-size: 0.78rem; color: var(--muted); margin-top: 0.3rem; }

.pdp-stock-row { margin-bottom: 1rem; }
.pdp-variant-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-bottom: 1.2rem; }
.pdp-variant-label { font-size: 0.85rem; color: var(--muted); margin-right: 0.3rem; }
.pdp-variant-pill {
  padding: 0.5rem 1rem; border: 1.5px solid var(--border); border-radius: 8px;
  background: var(--surface); color: var(--text); font-size: 0.85rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
}
.pdp-variant-pill:hover:not(:disabled) { border-color: var(--accent); }
.pdp-variant-pill.active { border-color: var(--accent); background: var(--accent); color: #fff; }
.pdp-variant-pill:disabled { opacity: 0.5; cursor: not-allowed; text-decoration: line-through; }
.pdp-badge { display: inline-block; font-size: 0.85rem; font-weight: 700; padding: 0.4rem 0.9rem; border-radius: 20px; }
.pdp-badge.in { background: rgba(34,150,90,0.12); color: #22965a; }
.pdp-badge.low { background: rgba(217,115,12,0.12); color: var(--accent); }
.pdp-badge.out { background: rgba(217,60,40,0.12); color: #d93c28; }

.pdp-qty-row { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.3rem; min-height: 40px; }
.pdp-qty-label { font-size: 0.85rem; font-weight: 700; color: var(--text); }
.pdp-qty-stepper { display: flex; align-items: center; gap: 0; border: 1.5px solid var(--border); border-radius: 10px; overflow: hidden; }
.pdp-qty-stepper button {
  width: 36px; height: 36px; border: none; background: var(--surface); font-size: 1.1rem; font-weight: 700;
  cursor: pointer; color: var(--text);
}
.pdp-qty-stepper button:disabled { opacity: 0.35; cursor: not-allowed; }
.pdp-qty-stepper button:hover:not(:disabled) { background: var(--glow); color: var(--accent); }
.pdp-qty-stepper span { width: 40px; text-align: center; font-weight: 700; font-size: 0.95rem; }

.pdp-actions { display: flex; gap: 0.7rem; margin-bottom: 1.3rem; flex-wrap: wrap; }
.pdp-btn-primary, .pdp-btn-secondary {
  flex: 1; min-width: 160px; padding: 0.95rem 1.4rem; border-radius: 10px; border: none;
  font-weight: 700; font-size: 0.95rem; cursor: pointer; transition: all 0.2s;
}
.pdp-btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; box-shadow: 0 4px 16px var(--glow); }
.pdp-btn-primary:hover { opacity: 0.92; transform: translateY(-1px); }
.pdp-btn-primary:disabled { background: #ccc; cursor: not-allowed; box-shadow: none; transform: none; }
.pdp-btn-secondary { background: var(--ink, #241b12); color: #fff; }
.pdp-btn-secondary:hover { opacity: 0.88; transform: translateY(-1px); }
.pdp-btn-icon {
  width: 48px; height: 48px; border-radius: 10px; border: 2px solid var(--border); background: var(--surface);
  cursor: pointer; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; color: var(--text);
  transition: all 0.2s;
}
.pdp-btn-icon:hover { border-color: var(--accent2); }
.pdp-btn-icon.active { background: #fff0f0; border-color: var(--accent2); }

.pdp-trust-row { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
.pdp-trust-chip { font-size: 0.76rem; color: var(--muted); background: var(--bg); border: 1px solid var(--border); border-radius: 20px; padding: 0.3rem 0.75rem; }

.pdp-delivery-box { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 1rem 1.2rem; margin-bottom: 0; }
.pdp-delivery-title { font-size: 0.87rem; font-weight: 700; color: var(--text); margin-bottom: 0.6rem; }
.pdp-delivery-input-row { display: flex; gap: 0.6rem; }
.pdp-delivery-input-row input {
  flex: 1; padding: 0.6rem 0.9rem; border: 1.5px solid var(--border); border-radius: 8px; font-size: 0.88rem; font-family: inherit;
}
.pdp-delivery-input-row button {
  padding: 0 1.2rem; border: none; border-radius: 8px; background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; font-weight: 700; font-size: 0.85rem; cursor: pointer;
}
.pdp-delivery-result { margin-top: 0.7rem; font-size: 0.85rem; }
.pdp-delivery-ok { color: #22965a; font-weight: 600; }
.pdp-delivery-error { color: #d93c28; font-weight: 600; }

/* Product-page "recently sold" activity ticker */
.pdp-activity-ticker {
  align-items: center; gap: 0.5rem;
  background: #fff4e8; border: 1px solid #f3ddb8; border-radius: 8px;
  padding: 0.5rem 0.8rem; margin: 0.5rem 0 0.75rem;
  font-size: 0.82rem; color: #8a5a1f;
}
.pdp-activity-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #2fa356;
  flex-shrink: 0; animation: pdpActivityPulse 1.6s ease-in-out infinite;
}
@keyframes pdpActivityPulse {
  0%, 100% { opacity: 1; } 50% { opacity: 0.35; }
}

/* Size guide trigger + modal */
.pdp-sizeguide-link {
  display: inline-flex; align-items: center; gap: 0.4rem; background: none; border: none;
  color: var(--accent); font-weight: 700; font-size: 0.82rem; cursor: pointer; padding: 0.4rem 0;
  text-decoration: underline; text-underline-offset: 2px;
}
.sizeguide-overlay {
  display: none; position: fixed; inset: 0; z-index: 3200; background: rgba(20,14,8,0.55);
  align-items: center; justify-content: center; padding: 1.5rem;
}
.sizeguide-overlay.open { display: flex; }
.sizeguide-modal {
  background: var(--surface); border-radius: 16px; max-width: 560px; width: 100%;
  max-height: 85vh; overflow-y: auto; padding: 1.5rem;
}
.sizeguide-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.sizeguide-head h3 { font-family: 'Playfair Display', serif; font-size: 1.3rem; }
.sizeguide-close { background: none; border: none; font-size: 1.1rem; color: var(--muted); cursor: pointer; }
.sizeguide-tip { font-size: 0.85rem; color: var(--muted); margin-bottom: 1rem; line-height: 1.5; }
.sizeguide-table { width: 100%; border-collapse: collapse; margin-bottom: 1.2rem; font-size: 0.85rem; }
.sizeguide-table th, .sizeguide-table td { padding: 0.6rem 0.7rem; border: 1px solid var(--border); text-align: center; }
.sizeguide-table th { background: var(--surface2); font-weight: 700; }
.sizeguide-table td:first-child { font-weight: 700; background: var(--surface2); }
.sizeguide-howto { font-size: 0.84rem; line-height: 1.6; }
.sizeguide-howto ul { margin: 0.5rem 0 0 1.2rem; color: var(--muted); }

/* Price history */
.pdp-price-history { margin: 0.4rem 0 0.6rem; font-size: 0.85rem; }
.pdp-price-history-best { color: #1d7d4d; font-weight: 700; }
.pdp-price-history-note { color: var(--muted); }

/* Delivery order-cutoff countdown */
.pdp-delivery-countdown {
  align-items: center; gap: 0.5rem; background: var(--surface2); border-radius: 8px;
  padding: 0.55rem 0.8rem; margin: 0.6rem 0; font-size: 0.83rem; color: var(--text);
}

/* Checkout order-summary delivery estimate (mini-summary sidebar) */
.mini-delivery-eta {
  display: flex; align-items: center; gap: 0.5rem;
  background: #f0f9f3; border: 1px solid #cdeedb; border-radius: 10px;
  padding: 0.65rem 0.9rem; margin-bottom: 1rem;
  font-size: 0.85rem; color: #22965a; font-weight: 600;
}
.mini-delivery-eta .eta-icon { font-size: 1rem; }

/* Checkout trust badges — shown at the moment of decision, right below
   the order total, since that's where reassurance actually matters. */
.checkout-trust-badges {
  display: flex; flex-wrap: wrap; gap: 0.5rem 0.7rem;
  margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border);
}
.ctb-item {
  font-size: 0.76rem; font-weight: 600; color: var(--muted);
  background: var(--surface2); border-radius: 6px; padding: 0.35rem 0.6rem;
}

/* Refer & Earn */
.referral-sub { font-size: 0.86rem; color: var(--muted); margin-bottom: 1rem; line-height: 1.5; }
.referral-link-row { display: flex; gap: 0.6rem; margin-bottom: 0.9rem; }
.referral-share-row { margin-bottom: 1rem; }
.referral-share-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: #25d366; color: #fff; text-decoration: none;
  padding: 0.6rem 1rem; border-radius: 8px; font-weight: 700; font-size: 0.85rem;
}
.referral-share-btn:hover { opacity: 0.9; }
.referral-stats-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem;
  margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border);
}
.referral-stat {
  text-align: center; background: var(--surface2); border-radius: 10px; padding: 0.8rem 0.5rem;
}
.referral-stat b { display: block; font-size: 1.2rem; color: var(--accent); }
.referral-stat span { display: block; font-size: 0.75rem; color: var(--muted); margin-top: 0.2rem; }
.referral-history-title { font-size: 0.82rem; font-weight: 700; color: var(--text); margin-bottom: 0.6rem; }
.referral-history-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.55rem 0; border-bottom: 1px solid var(--border); font-size: 0.85rem;
}
.referral-history-row:last-child { border-bottom: none; }
.referral-status { font-size: 0.78rem; font-weight: 600; }
.referral-status.done { color: #1d7d4d; }
.referral-status.pending { color: var(--muted); }
@media (max-width: 640px) {
  .referral-link-row { flex-direction: column; }
  .referral-stats-row { grid-template-columns: 1fr 1fr 1fr; gap: 0.4rem; }
  .referral-stat { padding: 0.6rem 0.3rem; }
  .referral-stat b { font-size: 1rem; }
}

/* Skeleton loaders — shown in product grids while real content is still
   being computed/rendered, so the shopper sees placeholder structure
   instead of blank space during that gap. */
.skeleton-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 0.9rem; overflow: hidden; }
.skel-img, .skel-line {
  border-radius: 8px; background: linear-gradient(90deg, var(--surface2) 25%, var(--border) 37%, var(--surface2) 63%);
  background-size: 400% 100%; animation: skelShimmer 1.4s ease infinite;
}
.skel-img { aspect-ratio: 1/1; margin-bottom: 0.7rem; }
.skel-line { height: 0.7rem; margin-bottom: 0.5rem; border-radius: 4px; }
.skel-line.w60 { width: 60%; } .skel-line.w80 { width: 80%; } .skel-line.w40 { width: 40%; margin-bottom: 0; }
@keyframes skelShimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* Pull-to-refresh indicator */
.ptr-indicator {
  position: fixed; top: 0; left: 50%; transform: translate(-50%, -60px);
  z-index: 3000; display: flex; align-items: center; gap: 0.4rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: 0.5rem 1rem; font-size: 0.8rem; font-weight: 600; color: var(--text);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12); opacity: 0; transition: opacity 0.2s;
  pointer-events: none;
}
.ptr-indicator.ptr-show { opacity: 1; }
.ptr-spinner { display: inline-block; transition: transform 0.2s; }
.ptr-indicator.ptr-spinning .ptr-spinner { animation: ptrSpin 0.7s linear infinite; }
@keyframes ptrSpin { to { transform: rotate(360deg); } }

/* Description / Specs / Reviews tabs */
.pdp-section { max-width: 1300px; margin: 0 auto; padding: 0 4rem 3rem; }
.pdp-section-title { font-family: 'Playfair Display', serif; font-size: 1.4rem; margin-bottom: 1.2rem; }
.pdp-tabs { display: flex; gap: 0.5rem; border-bottom: 1.5px solid var(--border); margin-bottom: 1.5rem; }
.pdp-tab {
  padding: 0.8rem 1.3rem; border: none; background: none; font-size: 0.9rem; font-weight: 700;
  color: var(--muted); cursor: pointer; border-bottom: 2.5px solid transparent; margin-bottom: -1.5px; transition: all 0.15s;
}
.pdp-tab:hover { color: var(--text); }
.pdp-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.pdp-desc-text { font-size: 0.92rem; line-height: 1.75; color: var(--text); max-width: 800px; }

/* Subscribe & Save box */
.pdp-subscribe-box { background: var(--bg); border: 1.5px dashed var(--accent); border-radius: 12px; padding: 1rem 1.1rem; margin-bottom: 1.3rem; }
.pdp-sub-row { display: flex; align-items: flex-start; gap: .8rem; }
.pdp-sub-ic { font-size: 1.4rem; }
.pdp-sub-sub { font-size: .78rem; color: var(--muted); margin-top: .2rem; }
.pdp-sub-controls { display: flex; gap: .6rem; margin-top: .7rem; flex-wrap: wrap; }
.pdp-sub-controls select {
  padding: .5rem .8rem; border: 1.5px solid var(--border); border-radius: 8px; font-family: inherit; font-size: .84rem; background: var(--surface); color: var(--text);
}
.pdp-sub-start {
  padding: .5rem 1.1rem; border-radius: 8px; border: none; background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; font-weight: 700; font-size: .84rem; cursor: pointer;
}
.pdp-sub-cancel {
  padding: .45rem .9rem; border-radius: 8px; border: 1px solid var(--border); background: var(--surface);
  color: var(--muted); font-weight: 600; font-size: .8rem; cursor: pointer; white-space: nowrap;
}
.pdp-sub-cancel:hover { border-color: #dc2626; color: #dc2626; }

/* Questions & Answers tab */
.qa-ask-box { max-width: 700px; margin-bottom: 1.8rem; }
.qa-input {
  width: 100%; min-height: 70px; padding: 0.8rem 1rem; border: 1.5px solid var(--border); border-radius: 12px;
  font-family: inherit; font-size: 0.88rem; resize: vertical; background: var(--surface); color: var(--text);
}
.qa-input:focus { outline: none; border-color: var(--accent); }
.qa-input:disabled { background: var(--surface2); cursor: not-allowed; }
.qa-hint { font-size: 0.82rem; color: var(--muted); margin-top: 0.5rem; }
.qa-hint a { color: var(--accent); font-weight: 700; }
.qa-list { max-width: 800px; display: flex; flex-direction: column; gap: 1.2rem; }
.qa-item { padding-bottom: 1.2rem; border-bottom: 1px solid var(--border); }
.qa-item:last-child { border-bottom: none; }
.qa-q { font-size: 0.92rem; font-weight: 700; color: var(--text); line-height: 1.5; }
.qa-q-mark, .qa-a-mark {
  display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%;
  font-size: 0.72rem; font-weight: 800; margin-right: 0.3rem; flex-shrink: 0;
}
.qa-q-mark { background: var(--surface2); color: var(--muted); }
.qa-a-mark { background: var(--accent); color: #fff; }
.qa-meta { font-size: 0.78rem; color: var(--muted); margin: 0.3rem 0 0 1.7rem; }
.qa-a { margin: 0.6rem 0 0 1.7rem; font-size: 0.88rem; line-height: 1.6; color: var(--text); background: var(--bg); border-radius: 10px; padding: 0.7rem 0.9rem; }
.qa-unanswered { margin: 0.6rem 0 0 1.7rem; font-size: 0.82rem; color: var(--muted); font-style: italic; }
.qa-empty { font-size: 0.88rem; color: var(--muted); padding: 1rem 0; }
.pdp-specs-table { width: 100%; max-width: 700px; border-collapse: collapse; }
.pdp-specs-table tr { border-bottom: 1px solid var(--border); }
.pdp-specs-table th { text-align: left; padding: 0.8rem 1rem 0.8rem 0; font-size: 0.85rem; font-weight: 700; color: var(--muted); width: 220px; vertical-align: top; }
.pdp-specs-table td { padding: 0.8rem 0; font-size: 0.9rem; color: var(--text); }

.pdp-review-summary { display: flex; gap: 3rem; flex-wrap: wrap; margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.pdp-review-avg { text-align: center; min-width: 140px; }
.pdp-review-avg-num { font-size: 2.6rem; font-weight: 800; color: var(--text); line-height: 1; }
.pdp-review-avg-count { font-size: 0.8rem; color: var(--muted); margin-top: 0.4rem; }
.pdp-review-bars { flex: 1; min-width: 240px; max-width: 400px; }
.pdp-rbar-row { display: grid; grid-template-columns: 30px 1fr 40px; align-items: center; gap: 0.7rem; padding: 0.25rem 0; font-size: 0.8rem; color: var(--muted); }
.pdp-rbar-track { height: 8px; background: var(--surface2, #eee); border-radius: 6px; overflow: hidden; }
.pdp-rbar-fill { height: 100%; background: #f5a623; border-radius: 6px; }
.pdp-rbar-pct { text-align: right; }
.pdp-review-list { display: flex; flex-direction: column; gap: 1.2rem; max-width: 800px; }
.pdp-review-card { padding-bottom: 1.2rem; border-bottom: 1px solid var(--border); }
.pdp-review-top { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.5rem; }
.pdp-review-avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.8rem; flex-shrink: 0;
}
.pdp-review-name { font-weight: 700; font-size: 0.87rem; color: var(--text); }
.pdp-review-stars { font-size: 0.8rem; color: #f5a623; }
.pdp-review-date { color: var(--muted); font-size: 0.76rem; margin-left: 0.4rem; }
.pdp-review-text { font-size: 0.88rem; color: var(--text); line-height: 1.6; }

@media (max-width: 900px) {
  .pdp-wrap { grid-template-columns: 1fr; padding: 1.2rem 1.5rem 2rem; gap: 1.5rem; }
  .pdp-gallery { position: static; }
  .pdp-trust-row#pdp-trust-row-mobile { display: flex; }
  .pdp-trust-row:not(#pdp-trust-row-mobile) { display: none; }
  .pdp-section { padding: 0 1.5rem 2.5rem; }
  .pdp-actions { flex-direction: column; }
  .pdp-btn-primary, .pdp-btn-secondary { min-width: 0; width: 100%; }
  .pdp-review-summary { gap: 1.5rem; }
}

/* ═══ POLICY UPDATE NOTICE ═══ */
#policy-update-overlay {
  display: none; position: fixed; inset: 0; z-index: 9800;
  background: rgba(20,14,8,0.6); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 1.2rem;
}
#policy-update-overlay.open { display: flex; }
#policy-update-modal {
  position: relative; background: var(--surface); border-radius: 16px; width: 100%; max-width: 560px;
  padding: 2rem 2.2rem 1.8rem; box-shadow: 0 30px 90px rgba(0,0,0,0.3);
  animation: modalIn 0.28s cubic-bezier(.22,.68,0,1.2); max-height: 85vh; overflow-y: auto;
}
#policy-update-close {
  position: absolute; top: 1.1rem; right: 1.2rem; background: none; border: none;
  font-size: 1.1rem; color: var(--muted); cursor: pointer; line-height: 1; padding: 0.3rem;
}
#policy-update-close:hover { color: var(--text); }
#policy-update-title {
  font-family: 'Playfair Display', serif; font-size: 1.35rem; font-weight: 700;
  color: var(--text); margin: 0 1.8rem 0.7rem 0; line-height: 1.3;
}
.policy-update-subline { font-size: 0.86rem; font-weight: 700; color: var(--accent); margin-bottom: 1rem; }
.policy-update-summary {
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  padding: 1rem 1.2rem; font-size: 0.88rem; line-height: 1.65; color: var(--text); margin-bottom: 1.2rem;
}
.policy-update-meta { font-size: 0.82rem; color: var(--muted); line-height: 2; margin-bottom: 1.4rem; }
.policy-update-meta b { color: var(--text); }
.policy-update-meta a { color: var(--accent); font-weight: 700; text-decoration: underline; }
#policy-update-accept {
  width: 100%; padding: 0.9rem; border: none; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff;
  font-weight: 700; font-size: 0.95rem; cursor: pointer; transition: transform 0.15s;
}
#policy-update-accept:hover { transform: translateY(-1px); }

@media (max-width: 560px) {
  #policy-update-modal { padding: 1.6rem 1.4rem 1.4rem; }
  #policy-update-title { font-size: 1.15rem; }
}

/* ─── WELCOME / INTRO TOUR ────────────────────────────────────── */
.intro-tour-overlay {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(20, 15, 10, 0.55);
}
.intro-tour-overlay.open { display: block; }
.intro-tour-highlight {
  position: fixed; border-radius: 12px;
  box-shadow: 0 0 0 4px var(--accent), 0 0 0 9999px rgba(20, 15, 10, 0.55);
  transition: all 0.35s ease; pointer-events: none;
}
.intro-tour-card {
  position: fixed; width: 300px; max-width: calc(100vw - 32px);
  background: var(--surface); border-radius: 14px; padding: 1.2rem 1.3rem;
  box-shadow: 0 12px 32px rgba(0,0,0,0.25); transition: all 0.35s ease;
}
.intro-tour-step-count { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; color: var(--accent); text-transform: uppercase; margin-bottom: 0.4rem; }
.intro-tour-title { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 0.35rem; }
.intro-tour-text { font-size: 0.87rem; color: var(--muted); line-height: 1.55; margin-bottom: 1rem; }
.intro-tour-actions { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; }
.intro-tour-skip { background: none; border: none; color: var(--muted); font-size: 0.82rem; cursor: pointer; text-decoration: underline; }
.intro-tour-next {
  border: none; border-radius: 8px; padding: 0.55rem 1.1rem; font-weight: 700; font-size: 0.85rem;
  color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent2)); cursor: pointer; transition: transform 0.15s;
}
.intro-tour-next:hover { transform: translateY(-1px); }
@media (max-width: 560px) {
  .intro-tour-card { width: calc(100vw - 32px); left: 16px !important; }
}

/* Saved-address quick-select at checkout */
.checkout-saved-addr-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 1.4rem; }
.checkout-saved-addr-chip {
  border: 1.5px solid var(--border); border-radius: 12px; padding: 0.7rem 1rem; cursor: pointer;
  font-size: 0.82rem; line-height: 1.5; max-width: 240px; transition: border-color 0.15s; background: var(--surface);
}
.checkout-saved-addr-chip:hover { border-color: var(--accent); }
.checkout-saved-addr-chip.selected { border-color: var(--accent); background: rgba(217,115,12,0.06); }
.checkout-saved-addr-chip b { display: block; font-size: 0.84rem; margin-bottom: 0.2rem; }
.checkout-saved-addr-chip .type { color: var(--accent); font-weight: 700; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; }
.checkout-saved-addr-chip.add-new { display: flex; align-items: center; justify-content: center; color: var(--accent); font-weight: 700; }

/* Saved payment methods on Wallet page */
.pm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.pm-card { border: 1.5px solid var(--border); border-radius: 14px; padding: 1.1rem; background: var(--surface); position: relative; }
.pm-card.default { border-color: var(--accent); background: rgba(217,115,12,0.04); }
.pm-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.6rem; }
.pm-icon { font-size: 1.4rem; }
.pm-default-badge { font-size: 0.68rem; font-weight: 800; padding: 0.22rem 0.55rem; border-radius: 999px; background: var(--accent); color: #fff; }
.pm-label { font-weight: 700; font-size: 0.92rem; margin-bottom: 0.2rem; }
.pm-sub { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.9rem; }
.pm-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.pm-actions button {
  padding: 0.4rem 0.75rem; border-radius: 8px; border: 1px solid var(--border); background: var(--bg);
  color: var(--text); font-size: 0.76rem; font-weight: 600; cursor: pointer;
}
.pm-actions button:hover { border-color: var(--accent); color: var(--accent); }
.pm-actions button.danger:hover { border-color: #dc2626; color: #dc2626; }
.pm-add-card {
  border: 1.5px dashed var(--border); border-radius: 14px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; min-height: 120px; color: var(--muted); font-weight: 700; font-size: 0.86rem; transition: all 0.15s;
}
.pm-add-card:hover { border-color: var(--accent); color: var(--accent); }

/* Abandoned-cart nudge banner */
#cart-nudge-banner {
  display: none; position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 1500;
  background: var(--surface); border: 1.5px solid var(--accent); border-radius: 14px; padding: 0.9rem 1.1rem;
  box-shadow: 0 10px 30px rgba(40,30,20,0.18); display: none; align-items: center; gap: 0.9rem; max-width: calc(100vw - 2rem);
}
#cart-nudge-banner.open { display: flex; }
.cart-nudge-text { font-size: 0.86rem; }
.cart-nudge-text b { color: var(--accent); }
.cart-nudge-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }
.cart-nudge-actions a {
  padding: 0.5rem 0.9rem; border-radius: 8px; background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; font-weight: 700; font-size: 0.8rem; text-decoration: none; white-space: nowrap;
}
.cart-nudge-close { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 1rem; padding: 0 0.2rem; }
@media (max-width: 560px) { #cart-nudge-banner { flex-direction: column; align-items: stretch; text-align: center; } }

/* PWA install banner */
#pwa-install-banner {
  position: fixed; left: 50%; bottom: -120px; transform: translateX(-50%); z-index: 1600;
  display: flex; align-items: center; gap: 0.9rem; background: var(--surface); border: 1.5px solid var(--accent);
  border-radius: 16px; padding: 1rem 1.2rem; box-shadow: 0 14px 34px rgba(40,30,20,0.2);
  max-width: calc(100vw - 2rem); width: 420px; transition: bottom 0.35s ease;
}
#pwa-install-banner.open { bottom: 18px; }
.pwa-install-icon { font-size: 1.8rem; flex-shrink: 0; }
.pwa-install-text { font-size: 0.83rem; line-height: 1.45; flex: 1; color: var(--text); }
.pwa-install-actions { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.pwa-install-btn {
  padding: 0.55rem 1rem; border-radius: 9px; border: none; background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; font-weight: 700; font-size: 0.82rem; cursor: pointer; white-space: nowrap;
}
.pwa-install-close { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 1rem; padding: 0 0.2rem; }
@media (max-width: 560px) { #pwa-install-banner { flex-wrap: wrap; } }

/* Floating product-comparison bar */
#compare-bar {
  display: none; position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 1550;
  align-items: center; gap: 1rem; background: var(--adm-ink, #241b12); color: #fff; border-radius: 14px;
  padding: .9rem 1.2rem; box-shadow: 0 14px 34px rgba(0,0,0,0.3); max-width: calc(100vw - 2rem); flex-wrap: wrap;
}
#compare-bar.open { display: flex; }
.compare-bar-text { font-size: .84rem; opacity: .92; }
.compare-bar-actions { display: flex; gap: .6rem; align-items: center; }
.compare-bar-clear { background: none; border: 1px solid rgba(255,255,255,.3); color: #fff; padding: .45rem .8rem; border-radius: 8px; font-size: .8rem; cursor: pointer; }
.compare-bar-go {
  background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; text-decoration: none;
  padding: .5rem 1rem; border-radius: 8px; font-weight: 700; font-size: .82rem; white-space: nowrap;
}

/* ── APP-LIKE MOBILE HEADER: hide website chrome now covered by the bottom tab bar ── */
@media (max-width: 768px) {
  .top-info-bar {
    padding: 0.5rem 1rem;
    justify-content: center;
  }
  .top-info-bar .top-right { display: none; }
  .top-info-bar .top-left { justify-content: center; width: 100%; font-size: 0.74rem; }
  .header-actions [data-nav="wishlist"], .header-actions [data-nav="cart"], .header-actions [data-nav="wallet"] { display: none; }
  .header-actions { flex: 0 0 auto; gap: 1.1rem; }
  .main-header { justify-content: space-between; flex-wrap: wrap; padding-top: 0.6rem; padding-bottom: 0.6rem; }
  .search-section { order: 3; flex-basis: 100%; }
}

/* ── APP-LIKE MOBILE BOTTOM TAB BAR ──────────────────────────── */
.mobile-bottom-nav {
  display: none;
}
@media (max-width: 768px) {
  .mobile-bottom-nav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 3000;
    background: var(--surface); border-top: 1px solid var(--border);
    box-shadow: 0 -6px 20px rgba(0,0,0,0.08);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  body.has-mobile-bottom-nav { padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px)); }
  /* The mobile bottom nav's Account tab already opens an equivalent
     account menu (buildMobileAccountSheet in sabarmart-shared.js), so
     the header's own account dropdown + avatar trigger is redundant
     and hidden here to avoid two overlapping account menus on mobile. */
  body.has-mobile-bottom-nav .account-dropdown { display: none; }
  .mbn-tab {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; padding: 7px 2px 6px; color: var(--muted); text-decoration: none; position: relative;
    font-size: 0.66rem; font-weight: 600; min-height: 52px; -webkit-tap-highlight-color: transparent;
  }
  .mbn-tab svg { width: 21px; height: 21px; stroke-width: 2; }
  .mbn-tab.active { color: var(--accent); }
  .mbn-tab.active svg { stroke-width: 2.3; }
  .mbn-badge {
    position: absolute; top: 2px; right: 22%; min-width: 15px; height: 15px; padding: 0 3px;
    background: var(--accent2); color: #fff; border-radius: 8px; font-size: 0.6rem; font-weight: 800;
    display: none; align-items: center; justify-content: center; line-height: 1;
  }
  /* Nudge floating widgets up so they sit above the bottom nav instead of behind it.
     Back-to-top is stacked above the chat bubble (not beside it) since both anchor
     to the same right edge — sitting side by side would have them overlap. */
  .chat-widget-bubble { bottom: calc(1.1rem + 58px + env(safe-area-inset-bottom, 0px)) !important; }
  .chat-widget-panel { bottom: calc(1.1rem + 58px + 4.25rem + env(safe-area-inset-bottom, 0px)) !important; }
  #back-to-top-btn { bottom: calc(1.1rem + 58px + 52px + 0.8rem + env(safe-area-inset-bottom, 0px)) !important; }
  #sc-chat-panel { bottom: calc(1.5rem + 58px + env(safe-area-inset-bottom, 0px)) !important; }
  #compare-bar { bottom: calc(18px + 58px + env(safe-area-inset-bottom, 0px)) !important; }
  #cart-nudge-banner.open { bottom: calc(18px + 58px + env(safe-area-inset-bottom, 0px)) !important; }
  #pwa-install-banner.open { bottom: calc(18px + 58px + env(safe-area-inset-bottom, 0px)) !important; }
}

/* ── MOBILE ACCOUNT SHEET (slide-up, triggered from bottom-nav Account tab) ── */
.mobile-account-sheet-overlay {
  display: none; position: fixed; inset: 0; z-index: 4000; background: rgba(0,0,0,0.45);
}
.mobile-account-sheet-overlay.open { display: block; animation: overlayIn 0.2s ease; }
.mobile-account-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 4001;
  background: var(--surface); border-radius: 20px 20px 0 0;
  padding: 0.7rem 1.2rem calc(1.2rem + env(safe-area-inset-bottom, 0px));
  max-height: 78vh; overflow-y: auto;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.25);
  animation: slideUpSheet 0.25s ease;
}
@keyframes slideUpSheet { from { transform: translateY(100%); } to { transform: translateY(0); } }
.mas-handle { width: 40px; height: 4px; background: var(--border); border-radius: 3px; margin: 0.3rem auto 0.9rem; }
.mas-profile { display: flex; align-items: center; gap: 0.8rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); margin-bottom: 0.6rem; }
.mas-avatar {
  width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.1rem; flex-shrink: 0;
}
.mas-name { font-weight: 700; font-size: 0.95rem; color: var(--text); }
.mas-email { font-size: 0.78rem; color: var(--muted); margin-top: 0.1rem; }
.mas-links { display: flex; flex-direction: column; }
.mas-link {
  display: flex; align-items: center; gap: 0.9rem; padding: 0.85rem 0.2rem; text-decoration: none;
  color: var(--text); font-size: 0.9rem; font-weight: 600; border-bottom: 1px solid var(--border);
}
.mas-link:last-child { border-bottom: none; }
.mas-logout { color: #dc2626; }
.mas-highlight { color: var(--accent); }

/* ─── PRODUCT PREVIEW (shared: vendor "before publishing" + admin "before approving") ─── */
.ppv-banner { background: #fef3e2; border: 1px solid #f0c987; color: #92400e; font-size: .85rem; font-weight: 600; padding: .7rem 1rem; border-radius: 10px; margin-bottom: 1.2rem; }
.ppv-layout { display: grid; grid-template-columns: 320px 1fr; gap: 2rem; }
@media (max-width: 720px) { .ppv-layout { grid-template-columns: 1fr; } }
.ppv-gallery { display: flex; flex-direction: column; gap: .6rem; }
.ppv-main-img { width: 100%; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--surface2, #f3ede2); display: flex; align-items: center; justify-content: center; }
.ppv-main-img img { width: 100%; height: 100%; object-fit: cover; }
.ppv-emoji-fallback { font-size: 5rem; }
.ppv-thumbs { display: flex; gap: .5rem; }
.ppv-thumbs img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; border: 1.5px solid var(--border, #e5ded2); }
.ppv-category { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: .3rem; }
.ppv-title { font-size: 1.5rem; font-weight: 800; margin: 0 0 .7rem; line-height: 1.25; }
.ppv-price-row { display: flex; align-items: baseline; gap: .6rem; margin-bottom: .5rem; }
.ppv-price { font-size: 1.6rem; font-weight: 800; }
.ppv-mrp { font-size: 1rem; color: var(--muted); text-decoration: line-through; }
.ppv-discount { font-size: .85rem; font-weight: 700; color: #15803d; }
.ppv-stock { font-size: .85rem; font-weight: 700; margin-bottom: .8rem; }
.ppv-stock.in { color: #15803d; }
.ppv-stock.out { color: #b91c1c; }
.ppv-meta { font-size: .82rem; color: var(--muted); margin-bottom: .2rem; }
.ppv-desc { font-size: .92rem; line-height: 1.6; margin-top: .8rem; }
.ppv-desc.ppv-missing, .ppv-warning { color: #b45309; background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: .6rem .8rem; font-size: .85rem; margin-top: .8rem; }
.ppv-variants { margin-top: 1rem; }
.ppv-variants-label { font-size: .8rem; font-weight: 700; color: var(--muted); margin-bottom: .4rem; }
.ppv-variant-chip { display: inline-block; border: 1px solid var(--border, #e5ded2); border-radius: 20px; padding: .3rem .8rem; font-size: .82rem; margin: 0 .4rem .4rem 0; }

