/* ==========================================================================
   FIRST MARK E-COMMERCE & BACK-OFFICE - STYLESHEET
   Colors: Primary Blue (#0072CE), Accent Orange (#FF6B00), Dark Navy (#0F172A)
   ========================================================================== */

:root {
  --primary-blue: #0072CE;
  --primary-blue-hover: #005bb5;
  --primary-blue-light: #e6f1fc;
  
  --accent-orange: #FF6B00;
  --accent-orange-hover: #e05e00;
  --accent-orange-light: #fff0e6;
  
  --dark-navy: #0F172A;
  --dark-slate: #1E293B;
  --dark-muted: #64748B;
  
  --bg-body: #F8FAFC;
  --bg-card: #FFFFFF;
  
  --border-color: #E2E8F0;
  --border-focus: #94A3B8;
  
  --success-green: #10B981;
  --warning-amber: #F59E0B;
  --danger-red: #EF4444;
  --purple-indigo: #6366F1;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 28px rgba(0,0,0,0.12);
  --shadow-glow: 0 0 20px rgba(0, 114, 206, 0.2);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', sans-serif;
}

/* RESET & BASE */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: clip;
  max-width: 100%;
  width: 100%;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-body);
  color: var(--dark-slate);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: all 0.2s ease;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.accent {
  color: var(--accent-orange);
}

.text-orange {
  color: var(--accent-orange);
}

.text-white {
  color: #FFFFFF !important;
}

.hidden {
  display: none !important;
}

/* VIEW SECTIONS (Store vs Admin toggle) */
.view-section {
  display: none;
}

.view-section.active {
  display: block;
}

/* TOP PROMO BAR */
.top-bar {
  background: linear-gradient(90deg, #0f172a 0%, #1e293b 50%, #0072ce 100%);
  color: #ffffff;
  padding: 0.5rem 0;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.promo-ticker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow: hidden;
}

.badge-fire {
  background-color: var(--accent-orange);
  color: #fff;
  font-weight: 700;
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.ticker-text {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.top-bar-info {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.85rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.whatsapp-link {
  color: #25D366;
  font-weight: 600;
}

.whatsapp-link:hover {
  text-decoration: underline;
}

/* MAIN HEADER */
.main-header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
}

.header-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: 0.75rem 1.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark-navy);
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.brand-slogan {
  font-size: 0.72rem;
  color: var(--dark-muted);
  font-weight: 500;
}

/* SEARCH BOX */
.search-box {
  position: relative;
  width: 100%;
  max-width: 550px;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.search-box input {
  width: 100%;
  padding: 0.7rem 1rem 0.7rem 2.6rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  font-size: 0.95rem;
  transition: all 0.2s ease;
  background-color: #F1F5F9;
}

.search-box input:focus {
  border-color: var(--primary-blue);
  background-color: #ffffff;
  box-shadow: 0 0 0 4px var(--primary-blue-light);
  outline: none;
}

.search-icon {
  position: absolute;
  left: 1rem;
  color: var(--dark-muted);
}

.btn-search {
  position: absolute;
  right: 4px;
  background-color: var(--primary-blue);
  color: #fff;
  padding: 0.45rem 1.2rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 0.85rem;
  transition: background 0.2s;
}

.btn-search:hover {
  background-color: var(--primary-blue-hover);
}

.search-dropdown {
  position: absolute;
  top: 110%;
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-height: 350px;
  overflow-y: auto;
  z-index: 105;
}

.search-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #F1F5F9;
  cursor: pointer;
  transition: background 0.15s;
}

.search-item:hover {
  background-color: var(--primary-blue-light);
}

.search-item img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
}

.search-item-info h5 {
  font-size: 0.9rem;
  color: var(--dark-navy);
}

.search-item-info span {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-orange);
}

.btn-clear-search {
  position: absolute;
  right: 110px;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--dark-muted);
  cursor: pointer;
  padding: 0.1rem 0.5rem;
  border-radius: 50%;
  line-height: 1;
  transition: all 0.2s ease;
  z-index: 5;
}

.btn-clear-search:hover {
  color: var(--danger-red, #EF4444);
  transform: scale(1.15);
}

.search-suggestions-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  padding: 1rem;
  z-index: 105;
  animation: waFadeIn 0.25s ease-out;
}

.suggestions-header {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--dark-navy);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.suggestions-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sug-tag {
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  color: var(--dark-navy);
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.sug-tag i {
  color: var(--primary-blue);
  font-size: 0.75rem;
}

.sug-tag:hover {
  background: var(--primary-blue-light);
  color: var(--primary-blue);
  border-color: var(--primary-blue);
  transform: translateY(-2px);
}

/* HEADER ACTIONS */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.view-switch-container {
  display: flex;
  background-color: #F1F5F9;
  padding: 3px;
  border-radius: var(--radius-lg);
}

.btn-install-header {
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-lg);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark-navy);
  background: #F1F5F9;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-install-header:hover {
  background: #E2E8F0;
  border-color: var(--primary-blue);
  color: var(--primary-blue);
}

.btn-view-switch {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-lg);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark-muted);
  background: transparent;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-view-switch.active {
  background-color: #ffffff;
  color: var(--primary-blue);
  box-shadow: var(--shadow-sm);
}

.btn-view-switch.admin-btn {
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  color: var(--dark-muted);
}

.btn-view-switch.admin-btn:hover {
  color: var(--primary-blue);
}

.btn-view-switch.admin-btn.active {
  color: var(--accent-orange);
}

.admin-badge {
  background-color: var(--accent-orange);
  color: #fff;
  font-size: 0.65rem;
  padding: 0.1rem 0.4rem;
  border-radius: 10px;
  font-weight: 700;
}

.btn-cart {
  background-color: var(--primary-blue-light);
  color: var(--primary-blue);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.2s ease;
}

.btn-cart:hover {
  background-color: var(--primary-blue);
  color: #fff;
}

.icon-badge-wrap {
  position: relative;
  font-size: 1.2rem;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  background-color: var(--accent-orange);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-btn-text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.2;
}

.cart-btn-text .label {
  font-size: 0.7rem;
  opacity: 0.8;
  font-weight: 500;
}

.cart-btn-text .val {
  font-size: 0.85rem;
  font-weight: 700;
}

/* CATEGORIES NAV */
.categories-nav {
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.6rem 0;
  overflow-x: auto;
  position: sticky;
  top: 68px;
  z-index: 95;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  scrollbar-width: none;
  transition: all 0.2s ease;
}

.categories-nav::-webkit-scrollbar {
  display: none;
}

.cat-flex {
  display: flex;
  gap: 0.75rem;
  white-space: nowrap;
}

.cat-pill {
  background: rgba(255,255,255,0.08);
  color: #94A3B8;
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.cat-pill:hover {
  background: rgba(255,255,255,0.18);
  color: #ffffff;
}

.cat-pill.active {
  background-color: var(--primary-blue);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 114, 206, 0.4);
}

.cat-pill.promo-pill {
  background: linear-gradient(90deg, #FF6B00 0%, #E05E00 100%);
  color: #ffffff;
}

/* HERO BANNER */
.hero-banner {
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: #ffffff;
  padding: 3.5rem 0;
  position: relative;
  overflow: hidden;
  margin-bottom: 2.5rem;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 450px;
  align-items: center;
  gap: 3rem;
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 107, 0, 0.2);
  border: 1px solid var(--accent-orange);
  color: var(--accent-orange);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-text h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, #FFFFFF 0%, #E2E8F0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text p {
  font-size: 1.1rem;
  color: #94A3B8;
  margin-bottom: 1.25rem;
  max-width: 600px;
}

/* COUNTDOWN TIMER HERO */
.promo-countdown-wrap {
  margin: 0.5rem 0 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 107, 0, 0.35);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  display: inline-flex;
  flex-direction: column;
  gap: 0.5rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}

.countdown-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #E2E8F0;
  letter-spacing: 0.8px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.countdown-timer {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.time-block {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--accent-orange);
  border-radius: 8px;
  min-width: 52px;
  padding: 0.3rem 0.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.time-block .num {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1;
}

.time-block .lbl {
  font-size: 0.62rem;
  color: #94A3B8;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 2px;
}

.countdown-timer .colon {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-orange);
  animation: blinkColon 1s infinite;
}

@keyframes blinkColon {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.trust-features {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #CBD5E1;
}

.trust-item i {
  color: var(--accent-orange);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image-wrap {
  position: relative;
  text-align: center;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
}

/* ==========================================
   AMPOULE VINTAGE SUSPENDUE & SCINTILLEMENT
   ========================================== */
.vintage-lamp-wrap {
  position: absolute;
  top: -45px;
  left: 28px;
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  transform-origin: top center;
  animation: lampSwing 5.5s ease-in-out infinite;
}

/* Cordon d'alimentation suspendu */
.lamp-wire {
  width: 2px;
  height: 34px;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.9), #1E293B);
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}

/* Douille en laiton antique */
.lamp-socket {
  width: 10px;
  height: 7px;
  background: linear-gradient(135deg, #78350F, #D97706, #451A03);
  border-radius: 2px 2px 0 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* Corps de l'ampoule plus petit et discret */
.lamp-bulb {
  position: relative;
  width: 30px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lamp-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.6));
}

/* Verre & Filament incandescent */
.bulb-glass {
  transition: all 0.3s ease;
  animation: glassGlow 3.5s ease-in-out infinite;
}

.bulb-filament {
  stroke-dasharray: 60;
  animation: filamentFlicker 3.5s infinite;
}

.bulb-core-glow {
  animation: corePulse 3.5s infinite;
}

/* Faisceau lumineux doux projeté sur le coin de l'image */
.lamp-light-beam {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 110px;
  background: radial-gradient(ellipse at top, rgba(254, 240, 138, 0.32) 0%, rgba(245, 158, 11, 0.16) 40%, rgba(245, 158, 11, 0) 75%);
  clip-path: polygon(38% 0%, 62% 0%, 100% 100%, 0% 100%);
  pointer-events: none;
  animation: beamFlicker 3.5s infinite;
}

/* Légère oscillation pendulaire */
@keyframes lampSwing {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(2.5deg);
  }
  75% {
    transform: rotate(-2.5deg);
  }
}

/* Scintillement réaliste du filament chaud */
@keyframes filamentFlicker {
  0%, 100% {
    stroke: #F59E0B;
    filter: drop-shadow(0 0 6px #FDE047);
  }
  15% {
    stroke: #FEF08A;
    filter: drop-shadow(0 0 12px #FEF08A) drop-shadow(0 0 20px #F59E0B);
  }
  28% {
    stroke: #D97706;
    filter: drop-shadow(0 0 4px #F59E0B);
  }
  30% {
    stroke: #FEF08A;
    filter: drop-shadow(0 0 14px #FEF08A);
  }
  50% {
    stroke: #FBBF24;
    filter: drop-shadow(0 0 8px #F59E0B);
  }
  68% {
    stroke: #B45309;
    filter: drop-shadow(0 0 2px #B45309);
  }
  70% {
    stroke: #FEF08A;
    filter: drop-shadow(0 0 16px #FEF08A);
  }
  85% {
    stroke: #F59E0B;
    filter: drop-shadow(0 0 7px #F59E0B);
  }
}

/* Pulsation du cœur de lumière */
@keyframes corePulse {
  0%, 100% {
    opacity: 0.85;
    transform: scale(1);
    transform-origin: center;
  }
  15%, 30%, 70% {
    opacity: 1;
    transform: scale(1.25);
    transform-origin: center;
  }
  28%, 68% {
    opacity: 0.5;
    transform: scale(0.9);
    transform-origin: center;
  }
}

/* Halo rayonnant sur l'ampoule */
@keyframes glassGlow {
  0%, 100% {
    fill: rgba(254, 243, 199, 0.45);
    stroke: rgba(251, 191, 36, 0.85);
    filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.5));
  }
  15%, 30%, 70% {
    fill: rgba(254, 240, 138, 0.7);
    stroke: rgba(254, 240, 138, 1);
    filter: drop-shadow(0 0 18px rgba(245, 158, 11, 0.85)) drop-shadow(0 0 30px rgba(234, 88, 12, 0.4));
  }
  28%, 68% {
    fill: rgba(254, 243, 199, 0.25);
    stroke: rgba(217, 119, 6, 0.6);
    filter: drop-shadow(0 0 4px rgba(217, 119, 6, 0.3));
  }
}

/* Pulsation du faisceau lumineux descendant */
@keyframes beamFlicker {
  0%, 100% {
    opacity: 0.75;
    transform: translateX(-50%) scale(1);
  }
  15%, 30%, 70% {
    opacity: 1;
    transform: translateX(-50%) scale(1.05);
  }
  28%, 68% {
    opacity: 0.35;
    transform: translateX(-50%) scale(0.95);
  }
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  border: 3px solid rgba(255,255,255,0.2);
  background: var(--dark-slate);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  filter: blur(3px);
  transition: opacity 1.2s ease-in-out, 
              transform 1.2s ease-in-out,
              filter 1.2s ease-in-out;
  will-change: opacity, transform, filter;
  padding: 0;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}

.slider-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
  background: rgba(15, 23, 42, 0.6);
  padding: 6px 12px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

.slider-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dots .dot.active {
  background: var(--accent-orange);
  width: 26px;
  border-radius: 10px;
}

.discount-badge-floating {
  position: absolute;
  top: -15px;
  right: -15px;
  background: var(--accent-orange);
  color: #fff;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(255, 107, 0, 0.5);
  transform: rotate(12deg);
  animation: pulseFloating 3s infinite ease-in-out;
}

@keyframes pulseFloating {
  0%, 100% { transform: rotate(12deg) scale(1); }
  50% { transform: rotate(12deg) scale(1.08); }
}

.disc-val {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.disc-txt {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 1px;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  text-align: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-lg {
  padding: 0.85rem 1.8rem;
  font-size: 1rem;
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background-color: var(--primary-blue);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--primary-blue-hover);
  box-shadow: 0 4px 14px rgba(0, 114, 206, 0.4);
}

.btn-whatsapp {
  background-color: #25D366;
  color: #ffffff;
}

.btn-whatsapp:hover {
  background-color: #1da851;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
}

.btn-facebook {
  background-color: #1877F2;
  color: #ffffff;
}

.btn-facebook:hover {
  background-color: #0d65d9;
  box-shadow: 0 4px 14px rgba(24, 119, 242, 0.4);
}

.btn-telegram {
  background-color: #229ED9;
  color: #ffffff;
}

.btn-telegram:hover {
  background-color: #1b87ba;
  box-shadow: 0 4px 14px rgba(34, 158, 217, 0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--border-color);
  color: var(--dark-slate);
}

.btn-outline:hover {
  border-color: var(--dark-slate);
  background-color: #F1F5F9;
}

.btn-secondary {
  background-color: #E2E8F0;
  color: var(--dark-slate);
}

.btn-secondary:hover {
  background-color: #CBD5E1;
}

.btn-danger {
  background-color: var(--danger-red);
  color: #fff;
}

.btn-danger:hover {
  background-color: #dc2626;
}

/* BRANDS TICKER BANNER (PREMIUM GLASS & MARQUEE) */
.brands-banner {
  background: linear-gradient(90deg, #0F172A 0%, #1E293B 100%);
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 2px solid var(--primary-blue);
  padding: 0.85rem 0;
  margin-bottom: 2.5rem;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.brands-banner-flex {
  display: flex;
  align-items: center;
  gap: 2rem;
  overflow: hidden;
}

.brands-title-box {
  background: rgba(255, 107, 0, 0.15);
  border: 1px solid var(--accent-orange);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  flex-shrink: 0;
  z-index: 5;
}

.brands-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.8rem;
  color: #ffffff;
  letter-spacing: 0.8px;
  white-space: nowrap;
}

.marquee-wrapper {
  flex-grow: 1;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.marquee-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  animation: smoothMarquee 28s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

@keyframes smoothMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.brand-tag {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.45rem 1.1rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  backdrop-filter: blur(4px);
}

.brand-tag:hover {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  color: #ffffff;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 114, 206, 0.4);
}

/* SECTION & PRODUCTS GRID */
.products-section {
  margin-bottom: 4rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--dark-navy);
}

.section-subtitle {
  color: var(--dark-muted);
  font-size: 0.95rem;
}

.filter-sort-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--dark-muted);
  flex-wrap: wrap;
}

.filter-control-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-control-item label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark-muted);
  white-space: nowrap;
}

.filter-control-item select {
  padding: 0.5rem 0.9rem;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  background: #ffffff;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--dark-navy);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-control-item select:focus {
  border-color: var(--primary-blue);
  outline: none;
  box-shadow: 0 0 0 3px var(--primary-blue-light);
}

/* BRAND FILTERS BAR */
.brand-filters-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  padding: 0.75rem 1.25rem;
  background: #F8FAFC;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  flex-wrap: wrap;
}

.brand-filter-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dark-navy);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.brand-chips-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  flex-grow: 1;
}

.brand-chip {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: var(--dark-navy);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.brand-chip:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
  background: var(--primary-blue-light);
}

.brand-chip.active {
  background: var(--dark-navy);
  color: #FFFFFF;
  border-color: var(--dark-navy);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
}

.btn-reset-filters {
  background: rgba(239, 68, 68, 0.1);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
  margin-left: auto;
}

.btn-reset-filters:hover {
  background: #EF4444;
  color: #FFFFFF;
  transform: translateY(-1px);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

/* PRODUCT CARD */
.product-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: #CBD5E1;
}

.card-image-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  background-color: #F8FAFC;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  transition: transform 0.4s ease;
}

.product-card:hover .card-image-wrap img {
  transform: scale(1.06);
}

.badge-discount {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent-orange);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(255, 107, 0, 0.4);
}

.badge-brand {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.badge-video-pill {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(15, 23, 42, 0.9);
  color: #ffffff;
  border: 1px solid rgba(255, 107, 0, 0.65);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.32rem 0.75rem;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  z-index: 4;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25), 0 0 10px rgba(255, 107, 0, 0.2);
  white-space: nowrap;
}

.badge-video-pill:hover {
  background: var(--accent-orange);
  border-color: #ffffff;
  color: #ffffff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 16px rgba(255, 107, 0, 0.5);
}

.badge-video-pill i {
  font-size: 0.68rem;
  color: var(--accent-orange);
  transition: transform 0.2s ease, color 0.2s ease;
}

.badge-video-pill:hover i {
  color: #ffffff;
  transform: scale(1.15);
}

/* MODAL MEDIA (PHOTO & VIDEO TABS) */
.modal-media-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.modal-media-tabs {
  display: flex;
  gap: 0.5rem;
  background: #F1F5F9;
  padding: 0.3rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.modal-media-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--dark-muted);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-media-tab:hover {
  color: var(--dark-slate);
}

.modal-media-tab.active {
  background: #ffffff;
  color: var(--primary-blue);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.modal-media-tab.tab-video.active {
  color: var(--accent-orange);
}

.modal-video-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.modal-video-player,
.modal-video-iframe {
  width: 100%;
  height: 100%;
  border: none;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--primary-blue);
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 0.3rem;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark-navy);
  margin-bottom: 0.5rem;
  line-height: 1.3;
  cursor: pointer;
}

.card-title:hover {
  color: var(--primary-blue);
}

.card-specs-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.spec-pill {
  background: #F1F5F9;
  color: var(--dark-muted);
  font-size: 0.72rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-weight: 500;
}

.card-price-row {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.price-box {
  display: flex;
  flex-direction: column;
}

.old-price {
  font-size: 0.85rem;
  color: var(--dark-muted);
  text-decoration: line-through;
}

.current-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-orange);
  line-height: 1;
}

.stock-status {
  font-size: 0.75rem;
  font-weight: 600;
}

.stock-status.in-stock { color: var(--success-green); }
.stock-status.low-stock { color: var(--warning-amber); }
.stock-status.out-stock { color: var(--danger-red); }

.card-footer-btn {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
}

/* ADMIN VIEW STYLING */
.admin-container {
  padding: 2rem 1.5rem 4rem;
}

.admin-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  background: #ffffff;
  padding: 1.5rem 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.admin-title h1 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--dark-navy);
}

.admin-title p {
  color: var(--dark-muted);
  font-size: 0.9rem;
}

.admin-quick-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.status-indicator {
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.status-indicator.online i { color: var(--success-green); }

/* METRICS CARDS */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.metric-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.metric-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  flex-shrink: 0;
}

.bg-blue .metric-icon { background: var(--primary-blue); }
.bg-orange .metric-icon { background: var(--accent-orange); }
.bg-green .metric-icon { background: var(--success-green); }
.bg-purple .metric-icon { background: var(--purple-indigo); }

.metric-data {
  display: flex;
  flex-direction: column;
}

.metric-label {
  font-size: 0.8rem;
  color: var(--dark-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.metric-val {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark-navy);
  line-height: 1.2;
}

.metric-sub {
  font-size: 0.75rem;
  color: var(--dark-muted);
  margin-top: 0.2rem;
}

/* ADMIN TABS */
.admin-tabs {
  display: flex;
  gap: 1rem;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 1.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-tab-btn {
  padding: 0.85rem 1.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--dark-muted);
  background: transparent;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.admin-tab-btn:hover {
  color: var(--primary-blue);
}

.admin-tab-btn.active {
  color: var(--primary-blue);
  border-bottom-color: var(--primary-blue);
}

.badge-count {
  background-color: var(--accent-orange);
  color: #fff;
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
}

.admin-tab-content {
  display: none;
}

.admin-tab-content.active {
  display: block;
}

/* CARDS & TABLES */
.card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.card-header {
  padding: 1.25rem 1.5rem;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.card-header h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--dark-navy);
}

.card-actions {
  display: flex;
  gap: 0.75rem;
}

.form-input-sm, .form-select-sm {
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.data-table th {
  background-color: #F8FAFC;
  color: var(--dark-muted);
  font-weight: 700;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.data-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.data-table tbody tr:hover {
  background-color: #F1F5F9;
}

.tbl-img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border-color);
}

.badge-status {
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-block;
}

.status-pending { background: #FEF3C7; color: #92400E; }
.status-confirmed { background: #E0E7FF; color: #3730A3; }
.status-shipping { background: #DBEAFE; color: #1E40AF; }
.status-delivered { background: #D1FAE5; color: #065F46; }
.status-cancelled { background: #FEE2E2; color: #991B1B; }

/* MODALS & DRAWERS */
.modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn 0.2s ease;
}

.modal-dialog {
  background: #ffffff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: slideUp 0.25s ease;
}

.modal-lg {
  max-width: 850px;
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--dark-navy);
}

.btn-close {
  background: transparent;
  font-size: 1.5rem;
  color: var(--dark-muted);
  line-height: 1;
}

.btn-close:hover {
  color: var(--dark-slate);
}

.modal-dialog form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0; /* Indispensable pour que le scroll s'active dans la modal-body */
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
  overscroll-behavior: contain;
}

.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  background-color: #F8FAFC;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--dark-navy);
}

.form-control {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
}

.form-control:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px var(--primary-blue-light);
  outline: none;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.full-width {
  grid-column: 1 / -1;
}

/* CART DRAWER */
.drawer-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.5);
  z-index: 998;
  display: none;
}

.drawer-overlay.active {
  display: block;
}

.cart-drawer {
  position: fixed;
  top: 0; 
  right: 0; 
  bottom: 0;
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  z-index: 999;
  box-shadow: -10px 0 30px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  visibility: hidden;
}

.cart-drawer.active {
  transform: translateX(0);
  visibility: visible;
}

.drawer-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1.25rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  align-items: center;
}

.cart-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.cart-item-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--dark-navy);
}

.cart-item-price {
  font-size: 0.85rem;
  color: var(--accent-orange);
  font-weight: 700;
}

.qty-btn-group {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-top: 0.4rem;
}

.qty-btn-group button {
  width: 26px;
  height: 26px;
  background: #F1F5F9;
  font-weight: 700;
}

.qty-btn-group span {
  padding: 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.drawer-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border-color);
  background-color: #F8FAFC;
}

.cart-summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.cart-actions {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

/* FOOTER */
.main-footer {
  background-color: var(--dark-navy);
  color: #94A3B8;
  padding-top: 4rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo img {
  height: 40px;
  border-radius: 4px;
}

.footer-desc {
  font-size: 0.9rem;
  margin: 1rem 0;
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: 1rem;
  font-size: 1.3rem;
}

.social-links a {
  color: #fff;
}

.social-links a:hover {
  color: var(--accent-orange);
}

.footer-col h4 {
  font-family: var(--font-heading);
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col ul li a {
  color: #94A3B8;
  font-size: 0.9rem;
}

.footer-col ul li a:hover {
  color: #ffffff;
}

.contact-col p {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-bottom {
  padding: 1.5rem 0;
  font-size: 0.85rem;
}

.bottom-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* MODERN RICH TOAST NOTIFICATIONS */
.toast-container {
  position: fixed;
  top: 25px;
  right: 25px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 420px;
  width: calc(100% - 50px);
  pointer-events: none;
}

@media (max-width: 600px) {
  .toast-container {
    top: 15px;
    right: 15px;
    left: 15px;
    width: calc(100% - 30px);
  }
}

.toast {
  pointer-events: auto;
  position: relative;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #ffffff;
  padding: 0.9rem 1.15rem;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  animation: toastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.toast-success {
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
  border-color: rgba(16, 185, 129, 0.45);
}

.toast.toast-warning {
  background: linear-gradient(135deg, rgba(120, 53, 15, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
  border-color: rgba(245, 158, 11, 0.45);
}

.toast.toast-danger {
  background: linear-gradient(135deg, rgba(136, 19, 55, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
  border-color: rgba(244, 63, 94, 0.45);
}

.toast.toast-info {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
  border-color: rgba(59, 130, 246, 0.45);
}

.toast-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.toast-success .toast-icon-wrap { background: rgba(16, 185, 129, 0.25); color: #34D399; }
.toast-warning .toast-icon-wrap { background: rgba(245, 158, 11, 0.25); color: #FBBF24; }
.toast-danger .toast-icon-wrap { background: rgba(244, 63, 94, 0.25); color: #FB7185; }
.toast-info .toast-icon-wrap { background: rgba(59, 130, 246, 0.25); color: #60A5FA; }

.toast-content {
  flex-grow: 1;
}

.toast-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: #ffffff;
  margin-bottom: 0.15rem;
}

.toast-msg {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.35;
}

.toast-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.2s;
}

.toast-close:hover {
  color: #ffffff;
}

.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.35);
  width: 100%;
  animation: toastProgress 3.8s linear forwards;
}

.toast-success .toast-progress { background: #34D399; }
.toast-warning .toast-progress { background: #FBBF24; }
.toast-danger .toast-progress { background: #FB7185; }
.toast-info .toast-progress { background: #60A5FA; }

/* FLOATING PWA INSTALL BANNER */
.pwa-install-banner {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1500;
  width: 90%;
  max-width: 500px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(0, 114, 206, 0.5);
  border-radius: var(--radius-lg);
  padding: 0.85rem 1.1rem;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
  animation: slideUp 0.35s ease;
}

.pwa-install-content {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.pwa-app-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}

.pwa-text {
  flex-grow: 1;
  color: #ffffff;
}

.pwa-text strong {
  display: block;
  font-size: 0.88rem;
  color: #ffffff;
}

.pwa-text p {
  font-size: 0.78rem;
  color: #94A3B8;
  margin-top: 0.15rem;
}

.pwa-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.btn-close-pwa {
  background: none;
  border: none;
  color: #94A3B8;
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.2rem;
}

.btn-close-pwa:hover {
  color: #ffffff;
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toastProgress {
  from { width: 100%; }
  to { width: 0%; }
}

/* ANIMATIONS */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

/* PRINTABLE INVOICE STYLES */
@media print {
  body * { visibility: hidden; }
  #invoiceModalContent, #invoiceModalContent * { visibility: visible; }
  #invoiceModalContent { position: absolute; left: 0; top: 0; width: 100%; padding: 20px; }
  .no-print { display: none !important; }
}

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE & TABLETTE PREMIUM OPTIMIZATIONS)
   ========================================================================== */

/* Tablettes & Écrans Moyens (<= 992px) */
@media (max-width: 992px) {
  .header-grid { 
    grid-template-columns: auto 1fr; 
    gap: 1rem;
    padding: 0.75rem 1rem;
  }

  .search-box {
    grid-column: 1 / -1;
    order: 3;
    max-width: 100%;
    margin-top: 0.25rem;
  }

  .header-actions {
    justify-content: flex-end;
  }

  .hero-content { 
    grid-template-columns: 1fr; 
    text-align: center; 
    gap: 2rem;
  }

  .hero-text h1 {
    font-size: 2.1rem;
  }

  .hero-text p { 
    margin: 0 auto 1.5rem; 
    font-size: 1rem;
  }

  .trust-features, .hero-actions { 
    justify-content: center; 
  }

  .promo-countdown-wrap {
    margin: 0.5rem auto 1.5rem;
    align-items: center;
    text-align: center;
  }

  .countdown-label,
  .countdown-timer {
    justify-content: center;
  }

  .hero-image-wrap { 
    max-width: 380px; 
    height: 320px;
    margin: 0 auto; 
  }

  .footer-grid { 
    grid-template-columns: 1fr 1fr; 
    gap: 2rem;
  }

  .admin-header-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .admin-quick-actions {
    width: 100%;
    justify-content: space-between;
  }
}

/* ==========================================================================
   RESPONSIVE STYLES (MOBILE & TABLETTE)
   ========================================================================== */

/* Smartphones & Mobiles (<= 600px) */
@media (max-width: 600px) {
  .top-bar {
    padding: 0.4rem 0;
  }

  .top-bar-info { 
    display: none; 
  }

  .top-bar-content {
    justify-content: center;
    text-align: center;
  }

  .ticker-text {
    font-size: 0.75rem;
    white-space: normal;
  }

  .badge-fire {
    font-size: 0.65rem;
    padding: 0.15rem 0.5rem;
  }

  .main-header {
    padding: 0.5rem 0;
  }

  .header-grid {
    grid-template-columns: 1fr auto;
    gap: 0.5rem 1rem;
    padding: 0.5rem 1rem;
  }

  .brand-logo img {
    height: 36px;
  }

  .brand-name { 
    font-size: 1.1rem; 
  }

  .brand-slogan {
    font-size: 0.6rem;
  }

  .search-box input {
    padding: 0.6rem 0.9rem 0.6rem 2.4rem;
    font-size: 0.85rem;
  }

  .btn-search {
    padding: 0.4rem 0.9rem;
    font-size: 0.78rem;
  }

  .header-actions {
    gap: 0.4rem;
  }

  .btn-cart {
    padding: 0.4rem 0.75rem;
  }

  .cart-btn-text .label {
    display: none;
  }

  .cart-btn-text .val {
    font-size: 0.82rem;
  }

  .hero-banner {
    padding: 2rem 0 2.5rem;
    margin-bottom: 1.5rem;
  }

  .hero-tag {
    font-size: 0.75rem;
  }

  .hero-text h1 {
    font-size: 1.45rem;
    line-height: 1.25;
    margin-bottom: 0.75rem;
  }

  .hero-text p {
    font-size: 0.88rem;
    margin-bottom: 1.25rem;
  }

  .trust-features {
    gap: 0.6rem;
    margin-bottom: 1.5rem;
  }

  /* Centrage du compte à rebours dans son conteneur sur mobile */
  .promo-countdown-wrap {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 0.5rem auto 1.5rem;
    width: 100%;
    max-width: 360px;
    box-sizing: border-box;
    padding: 0.75rem 0.85rem;
  }

  .countdown-label {
    justify-content: center;
    text-align: center;
    font-size: 0.72rem;
  }

  .countdown-timer {
    justify-content: center;
    width: 100%;
  }

  .trust-item {
    font-size: 0.75rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .hero-actions .btn {
    width: 100%;
    padding: 0.75rem 1.2rem;
    font-size: 0.9rem;
  }

  .hero-image-wrap {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 1 / 1;
    height: auto;
    margin: 0 auto;
  }

  .vintage-lamp-wrap {
    top: -38px;
    left: 20px;
  }

  .lamp-wire {
    height: 26px;
  }

  .lamp-bulb {
    width: 26px;
    height: 32px;
  }

  .discount-badge-floating {
    width: 65px;
    height: 65px;
    top: -8px;
    right: 5px;
  }

  .disc-val {
    font-size: 1.1rem;
  }

  .disc-txt {
    font-size: 0.5rem;
  }

  /* Brands Banner Mobile Stack */
  .brands-banner {
    padding: 0.65rem 0;
    margin-bottom: 2rem;
  }

  .brands-banner-flex {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .brands-title-box {
    padding: 0.25rem 0.75rem;
  }

  .brands-title {
    font-size: 0.72rem;
  }

  .categories-nav {
    padding: 0.5rem 0;
    -webkit-overflow-scrolling: touch;
  }

  .cat-flex {
    gap: 0.5rem;
    padding: 0 0.5rem;
  }

  .cat-pill {
    padding: 0.4rem 0.85rem;
    font-size: 0.78rem;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .filter-sort-controls {
    width: 100%;
    justify-content: space-between;
  }

  .filter-sort-controls select {
    flex-grow: 1;
  }

  .product-grid { 
    grid-template-columns: 1fr; 
    gap: 1.25rem;
  }

  .product-card {
    border-radius: var(--radius-md);
  }

  .card-image-wrap {
    height: 210px;
  }

  .card-title {
    font-size: 1rem;
  }

  .current-price {
    font-size: 1.15rem;
  }

  .modal-dialog {
    width: 94%;
    max-height: 90vh;
    border-radius: var(--radius-md);
    margin: 0 auto;
  }

  .modal-header {
    padding: 1rem 1.25rem;
  }

  .modal-header h3 {
    font-size: 1.1rem;
  }

  .modal-body {
    padding: 1rem 1.25rem;
  }

  .form-grid-2 { 
    grid-template-columns: 1fr; 
  }

  .cart-drawer {
    width: 100%;
    max-width: 100%;
  }

  .main-footer {
    padding-top: 2.5rem;
  }

  .footer-grid { 
    grid-template-columns: 1fr; 
    gap: 2rem;
    padding-bottom: 2rem;
  }

  .bottom-flex {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }

  .metrics-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .metric-card {
    padding: 0.85rem 0.75rem;
    gap: 0.75rem;
  }

  .metric-icon {
    width: 42px;
    height: 42px;
    font-size: 1.1rem;
    border-radius: 10px;
  }

  .metric-label {
    font-size: 0.65rem;
    letter-spacing: 0.3px;
  }

  .metric-val {
    font-size: 1.15rem;
  }

  .metric-sub {
    font-size: 0.65rem;
  }

  .admin-container {
    padding: 1rem 0.75rem 3rem;
  }

  .admin-header-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: 1rem;
    margin-bottom: 1.25rem;
  }

  .admin-title h1 {
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .admin-title p {
    font-size: 0.78rem;
    margin-top: 0.25rem;
  }

  .admin-quick-actions {
    flex-direction: column;
    gap: 0.6rem;
    width: 100%;
  }

  .admin-quick-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
  }

  .status-indicator {
    font-size: 0.78rem;
    justify-content: center;
    padding: 0.4rem 0;
  }

  .admin-tabs {
    flex-direction: row;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 1rem;
  }

  .admin-tab-btn {
    flex: 0 0 auto;
    padding: 0.75rem 1rem;
    font-size: 0.82rem;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    border-bottom-width: 3px;
    gap: 0.35rem;
  }

  .admin-tab-btn i {
    font-size: 0.85rem;
  }

  .badge-count {
    font-size: 0.6rem;
    padding: 0.1rem 0.4rem;
  }

  .card {
    border-radius: 10px;
  }

  .card-header {
    flex-direction: column;
    align-items: stretch;
    padding: 0.85rem 1rem;
    gap: 0.6rem;
  }

  .card-header h3 {
    font-size: 1rem;
  }

  .card-actions {
    width: 100%;
    flex-direction: column;
    gap: 0.5rem;
  }

  .form-input-sm, .form-select-sm {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
  }

  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -0.25rem;
  }

  .data-table {
    font-size: 0.78rem;
    min-width: 700px;
  }

  .data-table th {
    padding: 0.65rem 0.75rem;
    font-size: 0.65rem;
    white-space: nowrap;
  }

  .data-table td {
    padding: 0.65rem 0.75rem;
    font-size: 0.78rem;
  }

  .tbl-img {
    width: 38px;
    height: 38px;
  }

  .badge-status {
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
  }

  .modal-backdrop {
    align-items: flex-start;
    padding: 1rem 0.5rem;
    overflow-y: auto;
  }

  .modal-dialog {
    width: 98%;
    max-height: none;
    border-radius: 14px;
    margin: 0 auto;
    margin-bottom: 2rem;
  }

  .modal-lg {
    max-width: 100%;
  }

  .modal-header {
    padding: 0.85rem 1rem;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
  }

  .modal-header h3 {
    font-size: 1rem;
  }

  .modal-body {
    padding: 1rem;
    overflow-y: visible;
  }

  .modal-footer {
    padding: 0.85rem 1rem;
    flex-direction: column;
    gap: 0.5rem;
    position: sticky;
    bottom: 0;
    background: #F8FAFC;
    z-index: 10;
  }

  .modal-footer .btn {
    width: 100%;
    justify-content: center;
  }

  .form-grid-2 { 
    grid-template-columns: 1fr; 
  }

  .form-group label {
    font-size: 0.82rem;
  }

  .form-control {
    padding: 0.6rem 0.8rem;
    font-size: 0.88rem;
  }

  .cart-drawer {
    width: 100%;
    max-width: 100%;
  }

  .main-footer {
    padding-top: 2.5rem;
  }

  .footer-grid { 
    grid-template-columns: 1fr; 
    gap: 2rem;
    padding-bottom: 2rem;
  }

  .bottom-flex {
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
  }
}

/* ==========================================================================
   BOUTON DÉFILER VERS LE BAS (DESKTOP ET MOBILE)
   ========================================================================== */
.scroll-hint-pill {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #0F172A;
  color: #FFFFFF;
  border: 1.5px solid var(--accent-orange);
  padding: 0.45rem 1.25rem;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35), 0 0 12px rgba(255, 107, 0, 0.25);
  cursor: pointer;
  z-index: 50;
  animation: bounceHintDesktop 1.8s infinite ease-in-out;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  white-space: nowrap;
  pointer-events: auto;
}

.scroll-hint-pill i {
  color: var(--accent-orange);
  font-size: 0.9rem;
  transition: transform 0.2s ease;
}

.scroll-hint-pill:hover {
  background: var(--accent-orange);
  color: #FFFFFF;
  border-color: #FFFFFF;
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 107, 0, 0.45);
}

.scroll-hint-pill:hover i {
  color: #FFFFFF;
  transform: translateY(2px);
}

.scroll-hint-pill.hidden-hint {
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateX(-50%) translateY(14px) !important;
  pointer-events: none !important;
}

@keyframes bounceHintDesktop {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Version Mobile : Positionné de l'autre côté (à droite) */
@media (max-width: 768px) {
  .scroll-hint-pill {
    position: fixed;
    bottom: 24px;
    right: 18px;
    left: auto;
    transform: none;
    font-size: 0.74rem;
    padding: 0.38rem 0.85rem;
    border-radius: 25px;
    z-index: 1060;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45), 0 0 10px rgba(255, 107, 0, 0.3);
    animation: bounceHintMobile 1.8s infinite ease-in-out;
  }

  .scroll-hint-pill:hover {
    transform: translateY(-2px);
  }

  .scroll-hint-pill.hidden-hint {
    transform: translateY(14px) !important;
  }

  @keyframes bounceHintMobile {
    0%, 100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-4px);
    }
  }
}

/* BACK TO TOP FLOATING BUTTON */
.btn-back-to-top {
  position: fixed;
  bottom: 95px;
  right: 25px;
  width: 48px;
  height: 48px;
  background: var(--dark-navy, #0F172A);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  z-index: 989;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.9);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-back-to-top:hover {
  background: var(--primary-blue, #0072CE);
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 8px 24px rgba(0, 114, 206, 0.45);
  color: #FFFFFF;
}

.btn-back-to-top:active {
  transform: translateY(0) scale(0.95);
}

.btn-back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

@media (max-width: 768px) {
  .btn-back-to-top {
    bottom: 92px;
    right: 18px;
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }
}

/* FLOATING WHATSAPP ASSISTANT WIDGET */
.whatsapp-float-widget {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 990;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.whatsapp-float-btn {
  width: 58px;
  height: 58px;
  background-color: #25D366;
  color: #FFFFFF !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  position: relative;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: waPulse 2.5s infinite ease-in-out;
}

.whatsapp-float-btn:hover {
  transform: scale(1.12) rotate(6deg);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.65);
  color: #FFFFFF !important;
}

@keyframes waPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
  50% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
}

.wa-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background-color: #FF6B00;
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #FFFFFF;
}

.whatsapp-tooltip {
  background: #FFFFFF;
  color: var(--dark-navy);
  padding: 0.85rem 1rem;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  max-width: 260px;
  position: relative;
  animation: waFadeIn 0.4s ease-out;
}

@keyframes waFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.wa-tooltip-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  font-size: 0.85rem;
}

.online-pulse {
  width: 8px;
  height: 8px;
  background-color: #25D366;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 6px #25D366;
}

.whatsapp-tooltip p {
  font-size: 0.8rem;
  color: var(--dark-muted);
  line-height: 1.35;
}

.wa-tooltip-close {
  position: absolute;
  top: 4px;
  right: 8px;
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--dark-muted);
  cursor: pointer;
  line-height: 1;
}

@media (max-width: 768px) {
  .whatsapp-float-widget {
    bottom: 20px;
    right: 15px;
  }
  .whatsapp-tooltip {
    max-width: 220px;
  }
}

/* ==========================================
   DYNAMIC PAYMENT & FEDAPAY / MOMO STYLES
   ========================================== */
.payment-info-box {
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: #F8FAFC;
  border: 1.5px solid var(--border-color);
  animation: fadeIn 0.25s ease;
}

.payment-info-box.whatsapp-theme {
  background: #F0FDF4;
  border-color: #22C55E;
}

.payment-info-box.fedapay-theme {
  background: #EEF2FF;
  border-color: #6366F1;
}

.payment-info-box.mtn-theme {
  background: #FEFCE8;
  border-color: #EAB308;
}

.payment-info-box.moov-theme {
  background: #EFF6FF;
  border-color: #3B82F6;
}

.whatsapp-icon-badge {
  background: #25D366;
  color: #ffffff;
}

.momo-header-flex {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.momo-icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
}

.fedapay-icon { background: #4F46E5; color: #ffffff; }
.mtn-icon { background: #FACC15; color: #000000; }
.moov-icon { background: #2563EB; color: #ffffff; }

.momo-number-copy-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border-color);
  margin: 0.6rem 0;
}

.momo-phone-val {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--dark-navy);
  letter-spacing: 0.5px;
}

.btn-copy-momo {
  background: var(--primary-blue-light);
  color: var(--primary-blue);
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.8rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-copy-momo:hover {
  background: var(--primary-blue);
  color: #ffffff;
}

.momo-ussd-steps {
  font-size: 0.82rem;
  color: var(--dark-slate);
  margin-top: 0.5rem;
  line-height: 1.45;
}

.momo-ussd-steps ol {
  padding-left: 1.2rem;
  margin-top: 0.3rem;
}

.fedapay-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #4F46E5;
  color: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
}

/* ==========================================
   PRODUCT DETAIL 2-COLUMN MODERN MODAL
   ========================================== */
.modal-grid-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  align-items: start;
}

.modal-detail-img {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #F8FAFC;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-detail-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  background: transparent;
}

.modal-detail-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: 100%;
}

@media (max-width: 768px) {
  .modal-grid-detail {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  .modal-detail-img {
    max-height: 320px;
    width: 100%;
    margin: 0 auto;
  }
}

/* ==========================================
   PRODUCT DETAIL MODAL ACTIONS STYLING (NO OVERFLOW)
   ========================================== */
.modal-product-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 1.25rem;
}

.modal-product-actions .btn-modal-action {
  flex: 1 1 calc(50% - 0.3rem);
  min-width: 0;
  padding: 0.75rem 0.5rem;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-align: center;
  white-space: nowrap !important;
  box-sizing: border-box;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal-product-actions .btn-modal-action i {
  font-size: 0.95rem;
  flex-shrink: 0;
}

.modal-product-actions .btn-share-action {
  flex: 1 1 100%;
  padding: 0.6rem 0.5rem;
  font-size: 0.84rem;
}

@media (max-width: 480px) {
  .modal-product-actions .btn-modal-action {
    font-size: 0.82rem;
    padding: 0.65rem 0.4rem;
    gap: 0.35rem;
  }
}

@media (max-width: 360px) {
  .modal-product-actions {
    flex-direction: column;
  }
  .modal-product-actions .btn-modal-action {
    flex: 1 1 100%;
    width: 100%;
    font-size: 0.85rem;
  }
}

/* ==========================================
   STRICT MOBILE BUTTON ADAPTATION (SINGLE LINE ENFORCEMENT)
   ========================================== */
.btn-copy-momo {
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  button,
  .btn,
  .btn-lg,
  .btn-sm,
  .cat-pill,
  .btn-view-switch,
  .btn-search,
  .btn-cart,
  .admin-tab-btn,
  .btn-copy-momo,
  .brand-tag {
    white-space: nowrap !important;
    flex-shrink: 0;
  }

  .modal-footer {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    overflow-x: auto;
  }

  .modal-footer .btn {
    flex: 1;
    min-width: max-content;
    font-size: 0.85rem;
    padding: 0.65rem 0.9rem;
    white-space: nowrap !important;
  }

  .card-footer-btn {
    display: flex;
    gap: 0.4rem;
  }

  .card-footer-btn .btn {
    white-space: nowrap !important;
  }

/* ==========================================
   VIDEO DEMO INTEGRATION (CARDS, TABS & MODAL PLAYER)
   ========================================== */
.badge-video-pill {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.95) 100%);
  border: 1px solid rgba(255, 107, 0, 0.7);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  z-index: 4;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.badge-video-pill i {
  color: var(--accent-orange);
  font-size: 0.75rem;
  animation: pulsePlayIcon 2s infinite ease-in-out;
}

.badge-video-pill:hover {
  background: var(--accent-orange);
  color: #FFFFFF;
  border-color: var(--accent-orange);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 16px rgba(255, 107, 0, 0.45);
}

.badge-video-pill:hover i {
  color: #FFFFFF;
  animation: none;
}

@keyframes pulsePlayIcon {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.85; }
}

/* Modal Media Switcher Tabs */
.modal-media-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

.modal-media-tabs {
  display: flex;
  gap: 0.5rem;
  background: #F1F5F9;
  padding: 0.3rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.modal-media-tab {
  flex: 1;
  padding: 0.45rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--dark-muted);
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-media-tab:hover {
  color: var(--dark-navy);
}

.modal-media-tab.active {
  background: #FFFFFF;
  color: var(--primary-blue);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.modal-media-tab.tab-video.active {
  color: var(--accent-orange);
}

/* Video Container & Player */
.modal-video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #0F172A;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
}

.modal-video-player {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
  outline: none;
}

.modal-video-iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #000000;
}

.badge-video-admin {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(255, 107, 0, 0.12);
  color: var(--accent-orange);
  border: 1px solid rgba(255, 107, 0, 0.3);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  margin-top: 0.2rem;
}
