/* Global Viewport Safety & Zero Overflow */
html, body {
  overflow-x: clip !important;
  max-width: 100vw !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0;
  box-sizing: border-box !important;
}
*, *::before, *::after {
  box-sizing: border-box !important;
}

/* CRISPY CRUST Design Tokens: Signature Gold #F59E0B / #FBBF24 & Matte Charcoal Black #111827 */
:root {
  --primary: #f59e0b;
  --primary-hover: #fbbf24;
  --primary-active: #d97706;
  --primary-contrast: #111827;
  --primary-soft: rgba(245, 158, 11, 0.15);
  --primary-glow: rgba(251, 191, 36, 0.4);

  --accent: #f59e0b;
  --accent-bright: #fbbf24;
  --accent-hover: #d97706;
  --accent-soft: rgba(245, 158, 11, 0.15);
  --accent-contrast: #111827;

  --price-color: #111827;
  --price-strike: #9ca3af;

  --badge-cat-bg: #111827;
  --badge-cat-text: #fbbf24;
  --badge-cat-border: rgba(251, 191, 36, 0.35);

  --header-bg: #111827;
  --dark-surface: #111827;
  --text-primary: #111827;
  --text-secondary: #71717a;
  --bg-body: #fafaf9;
  --bg-card: #ffffff;
  --border-subtle: #e4e4e7;
  --badge-cart-bg: #fbbf24;
  --badge-cart-text: #111827;

  /* Backward-compatible token mappings */
  --color-primary: var(--primary);
  --color-primary-hover: var(--primary-hover);
  --color-primary-soft: var(--primary-soft);
  --color-accent: var(--accent);
  --color-accent-hover: var(--accent-hover);
  --color-bg: var(--bg-body);
  --color-surface: var(--bg-card);
  --color-text: var(--text-primary);
  --color-muted: var(--text-secondary);
  --color-border: var(--border-subtle);
  --color-danger: #E11D2A;
  --color-warning: #F59E0B;
  --color-success: #16a34a;
  --color-whatsapp: #25d366;
}

/* Matgary storefront layout (logical properties only) */
/* Global: navigation links & buttons are never underlined (any state) */
a, button, .btn, .nav-btn, .back-btn, .hero-cta { text-decoration: none !important; }
a:hover, a:focus, a:active, a:focus-visible,
button:hover, button:focus, button:active, button:focus-visible,
.btn:hover, .btn:focus, .btn:active, .btn:focus-visible,
.nav-btn:hover, .nav-btn:focus, .nav-btn:active, .nav-btn:focus-visible,
.back-btn:hover, .back-btn:focus, .back-btn:active, .back-btn:focus-visible,
.hero-cta:hover, .hero-cta:focus, .hero-cta:active, .hero-cta:focus-visible { text-decoration: none !important; }

/* ── Modern Crispy Crust Single-Row Compact Header (52px Fixed Header) ─────── */
#topbar,
#app-top-header,
.topbar,
.site-header,
.header-wrapper {
  position: fixed !important;
  top: 0 !important;
  z-index: 1000 !important;
  width: 100% !important;
  max-width: 100vw !important;
  height: 52px !important;
  min-height: 52px !important;
  max-height: 52px !important;
  left: 0 !important;
  right: 0 !important;
  box-sizing: border-box !important;
  background: rgba(14, 14, 14, 0.96) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45) !important;
  padding: 0 !important;
  margin: 0 !important;
  color: #ffffff !important;
  overflow: hidden !important;
}

.topbar-inner {
  max-width: 1200px;
  width: 100% !important;
  height: 60px !important;
  margin-inline: auto;
  padding-inline: 12px;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
  box-sizing: border-box !important;
}

/* Right Side (RTL Start): Logo + Interactive Location Pill */
.topbar-brand-zone {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
}

.header-logo-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  line-height: 0;
  text-decoration: none !important;
}

.header-logo-img {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  max-width: 36px !important;
  max-height: 36px !important;
  border-radius: 50% !important;
  object-fit: contain !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  display: block !important;
  filter: drop-shadow(0 2px 6px rgba(245, 158, 11, 0.4)) !important;
  transition: transform 0.2s ease !important;
}

.header-logo-link:hover .header-logo-img {
  transform: scale(1.06) !important;
  border-color: rgba(251, 191, 36, 0.7) !important;
}

/* Interactive Location Pill */
.header-location-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  height: 36px !important;
  max-height: 36px !important;
  padding: 0 10px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 999px !important;
  color: #ffffff !important;
  font-family: inherit !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 175px !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  flex: 0 1 auto !important;
}

.header-location-pill:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: rgba(251, 191, 36, 0.5) !important;
}

.header-location-pill .location-pin-icon {
  color: #fbbf24 !important;
  flex: 0 0 auto !important;
}

.header-location-pill .location-chevron-icon {
  color: rgba(255, 255, 255, 0.6) !important;
  flex: 0 0 auto !important;
  transition: transform 0.2s ease !important;
}

.header-location-pill:hover .location-chevron-icon {
  transform: translateY(1px) !important;
  color: #ffffff !important;
}

.header-location-pill .location-text {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

/* Left Side (RTL End): Circular Action Buttons (36x36px) */
.topbar-actions-zone {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex: 0 0 auto !important;
}

.topbar-action-btn,
.header-action-btn {
  position: relative !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: #ffffff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  cursor: pointer !important;
  text-decoration: none !important;
  font-family: inherit !important;
  font-size: 0.76rem !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
}

.topbar-action-btn:hover,
.header-action-btn:hover {
  background: rgba(255, 255, 255, 0.18) !important;
  border-color: rgba(255, 255, 255, 0.32) !important;
  transform: translateY(-1px) !important;
}

.topbar-action-btn:active,
.header-action-btn:active {
  transform: scale(0.94) !important;
}

.topbar-action-btn .icon,
.header-action-btn .icon {
  width: 18px !important;
  height: 18px !important;
  color: inherit !important;
}

/* Live cart badge counter - Strict 18x18px circle in RTL and LTR */
.cart-badge,
#cartCount,
.header-cart-btn .badge,
.topbar-action-btn .count-badge,
.header-action-btn .count-badge,
.topbar .cart-btn .count-badge,
.count-badge {
  position: absolute !important;
  top: -4px !important;
  right: -4px !important;
  left: auto !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  max-width: 22px !important;
  border-radius: 999px !important;
  background: #fbbf24 !important;
  color: #111827 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 4px !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
  border: 1.5px solid #111827 !important;
  z-index: 5 !important;
}

@media (max-width: 480px) {
  .header-location-pill {
    max-width: 145px !important;
    font-size: 0.76rem !important;
    padding: 0 8px !important;
  }
  .topbar-actions-zone {
    gap: 6px !important;
  }
  .topbar-action-btn,
  .header-action-btn {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
  }
  .header-logo-img {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
  }
}

/* 1. Start Column (Right in RTL / Left in LTR): Language Switcher Capsule */
.topbar-start {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-width: 0;
}

.lang-capsule,
#langToggleBtn.lang-capsule,
#langToggleBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 16px;
  height: 38px;
  min-height: 38px;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 999px !important;
  color: #ffffff !important;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  flex: none;
  box-sizing: border-box;
  text-decoration: none !important;
}
.lang-capsule:hover,
#langToggleBtn:hover {
  background: rgba(255, 255, 255, 0.18) !important;
  border-color: rgba(255, 255, 255, 0.32) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.lang-capsule:active,
#langToggleBtn:active {
  transform: scale(0.95);
}
.lang-capsule:focus-visible,
#langToggleBtn:focus-visible {
  outline: 2px solid var(--accent, #f59e0b);
  outline-offset: 2px;
}

/* Subpage back icon button when in topbar-start */
.header-back-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff !important;
  transition: all 0.2s ease;
  flex: none;
}
.header-back-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}
.header-back-btn .icon {
  width: 18px;
  height: 18px;
  color: inherit;
}

/* 2. Center Column: Crispy Crust Circular Logo */
.topbar-center {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.header-logo-link,
.topbar-center .brand-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 0;
  text-decoration: none !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.header-logo-img {
  height: 52px;
  max-height: 52px;
  width: 52px;
  min-width: 52px;
  border-radius: 50%;
  object-fit: contain;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.2);
  filter: drop-shadow(0 2px 10px rgba(245, 158, 11, 0.4));
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), filter 0.25s ease, border-color 0.25s ease;
}
.header-logo-link:hover .header-logo-img,
.topbar-center .brand-link:hover .header-logo-img {
  transform: scale(1.08);
  border-color: rgba(251, 191, 36, 0.7);
  filter: drop-shadow(0 4px 16px rgba(245, 158, 11, 0.65));
}
.header-logo-link:active .header-logo-img,
.topbar-center .brand-link:active .header-logo-img {
  transform: scale(0.96);
}

/* 3. End Column (Left in RTL / Right in LTR): Cart + Hamburger Menu */
.topbar-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}
.topbar .cart-btn,
.topbar #cartBtn,
.topbar .hamburger-btn,
.topbar #hamburgerBtn {
  position: relative;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 12px;
  color: #ffffff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex: none;
}
.topbar .cart-btn:hover,
.topbar #cartBtn:hover,
.topbar .hamburger-btn:hover,
.topbar #hamburgerBtn:hover {
  background: rgba(255, 255, 255, 0.18) !important;
  border-color: rgba(255, 255, 255, 0.32) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.topbar .cart-btn:active,
.topbar #cartBtn:active,
.topbar .hamburger-btn:active,
.topbar #hamburgerBtn:active {
  transform: scale(0.95);
}
.topbar .cart-btn .icon,
.topbar #cartBtn .icon,
.topbar .hamburger-btn .icon,
.topbar #hamburgerBtn .icon {
  width: 20px;
  height: 20px;
  color: inherit;
  flex: none;
}

/* ── Off-Canvas Hamburger Menu Drawer ────────────────────────────────────────── */
.menu-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2490 !important;
  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);
}
.menu-drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.menu-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  left: auto;
  width: min(310px, 88vw);
  height: 100dvh;
  background: #0f172a;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid rgba(245, 158, 11, 0.3);
  border-right: none;
  box-shadow: -16px 0 40px rgba(0, 0, 0, 0.75);
  z-index: 2500 !important;
  display: flex;
  flex-direction: column;
  transform: translateX(105%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  color: #f8fafc;
  overflow: hidden;
}
.menu-drawer.open {
  transform: translateX(0);
}

.menu-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(11, 17, 32, 0.65);
  flex: none;
  gap: 8px;
}
.menu-drawer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.menu-drawer-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.drawer-lang-chip {
  height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #f8fafc;
  font-family: 'Cairo', sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.drawer-lang-chip:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.5);
  color: #fbbf24;
}
.drawer-logo-img {
  width: auto;
  height: 30px;
  max-width: 140px;
  object-fit: contain;
  border: none;
  background: transparent;
}
.drawer-brand-title {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}
.menu-drawer-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.menu-drawer-close:hover {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(245, 158, 11, 0.45);
  color: #fbbf24;
  transform: rotate(90deg);
}

.menu-drawer-content {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 14px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
  scrollbar-color: rgba(245, 158, 11, 0.22) transparent;
}
.menu-drawer-content::-webkit-scrollbar {
  width: 4px;
}
.menu-drawer-content::-webkit-scrollbar-track {
  background: transparent;
}
.menu-drawer-content::-webkit-scrollbar-thumb {
  background: rgba(245, 158, 11, 0.22);
  border-radius: 999px;
}
.menu-drawer-content::-webkit-scrollbar-thumb:hover {
  background: rgba(245, 158, 11, 0.42);
}

/* User Profile Card */
.drawer-user-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.2s ease;
}
.drawer-user-card:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
}
.drawer-user-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  color: #ffffff !important;
  text-decoration: none !important;
}
.drawer-avatar {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #111827;
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.drawer-avatar .icon {
  width: 22px;
  height: 22px;
}
.drawer-user-card.is-logged-in .drawer-avatar {
  background: rgba(34, 197, 94, 0.18);
  color: #22c55e;
  border-color: rgba(34, 197, 94, 0.4);
}
.drawer-user-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.drawer-user-greeting {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
}
.drawer-user-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.drawer-arrow-icon {
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.4);
  flex: none;
  transition: transform 0.2s ease;
}
html[dir="rtl"] .drawer-arrow-icon {
  transform: rotate(180deg);
}
.drawer-user-card:hover .drawer-arrow-icon {
  color: #ffffff;
  transform: translateX(3px);
}
html[dir="rtl"] .drawer-user-card:hover .drawer-arrow-icon {
  transform: rotate(180deg) translateX(3px);
}

/* Drawer Search Box */
.drawer-search-section {
  position: relative;
}
.drawer-search-box {
  position: relative;
  width: 100%;
}
.drawer-search-box input {
  width: 100%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 10px 14px;
  padding-inline-start: 40px;
  color: #ffffff;
  font-size: 0.88rem;
  font-family: inherit;
  transition: all 0.2s ease;
  box-sizing: border-box;
}
.drawer-search-box input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent, #f59e0b);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}
.drawer-search-box input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}
.drawer-search-box .search-icon {
  position: absolute;
  top: 50%;
  inset-inline-start: 12px;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.55);
  pointer-events: none;
}
.drawer-search-section .sug-list {
  position: absolute;
  top: calc(100% + 6px);
  inset-inline: 0;
  z-index: 100;
  background: #18181b;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
  padding: 6px;
  display: none;
  max-height: 280px;
  overflow-y: auto;
}
.drawer-search-section .sug-list.open {
  display: block;
}
.drawer-search-section .sug-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  text-align: start;
  color: #fff;
  transition: background 0.15s ease;
}
.drawer-search-section .sug-item:hover,
.drawer-search-section .sug-item:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}
.drawer-search-section .sug-title {
  color: #ffffff;
}
.drawer-search-section .sug-price {
  color: var(--accent, #f59e0b);
}

/* Drawer Quick Links — Sleek 44px Compact RTL Rows */
.drawer-nav-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.drawer-nav-heading {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(148, 163, 184, 0.72);
  padding-inline: 8px;
  text-align: start;
}
.drawer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.drawer-nav-item {
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 6px 10px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #f8fafc !important;
  text-align: start;
  text-decoration: none !important;
  cursor: pointer;
  font-family: 'Cairo', sans-serif;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}
.drawer-nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.06);
}
.drawer-nav-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.drawer-nav-icon .icon {
  width: 16px;
  height: 16px;
}
.drawer-nav-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1;
  text-align: start;
}
.drawer-nav-text {
  font-size: 13.5px;
  font-weight: 700;
  color: #f8fafc;
  flex: 1;
  text-align: start;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.drawer-nav-sub {
  font-size: 11px;
  color: #94a3b8;
  text-align: start;
}
.drawer-nav-chevron {
  width: 15px;
  height: 15px;
  color: rgba(148, 163, 184, 0.5);
  flex: none;
  margin-inline-start: auto;
  transition: color 0.16s ease, transform 0.16s ease;
}
html[dir="ltr"] .drawer-nav-chevron {
  transform: rotate(180deg);
}
.drawer-nav-item:hover .drawer-nav-chevron {
  color: #e2e8f0;
}
.drawer-nav-gold {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.18);
}
.drawer-nav-gold:hover {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.34);
}
.drawer-nav-gold .drawer-nav-icon {
  background: rgba(245, 158, 11, 0.16);
  color: #fbbf24;
}
.drawer-nav-gold .drawer-nav-text {
  color: #fbbf24;
}
.drawer-nav-whatsapp {
  margin-top: 4px;
  border-color: rgba(16, 185, 129, 0.25);
  background: rgba(16, 185, 129, 0.1);
}
.drawer-nav-whatsapp:hover {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.42);
}
.drawer-nav-whatsapp .drawer-nav-icon {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
}
.drawer-nav-whatsapp .drawer-nav-text {
  color: #34d399;
}
.drawer-nav-danger .drawer-nav-icon {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
}
.drawer-nav-danger .drawer-nav-text {
  color: #fca5a5;
}
.drawer-nav-danger:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.24);
}

/* Collapsible Admin Accordion (Hidden for non-admins, collapsed by default for admins) */
.drawer-admin-accordion {
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.65);
  overflow: hidden;
}
.drawer-admin-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  min-height: 44px;
  box-sizing: border-box;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.16s ease;
}
.drawer-admin-summary::-webkit-details-marker {
  display: none;
}
.drawer-admin-summary:hover {
  background: rgba(245, 158, 11, 0.08);
}
.drawer-admin-summary-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.drawer-admin-icon {
  background: rgba(245, 158, 11, 0.14);
}
.drawer-admin-title {
  font-size: 13px;
  font-weight: 800;
  color: #fbbf24;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: start;
}
.drawer-admin-caret {
  color: #fbbf24;
  flex: none;
  transition: transform 0.2s ease;
}
.drawer-admin-accordion[open] .drawer-admin-caret {
  transform: rotate(180deg);
}
.drawer-admin-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 8px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.drawer-suite-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 4px;
}

/* Compact 2x2 Footer Links inside drawer */
.drawer-footer-links-group {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.drawer-nav-list.sub-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 8px;
  padding-inline: 2px;
}
.drawer-sub-link {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8 !important;
  text-decoration: none !important;
  text-align: start;
  padding: 6px 8px;
  border-radius: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.drawer-sub-link:hover {
  color: #f8fafc !important;
  background: rgba(255, 255, 255, 0.05);
}

.menu-drawer-footer {
  padding: 14px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.25);
  flex: none;
}
.drawer-hotline {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hotline-icon {
  font-size: 1.25rem;
}
.hotline-label {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
  display: block;
}
.hotline-num {
  font-size: 1.05rem;
  color: var(--accent, #f59e0b);
  letter-spacing: 0.05em;
  font-weight: 800;
}
/* Search autocomplete dropdown (floating under the header search field) */
.sug-list {
  position: absolute; top: calc(100% + 8px); inset-inline: 0; z-index: 60;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 14px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
  padding: 6px; display: none; max-height: 360px; overflow: auto;
}
.sug-list.open { display: block; }
.sug-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 8px; border: 0; border-radius: 10px; background: transparent;
  cursor: pointer; text-align: start;
}
.sug-item:hover, .sug-item:focus-visible { background: #f1f5f9; outline: none; }
.sug-thumb { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex: none; }
.sug-info { display: grid; gap: 2px; min-width: 0; }
.sug-title { font-weight: 600; font-size: 0.9rem; color: #1a202c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sug-price { font-weight: 800; font-size: 0.84rem; color: var(--text-primary, #111111); }
/* Sub-page back pill — keep the topbar chrome consistent */
.topbar .back-btn { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.2); color: #ffffff; }
.topbar .back-btn:hover { background: rgba(255, 255, 255, 0.2); border-color: rgba(255, 255, 255, 0.32); color: #ffffff; }
/* Account button in topbar (matches .cart-btn translucent aesthetic) */
.account-btn, .topbar .account-btn, #userAccountBtn, #authBtn {
  position: relative;
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 12px;
  box-shadow: none;
  padding: 0 !important;
  width: 38px;
  height: 38px;
  min-height: 38px;
  min-width: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  font-weight: 700;
  font-size: 0.84rem;
  line-height: 1;
  cursor: pointer;
  text-decoration: none !important;
  white-space: nowrap;
  flex: none;
  box-sizing: border-box;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}
.account-btn:hover, .topbar .account-btn:hover, #userAccountBtn:hover, #authBtn:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.32) !important;
  color: #ffffff !important;
  box-shadow: none;
}
.account-btn:active, .topbar .account-btn:active, #userAccountBtn:active, #authBtn:active {
  transform: scale(0.95);
}
.account-btn:focus-visible, .topbar .account-btn:focus-visible, #userAccountBtn:focus-visible, #authBtn:focus-visible {
  outline: 2px solid var(--primary, #f59e0b);
  outline-offset: 2px;
}
.account-btn .icon, .topbar .account-btn .icon, #userAccountBtn .icon, #authBtn .icon {
  width: 19px;
  height: 19px;
  color: inherit;
  flex: none;
}
.account-btn .account-label, .topbar .account-btn .account-label, #userAccountBtn .account-label, #authBtn .account-label {
  display: none !important;
}
.account-btn .account-dot {
  position: absolute;
  top: 5px;
  inset-inline-end: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  border: 1.5px solid var(--header-bg, #111111);
  display: none;
}
.account-btn.is-logged-in .account-dot {
  display: block;
}

/* Cart button (translucent) + un-cropped Canary Yellow badge */
.cart-btn, .topbar .cart-btn {
  position: relative;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  box-shadow: none;
  padding: 0;
  width: 38px;
  height: 38px;
  min-height: 38px;
  min-width: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  flex: none;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}
.cart-btn:hover, .topbar .cart-btn:hover { background: rgba(255, 255, 255, 0.2); color: #ffffff; border-color: rgba(255, 255, 255, 0.32); box-shadow: none; }
.cart-btn:active, .topbar .cart-btn:active { transform: scale(0.95); }
.cart-btn:focus-visible, .topbar .cart-btn:focus-visible { outline: 2px solid var(--primary, #f59e0b); outline-offset: 2px; }
.cart-btn .icon, .topbar .cart-btn .icon { width: 19px; height: 19px; color: inherit; flex: none; }
.count-badge {
  position: absolute !important;
  top: -4px !important;
  right: -4px !important;
  left: auto !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  max-width: 22px !important;
  border-radius: 999px !important;
  background: #fbbf24 !important;
  color: #111827 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 4px !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
  border: 1.5px solid #111827 !important;
  z-index: 5 !important;
}

/* Responsive tuning for 3-Column Topbar */
@media screen and (max-width: 768px) {
  .topbar-inner {
    padding-inline: 12px;
    gap: 8px;
  }
  .lang-capsule,
  #langToggleBtn.lang-capsule,
  #langToggleBtn {
    padding: 5px 12px;
    font-size: 0.78rem;
    height: 36px;
    min-height: 36px;
  }
  .header-logo-img {
    height: 50px;
    max-height: 50px;
    width: 50px;
    min-width: 50px;
  }
  .topbar .cart-btn,
  .topbar #cartBtn,
  .topbar .hamburger-btn,
  .topbar #hamburgerBtn {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
  }
  .topbar-end {
    gap: 8px;
  }
}
@media screen and (max-width: 480px) {
  .topbar-inner {
    padding-inline: 10px;
    gap: 6px;
  }
  .lang-capsule,
  #langToggleBtn.lang-capsule,
  #langToggleBtn {
    padding: 4px 10px;
    font-size: 0.74rem;
  }
  .header-logo-img {
    height: 48px;
    max-height: 48px;
    width: 48px;
    min-width: 48px;
  }
  .topbar-end {
    gap: 6px;
  }
}
.hero:not(.hero-split) { background: var(--color-surface); border-block-end: 1px solid var(--color-border); }
.hero-inner { max-width: 1200px; margin-inline: auto; padding-inline: 20px; padding-block: 56px 44px; text-align: center; }
.hero-eyebrow { display: inline-block; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-text); background: var(--primary); border-radius: 999px; padding-inline: 14px; padding-block: 5px; margin-block-end: 14px; }
.hero h1 { margin: 0 0 10px; font-size: clamp(1.9rem, 4.5vw, 3rem); letter-spacing: -0.02em; line-height: 1.15; color: var(--color-text); }
.hero p { color: var(--color-muted); font-size: 1.05rem; max-width: 560px; margin: 0 auto 20px; }
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 20px; padding-block: 24px; box-sizing: border-box; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-block: 18px; }
.search { flex: 1; min-width: 180px; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding-inline: 14px; padding-block: 11px; background: #fff; }
.search:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-soft); }
.pills { display: flex; gap: 8px; flex-wrap: wrap; margin-block: 12px; }
.pill { border: 1px solid var(--color-border); background: #fff; border-radius: 999px; padding-inline: 16px; padding-block: 8px; cursor: pointer; font-weight: 600; transition: all 0.15s ease; }
.pill.active { background: var(--header-bg, #111111) !important; color: #fbbf24 !important; border-color: #fbbf24 !important; font-weight: 800 !important; }
.pill.active:hover { background: #1e1e1e !important; border-color: #fbbf24 !important; color: #fbbf24 !important; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
/* Strict Uniform Luxury QSR Card Geometry */
.p-card, .product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s ease;
}
.p-card:hover, .product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.09);
}
.p-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #f1f5f9;
  overflow: hidden;
}
.p-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.p-card:hover .p-media img {
  transform: scale(1.03);
}

/* Single Top-Right Badge (RTL inset-inline-start) — max 1 badge, zero stacking */
.p-badges, .product-card-badges, .badges-container {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  display: flex;
  align-items: center;
  z-index: 3;
  pointer-events: none;
}
.p-badges .off,
.p-badges .badge-wh2-stock,
.product-card-badges .off {
  position: static;
  margin: 0;
}
.badge-wh2-stock,
.badge-wh2-stock.is-low {
  background: #D97706 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 4px 10px !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
  line-height: 1.25 !important;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.35) !important;
}

/* Crisp Crimson Discount Pill */
.off {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  background: #DC2626 !important;
  color: #ffffff !important;
  border-radius: 999px !important;
  padding: 4px 10px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.35) !important;
  border: none !important;
  z-index: 3 !important;
  white-space: nowrap !important;
  line-height: 1.25 !important;
}

/* Full Sold Out Overlay when stock === 0 */
.p-sold-out-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.56);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  pointer-events: none;
}

/* Glassmorphic Favorite Heart (top-left in RTL: inset-inline-end) */
.p-wish {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  color: #ffffff;
  z-index: 5;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
  transition: color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.p-wish:hover {
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  transform: scale(1.08);
}
.p-wish.on {
  color: #ffffff;
  background: rgba(220, 38, 38, 0.92);
  border-color: rgba(255, 255, 255, 0.3);
}
.p-wish.on svg {
  fill: currentColor;
}
.p-wish .icon { width: 16px; height: 16px; }

/* Clean 3-Row RTL Card Body */
.p-body {
  padding: 14px 16px 16px;
  gap: 8px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Row 1: Title (right) + Rating (left) */
.p-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.p-body h3,
.p-card h3,
.product-card h3,
.p-title {
  margin: 0 !important;
  padding: 0 !important;
  font-family: 'Cairo', sans-serif !important;
  font-size: 15.5px !important;
  line-height: 1.4 !important;
  color: #0f172a !important;
  font-weight: 800 !important;
  text-align: start;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  flex: 1;
  min-width: 0;
}
.p-rating {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 999px;
  padding: 2px 7px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}
.p-rating .stars {
  color: #F59E0B !important;
  display: inline-flex;
  align-items: center;
}

/* Row 2: 1-Line Appetizing Description */
.p-desc {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: #64748b;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: start;
}

/* Row 3: Unified Footer (Price on RTL start, + Add pill on RTL end) */
.p-card-footer,
.p-footer,
.price-row {
  margin-top: auto !important;
  padding-top: 10px !important;
  border-top: 1px solid rgba(15, 23, 42, 0.06) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
}
.price,
.price-row strong,
.p-card .price-row strong,
.product-card .price-row strong,
.product-card-price {
  font-size: 17px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  white-space: nowrap !important;
  line-height: 1.2 !important;
}
.price-box {
  display: inline-flex !important;
  align-items: baseline !important;
  gap: 6px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}
.price-row s,
.p-body .price-row s,
.product-card-compare {
  font-size: 12px !important;
  color: #94a3b8 !important;
  text-decoration: line-through !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
}
.muted { color: var(--color-muted); font-size: 0.88rem; }
/* Fail-safe: Purge all availability / stock badges from cards */
.availability-badge,
.badge-fresh,
.card-availability-pill,
.p-stock-badge,
.branch-stock-badge,
.ready-stock,
.p-body .stock,
.stock {
  display: none !important;
}
/* Solid High-Contrast Quick Add (+) Button over the image */
.p-quick-add,
.p-card .p-quick-add,
.product-card .p-quick-add {
  position: absolute !important;
  bottom: 10px !important;
  inset-inline-end: 10px !important;
  z-index: 2 !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  display: inline-grid !important;
  place-items: center !important;
  background: #111827 !important;
  color: #fbbf24 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35) !important;
  border: 2px solid #fbbf24 !important;
  cursor: pointer !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, box-shadow 0.2s ease !important;
}
.p-quick-add .icon,
.p-quick-add svg,
.p-card .p-quick-add .icon,
.p-card .p-quick-add svg {
  width: 20px !important;
  height: 20px !important;
  stroke: #fbbf24 !important;
  stroke-width: 2.5 !important;
  color: #fbbf24 !important;
  fill: none !important;
}
.p-quick-add:hover,
.p-card .p-quick-add:hover,
.product-card .p-quick-add:hover {
  background: #fbbf24 !important;
  color: #111827 !important;
  border-color: #fbbf24 !important;
  transform: scale(1.12) !important;
  box-shadow: 0 6px 18px rgba(251, 191, 36, 0.45) !important;
}
.p-quick-add:hover .icon,
.p-quick-add:hover svg,
.p-card .p-quick-add:hover .icon,
.p-card .p-quick-add:hover svg {
  stroke: #111827 !important;
  color: #111827 !important;
}
.p-quick-add:active {
  transform: scale(0.94) !important;
}
.p-quick-add:focus-visible {
  outline: 2px solid var(--accent, #F59E0B) !important;
  outline-offset: 2px !important;
}
.p-quick-add:disabled,
.p-quick-add.btn-sold-out {
  opacity: 0.55 !important;
  cursor: not-allowed !important;
  background: #71717a !important;
  border-color: #e4e4e7 !important;
  box-shadow: none !important;
}
.p-quick-add:disabled:hover {
  transform: none !important;
}
.p-quick-add.added {
  background: #16a34a !important;
  color: #ffffff !important;
  border-color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.5) !important;
}
.empty { padding: 30px; text-align: center; color: var(--color-muted); border: 1px dashed var(--color-border); border-radius: var(--radius-md); grid-column: 1/-1; }
.drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.65); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; pointer-events: none; transition: opacity 0.25s ease; z-index: 2490 !important; }
.drawer-overlay.open { opacity: 1; pointer-events: auto; }
.drawer,
#drawer,
#cartDrawer {
  position: fixed !important;
  top: 0 !important;
  bottom: 0 !important;
  inset-inline-end: 0 !important;
  width: min(420px, 100vw) !important;
  background: #ffffff !important;
  z-index: 2500 !important;
  transform: translateX(-110%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: flex !important;
  flex-direction: column !important;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.35) !important;
}
[dir="ltr"] .drawer,
[dir="ltr"] #drawer,
[dir="ltr"] #cartDrawer { transform: translateX(110%); }
.drawer.open,
#drawer.open,
#cartDrawer.open { transform: none !important; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-block-end: 1px solid var(--color-border); background: #ffffff; }
.drawer-body { flex: 1; overflow: auto; padding: 16px; display: grid; gap: 12px; align-content: start; }
.c-row { display: flex; gap: 12px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 12px; }
.c-row img,
.cart-item-img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; background-color: #f1f5f9; }
.c-info { flex: 1; display: grid; gap: 4px; }
.qty { display: inline-flex; gap: 8px; align-items: center; }
.qty button { width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--color-border); background: #fff; cursor: pointer; }
.c-total { display: grid; gap: 6px; justify-items: end; font-weight: 700; }
.rm { border: 0; background: transparent; color: var(--color-danger); cursor: pointer; }
.drawer-foot { padding: 16px 18px calc(16px + env(safe-area-inset-bottom, 16px)); border-block-start: 1px solid var(--color-border); display: grid; gap: 10px; background: #ffffff; }
.drawer-foot .btn,
#checkoutBtn,
.drawer-checkout-btn,
#cartDrawerCheckoutBtn {
  width: 100% !important;
  justify-content: center !important;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
  color: #111827 !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4) !important;
  border: none !important;
  border-radius: var(--radius-md) !important;
  padding-block: 13px !important;
  font-size: 1rem !important;
  cursor: pointer !important;
  transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease !important;
}
.drawer-foot .btn:hover,
#checkoutBtn:hover,
.drawer-checkout-btn:hover,
#cartDrawerCheckoutBtn:hover {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  color: #111827 !important;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.5) !important;
  transform: translateY(-1px) !important;
}
.tot-row { display: flex; justify-content: space-between; font-size: 0.95rem; }
.tot-row.grand { font-weight: 800; font-size: 1.15rem; border-block-start: 1px solid var(--color-border); padding-block-start: 10px; color: #111827; }
.modal { position: fixed; inset: 0; z-index: 2500 !important; display: none; place-items: center; padding: 16px; }
.modal.open { display: grid; }
.modal::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.65); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.modal-card { position: relative; background: #fff; border-radius: var(--radius-lg); padding: 20px; width: min(520px, 94vw); max-height: 88vh; overflow: auto; box-shadow: var(--shadow-pop); z-index: 2501 !important; }
.modal-card h2 { margin-block-start: 0; }

/* ── Auth Modal (Login / Register overlay) ─────────────────────────────────── */
#authModal.auth-modal,
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}
#authModal.auth-modal.open,
.auth-modal.open {
  display: flex !important;
}
.auth-modal-ov {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1;
}
.auth-card {
  position: relative;
  z-index: 2;
  background: #0f172a;
  color: #f8fafc;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 16px;
  padding: 24px 28px;
  width: min(440px, 94vw);
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.7);
  box-sizing: border-box;
  animation: authModalSlideIn 0.2s ease-out;
}
@keyframes authModalSlideIn {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.auth-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.auth-card-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: #f8fafc;
}
.auth-close-btn {
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: #94a3b8;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: all 0.15s ease;
}
.auth-close-btn:hover {
  background: #334155;
  color: #f8fafc;
}
.auth-tabs {
  display: flex;
  background: #0b1120;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 18px;
}
.auth-tabs button {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #94a3b8;
  cursor: pointer;
  font-family: 'Cairo', sans-serif !important;
  transition: all 0.15s ease;
}
.auth-tabs button.on {
  background: #1e293b;
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.auth-card .field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}
.auth-card .field label {
  font-size: 0.84rem;
  font-weight: 700;
  color: #cbd5e1;
}
.auth-card .field input {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.28) !important;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.95rem;
  box-sizing: border-box;
  background: #1e293b !important;
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
  font-family: 'Cairo', sans-serif !important;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.auth-card .field input::placeholder {
  color: #64748b;
}
.auth-card .field input:focus {
  outline: none;
  border-color: #f59e0b !important;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25) !important;
}
.auth-err,
.auth-ok {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.auth-err {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}
.auth-ok {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}
.auth-card [hidden] {
  display: none !important;
}
.track-card { padding: 12px; margin-block-start: 10px; }
.success-code { font-size: 1.6rem; font-weight: 800; color: var(--primary, #f59e0b); }

/* Pill / ghost navigation buttons (e.g. Home back button) */
.nav-btn,
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #4a5568;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 9999px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}
.nav-btn:hover,
.back-btn:hover {
  background: #f7fafc;
  border-color: var(--primary, #f59e0b);
  color: var(--text-primary, #111111);
  transform: translateX(-2px);
}
.nav-btn:focus-visible,
.back-btn:focus-visible,
.hero-cta:focus-visible { outline: 2px solid var(--primary, #f59e0b); outline-offset: 2px; }
.nav-btn .icon,
.back-btn .icon { color: inherit; }
/* RTL pages are the default, so the "back" pill slides left; slide right once LTR */
[dir="ltr"] .nav-btn:hover,
[dir="ltr"] .back-btn:hover { transform: translateX(2px); }

/* Hero CTA pill button ("Shop now / تسوق الآن") */
.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #111827 !important;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
  text-decoration: none;
  transition: background 0.18s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.hero-cta:hover {
  background: #fbbf24;
  color: #111827 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}
/* ── 3-Banner Promotional Ads Showcase (Desktop Grid & Mobile Peek Slider) ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
.promo-banners-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 16px 0;
}
.promo-banners-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  grid-template-rows: repeat(2, 220px);
  gap: 16px;
  margin: 16px auto 0;
}
.promo-banner-card {
  display: block;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  text-decoration: none;
  background-color: #f1f5f9;
}
.promo-banner-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}
.promo-banner-card.slot-1 {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  height: 100%;
}
.promo-banner-card.slot-2 {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
}
.promo-banner-card.slot-3 {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
}
.promo-banner-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

/* ── Main storefront container spacing directly beneath promo banners ──── */
main.container {
  padding-block: 14px 24px;
}

/* ── Section headers (shared by categories & products) ───────────────────── */
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-block: 0 12px; }
.section-head h2 { margin: 0; font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; color: #1e293b; }
.section-head h2::after { display: none !important; }
.section-head .muted { color: var(--color-muted); font-size: 0.9rem; }
.section-head .grid-toggle { margin-inline-start: auto; }

/* Subtle view-all button for category header pointing to /catalog.html */
.category-view-all {
  margin-inline-start: auto;
  display: inline-flex;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary, #111111);
  text-decoration: none;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle, #E4E4E7);
  background: var(--bg-card, #ffffff);
  transition: all 0.15s ease;
}
.category-view-all:hover {
  background: var(--header-bg, #111111);
  color: #fbbf24;
  border-color: #fbbf24;
}
/* ── Visual category showcase (app-style horizontal flex scroll) ────────── */
.category-section { margin-block-end: 32px; }

.categories-grid, #categoriesGrid, .category-grid, .categories-strip, .categories-scroll, #categoriesContainer, #categoryCards {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 12px !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding: 10px 4px !important;
  margin: 0 0 6px !important;
  scrollbar-width: none !important; /* Hide scrollbar for Firefox */
}
.categories-grid::-webkit-scrollbar,
#categoriesGrid::-webkit-scrollbar,
.category-grid::-webkit-scrollbar,
.categories-strip::-webkit-scrollbar,
.categories-scroll::-webkit-scrollbar,
#categoriesContainer::-webkit-scrollbar,
#categoryCards::-webkit-scrollbar {
  display: none !important; /* Hide scrollbar for Chrome/Safari */
}

/* Strictly Uniform Category Card Dimensions */
.category-card,
.category-icon-card,
.cat-item,
.cat-card {
  width: 105px !important;
  min-width: 105px !important;
  max-width: 105px !important;
  height: 125px !important;
  flex: 0 0 105px !important;
  scroll-snap-align: start;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 8px 6px !important;
  box-sizing: border-box !important;
  background: #ffffff !important;
  border-radius: 16px !important;
  border: 1.5px solid #f0f0f0 !important;
  text-decoration: none !important;
  color: #111111 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
  transition: all 0.25s ease !important;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}
.category-card:hover,
.category-icon-card:hover,
.cat-item:hover,
.cat-card:hover {
  transform: translateY(-4px) !important;
  border-color: #fbbf24 !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
}
.category-card:active,
.category-icon-card:active {
  transform: scale(0.96) !important;
}

/* Enlarged 3D Icon styling */
.category-3d-icon,
.cat-icon-img {
  width: 74px !important;
  height: 74px !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto 6px !important;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
  transition: transform 0.25s ease, filter 0.25s ease !important;
  user-select: none;
  pointer-events: none;
  flex-shrink: 0;
}
.category-card:hover .category-3d-icon,
.category-icon-card:hover .category-3d-icon,
.category-card:hover .cat-icon-img,
.category-3d-icon:hover {
  transform: scale(1.1) !important;
  filter: drop-shadow(0 8px 14px rgba(245, 158, 11, 0.28)) !important;
}

/* Single-Word Label styling */
.category-name,
.cat-name,
.category-icon-title {
  font-size: 0.92rem !important;
  font-weight: 800 !important;
  color: #111111 !important;
  text-align: center !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  width: 100% !important;
  display: block !important;
}

/* Hide Product Count */
.category-count,
.cat-count,
.category-card small,
.category-icon-count,
.category-icon-card small,
.skel-cat-count {
  display: none !important;
}

.category-emoji,
.category-icon-emoji {
  display: inline-block;
  font-size: 2.2rem;
  line-height: 1;
  margin: 0 auto 6px;
  transition: transform 0.25s ease;
}
.category-card:hover .category-emoji,
.category-icon-card:hover .category-emoji {
  transform: scale(1.1) !important;
}

/* ── Desktop: Enlarge Category Icons & Cards (>= 992px) ─────────────────── */
@media (min-width: 992px) {
  .category-card,
  .category-icon-card,
  .cat-item,
  .cat-card {
    width: 120px !important;
    min-width: 120px !important;
    max-width: 120px !important;
    flex: 0 0 120px !important;
    height: 138px !important;
    padding: 10px 8px !important;
  }
  .category-3d-icon,
  .cat-icon-img {
    width: 86px !important;
    height: 86px !important;
    margin: 0 auto 8px !important;
  }
  .category-name,
  .cat-name,
  .category-icon-title {
    font-size: 1rem !important;
    font-weight: 800 !important;
  }
}
.category-icon-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--color-text, #1e293b);
  line-height: 1.25;
  margin-bottom: 3px;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}
.category-icon-count {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-muted, #64748b);
  line-height: 1.2;
}

/* Backward compatibility for .cat-card if referenced elsewhere */
.cat-card {
  display: flex; flex-direction: column; gap: 10px; cursor: pointer;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-card); transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.cat-card .cat-media { position: relative; aspect-ratio: 16/10; background: #f1f5f9; overflow: hidden; }
.cat-card .cat-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.cat-card:hover .cat-media img { transform: scale(1.06); }
.cat-card .cat-num { position: absolute; top: 10px; inset-inline-end: 10px; background: var(--color-primary-soft); color: var(--color-primary-hover); border-radius: 999px; padding-inline: 9px; padding-block: 3px; font-size: 0.7rem; font-weight: 800; }
.cat-card .cat-body { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 14px 16px; }
.cat-card .cat-name { flex: 1; font-size: 1.05rem; font-weight: 800; color: var(--color-text); }
/* ── Product catalog: filter bar + New Arrivals & Best Sellers ─────────────── */
.product-section { margin-block-end: 20px; scroll-margin-top: 78px; }
#resultCount { font-weight: 700; color: var(--color-muted); font-size: 0.88rem; white-space: nowrap; }
.catalog-filter {
  display: none !important;
}
.catalog-filter .pills { margin: 0; }
.catalog-filter .grid-toggle { margin-inline-start: auto; }
.subsection { margin-block: 24px 8px; }
.subsection-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.subsection-head h3 { margin: 0; font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em; color: var(--color-text); }
.subsection-head h3::after { content: ""; display: block; width: 30px; height: 4px; border-radius: 999px; background: var(--color-accent); margin-block-start: 6px; }
.subsection-head .muted { color: var(--color-muted); font-size: 0.85rem; font-weight: 700; }
.view-all {
  margin-inline-start: auto; display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--border-subtle, #E4E4E7); background: var(--bg-card, #ffffff);
  color: var(--text-primary, #111111); border-radius: 999px; padding-inline: 16px; padding-block: 8px;
  font-size: 0.85rem; font-weight: 700; cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.view-all:hover { background: #111827; border-color: #fbbf24; color: #fbbf24; }
.view-all .icon { width: 16px; height: 16px; }

/* ── Section header with inline view switcher (Single / Double Grid Buttons) ── */
.section-header-inline {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin: 18px 0 12px !important;
  padding: 0 4px !important;
}
.section-header-inline .section-title-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}
.section-header-inline .section-title,
.section-header-inline h3 {
  margin: 0 !important;
  font-size: 1.25rem !important;
  font-weight: 800 !important;
  color: var(--color-text, #1e293b) !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}
.section-header-inline .section-title::after,
.section-header-inline h3::after {
  display: none !important;
}
.section-header-inline .counter,
.section-header-inline .muted {
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  color: var(--color-muted, #71717a) !important;
}
.view-mode-toggle,
.grid-toggle {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  background: #f4f4f5 !important;
  padding: 3px !important;
  border-radius: 10px !important;
  margin-inline-start: auto !important;
}
.view-mode-toggle button,
.grid-toggle button {
  border: none !important;
  background: transparent !important;
  padding: 4px 8px !important;
  border-radius: 7px !important;
  cursor: pointer !important;
  color: #71717a !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.15s ease !important;
}
.view-mode-toggle button:hover,
.grid-toggle button:hover {
  color: #111111 !important;
}
.view-mode-toggle button.active,
.grid-toggle button.active {
  background: #111827 !important;
  color: #fbbf24 !important;
  border-color: #111827 !important;
}
.view-mode-toggle button svg,
.grid-toggle button svg,
.view-mode-toggle .icon,
.grid-toggle .icon {
  width: 17px !important;
  height: 17px !important;
  color: inherit !important;
  stroke: currentColor !important;
}
.view-mode-toggle button.active svg,
.grid-toggle button.active svg,
.view-mode-toggle button.active .icon,
.grid-toggle button.active .icon {
  stroke: #fbbf24 !important;
  color: #fbbf24 !important;
  fill: none !important;
}
.view-all-link {
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

/* Split product grids — desktop 4-up, tablet 3-up, mobile overridden below */
#newArrivalsGrid:not(.list-view):not(.grid-cols-1), #bestSellersGrid:not(.list-view):not(.grid-cols-1) { grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media screen and (max-width: 1020px) { #newArrivalsGrid:not(.list-view):not(.grid-cols-1), #bestSellersGrid:not(.list-view):not(.grid-cols-1) { grid-template-columns: repeat(3, 1fr); } }

/* ── Mobile: 2-column default grid + compact cards ──────────────────────── */
@media screen and (max-width: 768px) {
  .grid-toggle { display: inline-flex; }
  #newArrivalsGrid:not(.list-view):not(.grid-cols-1), #bestSellersGrid:not(.list-view):not(.grid-cols-1) { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  /* Compact 2-col cards: preserve 3-row RTL rhythm */
  #newArrivalsGrid:not(.grid-cols-1):not(.list-view) .p-card, #bestSellersGrid:not(.grid-cols-1):not(.list-view) .p-card { border-radius: 18px; }
  #newArrivalsGrid:not(.grid-cols-1):not(.list-view) .p-body, #bestSellersGrid:not(.grid-cols-1):not(.list-view) .p-body { padding: 12px; gap: 6px; }
  #newArrivalsGrid:not(.grid-cols-1):not(.list-view) .p-body h3, #bestSellersGrid:not(.grid-cols-1):not(.list-view) .p-body h3 { font-size: 14px !important; line-height: 1.4 !important; }
  #newArrivalsGrid:not(.grid-cols-1):not(.list-view) .price-row strong, #bestSellersGrid:not(.grid-cols-1):not(.list-view) .price-row strong { font-size: 15px !important; }
  #newArrivalsGrid:not(.grid-cols-1):not(.list-view) .price-row s, #bestSellersGrid:not(.grid-cols-1):not(.list-view) .price-row s { font-size: 11px !important; }
  #newArrivalsGrid:not(.grid-cols-1):not(.list-view) .p-card-cta-btn, #bestSellersGrid:not(.grid-cols-1):not(.list-view) .p-card-cta-btn { padding: 7px 12px !important; font-size: 12.5px !important; }
  /* 3-Banner Promotional Ads: Enforce identical dimensions for all 3 slots on mobile (<= 768px) */
  .promo-banners-wrapper {
    padding: 6px 0 0 !important;
    margin-bottom: 6px !important;
    max-width: 100% !important;
  }
  .promo-banners-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 12px !important;
    padding: 10px 14px 0 !important;
    scrollbar-width: none;
    margin: 4px 0 0 !important;
  }
  .promo-banners-grid::-webkit-scrollbar {
    display: none;
  }

  /* Enforce identical width, height, and aspect ratio for ALL 3 banner slots */
  .promo-banner-card,
  .promo-banner-card.slot-1,
  .promo-banner-card.slot-2,
  .promo-banner-card.slot-3 {
    flex: 0 0 86% !important;
    width: 86% !important;
    max-width: 86% !important;
    height: 190px !important; /* Unified fixed height */
    aspect-ratio: 16 / 9;
    scroll-snap-align: center;
    border-radius: 16px;
    overflow: hidden;
    margin: 0 !important;
    display: block !important;
    grid-column: auto !important;
    grid-row: auto !important;
  }

  .promo-banner-card img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 16px !important;
    display: block !important;
  }

  /* Main container & category header spacing directly beneath promo banners */
  main.container {
    padding-block-start: 0 !important;
  }

  /* Category section & header wrapper: 4px top, 8px bottom */
  .category-section {
    margin-block-start: 0 !important;
    margin-block-end: 6px !important;
  }
  .category-section .section-head,
  .category-section-head,
  .section-head {
    margin: 4px 0 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
  }
  .category-section .section-head h2,
  .category-section-head h2,
  .section-head h2 {
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    margin: 0 !important;
    line-height: 1.25 !important;
  }
  .category-section .section-head h2::after,
  .category-section-head h2::after,
  .section-head h2::after {
    display: none !important;
  }
  .category-view-all {
    font-size: 0.78rem !important;
    padding: 3px 8px !important;
  }

  /* Mobile: 2-Row Horizontal Swiper (3 Top / 3 Bottom + Scrollable) */
  .categories-strip,
  .categories-scroll,
  #categoriesContainer,
  .categories-grid,
  #categoriesGrid,
  .category-grid {
    display: grid !important;
    grid-template-rows: repeat(2, auto) !important;
    grid-auto-flow: column !important;
    grid-auto-columns: calc((100vw - 44px) / 3.25) !important;
    gap: 10px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 8px 12px 14px !important;
    scrollbar-width: none !important;
  }
  .categories-strip::-webkit-scrollbar,
  .categories-scroll::-webkit-scrollbar,
  #categoriesContainer::-webkit-scrollbar,
  .categories-grid::-webkit-scrollbar,
  #categoriesGrid::-webkit-scrollbar,
  .category-grid::-webkit-scrollbar {
    display: none !important;
  }
  .category-card,
  .category-icon-card,
  .cat-item,
  .cat-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    flex: none !important;
    height: 108px !important;
    scroll-snap-align: start !important;
    padding: 6px 4px !important;
    border-radius: 14px !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
  }
  .category-card:hover,
  .category-icon-card:hover {
    border-color: #fbbf24 !important;
  }
  .category-3d-icon,
  .cat-icon-img {
    width: 62px !important;
    height: 62px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto 4px !important;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.09)) !important;
  }
  .category-name,
  .cat-name,
  .category-icon-title {
    font-size: 0.82rem !important;
    font-weight: 800 !important;
    color: #111111 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    width: 100% !important;
    text-align: center !important;
    display: block !important;
  }
  .category-count,
  .cat-count,
  .category-card small,
  .category-icon-count,
  .skel-cat-count {
    display: none !important;
  }

  /* Products section: minimized vertical spacing directly beneath categories */
  .product-section,
  #products,
  #latestProductsSection,
  #newArrivalsSection,
  .category-section + .product-section .subsection:first-of-type {
    margin-block-start: 6px !important;
    padding-block-start: 0 !important;
  }
  .catalog-filter {
    gap: 8px;
    margin: 0 !important;
    padding: 0 0 4px !important;
    border-block-end: none !important;
  }
  .subsection-head h3 { font-size: 1.12rem; }
  .view-all { padding-inline: 12px; padding-block: 6px; }
}
@media screen and (max-width: 480px) {
  .hero-proof { flex-wrap: wrap; }
}
/* ── Skeleton loaders (shimmer placeholders during API fetch) ────────────── */
.skeleton {
  position: relative;
  overflow: hidden;
  background: #e2e8f0;
  background-image: linear-gradient(100deg, #e2e8f0 30%, #f1f5f9 46%, #e2e8f0 62%);
  background-size: 200% 100%;
  animation: matgary-shimmer 1.4s linear infinite;
  color: transparent !important;
  pointer-events: none;
  user-select: none;
}
@keyframes matgary-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .skeleton { animation: none; }
}
/* Product card skeleton (matches .p-card: 1:1 media, title bar, price bar, round action) */
.p-card-skel {
  background: #fff;
  border: 1px solid #edf2f7;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.p-card-skel .skel-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #e2e8f0;
  background-image: linear-gradient(100deg, #e2e8f0 30%, #f1f5f9 46%, #e2e8f0 62%);
  background-size: 200% 100%;
  animation: matgary-shimmer 1.4s linear infinite;
}
.p-card-skel .skel-action {
  position: absolute;
  bottom: 10px;
  inset-inline-end: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #cbd5e1;
  background-image: linear-gradient(100deg, #cbd5e1 30%, #e2e8f0 46%, #cbd5e1 62%);
  background-size: 200% 100%;
  animation: matgary-shimmer 1.4s linear infinite;
}
.p-card-skel .skel-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.p-card-skel .skel-title,
.p-card-skel .skel-price {
  border-radius: 6px;
  background: #e2e8f0;
  background-image: linear-gradient(100deg, #e2e8f0 30%, #f1f5f9 46%, #e2e8f0 62%);
  background-size: 200% 100%;
  animation: matgary-shimmer 1.4s linear infinite;
}
.p-card-skel .skel-title { width: 82%; height: 14px; }
.p-card-skel .skel-price { width: 55%; height: 12px; margin-block-start: auto; }
/* Category icon card skeleton */
.category-icon-card.category-icon-skeleton {
  pointer-events: none;
}
.category-icon-card.category-icon-skeleton .category-icon-circle {
  border-color: transparent;
}
.category-icon-card.category-icon-skeleton .skel-shimmer {
  background: #e2e8f0;
  background-image: linear-gradient(100deg, #e2e8f0 30%, #f1f5f9 46%, #e2e8f0 62%);
  background-size: 200% 100%;
  animation: matgary-shimmer 1.4s linear infinite;
}
.category-icon-card.category-icon-skeleton .skel-cat-title {
  width: 70%;
  height: 12px;
  border-radius: 4px;
  margin-bottom: 4px;
}
.category-icon-card.category-icon-skeleton .skel-cat-count {
  width: 45%;
  height: 10px;
  border-radius: 4px;
}

/* Category card skeleton (matches .cat-card: media banner + name bar) */
.cat-card-skel {
  background: #fff;
  border: 1px solid #edf2f7;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}
.cat-card-skel .skel-cat-media {
  aspect-ratio: 16 / 9;
  background: #e2e8f0;
  background-image: linear-gradient(100deg, #e2e8f0 30%, #f1f5f9 46%, #e2e8f0 62%);
  background-size: 200% 100%;
  animation: matgary-shimmer 1.4s linear infinite;
}
.cat-card-skel .skel-cat-body { padding: 12px 14px; }
.cat-card-skel .skel-cat-name {
  width: 60%;
  height: 14px;
  border-radius: 6px;
  background: #e2e8f0;
  background-image: linear-gradient(100deg, #e2e8f0 30%, #f1f5f9 46%, #e2e8f0 62%);
  background-size: 200% 100%;
  animation: matgary-shimmer 1.4s linear infinite;
}
/* ── Universal 4-column footer (Modern Gourmet Onyx & Canary Yellow) ───────── */
footer, .site-footer, .footer {
  background: var(--dark-surface, #18181B) !important;
  color: #e2e8f0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-block-start: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 40px;
  margin-block-start: 40px;
}
.footer-inner {
  max-width: 1200px; margin-inline: auto; padding-inline: 20px; padding-block: 48px 40px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px;
}
@media (max-width: 1020px) { .footer-inner { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-col { display: grid; gap: 12px; align-content: start; min-width: 0; }
.footer-col h4, .footer h4, .footer h5, .footer-title {
  margin: 0; font-size: 0.95rem; font-weight: 700; color: #ffffff !important; letter-spacing: -0.01em;
}
/* Brand: white wordmark + Canary Yellow icon accent */
.footer-logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.2rem; color: #ffffff !important; }
.footer-logo .logo-icon { width: 22px; height: 22px; color: var(--primary, #fbbf24); stroke: var(--primary, #fbbf24); }
.footer-bio { margin: 0; font-size: 0.88rem; line-height: 1.8; color: #d4d4d8; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a, .footer a {
  font-size: 0.9rem; font-weight: 600; color: #a1a1aa; text-decoration: none;
  transition: color 0.2s ease;
}
.footer-links a:hover, .footer-links a:focus-visible,
.footer a:hover, .footer a:focus-visible { color: var(--primary, #fbbf24) !important; }
.footer-trust { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 700; color: #e2e8f0; }
.footer-badge .icon { width: 16px; height: 16px; color: var(--primary, #fbbf24); }
.footer-contact { display: grid; gap: 10px; }
.footer-contact a { color: #a1a1aa; font-weight: 600; font-size: 0.9rem; transition: color 0.2s ease; }
.footer-contact a:hover { color: var(--primary, #fbbf24) !important; }
.footer-contact .hours { color: #71717a; font-size: 0.85rem; line-height: 1.6; }
.footer-wa {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12); color: #ffffff; font-weight: 700; font-size: 0.88rem;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.footer-wa:hover, .footer-wa:focus-visible { background: #25D366; border-color: #25D366; color: #ffffff; }
.footer-wa .icon { color: currentColor; }
.footer-bar, .footer-bottom, .copyright {
  max-width: 1200px; margin-inline: auto; padding-inline: 20px; padding-block: 16px;
  border-block-start: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center; font-size: 0.82rem; color: #71717a; background: rgba(0, 0, 0, 0.25);
}

/* ══════════════════════════════════════════════════════════════════════════
   RESTAURANT FOOD-TECH STYLES: Meal Customizer Drawer & Floating Order Bar
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Meal Customizer Drawer / Modal ── */
body.mc-open { overflow: hidden; }

.mc-overlay {
  position: fixed; inset: 0; z-index: 998;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity 0.28s ease;
}
.mc-overlay.open {
  opacity: 1; pointer-events: auto;
}

.mc-drawer {
  position: fixed; z-index: 999;
  background: #ffffff;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25);
  display: flex; flex-direction: column;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Mobile: Bottom Sheet */
@media (max-width: 768px) {
  .mc-drawer {
    inset-inline: 0; bottom: 0;
    max-height: 90vh;
    border-radius: 24px 24px 0 0;
    transform: translateY(100%);
  }
  .mc-drawer.open {
    transform: translateY(0);
  }
}

/* Desktop: Centered Floating Modal */
@media (min-width: 769px) {
  .mc-drawer {
    top: 50%; left: 50%;
    transform: translate(-50%, -46%) scale(0.96);
    width: 90%; max-width: 580px;
    max-height: 86vh;
    border-radius: 20px;
    opacity: 0; pointer-events: none;
  }
  .mc-drawer.open {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1; pointer-events: auto;
  }
}

/* Header & Hero */
.mc-header {
  position: relative;
  border-bottom: 1px solid #f1f5f9;
  background: #ffffff;
  border-radius: 20px 20px 0 0;
}
.mc-close-btn {
  position: absolute; top: 14px; inset-inline-end: 14px; z-index: 10;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(15, 23, 42, 0.6); color: #ffffff;
  border: none; cursor: pointer; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, transform 0.15s ease;
}
.mc-close-btn:hover { background: rgba(15, 23, 42, 0.85); transform: scale(1.05); }

.mc-hero-media {
  position: relative; width: 100%; height: 210px; overflow: hidden;
  background: #0f172a;
}
.mc-hero-media img {
  width: 100%; height: 100%; object-fit: cover;
}
.mc-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.8) 0%, transparent 60%);
}
.mc-hero-info {
  padding: 16px 20px 12px;
}
.mc-hero-top {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
}
.mc-hero-top h2 {
  margin: 0; font-size: 1.35rem; font-weight: 800; color: #0f172a;
}
.mc-hero-price {
  font-size: 1.25rem; font-weight: 800; color: #111111 !important;
  white-space: nowrap;
}
.mc-hero-desc {
  margin: 6px 0 10px; font-size: 0.88rem; line-height: 1.5; color: #64748b;
}
.mc-tags-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.mc-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.78rem; font-weight: 700; padding: 4px 10px;
  border-radius: 999px;
}
.mc-tag-prep { background: #fef3c7; color: #b45309; }
.mc-tag-cal { background: #fef3c7; color: #92400e; }
.mc-tag-spicy { background: #ffedd5; color: #ea580c; font-weight: 800; }

/* Body: Scrollable modifier groups */
.mc-body {
  flex: 1; overflow-y: auto; padding: 16px 20px;
  display: flex; flex-direction: column; gap: 20px;
  -webkit-overflow-scrolling: touch;
}
.mc-loading {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 40px 0; color: #64748b; font-size: 0.9rem;
}
.mc-spinner {
  width: 32px; height: 32px; border: 3px solid #e2e8f0;
  border-top-color: var(--color-primary, #f59e0b);
  border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.mc-group {
  background: #f8fafc; border: 1.5px solid #e2e8f0;
  border-radius: 14px; padding: 14px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.mc-group.has-error {
  border-color: #ef4444; background: #fff5f5;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}
.mc-group-error {
  margin-top: 8px; font-size: 0.82rem; font-weight: 700; color: #dc2626;
}
.mc-group-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-bottom: 12px;
}
.mc-group-title-wrap {
  display: flex; flex-direction: column; gap: 2px;
}
.mc-group-title {
  font-size: 0.98rem; font-weight: 800; color: #1e293b;
}
.mc-group-hint {
  font-size: 0.78rem; color: #64748b;
}
.mc-badge-req {
  font-size: 0.72rem; font-weight: 800; color: #fbbf24;
  background: #111827; border: 1px solid rgba(251, 191, 36, 0.4);
  padding: 3px 8px; border-radius: 6px;
}
.mc-badge-optional {
  font-size: 0.72rem; font-weight: 600; color: #64748b;
  background: #f1f5f9; padding: 3px 8px; border-radius: 6px;
}

/* Options Grid */
.mc-options-grid {
  display: grid; gap: 8px;
}
.mc-opt-card {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-radius: 10px; background: #ffffff;
  border: 1.5px solid #e2e8f0; cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease;
  user-select: none;
}
.mc-opt-card:hover {
  border-color: #cbd5e1; background: #fdfdfd;
}
.mc-opt-input {
  display: none;
}
.mc-opt-content {
  display: flex; align-items: center; gap: 10px;
}
.mc-opt-marker {
  width: 18px; height: 18px; border: 2px solid #cbd5e1;
  background: #ffffff; display: grid; place-items: center;
  transition: border-color 0.16s ease, background 0.16s ease;
  flex: none;
}
.mc-radio-card .mc-opt-marker { border-radius: 50%; }
.mc-check-card .mc-opt-marker { border-radius: 5px; }

.mc-opt-input:checked + .mc-opt-content .mc-opt-marker {
  border-color: #111827;
  background: #fbbf24;
}
.mc-radio-card .mc-opt-input:checked + .mc-opt-content .mc-opt-marker::after {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: #111111;
}
.mc-check-card .mc-opt-input:checked + .mc-opt-content .mc-opt-marker::after {
  content: ""; width: 5px; height: 9px; border: solid #111111; border-width: 0 2.2px 2.2px 0; transform: rotate(45deg); margin-top: -2px;
}
.mc-opt-card:has(.mc-opt-input:checked) {
  border-color: #111827;
  background: rgba(251, 191, 36, 0.15);
}
.mc-opt-name {
  font-size: 0.9rem; font-weight: 600; color: #1e293b;
}
.mc-opt-price {
  font-size: 0.86rem; font-weight: 700; color: var(--text-primary, #111111);
}
.mc-free-tag {
  color: #059669; font-weight: 600; font-size: 0.78rem;
}

/* Notes Textarea */
.mc-notes-input {
  width: 100%; border: 1.5px solid #cbd5e1; border-radius: 10px;
  padding: 10px 14px; font-size: 0.88rem; outline: none;
  background: #ffffff; resize: none; font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.mc-notes-input:focus {
  border-color: #fbbf24;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2);
}

/* Sticky Footer */
.mc-footer {
  padding: 14px 20px; border-top: 1px solid #f1f5f9;
  background: #ffffff; border-radius: 0 0 20px 20px;
  display: flex; align-items: center; gap: 14px;
}
.mc-qty-control {
  display: inline-flex; align-items: center; gap: 10px;
  background: #f1f5f9; border-radius: 12px; padding: 4px 8px;
}
.mc-qty-btn {
  width: 34px; height: 34px; border-radius: 8px; border: none;
  background: #ffffff; color: #0f172a; font-size: 1.2rem; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08); transition: background 0.15s ease, transform 0.1s ease;
}
.mc-qty-btn:hover { background: #e2e8f0; }
.mc-qty-btn:active { transform: scale(0.95); }
.mc-qty-val {
  min-width: 24px; text-align: center; font-size: 1rem; font-weight: 800; color: #0f172a;
}
.mc-submit-btn,
.meal-submit-btn {
  flex: 1; display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; border-radius: 14px; font-size: 1rem; font-weight: 800;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important; color: #111827 !important; border: none;
  cursor: pointer; box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.mc-submit-btn:hover,
.meal-submit-btn:hover {
  background: #fbbf24 !important;
  color: #111827 !important;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.45);
  transform: translateY(-1px) scale(1.01);
}
.mc-submit-btn:active,
.meal-submit-btn:active { transform: scale(0.98); }
.mc-submit-price {
  font-family: inherit; font-size: 1.05rem; font-weight: 800;
}

/* ── Mobile Floating Order Summary Bar (Stacked cleanly above #pwaBottomNav) ── */
#floatingOrderBar,
.floating-order-bar {
  position: fixed !important; inset-inline: 12px !important; bottom: 84px !important; z-index: 1040 !important;
  max-width: 500px !important; margin-inline: auto !important;
  background: var(--dark-surface, #18181B); color: #ffffff;
  border-radius: 18px; padding: 10px 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.12);
  animation: floatBarSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes floatBarSlideUp {
  from { transform: translateY(120%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.floating-order-bar.hidden { display: none !important; }
.fob-info {
  display: flex; align-items: center; gap: 10px; cursor: pointer; flex: 1;
}
.fob-icon-wrap {
  width: 40px; height: 40px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; flex: none;
}
.fob-text {
  display: flex; flex-direction: column; gap: 2px;
}
.fob-count {
  font-size: 0.85rem; color: #a1a1aa; font-weight: 600;
}
.fob-price {
  font-size: 1.05rem; color: #ffffff; font-weight: 800;
}
#floatingOrderBar .fob-btn,
.floating-order-bar .fob-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px; border-radius: 12px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
  color: #111827 !important;
  font-weight: 800; font-size: 0.92rem; border: none; cursor: pointer;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
  transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
#floatingOrderBar .fob-btn:hover,
.floating-order-bar .fob-btn:hover {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  color: #111827 !important;
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
}

/* ── Cart Item Modifiers & Notes Badges ── */
.c-mods-list {
  display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px;
}
.c-mod-pill {
  font-size: 0.73rem; font-weight: 700; padding: 2px 7px;
  background: #f1f5f9; color: #475569; border-radius: 6px;
  border: 1px solid #e2e8f0;
}
.c-item-notes {
  display: block; font-size: 0.74rem; font-weight: 600; color: #d97706;
  margin-top: 3px; font-style: italic;
}

/* ── Dining Mode Tabs High-Contrast System ── */
.dining-mode-tabs .tab-btn,
.dining-tab {
  background: #F4F4F5;
  color: #52525B;
  border: 1px solid #E4E4E7;
  font-weight: 700;
  transition: all 0.2s ease;
}
.dining-mode-tabs .tab-btn:hover,
.dining-tab:hover {
  background: #E4E4E7;
  color: #18181B;
}
.dining-mode-tabs .tab-btn.active,
.dining-tab.active {
  background: #111111 !important;
  color: #fbbf24 !important;
  border-color: #111111 !important;
  font-weight: 800 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
.dining-mode-tabs .tab-btn.active .tab-icon,
.dining-mode-tabs .tab-btn.active svg,
.dining-tab.active .tab-icon,
.dining-tab.active svg {
  color: #fbbf24 !important;
}

/* ── Payment Method Selection Cards ── */
.payment-method-card,
.payment-option {
  background: #FFFFFF;
  border: 1.5px solid #E4E4E7;
  color: #18181B;
  transition: all 0.18s ease;
}
.payment-method-card.selected,
.payment-method-card.active,
.payment-option.selected,
.payment-option.active,
.cod {
  background: #FFFBEB !important;
  border: 2px solid #fbbf24 !important;
  color: #111111 !important;
  font-weight: 800;
}
.payment-method-card .icon,
.payment-option .icon,
.cod .icon {
  color: #111111 !important;
  stroke: #111111 !important;
}

/* ══════════════════════════════════════════════════════════════
   CRISPY CRUST Food-Tech UI Components
   ══════════════════════════════════════════════════════════════ */

/* 1. Sticky Category Pills Bar */
.sticky-cat-bar {
  position: sticky;
  top: 60px;
  z-index: 25;
  background: rgba(9, 9, 11, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1.5px solid rgba(251, 191, 36, 0.35);
  padding: 8px 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
.sticky-cat-pills {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2px 0;
}
.sticky-cat-pills::-webkit-scrollbar {
  display: none;
}
.cat-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #18181b;
  color: #e4e4e7;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  text-decoration: none !important;
  white-space: nowrap;
}
.cat-pill:hover {
  background: #27272a;
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.4);
}
.cat-pill.active {
  background: #111827;
  color: #fbbf24 !important;
  border-color: #fbbf24;
  box-shadow: 0 2px 12px rgba(251, 191, 36, 0.35);
  font-weight: 800;
}

/* 2. Hero Spotlight Banner (بوكس السهرية - 135 ج.م) */
.hero-spotlight {
  background: linear-gradient(135deg, #09090b 0%, #18181b 50%, #111827 100%);
  border: 2px solid rgba(251, 191, 36, 0.45);
  border-radius: 20px;
  padding: 28px 24px;
  margin: 16px auto 24px;
  max-width: 1200px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 24px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}
@media (max-width: 820px) {
  .hero-spotlight {
    grid-template-columns: 1fr;
    padding: 20px 16px;
    gap: 18px;
  }
}
.hero-spotlight::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -20%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, transparent 70%);
  pointer-events: none;
}
.hero-spotlight-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 2;
}
.hero-spotlight-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  width: fit-content;
}
.hero-spotlight-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.hero-spotlight-desc {
  font-size: 0.95rem;
  color: #d4d4d8;
  line-height: 1.5;
  margin: 0;
}
.hero-spotlight-price-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.hero-spotlight-price {
  font-size: 2rem;
  font-weight: 900;
  color: #fbbf24;
  text-shadow: 0 2px 10px rgba(245, 158, 11, 0.3);
}
.hero-spotlight-old-price {
  font-size: 1.1rem;
  color: #71717a;
  text-decoration: line-through;
}
.btn-hero-order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: #111827 !important;
  font-size: 1.05rem;
  font-weight: 800;
  padding: 12px 24px;
  border-radius: 12px;
  border: none;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.4);
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-hero-order:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.55);
  background: #fbbf24;
}
.hero-spotlight-media {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}
.hero-spotlight-img {
  width: 100%;
  max-width: 320px;
  height: 220px;
  object-fit: cover;
  border-radius: 16px;
  border: 2px solid rgba(245, 158, 11, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* 3. Sold Out Badge for is_available === 0 */
.badge-sold-out {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fef2f2 !important;
  color: #dc2626 !important;
  border: 1.5px solid #fca5a5 !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  padding: 3px 8px !important;
  border-radius: 6px !important;
}
.p-card.is-sold-out {
  opacity: 0.78;
}
.p-card.is-sold-out .p-media img {
  filter: grayscale(0.25);
}
.btn-sold-out {
  background: #f4f4f5 !important;
  color: #a1a1aa !important;
  border: 1px solid #e4e4e7 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}

/* 4. WhatsApp Direct Order Button */
.btn-whatsapp-checkout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25d366 !important;
  color: #ffffff !important;
  font-size: 1.05rem;
  font-weight: 800;
  padding: 14px 20px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  width: 100%;
  margin-top: 10px;
}
.btn-whatsapp-checkout:hover:not(:disabled) {
  background: #1fa855 !important;
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.5);
  transform: translateY(-1px);
}
.btn-whatsapp-checkout:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* 5. Dynamic Delivery Zone Selector in Checkout */
.zone-info-card {
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
}
.zone-info-card strong {
  color: #1e293b;
}
.zone-warning-min {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 8px;
}

/* ══════════════════════════════════════════════════════════════════════════
   6. LIST VIEW ARCHITECTURE (.list-view & .grid-cols-1)
   ══════════════════════════════════════════════════════════════════════════ */

/* Default states in regular card grid */
.p-meta-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; }

/* 1. Container: 2-column grid on desktop */
.grid.list-view,
.grid.grid-cols-1,
#productsGrid.list-view,
#productsGrid.grid-cols-1,
#newArrivalsGrid.list-view,
#newArrivalsGrid.grid-cols-1,
#bestSellersGrid.list-view,
#bestSellersGrid.grid-cols-1,
#searchGrid.list-view,
#searchGrid.grid-cols-1 {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(480px, 1fr)) !important;
  gap: 1.25rem !important;
}

/* 2. Card: Horizontal row flex, fixed 160px height */
.list-view .p-card,
.grid-cols-1 .p-card,
#productsGrid.list-view .p-card,
#productsGrid.grid-cols-1 .p-card,
#newArrivalsGrid.list-view .p-card,
#newArrivalsGrid.grid-cols-1 .p-card,
#bestSellersGrid.list-view .p-card,
#bestSellersGrid.grid-cols-1 .p-card,
#searchGrid.list-view .p-card,
#searchGrid.grid-cols-1 .p-card {
  display: flex !important;
  flex-direction: row !important;
  min-height: 160px !important;
  height: auto !important;
  max-height: none !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  background: #ffffff !important;
  border: 1px solid #edf2f7 !important;
  box-shadow: var(--shadow-card, 0 2px 10px rgba(0, 0, 0, 0.04)) !important;
  box-sizing: border-box !important;
  position: relative !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease !important;
}

.list-view .p-card:hover,
.grid-cols-1 .p-card:hover,
#productsGrid.list-view .p-card:hover,
#productsGrid.grid-cols-1 .p-card:hover,
#newArrivalsGrid.list-view .p-card:hover,
#newArrivalsGrid.grid-cols-1 .p-card:hover,
#bestSellersGrid.list-view .p-card:hover,
#bestSellersGrid.grid-cols-1 .p-card:hover,
#searchGrid.list-view .p-card:hover,
#searchGrid.grid-cols-1 .p-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08) !important;
  border-color: #e2e8f0 !important;
}

/* 3. Image Container (.p-media): 160px square fixed on one side */
.list-view .p-card .p-media,
.grid-cols-1 .p-card .p-media,
#productsGrid.list-view .p-card .p-media,
#productsGrid.grid-cols-1 .p-card .p-media,
#newArrivalsGrid.list-view .p-card .p-media,
#newArrivalsGrid.grid-cols-1 .p-card .p-media,
#bestSellersGrid.list-view .p-card .p-media,
#bestSellersGrid.grid-cols-1 .p-card .p-media,
#searchGrid.list-view .p-card .p-media,
#searchGrid.grid-cols-1 .p-card .p-media {
  width: 160px !important;
  min-width: 160px !important;
  max-width: 160px !important;
  height: 100% !important;
  aspect-ratio: auto !important;
  flex-shrink: 0 !important;
  position: relative !important;
  overflow: hidden !important;
  background: #f8fafc !important;
}

/* Image element */
.list-view .p-card .p-media img,
.grid-cols-1 .p-card .p-media img,
#productsGrid.list-view .p-card .p-media img,
#productsGrid.grid-cols-1 .p-card .p-media img,
#newArrivalsGrid.list-view .p-card .p-media img,
#newArrivalsGrid.grid-cols-1 .p-card .p-media img,
#bestSellersGrid.list-view .p-card .p-media img,
#bestSellersGrid.grid-cols-1 .p-card .p-media img,
#searchGrid.list-view .p-card .p-media img,
#searchGrid.grid-cols-1 .p-card .p-media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.35s ease !important;
}

.list-view .p-card:hover .p-media img,
.grid-cols-1 .p-card:hover .p-media img {
  transform: scale(1.06) !important;
}

/* Hide image floating quick-add button in list view */
.list-view .p-card .p-media .p-quick-add,
.grid-cols-1 .p-card .p-media .p-quick-add {
  display: none !important;
}

/* Wishlist heart in list view */
.list-view .p-card .p-media .p-wish,
.grid-cols-1 .p-card .p-media .p-wish {
  width: 30px !important;
  height: 30px !important;
  top: 8px !important;
  inset-inline-end: 8px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12) !important;
}
.list-view .p-card .p-media .p-wish .icon,
.grid-cols-1 .p-card .p-media .p-wish .icon {
  width: 15px !important;
  height: 15px !important;
}

/* Badges on media in list view */
.list-view .p-card .p-badges,
.grid-cols-1 .p-card .p-badges {
  top: 8px !important;
  inset-inline-start: 8px !important;
  gap: 4px !important;
}
.list-view .p-card .p-badges .off,
.grid-cols-1 .p-card .p-badges .off {
  font-size: 0.7rem !important;
  padding-inline: 7px !important;
  padding-block: 2px !important;
}

/* 4. Internal Content Layout (.p-body) */
.list-view .p-card .p-body,
.grid-cols-1 .p-card .p-body,
#productsGrid.list-view .p-card .p-body,
#productsGrid.grid-cols-1 .p-card .p-body,
#newArrivalsGrid.list-view .p-card .p-body,
#newArrivalsGrid.grid-cols-1 .p-card .p-body,
#bestSellersGrid.list-view .p-card .p-body,
#bestSellersGrid.grid-cols-1 .p-card .p-body,
#searchGrid.list-view .p-card .p-body,
#searchGrid.grid-cols-1 .p-card .p-body {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  flex: 1 !important;
  min-width: 0 !important;
  padding: 11px 14px !important;
  gap: 3px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

/* Meta line: Category badge & Rating */
.list-view .p-card .p-meta-row,
.grid-cols-1 .p-card .p-meta-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  min-height: 20px !important;
  margin: 0 !important;
}

.list-view .p-card .p-meta-tags,
.grid-cols-1 .p-card .p-meta-tags {
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
}

.list-view .p-card .badge,
.grid-cols-1 .p-card .badge {
  font-size: 0.72rem !important;
  padding: 2.5px 8px !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}

.list-view .p-card .bundle-pill-badge,
.grid-cols-1 .p-card .bundle-pill-badge {
  font-size: 0.68rem !important;
  padding: 1px 6px !important;
  white-space: nowrap !important;
}

.list-view .p-card .p-rating,
.grid-cols-1 .p-card .p-rating {
  font-size: 0.76rem !important;
  color: #64748b !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  white-space: nowrap !important;
  margin: 0 !important;
}

.list-view .p-card .p-rating .stars,
.grid-cols-1 .p-card .p-rating .stars {
  font-size: 0.78rem !important;
  color: #FBBF24 !important;
  letter-spacing: 0.5px !important;
}

/* Meal name */
.list-view .p-card .p-body h3,
.grid-cols-1 .p-card .p-body h3 {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  color: #111827 !important;
  line-height: 1.35 !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  overflow: visible !important;
}

/* Short description: line-clamp 2 */
.list-view .p-card .p-desc,
.grid-cols-1 .p-card .p-desc {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  font-size: 0.8rem !important;
  line-height: 1.38 !important;
  color: #64748b !important;
  margin: 0 !important;
}

.list-view .p-card .bundle-snippet,
.grid-cols-1 .p-card .bundle-snippet {
  font-size: 0.72rem !important;
  margin: 0 !important;
}

/* Bottom: Price row & Add Button */
.list-view .p-card .price-row,
.grid-cols-1 .p-card .price-row {
  margin-top: auto !important;
  padding-top: 4px !important;
  border-top: 1px dashed rgba(226, 232, 240, 0.8) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  flex-wrap: nowrap !important;
}

.list-view .p-card .price-box,
.grid-cols-1 .p-card .price-box {
  display: flex !important;
  align-items: baseline !important;
  gap: 6px !important;
  min-width: 0 !important;
  white-space: nowrap !important;
  flex-wrap: nowrap !important;
}

.list-view .p-card .price-box strong,
.grid-cols-1 .p-card .price-box strong {
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  color: var(--price-color, #111827) !important;
  line-height: 1.1 !important;
}

.list-view .p-card .price-box s,
.grid-cols-1 .p-card .price-box s {
  font-size: 0.82rem !important;
  color: #94a3b8 !important;
  text-decoration: line-through !important;
  font-weight: 500 !important;
}

.list-view .p-card .price-box .stock,
.grid-cols-1 .p-card .price-box .stock {
  font-size: 0.72rem !important;
  color: var(--color-muted, #71717a) !important;
  white-space: nowrap !important;
}

/* List View Add to Cart Button */
.list-view .p-card .p-list-add-btn,
.grid-cols-1 .p-card .p-list-add-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
  color: #111827 !important;
  border: none !important;
  border-radius: 999px !important;
  height: 33px !important;
  padding: 0 13px !important;
  font-size: 0.8rem !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.35) !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease !important;
}

.list-view .p-card .p-list-add-btn:hover,
.grid-cols-1 .p-card .p-list-add-btn:hover {
  background: #fbbf24 !important;
  color: #111827 !important;
  transform: scale(1.05) !important;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.45) !important;
}

.list-view .p-card .p-list-add-btn:active,
.grid-cols-1 .p-card .p-list-add-btn:active {
  transform: scale(0.96) !important;
}

.list-view .p-card .p-list-add-btn .btn-icon,
.grid-cols-1 .p-card .p-list-add-btn .btn-icon {
  font-size: 0.95rem !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

.list-view .p-card .p-list-add-btn:disabled,
.list-view .p-card .p-list-add-btn.btn-sold-out,
.grid-cols-1 .p-card .p-list-add-btn:disabled,
.grid-cols-1 .p-card .p-list-add-btn.btn-sold-out {
  background: #94a3b8 !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  opacity: 0.8 !important;
}

/* Skeletons in list view */
.list-view .p-card-skel,
.grid-cols-1 .p-card-skel {
  display: flex !important;
  flex-direction: row !important;
  height: 160px !important;
  min-height: 160px !important;
  max-height: 160px !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  border: 1px solid #edf2f7 !important;
}
.list-view .p-card-skel .skel-media,
.grid-cols-1 .p-card-skel .skel-media {
  width: 160px !important;
  min-width: 160px !important;
  max-width: 160px !important;
  height: 100% !important;
  aspect-ratio: auto !important;
  flex-shrink: 0 !important;
}
.list-view .p-card-skel .skel-body,
.grid-cols-1 .p-card-skel .skel-body {
  flex: 1 !important;
  padding: 12px 14px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   5. MOBILE RESPONSIVENESS (< 640px)
   ══════════════════════════════════════════════════════════════════════════ */
@media screen and (max-width: 639.98px) {
  /* 1-column layout on mobile */
  .grid.list-view,
  .grid.grid-cols-1,
  #productsGrid.list-view,
  #productsGrid.grid-cols-1,
  #newArrivalsGrid.list-view,
  #newArrivalsGrid.grid-cols-1,
  #bestSellersGrid.list-view,
  #bestSellersGrid.grid-cols-1,
  #searchGrid.list-view,
  #searchGrid.grid-cols-1 {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  /* Card height: 135px */
  .list-view .p-card,
  .grid-cols-1 .p-card,
  #productsGrid.list-view .p-card,
  #productsGrid.grid-cols-1 .p-card,
  #newArrivalsGrid.list-view .p-card,
  #newArrivalsGrid.grid-cols-1 .p-card,
  #bestSellersGrid.list-view .p-card,
  #bestSellersGrid.grid-cols-1 .p-card,
  #searchGrid.list-view .p-card,
  #searchGrid.grid-cols-1 .p-card {
    height: 135px !important;
    min-height: 135px !important;
    max-height: 135px !important;
    border-radius: 14px !important;
  }

  /* Image container: 125px */
  .list-view .p-card .p-media,
  .grid-cols-1 .p-card .p-media,
  #productsGrid.list-view .p-card .p-media,
  #productsGrid.grid-cols-1 .p-card .p-media,
  #newArrivalsGrid.list-view .p-card .p-media,
  #newArrivalsGrid.grid-cols-1 .p-card .p-media,
  #bestSellersGrid.list-view .p-card .p-media,
  #bestSellersGrid.grid-cols-1 .p-card .p-media,
  #searchGrid.list-view .p-card .p-media,
  #searchGrid.grid-cols-1 .p-card .p-media {
    width: 125px !important;
    min-width: 125px !important;
    max-width: 125px !important;
    height: 100% !important;
  }

  /* Compact body padding on mobile */
  .list-view .p-card .p-body,
  .grid-cols-1 .p-card .p-body,
  #productsGrid.list-view .p-card .p-body,
  #productsGrid.grid-cols-1 .p-card .p-body,
  #newArrivalsGrid.list-view .p-card .p-body,
  #newArrivalsGrid.grid-cols-1 .p-card .p-body,
  #bestSellersGrid.list-view .p-card .p-body,
  #bestSellersGrid.grid-cols-1 .p-card .p-body,
  #searchGrid.list-view .p-card .p-body,
  #searchGrid.grid-cols-1 .p-card .p-body {
    padding: 8px 10px !important;
    gap: 2px !important;
  }

  .list-view .p-card .p-body h3,
  .grid-cols-1 .p-card .p-body h3 {
    font-size: 0.9rem !important;
    line-height: 1.25 !important;
  }

  .list-view .p-card .p-desc,
  .grid-cols-1 .p-card .p-desc {
    font-size: 0.72rem !important;
    line-height: 1.25 !important;
    -webkit-line-clamp: 2 !important;
  }

  .list-view .p-card .badge,
  .grid-cols-1 .p-card .badge {
    font-size: 0.65rem !important;
    padding: 1.5px 6px !important;
  }

  .list-view .p-card .p-rating,
  .grid-cols-1 .p-card .p-rating {
    font-size: 0.7rem !important;
  }

  .list-view .p-card .price-row,
  .grid-cols-1 .p-card .price-row {
    padding-top: 3px !important;
  }

  .list-view .p-card .price-box strong,
  .grid-cols-1 .p-card .price-box strong {
    font-size: 0.98rem !important;
  }

  .list-view .p-card .price-box s,
  .grid-cols-1 .p-card .price-box s {
    font-size: 0.72rem !important;
  }

  .list-view .p-card .p-list-add-btn,
  .grid-cols-1 .p-card .p-list-add-btn {
    height: 28px !important;
    padding: 0 10px !important;
    font-size: 0.74rem !important;
    gap: 4px !important;
  }

  .list-view .p-card-skel,
  .grid-cols-1 .p-card-skel {
    height: 135px !important;
    min-height: 135px !important;
    max-height: 135px !important;
  }
  .list-view .p-card-skel .skel-media,
  .grid-cols-1 .p-card-skel .skel-media {
    width: 125px !important;
    min-width: 125px !important;
    max-width: 125px !important;
  }
}

/* ── Body Bottom Spacing for Floating Stack ────────────────────────────────── */
body {
  padding-bottom: 150px !important;
}

/* ── Etisalat-Style Floating Capsule Bottom Navigation Bar ─────────────────── */
#pwaBottomNav,
.pwa-bottom-nav {
  position: fixed !important;
  bottom: 12px !important;
  left: 12px !important;
  right: 12px !important;
  max-width: 500px !important;
  margin: 0 auto !important;
  height: 64px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  z-index: 1050 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-around !important;
  padding: 0 8px !important;
  box-sizing: border-box !important;
}

.pwa-nav-tab {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px !important;
  flex: 1 1 0 !important;
  max-width: 88px !important;
  height: 48px !important;
  border-radius: 999px !important;
  color: #4b5563 !important;
  text-decoration: none !important;
  font-family: inherit !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  -webkit-tap-highlight-color: transparent !important;
  user-select: none !important;
}

.pwa-nav-tab:hover {
  color: #111827 !important;
}

.pwa-nav-tab.active {
  background: #111827 !important;
  color: #fbbf24 !important;
  font-weight: 700 !important;
}

.pwa-nav-tab.active .pwa-nav-icon {
  stroke: #fbbf24 !important;
}

.pwa-nav-tab.active .pwa-nav-label {
  color: #fbbf24 !important;
}

.pwa-nav-icon {
  width: 22px !important;
  height: 22px !important;
  stroke: currentColor !important;
  flex: 0 0 auto !important;
  transition: stroke 0.15s ease, transform 0.15s ease !important;
}

.pwa-nav-tab:active .pwa-nav-icon {
  transform: scale(0.9) !important;
}

.pwa-nav-label {
  line-height: 1.1 !important;
  white-space: nowrap !important;
}

.pwa-nav-icon-wrap {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.pwa-nav-badge {
  position: absolute !important;
  top: -4px !important;
  right: -8px !important;
  background: #fbbf24 !important;
  color: #111827 !important;
  font-size: 0.65rem !important;
  font-weight: 800 !important;
  min-width: 16px !important;
  height: 16px !important;
  border-radius: 999px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 3px !important;
  border: 1.5px solid #111827 !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
}

.pwa-nav-badge[data-count="0"],
.pwa-nav-badge:empty {
  display: none !important;
}

/* ── Meal Cards Action Buttons (Gold Gradient & Matte Black) ─────────────── */
.p-quick-add,
.p-list-add-btn {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
  color: #111827 !important;
  font-weight: 800 !important;
  border: none !important;
}
.p-quick-add:hover,
.p-list-add-btn:hover {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  color: #111827 !important;
}

/* ── Interactive Slide-Down Header Search Bar ─────────────────────────────── */
.header-slide-search {
  position: fixed !important;
  top: 60px !important;
  left: 0 !important;
  right: 0 !important;
  background: rgba(17, 24, 39, 0.98) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 1.5px solid rgba(251, 191, 36, 0.25) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35) !important;
  z-index: 1001 !important;
  padding: 12px 16px !important;
  animation: slideSearchDown 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.header-slide-search[hidden] {
  display: none !important;
}
@keyframes slideSearchDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.header-slide-search-inner {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.header-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: #1f2937;
  border: 1.5px solid rgba(251, 191, 36, 0.4);
  border-radius: 999px;
  padding: 0 12px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.header-search-input-wrap:focus-within {
  border-color: #fbbf24;
  box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.25);
}
.search-lens-icon {
  color: #fbbf24;
  flex-shrink: 0;
  margin-inline-end: 8px;
}
.header-slide-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 10px 0;
}
.header-slide-input::placeholder {
  color: #9ca3af;
  font-weight: 500;
}
.header-search-close-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #9ca3af;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 13px;
  margin-inline-start: 6px;
}
.header-search-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}
.header-search-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
}
.search-chip {
  background: rgba(255, 255, 255, 0.08);
  color: #e5e7eb;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
}
.search-chip:hover {
  background: rgba(251, 191, 36, 0.15);
  border-color: #fbbf24;
  color: #fbbf24;
}

/* ── Elimination of Bulky Web Footer Across Storefront ─────────────────────── */
footer,
.site-footer,
.footer-inner,
.footer-bar,
#matgaryFooter {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  max-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  border: none !important;
  pointer-events: none !important;
}

/* ── Suppress legacy ccBranchBar full-width topbar ──────────────────────────── */
.cc-branch-bar,
#ccBranchBar {
  display: none !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
}

/* ── Store Admin Workspace Input Contrast & Primary Button Cleanliness ──────── */
.cc-admin-workspace input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.cc-admin-workspace textarea,
.cc-admin-workspace select,
.cc-admin-input,
.cc-admin-textarea,
.cc-admin-select {
  color: #f8fafc !important;
  -webkit-text-fill-color: #f8fafc !important;
}

.cc-admin-workspace .cc-admin-btn-primary,
.cc-admin-btn-primary {
  text-decoration: none !important;
  color: #020617 !important;
}

/* ── Product Page Mobile Reviews Grid & Sticky Action Bar (store.css baseline) ── */
@media (max-width: 860px) {
  .reviews-overview-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (max-width: 768px) {
  body.product-page,
  .product-page {
    padding-bottom: 160px !important;
  }

  .reviews-section,
  .reviews-summary,
  .review-stats-card,
  .review-form-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .star-distribution,
  #starDistBars,
  .rating-breakdown,
  .rating-bars-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .star-dist-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-width: 0 !important;
    width: 100% !important;
    gap: 10px !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  .msb-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .msb-actions-row {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }
}




/* ==========================================================================
   MVP-LEAN-V78: UNIFIED 52PX POS HEADER, RTL RIGHT DRAWER, DESKTOP DOCK HIDE,
   AND FULL-WIDTH PRODUCT CARD ADD-TO-CART CTA
   ========================================================================== */

/* 1. Unified 52px Dark Matte Fixed Top Header (Matches @pos_app & DESIGN_SYSTEM.md) */
#topbar,
#app-top-header,
.topbar,
.site-header,
.header-wrapper {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1000 !important;
  width: 100% !important;
  height: 52px !important;
  min-height: 52px !important;
  max-height: 52px !important;
  background: #0b1120 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 16px rgba(2, 6, 23, 0.55) !important;
  color: #f8fafc !important;
}

body {
  padding-top: 52px !important;
}

.topbar-inner {
  max-width: 1280px !important;
  width: 100% !important;
  height: 52px !important;
  margin-inline: auto !important;
  padding: 0 14px !important;
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  align-items: center !important;
  gap: 8px !important;
  box-sizing: border-box !important;
}

.topbar-right-cell {
  display: flex !important;
  align-items: center !important;
  justify-self: start !important;
}

.topbar-center-cell {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  justify-self: center !important;
}

.topbar-left-cell {
  display: flex !important;
  align-items: center !important;
  justify-self: end !important;
  gap: 8px !important;
}

/* Sharp uncropped Crispy Crust POS Logo */
.header-logo-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 0 !important;
}

.header-logo-img {
  width: auto !important;
  min-width: 0 !important;
  max-width: 150px !important;
  height: 34px !important;
  min-height: 0 !important;
  max-height: 34px !important;
  border-radius: 0 !important;
  border: none !important;
  object-fit: contain !important;
  filter: none !important;
  background: transparent !important;
}

@media (max-width: 768px) {
  .header-logo-img {
    height: 30px !important;
    max-height: 30px !important;
    max-width: 124px !important;
  }
  .topbar-inner {
    padding: 0 10px !important;
  }
}

/* 38x38px Hamburger Button (Right Cell) */
.topbar #hamburgerBtn,
.topbar .hamburger-btn {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;
  border-radius: 10px !important;
  background: rgba(30, 41, 59, 0.72) !important;
  border: 1px solid rgba(51, 65, 85, 0.75) !important;
  color: #f8fafc !important;
}

.topbar #hamburgerBtn:hover,
.topbar .hamburger-btn:hover {
  background: rgba(245, 158, 11, 0.16) !important;
  border-color: rgba(245, 158, 11, 0.5) !important;
  color: #fbbf24 !important;
}

/* Compact Branch Pill + Cart Button (Left Cell) */
.header-location-pill {
  height: 32px !important;
  max-height: 32px !important;
  padding: 0 10px !important;
  border-radius: 999px !important;
  background: rgba(30, 41, 59, 0.75) !important;
  border: 1px solid rgba(51, 65, 85, 0.75) !important;
  color: #f8fafc !important;
  font-size: 0.76rem !important;
  font-weight: 700 !important;
  max-width: 140px !important;
}

@media (max-width: 480px) {
  .header-location-pill {
    padding: 0 8px !important;
    font-size: 0.72rem !important;
    max-width: 108px !important;
  }
}

.topbar #cartBtn,
.topbar .cart-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  border-radius: 10px !important;
  background: rgba(30, 41, 59, 0.75) !important;
  border: 1px solid rgba(51, 65, 85, 0.75) !important;
  color: #f8fafc !important;
  flex-shrink: 0 !important;
}

.topbar #cartBtn:hover,
.topbar .cart-btn:hover {
  background: rgba(245, 158, 11, 0.16) !important;
  border-color: rgba(245, 158, 11, 0.5) !important;
  color: #fbbf24 !important;
}

/* 2. Right Slide-Out Drawer Polish */
.menu-drawer {
  right: 0 !important;
  left: auto !important;
  background: #0f172a !important;
  border-left: 1px solid rgba(245, 158, 11, 0.3) !important;
  border-right: none !important;
  box-shadow: -16px 0 40px rgba(0, 0, 0, 0.75) !important;
  transform: translateX(105%) !important;
}

.menu-drawer.open {
  transform: translateX(0) !important;
}

.drawer-logo-img {
  width: auto !important;
  height: 32px !important;
  max-width: 145px !important;
  border-radius: 0 !important;
  border: none !important;
  background: transparent !important;
  object-fit: contain !important;
}

.drawer-lang-btn {
  width: 100% !important;
  text-align: start !important;
  background: rgba(30, 41, 59, 0.65) !important;
  border: 1px solid rgba(51, 65, 85, 0.7) !important;
  color: #f8fafc !important;
  cursor: pointer !important;
}

.drawer-lang-btn:hover {
  background: rgba(245, 158, 11, 0.14) !important;
  border-color: rgba(245, 158, 11, 0.45) !important;
  color: #fbbf24 !important;
}

/* 3. Hide Floating Bottom Dock & Floating Mini-Cart Bar on Desktop (>= 768px) */
@media (min-width: 768px) {
  #pwaBottomNav,
  .pwa-bottom-nav,
  #floatingOrderBar,
  #floatingCartBar,
  .floating-order-bar {
    display: none !important;
  }
  body {
    padding-bottom: 36px !important;
  }
}

/* Mobile (< 768px): Generous Bottom Clearance Above Bottom Dock & Mini-Cart Bar */
@media (max-width: 767px) {
  body {
    padding-bottom: calc(140px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* 4. Product Card UX: Sleek Compact + Add Pill Button in Footer */
.p-quick-add,
.p-card .p-quick-add,
.product-card .p-quick-add {
  display: none !important;
}

.p-card .p-body {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  padding: 14px 16px 16px !important;
  gap: 8px !important;
}

.p-card .p-card-footer,
.p-card .price-row {
  margin-top: auto !important;
  padding-top: 10px !important;
  border-top: 1px solid rgba(15, 23, 42, 0.06) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
}

.p-card .p-list-add-btn,
.p-card .p-card-cta-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  width: auto !important;
  height: auto !important;
  padding: 8px 16px !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 12px !important;
  background: #F59E0B !important;
  color: #0f172a !important;
  font-family: 'Cairo', sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  cursor: pointer !important;
  box-shadow: none !important;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.p-card .p-list-add-btn:hover:not(:disabled),
.p-card .p-card-cta-btn:hover:not(:disabled) {
  background: #111318 !important;
  color: #F59E0B !important;
  transform: translateY(-1px) !important;
}

.p-card .p-list-add-btn:active:not(:disabled),
.p-card .p-card-cta-btn:active:not(:disabled) {
  transform: scale(0.97) !important;
}

.p-card .p-list-add-btn.added,
.p-card .p-card-cta-btn.added {
  background: #10b981 !important;
  color: #ffffff !important;
}

.p-card .p-list-add-btn:disabled,
.p-card .p-list-add-btn.btn-sold-out,
.p-card .p-card-cta-btn:disabled,
.p-card .p-card-cta-btn.btn-sold-out {
  background: #e2e8f0 !important;
  color: #64748b !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  opacity: 0.9 !important;
}

.p-card .p-list-add-btn .btn-icon,
.p-card .p-card-cta-btn .btn-icon {
  font-size: 15px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
}

/* List view: keep CTA compact inside horizontal card */
.list-view .p-card .p-list-add-btn,
.grid-cols-1 .p-card .p-list-add-btn {
  width: auto !important;
  padding: 8px 16px !important;
  border-radius: 12px !important;
}


/* ==========================================================================
   MVP-LEAN-V79: CARDLESS FLOATING 3D CATEGORY STRIP (ZERO BOXES/FRAMES)
   ========================================================================== */
.categories-grid,
#categoriesGrid,
.category-grid,
.categories-strip,
.categories-scroll,
#categoriesContainer,
#categoryCards {
  gap: 10px !important;
  padding: 12px 6px 14px !important;
  align-items: flex-start !important;
}

.category-card,
.category-icon-card,
.cat-item,
.cat-card {
  width: 96px !important;
  min-width: 96px !important;
  max-width: 96px !important;
  height: auto !important;
  min-height: 112px !important;
  flex: 0 0 96px !important;
  padding: 4px 2px 6px !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  position: relative !important;
  overflow: visible !important;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.category-card:hover,
.category-icon-card:hover,
.cat-item:hover,
.cat-card:hover {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  transform: none !important;
}

.category-3d-icon,
.cat-icon-img {
  width: 76px !important;
  height: 76px !important;
  object-fit: contain !important;
  margin: 0 auto 8px !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  filter: drop-shadow(0 10px 14px rgba(15, 23, 42, 0.16)) !important;
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), filter 0.24s ease !important;
}

.category-card:hover .category-3d-icon,
.category-icon-card:hover .category-3d-icon,
.category-card:hover .cat-icon-img,
.cat-item:hover .category-3d-icon {
  transform: translateY(-5px) scale(1.06) !important;
  filter: drop-shadow(0 14px 20px rgba(245, 158, 11, 0.28)) !important;
}

.category-name,
.cat-name,
.category-icon-title {
  font-family: 'Cairo', sans-serif !important;
  font-size: 0.92rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  text-align: center !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
  padding: 2px 6px 4px !important;
  border-radius: 999px !important;
  border-bottom: 2.5px solid transparent !important;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease !important;
}

.category-card:hover .category-name,
.category-icon-card:hover .category-name,
.category-card.active .category-name,
.category-icon-card.active .category-name,
.category-card:focus-visible .category-name {
  color: #b45309 !important;
  border-bottom-color: #f59e0b !important;
}

.category-card.active .category-name,
.category-icon-card.active .category-name {
  background: rgba(245, 158, 11, 0.14) !important;
}

@media (min-width: 992px) {
  .categories-grid,
  #categoriesGrid,
  .category-grid {
    justify-content: space-between !important;
    gap: 14px !important;
  }
  .category-card,
  .category-icon-card,
  .cat-item,
  .cat-card {
    width: 112px !important;
    min-width: 112px !important;
    max-width: 112px !important;
    flex: 0 0 112px !important;
  }
  .category-3d-icon,
  .cat-icon-img {
    width: 88px !important;
    height: 88px !important;
  }
  .category-name,
  .cat-name,
  .category-icon-title {
    font-size: 0.98rem !important;
  }
}
