/* =======================
   DESIGN SYSTEM
======================= */
:root {
  --primary: #d4af37;
  --primary-glow: rgba(212, 175, 55, 0.4);
  --bg-dark: #050505;
  --bg-card: #121212;
  --bg-input: #1a1a1a;
  --text-main: #ffffff;
  --text-muted: #aaaaaa;
  --glass: rgba(18, 18, 18, 0.85);
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* =======================
   LIGHT MODE THEME
======================= */
body.light-mode {
  --bg-dark: #f5f0e8;
  --bg-card: #ffffff;
  --bg-input: #f0ebe0;
  --text-main: #1a1a1a;
  --text-muted: #666666;
  --glass: rgba(245, 240, 232, 0.92);
}

body.light-mode {
  background: var(--bg-dark);
  color: var(--text-main);
}

body.light-mode .header {
  background: rgba(245, 240, 232, 0.92);
  border-bottom-color: rgba(0,0,0,0.08);
}

body.light-mode nav a {
  color: #555;
}

body.light-mode nav a:hover {
  color: var(--primary);
}

body.light-mode .producto {
  background: rgba(255,255,255,0.85);
  border-color: rgba(0,0,0,0.07);
}

body.light-mode .producto:hover {
  background: #fff;
  border-color: rgba(212,175,55,0.4);
  box-shadow: 0 20px 60px rgba(0,0,0,0.12), 0 0 20px rgba(212,175,55,0.08);
}

body.light-mode .producto img {
  background: #f8f5ef;
}

body.light-mode .info {
  background: transparent;
}

body.light-mode .producto h3 {
  color: #1a1a1a;
}

body.light-mode .desc {
  color: #666;
}

body.light-mode #searchInput {
  background: #fff;
  border-color: rgba(0,0,0,0.12);
  color: #1a1a1a;
}

body.light-mode #searchInput::placeholder {
  color: #999;
}

body.light-mode footer {
  background: #ede8dc;
  border-top-color: rgba(0,0,0,0.08);
}

body.light-mode footer p {
  color: #333;
}

body.light-mode .cart-sidebar {
  background: rgba(245, 240, 232, 0.97);
  border-left-color: rgba(0,0,0,0.08);
}

body.light-mode .cart-header h3 {
  color: var(--primary);
}

body.light-mode .close-cart {
  color: #333;
}

body.light-mode .cart-item {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.05);
}

body.light-mode .cart-item-info h4 {
  color: #222;
}

body.light-mode .cart-item-actions {
  background: rgba(0,0,0,0.06);
}

body.light-mode .cart-item-actions button {
  color: #333;
}

body.light-mode .cart-footer {
  background: rgba(0,0,0,0.04);
  border-top-color: rgba(0,0,0,0.08);
}

body.light-mode .btn-wpp {
  border-color: rgba(0,0,0,0.15);
  color: #222;
}

body.light-mode .btn-wpp:hover {
  background: #1a1a1a;
  color: #fff;
}

/* =======================
   THEME TOGGLE BUTTON
======================= */
.theme-toggle {
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text-main);
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition);
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.theme-toggle:hover {
  border-color: var(--primary);
  background: rgba(212,175,55,0.1);
  transform: rotate(20deg) scale(1.1);
}

body.light-mode .theme-toggle {
  border-color: rgba(0,0,0,0.15);
}

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

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Outfit', 'Poppins', sans-serif;
  background: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.6;
}

a,
button,
.menu-toggle,
.btn-wpp,
.cart-float,
.whatsapp-float {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  outline: none !important;
}

a:focus,
button:focus,
.menu-toggle:focus,
.btn-wpp:focus,
.cart-float:focus,
.whatsapp-float:focus,
a:focus-visible,
button:focus-visible,
.menu-toggle:focus-visible,
.btn-wpp:focus-visible,
.cart-float:focus-visible,
.whatsapp-float:focus-visible {
  outline: none !important;
  box-shadow: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* =======================
   HEADER PREMIUM (Glass)
======================= */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%;
  background: var(--glass);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-container img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--primary);
  object-fit: cover;
}

.logo-text h1 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.logo-text span {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
  margin-top: -2px;
}

/* NAV */
nav {
  display: flex;
  gap: 30px;
}

nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

nav a:hover {
  color: var(--primary);
}

nav a:hover::after {
  width: 100%;
}

/* MENU MOBILE */
.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--primary);
  background: transparent;
  border: none;
  line-height: 1;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  nav {
    position: absolute;
    top: 75px;
    right: 5%;
    background: var(--bg-card);
    width: 250px;
    padding: 30px;
    border-radius: 20px;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1001;
  }

  nav.active {
    display: flex;
    animation: slideIn 0.3s ease-out;
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =======================
   HERO IMMERSIVE
======================= */
.hero {
  position: relative;
  height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(rgba(5, 5, 5, 0.7), rgba(5, 5, 5, 0.9)), url('img/hero-bg.png');
  background-size: cover;
  background-position: center;
  padding: 0 20px;
  overflow: hidden;
}

.hero h2 {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 20px;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  animation: fadeInDown 1s ease-out;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero p {
  font-size: 1.2rem;
  color: #eeeeee;
  max-width: 600px;
  margin-bottom: 30px;
  animation: fadeInUp 1s ease-out 0.3s forwards;
  opacity: 0;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =======================
   SEARCH BAR PREMIUM
======================= */
.search-container {
  max-width: 700px;
  width: 90%;
  margin: -40px auto 40px;
  position: relative;
  z-index: 10;
}

#searchInput {
  width: 100%;
  padding: 18px 30px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  color: #fff;
  font-family: inherit;
  font-size: 1.1rem;
  outline: none;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  transition: var(--transition);
}

#searchInput:focus {
  border-color: var(--primary);
  background: #1a1a1a;
  transform: scale(1.02);
  box-shadow: 0 20px 50px rgba(212, 175, 55, 0.15);
}

/* =======================
   CATÁLOGO
======================= */
.section h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 40px;
  color: #fff;
  letter-spacing: 1px;
}

.catalogo {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 35px;
  padding: 40px 5%;
  max-width: 1400px;
  margin: auto;
}

/* TARJETAS ULTRA-LUXO (High-End) */
.producto {
  background: rgba(15, 15, 15, 0.4);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 2px;
  /* Bordes rectos y limpios son más 'pro' y 'luxury' */
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  text-align: center;
}

.producto:hover {
  transform: translateY(-8px);
  background: rgba(20, 20, 20, 0.7);
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.9), 0 0 20px rgba(212, 175, 55, 0.05);
}

.producto img {
  width: 100%;
  height: 300px;
  object-fit: contain;
  background: #000;
  padding: 40px;
  transition: all 0.8s ease;
  filter: grayscale(0);
  transform: scale(1.2);
  transform-origin: center;
}

.producto:hover img {
  transform: scale(1.26);
}

/* Badge 'Exclusive' */
.producto::before {
  content: "LUXURY";
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--primary);
  color: #000;
  font-size: 0.6rem;
  font-weight: 800;
  padding: 4px 10px;
  letter-spacing: 2px;
  border-radius: 2px;
  z-index: 2;
  opacity: 0.7;
}

.info {
  padding: 35px 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-grow: 1;
  position: relative;
}

/* Línea decorativa pro */
.info::before {
  content: "";
  width: 30px;
  height: 1px;
  background: var(--primary);
  position: absolute;
  top: 20px;
  opacity: 0.5;
}

.producto h3 {
  font-size: 1.05rem;
  font-weight: 300;
  /* Tipografía más fina para lujo */
  margin-bottom: 12px;
  color: #fff;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  min-height: 3rem;
  line-height: 1.4;
}

.precio {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 30px;
  line-height: 1.8;
  font-weight: 300;
  flex-grow: 1;
  max-width: 90%;
}

/* CTA BOTÓN LUXURY */
.btn-wpp {
  width: 100%;
  padding: 18px;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  /* Recto e imponente */
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  text-align: center;
  transition: all 0.4s ease;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.btn-wpp:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

/* =======================
   FOOTER PREMIUM
======================= */
footer {
  padding: 80px 20px;
  text-align: center;
  background: var(--bg-card);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 60px;
}

footer p {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 25px;
  font-weight: 500;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
}

footer img {
  width: 45px;
  height: 45px;
  transition: var(--transition);
  border-radius: 50%;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
}

footer img:hover {
  background: var(--primary);
  transform: translateY(-5px);
  filter: brightness(0);
}

/* =======================
   WHATSAPP FLOATING (Premium)
======================= */
.whatsapp-float {
  position: fixed;
  bottom: calc(20px + env(safe-area-inset-bottom));
  left: 30px;
  /* A pedido del cliente: izquierda */
  z-index: 1000;
  background: #25D366;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(10deg);
}

.whatsapp-float img {
  width: 32px;
}

/* =======================
   CARRITO FLOATING
======================================================== */
.cart-float {
  position: fixed;
  bottom: calc(20px + env(safe-area-inset-bottom));
  right: 30px;
  z-index: 1000;
  background: var(--primary);
  width: 65px;
  height: 65px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px var(--primary-glow);
  cursor: pointer;
  font-size: 1.5rem;
  transition: var(--transition);
}

.cart-float-icon {
  line-height: 1;
}

.cart-float:hover {
  transform: scale(1.1);
}

.cart-float #cart-float-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background: #000;
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 800;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid var(--primary);
}

/* ========================================================
   ULTRA-LUXURY MOBILE EXPERIENCE (Revolutionary)
======================================================== */

@media (max-width: 768px) {

  /* Global cleanup */
  body {
    font-size: 14px;
    background: #000;
  }

  /* Header Minimalista (Efecto App) */
  .header {
    padding: 8px 5%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    height: 72px; /* Incrementamos la altura para dar más aire vertical al logo de 44px */
  }

  .logo-container img {
    width: 44px;
    height: 44px;
    border: 1px solid var(--primary);
  }

  .logo-text h1 {
    font-size: 1.05rem;
    letter-spacing: 1px;
    line-height: 1.1;
  }

  .logo-text span {
    display: block;
    font-size: 0.62rem;
    color: var(--text-muted);
    margin-top: 1px;
    letter-spacing: 0.5px;
  }

  .header-actions {
    gap: 16px; /* Más separación entre tema y menú en móvil */
  }

  /* Evitamos el botón de tema gigante, el borde tosco y el efecto hover pegajoso en celulares */
  .theme-toggle {
    width: 32px;
    height: 32px;
    font-size: 1.25rem;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .theme-toggle:hover {
    transform: scale(1.1);
    border: none !important;
    background: transparent !important;
  }

  body.light-mode .theme-toggle {
    border: none !important;
    background: transparent !important;
  }

  body.light-mode .theme-toggle:hover {
    border: none !important;
    background: transparent !important;
  }

  /* Limpiamos ruido visual */

  .menu-toggle {
    font-size: 22px;
  }

  /* Hero Inmersivo Full Screen */
  .hero {
    height: 100dvh;
    min-height: 100svh;
    /* Ocupa toda la pantalla */
    background-position: center !important;
    display: flex;
    align-items: flex-end;
    /* Texto abajo para no tapar el perfume del fondo */
    padding-bottom: 80px;
    text-align: center;
  }

  .hero h2 {
    font-size: 1.8rem !important;
    letter-spacing: 3px;
    margin-bottom: 10px;
    line-height: 1.1;
    font-weight: 200;
  }

  .hero h2 span {
    font-size: 2rem;
    display: block;
    margin-top: 5px;
  }

  .hero p {
    font-size: 0.7rem;
    letter-spacing: 2px;
    opacity: 0.6;
    margin-bottom: 30px;
  }

  .hero .btn-wpp {
    width: 85%;
    padding: 16px;
    font-size: 0.75rem;
    letter-spacing: 3px;
    border-color: rgba(255, 255, 255, 0.3);
  }

  /* Buscador Estilo Apple */
  .search-container {
    margin: -25px auto 40px;
    width: 90%;
    z-index: 20;
  }

  #searchInput {
    background: rgba(30, 30, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px 25px;
    font-size: 16px;
    border-radius: 4px;
    /* Menos redondeado = más pro */
    backdrop-filter: blur(10px);
  }

  /* Catálogo: La Grilla de 'Alta Costura' */
  .catalogo {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 10px 15px;
  }

  /* Tarjeta de Producto Rediseñada - LOOK FULL SCREEN */
  .producto {
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
  }

  /* La imagen ocupa TODO el espacio, sin bordes blancos a los costados */
  .producto img {
    height: 280px; /* Un poco más alta para que luzca el 'cover' */
    width: 100%;
    object-fit: cover; /* ESTO ELIMINA LOS BORDES BLANCOS: La imagen llena el cuadro */
    padding: 0; 
    background: #000; 
    mix-blend-mode: normal; 
    filter: brightness(1) contrast(1);
    transform: scale(1); /* Quitamos el zoom artificial ya que el 'cover' ya hace zoom natural */
    transition: none;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }

  /* Parte de texto */
  .info {
    padding: 20px 10px;
    background: #000000;
  }

  .producto::before {
    font-size: 0.5rem;
    top: 8px;
    right: 8px;
    padding: 3px 6px;
  }

  .info {
    padding: 20px 10px;
    background: linear-gradient(to bottom, #0a0a0a, #000);
  }

  .info::before {
    width: 15px;
    top: 12px;
  }

  .producto h3 {
    font-size: 0.75rem;
    letter-spacing: 1px;
    margin-bottom: 6px;
    min-height: 2.2rem;
    font-weight: 300;
  }

  .precio {
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: 400;
  }

  .desc {
    display: none;
  }

  .btn-wpp {
    font-size: 0.65rem;
    padding: 12px 5px;
    letter-spacing: 1.5px;
    background: transparent;
    border-color: rgba(212, 175, 55, 0.2);
    color: var(--primary);
  }

  /* Footer Mobile */
  footer {
    padding: 60px 20px;
  }

  footer h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }
}

/* Ajustes para pantallas extra pequeñas */
@media (max-width: 360px) {
  .hero h2 {
    font-size: 1.5rem !important;
  }

  .catalogo {
    gap: 10px;
    padding: 10px;
  }

  .producto img {
    height: 160px;
  }
}

/* ========================================================
   CARRITO DE COMPRAS - GLASSMORPHISM SIDEBAR
======================================================== */
.cart-icon {
  position: relative;
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition);
}

.cart-icon:hover {
  transform: scale(1.1);
}

#cart-count {
  position: absolute;
  top: -8px;
  right: -12px;
  background: var(--primary);
  color: #000;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary-glow);
}

/* Sidebar structure */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  /* Hidden start */
  width: 380px;
  max-width: 100%;
  height: 100vh;
  background: rgba(10, 10, 10, 0.85);
  /* Deep dark glass */
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: -10px 0 50px rgba(0, 0, 0, 0.8);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cart-sidebar.active {
  right: 0;
}

/* Overlay for click-outside */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.cart-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Cart contents layout */
.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cart-header h3 {
  font-size: 1.4rem;
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
}

.close-cart {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.close-cart:hover {
  color: var(--primary);
  transform: rotate(90deg);
}

.cart-items {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Single Cart Item */
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  padding: 15px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.cart-item-info h4 {
  font-size: 0.9rem;
  font-weight: 400;
  margin-bottom: 5px;
  color: #eee;
}

.cart-item-info p {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(0, 0, 0, 0.4);
  padding: 5px 10px;
  border-radius: 4px;
}

.cart-item-actions button {
  background: none;
  border: none;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.2s;
}

.cart-item-actions button:hover {
  color: var(--primary);
}

.cart-item-actions span {
  font-size: 0.9rem;
  font-weight: 600;
}

.empty-cart {
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 50%;
  transform: translateY(-50%);
}

/* Cart Footer / Checkout */
.cart-footer {
  padding: 25px 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.3);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.cart-total span:last-child {
  color: var(--primary);
}

.btn-checkout {
  width: 100%;
  padding: 18px;
  background: var(--primary);
  color: #000;
  border: none;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: var(--transition);
  border-radius: 2px;
}

.btn-checkout:hover {
  background: #fff;
  box-shadow: 0 0 20px var(--primary-glow);
}

.btn-continue {
  width: 100%;
  margin-bottom: 10px;
  padding: 14px;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: var(--transition);
  border-radius: 2px;
}

.btn-continue:hover {
  border-color: var(--primary);
  color: var(--primary);
}

@media (max-width: 768px) {
  .cart-sidebar {
    width: 100%;
    right: -100%;
    border-left: none;
  }

  .cart-header,
  .cart-items,
  .cart-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .cart-float,
  .whatsapp-float {
    width: 58px;
    height: 58px;
  }

  .cart-float {
    right: 16px;
  }

  .whatsapp-float {
    left: 16px;
  }
}

/* =======================
   STATS DASHBOARD (Admin)
======================= */
.stats-dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 8px;
}

.stat-card {
  background: rgba(212,175,55,0.06);
  border: 1px solid rgba(212,175,55,0.18);
  border-radius: 12px;
  padding: 18px 16px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: default;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(212,175,55,0.12);
}

.stat-card .stat-icon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 8px;
  line-height: 1;
}

.stat-card .stat-value {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-card .stat-label {
  font-size: 0.75rem;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stats-chart-wrap {
  margin-top: 18px;
}

.stats-chart-title {
  font-size: 0.85rem;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.chart-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.chart-bar-label {
  font-size: 0.78rem;
  color: #ccc;
  width: 130px;
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chart-bar-bg {
  flex: 1;
  height: 10px;
  background: rgba(255,255,255,0.06);
  border-radius: 6px;
  overflow: hidden;
}

.chart-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #f5d060);
  border-radius: 6px;
  transition: width 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
  width: 0;
}

.chart-bar-count {
  font-size: 0.78rem;
  color: var(--primary);
  font-weight: 700;
  min-width: 24px;
  text-align: right;
}

.stats-reset-wrap {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.stats-updated {
  font-size: 0.8rem;
  color: #777;
}

/* Light mode stats */
body.light-mode .stat-card {
  background: rgba(212,175,55,0.05);
  border-color: rgba(212,175,55,0.25);
}

body.light-mode .stat-card .stat-label {
  color: #888;
}

body.light-mode .chart-bar-label {
  color: #444;
}

body.light-mode .chart-bar-bg {
  background: rgba(0,0,0,0.07);
}

body.light-mode .stats-updated {
  color: #999;
}

/* Light mode admin card */
body.light-mode .admin-card {
  background: rgba(255,255,255,0.9);
  border-color: rgba(0,0,0,0.08);
}

body.light-mode .admin-card input,
body.light-mode .admin-card select,
body.light-mode .admin-card textarea {
  background: #f5f0e8;
  border-color: rgba(0,0,0,0.15);
  color: #1a1a1a;
}

body.light-mode .admin-card label {
  color: #333;
}

body.light-mode .admin-table th,
body.light-mode .admin-table td {
  border-bottom-color: rgba(0,0,0,0.07);
  color: #222;
}

body.light-mode .admin-note {
  color: #666;
}

body.light-mode .drop-zone {
  border-color: rgba(0,0,0,0.2);
  color: #555;
}

body.light-mode .image-uploader {
  background: rgba(0,0,0,0.02);
  border-color: rgba(0,0,0,0.15);
}

body.light-mode .section-title {
  color: var(--primary);
}

@media (max-width: 600px) {
  .stats-dashboard {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .stat-card {
    padding: 14px 10px;
  }

  .stat-card .stat-value {
    font-size: 1.5rem;
  }

  .chart-bar-label {
    width: 90px;
  }
}

body.light-mode .chart-card {
  background: rgba(0,0,0,0.02) !important;
  border-color: rgba(0,0,0,0.08) !important;
}

body.light-mode .chart-card h3 {
  color: #222 !important;
}

