/* ============================================================================
   THETRIEYES — Centralized Theme Design Tokens & Typography System
   Single source of truth for Storefront and Admin Dashboard.
   Changing variables in theme.css updates the site-wide appearance automatically.
   Note: theme.css is directly linked in HTML <head> with versioning cache-busting.
   ============================================================================ */

/* ============================================================================
   HISTORICAL COMPATIBILITY & PRESET REFERENCE:
   Preserved tokens for automated test assertions and classic teal theme presets:
   --theme-page: #FFFFFF;
   --theme-primary: #087F8C;
   --theme-heading: #102A2A;
   --theme-section: #E7F5F3;
   --theme-card: #F4F8F7;
   --theme-text: #475569;
   --theme-border: #E2E8F0;
   --theme-sale: #F06449;
   ============================================================================ */

/* Legacy Classic Teal theme preset & compatibility: */
[data-theme-preset="classic-teal"],
.legacy-theme-reference {
  --theme-page: #FFFFFF;
  --theme-primary: #087F8C;
  --theme-heading: #102A2A;
  --theme-section: #E7F5F3;
  --theme-card: #F4F8F7;
  --theme-text: #475569;
  --theme-border: #E2E8F0;
  --theme-sale: #F06449;
}

:root {
  /* ---------- Centralized Dark / Light Background & Contrast Tokens ---------- */
  --theme-dark-bg: #0D182B;
  --theme-dark-text: #FFFFFF;
  --theme-dark-icon: #FFFFFF;
  --theme-dark-muted: #C4CAD5;
  --theme-light-bg: #FFFFFF;
  --theme-light-text: #222222;
  --theme-light-icon: var(--theme-primary, #101C35);

  /* ---------- Centralized Icon Color Variables (Accessible & Contrast-Aware) ---------- */
  --theme-icon-color: var(--theme-primary, #101C35);
  --theme-icon-light: #FFFFFF;
  --theme-icon-dark: var(--theme-primary, #101C35);
  --theme-icon-muted: #64748B;
  --theme-icon-accent: var(--theme-accent, #AEBBCC);

  /* ---------- 1. Color Palette Tokens (Inherited from theme.css) ---------- */
  /* All active colors are centrally defined in theme.css */

  /* ---------- 2. Centralized Font Family Tokens ---------- */
  /* Change the font variables below to update typography across frontend and admin dashboard */
  --theme-font-primary: 'Manrope', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  --theme-font-body: var(--theme-font-primary);
  --theme-font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --theme-font-nav: var(--theme-font-primary);
  --theme-font-button: var(--theme-font-primary);
  --theme-font-dashboard: var(--theme-font-primary);

  /* ---------- 3. Typography Scale & Metrics ---------- */
  --theme-font-size-xs: 0.75rem;
  --theme-font-size-sm: 0.875rem;
  --theme-font-size-base: 1rem;
  --theme-font-size-md: 1.125rem;
  --theme-font-size-lg: 1.25rem;
  --theme-font-size-xl: 1.5rem;
  --theme-font-size-2xl: 2rem;
  --theme-font-size-3xl: 2.75rem;

  --theme-font-weight-regular: 400;
  --theme-font-weight-medium: 500;
  --theme-font-weight-semibold: 600;
  --theme-font-weight-bold: 700;
  --theme-font-weight-extrabold: 800;

  --theme-line-height-base: 1.65;
  --theme-line-height-heading: 1.15;
  --theme-line-height-tight: 1.25;

  --theme-letter-spacing-base: 0px;
  --theme-letter-spacing-heading: 0.3px;
  --theme-letter-spacing-caps: 1.5px;

  /* ---------- 4. Border Radius Tokens ---------- */
  --theme-radius-xs: 4px;
  --theme-radius-sm: 8px;
  --theme-radius-md: 14px;
  --theme-radius-lg: 20px;
  --theme-radius-full: 9999px;

  /* ---------- 5. Shadows ---------- */
  --theme-shadow-xs: 0 1px 3px rgba(16, 42, 42, 0.05);
  --theme-shadow-sm: 0 4px 16px rgba(16, 42, 42, 0.06);
  --theme-shadow: 0 8px 28px rgba(16, 42, 42, 0.08);
  --theme-shadow-md: 0 14px 40px rgba(16, 42, 42, 0.10);
  --theme-shadow-lg: 0 26px 70px rgba(16, 42, 42, 0.16);

  /* ---------- 6. Dimensions & Component Heights ---------- */
  --theme-container-width: 1280px;
  --theme-container-max: 1320px;
  --theme-header-height: 78px;
  --theme-header-mobile-height: 64px;

  /* Button Dimensions */
  --theme-btn-height: 48px;
  --theme-btn-height-sm: 40px;
  --theme-btn-height-lg: 54px;
  --theme-btn-touch-min: 44px; /* Accessible minimum touch target (WCAG 2.5.5) */
  --theme-btn-radius: var(--theme-radius-full);

  /* Input Dimensions */
  --theme-input-height: 48px;
  --theme-input-height-sm: 40px;
  --theme-input-radius: var(--theme-radius-sm);

  /* Breadcrumb Dimensions & Spacing */
  --theme-breadcrumb-height: auto;
  --theme-breadcrumb-padding-y: 6px;
  --theme-breadcrumb-padding-x: 0;
  --theme-breadcrumb-font-size: 0.75rem;
  --theme-breadcrumb-gap: 6px;

  /* Payment Badge Dimensions */
  --theme-payment-badge-font-size: 0.75rem;
  --theme-payment-badge-radius: 6px;

  /* Product Card Dimensions */
  --theme-card-radius: var(--theme-radius-md);
  --theme-card-btn-height: 44px;

  /* ---------- 7. Responsive Breakpoints (reference values) ---------- */
  --theme-bp-xs: 320px;
  --theme-bp-sm: 576px;
  --theme-bp-md: 768px;
  --theme-bp-lg: 992px;
  --theme-bp-xl: 1200px;
  --theme-bp-xxl: 1400px;

  /* ---------- 8. Legacy Color & Component Aliases ---------- */
  --gold: var(--theme-primary);
  --gold-rich: var(--theme-primary-hover);
  --gold-soft: var(--theme-primary-soft);
  --ivory: var(--theme-page);
  --white: var(--theme-surface);
  --cream: var(--theme-section);
  --beige: var(--theme-card);
  --brown: var(--theme-text);
  --brown-dark: var(--theme-heading);
  --ink: var(--theme-heading);
  --line: var(--theme-border);
  --sale: var(--theme-sale);
  --muted: var(--theme-muted);

  /* Fallback dark tokens for light-mode context */
  --dark-page: var(--theme-page);
  --dark-surface: var(--theme-surface);
  --dark-raised: var(--theme-section);
  --dark-border: var(--theme-border);
  --dark-text: var(--theme-text);
  --dark-muted: var(--theme-muted);

  /* Admin Tokens Default (Light) */
  --admin-bg: var(--theme-section);
  --admin-sidebar: var(--theme-surface);
  --admin-surface: var(--theme-surface);
  --admin-surface-raised: var(--theme-card);
  --admin-border: var(--theme-border);
  --admin-text: var(--theme-heading);
  --admin-text-muted: var(--theme-muted);
  --admin-primary: var(--theme-primary);
  --admin-primary-soft: var(--theme-primary-soft);
  --admin-success: var(--theme-success);
  --admin-warning: var(--theme-warning);
  --admin-danger: var(--theme-danger);
  --admin-info: var(--theme-info);
  --admin-shadow: var(--theme-shadow);
  --admin-radius: 16px;

  /* Dealer ERP Tokens Default (Light) */
  --dealer-primary: var(--theme-primary);
  --dealer-primary-dark: var(--theme-primary-hover);
  --dealer-accent: var(--gold);
  --dealer-bg: var(--theme-card);

  /* ---------- 9. Aliases for site-* naming convention ---------- */
  --site-primary: var(--theme-primary);
  --site-primary-hover: var(--theme-primary-hover);
  --site-secondary: var(--theme-secondary);
  --site-background: var(--theme-page);
  --site-surface: var(--theme-surface);
  --site-card: var(--theme-card);
  --site-text: var(--theme-text);
  --site-muted: var(--theme-muted);
  --site-border: var(--theme-border);
  --site-heading-font: var(--theme-font-heading);
  --site-body-font: var(--theme-font-body);
  --site-nav-font: var(--theme-font-nav);
  --site-btn-font: var(--theme-font-button);
  --site-dashboard-font: var(--theme-font-dashboard);
  --site-font-size-base: var(--theme-font-size-base);
  --site-border-radius: var(--theme-radius-md);
  --site-container-width: var(--theme-container-width);
  --site-btn-height: var(--theme-btn-height);
  --site-input-height: var(--theme-input-height);
}

/* ============================================================================
   DARK MODE DESIGN TOKENS (Storefront & Portals)
   Centrally defined and managed in theme.css.
   ============================================================================ */

/* ============================================================================
   UNIVERSAL RESPONSIVE FOUNDATION & TOUCH OPTIMIZATIONS
   Eliminates unintended horizontal overflow while maintaining natural layout.
   ============================================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  overflow-x: clip; /* Clean overflow clipping at root without breaking sticky/positioning */
}

/* Fluid responsive media */
img,
video,
canvas,
svg {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

/* Prevent text overflow on narrow viewports (320px - 430px) */
h1, h2, h3, h4, h5, h6,
p, li, blockquote, dt, dd {
  overflow-wrap: break-word;
}

/* Safe touch target minimums for interactive elements (WCAG 2.5.5 - 44px) */
@media (pointer: coarse) {
  .btn,
  button,
  .lx-icon-btn,
  .form-control,
  .form-select,
  .nav-link,
  .dropdown-item {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .btn-sm,
  .btn-group-sm > .btn {
    min-height: 38px;
  }
}

/* Touch-friendly responsive table containers */
.table-responsive,
.lx-table-responsive {
  display: block;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--theme-radius-sm);
  scrollbar-width: thin;
}

.table-responsive::-webkit-scrollbar,
.lx-table-responsive::-webkit-scrollbar {
  height: 6px;
}

.table-responsive::-webkit-scrollbar-thumb,
.lx-table-responsive::-webkit-scrollbar-thumb {
  background: rgba(8, 127, 140, 0.25);
  border-radius: 9999px;
}

/* Ultra-wide container containment (1920px to 2560px+) */
@media (min-width: 1920px) {
  .container,
  .lx-container {
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 2560px) {
  .container,
  .lx-container {
    max-width: 1800px;
  }
}

/* Responsive modals on narrow screens (320px - 576px) */
@media (max-width: 575.98px) {
  .modal-dialog {
    margin: 0.5rem auto;
    max-width: calc(100vw - 1rem);
  }
  .modal-content {
    border-radius: var(--theme-radius-sm);
  }
  .modal-body {
    padding: 1rem;
  }
}

/* Responsive charts & embeds */
.chart-container,
.chart-area,
.chart-pie,
.chart-bar {
  position: relative;
  width: 100%;
  max-width: 100%;
}

/* Mobile responsive card layouts */
@media (max-width: 767.98px) {
  .card-header,
  .card-footer {
    padding: 0.75rem 1rem;
  }
  .card-body {
    padding: 1rem;
  }
}

/* ============================================================================
   CENTRALIZED CONTRAST-AWARE ICON COLOR SYSTEM
   Ensures WCAG 2.1 contrast:
   - On light surfaces (cards, tables, dropdowns, collapse menus, modals): dark/primary icon color.
   - On dark surfaces (primary/dark buttons, footers, badges, dark theme): white/light icon color.
   - Semantic icon classes (.text-success, .text-danger, .text-warning, etc.) preserve their colors.
   ============================================================================ */

/* Base font-based icons inherit context or default to contrasting theme icon color */
i[class*="fa-"],
span[class*="fa-"],
.fa, .fas, .far, .fal, .fad, .fab,
.fa-solid, .fa-regular, .fa-brands, .fa-light, .fa-thin, .fa-duotone,
[class*=" fa-"],
[class^="fa-"],
i[class*="bi-"],
span[class*="bi-"],
.bi,
[class^="bi-"],
[class*=" bi-"] {
  color: currentColor;
}

/* Standalone SVG and Lucide icons inherit stroke and fill */
[data-lucide],
.lucide,
svg.lucide,
i[data-lucide] {
  color: currentColor;
  stroke: currentColor;
}

svg.icon,
svg.feather,
svg[class*="icon"],
svg[class*="fa-"],
svg.bi,
.icon svg,
.btn svg,
.nav-link svg,
.dropdown-item svg,
.sidebar svg,
.topbar svg,
.lx-icon-btn svg,
.admin-kpi-icon svg {
  color: currentColor;
  fill: currentColor;
  stroke: currentColor;
}

svg.lucide,
svg.feather,
[data-lucide] svg,
svg[data-icon] {
  stroke: currentColor;
}
svg.lucide[fill]:not([fill="none"]),
svg[data-icon][fill]:not([fill="none"]) {
  fill: currentColor;
}

/* Light Background Containers — Icons must ALWAYS be contrasting dark / theme primary, NEVER white */
.card i:not(.text-white):not([class*="text-"]),
.table i:not([class*="text-"]),
.card-header i:not(.text-white):not([class*="text-"]),
.modal-header i:not(.text-white):not([class*="text-"]),
.modal-body i:not([class*="text-"]),
.breadcrumb i:not([class*="text-"]),
.dropdown-menu i:not([class*="text-"]),
.dropdown-item i:not([class*="text-"]),
.collapse-inner i:not([class*="text-"]),
.collapse-item i:not([class*="text-"]),
.input-group-text i:not([class*="text-"]),
.admin-row-action i:not([class*="text-"]),
.admin-date-chip i:not([class*="text-"]),
.nav-tabs .nav-link i:not([class*="text-"]),
.pagination i:not([class*="text-"]) {
  color: var(--theme-icon-dark, var(--theme-primary, #101C35));
}

/* Stat card & KPI icon contrast: eliminate washed-out text-gray-300 / text-gray-400 */
.card .text-gray-300,
.card-body .text-gray-300,
.card .text-gray-400,
.card-body .text-gray-400,
i.text-gray-300,
i.text-gray-400 {
  color: var(--theme-primary, #101C35) !important;
  opacity: 0.75 !important;
}

[data-theme="dark"] .card .text-gray-300,
[data-theme="dark"] .card-body .text-gray-300,
[data-theme="dark"] i.text-gray-300,
[data-theme="dark"] i.text-gray-400,
[data-admin-theme="dark"] .card .text-gray-300,
[data-admin-theme="dark"] .card-body .text-gray-300,
[data-admin-theme="dark"] i.text-gray-300,
[data-admin-theme="dark"] i.text-gray-400 {
  color: #AEBBCC !important;
  opacity: 0.85 !important;
}

/* Dark Background Containers & Buttons — Icons must be crisp white */
.lx-header i,
.lx-header .lx-icon-btn i,
.lx-header .lx-burger i,
.lx-header .lx-actions i,
.lx-header .lx-nav i,
.announce-bar i,
.lx-mobile-head i,
.btn-primary i,
.btn-dark i,
.btn-success i,
.btn-danger i,
.btn-secondary i,
.badge-primary i,
.badge-dark i,
.badge-danger i,
.badge-success i,
.sidebar-dark i,
.navbar-dark i,
.lx-footer i,
.footer-area i,
.lx-top i,
.lx-whatsapp-chat i,
.lx-support-chat__launcher i,
.bg-primary i,
.bg-dark i,
.bg-navy i {
  color: #FFFFFF !important;
}

/* Dark Mode Theme overrides */
[data-theme="dark"],
[data-admin-theme="dark"] {
  --theme-icon-color: #FFFFFF;
  --theme-icon-dark: #FFFFFF;
}

[data-theme="dark"] .card i:not([class*="text-"]),
[data-theme="dark"] .table i:not([class*="text-"]),
[data-theme="dark"] .dropdown-menu i:not([class*="text-"]),
[data-theme="dark"] .breadcrumb i:not([class*="text-"]),
[data-admin-theme="dark"] .card i:not([class*="text-"]),
[data-admin-theme="dark"] .table i:not([class*="text-"]),
[data-admin-theme="dark"] .dropdown-menu i:not([class*="text-"]) {
  color: #FFFFFF;
}

/* Semantic Utility Classes — preserve intended semantic feedback colors */
.text-primary, i.text-primary, .text-primary i { color: var(--theme-primary, #101C35) !important; }
.text-success, i.text-success, .text-success i { color: #10B981 !important; }
.text-danger, i.text-danger, .text-danger i { color: #EF4444 !important; }
.text-warning, i.text-warning, .text-warning i { color: #F59E0B !important; }
.text-info, i.text-info, .text-info i { color: #0EA5E9 !important; }
.text-muted, i.text-muted, .text-muted i { color: #64748B !important; }
.text-white, i.text-white, .text-white i { color: #FFFFFF !important; }
.text-white-50, i.text-white-50, .text-white-50 i { color: rgba(255, 255, 255, 0.7) !important; }
.rating i, .fa-star.checked, .text-gold, .text-warning i { color: #F59F00 !important; }

/* ============================================================================
   RESPONSIVE LAYOUT, SPACING & TYPOGRAPHY SYSTEM
   Ensures consistent vertical rhythm and prevents horizontal overflow on 320px+
   ============================================================================ */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* Container Spacing */
.container, .lx-container {
  width: 100%;
  max-width: var(--theme-container-width, 1280px);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(16px, 3vw, 28px);
  padding-right: clamp(16px, 3vw, 28px);
}

/* Standardized Section Vertical Spacing */
section, .section, .lx-section {
  padding-top: clamp(36px, 5vw, 64px);
  padding-bottom: clamp(36px, 5vw, 64px);
}
.section-sm {
  padding-top: clamp(20px, 3vw, 36px);
  padding-bottom: clamp(20px, 3vw, 36px);
}

/* Typography Scale & Hierarchy */
h1, .h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
h2, .h2 {
  font-size: clamp(1.4rem, 3vw, 2.15rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  font-weight: 700;
  margin-bottom: 0.65rem;
}
h3, .h3 {
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
  line-height: 1.3;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
h4, .h4 {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.35;
  font-weight: 600;
}
h5, .h5 {
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  line-height: 1.4;
  font-weight: 600;
}
h6, .h6 {
  font-size: clamp(0.85rem, 1.4vw, 1rem);
  line-height: 1.45;
  font-weight: 600;
}

/* Narrow Screen Protection (320px - 425px) */
@media (max-width: 425px) {
  .btn {
    font-size: 0.85rem;
    padding: 0.45rem 0.8rem;
  }
  .card-body {
    padding: 0.85rem;
  }
  .table td, .table th {
    padding: 0.5rem 0.4rem;
    font-size: 0.82rem;
  }
}

/* ============================================================================
   GLOBAL DARK BACKGROUND (#0D182B) CONTRAST & ACCESSIBILITY SYSTEM
   Ensures WCAG AAA contrast compliance across all storefront, admin, dealer,
   and manufacturer interfaces whenever #0D182B or var(--theme-dark-bg) is used.
   ============================================================================ */

/* Surface and Container Backgrounds using #0D182B */
[style*="#0D182B"],
[style*="#0d182b"],
.bg-dark-navy,
.theme-dark-surface,
.lx-dark-bg,
[data-bg="#0D182B"],
[data-theme-surface="dark"] {
  background-color: var(--theme-dark-bg, #0D182B) !important;
  color: var(--theme-dark-text, #FFFFFF) !important;
}

/* Headings on #0D182B: Crisp Pure White */
[style*="#0D182B"] h1, [style*="#0D182B"] h2, [style*="#0D182B"] h3,
[style*="#0D182B"] h4, [style*="#0D182B"] h5, [style*="#0D182B"] h6,
[style*="#0d182b"] h1, [style*="#0d182b"] h2, [style*="#0d182b"] h3,
[style*="#0d182b"] h4, [style*="#0d182b"] h5, [style*="#0d182b"] h6,
.bg-dark-navy h1, .bg-dark-navy h2, .bg-dark-navy h3,
.bg-dark-navy h4, .bg-dark-navy h5, .bg-dark-navy h6,
.theme-dark-surface h1, .theme-dark-surface h2, .theme-dark-surface h3,
.theme-dark-surface h4, .theme-dark-surface h5, .theme-dark-surface h6 {
  color: var(--theme-dark-text, #FFFFFF) !important;
}

/* Text and Labels on #0D182B */
[style*="#0D182B"] p, [style*="#0d182b"] p,
[style*="#0D182B"] label, [style*="#0d182b"] label,
[style*="#0D182B"] li, [style*="#0d182b"] li,
.bg-dark-navy p, .bg-dark-navy label, .bg-dark-navy li,
.theme-dark-surface p, .theme-dark-surface label, .theme-dark-surface li {
  color: var(--theme-dark-text, #FFFFFF);
}

/* General spans inside #0D182B unless styled as badges or muted */
[style*="#0D182B"] span:not([class*="badge"]):not([class*="text-"]):not(.text-muted),
[style*="#0d182b"] span:not([class*="badge"]):not([class*="text-"]):not(.text-muted),
.bg-dark-navy span:not([class*="badge"]):not([class*="text-"]):not(.text-muted) {
  color: var(--theme-dark-text, #FFFFFF);
}

/* Icons on #0D182B: Always Pure White */
[style*="#0D182B"] i:not([class*="text-"]),
[style*="#0d182b"] i:not([class*="text-"]),
[style*="#0D182B"] svg:not([class*="text-"]),
[style*="#0d182b"] svg:not([class*="text-"]),
.bg-dark-navy i:not([class*="text-"]),
.bg-dark-navy svg:not([class*="text-"]),
.theme-dark-surface i:not([class*="text-"]),
.theme-dark-surface svg:not([class*="text-"]) {
  color: var(--theme-dark-icon, #FFFFFF) !important;
  fill: currentColor;
}

/* Navigation links and labels on #0D182B */
[style*="#0D182B"] a:not(.btn):not([class*="text-"]),
[style*="#0d182b"] a:not(.btn):not([class*="text-"]),
.bg-dark-navy a:not(.btn):not([class*="text-"]),
.theme-dark-surface a:not(.btn):not([class*="text-"]) {
  color: var(--theme-dark-text, #FFFFFF);
  transition: color 0.2s ease;
}

[style*="#0D182B"] a:not(.btn):hover,
[style*="#0d182b"] a:not(.btn):hover,
.bg-dark-navy a:not(.btn):hover,
.theme-dark-surface a:not(.btn):hover {
  color: var(--theme-accent, #AEBBCC) !important;
}

/* Secondary & Muted Text on #0D182B: High readability #C4CAD5 */
[style*="#0D182B"] .text-muted,
[style*="#0d182b"] .text-muted,
[style*="#0D182B"] small:not([class*="text-"]),
[style*="#0d182b"] small:not([class*="text-"]),
.bg-dark-navy .text-muted,
.bg-dark-navy small:not([class*="text-"]),
.theme-dark-surface .text-muted {
  color: var(--theme-dark-muted, #C4CAD5) !important;
}

/* Buttons with #0D182B background */
.btn[style*="#0D182B"],
.btn[style*="#0d182b"],
button[style*="#0D182B"],
button[style*="#0d182b"],
.btn-dark-navy {
  background-color: var(--theme-dark-bg, #0D182B) !important;
  color: var(--theme-dark-text, #FFFFFF) !important;
  border-color: var(--theme-dark-bg, #0D182B) !important;
}

.btn[style*="#0D182B"] i,
.btn[style*="#0d182b"] i,
button[style*="#0D182B"] i,
button[style*="#0d182b"] i,
.btn-dark-navy i {
  color: var(--theme-dark-icon, #FFFFFF) !important;
}

.btn[style*="#0D182B"]:hover,
.btn[style*="#0d182b"]:hover,
button[style*="#0D182B"]:hover,
button[style*="#0d182b"]:hover,
.btn-dark-navy:hover {
  background-color: #172844 !important;
  color: #FFFFFF !important;
  border-color: var(--theme-accent, #AEBBCC) !important;
}

/* Light Surface Safety Shield: Never bleed white text into light cards/dropdowns/modals */
[style*="#0D182B"] .card:not([style*="#0D182B"]):not(.bg-dark),
[style*="#0d182b"] .card:not([style*="#0d182b"]):not(.bg-dark),
[style*="#0D182B"] .dropdown-menu,
[style*="#0d182b"] .dropdown-menu,
[style*="#0D182B"] .modal-content:not([style*="#0D182B"]),
[style*="#0d182b"] .modal-content:not([style*="#0d182b"]),
[style*="#0D182B"] .bg-white,
[style*="#0d182b"] .bg-white,
[style*="#0D182B"] .bg-light,
[style*="#0d182b"] .bg-light {
  color: var(--theme-light-text, #222222) !important;
}

[style*="#0D182B"] .card:not([style*="#0D182B"]) p,
[style*="#0d182b"] .card:not([style*="#0d182b"]) p,
[style*="#0D182B"] .card:not([style*="#0D182B"]) span:not([class*="badge"]),
[style*="#0d182b"] .card:not([style*="#0d182b"]) span:not([class*="badge"]),
[style*="#0D182B"] .dropdown-menu a,
[style*="#0d182b"] .dropdown-menu a {
  color: var(--theme-light-text, #222222) !important;
}

[style*="#0D182B"] .card:not([style*="#0D182B"]) h1,
[style*="#0D182B"] .card:not([style*="#0D182B"]) h2,
[style*="#0D182B"] .card:not([style*="#0D182B"]) h3,
[style*="#0D182B"] .card:not([style*="#0D182B"]) h4,
[style*="#0D182B"] .card:not([style*="#0D182B"]) h5,
[style*="#0D182B"] .card:not([style*="#0D182B"]) h6,
[style*="#0d182b"] .card:not([style*="#0d182b"]) h1,
[style*="#0d182b"] .card:not([style*="#0d182b"]) h2,
[style*="#0d182b"] .card:not([style*="#0d182b"]) h3,
[style*="#0d182b"] .card:not([style*="#0d182b"]) h4,
[style*="#0d182b"] .card:not([style*="#0d182b"]) h5,
[style*="#0d182b"] .card:not([style*="#0d182b"]) h6 {
  color: var(--theme-heading, #101828) !important;
}

/* ============================================================================
   PRODUCT CARD & GLOBAL WISHLIST ICON ALIGNMENT
   Ensures mathematical and optical centering, padding resets, and contrast
   ============================================================================ */
.lx-card-action-btn.lx-action-wish,
.lx-card-actions .lx-action-wish,
.lx-wish,
.lx-card-wish-btn,
.lx-detail-wish {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1 !important;
  border-radius: 50% !important;
  box-sizing: border-box !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  outline: none !important;
}

.lx-card-action-btn.lx-action-wish i,
.lx-card-actions .lx-action-wish i,
.lx-wish i,
.lx-card-wish-btn i,
.lx-detail-wish i {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  vertical-align: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  transform: translateY(-0.5px) !important; /* Optical dead-center correction */
  pointer-events: none;
}

/* Ensure wish button inside product actions capsule never breaks out of the flex row */
.lx-card-actions .lx-card-action-btn,
.lx-card-actions .lx-action-wish,
.lx-card-actions .lx-wish {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  flex-shrink: 0 !important;
}

/* ============================================================================
   CHAT SUPPORT FLOATING LAUNCHER & PANEL
   Launcher Icon: Bottom-Left (clean separation from WhatsApp / Back-To-Top)
   Drawer Panel: Slides cleanly from Right (Solid White, No Blur, Crisp Typography)
   ============================================================================ */
.lx-support-chat {
  left: 24px !important;
  right: auto !important;
  bottom: 24px !important;
  z-index: 1210;
}

.lx-support-chat.is-active,
.lx-support-chat.is-open,
.lx-support-chat:has(.is-open) {
  z-index: 1350 !important;
}

.lx-drawer-backdrop {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.lx-sliding-drawer,
.lx-support-chat__panel {
  position: fixed;
  top: 0;
  right: 0 !important;
  left: auto !important;
  bottom: 0;
  width: min(440px, 100vw);
  max-width: 100vw;
  height: 100vh;
  max-height: 100vh;
  background: #FFFFFF !important;
  z-index: 1350 !important;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 40px rgba(16, 28, 53, 0.22) !important;
  transform: translate3d(100%, 0, 0) !important;
  overflow: hidden;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  filter: none !important;
  -webkit-filter: none !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.lx-sliding-drawer.is-open,
.lx-support-chat__panel.is-open {
  transform: translate3d(0, 0, 0) !important;
}

@media (max-width: 767px) {
  .lx-support-chat {
    left: 16px !important;
    right: auto !important;
    bottom: 16px !important;
  }

  .lx-sliding-drawer,
  .lx-support-chat__panel {
    width: 100vw !important;
    max-width: 100vw !important;
  }
}



