:root {
      --primary-maroon: #8f1738;
      --primary-hover: #73122d;
      --light-pink: #fbf0f3;
      --bg-page: #faf8f8;
      --card-bg: #f8fafc;
      --border-color: #edebeb;
      --text-dark: #222222;
      --text-muted: #666666;
      --text-light: #888888;
      --green-badge: #16a34a;
      --green-bg: #eefdf4;
    }

    /* --- TOP NAVBAR --- */
    .navbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 12px 40px;
      background-color: #ffffff;
      border-bottom: 1px solid var(--border-color);
    }

    .brand-logo {
      height: 48px;
      object-fit: contain;
    }

    .nav-search {
      position: relative;
      width: 45%;
      max-width: 550px;
    }

    .nav-search input {
      width: 100%;
      padding: 10px 45px 10px 20px;
      border-radius: 25px;
      border: 1px solid #e0e0e0;
      background-color: #fafafa;
      outline: none;
      font-size: 14px;
      color: #333;
    }

    .nav-search input::placeholder {
      color: #aaa;
    }

    .nav-search .search-btn {
      position: absolute;
      right: 15px;
      top: 50%;
      transform: translateY(-50%);
      background: none;
      border: none;
      color: #888;
      cursor: pointer;
      font-size: 15px;
    }

    .nav-right {
      display: flex;
      align-items: center;
      gap: 20px;
    }

    .notification-icon {
      position: relative;
      font-size: 18px;
      color: var(--primary-maroon);
      cursor: pointer;
    }

    .notification-icon .badge {
      position: absolute;
      top: -5px;
      right: -7px;
      background-color: #e53e3e;
      color: #fff;
      font-size: 10px;
      font-weight: bold;
      border-radius: 50%;
      width: 15px;
      height: 15px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .user-dropdown {
      display: flex;
      align-items: center;
      gap: 8px;
      cursor: pointer;
    }

    .avatar-small {
      width: 32px;
      height: 32px;
      background-color: var(--light-pink);
      color: var(--primary-maroon);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
    }

    .user-name {
      font-weight: 600;
      font-size: 14px;
      color: #000;
    }

    .user-dropdown .arrow {
      font-size: 12px;
      color: #666;
      transition: transform 0.2s ease;
    }

    /* ── USER DROPDOWN MENU ── */
    .user-dropdown-wrapper {
      position: relative;
      display: flex;
      align-items: center;
    }

    .user-dropdown-menu {
      display: none;
      position: absolute;
      top: calc(100% + 12px);
      right: 0;
      background: #ffffff;
      border: 1px solid #edebeb;
      border-radius: 12px;
      min-width: 180px;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
      z-index: 999;
      overflow: hidden;
      animation: dropdownIn 0.18s ease;
    }

    @keyframes dropdownIn {
      from { opacity: 0; transform: translateY(-6px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    .user-dropdown-menu.open {
      display: block;
    }

    .dropdown-item {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 12px 18px;
      font-size: 14px;
      font-weight: 500;
      color: #333;
      text-decoration: none;
      transition: background 0.15s;
      border: none;
      background: none;
      width: 100%;
      cursor: pointer;
      font-family: inherit;
    }

    .dropdown-item:hover {
      background: var(--light-pink);
      color: var(--primary-maroon);
    }

    .dropdown-item i {
      width: 16px;
      text-align: center;
      color: var(--primary-maroon);
    }

    .dropdown-divider {
      border: none;
      border-top: 1px solid #f0eded;
      margin: 0;
    }

    .dropdown-item.logout-item {
      color: #dc2626;
    }

    .dropdown-item.logout-item i {
      color: #dc2626;
    }

    .dropdown-item.logout-item:hover {
      background: #fff5f5;
      color: #dc2626;
    }

    .auth-actions,
    .member-actions {
      display: flex;
      align-items: center;
      gap: 14px;
    }

    /* Ensure the active header state is the only one rendered. */
    .auth-actions[hidden],
    .member-actions[hidden],
    .mobile-cart-toggle[hidden] {
      display: none !important;
    }

    .auth-actions a {
      padding: 9px 16px;
      border: 1px solid var(--primary-maroon);
      border-radius: 20px;
      color: var(--primary-maroon);
      font-size: 14px;
      font-weight: 600;
      text-decoration: none;
      transition: background-color .2s ease, color .2s ease;
    }

    .auth-actions a:last-child,
    .auth-actions a:hover {
      background: var(--primary-maroon);
      color: #fff;
    }

    @media (max-width: 760px) {
      .navbar {
        padding: 10px 15px;
      }
      .nav-search {
        display: none;
      }
      .mobile-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: none;
        background: none;
        font-size: 22px;
        color: var(--text-dark);
        padding: 4px;
        cursor: pointer;
      }
      .nav-left {
        display: flex;
        align-items: center;
        gap: 12px;
      }
      .brand-logo {
        position: static !important;
        transform: none !important;
        height: 38px !important;
      }
      .auth-actions { gap: 6px; }
      .auth-actions a { padding: 6px 9px; font-size: 12px; }
      .member-actions { gap: 8px; }
      .member-actions .user-name { display: none; }
      .avatar-small { width: 28px; height: 28px; font-size: 12px; }
      .notification-icon { font-size: 18px; }
      .user-dropdown-menu {
        top: calc(100% + 8px);
        min-width: 160px;
      }
      .dropdown-item {
        padding: 10px 14px;
        font-size: 13px;
      }
    }

    /* --- SUB NAVIGATION BAR --- */
    .sub-nav {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 25px;
      padding: 12px 0;
      background-color: #ffffff;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    }

    .sub-nav .nav-item {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 8px 24px;
      border-radius: 20px;
      text-decoration: none;
      color: #444;
      font-weight: 600;
      font-size: 14px;
      transition: all 0.2s ease;
    }

    .sub-nav .nav-item.active {
      background-color: var(--primary-maroon);
      color: #ffffff;
    }

    .sub-nav .nav-item:hover:not(.active) {
      background-color: var(--light-pink);
      color: var(--primary-maroon);
    }

    /* --- RESTAURANT CLOSED TOP BANNER --- */
    .rasoova-store-closed-banner {
      background: linear-gradient(90deg, #fff1f2 0%, #ffe4e6 50%, #fff1f2 100%);
      border-bottom: 1px solid #fecdd3;
      padding: 10px 16px;
      font-size: 13.5px;
      color: #9f1239;
      cursor: pointer;
      transition: background 0.2s ease, transform 0.15s ease;
      box-shadow: 0 1px 3px rgba(159, 18, 57, 0.05);
    }
    .rasoova-store-closed-banner:hover {
      background: #ffe4e6;
    }
    .sc-banner-content {
      max-width: 1200px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      flex-wrap: wrap;
      text-align: center;
    }
    .sc-banner-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: #e11d48;
      color: #ffffff;
      padding: 3px 10px;
      border-radius: 20px;
      font-size: 11px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      box-shadow: 0 2px 6px rgba(225, 29, 72, 0.3);
    }
    .sc-banner-text {
      font-weight: 600;
      color: #881337;
    }
    .sc-banner-btn {
      font-size: 12px;
      font-weight: 700;
      text-decoration: underline;
      color: #9f1239;
      display: inline-flex;
      align-items: center;
      gap: 4px;
    }

    /* --- RESTAURANT CLOSED MODAL POPUP --- */
    .rv-closed-modal-overlay {
      position: fixed;
      inset: 0;
      z-index: 9999999;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 20px;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .rv-closed-modal-overlay.is-open {
      opacity: 1;
      visibility: visible;
    }
    .rv-closed-modal-backdrop {
      position: absolute;
      inset: 0;
      background: rgba(15, 12, 14, 0.68);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
    }
    .rv-closed-modal-card {
      position: relative;
      z-index: 1;
      width: 100%;
      max-width: 480px;
      background: #ffffff;
      border-radius: 24px;
      padding: 32px 28px 26px;
      box-shadow: 0 25px 60px -12px rgba(116, 29, 39, 0.32), 0 0 0 1px rgba(143, 23, 56, 0.08);
      text-align: center;
      transform: scale(0.92) translateY(16px);
      transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    .rv-closed-modal-overlay.is-open .rv-closed-modal-card {
      transform: scale(1) translateY(0);
    }
    .rv-closed-modal-close {
      position: absolute;
      top: 16px;
      right: 16px;
      width: 36px;
      height: 36px;
      border-radius: 50%;
      border: 1px solid #f1f5f9;
      background: #f8fafc;
      color: #64748b;
      font-size: 22px;
      line-height: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.2s ease;
    }
    .rv-closed-modal-close:hover {
      background: #fee2e2;
      color: #b91c1c;
      border-color: #fca5a5;
      transform: rotate(90deg);
    }
    .rv-closed-icon-badge {
      width: 72px;
      height: 72px;
      margin: 0 auto 16px;
      border-radius: 50%;
      background: linear-gradient(135deg, #fff0f3 0%, #ffe4e8 100%);
      border: 3px solid #ffffff;
      box-shadow: 0 8px 24px rgba(143, 23, 56, 0.15);
      display: flex;
      align-items: center;
      justify-content: center;
      color: #8f1738;
      font-size: 30px;
    }
    .rv-closed-status-pill {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      padding: 5px 14px;
      border-radius: 20px;
      background: #fef2f2;
      border: 1px solid #fecdd3;
      color: #991b1b;
      font-size: 12px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      margin-bottom: 12px;
    }
    .rv-pulse-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #dc2626;
      box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.7);
      animation: rvPulse 1.8s infinite;
    }
    @keyframes rvPulse {
      0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.6); }
      70% { box-shadow: 0 0 0 8px rgba(220, 38, 38, 0); }
      100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
    }
    .rv-closed-title {
      font-family: 'Playfair Display', Georgia, serif;
      font-size: 24px;
      font-weight: 800;
      color: #1e293b;
      margin: 0 0 14px 0;
      line-height: 1.25;
    }
    .rv-closed-notice-box {
      background: #fff8f8;
      border: 1px dashed #fca5a5;
      border-radius: 14px;
      padding: 12px 14px;
      margin-bottom: 14px;
      display: flex;
      align-items: flex-start;
      gap: 10px;
      text-align: left;
    }
    .rv-notice-icon-col {
      color: #dc2626;
      font-size: 16px;
      padding-top: 2px;
      flex-shrink: 0;
    }
    .rv-notice-headline {
      display: block;
      font-size: 11.5px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
      color: #991b1b;
      font-weight: 700;
      margin-bottom: 2px;
    }
    .rv-notice-message {
      font-size: 14px;
      font-weight: 600;
      color: #7f1d1d;
      line-height: 1.4;
      margin: 0;
    }
    .rv-closed-subtext {
      color: #64748b;
      font-size: 13.5px;
      line-height: 1.55;
      margin-bottom: 16px;
    }
    .rv-closed-features {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      flex-wrap: wrap;
      margin-bottom: 22px;
    }
    .rv-feature-chip {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: #f8fafc;
      border: 1px solid #e2e8f0;
      padding: 6px 12px;
      border-radius: 20px;
      font-size: 12px;
      font-weight: 600;
      color: #475569;
    }
    .rv-feature-chip i {
      color: #8f1738;
      font-size: 12px;
    }
    .rv-closed-modal-footer {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }
    .rv-btn-explore {
      width: 100%;
      padding: 13px 20px;
      border-radius: 12px;
      background: linear-gradient(135deg, #8f1738 0%, #74122d 100%);
      color: #ffffff;
      border: none;
      font-size: 15px;
      font-weight: 700;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      box-shadow: 0 4px 14px rgba(143, 23, 56, 0.35);
      transition: all 0.2s ease;
    }
    .rv-btn-explore:hover {
      background: linear-gradient(135deg, #a31a40 0%, #831533 100%);
      transform: translateY(-1px);
      box-shadow: 0 6px 18px rgba(143, 23, 56, 0.45);
    }
    .rv-btn-close-subtle {
      width: 100%;
      padding: 11px 16px;
      border-radius: 12px;
      background: transparent;
      color: #64748b;
      border: 1px solid #e2e8f0;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s ease;
    }
    .rv-btn-close-subtle:hover {
      background: #f8fafc;
      color: #1e293b;
      border-color: #cbd5e1;
    }
    @media (max-width: 600px) {
      /* Top banner mobile adjustments */
      .rasoova-store-closed-banner {
        padding: 8px 12px;
      }
      .sc-banner-content {
        gap: 8px;
      }
      .sc-banner-badge {
        font-size: 10px;
        padding: 2px 8px;
        gap: 4px;
      }
      .sc-banner-text {
        font-size: 12px;
        line-height: 1.35;
      }
      .sc-banner-btn {
        font-size: 11px;
      }

      /* Modal overlay & card mobile */
      .rv-closed-modal-overlay {
        padding: 16px 14px;
      }
      .rv-closed-modal-card {
        padding: 22px 18px 18px;
        border-radius: 20px;
        max-width: 380px;
      }
      .rv-closed-modal-close {
        top: 12px;
        right: 12px;
        width: 30px;
        height: 30px;
        font-size: 18px;
      }
      .rv-closed-icon-badge {
        width: 52px;
        height: 52px;
        font-size: 22px;
        margin: 0 auto 10px;
        box-shadow: 0 4px 14px rgba(143, 23, 56, 0.12);
      }
      .rv-closed-status-pill {
        padding: 3px 10px;
        font-size: 10.5px;
        letter-spacing: 0.4px;
        margin-bottom: 8px;
        gap: 6px;
      }
      .rv-pulse-dot {
        width: 6px;
        height: 6px;
      }
      .rv-closed-title {
        font-size: 18px;
        margin: 0 0 10px 0;
        line-height: 1.3;
      }
      .rv-closed-notice-box {
        padding: 9px 11px;
        margin-bottom: 11px;
        border-radius: 12px;
        gap: 8px;
      }
      .rv-notice-icon-col {
        font-size: 14px;
        padding-top: 1px;
      }
      .rv-notice-headline {
        font-size: 10px;
        margin-bottom: 2px;
      }
      .rv-notice-message {
        font-size: 12.5px;
        line-height: 1.35;
      }
      .rv-closed-subtext {
        font-size: 12px;
        line-height: 1.45;
        margin-bottom: 12px;
      }
      .rv-closed-features {
        gap: 6px;
        margin-bottom: 16px;
      }
      .rv-feature-chip {
        padding: 4px 9px;
        font-size: 11px;
        border-radius: 14px;
        gap: 5px;
      }
      .rv-feature-chip i {
        font-size: 10px;
      }
      .rv-closed-modal-footer {
        gap: 8px;
      }
      .rv-btn-explore {
        padding: 10px 16px;
        font-size: 13.5px;
        border-radius: 10px;
        gap: 6px;
      }
      .rv-btn-close-subtle {
        padding: 8.5px 14px;
        font-size: 12.5px;
        border-radius: 10px;
      }
    }

    @media (max-width: 360px) {
      .rv-closed-modal-card {
        padding: 18px 14px 16px;
      }
      .rv-closed-title {
        font-size: 16.5px;
      }
      .rv-closed-subtext {
        font-size: 11px;
      }
      .rv-closed-features {
        display: none;
      }
    }

