/* ==========================================================================
   ALMOWARIDIN | الموردين - Master Luxury Adaptive Design System
   Complete Light & Dark Modes + Universal Phone & Tablet Responsive Architecture
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Tajawal:wght@300;400;500;700;800;900&family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Core Dark Obsidian Palettes */
  --bg-dark-primary: #07090E;
  --bg-dark-surface: #0E121B;
  --bg-dark-card: #141A26;
  --bg-dark-elevated: #1B2333;
  --bg-dark-border: rgba(212, 175, 55, 0.18);
  --bg-dark-border-subtle: rgba(255, 255, 255, 0.08);

  /* Metallic Gold Palettes */
  --gold-primary: #D4AF37;
  --gold-light: #F6E29F;
  --gold-glow: rgba(212, 175, 55, 0.35);
  --gold-dark: #A67C1E;
  --gold-gradient: linear-gradient(135deg, #FFF1B0 0%, #D4AF37 45%, #996515 100%);
  --gold-gradient-subtle: linear-gradient(135deg, rgba(246, 226, 159, 0.12) 0%, rgba(212, 175, 55, 0.05) 100%);
  --gold-gradient-hover: linear-gradient(135deg, #FFF5C0 0%, #E5BF42 50%, #B8860B 100%);
  
  /* Text Palettes */
  --text-pure: #FFFFFF;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  --text-gold: #F3DB83;

  /* Accent Colors */
  --accent-emerald: #10B981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.25);
  --accent-ruby: #EF4444;
  --accent-amber: #F59E0B;
  --accent-blue: #3B82F6;

  /* Radius & Shadows */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  
  --shadow-gold: 0 8px 30px rgba(212, 175, 55, 0.15);
  --shadow-gold-lg: 0 14px 45px rgba(212, 175, 55, 0.25);
  --shadow-dark-card: 0 10px 35px -5px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   1. LIGHT LUXURY THEME (وضع السطوع الفاخر الشامل - فائق التباين والنقاء)
   ========================================================================== */
html.light-theme,
html.light-theme body,
body.light-theme {
  --bg-dark-primary: #FFFFFF;
  --bg-dark-surface: #FFFFFF;
  --bg-dark-card: #FFFFFF;
  --bg-dark-elevated: #FBF6E9;
  --bg-dark-border: rgba(184, 134, 11, 0.28);
  --bg-dark-border-subtle: rgba(120, 80, 10, 0.10);

  --text-pure: #1A1207;
  --text-muted: #6B5027;
  --text-dim: #8A6B35;
  --text-gold: #996515;

  --shadow-dark-card: 0 8px 25px -4px rgba(120, 80, 10, 0.08), 0 0 0 1px rgba(212, 175, 55, 0.22);
  background-color: #FFFFFF !important;
  color: #1A1207 !important;
}

html.light-theme body {
  background-color: #FFFFFF !important;
  color: #1A1207 !important;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(212, 175, 55, 0.10) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(212, 175, 55, 0.08) 0%, transparent 40%) !important;
}

/* Surfaces, Cards, and Containers in Light Mode.
   ~= matches an exact whitespace-separated class token, never a
   substring — this is important because several of these colors are
   also used as hover:/group-hover: variants elsewhere (e.g.
   hover:bg-[#141A26]), and a plain substring match would incorrectly
   apply that color permanently instead of only on hover. */
html.light-theme .luxury-card,
html.light-theme .glass-panel,
html.light-theme [class~="bg-[#0E131F]"],
html.light-theme [class~="bg-[#080A0F]"],
html.light-theme [class~="bg-[#07090E]"],
html.light-theme [class~="bg-[#0E121B]"],
html.light-theme [class~="bg-[#0A0D14]"],
html.light-theme [class~="bg-[#0A0E17]"],
html.light-theme [class~="bg-[#05070A]"] {
  background: #FFFFFF !important;
  background-color: #FFFFFF !important;
  border-color: rgba(212, 175, 55, 0.3) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04) !important;
  color: #1A1207 !important;
}

/* Secondary Panels, Sub-cards & Badges in Light Mode */
html.light-theme [class~="bg-[#141A26]"],
html.light-theme [class~="bg-[#1B2333]"],
html.light-theme [class~="bg-[#101622]"],
html.light-theme [class~="bg-[#161D2B]"],
html.light-theme [class~="bg-[#1C2536]"],
html.light-theme [class~="bg-black/40"],
html.light-theme [class~="bg-black/60"],
html.light-theme [class~="bg-black/70"],
html.light-theme [class~="bg-black/80"],
html.light-theme [class*="from-amber-950"],
html.light-theme [class*="from-emerald-950"],
html.light-theme [class*="from-rose-950"],
html.light-theme [class~="bg-[#080A0F]/60"],
html.light-theme [class~="bg-[#080A0F]/80"],
html.light-theme [class~="bg-[#0E121B]/60"],
html.light-theme [class~="bg-[#0E131F]/90"],
html.light-theme [class~="bg-[#0E131F]/95"],
html.light-theme [class~="bg-[#141A26]/40"],
html.light-theme [class~="bg-[#141A26]/50"],
html.light-theme [class~="bg-[#141A26]/60"],
html.light-theme [class~="bg-[#141A26]/80"],
html.light-theme [class~="bg-[#141A26]/90"] {
  background: #FBF6E9 !important;
  background-color: #FBF6E9 !important;
  border-color: rgba(212, 175, 55, 0.25) !important;
  color: #1A1207 !important;
}

/* Header & Bottom Bar in Light Mode */
html.light-theme header,
html.light-theme .header-glass,
html.light-theme .glass-header {
  background-color: rgba(255, 255, 255, 0.95) !important;
  border-bottom: 1px solid rgba(212, 175, 55, 0.28) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
  color: #1A1207 !important;
}

/* Typography & Headings in Light Mode.
   Each base color uses ~= (exact token match) so a hover:text-amber-300
   class is never wrongly caught — it's a different token entirely. The
   opacity-suffixed variants actually used in the app (e.g.
   text-amber-300/80) are listed explicitly for the same reason: Tailwind
   treats "text-amber-300" and "text-amber-300/80" as two different class
   names, and only exact-listing both keeps every occurrence covered
   without accidentally grabbing hover-only variants. */
html.light-theme [class~="text-white"],
html.light-theme [class~="text-slate-100"],
html.light-theme [class~="text-slate-200"] {
  color: #1A1207 !important;
}

html.light-theme [class~="text-slate-300"],
html.light-theme [class~="text-slate-400"] {
  color: #6B5027 !important;
}

html.light-theme [class~="text-slate-500"] {
  color: #8A6B35 !important;
}

html.light-theme [class~="text-slate-600"] {
  color: #4A3618 !important;
}

html.light-theme [class~="text-amber-100"] {
  color: #92400E !important;
}

html.light-theme [class~="text-amber-200"],
html.light-theme [class~="text-amber-200/80"],
html.light-theme [class~="text-amber-200/90"],
html.light-theme [class~="text-amber-300"],
html.light-theme [class~="text-amber-300/80"],
html.light-theme [class~="text-amber-400"],
html.light-theme [class~="text-amber-400/80"],
html.light-theme [class~="text-amber-400/90"] {
  color: #996515 !important;
}

html.light-theme [class~="text-amber-500"] {
  color: #78500A !important;
}

html.light-theme [class~="text-emerald-100"],
html.light-theme [class~="text-emerald-200"] {
  color: #047857 !important;
}

html.light-theme [class~="text-emerald-300"],
html.light-theme [class~="text-emerald-400"],
html.light-theme [class~="text-emerald-400/80"] {
  color: #059669 !important;
}

html.light-theme [class~="text-rose-100"],
html.light-theme [class~="text-rose-200"],
html.light-theme [class~="text-rose-300"] {
  color: #E11D48 !important;
}

html.light-theme [class~="text-rose-400"],
html.light-theme [class~="text-rose-500"] {
  color: #BE123C !important;
}

html.light-theme [class~="text-sky-100"],
html.light-theme [class~="text-sky-200"],
html.light-theme [class~="text-sky-300"] {
  color: #0369A1 !important;
}

html.light-theme [class~="text-sky-400"] {
  color: #075985 !important;
}

html.light-theme [class~="text-purple-300"],
html.light-theme [class~="text-violet-300"] {
  color: #7C3AED !important;
}

html.light-theme .text-gold-gradient {
  background: linear-gradient(135deg, #7A4E0A 0%, #A9761E 50%, #5C3B08 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

/* Same rich, deep-gold treatment for the site logo mark's inner circle background */
html.light-theme [class~="bg-gold-gradient"]:not(button) {
  background: linear-gradient(135deg, #7A4E0A 0%, #A9761E 50%, #5C3B08 100%) !important;
}

/* Buttons in Light Mode */
html.light-theme button[class*="bg-gold-gradient"],
html.light-theme .btn-gold-sheen {
  color: #000000 !important;
}

html.light-theme button[class~="bg-[#141A26]"],
html.light-theme button[class*="bg-black"] {
  background-color: #FBF6E9 !important;
  color: #1A1207 !important;
  border-color: rgba(212, 175, 55, 0.3) !important;
}

/* Form Inputs, Selects & Textareas in Light Mode */
html.light-theme input,
html.light-theme select,
html.light-theme textarea {
  background-color: #FFFFFF !important;
  color: #1A1207 !important;
  border: 1px solid #CBD5E1 !important;
}

html.light-theme input:focus,
html.light-theme select:focus,
html.light-theme textarea:focus {
  border-color: #D4AF37 !important;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.22) !important;
  outline: none !important;
}

html.light-theme input::placeholder,
html.light-theme textarea::placeholder {
  color: #B89968 !important;
}

/* Modals & Backdrop Blur in Light Mode */
html.light-theme .modal-backdrop-blur {
  background-color: rgba(15, 23, 42, 0.55) !important;
  backdrop-filter: blur(8px) !important;
}

/* Tables in Light Mode */
html.light-theme table thead,
html.light-theme table thead tr,
html.light-theme table thead th {
  background-color: #EDE0C0 !important;
  color: #1A1207 !important;
  border-bottom: 1px solid #CBD5E1 !important;
}

html.light-theme table tbody tr {
  border-bottom: 1px solid #EDE0C0 !important;
  color: #1E293B !important;
}

html.light-theme table tbody tr:hover {
  background-color: #F8FAFC !important;
}

html.light-theme .divide-white\/5,
html.light-theme .divide-white\/10 {
  border-color: #EDE0C0 !important;
}

html.light-theme .border-white\/5,
html.light-theme .border-white\/10 {
  border-color: rgba(212, 175, 55, 0.22) !important;
}

/* Small translucent-white badge/chip backgrounds (color & size tags,
   filter pills) were designed for dark mode and become invisible on a
   light page. Give them a visible light-gray pill background instead,
   and a visible (not invisible-white) hover highlight where the same
   utility is used purely as a hover effect. */
html.light-theme [class~="bg-white/5"] {
  background-color: #FBF6E9 !important;
}
html.light-theme [class~="bg-white/20"] {
  background-color: #EDE0C0 !important;
}
html.light-theme .hover\:bg-white\/5:hover {
  background-color: #FBF6E9 !important;
}

/* Image vignette overlays (category tiles, hero cards, product photo
   gradients) used a cool dark gradient for text legibility — correct
   in dark mode, but it stayed dark in light mode too, making those
   tiles look like isolated gray islands on the bright white page.
   Replace the gradient with a warm ivory version instead; the
   heading text inside these tiles already switches to dark text via
   the [class~="text-white"] rule above, so this combination reads
   correctly without any further changes. */
html.light-theme [class~="from-[#0E121B]"],
html.light-theme [class~="from-[#080A0F]"],
html.light-theme [class~="from-[#0E131F]"],
html.light-theme [class~="from-[#141A26]"] {
  background-image: linear-gradient(to top, rgba(251, 246, 233, 0.97), rgba(251, 246, 233, 0.55), transparent) !important;
}

/* Footer in Light Mode */
html.light-theme footer {
  background-color: #FFFFFF !important;
  border-top: 1px solid rgba(212, 175, 55, 0.25) !important;
  color: #1A1207 !important;
}

/* Tinted alert/badge boxes (bundle contents, offers, pending-payment
   warnings, discount panels) — soften the near-black backgrounds into
   light tinted panels instead of leaving them dark-on-white. Exact
   opacity tokens (~=) are listed instead of a substring match because
   some of these same colors also appear as hover:-only variants
   elsewhere (e.g. hover:bg-emerald-950/60 on the WhatsApp widget),
   and a substring match would incorrectly tint those permanently. */
html.light-theme [class~="bg-emerald-950/30"],
html.light-theme [class~="bg-emerald-950/40"],
html.light-theme [class~="bg-emerald-950/60"],
html.light-theme [class~="bg-emerald-950/70"],
html.light-theme [class~="bg-emerald-950/80"] {
  background-color: #ECFDF5 !important;
}
html.light-theme [class~="bg-rose-950/40"],
html.light-theme [class~="bg-rose-950/60"],
html.light-theme [class~="bg-rose-950/70"] {
  background-color: #FFF1F2 !important;
}
html.light-theme [class~="bg-sky-950/60"] {
  background-color: #F0F9FF !important;
}
html.light-theme [class~="bg-amber-950/40"],
html.light-theme [class~="bg-amber-950/60"],
html.light-theme [class~="bg-amber-950/70"] {
  background-color: #FFFBEB !important;
}
html.light-theme [class~="bg-emerald-500/15"],
html.light-theme [class~="bg-emerald-500/20"] {
  background-color: #D1FAE5 !important;
}
html.light-theme [class~="bg-rose-500/15"] {
  background-color: #FFE4E6 !important;
}
html.light-theme [class~="bg-sky-500/15"] {
  background-color: #E0F2FE !important;
}


html.light-theme .status-new {
  background: #DBEAFE !important;
  color: #1D4ED8 !important;
  border: 1px solid #93C5FD !important;
}
html.light-theme .status-pending-payment {
  background: #FFE4E6 !important;
  color: #BE123C !important;
  border: 1px solid #FDA4AF !important;
}
html.light-theme .status-confirmed {
  background: #FEF3C7 !important;
  color: #92400E !important;
  border: 1px solid #FCD34D !important;
}
html.light-theme .status-processing {
  background: #FEF3C7 !important;
  color: #B45309 !important;
  border: 1px solid #FBBF24 !important;
}
html.light-theme .status-shipped {
  background: #EDE9FE !important;
  color: #6D28D9 !important;
  border: 1px solid #C4B5FD !important;
}
html.light-theme .status-delivered {
  background: #D1FAE5 !important;
  color: #047857 !important;
  border: 1px solid #6EE7B7 !important;
}
html.light-theme .status-cancelled {
  background: #FEE2E2 !important;
  color: #B91C1C !important;
  border: 1px solid #FCA5A5 !important;
}

/* ==========================================================================
   2. UNIVERSAL MOBILE & TABLET RESPONSIVE SYSTEM (إصلاح المقاسات)
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: 'Cairo', 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-dark-primary);
  color: var(--text-pure);
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  background-color: var(--bg-dark-primary);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(212, 175, 55, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 85% 85%, rgba(212, 175, 55, 0.03) 0%, transparent 40%);
  background-attachment: fixed;
}

[dir="ltr"] {
  font-family: 'Plus Jakarta Sans', 'Outfit', 'Segoe UI', sans-serif;
}

/* Touch momentum scrolling & tap highlights */
* {
  -webkit-tap-highlight-color: transparent;
}

.overflow-y-auto, .overflow-x-auto {
  -webkit-overflow-scrolling: touch;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.35);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}

/* Utilities */
.text-gold-gradient {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.bg-gold-gradient {
  background: var(--gold-gradient);
}

.border-gold {
  border-color: var(--gold-primary);
}

.shadow-gold-glow {
  box-shadow: 0 0 25px var(--gold-glow);
}

/* Glassmorphism & Cards */
.glass-panel {
  background: rgba(14, 18, 27, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(212, 175, 55, 0.15);
}

.glass-header {
  background: rgba(8, 10, 15, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.luxury-card {
  background: linear-gradient(180deg, rgba(20, 26, 38, 0.9) 0%, rgba(13, 17, 25, 0.95) 100%);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-dark-card);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.luxury-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.5), transparent);
  opacity: 0.6;
  transition: opacity 0.3s;
}

.luxury-card:hover {
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 14px 35px -8px rgba(0, 0, 0, 0.8), 0 0 20px rgba(212, 175, 55, 0.15);
}

/* Gold Button Sheen Animation */
.btn-gold-sheen {
  position: relative;
  overflow: hidden;
}
.btn-gold-sheen::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 20%,
    rgba(255, 255, 255, 0.35) 45%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0.35) 55%,
    transparent 80%
  );
  transform: rotate(30deg) translateX(-100%);
  transition: transform 0.75s cubic-bezier(0.19, 1, 0.22, 1);
  pointer-events: none;
}
.btn-gold-sheen:hover::after {
  transform: rotate(30deg) translateX(100%);
}

/* ---------------- Phone & Tablet Media Breakpoints ---------------- */

/* Mobile Phones (under 640px) */
@media (max-width: 639px) {
  .luxury-card {
    border-radius: 16px;
    padding: 0.875rem;
  }

  /* Compact Input Heights for Small Mobile */
  input, select, textarea {
    font-size: 0.875rem !important;
  }
}

/* Tablets (640px to 1024px) */
@media (min-width: 640px) and (max-width: 1024px) {
  .luxury-card {
    padding: 1.25rem;
  }
}

/* ---------------- Status Badges in Orders Pipeline ---------------- */
.status-new {
  background: rgba(59, 130, 246, 0.15);
  color: #60A5FA;
  border: 1px solid rgba(59, 130, 246, 0.35);
}
.status-pending-payment {
  background: rgba(244, 63, 94, 0.15);
  color: #FB7185;
  border: 1px solid rgba(244, 63, 94, 0.4);
}
.status-confirmed {
  background: rgba(212, 175, 55, 0.15);
  color: #FCD34D;
  border: 1px solid rgba(212, 175, 55, 0.35);
}
.status-processing {
  background: rgba(245, 158, 11, 0.15);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}
.status-shipped {
  background: rgba(139, 92, 246, 0.15);
  color: #A78BFA;
  border: 1px solid rgba(139, 92, 246, 0.35);
}
.status-delivered {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}
.status-cancelled {
  background: rgba(239, 68, 68, 0.15);
  color: #F87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}


/* ==========================================================================\n   3. SMALL-SCREEN NAVIGATION & FLUID LAYOUT\n   Phones (<768px): the hamburger opens one sidebar containing departments,\n   account and all header actions. Tablets and desktops keep the top navigation.\n   ========================================================================== */
#main-header { width: 100%; }
#main-view-container, #main-footer { min-width: 0; }
img, video, canvas, svg { max-width: 100%; }
button, input, select, textarea { max-width: 100%; }

@media (max-width: 767px) {
  .container { width: 100%; max-width: 100%; }
  #main-header header > .container { padding-left: 0.75rem; padding-right: 0.75rem; }
  #main-header .glass-header { overflow: visible; }
  #main-header .glass-header > div:first-child { font-size: 10px; }
  #main-view-container { width: 100%; overflow-x: clip; }
  .luxury-card { min-width: 0; }
  table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  input, select, textarea { font-size: 16px; } /* prevents iOS zoom */
}

@media (max-width: 480px) {
  #main-header .glass-header > .container { gap: 0.5rem; }
  #main-header .glass-header .text-lg { font-size: 0.95rem; }
  #main-header .glass-header .w-10 { width: 2.5rem; height: 2.5rem; }
}

/* Keep the mobile drawer above every modal and make it comfortable on short screens. */
#website-mobile-menu-drawer > div {
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}


/* ==========================================================================
   FINAL DEVICE RESPONSIVENESS — phones, foldables, tablets and desktops
   ========================================================================== */
:root { --site-gutter: clamp(10px, 3vw, 32px); }
html, body { width:100%; max-width:100%; overflow-x:hidden; }
body { min-height:100dvh; }
#main-header, #main-view-container, #main-footer { width:100%; max-width:100%; min-width:0; }
#main-view-container > * { min-width:0; }
img, picture, video, iframe { max-width:100%; height:auto; }

/* Mobile drawer must always sit above headers, modals, notifications and widgets. */
#website-mobile-menu-drawer { z-index:2147483000 !important; isolation:isolate; }
#website-mobile-menu-drawer > div { position:relative; z-index:2147483001; width:min(88vw, 390px) !important; max-width:390px; height:100dvh !important; padding-bottom:max(1.25rem, env(safe-area-inset-bottom)); padding-top:max(1.25rem, env(safe-area-inset-top)); box-shadow:0 0 0 100vmax rgba(0,0,0,.58), 0 20px 70px rgba(0,0,0,.65); }
#notifications-container, #product-modal-container, #cart-drawer-container, #whatsapp-floating-widget { isolation:auto; }

/* Phones of every common width: 320, 360, 375, 390, 412, 414, 430, 480, 540, 600, 640 and foldables. */
@media (max-width:767px) {
  body { font-size:14px; }
  .container { width:100% !important; max-width:100% !important; padding-left:var(--site-gutter) !important; padding-right:var(--site-gutter) !important; }
  #main-header .container { padding-left:12px !important; padding-right:12px !important; }
  #main-view-container { overflow-x:clip; }
  #main-view-container .max-w-7xl, #main-view-container .max-w-6xl, #main-view-container .max-w-5xl, #main-view-container .max-w-4xl, #main-view-container .max-w-3xl { width:100% !important; max-width:100% !important; }
  #main-view-container .px-3 { padding-left:10px !important; padding-right:10px !important; }
  .grid { min-width:0; }
  input, select, textarea, button { min-width:0; }
  input, select, textarea { font-size:16px !important; }
  .modal-backdrop-blur { padding:8px !important; }
  #admin-product-modal > div, #seller-product-modal > div { width:100% !important; max-width:100% !important; max-height:calc(100dvh - 16px) !important; border-radius:20px !important; padding:16px !important; }
  #admin-product-modal .flex.items-center.gap-2, #seller-product-modal .flex.items-center.gap-2 { flex-wrap:wrap; }
  #admin-colors > div, #admin-sizes > div, #seller-colors-container > div, #seller-sizes-container > div { flex-wrap:nowrap; }
}

@media (max-width:420px) {
  :root { --site-gutter: 8px; }
  #main-header .text-lg { font-size:.92rem !important; }
  #main-header .hidden.md\\:flex { display:none !important; }
  .rounded-3xl { border-radius:18px !important; }
  #admin-product-modal > div, #seller-product-modal > div { padding:12px !important; }
  #admin-colors input:first-child, #admin-sizes input:first-child, #seller-colors-container input:first-child, #seller-sizes-container input:first-child { min-width:0; }
}

/* Compact landscape phones and short screens. */
@media (max-height:600px) and (max-width:900px) {
  #website-mobile-menu-drawer > div { height:100dvh !important; padding-top:.75rem; padding-bottom:.75rem; }
  #admin-product-modal > div, #seller-product-modal > div { max-height:96dvh !important; }
}
