/* CSS Variables - Keep all existing styles exactly as they were */
    :root {
      --primary: #0f172a;
      --primary-light: #f1f5f9;
      --secondary: #475569;
      --gold: #c9a24a;
      --gold-light: #f8f0dd;
      --font-serif: Georgia, 'Playfair Display', 'Times New Roman', serif;
      --surface: #ffffff;
      --surface2: #f8fafc;
      --border: #e2e8f0;
      --text: #0f172a;
      --text-muted: #64748b;
      --bg: #f8fafc;
      --radius: 16px;
      --radius-sm: 12px;
      --shadow-sm: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.02);
      --shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -2px rgba(0,0,0,0.05);
      --nav-height: 72px;
      --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      --verified-bg: #f1f5f9;
      --verified-color: #475569;
      --featured-bg: #f1f5f9;
      --featured-color: #475569;
      --premium-bg: #f3e8ff;
      --premium-color: #6d28d9;
      --standard-bg: #e0f2fe;
      --standard-color: #0369a1;
      --basic-bg: #f1f5f9;
      --basic-color: #475569;
      --boost-bg: #f1f5f9;
      --boost-color: #475569;
      --menu-bg: #ffffff;
      --menu-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
      --menu-overlay: rgba(15, 23, 42, 0.4);
    }

    @keyframes vProductImgSkeleton {
      0% { background-position: 100% 50%; }
      100% { background-position: 0 50%; }
    }

    /* Featured Slider Styles */
    .featured-slider-section {
      margin: 20px 0;
      background: linear-gradient(135deg, #fff5f0, #ffffff);
      border-radius: var(--radius);
      padding: 16px 0;
    }
    
    .featured-slider-section .slider-title {
      padding: 0 16px;
    }

    .slider-title {
      font-size: 18px;
      font-weight: 800;
      margin-bottom: 12px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .slider-title span {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .slider-title i {
      color: var(--primary);
      font-size: 20px;
    }

    .see-all-link {
      font-size: 12px;
      color: var(--primary);
      text-decoration: none;
      font-weight: 600;
    }

    .featured-slider-container {
      position: relative;
      overflow-x: auto;
      overflow-y: hidden;
      white-space: nowrap;
      scroll-behavior: smooth;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: thin;
      padding: 8px 16px;
    }

    .featured-slider-container::-webkit-scrollbar {
      height: 4px;
    }

    .featured-slider-container::-webkit-scrollbar-track {
      background: var(--border);
      border-radius: 10px;
    }

    .featured-slider-container::-webkit-scrollbar-thumb {
      background: var(--primary);
      border-radius: 10px;
    }

    .featured-slider {
      display: inline-flex;
      gap: 2px;
    }

    .featured-product-card {
      display: inline-block;
      width: 140px;
      background: #FFFFFF;
      border: none;
      border-radius: 12px;
      overflow: hidden;
      cursor: pointer;
      transition: transform 0.3s ease;
      box-shadow: none;
      vertical-align: top;
      white-space: normal;
    }

    .featured-product-card:hover {
      transform: translateY(-4px);
    }

    .featured-product-img {
      width: 100%;
      height: 140px;
      object-fit: cover;
      background: var(--surface2);
    }

    .featured-product-info {
      padding: 8px;
    }

    .featured-product-name {
      font-size: 12px;
      font-weight: 600;
      margin-bottom: 4px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .featured-product-price {
      font-size: 13px;
      font-weight: 700;
      color: var(--primary);
    }

    .featured-old-price {
      font-size: 10px;
      color: var(--text-muted);
      text-decoration: line-through;
      margin-left: 4px;
    }

    .featured-badge {
      display: inline-block;
      background: linear-gradient(135deg, var(--primary), var(--secondary));
      color: white;
      font-size: 8px;
      padding: 2px 6px;
      border-radius: 10px;
      margin-left: 4px;
      vertical-align: middle;
    }

    /* Categories Slider - Image Card Style - SMALLER CARDS */
    .categories-slider-section {
      margin: 20px 0 30px;
    }

    .categories-slider-container {
      position: relative;
      overflow-x: auto;
      overflow-y: hidden;
      white-space: nowrap;
      scroll-behavior: smooth;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: thin;
      padding: 8px 16px;
    }

    .categories-slider-container::-webkit-scrollbar {
      height: 4px;
    }

    .categories-slider {
      display: inline-flex;
      gap: 10px;
    }

    .category-card {
      display: inline-block;
      position: relative;
      width: 80px;
      height: 80px;
      border-radius: 12px;
      overflow: hidden;
      cursor: pointer;
      transition: all 0.3s ease;
      vertical-align: top;
    }

    .category-card:hover {
      transform: translateY(-4px);
      box-shadow: var(--shadow);
    }

    .category-overlay {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
      padding: 8px 4px 4px;
      text-align: center;
    }

    .category-name {
      color: white;
      font-size: 11px;
      font-weight: 600;
      text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    }

    /* Desktop category card size */
    @media (min-width: 768px) {
      .featured-product-card {
        width: 160px;
      }
      
      .featured-product-img {
        height: 160px;
      }
      
      .category-card {
        width: 90px;
        height: 90px;
      }
      
      .category-name {
        font-size: 12px;
      }
    }

    /* All existing styles remain exactly the same */
    .vendor-badge {
      display: inline-flex;
      align-items: center;
      background: var(--verified-bg);
      color: var(--verified-color);
      font-size: 11px;
      font-weight: 600;
      padding: 3px 8px;
      border-radius: 12px;
      margin-left: 5px;
      white-space: nowrap;
    }
    
    .vendor-badge i {
      margin-right: 4px;
      font-size: 10px;
    }
    
    .vendor-badge.featured {
      background: var(--featured-bg);
      color: var(--featured-color);
    }
    
    .vendor-badge.premium {
      background: var(--premium-bg);
      color: var(--premium-color);
    }
    
    .vendor-badge.standard {
      background: var(--standard-bg);
      color: var(--standard-color);
    }
    
    .vendor-badge.basic {
      background: var(--basic-bg);
      color: var(--basic-color);
    }
    
    .boost-badge {
      display: inline-flex;
      align-items: center;
      background: var(--boost-bg);
      color: white;
      font-size: 10px;
      font-weight: 600;
      padding: 2px 6px;
      border-radius: 12px;
      margin-left: 5px;
    }
    
    .store-header .vendor-badge {
      margin-left: 0;
      margin-top: 4px;
    }
    
    .product-store-badge {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      background: var(--surface2);
      padding: 4px 8px;
      border-radius: 20px;
      margin: 6px 0;
      cursor: pointer;
      transition: all 0.2s;
      z-index: 2;
      position: relative;
      flex-wrap: wrap;
    }

    .product-store-badge:hover {
      background: var(--primary-light);
      color: var(--primary);
    }

    .product-store-badge i {
      font-size: 10px;
      color: var(--primary);
    }

    .product-store-badge span {
      font-size: 10px;
      font-weight: 500;
    }
    
    .store-info {
      display: flex;
      flex-direction: column;
      gap: 4px;
    }
    
    .store-name-row {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 4px;
    }
    
    /* Powered by Footer - FIXED to stay above bottom nav */
    .powered-by {
      text-align: center;
      padding: 20px 16px 30px;
      margin-top: 20px;
      border-top: 1px solid var(--border);
      font-size: 12px;
      color: var(--text-muted);
      position: relative;
      z-index: 5;
      background: var(--bg);
    }

    /* On mobile, add bottom padding to account for bottom navigation */
    @media (max-width: 767px) {
      .powered-by {
        padding-bottom: calc(30px + var(--nav-height));
        margin-bottom: 0;
      }
    }

    .powered-by a {
      color: var(--primary);
      text-decoration: none;
      font-weight: 600;
      transition: all 0.2s ease;
    }

    .powered-by a:hover {
      color: var(--secondary);
      text-decoration: underline;
    }

    .powered-by .heart {
      color: #ff3b5c;
      display: inline-block;
      animation: heartBeat 1.5s ease infinite;
    }

    @keyframes heartBeat {
      0%, 100% { transform: scale(1); }
      50% { transform: scale(1.1); }
    }

    .powered-by .developer-name {
      font-weight: 700;
      background: linear-gradient(135deg, var(--primary), var(--secondary));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    /* Cart Styles */
    .cart-container {
      padding: 16px;
    }

    .cart-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 20px;
    }

    .cart-header h2 {
      font-size: 20px;
      font-weight: 800;
    }

    .clear-cart-btn {
      background: #fef2f2;
      color: #ff3b5c;
      border: none;
      padding: 8px 16px;
      border-radius: 30px;
      font-size: 12px;
      font-weight: 600;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .clear-cart-btn:hover {
      background: #f50e0e;
      color: white;
    }

    /* ─── Cart Layout Grid ───────────────────────────────── */
    .cart-container {
      display: grid;
      grid-template-columns: 1fr;
      gap: 20px;
    }

    @media (min-width: 768px) {
      .cart-container {
        grid-template-columns: 1fr 300px;
        align-items: start;
      }
      .cart-header { grid-column: 1 / -1; }
      .cart-items  { grid-column: 1; }
      .cart-summary {
        grid-column: 2;
        position: sticky;
        top: 80px;
        margin-top: 0;
      }
    }

    /* ─── Cart Item Card ─────────────────────────────────── */
    .cart-item {
      display: flex;
      gap: 14px;
      background: var(--surface);
      border-radius: var(--radius-md);
      padding: 14px;
      margin-bottom: 10px;
      box-shadow: var(--shadow-sm);
      border: 1px solid var(--border);
      transition: var(--transition);
    }

    .cart-item:hover {
      box-shadow: var(--shadow-md);
    }

    .cart-item-image {
      width: 80px;
      height: 80px;
      border-radius: var(--radius-sm);
      object-fit: cover;
      cursor: pointer;
      border: 1px solid var(--border);
      flex-shrink: 0;
    }

    @media (min-width: 768px) {
      .cart-item-image {
        width: 96px;
        height: 96px;
      }
    }

    .cart-item-details {
      flex: 1;
      min-width: 0;
    }

    .cart-item-name {
      font-size: 14px;
      font-weight: 700;
      color: var(--text);
      margin-bottom: 3px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .cart-item-store {
      font-size: 11px;
      font-weight: 600;
      color: var(--text-muted);
      margin-bottom: 5px;
      text-transform: uppercase;
      letter-spacing: 0.3px;
    }

    .cart-item-price {
      font-size: 15px;
      color: var(--text);
      font-weight: 800;
    }

    .cart-item-actions {
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      justify-content: space-between;
      gap: 8px;
      flex-shrink: 0;
    }

    @media (min-width: 480px) {
      .cart-item-actions {
        gap: 12px;
      }
    }

    /* ─── Quantity Control ───────────────────────────────── */
    .quantity-control {
      display: flex;
      align-items: center;
      gap: 4px;
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: var(--radius-full);
      padding: 3px;
    }

    .quantity-btn {
      width: 26px;
      height: 26px;
      border-radius: 50%;
      border: none;
      background: var(--surface);
      color: var(--text);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 10px;
      box-shadow: var(--shadow-sm);
      transition: var(--transition);
    }

    .quantity-btn:hover:not(:disabled) {
      background: var(--primary);
      color: white;
    }

    .quantity-btn:disabled {
      opacity: 0.3;
      cursor: not-allowed;
    }

    .quantity-value {
      font-weight: 700;
      min-width: 22px;
      text-align: center;
      font-size: 13px;
      color: var(--text);
    }

    .cart-item-total {
      font-weight: 800;
      color: var(--text);
      font-size: 14px;
      text-align: right;
    }

    /* ─── Remove Button ──────────────────────────────────── */
    .remove-btn {
      background: none;
      color: #ef4444;
      border: 1px solid transparent;
      width: 30px;
      height: 30px;
      border-radius: 50%;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
      transition: var(--transition);
    }

    .remove-btn:hover {
      background: #fef2f2;
      border-color: #fecaca;
    }

    /* ─── Cart Summary Card ──────────────────────────────── */
    .cart-summary {
      background: var(--surface);
      border-radius: var(--radius-md);
      padding: 20px;
      border: 1px solid var(--border);
      box-shadow: var(--shadow-sm);
    }

    .summary-row {
      display: flex;
      justify-content: space-between;
      margin-bottom: 10px;
      font-size: 13px;
      font-weight: 500;
      color: var(--text-muted);
    }

    .summary-total {
      display: flex;
      justify-content: space-between;
      margin-top: 14px;
      padding-top: 14px;
      border-top: 1.5px solid var(--border);
      font-weight: 800;
      font-size: 16px;
      color: var(--text);
    }

    .summary-total span:last-child {
      color: var(--primary);
    }

    .checkout-btn {
      margin-top: 16px;
      width: 100%;
      padding: 13px 20px;
      font-size: 14px;
    }

    /* ─── Mobile Cart Adjustments ────────────────────────── */
    @media (max-width: 480px) {
      .cart-item {
        flex-wrap: wrap;
      }

      .cart-item-image {
        width: 64px;
        height: 64px;
      }

      .cart-item-actions {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        border-top: 1px solid var(--border);
        padding-top: 10px;
        margin-top: 4px;
      }

      .quantity-control { order: 1; }
      .cart-item-total  { order: 2; }
      .remove-btn       { order: 3; }
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: var(--font-display);
      background: var(--bg);
      color: var(--text);
      line-height: 1.5;
      -webkit-font-smoothing: antialiased;
    }

    /* Desktop Navigation - Hidden on mobile */
    .desktop-nav {
      display: none;
      position: fixed;
      left: 0;
      top: 0;
      bottom: 0;
      width: 260px;
      background: var(--surface);
      border-right: 1px solid var(--border);
      padding: 22px 0;
      overflow-y: auto;
      z-index: 100;
    }

    .desktop-nav-header {
      padding: 0 20px 20px;
      border-bottom: 1px solid var(--border);
      margin-bottom: 18px;
    }

    .desktop-nav-logo {
      font-family: var(--font-serif);
      font-size: 23px;
      font-weight: 800;
      color: var(--primary);
      margin-bottom: 8px;
      display: flex;
      align-items: center;
      gap: 10px;
      letter-spacing: -0.01em;
    }

    .desktop-nav-logo span { color: var(--gold); }

    .desktop-nav-user {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 12px 14px;
      background: var(--bg);
      border: 1px solid var(--border);
      border-radius: 14px;
      margin-top: 16px;
    }

    .desktop-nav-avatar {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: var(--primary);
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-weight: 700;
      font-size: 16px;
      overflow: hidden;
      box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--gold);
      flex-shrink: 0;
    }

    .desktop-nav-avatar img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .desktop-nav-user-info {
      flex: 1;
      min-width: 0;
    }

    .desktop-nav-user-name {
      font-weight: 600;
      font-size: 14px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .desktop-nav-user-role {
      font-size: 11px;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .desktop-nav-menu {
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .desktop-nav-item {
      margin: 3px 12px;
    }

    .desktop-nav-link {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 11px 16px;
      border-radius: 10px;
      color: var(--text-muted);
      font-weight: 500;
      transition: all 0.2s;
      cursor: pointer;
      border: none;
      border-left: 3px solid transparent;
      background: transparent;
      width: 100%;
      text-align: left;
      font-size: 14px;
      text-decoration: none;
    }

    .desktop-nav-link i {
      width: 20px;
      font-size: 18px;
    }

    .desktop-nav-link:hover {
      background: var(--bg);
      color: var(--primary);
    }

    .desktop-nav-link.active {
      background: var(--gold-light);
      color: var(--primary);
      border-left-color: var(--gold);
      font-weight: 700;
    }

    .desktop-nav-link.active i {
      color: var(--gold);
    }

    .desktop-nav-badge {
      margin-left: auto;
      background: var(--primary);
      color: white;
      padding: 2px 8px;
      border-radius: 20px;
      font-size: 10px;
      font-weight: 700;
    }

    .desktop-nav-divider {
      height: 1px;
      background: var(--border);
      margin: 14px 20px;
    }

    /* Main Content Area */
    .main-content {
      transition: all 0.3s ease;
      min-height: 100vh;
    }

    /* Mobile Styles */
    @media (max-width: 767px) {
      .desktop-nav {
        display: none;
      }
      
      .main-content {
        margin-left: 0;
        padding-bottom: var(--nav-height);
      }
      
      .mobile-only {
        display: block;
      }
      
      .desktop-only {
        display: none;
      }
    }

    /* Tablet/Desktop Styles */
    @media (min-width: 768px) {
      .desktop-nav {
        display: block;
      }
      
      .main-content {
        margin-left: 260px;
        min-height: 100vh;
        background: var(--bg);
      }
      
      .bottom-nav {
        display: none !important;
      }
      
      .mobile-only {
        display: none;
      }
      
      .fab-nav-wrap {
        display: none !important;
      }
      
      .desktop-only {
        display: block;
      }
      
      .top-header {
        position: sticky;
        top: 0;
        z-index: 90;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        padding: 0 24px;
        height: 70px;
        display: flex;
        align-items: center;
        justify-content: space-between;
      }
      
      .header-search {
        max-width: 400px;
        margin: 0 auto;
        width: 100%;
      }
      
      .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 24px;
      }
      
      .stores-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
      }
    }

    @media (min-width: 1024px) {
      .stores-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
      }
    }

    .site-flag-stripe {
      display: flex;
      height: 3px;
      width: 100%;
    }
    .site-flag-stripe > span { flex: 1; }

    .category-chip-row {
      display: flex;
      gap: 8px;
      overflow-x: auto;
      padding: 10px 16px 12px;
      background: var(--surface);
      border-bottom: 1px solid var(--border);
      scrollbar-width: none;
    }
    .category-chip-row::-webkit-scrollbar { display: none; }

    .category-chip {
      flex: 0 0 auto;
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 8px 15px;
      border-radius: 999px;
      border: 1.5px solid var(--border);
      background: var(--surface);
      color: var(--text);
      font-size: 12.5px;
      font-weight: 600;
      white-space: nowrap;
      text-decoration: none;
      cursor: pointer;
      transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
    }
    .category-chip i { font-size: 13px; }
    .category-chip:hover { border-color: var(--gold); color: var(--primary); }
    .category-chip.active {
      background: var(--primary);
      border-color: var(--primary);
      color: #fff;
    }

    @media (min-width: 768px) {
      .category-chip-row { padding: 10px 24px 14px; }
    }

    /* Top Header - UPDATED with hamburger menu */
    .top-header {
      background: var(--surface);
      padding: 12px 16px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      border-bottom: 1px solid var(--border);
      box-shadow: 0 1px 0 rgba(15,23,42,0.02), 0 4px 16px -12px rgba(15,23,42,0.15);
      position: static;
      top: 0;
      z-index: 90;
      transition: transform 0.3s ease;
    }

    .top-header.header-hidden {
      transform: translateY(-100%);
    }

    .header-logo {
      font-family: var(--font-serif);
      font-size: 19px;
      font-weight: 800;
      color: var(--primary);
      display: flex;
      align-items: center;
      gap: 8px;
      letter-spacing: -0.01em;
    }

    .header-logo span {
      color: var(--gold);
    }

    .header-search {
      position: relative;
      flex: 1;
      min-width: 0;
      margin-right: 12px;
      display: flex !important;
      align-items: center;
    }

    .header-search input {
      width: 100%;
      padding: 11px 46px 11px 40px;
      border: 1.5px solid var(--border);
      border-radius: 30px;
      font-size: 14px;
      background: var(--surface2);
      color: var(--text);
      transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    }

    .header-search .search-icon {
      position: absolute;
      left: 15px;
      top: 50%;
      transform: translateY(-50%);
      color: var(--text-muted);
      font-size: 14px;
      pointer-events: none;
      z-index: 1;
    }

    .header-search-btn {
      position: absolute;
      right: 5px;
      top: 50%;
      transform: translateY(-50%);
      width: 32px;
      height: 32px;
      border-radius: 50%;
      border: none;
      background: var(--primary);
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      cursor: pointer;
      transition: background 0.2s, transform 0.15s;
    }
    .header-search-btn:hover { background: var(--primary-hover, #1e293b); }
    .header-search-btn:active { transform: translateY(-50%) scale(0.94); }

    .header-actions {
      display: flex;
      gap: 8px;
      align-items: center;
    }

    #smart-search-dropdown {
      position: absolute;
      top: calc(100% + 6px);
      left: 0;
      right: 0;
      background: #fff;
      border-radius: 16px;
      box-shadow: 0 8px 32px rgba(15,23,42,0.14), 0 2px 8px rgba(15,23,42,0.06);
      border: 1px solid var(--border);
      z-index: 9999;
      overflow: hidden;
      display: none;
      max-height: 480px;
      overflow-y: auto;
      scrollbar-width: thin;
      animation: ssd-in 0.18s cubic-bezier(0.34,1.56,0.64,1) both;
    }

    #smart-search-dropdown::-webkit-scrollbar { width: 4px; }
    #smart-search-dropdown::-webkit-scrollbar-track { background: transparent; }
    #smart-search-dropdown::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

    #smart-search-dropdown.ssd-open { display: block; }

    @keyframes ssd-in {
      from { opacity: 0; transform: translateY(-6px) scale(0.98); }
      to   { opacity: 1; transform: translateY(0) scale(1); }
    }

    .ssd-section {
      padding: 12px 14px 4px;
    }

    .ssd-section-label {
      font-size: 10px;
      font-weight: 700;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 0.8px;
      margin-bottom: 6px;
    }

    .ssd-product-row {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 8px 6px;
      border-radius: 10px;
      cursor: pointer;
      transition: background 0.15s;
      text-decoration: none;
      color: var(--text);
    }

    .ssd-product-row:hover,
    .ssd-product-row.ssd-focused {
      background: var(--surface2);
    }

    .ssd-product-img {
      width: 42px;
      height: 42px;
      border-radius: 8px;
      object-fit: cover;
      background: var(--surface2);
      flex-shrink: 0;
      border: 1px solid var(--border);
    }

    .ssd-product-img-placeholder {
      width: 42px;
      height: 42px;
      border-radius: 8px;
      background: var(--surface2);
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--text-muted);
      font-size: 16px;
      border: 1px solid var(--border);
    }

    .ssd-product-info { flex: 1; min-width: 0; }

    .ssd-product-name {
      font-size: 13px;
      font-weight: 600;
      color: var(--text);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .ssd-product-meta {
      font-size: 11px;
      color: var(--text-muted);
      margin-top: 2px;
    }

    .ssd-product-price {
      font-size: 13px;
      font-weight: 700;
      color: var(--primary);
      white-space: nowrap;
      flex-shrink: 0;
    }

    .ssd-store-row {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 8px 6px;
      border-radius: 10px;
      cursor: pointer;
      transition: background 0.15s;
      text-decoration: none;
      color: var(--text);
    }

    .ssd-store-row:hover,
    .ssd-store-row.ssd-focused {
      background: var(--surface2);
    }

    .ssd-store-logo {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      object-fit: cover;
      background: var(--primary-light);
      flex-shrink: 0;
      border: 1px solid var(--border);
    }

    .ssd-store-logo-placeholder {
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: var(--primary-light);
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--primary);
      font-size: 14px;
    }

    .ssd-store-name {
      font-size: 13px;
      font-weight: 600;
    }

    .ssd-chips {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      padding: 4px 6px 8px;
    }

    .ssd-chip {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 5px 12px;
      border-radius: 20px;
      font-size: 12px;
      font-weight: 600;
      background: var(--surface2);
      color: var(--text);
      border: 1px solid var(--border);
      cursor: pointer;
      transition: background 0.15s, color 0.15s;
      white-space: nowrap;
    }

    .ssd-chip:hover,
    .ssd-chip.ssd-focused {
      background: var(--primary-light);
      color: var(--primary);
      border-color: var(--primary);
    }

    .ssd-chip i { font-size: 11px; }

    .ssd-recent-row {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 8px 6px;
      border-radius: 10px;
      cursor: pointer;
      color: var(--text);
      font-size: 13px;
      font-weight: 500;
      transition: background 0.15s;
    }

    .ssd-recent-row:hover,
    .ssd-recent-row.ssd-focused {
      background: var(--surface2);
    }

    .ssd-recent-row i { color: var(--text-muted); font-size: 13px; width: 16px; text-align: center; }

    .ssd-recent-del {
      margin-left: auto;
      background: none;
      border: none;
      color: var(--text-muted);
      font-size: 12px;
      cursor: pointer;
      padding: 4px 6px;
      border-radius: 6px;
      transition: background 0.15s;
    }

    .ssd-recent-del:hover { background: #fef2f2; color: #dc2626; }

    .ssd-clear-all {
      font-size: 11px;
      font-weight: 600;
      color: var(--text-muted);
      cursor: pointer;
      padding: 4px 6px;
      border-radius: 6px;
      display: inline-block;
      margin: 2px 6px 10px;
      transition: color 0.15s;
    }

    .ssd-clear-all:hover { color: #dc2626; }

    .ssd-divider {
      height: 1px;
      background: var(--border);
      margin: 4px 14px;
    }

    .ssd-did-you-mean {
      padding: 10px 14px;
      font-size: 13px;
      color: var(--text-muted);
      display: flex;
      align-items: center;
      gap: 6px;
      flex-wrap: wrap;
    }

    .ssd-did-you-mean a {
      color: var(--primary);
      font-weight: 700;
      text-decoration: underline;
      cursor: pointer;
    }

    .ssd-empty {
      padding: 20px 14px;
      text-align: center;
      color: var(--text-muted);
      font-size: 13px;
    }

    .ssd-empty i { font-size: 24px; margin-bottom: 8px; display: block; color: var(--border); }

    .ssd-loading {
      padding: 16px 14px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      color: var(--text-muted);
      font-size: 13px;
    }

    .ssd-spinner {
      width: 16px;
      height: 16px;
      border: 2px solid var(--border);
      border-top-color: var(--primary);
      border-radius: 50%;
      animation: ssd-spin 0.6s linear infinite;
    }

    @keyframes ssd-spin { to { transform: rotate(360deg); } }

    mark {
      background: transparent;
      color: var(--primary);
      font-weight: 700;
      padding: 0;
    }

    .ssd-see-all {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      padding: 12px 14px;
      font-size: 13px;
      font-weight: 600;
      color: var(--primary);
      border-top: 1px solid var(--border);
      cursor: pointer;
      transition: background 0.15s;
    }

    .ssd-see-all:hover { background: var(--surface2); }

    .header-search input:focus {
      outline: none;
      border-color: var(--gold);
      background: var(--surface);
      box-shadow: 0 0 0 3px rgba(201,162,74,0.18);
    }

    .hamburger-btn {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: var(--surface2);
      border: none;
      font-size: 18px;
      cursor: pointer;
      color: var(--text);
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.2s, color 0.2s;
      -webkit-tap-highlight-color: transparent;
    }

    .hamburger-btn:hover {
      background: #0f1115;
      color: #fff;
    }

    @media (min-width: 768px) {
      .hamburger-btn { display: none; }
    }

    .menu-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.65);
      backdrop-filter: blur(4px);
      -webkit-backdrop-filter: blur(4px);
      z-index: 999;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.35s ease;
    }

    .menu-overlay.active {
      opacity: 1;
      pointer-events: auto;
    }

    .side-menu {
      position: fixed;
      top: 0;
      left: 0;
      height: 100dvh;
      height: 100vh;
      width: 72%;
      max-width: 300px;
      background: rgba(255, 255, 255, 0.72);
      backdrop-filter: blur(20px) saturate(180%);
      -webkit-backdrop-filter: blur(20px) saturate(180%);
      z-index: 1000;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      transform: translateX(-100%);
      transition: transform 0.32s cubic-bezier(0.25, 0.46, 0.45, 0.94);
      will-change: transform;
      box-shadow: 4px 0 24px rgba(0,0,0,0.12);
    }

    .side-menu.active {
      transform: translateX(0);
    }

    .smenu-inner {
      flex: 1;
      overflow-y: auto;
      overflow-x: hidden;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
      padding-bottom: calc(24px + env(safe-area-inset-bottom));
    }

    .smenu-inner::-webkit-scrollbar { display: none; }

    .smenu-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 16px 16px 12px;
      border-bottom: 1px solid var(--border);
      flex-shrink: 0;
    }

    .smenu-logo {
      display: flex;
      align-items: center;
      gap: 10px;
      text-decoration: none;
    }

    .smenu-logo img {
      width: 34px;
      height: 34px;
      border-radius: 50%;
      object-fit: cover;
      flex-shrink: 0;
    }

    .smenu-logo-name {
      font-family: var(--font-serif);
      font-size: 18px;
      font-weight: 800;
      color: var(--text);
      letter-spacing: -0.3px;
    }

    .smenu-close {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: var(--surface2);
      border: none;
      color: var(--text-muted);
      font-size: 14px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: background 0.2s, color 0.2s;
      flex-shrink: 0;
      -webkit-tap-highlight-color: transparent;
    }

    .smenu-close:hover { background: var(--border); color: var(--text); }

    .smenu-user {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 14px 16px;
      border-bottom: 1px solid var(--border);
      background: var(--surface2);
    }

    .smenu-avatar {
      width: 42px;
      height: 42px;
      border-radius: 50%;
      background: var(--primary);
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 800;
      font-size: 16px;
      overflow: hidden;
      flex-shrink: 0;
      border: 2px solid var(--surface);
      box-shadow: 0 0 0 2px var(--gold);
    }

    .smenu-avatar img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .smenu-user-info { flex: 1; min-width: 0; }

    .smenu-user-name {
      font-size: 14px;
      font-weight: 700;
      color: var(--text);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      margin-bottom: 2px;
    }

    .smenu-user-role {
      display: flex;
      align-items: center;
      gap: 5px;
      font-size: 11px;
      color: var(--text-muted);
      font-weight: 500;
    }

    .smenu-user-role i { font-size: 10px; }

    .smenu-role-badge {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      font-size: 10px;
      font-weight: 700;
      padding: 2px 8px;
      border-radius: 20px;
      letter-spacing: 0.3px;
      text-transform: uppercase;
    }

    .smenu-role-badge.premium { background: #f3e8ff; color: #6d28d9; }
    .smenu-role-badge.standard { background: #e0f2fe; color: #0369a1; }
    .smenu-role-badge.basic { background: var(--surface2); color: var(--text-muted); }

    .smenu-guest {
      padding: 14px 16px;
      border-bottom: 1px solid var(--border);
      display: flex;
      gap: 8px;
    }

    .smenu-btn-login,
    .smenu-btn-signup {
      flex: 1;
      padding: 10px;
      border-radius: 10px;
      font-size: 13px;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.2s;
      text-align: center;
      -webkit-tap-highlight-color: transparent;
    }

    .smenu-btn-login {
      background: var(--surface2);
      color: var(--text);
      border: 1px solid var(--border);
    }

    .smenu-btn-login:hover { background: var(--border); }

    .smenu-btn-signup {
      background: var(--primary);
      color: #fff;
      border: none;
    }

    .smenu-btn-signup:hover { background: #1e293b; }

    .smenu-section-label {
      font-size: 10px;
      font-weight: 700;
      color: var(--text-muted);
      text-transform: uppercase;
      letter-spacing: 1px;
      padding: 14px 16px 6px;
    }

    .smenu-nav { padding: 4px 0; }

    .smenu-items { list-style: none; padding: 0; margin: 0; }

    .smenu-item { margin: 1px 8px; }

    .smenu-link {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 11px 12px;
      border-radius: 10px;
      color: var(--text-muted);
      font-weight: 500;
      font-size: 13px;
      text-decoration: none;
      transition: background 0.15s, color 0.15s;
      cursor: pointer;
      border: none;
      background: transparent;
      width: 100%;
      text-align: left;
      -webkit-tap-highlight-color: transparent;
    }

    .smenu-link i {
      width: 18px;
      font-size: 15px;
      flex-shrink: 0;
      text-align: center;
      color: var(--text-muted);
      transition: color 0.15s;
    }

    .smenu-link:hover {
      background: var(--bg);
      color: var(--text);
    }

    .smenu-link:hover i { color: var(--gold); }

    .smenu-link.smenu-active {
      background: var(--gold-light);
      color: var(--primary);
      font-weight: 700;
    }

    .smenu-link.smenu-active i { color: var(--gold); }

    .smenu-link-badge {
      margin-left: auto;
      background: #ff3b5c;
      color: #fff;
      font-size: 9px;
      font-weight: 700;
      padding: 2px 6px;
      border-radius: 20px;
      min-width: 18px;
      text-align: center;
    }

    .smenu-link-badge.blue { background: #0ea5e9; }

    .smenu-divider {
      height: 1px;
      background: var(--border);
      margin: 8px 8px;
    }

    .smenu-link.smenu-danger {
      color: #dc2626;
    }

    .smenu-link.smenu-danger i { color: #dc2626; }

    .smenu-link.smenu-danger:hover {
      background: #fef2f2;
      color: #b91c1c;
    }

    .icon-btn {
      background: none;
      border: none;
      font-size: 20px;
      cursor: pointer;
      color: var(--text-muted);
      position: relative;
      padding: 8px;
      border-radius: 50%;
      width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .icon-btn:hover {
      background: var(--surface2);
    }

    .badge {
      position: absolute;
      top: 0;
      right: 0;
      background: var(--primary);
      color: white;
      font-size: 10px;
      padding: 2px 5px;
      border-radius: 10px;
      min-width: 18px;
      height: 18px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    /* Floating Pill-style Bottom Navigation */
    .bottom-nav {
      position: fixed;
      bottom: calc(20px + env(safe-area-inset-bottom));
      left: 16px;
      right: 16px;
      background: rgba(255, 255, 255, 0.85);
      backdrop-filter: blur(16px) saturate(180%);
      -webkit-backdrop-filter: blur(16px) saturate(180%);
      display: flex;
      justify-content: space-around;
      align-items: center;
      padding: 10px 8px;
      border-radius: 36px;
      border: 1px solid rgba(226, 232, 240, 0.8);
      box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.12), 0 8px 16px -6px rgba(15, 23, 42, 0.08);
      z-index: 100;
      height: 72px;
      max-width: 500px;
      margin: 0 auto;
      transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    }

    .nav-item {
      background: none;
      border: none;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 5px;
      cursor: pointer;
      color: var(--text-muted);
      font-size: 11px;
      font-weight: 600;
      position: relative;
      flex: 1;
      text-decoration: none;
      transition: color 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
      height: 100%;
      border-radius: 20px;
    }

    .nav-item i {
      font-size: 20px;
      transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .nav-item.active {
      color: var(--primary);
    }

    .nav-item.active i {
      transform: translateY(-2px) scale(1.1);
    }

    .nav-item.active::after {
      content: '';
      position: absolute;
      bottom: 2px;
      width: 4px;
      height: 4px;
      background: var(--primary);
      border-radius: 50%;
    }

    .nav-badge {
      position: absolute;
      top: 4px;
      right: 22%;
      background: #ff3b5c;
      color: white;
      font-size: 9px;
      font-weight: 700;
      padding: 2px 5px;
      border-radius: 10px;
      min-width: 16px;
      height: 16px;
      display: flex;
      align-items: center;
      justify-content: center;
      border: 1.5px solid white;
      box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .nav-item-spacer {
      flex: 1;
      height: 100%;
    }

    .fab-nav-wrap {
      position: fixed;
      left: 50%;
      bottom: calc(20px + env(safe-area-inset-bottom));
      transform: translateX(-50%);
      width: 84px;
      height: 72px;
      z-index: 101;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: flex-end;
      pointer-events: none;
    }

    .fab-center-btn {
      position: absolute;
      top: -24px;
      left: 50%;
      transform: translateX(-50%);
      width: 56px;
      height: 56px;
      border-radius: 50%;
      border: none;
      background: linear-gradient(135deg, var(--primary), var(--secondary));
      color: #fff;
      font-size: 22px;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 10px 24px -6px rgba(15, 23, 42, 0.45), 0 4px 10px -2px rgba(15, 23, 42, 0.22);
      cursor: pointer;
      pointer-events: auto;
      text-decoration: none;
      -webkit-tap-highlight-color: transparent;
      transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
    }

    .fab-center-btn:hover {
      box-shadow: 0 14px 30px -6px rgba(15, 23, 42, 0.5), 0 6px 14px -2px rgba(15, 23, 42, 0.28);
    }

    .fab-center-btn:active {
      transform: translateX(-50%) scale(0.88);
    }

    .fab-center-label {
      display: block;
      max-width: 78px;
      margin-bottom: 8px;
      font-size: 10px;
      font-weight: 600;
      color: var(--text-muted);
      text-align: center;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      pointer-events: none;
    }

    @media (max-width: 360px) {
      .fab-center-label {
        font-size: 9px;
        max-width: 68px;
      }
    }

    /* Quick Actions */
    .quick-actions {
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin-bottom: 24px;
    }

    .quick-action-card {
      width: 100%;
      background: var(--surface);
      border-radius: 14px;
      padding: 14px 18px;
      display: flex;
      align-items: center;
      gap: 14px;
      box-shadow: var(--shadow-sm);
      transition: all 0.2s;
      cursor: pointer;
    }

    .quick-action-card:hover {
      transform: translateY(-2px);
      box-shadow: var(--shadow);
    }

    .quick-action-card-vendor {
      background: #e5e7eb;
    }

    .quick-action-card-vendor .quick-action-icon {
      background: #d1d5db;
      color: #4b5563;
    }

    .quick-action-icon {
      width: 38px;
      height: 38px;
      border-radius: 10px;
      background: var(--primary-light);
      color: var(--primary);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 17px;
      flex-shrink: 0;
    }

    .quick-action-content {
      display: flex;
      align-items: baseline;
      gap: 8px;
      flex-wrap: wrap;
    }

    .quick-action-content h4 {
      font-size: 14px;
      font-weight: 700;
      white-space: nowrap;
    }

    .quick-action-content p {
      font-size: 12px;
      color: var(--text-muted);
      white-space: nowrap;
    }

    /* Filter Dropdown Styles - now lives in header */
    .filter-dropdown-container {
      position: relative;
      display: inline-block;
    }

    /* Superseded by .category-chip-row below the header — hidden but left in the
       DOM (rather than removed) because app-script.php sets its inline display
       style unconditionally on load and isn't null-guarded. */
    #filterContainer { display: none !important; }
    
    .filter-btn {
      background: var(--surface2);
      border: 1px solid var(--border);
      border-radius: 30px;
      padding: 9px 14px;
      font-size: 13px;
      font-weight: 600;
      color: var(--text);
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      transition: all 0.2s;
      white-space: nowrap;
    }
    
    .filter-btn:hover {
      background: var(--primary-light);
      border-color: var(--primary);
    }

    @media (max-width: 480px) {
      .filter-btn {
        padding: 0;
        width: 40px;
        height: 40px;
        justify-content: center;
        border-radius: 50%;
      }
      .filter-btn-label,
      .filter-btn .ph-caret-down {
        display: none;
      }
    }
    
    .filter-dropdown {
      position: absolute;
      top: 100%;
      right: 0;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      box-shadow: var(--shadow);
      min-width: 180px;
      z-index: 1000;
      display: none;
      margin-top: 8px;
      overflow: hidden;
    }
    
    .filter-dropdown.open {
      display: block;
    }
    
    .filter-dropdown-item {
      padding: 12px 16px;
      cursor: pointer;
      transition: background 0.2s;
      font-size: 14px;
      border-bottom: 1px solid var(--border);
    }
    
    .filter-dropdown-item:last-child {
      border-bottom: none;
    }
    
    .filter-dropdown-item:hover {
      background: var(--primary-light);
    }
    
    .filter-dropdown-item.active {
      background: var(--primary-light);
      color: var(--primary);
      font-weight: 600;
    }
    
    /* Category Grid - Hidden */
    .category-grid {
      display: none;
    }

    /* Browse by Category - horizontal chips built live from whatever categories vendors are using */
    .browse-categories {
      display: flex;
      gap: 16px;
      overflow-x: auto;
      padding: 4px 2px 16px;
      margin-bottom: 8px;
      scrollbar-width: none;
    }

    .browse-categories::-webkit-scrollbar {
      display: none;
    }

    .category-chip {
      flex: 0 0 auto;
      width: 72px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 8px;
      cursor: pointer;
      text-align: center;
      background: none;
      border: none;
    }

    .category-chip-icon {
      width: 56px;
      height: 56px;
      border-radius: 50%;
      background: var(--primary-light);
      color: var(--primary);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 22px;
      transition: transform 0.2s;
    }

    .category-chip:hover .category-chip-icon {
      transform: translateY(-3px);
    }

    .category-chip-label {
      font-size: 11px;
      font-weight: 600;
      color: var(--text);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 72px;
    }

    /* Browse by Category - simplified to a single button, no icons */
    .browse-categories-simple {
      margin-bottom: 20px;
    }

    .view-all-categories-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 10px 18px;
      border-radius: 999px;
      background: var(--primary-light, #f1f5f9);
      color: var(--primary, #0f172a);
      font-size: 13px;
      font-weight: 600;
      text-decoration: none;
    }

    /* Welcome Banner */
    .welcome-banner {
      background: linear-gradient(135deg, var(--primary), #0a0a0a);
      border-radius: var(--radius);
      padding: 30px;
      color: white;
      margin-bottom: 24px;
      position: relative;
      overflow: hidden;
    }

    .welcome-banner::before {
      content: '';
      position: absolute;
      top: -50px;
      right: -50px;
      width: 200px;
      height: 200px;
      background: rgba(255,255,255,0.1);
      border-radius: 50%;
    }

    .welcome-banner h1 {
      font-size: 24px;
      font-weight: 800;
      margin-bottom: 8px;
    }

    .welcome-banner p {
      font-size: 14px;
      opacity: 0.9;
      margin-bottom: 20px;
      max-width: 400px;
    }

    .welcome-banner .btn {
      background: white;
      color: var(--primary);
      border: none;
      padding: 10px 24px;
      font-size: 14px;
      border-radius: 30px;
      font-weight: 600;
    }

    /* Hero Slider */
    .hero-slider-wrap {
      position: relative;
      border-radius: var(--radius);
      overflow: hidden;
      margin-bottom: 24px;
      box-shadow: var(--shadow);
    }

    .hero-slider-track {
      display: flex;
      transition: transform 0.5s ease;
    }

    .hero-slide {
      position: relative;
      flex: 0 0 100%;
      height: 220px;
    }

    .hero-slide img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .hero-slide::after {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(180deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.55) 100%);
    }

    .hero-slide-content {
      position: absolute;
      left: 18px;
      bottom: 14px;
      right: 18px;
      z-index: 2;
      color: #fff;
    }

    .hero-slide-content h2 {
      font-size: 15px;
      font-weight: 800;
      line-height: 1.25;
      margin-bottom: 8px;
      max-width: 260px;
    }

    .hero-slide-content .btn {
      background: var(--primary);
      color: #fff;
      border: none;
      padding: 7px 14px;
      font-size: 11.5px;
      font-weight: 600;
      border-radius: 30px;
      display: inline-flex;
      align-items: center;
      gap: 6px;
      cursor: pointer;
    }

    .hero-dots {
      position: absolute;
      bottom: 10px;
      left: 0;
      right: 0;
      display: flex;
      justify-content: center;
      gap: 6px;
      z-index: 2;
    }

    .hero-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: rgba(255,255,255,0.5);
      cursor: pointer;
      transition: all 0.2s;
    }

    .hero-dot.active {
      width: 18px;
      border-radius: 4px;
      background: #fff;
    }

    @media (max-width: 480px) {
      .hero-slide { height: 180px; }
      .hero-slide-content h2 { font-size: 15px; max-width: 200px; }
      cursor: pointer;
    }

    /* Product Grid - Mobile First 2-column layout */
    .product-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 2px;
      padding: 10px 0;
    }

    /* Product Card */
    .product-card {
      background: #FFFFFF;
      border-radius: var(--radius);
      overflow: hidden;
      box-shadow: none;
      transition: transform 0.2s ease;
      cursor: pointer;
      position: relative;
      z-index: 1;
      padding: 10px;
      display: flex;
      flex-direction: column;
      border: none;
    }

    .product-card:hover {
      transform: translateY(-4px);
    }

    .product-card:active {
      transform: scale(0.98);
    }

    .product-img-wrap {
      position: relative;
      aspect-ratio: 1;
      background: var(--surface2);
      width: 100%;
      overflow: hidden;
      border-radius: 10px;
    }

    .product-img-wrap img {
      width: 100%;
      height: 140px;
      object-fit: cover;
      border-radius: 10px;
      transition: transform 0.3s ease;
    }

    .product-card:hover .product-img-wrap img {
      transform: scale(1.04);
    }

    .product-badge {
      position: absolute;
      top: 8px;
      left: 8px;
      background: #ff3b5c;
      color: white;
      padding: 4px 8px;
      border-radius: 20px;
      font-size: 10px;
      font-weight: 700;
      z-index: 2;
    }
    
    .product-boost-badge {
      position: absolute;
      top: 8px;
      right: 40px;
      background: #FFB800;
      color: white;
      padding: 4px 8px;
      border-radius: 20px;
      font-size: 10px;
      font-weight: 700;
      z-index: 2;
      display: flex;
      align-items: center;
      gap: 4px;
    }

    .product-fav-btn {
      position: absolute;
      top: 8px;
      right: 8px;
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: rgba(255,255,255,0.9);
      border: none;
      font-size: 16px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 2px 4px rgba(0,0,0,0.1);
      z-index: 2;
    }

    .product-fav-btn.active {
      color: #ff3b5c;
    }

    .product-tag-badge {
      position: absolute;
      bottom: 8px;
      left: 8px;
      background: rgba(15,23,42,0.85);
      color: white;
      padding: 3px 8px;
      border-radius: 20px;
      font-size: 9px;
      font-weight: 700;
      z-index: 2;
      text-transform: uppercase;
      letter-spacing: 0.02em;
    }

    .product-condition-row {
      display: flex;
      align-items: center;
      gap: 4px;
      flex-wrap: wrap;
      font-size: 10px;
      color: var(--text-muted);
      margin-top: 2px;
    }

    .product-condition-chip {
      background: var(--surface2);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 1px 6px;
      font-weight: 600;
    }

    .product-info {
      padding: 12px 0 0;
    }

    .product-name {
      font-size: 14px;
      font-weight: 600;
      margin-bottom: 4px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      display: flex;
      align-items: center;
      gap: 4px;
    }

    .product-price-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-top: 8px;
    }

    .product-price {
      font-size: 16px;
      font-weight: 700;
      color: var(--primary);
    }

    .product-original-price {
      font-size: 11px;
      color: var(--text-muted);
      text-decoration: line-through;
      margin-left: 4px;
    }

    .add-to-cart-btn {
      width: 32px;
      height: 32px;
      border-radius: 8px;
      background: var(--primary);
      color: white;
      border: none;
      font-size: 14px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 2;
      position: relative;
    }

    .add-to-cart-btn:hover {
      background: #0b0b4c;
    }

    /* Store Card - SMALLER VERSION */
    .stores-grid {
      display: grid;
      gap: 12px;
      margin: 16px 0;
    }

    .store-card {
      background: var(--surface);
      border-radius: 12px;
      padding: 12px;
      box-shadow: var(--shadow-sm);
      cursor: pointer;
      transition: all 0.2s;
    }

    .store-card:hover {
      transform: translateY(-2px);
      box-shadow: var(--shadow);
    }

    .store-header {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 8px;
    }

    .store-avatar {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: var(--primary);
      color: white;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      font-weight: 700;
      overflow: hidden;
      flex-shrink: 0;
    }

    .store-avatar img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .store-info {
      flex: 1;
      min-width: 0;
    }

    .store-name-row {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 4px;
      margin-bottom: 2px;
    }

    .store-info h3 {
      font-size: 14px;
      font-weight: 700;
      margin: 0;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .store-meta {
      display: flex;
      gap: 6px;
      font-size: 10px;
      color: var(--text-muted);
    }

    .store-stats {
      display: flex;
      gap: 12px;
      margin: 8px 0;
      padding: 6px 0;
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
    }

    .store-stat {
      text-align: center;
      flex: 1;
    }

    .store-stat-value {
      font-size: 14px;
      font-weight: 700;
      color: var(--primary);
    }

    .store-stat-label {
      font-size: 9px;
      color: var(--text-muted);
      text-transform: uppercase;
    }

    .follow-btn {
      width: 100%;
      padding: 6px;
      background: var(--primary);
      color: white;
      border: none;
      border-radius: 8px;
      font-size: 11px;
      font-weight: 600;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 5px;
      transition: all 0.2s;
    }

    .follow-btn.following {
      background: var(--surface2);
      color: var(--text);
      border: 1px solid var(--border);
    }

    .follow-count {
      background: rgba(255,255,255,0.2);
      padding: 1px 4px;
      border-radius: 10px;
      font-size: 9px;
      margin-left: 4px;
    }

    .following .follow-count {
      background: var(--primary-light);
      color: var(--primary);
    }

    /* Section Header */
    .section-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin: 20px 0 12px;
    }

    .section-title {
      font-size: 18px;
      font-weight: 800;
    }

    .section-link {
      color: var(--primary);
      font-size: 12px;
      font-weight: 600;
      text-decoration: none;
      display: flex;
      align-items: center;
      gap: 4px;
    }

    /* Empty State */
    .empty-state {
      text-align: center;
      padding: 60px 20px;
      background: var(--surface);
      border-radius: var(--radius);
      margin: 40px 0;
    }

    .empty-icon {
      font-size: 48px;
      margin-bottom: 16px;
      opacity: 0.5;
    }

    .empty-title {
      font-size: 18px;
      font-weight: 700;
      margin-bottom: 8px;
    }

    .empty-text {
      font-size: 14px;
      color: var(--text-muted);
    }

    /* Toast */
    .toast-container {
      position: fixed;
      bottom: 80px;
      left: 16px;
      right: 16px;
      z-index: 9999;
      display: flex;
      flex-direction: column;
      gap: 8px;
      pointer-events: none;
      max-width: 400px;
      margin: 0 auto;
    }

    @media (min-width: 768px) {
      .toast-container {
        bottom: 30px;
        right: 30px;
        left: auto;
      }
    }

    .toast {
      background: var(--primary);
      color: #ffffff;
      padding: 10px 18px 10px 14px;
      border-radius: 999px;
      box-shadow: 0 6px 20px rgba(0,0,0,0.18);
      font-size: 13.5px;
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 8px;
      animation: slideUp 0.2s ease;
      width: fit-content;
      margin: 0 auto;
    }

    .toast i {
      font-size: 15px;
      width: 20px;
      height: 20px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      background: rgba(255,255,255,0.18);
      flex-shrink: 0;
    }

    .toast.success i { color: #4ade80; }

    .toast.warning {
      background: var(--warning);
      color: var(--text);
    }

    .toast.warning i { background: rgba(0,0,0,0.1); }

    .toast.error {
      background: var(--danger);
    }

    @keyframes slideUp {
      from {
        opacity: 0;
        transform: translateY(20px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    /* Product Detail Modal */
    .product-detail {
      display: none;
      position: fixed;
      inset: 0;
      background: var(--surface);
      z-index: 2000;
      overflow-y: auto;
    }

    .product-detail.open {
      display: block;
    }

    .loading-screen {
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: 100vh;
    }

    .spinner {
      width: 40px;
      height: 40px;
      border: 3px solid var(--surface2);
      border-top-color: var(--primary);
      border-radius: 50%;
      animation: spin 1s linear infinite;
    }

    @keyframes spin {
      to { transform: rotate(360deg); }
    }

    .back-btn {
      position: fixed;
      top: 16px;
      left: 16px;
      width: 44px;
      height: 44px;
      border-radius: 50%;
      background: var(--surface);
      border: none;
      font-size: 20px;
      cursor: pointer;
      box-shadow: var(--shadow);
      z-index: 2001;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    /* Modal Overlay */
    .modal-overlay {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.5);
      z-index: 2100;
      align-items: flex-end;
      backdrop-filter: blur(4px);
    }

    @media (min-width: 768px) {
      .modal-overlay {
        align-items: center;
        justify-content: center;
      }
    }

    .modal-overlay.open {
      display: flex;
    }

    .modal {
      background: var(--surface);
      border-radius: 24px 24px 0 0;
      padding: 20px;
      width: 100%;
      max-height: 90vh;
      overflow-y: auto;
      animation: slideUp 0.3s ease;
    }

    @media (min-width: 768px) {
      .modal {
        border-radius: 24px;
        max-width: 500px;
        max-height: 80vh;
        animation: fadeIn 0.3s ease;
      }
    }

    .modal-handle {
      width: 40px;
      height: 4px;
      background: #e0e0e0;
      border-radius: 2px;
      margin: 0 auto 20px;
    }

    @media (min-width: 768px) {
      .modal-handle {
        display: none;
      }
    }

    .modal-title {
      font-size: 20px;
      font-weight: 800;
    }

    /* Image Viewer */
    .image-viewer-modal {
      display: none;
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.95);
      z-index: 2500;
      align-items: center;
      justify-content: center;
    }

    .image-viewer-modal.open {
      display: flex;
    }

    .viewer-image {
      max-width: 90%;
      max-height: 90%;
      object-fit: contain;
    }

    .close-viewer {
      position: absolute;
      top: 20px;
      right: 20px;
      background: var(--surface);
      border: none;
      border-radius: 50%;
      width: 50px;
      height: 50px;
      font-size: 24px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: var(--shadow);
      z-index: 2501;
    }

    /* Form Elements */
    .form-group {
      margin-bottom: 16px;
    }

    .form-label {
      display: block;
      font-size: 13px;
      font-weight: 600;
      margin-bottom: 6px;
      color: var(--text);
    }

    .form-input, .form-select, .form-textarea {
      width: 100%;
      padding: 12px;
      border: 1px solid var(--border);
      border-radius: 10px;
      font-size: 14px;
      transition: all 0.2s;
      font-family: inherit;
    }

    .form-input:focus, .form-select:focus, .form-textarea:focus {
      outline: none;
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
    }

    .btn {
      padding: 12px 20px;
      border: none;
      border-radius: 12px;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s ease;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
    }

    .btn-primary {
      background: var(--primary);
      color: white;
    }

    .btn-primary:hover {
      background: #1e293b;
    }

    .btn-secondary {
      background: var(--surface2);
      color: var(--text);
      border: 1px solid var(--border);
    }

    .btn-full {
      width: 100%;
    }

    /* Rating Stars */
    .rating-selector i {
      transition: all 0.2s;
    }

    .rating-selector i:hover {
      transform: scale(1.2);
    }

    /* Store Info Card in Product Detail */
    .store-info-card {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 16px;
      background: var(--surface2);
      border-radius: 12px;
      margin: 16px 0;
      cursor: pointer;
      transition: all 0.2s;
      border: 1px solid var(--border);
    }

    .store-info-card:hover {
      background: var(--primary-light);
      transform: translateX(4px);
    }

    .store-avatar-small {
      width: 50px;
      height: 50px;
      border-radius: 50%;
      background: var(--primary);
      color: white;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 20px;
      font-weight: 700;
      overflow: hidden;
      flex-shrink: 0;
    }

    .store-avatar-small img {
      width: 100%;
      height: 100%;
      border-radius: 50%;
      object-fit: cover;
    }

    /* Page visibility */
    .page-container {
      display: none;
    }

    .page-container.active {
      display: block;
    }

    /* Cart items */
    .cart-item {
      display: flex;
      gap: 12px;
      background: white;
      border-radius: 12px;
      padding: 12px;
      margin-bottom: 10px;
    }

    /* Loading states */
    .loading {
      text-align: center;
      padding: 40px;
      color: var(--text-muted);
    }

    /* Auth Modal Styles */
    .auth-tabs {
      display: flex;
      gap: 8px;
      margin-bottom: 24px;
      background: var(--surface2);
      padding: 4px;
      border-radius: 12px;
    }

    .auth-tab {
      flex: 1;
      padding: 12px;
      border: none;
      background: transparent;
      border-radius: 9px;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s;
      color: var(--text-muted);
    }

    .auth-tab.active {
      background: var(--surface);
      color: var(--primary);
      box-shadow: var(--shadow-sm);
    }

    .password-input {
      position: relative;
    }

    .password-toggle {
      position: absolute;
      right: 12px;
      top: 50%;
      transform: translateY(-50%);
      background: none;
      border: none;
      color: var(--text-muted);
      cursor: pointer;
      padding: 4px;
    }

    .password-toggle:hover {
      color: var(--primary);
    }

    .auth-error {
      color: #ff3b5c;
      font-size: 13px;
      margin-top: 8px;
      text-align: center;
    }

    /* Modernized Auth Modal */
    #auth-modal .modal {
      position: relative;
      padding: 32px 24px 28px;
      border-radius: 28px 28px 0 0;
    }

    @media (min-width: 768px) {
      #auth-modal .modal {
        max-width: 480px;
        max-height: 92vh;
        border-radius: 28px;
        padding: 40px 40px 36px;
      }
    }

    .auth-modal-close {
      position: absolute;
      top: 16px;
      right: 16px;
      background: var(--surface2, #f1f5f9);
      border: none;
      border-radius: 50%;
      width: 36px;
      height: 36px;
      font-size: 13px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--text-muted);
      z-index: 2;
      transition: background 0.2s;
    }

    .auth-modal-close:hover {
      background: var(--border);
    }

    .auth-modal-header {
      text-align: center;
      margin-bottom: 24px;
    }

    .auth-modal-logo {
      width: 64px;
      height: 64px;
      border-radius: 18px;
      object-fit: cover;
      margin: 0 auto 16px;
      box-shadow: var(--shadow);
      display: block;
    }

    .auth-modal-header .modal-title {
      font-size: 22px;
      margin-bottom: 6px;
    }

    .auth-modal-subtitle {
      font-size: 13px;
      color: var(--text-muted);
      margin: 0;
    }

    #auth-modal .auth-tabs {
      padding: 5px;
      border-radius: 14px;
      margin-bottom: 22px;
    }

    #auth-modal .auth-tab {
      padding: 13px;
      border-radius: 10px;
    }

    #auth-modal .form-group {
      margin-bottom: 18px;
    }

    #auth-modal .form-input {
      border-radius: 14px;
      padding: 13px 14px;
      border: 1.5px solid var(--border);
      background: var(--surface2, #f8fafc);
      font-size: 14px;
    }

    #auth-modal .form-input:focus {
      border-color: var(--primary);
      background: var(--surface);
      box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.06);
    }

    #auth-modal .btn-primary.btn-full {
      padding: 15px;
      border-radius: 14px;
      font-size: 15px;
      margin-top: 6px;
      box-shadow: var(--shadow);
    }

    #auth-modal .two-col {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }

    @media (max-width: 380px) {
      #auth-modal .two-col {
        grid-template-columns: 1fr;
      }
    }

    /* Verification Notice */
    .verify-notice {
      background: var(--bg);
      color: var(--text);
      padding: 12px;
      border-radius: 8px;
      margin-bottom: 16px;
      text-align: center;
      font-size: 14px;
      border-left: 4px solid var(--gold);
    }
    
    /* Contact Info for Premium/Basic/Standard */
    .contact-info {
      margin: 15px 0;
      padding: 12px;
      background: var(--surface2);
      border-radius: 8px;
      font-size: 13px;
      color: #0f172a;
    }
    
    .contact-info i {
      color: var(--primary);
      margin-right: 8px;
    }
    
    .chat-only {
      background: #fef2f2;
      color: #151515;
      padding: 8px 12px;
      border-radius: 8px;
      font-size: 12px;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    
    /* Avatar styles */
    .desktop-nav-avatar {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: var(--primary);
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-weight: 700;
      font-size: 16px;
      overflow: hidden;
      box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--gold);
    }

    /* Session heartbeat indicator (hidden) */
    #session-heartbeat {
      display: none;
    }

    /* Pagination Styles */
    .pagination {
      display: flex;
      justify-content: center;
      gap: 5px;
      margin: 30px 0;
      flex-wrap: wrap;
    }

    .pagination a {
      padding: 8px 12px;
      background: var(--surface);
      border-radius: 8px;
      text-decoration: none;
      color: var(--text);
      font-size: 14px;
      font-weight: 500;
      transition: all 0.2s;
      border: 1px solid var(--border);
    }

    .pagination a:hover {
      background: var(--primary-light);
      color: var(--primary);
    }

    .pagination a.active {
      background: var(--primary);
      color: white;
      border-color: var(--primary);
    }

    .pagination a.disabled {
      opacity: 0.5;
      pointer-events: none;
      cursor: not-allowed;
    }

    /* Infinite scroll - shop grid */
    .shop-scroll-sentinel {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 24px 0 8px;
      min-height: 40px;
    }

    .shop-scroll-sentinel .load-more-spinner {
      display: none;
      align-items: center;
      gap: 8px;
      color: var(--text-muted);
      font-size: 13px;
      font-weight: 600;
    }

    .shop-scroll-sentinel.loading .load-more-spinner {
      display: flex;
    }

    .shop-scroll-sentinel .load-more-spinner i {
      animation: shop-spin 0.8s linear infinite;
      color: var(--primary);
    }

    @keyframes shop-spin {
      to { transform: rotate(360deg); }
    }

    .shop-scroll-sentinel .load-more-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 10px 20px;
      border-radius: var(--radius-sm);
      background: var(--surface);
      border: 1px solid var(--border);
      color: var(--text);
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s;
    }

    .shop-scroll-sentinel.loading .load-more-btn {
      display: none;
    }

    .shop-scroll-sentinel .load-more-btn:hover {
      background: var(--primary-light);
      color: var(--primary);
    }

    .shop-scroll-sentinel .end-of-list {
      display: none;
      color: var(--text-muted);
      font-size: 12px;
      font-weight: 500;
      text-align: center;
    }

    .shop-scroll-sentinel.end .load-more-btn,
    .shop-scroll-sentinel.end .load-more-spinner {
      display: none;
    }

    .shop-scroll-sentinel.end .end-of-list {
      display: block;
    }

    /* Discount badge */
    .discount-badge {
      position: absolute;
      top: 8px;
      right: 8px;
      background: #ff3b5c;
      color: white;
      padding: 4px 8px;
      border-radius: 20px;
      font-size: 11px;
      font-weight: 700;
      z-index: 2;
    }

    /* Responsive breakpoints for product grid */
    @media (min-width: 768px) {
      .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2px;
      }
    }

    @media (min-width: 1024px) {
      .product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2px;
      }
    }

    /* Notification Badge Styles */
    .notification-link {
      position: relative;
      display: inline-block;
      padding: 8px 12px;
      color: inherit;
      text-decoration: none;
    }

    .notification-badge {
      position: absolute;
      top: 0;
      right: 0;
      background: #ff3b5c;
      color: white;
      font-size: 9px;
      font-weight: 600;
      min-width: 18px;
      height: 18px;
      border-radius: 9px;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0 4px;
      border: 2px solid white;
    }

    .nav-item .notification-badge {
      top: -5px;
      right: 20%;
      min-width: 16px;
      height: 16px;
      font-size: 8px;
    }

    .desktop-nav-link .notification-badge {
      margin-left: auto;
      background: #ff3b5c;
      color: white;
      padding: 2px 6px;
      border-radius: 12px;
      font-size: 9px;
      font-weight: 600;
      position: static;
      border: none;
    }

    /* Fix for menu notification badge */
    .menu-link .notification-badge {
      margin-left: auto;
      background: #ff3b5c;
      color: white;
      padding: 2px 6px;
      border-radius: 12px;
      font-size: 9px;
      font-weight: 600;
      position: static;
      border: none;
    }

    /* Profile Section Styles */
    .profile-avatar {
      width: 80px;
      height: 80px;
      border-radius: 50%;
      background: #0f172a;
      margin: 0 auto 16px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-size: 32px;
      font-weight: 700;
      overflow: hidden;
    }

    .profile-avatar img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .profile-name {
      font-size: 20px;
      font-weight: 800;
      text-align: center;
      margin-bottom: 4px;
    }

    .profile-email {
      color: #6b7280;
      text-align: center;
      margin-bottom: 8px;
      font-size: 14px;
    }

    .profile-badge {
      display: inline-block;
      padding: 4px 12px;
      background: var(--primary-light);
      color: var(--primary);
      border-radius: 30px;
      font-size: 12px;
      font-weight: 600;
      margin: 0 auto;
      width: fit-content;
    }

    /* View All Stores Button - SMALLER */
    .view-all-container {
      text-align: center;
      margin: 20px 0 30px;
    }

    .view-all-btn {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 24px;
      background: var(--primary);
      color: white;
      border: none;
      border-radius: 30px;
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s;
      text-decoration: none;
    }

    .view-all-btn:hover {
      background: var(--primary-dark);
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

    .view-all-btn:active {
      transform: translateY(0);
    }

    .view-all-btn i {
      font-size: 12px;
    }

    /* PWA Install Styles */
    .android-install-banner {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      background: rgba(15, 23, 42, 0.95);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border-bottom: 2px solid var(--primary);
      box-shadow: 0 4px 30px rgba(0,0,0,0.3);
      z-index: 1000000;
      padding: 12px 16px;
      display: none;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    @keyframes slideDown {
      from { transform: translateY(-100%); opacity: 0; }
      to { transform: translateY(0); opacity: 1; }
    }
    
    .install-banner-info {
      display: flex;
      align-items: center;
      gap: 12px;
      flex: 1;
    }
    
    .install-banner-logo {
      width: 40px;
      height: 40px;
      border-radius: 10px;
      object-fit: cover;
      border: 1px solid rgba(255,255,255,0.1);
    }
    
    .install-banner-text h4 {
      color: white;
      font-size: 14px;
      font-weight: 700;
      margin: 0 0 2px 0;
    }
    
    .install-banner-text p {
      color: #94a3b8;
      font-size: 12px;
      margin: 0;
    }
    
    .install-banner-actions {
      display: flex;
      align-items: center;
      gap: 8px;
    }
    
    .install-banner-btn {
      background: var(--primary);
      color: white;
      border: none;
      padding: 8px 16px;
      border-radius: 8px;
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      white-space: nowrap;
      transition: all 0.2s;
    }
    
    .install-banner-btn:hover {
      background: var(--primary-dark);
      transform: translateY(-1px);
    }
    
    .install-banner-close {
      background: transparent;
      border: none;
      color: #94a3b8;
      width: 32px;
      height: 32px;
      border-radius: 50%;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s;
    }
    
    .install-banner-close:hover {
      background: rgba(255,255,255,0.1);
      color: white;
    }

    /* iOS Install Modal Styles */
    .ios-install-overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0,0,0,0.6);
      backdrop-filter: blur(5px);
      -webkit-backdrop-filter: blur(5px);
      z-index: 1000001;
      display: none;
      align-items: center;
      justify-content: center;
      pointer-events: none;
      opacity: 0;
      transition: opacity 0.3s ease;
    }
    
    .ios-install-overlay.open {
      display: flex;
      pointer-events: all;
      opacity: 1;
    }
    
    .ios-install-modal {
      background: var(--surface);
      border-radius: 24px;
      max-width: 380px;
      width: 90%;
      box-shadow: 0 20px 40px rgba(0,0,0,0.3);
      padding: 24px;
      animation: scaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
      border: 1px solid var(--border);
    }
    
    .ios-install-header {
      display: flex;
      align-items: center;
      gap: 14px;
      margin-bottom: 20px;
      border-bottom: 1px solid var(--border);
      padding-bottom: 16px;
    }
    
    .ios-install-logo {
      width: 50px;
      height: 50px;
      border-radius: 12px;
      object-fit: cover;
    }
    
    .ios-install-title h3 {
      font-size: 16px;
      font-weight: 800;
      color: var(--text);
      margin: 0 0 2px 0;
    }
    
    .ios-install-title p {
      font-size: 12px;
      color: var(--text-muted);
      margin: 0;
    }
    
    .ios-step-list {
      list-style: none;
      padding: 0;
      margin: 0 0 20px 0;
    }
    
    .ios-step-item {
      display: flex;
      gap: 12px;
      align-items: flex-start;
      margin-bottom: 16px;
      font-size: 13px;
      color: var(--text);
      line-height: 1.5;
    }
    
    .ios-step-num {
      width: 24px;
      height: 24px;
      background: var(--primary-light);
      color: var(--primary);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      font-size: 12px;
      flex-shrink: 0;
    }
    
    .ios-step-text i {
      color: var(--primary);
      margin: 0 2px;
    }
    
    .ios-install-buttons {
      display: flex;
      gap: 10px;
    }
    
    /* Notification Onboarding Modal Styles */
    .notif-onboarding-overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0,0,0,0.6);
      backdrop-filter: blur(5px);
      -webkit-backdrop-filter: blur(5px);
      z-index: 1000002;
      display: none;
      align-items: center;
      justify-content: center;
      pointer-events: none;
      opacity: 0;
      transition: opacity 0.3s ease;
    }
    
    .notif-onboarding-overlay.open {
      display: flex;
      pointer-events: all;
      opacity: 1;
    }
    
    .notif-onboarding-modal {
      background: #ffffff;
      border-radius: 24px;
      max-width: 380px;
      width: 90%;
      box-shadow: 0 20px 40px rgba(0,0,0,0.15);
      padding: 32px 24px;
      text-align: center;
      animation: scaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
      border: 1px solid var(--border);
    }
    
    .notif-onboarding-icon-wrap {
      width: 80px;
      height: 80px;
      background: var(--primary-light);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 24px;
      position: relative;
    }
    
    .notif-onboarding-icon-wrap i {
      font-size: 36px;
      color: var(--primary);
      animation: bellRing 2s infinite ease;
    }
    
    @keyframes bellRing {
      0%, 100% { transform: rotate(0); }
      15% { transform: rotate(15deg); }
      30% { transform: rotate(-15deg); }
      45% { transform: rotate(10deg); }
      60% { transform: rotate(-10deg); }
      75% { transform: rotate(4deg); }
      85% { transform: rotate(-4deg); }
    }
    
    .notif-onboarding-modal h3 {
      font-size: 22px;
      font-weight: 700;
      color: var(--text);
      margin: 0 0 12px 0;
    }
    
    .notif-onboarding-modal p {
      font-size: 15px;
      color: var(--text-muted);
      margin: 0 0 20px 0;
      line-height: 1.5;
    }
    
    .notif-features-list {
      list-style: none;
      padding: 0;
      margin: 0 auto 24px auto;
      text-align: left;
      display: inline-block;
      max-width: 100%;
    }
    
    .notif-features-list li {
      font-size: 14px;
      color: var(--text);
      margin-bottom: 10px;
      display: flex;
      align-items: center;
      gap: 10px;
    }
    
    .notif-features-list li i {
      color: var(--accent);
      font-size: 16px;
      flex-shrink: 0;
    }
    
    .notif-onboarding-buttons {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }
    
    .notif-onboarding-buttons .btn {
      width: 100%;
      padding: 12px;
      font-size: 14px;
      font-weight: 600;
      border-radius: 12px;
      justify-content: center;
    }

    /* Welcome Logo Popup Styles */
    .welcome-popup-overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0,0,0,0.7);
      z-index: 99999;
      display: none;
      align-items: center;
      justify-content: center;
      backdrop-filter: blur(5px);
      pointer-events: none;
    }
    
    .welcome-popup-overlay.open {
      display: flex;
      pointer-events: all;
    }
    
    .welcome-popup {
      background: var(--surface);
      border-radius: 24px;
      max-width: 400px;
      width: 90%;
      text-align: center;
      padding: 32px 24px;
      animation: scaleIn 0.3s ease;
      box-shadow: 0 20px 40px rgba(0,0,0,0.3);
      position: relative;
    }
    
    @keyframes scaleIn {
      from {
        transform: scale(0.9);
        opacity: 0;
      }
      to {
        transform: scale(1);
        opacity: 1;
      }
    }
    
    .welcome-popup-logo {
      width: 120px;
      height: 120px;
      margin: 0 auto 20px;
      border-radius: 50%;
      overflow: hidden;
      background: var(--primary-light);
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--gold);
    }
    
    .welcome-popup-logo img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    
    .welcome-popup h2 {
      font-family: var(--font-serif);
      font-size: 25px;
      font-weight: 800;
      margin-bottom: 12px;
      color: var(--primary);
    }
    
    .welcome-popup p {
      color: var(--text-muted);
      margin-bottom: 24px;
      font-size: 14px;
      line-height: 1.6;
    }
    
    .welcome-popup-buttons {
      display: flex;
      gap: 12px;
      flex-direction: column;
    }
    
    .welcome-popup-buttons .btn {
      width: 100%;
      pointer-events: auto !important;
      position: relative;
      z-index: 10001;
    }
    
    .dont-show-btn {
      background: transparent;
      border: 1px solid var(--border);
      color: var(--text-muted);
    }
    
    .dont-show-btn:hover {
      background: var(--surface2);
      color: var(--text);
    }

    /* ─── Page Loader ────────────────────────────────────── */
    #page-loader {
      position: fixed;
      inset: 0;
      background: #ffffff;
      z-index: 99999;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: opacity 0.35s ease, visibility 0.35s ease;
    }
    #page-loader.fade-out {
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
    }
    .loader-content {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 14px;
    }
    .loader-logo-wrap {
      position: relative;
      width: 84px;
      height: 84px;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .loader-logo {
      width: 64px;
      height: 64px;
      border-radius: 50%;
      object-fit: cover;
      box-shadow: 0 4px 14px rgba(0,0,0,0.10);
      animation: logo-pulse 1.8s infinite ease-in-out;
    }
    .loader-ring {
      position: absolute;
      inset: 0;
      border: 3px solid var(--border);
      border-top-color: var(--gold);
      border-radius: 50%;
      animation: ring-spin 1s infinite linear;
    }
    .loader-text {
      font-family: var(--font-serif);
      font-size: 14px;
      font-weight: 700;
      color: var(--primary);
      letter-spacing: 0.5px;
    }
    @keyframes ring-spin {
      from { transform: rotate(0deg); }
      to   { transform: rotate(360deg); }
    }
    @keyframes logo-pulse {
      0%, 100% { transform: scale(0.96); }
      50%       { transform: scale(1.04); }
    }
/* =====================================================================
   VENDOR STORIES — homepage bar + full-screen viewer
   ===================================================================== */

.stories-bar-label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px 0;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.stories-bar-label i { font-size: 15px; color: var(--primary); }

.stories-bar-wrap {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 14px 16px 12px;
  background: var(--surface, #fff);
  border-bottom: 1px solid var(--border);
  scrollbar-width: none;
}
.stories-bar-wrap::-webkit-scrollbar { display: none; }

.story-avatar-item {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 68px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.story-ring {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  padding: 2.5px;
  background: linear-gradient(45deg, #c9a24a, #e8c874, #0f172a, #c9a24a);
  background-size: 300% 300%;
  animation: story-ring-shimmer 4s ease infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
}
.story-avatar-item:active .story-ring { transform: scale(0.94); }

.story-ring.seen {
  background: none;
  border: 2.5px solid var(--border);
  animation: none;
}

@keyframes story-ring-shimmer {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.story-ring-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--surface, #fff);
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.story-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.story-avatar-initial {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
}

.story-avatar-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  max-width: 68px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

/* ---------------------------------------------------------------
   Full-screen story viewer
   --------------------------------------------------------------- */
#storyViewerOverlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  display: none;
  align-items: stretch;
  justify-content: center;
  overscroll-behavior: contain;
}
#storyViewerOverlay.open { display: flex; }

.story-viewer-inner {
  position: relative;
  width: 100%;
  max-width: 460px;
  height: 100%;
  background: #000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.story-viewer-progress-row {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  gap: 4px;
  padding: 10px 8px 0;
  z-index: 3;
}

.story-viewer-progress-bar {
  flex: 1;
  height: 2.5px;
  border-radius: 2px;
  background: rgba(255,255,255,0.3);
  overflow: hidden;
}

.story-viewer-progress-fill {
  height: 100%;
  width: 0%;
  background: #fff;
  border-radius: 2px;
}

.story-viewer-header {
  position: absolute;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
}

.story-viewer-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(255,255,255,0.5);
}

.story-viewer-store-name {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.story-viewer-time {
  color: rgba(255,255,255,0.75);
  font-size: 11.5px;
  margin-top: 1px;
}

.story-viewer-close {
  margin-left: auto;
  background: none;
  border: none;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}

.story-viewer-media-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  overflow: hidden;
  touch-action: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.story-media {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  will-change: transform;
}

.story-viewer-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  z-index: 2;
}
.story-viewer-loading i { animation: story-spin 0.8s linear infinite; }
@keyframes story-spin { to { transform: rotate(360deg); } }

.story-viewer-tap-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 32%;
  z-index: 2;
  background: transparent;
  border: none;
}
.story-viewer-tap-zone.left { left: 0; }
.story-viewer-tap-zone.right { right: 0; }

.story-viewer-pause-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  color: rgba(255,255,255,0.9);
  font-size: 34px;
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 3;
  pointer-events: none;
}
.story-viewer-pause-hint.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.story-viewer-caption-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 78px;
  z-index: 3;
  padding: 0 20px;
  text-align: left;
  background: linear-gradient(to top, rgba(0,0,0,0.55), transparent);
  padding-top: 40px;
  pointer-events: none;
}

.story-viewer-promo-title {
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 4px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.story-viewer-caption-text {
  color: rgba(255,255,255,0.92);
  font-size: 13.5px;
  line-height: 1.4;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.story-viewer-footer {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px calc(14px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to top, rgba(0,0,0,0.55), transparent);
}

.story-viewer-cta-btn {
  flex: 0 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #fff;
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 28px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
  min-width: 60%;
  text-align: center;
}

@media (min-width: 768px) {
  .stories-bar-wrap { padding: 14px 24px 12px; }
  .story-viewer-inner { border-radius: 16px; margin: 16px 0; height: calc(100% - 32px); }
}