/**
 * Storefront 10-Theme Design System Engine
 * Architected Mobile-First & Tablet-First (Pure CSS Variables & Micro-Layouts)
 * Strictly Scoped to [data-store-theme="<theme_key>"]
 */

/* ==========================================================================
   1. Theme Variables & Exact Color Tokens (WCAG AA+ Compliant)
   ========================================================================== */

/* Theme 1: ultra_simple (فائق البساطة السريع - Express Minimalist) */
[data-store-theme="ultra_simple"] {
  --theme-bg-canvas: #f8fafc;
  --theme-text-main: #0f172a;
  --theme-text-muted: #475569;
  --theme-card-bg: #ffffff;
  --theme-card-border: #e2e8f0;
  --theme-card-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  --theme-card-radius: 14px;
  --theme-primary: #0284c7;
  --theme-primary-hover: #0369a1;
  --theme-primary-text: #ffffff;
  --theme-accent: #0ea5e9;
  --theme-header-bg: #ffffff;
  --theme-header-border: #e2e8f0;
  --theme-category-bg: #ffffff;
  --theme-category-border: #e2e8f0;
  --theme-category-pill-bg: #f1f5f9;
  --theme-category-pill-text: #334155;
  --theme-category-pill-active-bg: #0284c7;
  --theme-category-pill-active-text: #ffffff;
  --theme-bottom-nav-bg: #ffffff;
  --theme-bottom-nav-border: #e2e8f0;
}

/* Theme 2: modern_classic (كلاسيكي عصري متوازن - Modern Hospitality Classic) */
[data-store-theme="modern_classic"] {
  --theme-bg-canvas: #faf7f2;
  --theme-text-main: #1c1917;
  --theme-text-muted: #57534e;
  --theme-card-bg: #ffffff;
  --theme-card-border: #e7e5e4;
  --theme-card-shadow: 0 4px 18px rgba(41, 37, 36, 0.06);
  --theme-card-radius: 22px;
  --theme-primary: #c2410c;
  --theme-primary-hover: #9a3412;
  --theme-primary-text: #ffffff;
  --theme-accent: #ea580c;
  --theme-header-bg: rgba(255, 255, 255, 0.95);
  --theme-header-border: #e7e5e4;
  --theme-category-bg: rgba(250, 247, 242, 0.95);
  --theme-category-border: #e7e5e4;
  --theme-category-pill-bg: #f5f0e8;
  --theme-category-pill-text: #44403c;
  --theme-category-pill-active-bg: #c2410c;
  --theme-category-pill-active-text: #ffffff;
  --theme-bottom-nav-bg: rgba(255, 255, 255, 0.95);
  --theme-bottom-nav-border: #e7e5e4;
}

/* Theme 3: luxury_dark_gold (فاخر داكن مع ذهبي - Wajba Fine Dining & Steakhouse) */
[data-store-theme="luxury_dark_gold"] {
  --theme-bg-canvas: #0b0d12;
  --theme-text-main: #f8f5ee;
  --theme-text-muted: #a3a8b8;
  --theme-card-bg: #141822;
  --theme-card-border: rgba(212, 175, 55, 0.28);
  --theme-card-shadow: 0 10px 30px rgba(0, 0, 0, 0.55), 0 0 15px rgba(212, 175, 55, 0.06);
  --theme-card-radius: 18px;
  --theme-primary: #d4af37;
  --theme-primary-hover: #b89327;
  --theme-primary-text: #0b0d12;
  --theme-accent: #f59e0b;
  --theme-header-bg: rgba(11, 13, 18, 0.97);
  --theme-header-border: rgba(212, 175, 55, 0.25);
  --theme-category-bg: rgba(11, 13, 18, 0.97);
  --theme-category-border: rgba(212, 175, 55, 0.2);
  --theme-category-pill-bg: #1a1f2e;
  --theme-category-pill-text: #e2e8f0;
  --theme-category-pill-active-bg: #d4af37;
  --theme-category-pill-active-text: #0b0d12;
  --theme-bottom-nav-bg: rgba(11, 13, 18, 0.97);
  --theme-bottom-nav-border: rgba(212, 175, 55, 0.25);
}

/* Theme 4: street_burger_bold (ستريت برجر جريء - Urban Smash Burger & Street Food) */
[data-store-theme="street_burger_bold"] {
  --theme-bg-canvas: #fffbeb;
  --theme-text-main: #111827;
  --theme-text-muted: #374151;
  --theme-card-bg: #ffffff;
  --theme-card-border: #111827;
  --theme-card-shadow: 3.5px 3.5px 0px #111827;
  --theme-card-radius: 14px;
  --theme-primary: #dc2626;
  --theme-primary-hover: #b91c1c;
  --theme-primary-text: #ffffff;
  --theme-accent: #f59e0b;
  --theme-header-bg: #ffffff;
  --theme-header-border: #111827;
  --theme-category-bg: #fffbeb;
  --theme-category-border: #111827;
  --theme-category-pill-bg: #ffffff;
  --theme-category-pill-text: #111827;
  --theme-category-pill-active-bg: #dc2626;
  --theme-category-pill-active-text: #ffffff;
  --theme-bottom-nav-bg: #ffffff;
  --theme-bottom-nav-border: #111827;
}

/* Theme 5: artisan_cafe_warm (كافيه دافئ وحرفي - Artisan Bakery & Specialty Coffee) */
[data-store-theme="artisan_cafe_warm"] {
  --theme-bg-canvas: #fbf7f2;
  --theme-text-main: #382315;
  --theme-text-muted: #6c584c;
  --theme-card-bg: #ffffff;
  --theme-card-border: #ebddcb;
  --theme-card-shadow: 0 8px 24px rgba(92, 58, 33, 0.07);
  --theme-card-radius: 26px;
  --theme-primary: #5c3a21;
  --theme-primary-hover: #43281c;
  --theme-primary-text: #ffffff;
  --theme-accent: #c86d51;
  --theme-header-bg: rgba(251, 247, 242, 0.96);
  --theme-header-border: #ebddcb;
  --theme-category-bg: rgba(251, 247, 242, 0.96);
  --theme-category-border: #ebddcb;
  --theme-category-pill-bg: #f4eae1;
  --theme-category-pill-text: #5c3a21;
  --theme-category-pill-active-bg: #5c3a21;
  --theme-category-pill-active-text: #ffffff;
  --theme-bottom-nav-bg: rgba(251, 247, 242, 0.96);
  --theme-bottom-nav-border: #ebddcb;
}

/* Theme 6: fresh_organic_green (أخضر عضوي ومنعش - Healthy Bowls & Salads) */
[data-store-theme="fresh_organic_green"] {
  --theme-bg-canvas: #f4fbf6;
  --theme-text-main: #14532d;
  --theme-text-muted: #3f6212;
  --theme-card-bg: #ffffff;
  --theme-card-border: #dcfce7;
  --theme-card-shadow: 0 4px 18px rgba(22, 163, 74, 0.08);
  --theme-card-radius: 26px 8px 26px 8px;
  --theme-primary: #16a34a;
  --theme-primary-hover: #15803d;
  --theme-primary-text: #ffffff;
  --theme-accent: #ca8a04;
  --theme-header-bg: rgba(255, 255, 255, 0.95);
  --theme-header-border: #dcfce7;
  --theme-category-bg: rgba(244, 251, 246, 0.95);
  --theme-category-border: #dcfce7;
  --theme-category-pill-bg: #eaf8ee;
  --theme-category-pill-text: #166534;
  --theme-category-pill-active-bg: #16a34a;
  --theme-category-pill-active-text: #ffffff;
  --theme-bottom-nav-bg: rgba(255, 255, 255, 0.95);
  --theme-bottom-nav-border: #dcfce7;
}

/* Theme 7: neon_cyber_night (سايبر نايت ليلي - Late-Night Lounge & Gaming Cafe) */
[data-store-theme="neon_cyber_night"] {
  --theme-bg-canvas: #070a13;
  --theme-text-main: #f1f5f9;
  --theme-text-muted: #94a3b8;
  --theme-card-bg: rgba(15, 23, 42, 0.85);
  --theme-card-border: rgba(6, 182, 212, 0.35);
  --theme-card-shadow: 0 8px 30px rgba(0, 0, 0, 0.7), 0 0 16px rgba(6, 182, 212, 0.2);
  --theme-card-radius: 14px;
  --theme-primary: #06b6d4;
  --theme-primary-hover: #0891b2;
  --theme-primary-text: #070a13;
  --theme-accent: #ec4899;
  --theme-header-bg: rgba(7, 10, 19, 0.96);
  --theme-header-border: rgba(6, 182, 212, 0.4);
  --theme-category-bg: rgba(7, 10, 19, 0.96);
  --theme-category-border: rgba(6, 182, 212, 0.25);
  --theme-category-pill-bg: #0f172a;
  --theme-category-pill-text: #cbd5e1;
  --theme-category-pill-active-bg: #06b6d4;
  --theme-category-pill-active-text: #070a13;
  --theme-bottom-nav-bg: rgba(7, 10, 19, 0.96);
  --theme-bottom-nav-border: rgba(6, 182, 212, 0.4);
}

/* Theme 8: mediterranean_azure (أزرق متوسطي ساحلي - Seafood & Mediterranean Grill) */
[data-store-theme="mediterranean_azure"] {
  --theme-bg-canvas: #f8fafc;
  --theme-text-main: #0c4a6e;
  --theme-text-muted: #475569;
  --theme-card-bg: #ffffff;
  --theme-card-border: #e0f2fe;
  --theme-card-shadow: 0 4px 20px rgba(2, 132, 199, 0.08);
  --theme-card-radius: 20px;
  --theme-primary: #0284c7;
  --theme-primary-hover: #0369a1;
  --theme-primary-text: #ffffff;
  --theme-accent: #f97316;
  --theme-header-bg: rgba(255, 255, 255, 0.96);
  --theme-header-border: #e0f2fe;
  --theme-category-bg: rgba(248, 250, 252, 0.96);
  --theme-category-border: #bae6fd;
  --theme-category-pill-bg: #f0f9ff;
  --theme-category-pill-text: #0369a1;
  --theme-category-pill-active-bg: #0284c7;
  --theme-category-pill-active-text: #ffffff;
  --theme-bottom-nav-bg: rgba(255, 255, 255, 0.96);
  --theme-bottom-nav-border: #bae6fd;
}

/* Theme 9: ramadan_oriental (شرقي ورمضاني أصيل - Oriental Grills & Feasts) */
[data-store-theme="ramadan_oriental"] {
  --theme-bg-canvas: #faf6ed;
  --theme-text-main: #064e3b;
  --theme-text-muted: #4b5563;
  --theme-card-bg: #ffffff;
  --theme-card-border: #e8dec8;
  --theme-card-shadow: 0 4px 18px rgba(217, 119, 6, 0.08);
  --theme-card-radius: 20px;
  --theme-primary: #065f46;
  --theme-primary-hover: #044e39;
  --theme-primary-text: #ffffff;
  --theme-accent: #d97706;
  --theme-header-bg: rgba(250, 246, 237, 0.96);
  --theme-header-border: #e8dec8;
  --theme-category-bg: rgba(250, 246, 237, 0.96);
  --theme-category-border: #e8dec8;
  --theme-category-pill-bg: #f5eedc;
  --theme-category-pill-text: #064e3b;
  --theme-category-pill-active-bg: #065f46;
  --theme-category-pill-active-text: #ffffff;
  --theme-bottom-nav-bg: rgba(250, 246, 237, 0.96);
  --theme-bottom-nav-border: #e8dec8;
}

/* Theme 10: editorial_magazine (مجلة طهي تحريرية - Gourmet Culinary Magazine) */
[data-store-theme="editorial_magazine"] {
  --theme-bg-canvas: #ffffff;
  --theme-text-main: #09090b;
  --theme-text-muted: #52525b;
  --theme-card-bg: #18181b;
  --theme-card-border: #f4f4f5;
  --theme-card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --theme-card-radius: 22px;
  --theme-primary: #9f1239;
  --theme-primary-hover: #881337;
  --theme-primary-text: #ffffff;
  --theme-accent: #d97706;
  --theme-header-bg: rgba(255, 255, 255, 0.96);
  --theme-header-border: #f4f4f5;
  --theme-category-bg: rgba(255, 255, 255, 0.96);
  --theme-category-border: #f4f4f5;
  --theme-category-pill-bg: #f4f4f5;
  --theme-category-pill-text: #18181b;
  --theme-category-pill-active-bg: #18181b;
  --theme-category-pill-active-text: #ffffff;
  --theme-bottom-nav-bg: rgba(255, 255, 255, 0.96);
  --theme-bottom-nav-border: #f4f4f5;
}

/* ==========================================================================
   2. Global Typography & Structural Bindings
   ========================================================================== */

/* Canvas Background & Base Text */
[data-store-theme] body {
  background-color: var(--theme-bg-canvas) !important;
  color: var(--theme-text-main) !important;
  line-height: 1.6;
}

/* Base Headings */
[data-store-theme] h1:not(.hero-slide *):not(footer *),
[data-store-theme] h2:not(.hero-slide *):not(footer *),
[data-store-theme] h3:not(.hero-slide *):not(footer *),
[data-store-theme] h4:not(.hero-slide *):not(footer *):not(#first-visit-geo-prompt *) {
  color: var(--theme-text-main) !important;
  line-height: 1.35;
}

/* Header Container */
[data-store-theme] header.sticky {
  background-color: var(--theme-header-bg) !important;
  border-color: var(--theme-header-border) !important;
}

/* Sticky Category Filter Bar Container */
[data-store-theme] .category-block .category-nav-link,
[data-store-theme] .sticky .category-nav-link,
[data-store-theme] .menu-filter-pill {
  background-color: var(--theme-category-pill-bg) !important;
  color: var(--theme-category-pill-text) !important;
  border: 1px solid var(--theme-category-border);
  transition: all 0.2s ease;
}

[data-store-theme] .category-nav-link.active,
[data-store-theme] .category-nav-link:hover,
[data-store-theme] .menu-filter-pill.active,
[data-store-theme] .menu-filter-pill:hover {
  background-color: var(--theme-category-pill-active-bg) !important;
  color: var(--theme-category-pill-active-text) !important;
}

/* Bottom Navigation Bar on Mobile */
[data-store-theme] nav.md\:hidden {
  background-color: var(--theme-bottom-nav-bg) !important;
  border-color: var(--theme-bottom-nav-border) !important;
}

/* Sticky Cart Bar */
[data-store-theme] #sticky-cart-bar {
  background-color: var(--theme-bottom-nav-bg) !important;
  border-color: var(--theme-bottom-nav-border) !important;
}

/* Menu Food Cards Base Architecture */
[data-store-theme] .menu-item-card {
  background-color: var(--theme-card-bg) !important;
  border: 1px solid var(--theme-card-border) !important;
  border-radius: var(--theme-card-radius) !important;
  box-shadow: var(--theme-card-shadow) !important;
  color: var(--theme-text-main);
  transition: all 0.25s ease;
}

[data-store-theme] .menu-item-card h4 {
  color: var(--theme-text-main) !important;
}

[data-store-theme] .menu-item-card p {
  color: var(--theme-text-muted) !important;
}

/* Standard Add to Cart Buttons */
[data-store-theme] .menu-item-card button.bg-rose-600,
[data-store-theme] .menu-item-card .menu-add-btn {
  background-color: var(--theme-primary) !important;
  color: var(--theme-primary-text) !important;
  border: none;
  transition: all 0.2s ease;
}

[data-store-theme] .menu-item-card button.bg-rose-600:hover,
[data-store-theme] .menu-item-card .menu-add-btn:hover {
  background-color: var(--theme-primary-hover) !important;
}

/* Standard Price Text */
[data-store-theme] .menu-item-card .font-mono.text-rose-600 {
  color: var(--theme-primary) !important;
}

/* Quick Filter Pills */
[data-store-theme] .quick-pill {
  background-color: var(--theme-category-pill-bg) !important;
  color: var(--theme-category-pill-text) !important;
  border: 1px solid var(--theme-category-border);
}

[data-store-theme] .quick-pill.active {
  background-color: var(--theme-primary) !important;
  color: var(--theme-primary-text) !important;
  border-color: var(--theme-primary) !important;
}

/* ==========================================================================
   3. Distinct Architectural Layout Overrides for Each Theme
   ========================================================================== */

/* --------------------------------------------------------------------------
   THEME 1: ultra_simple (Express Minimalist / Delivery-First)
   Horizontal compact list cards, zero tall hero, search-first interface
   -------------------------------------------------------------------------- */
[data-store-theme="ultra_simple"] #store-hero {
  display: none !important;
}

[data-store-theme="ultra_simple"] #ultra-simple-express-bar {
  display: flex !important;
}

/* Transform Cards to Horizontal Rows on all viewports */
[data-store-theme="ultra_simple"] .menu-item-card {
  flex-direction: row !important;
  align-items: center !important;
  gap: 0.75rem !important;
  padding: 0.75rem !important;
  min-height: auto !important;
  border-radius: 14px !important;
  border: 1px solid #e2e8f0 !important;
}

[data-store-theme="ultra_simple"] .menu-item-card .aspect-video {
  aspect-ratio: 1 / 1 !important;
  width: 5rem !important;
  height: 5rem !important;
  flex-shrink: 0 !important;
  border-radius: 10px !important;
}

[data-store-theme="ultra_simple"] .menu-item-card > div:first-child {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 0.75rem !important;
  flex-grow: 1 !important;
  min-width: 0 !important;
}

[data-store-theme="ultra_simple"] .menu-item-card > div:last-child {
  border-top: none !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
  flex-shrink: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 0.25rem !important;
}

[data-store-theme="ultra_simple"] .menu-item-card button.bg-rose-600 {
  border-radius: 9999px !important;
  padding: 0.5rem 0.75rem !important;
  font-size: 11px !important;
}

/* Category pills in ultra_simple: flat and slim */
[data-store-theme="ultra_simple"] .category-nav-link {
  border-radius: 8px !important;
  font-size: 11px !important;
  padding: 0.35rem 0.75rem !important;
}

/* --------------------------------------------------------------------------
   THEME 3: luxury_dark_gold (Wajba Fine Dining & Steakhouse)
   Obsidian dark, 1px gold hairline borders, gold diamond separators
   -------------------------------------------------------------------------- */
[data-store-theme="luxury_dark_gold"] #menu {
  background-color: #0b0d12 !important;
}

[data-store-theme="luxury_dark_gold"] header.sticky {
  border-bottom: 1px solid rgba(212, 175, 55, 0.25) !important;
}

[data-store-theme="luxury_dark_gold"] .menu-item-card {
  background-color: #141822 !important;
  border: 1px solid rgba(212, 175, 55, 0.25) !important;
}

[data-store-theme="luxury_dark_gold"] .menu-item-card:hover {
  border-color: #d4af37 !important;
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.22) !important;
  transform: translateY(-2px);
}

[data-store-theme="luxury_dark_gold"] .category-nav-link {
  border-radius: 0 !important;
  border: none !important;
  border-bottom: 2px solid transparent !important;
  background: transparent !important;
  color: #a3a8b8 !important;
}

[data-store-theme="luxury_dark_gold"] .category-nav-link.active,
[data-store-theme="luxury_dark_gold"] .category-nav-link:hover {
  border-bottom-color: #d4af37 !important;
  color: #d4af37 !important;
  background: transparent !important;
}

[data-store-theme="luxury_dark_gold"] .menu-item-card button.bg-rose-600 {
  background-color: transparent !important;
  border: 1px solid #d4af37 !important;
  color: #d4af37 !important;
}

[data-store-theme="luxury_dark_gold"] .menu-item-card button.bg-rose-600:hover {
  background-color: #d4af37 !important;
  color: #0b0d12 !important;
  font-weight: 900 !important;
}

/* --------------------------------------------------------------------------
   THEME 4: street_burger_bold (Urban Smash Burger & Street Food)
   Neo-brutalist 2px black borders, hard tactile drop shadows
   -------------------------------------------------------------------------- */
[data-store-theme="street_burger_bold"] header.sticky {
  border-bottom: 2.5px solid #111827 !important;
}

[data-store-theme="street_burger_bold"] .menu-item-card {
  border: 2.5px solid #111827 !important;
  box-shadow: 3.5px 3.5px 0px #111827 !important;
  border-radius: 14px !important;
}

[data-store-theme="street_burger_bold"] .menu-item-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5.5px 5.5px 0px #111827 !important;
}

[data-store-theme="street_burger_bold"] .category-nav-link {
  border: 2px solid #111827 !important;
  box-shadow: 2px 2px 0px #111827 !important;
  font-weight: 900 !important;
  border-radius: 10px !important;
}

[data-store-theme="street_burger_bold"] .category-nav-link.active {
  background-color: #dc2626 !important;
  color: #ffffff !important;
}

[data-store-theme="street_burger_bold"] .menu-item-card button.bg-rose-600 {
  border: 2px solid #111827 !important;
  box-shadow: 2px 2px 0px #111827 !important;
  font-weight: 900 !important;
  border-radius: 10px !important;
}

[data-store-theme="street_burger_bold"] .menu-item-card button.bg-rose-600:active {
  transform: translate(2px, 2px);
  box-shadow: 0px 0px 0px #111827 !important;
}

/* --------------------------------------------------------------------------
   THEME 5: artisan_cafe_warm (Artisan Bakery & Specialty Coffee)
   Soft rounded-3xl cards, warm roasted espresso & cinnamon tones
   -------------------------------------------------------------------------- */
[data-store-theme="artisan_cafe_warm"] header.sticky {
  border-radius: 0 0 24px 24px !important;
}

[data-store-theme="artisan_cafe_warm"] .menu-item-card {
  border-radius: 26px !important;
  border: 1px solid #ebddcb !important;
  box-shadow: 0 8px 24px rgba(92, 58, 33, 0.07) !important;
}

[data-store-theme="artisan_cafe_warm"] .menu-item-card .aspect-video {
  border-radius: 20px !important;
}

[data-store-theme="artisan_cafe_warm"] .category-nav-link {
  border-radius: 16px !important;
  background-color: #f4eae1 !important;
  color: #5c3a21 !important;
}

[data-store-theme="artisan_cafe_warm"] .category-nav-link.active {
  background-color: #5c3a21 !important;
  color: #ffffff !important;
}

[data-store-theme="artisan_cafe_warm"] .menu-item-card button.bg-rose-600 {
  border-radius: 16px !important;
  background-color: #5c3a21 !important;
}

[data-store-theme="artisan_cafe_warm"] .menu-item-card button.bg-rose-600:hover {
  background-color: #43281c !important;
}

/* --------------------------------------------------------------------------
   THEME 6: fresh_organic_green (Healthy Bowls & Salads)
   Asymmetric leaf corners (rounded-tl-3xl rounded-br-3xl)
   -------------------------------------------------------------------------- */
[data-store-theme="fresh_organic_green"] .menu-item-card {
  border-radius: 28px 8px 28px 8px !important;
  border-color: #dcfce7 !important;
}

[data-store-theme="fresh_organic_green"] .menu-item-card .aspect-video {
  border-radius: 22px 6px 22px 6px !important;
}

[data-store-theme="fresh_organic_green"] .category-nav-link {
  border-radius: 18px 4px 18px 4px !important;
}

[data-store-theme="fresh_organic_green"] .menu-item-card button.bg-rose-600 {
  border-radius: 14px 4px 14px 4px !important;
  background-color: #16a34a !important;
}

/* --------------------------------------------------------------------------
   THEME 7: neon_cyber_night (Late-Night Lounge & Gaming Cafe)
   Frosted glassmorphism, cyan neon hairline, chamfered tech corners
   -------------------------------------------------------------------------- */
[data-store-theme="neon_cyber_night"] #menu {
  background-color: #070a13 !important;
}

[data-store-theme="neon_cyber_night"] header.sticky {
  border-bottom: 1px solid rgba(6, 182, 212, 0.4) !important;
}

[data-store-theme="neon_cyber_night"] .menu-item-card {
  background: rgba(15, 23, 42, 0.85) !important;
  backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(6, 182, 212, 0.35) !important;
}

[data-store-theme="neon_cyber_night"] .menu-item-card:hover {
  border-color: #06b6d4 !important;
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.3) !important;
}

[data-store-theme="neon_cyber_night"] .category-nav-link {
  border-radius: 8px !important;
  border: 1px solid rgba(6, 182, 212, 0.3) !important;
}

[data-store-theme="neon_cyber_night"] .category-nav-link.active {
  background-color: #06b6d4 !important;
  color: #070a13 !important;
  font-weight: 900 !important;
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.4) !important;
}

[data-store-theme="neon_cyber_night"] .menu-item-card button.bg-rose-600 {
  background-color: #06b6d4 !important;
  color: #070a13 !important;
  font-weight: 900 !important;
  border-radius: 8px !important;
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.4) !important;
}

/* --------------------------------------------------------------------------
   THEME 8: mediterranean_azure (Seafood & Mediterranean Grill)
   Airy coastal 16:9 cards with ocean sky-blue frames
   -------------------------------------------------------------------------- */
[data-store-theme="mediterranean_azure"] .menu-item-card {
  border: 1px solid #bae6fd !important;
}

[data-store-theme="mediterranean_azure"] .menu-item-card:hover {
  border-color: #0284c7 !important;
  box-shadow: 0 8px 25px rgba(2, 132, 199, 0.15) !important;
}

[data-store-theme="mediterranean_azure"] .category-nav-link.active {
  background-color: #0284c7 !important;
}

[data-store-theme="mediterranean_azure"] .menu-item-card button.bg-rose-600 {
  background-color: #0284c7 !important;
}

/* --------------------------------------------------------------------------
   THEME 9: ramadan_oriental (Oriental Grills & Feasts)
   Arched image container contour, Ottoman emerald & Damascus brass
   -------------------------------------------------------------------------- */
[data-store-theme="ramadan_oriental"] .menu-item-card {
  border: 1px solid #e8dec8 !important;
  border-radius: 20px !important;
}

[data-store-theme="ramadan_oriental"] .menu-item-card .aspect-video {
  border-radius: 24px 24px 8px 8px !important;
}

[data-store-theme="ramadan_oriental"] .category-nav-link {
  border-radius: 14px !important;
  border-color: #e8dec8 !important;
}

[data-store-theme="ramadan_oriental"] .category-nav-link.active {
  background-color: #065f46 !important;
}

[data-store-theme="ramadan_oriental"] .menu-item-card button.bg-rose-600 {
  background-color: #065f46 !important;
  border-radius: 12px !important;
}

/* --------------------------------------------------------------------------
   THEME 10: editorial_magazine (Gourmet Culinary Magazine)
   Full-Bleed Photographic Scrim Cards (Image fills card, text on bottom scrim)
   -------------------------------------------------------------------------- */
[data-store-theme="editorial_magazine"] .menu-item-card {
  position: relative !important;
  overflow: hidden !important;
  min-height: 320px !important;
  background-color: #18181b !important;
  border: none !important;
  padding: 0 !important;
  border-radius: 20px !important;
}

[data-store-theme="editorial_magazine"] .menu-item-card .aspect-video {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 0 !important;
}

[data-store-theme="editorial_magazine"] .menu-item-card > div:first-child {
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0.08) 100%) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  padding: 1rem !important;
  z-index: 10 !important;
}

[data-store-theme="editorial_magazine"] .menu-item-card > div:first-child h4 {
  color: #ffffff !important;
  font-size: 1.05rem !important;
}

[data-store-theme="editorial_magazine"] .menu-item-card > div:first-child p {
  color: #d4d4d8 !important;
  font-size: 0.75rem !important;
}

[data-store-theme="editorial_magazine"] .menu-item-card > div:last-child {
  position: relative !important;
  z-index: 20 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
  margin: 0 1rem 1rem 1rem !important;
  padding-top: 0.75rem !important;
}

[data-store-theme="editorial_magazine"] .menu-item-card .font-mono.text-rose-600 {
  color: #f59e0b !important;
}

[data-store-theme="editorial_magazine"] .menu-item-card button.bg-rose-600 {
  background-color: #9f1239 !important;
  border-radius: 12px !important;
  padding: 0.4rem 0.85rem !important;
}

[data-store-theme="editorial_magazine"] .category-nav-link {
  font-family: monospace, monospace !important;
  border-radius: 6px !important;
}

/* ==========================================================================
   Storefront Hero Slider - High-Contrast White Typography & RTL Gradient Overrides
   Enforces high-contrast readable white typography across ALL 10 storefront themes
   ========================================================================== */
#store-hero-slider,
#heroCarousel {
  position: relative;
  overflow: hidden !important;
}

#heroSlidesWrapper {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden !important;
  border-radius: inherit;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.hero-slide:not(.is-active) {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  z-index: 0 !important;
}

.hero-slide.is-active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  z-index: 10 !important;
}

/* Force Razor-Sharp White Typography across ALL 10 Themes */
#store-hero-slider .hero-slide h1,
#store-hero-slider .hero-slide h2,
#store-hero-slider .hero-slide-title,
[data-store-theme] #store-hero-slider .hero-slide h1,
[data-store-theme] #store-hero-slider .hero-slide h2,
[data-store-theme] #store-hero-slider .hero-slide-title,
[data-store-theme] .hero-slide h2 {
  color: #FFFFFF !important;
  font-weight: 800 !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.65) !important;
  letter-spacing: -0.01em;
}

#store-hero-slider .hero-slide p,
#store-hero-slider .hero-slide-subtitle,
[data-store-theme] #store-hero-slider .hero-slide p,
[data-store-theme] #store-hero-slider .hero-slide-subtitle,
[data-store-theme] .hero-slide p {
  color: rgba(255, 255, 255, 0.92) !important;
  font-weight: 500 !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6) !important;
  line-height: 1.6;
}

#store-hero-slider .hero-slide-badge,
[data-store-theme] #store-hero-slider .hero-slide-badge {
  color: #FFFFFF !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5) !important;
}

/* Directional RTL Gradient: Deep dark on right where Arabic text sits, smooth fade to left */
.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(270deg, rgba(10, 14, 23, 0.88) 0%, rgba(10, 14, 23, 0.62) 55%, rgba(10, 14, 23, 0.25) 100%) !important;
  pointer-events: none;
}

@media (max-width: 639px) {
  .hero-slide-overlay {
    background: linear-gradient(to top, rgba(10, 14, 23, 0.95) 0%, rgba(10, 14, 23, 0.75) 55%, rgba(10, 14, 23, 0.35) 100%),
                linear-gradient(270deg, rgba(10, 14, 23, 0.88) 0%, rgba(10, 14, 23, 0.62) 55%, rgba(10, 14, 23, 0.25) 100%) !important;
  }
  .hero-slide-content {
    padding-inline-start: 2.75rem !important;
    padding-inline-end: 2.75rem !important;
  }
}

@media (min-width: 640px) {
  .hero-slide-content {
    padding-inline-start: 4.75rem !important;
    padding-inline-end: 3.5rem !important;
  }
}

.hero-slide-img {
  filter: brightness(0.92) contrast(1.05) !important;
}

/* ==============================================================================
   Cart Drawer Architecture & Single Compact Upsell (Sticky Footer & 100dvh)
   ============================================================================== */
#cart-drawer,
.cart-drawer,
.cart-sidebar {
  height: 100vh !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  overscroll-behavior: contain !important;
}

#cart-drawer-body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  overscroll-behavior: contain !important;
}

#cart-drawer-footer {
  flex-shrink: 0 !important;
  position: sticky !important;
  bottom: 0 !important;
  z-index: 20 !important;
  padding-bottom: max(1rem, calc(0.75rem + env(safe-area-inset-bottom, 12px))) !important;
  box-shadow: 0 -4px 14px 0 rgba(0, 0, 0, 0.06) !important;
}

#cross-sell-container {
  max-height: 65px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.single-compact-upsell-wrapper {
  display: block !important;
  width: 100% !important;
}

.upsell-single-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.5rem !important;
  padding: 0.25rem 0.65rem !important;
  min-height: 32px !important;
  max-height: 36px !important;
  box-sizing: border-box !important;
  background-color: #ffffff !important;
  border: 1px solid rgba(244, 63, 94, 0.25) !important;
  border-radius: 0.5rem !important;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.04) !important;
}

.upsell-single-row:hover {
  border-color: #f43f5e !important;
  background-color: #fff1f2 !important;
}

