/* CAPITAL VAPE - Global Design System */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Outfit:wght@500;600;700;800;900&display=swap');

/* ==========================================================================
   THEME VARIABLES (DARK THEME DEFAULT / LIGHT THEME SUPPORT)
   Paleta oficial extraída del Logo:
   - Morado medianoche profundo (#0B0410, #140821, #1A0B2C, #240E3E)
   - Morado / Magenta vibrante (#D81BB7, #8E0E78, #3A0835)
   - Dorado metálico (#E5B700, #D4AF37, #FAD02C)
   - Amarillo eléctrico / Neón (#FFE600, #F6D850)
   ========================================================================== */

:root, [data-theme="dark"] {
  --theme-mode: 'dark';

  /* Midnight Dark Purple */
  --bg-dark: #0B0410;
  --bg-surface: #140821;
  --bg-card: #1A0B2C;
  --bg-card-hover: #240E3E;
  --bg-input: #12061C;

  --text-primary: #FFFFFF;
  --text-secondary: #CBB4D0;
  --text-muted: #8F7697;

  /* Logo Palette */
  --accent-purple: #D81BB7;
  --accent-purple-deep: #8E0E78;
  --accent-purple-glow: rgba(216, 27, 183, 0.4);
  
  --accent-gold: #E5B700;
  --accent-gold-hover: #FAD02C;
  --accent-gold-glow: rgba(229, 183, 0, 0.4);
  
  --accent-yellow: #FFE600;
  --accent-yellow-glow: rgba(255, 230, 0, 0.4);

  --accent-green: #10B981;
  --accent-red: #EF4444;

  --border-color: rgba(216, 27, 183, 0.24);
  --border-hover: rgba(229, 183, 0, 0.55);
  --border-active: rgba(229, 183, 0, 0.75);

  --nav-bg: rgba(11, 4, 16, 0.92);
  --hero-gradient: radial-gradient(circle at 75% 30%, rgba(216, 27, 183, 0.28) 0%, rgba(229, 183, 0, 0.14) 45%, transparent 70%);
  --hero-card-glow: 0 0 50px rgba(216, 27, 183, 0.35), 0 0 25px rgba(229, 183, 0, 0.3);
  --shadow-card: 0 12px 36px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 25px var(--accent-gold-glow);

  --badge-bg: rgba(216, 27, 183, 0.18);
  --badge-border: rgba(216, 27, 183, 0.45);
  --badge-text: #FAD02C;

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* LIGHT THEME */
[data-theme="light"] {
  --theme-mode: 'light';

  --bg-dark: #FAF4FB;
  --bg-surface: #F2E3F4;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FFF7FD;
  --bg-input: #FFFFFF;

  --text-primary: #1C0722;
  --text-secondary: #5E4167;
  --text-muted: #8E7197;

  /* Logo Palette adapted for light mode */
  --accent-purple: #B30D96;
  --accent-purple-deep: #780565;
  --accent-purple-glow: rgba(179, 13, 150, 0.18);
  
  --accent-gold: #B8860B;
  --accent-gold-hover: #9E7307;
  --accent-gold-glow: rgba(184, 134, 11, 0.22);
  
  --accent-yellow: #D97706;
  --accent-yellow-glow: rgba(217, 119, 6, 0.2);

  --accent-green: #059669;
  --accent-red: #DC2626;

  --border-color: rgba(179, 13, 150, 0.16);
  --border-hover: rgba(184, 134, 11, 0.45);
  --border-active: rgba(184, 134, 11, 0.6);

  --nav-bg: rgba(250, 244, 251, 0.94);
  --hero-gradient: radial-gradient(circle at 75% 30%, rgba(179, 13, 150, 0.14) 0%, rgba(184, 134, 11, 0.1) 45%, transparent 70%);
  --hero-card-glow: 0 0 35px rgba(179, 13, 150, 0.15), 0 0 20px rgba(184, 134, 11, 0.15);
  --shadow-card: 0 10px 30px rgba(94, 65, 103, 0.08);
  --shadow-glow: 0 0 20px rgba(184, 134, 11, 0.18);

  --badge-bg: rgba(179, 13, 150, 0.08);
  --badge-border: rgba(179, 13, 150, 0.25);
  --badge-text: #B30D96;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

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

.gradient-text {
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-yellow) 40%, var(--accent-purple) 85%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-purple-deep));
  color: #FFFFFF;
  box-shadow: 0 4px 20px var(--accent-purple-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #E62DC7, #9E1087);
  box-shadow: 0 6px 25px var(--accent-purple-glow), 0 0 15px var(--accent-gold-glow);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--accent-gold);
  background: var(--bg-card-hover);
  color: var(--accent-gold);
  box-shadow: 0 0 15px var(--accent-gold-glow);
}

.btn-whatsapp {
  background: #25D366;
  color: #FFFFFF;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: #20BA59;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* ==========================================================================
   BOTTOM FIXED ACTION BAR (WHATSAPP AGENDAR PEDIDO & CART WITH SUBTOTAL)
   ========================================================================== */
body {
  padding-bottom: 74px;
}

.cv-bottom-bar-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1500;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 16px;
  background: rgba(11, 4, 16, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(216, 27, 183, 0.28);
  box-shadow: 0 -6px 28px rgba(0, 0, 0, 0.75);
}

.cv-bottom-bar-inner {
  max-width: 680px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.cv-bottom-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s ease, border-color 0.2s ease;
  user-select: none;
  border: none;
  outline: none;
  white-space: nowrap;
  box-sizing: border-box;
}

.cv-bottom-btn:hover {
  transform: translateY(-2px);
}

.cv-bottom-btn:active {
  transform: translateY(0) scale(0.98);
}

.bottom-btn-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.bottom-btn-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.02em;
}

/* WhatsApp Agendar Pedido Button */
.wa-bottom-btn {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #FFFFFF;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.wa-bottom-btn:hover {
  background: linear-gradient(135deg, #2ae771, #16a392);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.65);
  color: #FFFFFF;
}

/* Cart with Subtotal Button */
.cart-bottom-btn {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-surface));
  color: #FFFFFF;
  border: 1.5px solid var(--accent-gold);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 14px var(--accent-gold-glow);
  position: relative;
}

.cart-bottom-btn:hover {
  background: linear-gradient(135deg, var(--bg-card-hover), var(--bg-card));
  border-color: #FFE600;
  box-shadow: 0 6px 26px rgba(0, 0, 0, 0.75), 0 0 20px rgba(255, 230, 0, 0.5);
}

.cart-bottom-btn #bottomCartSubtotal {
  color: var(--accent-gold);
  font-weight: 800;
}

/* Badge for Cart count */
.bottom-cart-badge {
  background: var(--accent-gold);
  color: #000000;
  font-size: 0.72rem;
  font-weight: 800;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  margin-left: 2px;
  flex-shrink: 0;
}

/* Legacy support if old classes are referenced */
.floating-cart-btn, .wa-floating-btn, .cv-floating-actions-container {
  display: none;
}


