/* ==========================================================================
   BILLION SCENTS ESPAÑA - FLUID LUXURY TYPOGRAPHY SYSTEM
   Crafted in accordance with Impeccable Typeset & Adapt Playbooks
   
   Fluid Range: 360px (mobile viewport) -> 1280px (desktop viewport)
   Display Serif: Cinzel ('Playfair Display', Georgia fallback)
   Brand Body:    Jost / Montserrat (-apple-system fallback)
   Tabular Data:  JetBrains Mono (monospace fallback)
   ========================================================================== */

/* 0. GLOBAL MOBILE VIEWPORT CONTAINMENT & ANTI-BLOWOUT SAFEGUARDS */
html {
  overflow-x: hidden !important;
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box;
}

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

body {
  overflow-x: hidden !important;
  max-width: 100% !important;
  width: 100% !important;
  position: relative !important;
  margin: 0;
  padding: 0;
}

#page, .site, .site-main, #content, .footer-width-fixer, footer#colophon, .elementor {
  max-width: 100% !important;
  width: 100% !important;
  overflow-x: hidden !important;
}

/* Stretched Section & Hardcoded Width Neutralizer */
.elementor-section-stretched,
.elementor-section,
.elementor-container,
[style*="width:1320px"],
[style*="width: 1320px"] {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

@media (max-width: 1024px) {
  .elementor-section-stretched,
  .elementor-section,
  .elementor-container,
  .footer-width-fixer section,
  [style*="width:1320px"],
  [style*="width: 1320px"] {
    width: 100% !important;
    max-width: 100% !important;
    left: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* 1. ROOT TOKENS & FLUID TYPE SCALING */
:root {
  /* Font Family Stacks */
  --font-display: 'Cinzel', 'Playfair Display', Georgia, serif;
  --font-body: 'Jost', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, Monaco, monospace;
  
  /* Browser Accent Colors */
  --gold-primary: #c9a14a;
  caret-color: var(--gold-primary);

  /* Fluid Typographic Ramp: clamp(min, calc(intercept + slope*vw), max) */
  --step-hero:  clamp(1.75rem, 1.26rem + 2.17vw, 3rem);         /* 28px -> 48px */
  --step-h1:    clamp(1.5rem, 1.15rem + 1.52vw, 2.375rem);       /* 24px -> 38px */
  --step-h2:    clamp(1.25rem, 1.05rem + 0.87vw, 1.75rem);       /* 20px -> 28px */
  --step-h3:    clamp(1rem, 0.9rem + 0.435vw, 1.25rem);          /* 16px -> 20px */
  --step-h4:    clamp(0.906rem, 0.85rem + 0.27vw, 1.0625rem);    /* 14.5px -> 17px */
  --step-lead:  clamp(0.906rem, 0.85rem + 0.22vw, 1.031rem);     /* 14.5px -> 16.5px */
  --step-body:  clamp(0.9375rem, 0.91rem + 0.11vw, 1rem);        /* 15px -> 16px */
  --step-price: clamp(1.0625rem, 0.94rem + 0.54vw, 1.375rem);   /* 17px -> 22px */
  --step-label: clamp(0.6875rem, 0.66rem + 0.11vw, 0.75rem);    /* 11px -> 12px (strictly >= 11px floor) */
  --step-stat:  clamp(1.375rem, 1.23rem + 0.65vw, 1.75rem);     /* 22px -> 28px */
}

/* 2. THEMED BROWSER SURFACES */
::selection {
  background: rgba(201, 161, 74, 0.3);
  color: inherit;
}

::-moz-selection {
  background: rgba(201, 161, 74, 0.3);
  color: inherit;
}

a {
  text-underline-offset: 3px;
}

/* 3. FLUID DISPLAY & HERO HEADINGS */
.subpage-title {
  font-family: var(--font-display) !important;
  font-size: var(--step-h1) !important;
  font-weight: 600 !important;
  letter-spacing: clamp(1.5px, 0.15vw, 2.5px) !important;
  line-height: 1.2 !important;
  text-transform: uppercase !important;
  text-rendering: optimizeLegibility;
}

.hero-slider-title,
.elementor-heading-title.hero-title {
  font-family: var(--font-display) !important;
  font-size: var(--step-hero) !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  letter-spacing: 2px !important;
}

/* 4. FLUID SECTION HEADINGS (H2) */
.elementor-heading-title,
.editorial-section h2,
.madrid-hub-details h2 {
  font-family: var(--font-display) !important;
  font-size: var(--step-h2) !important;
  font-weight: 600 !important;
  letter-spacing: 1.5px !important;
  line-height: 1.25 !important;
  text-rendering: optimizeLegibility;
}

/* 5. FLUID SUBHEADINGS, MODALS & CARDS (H3) */
.editorial-section h3,
.card-title,
.modal-title,
.faq-question {
  font-family: var(--font-display) !important;
  font-size: var(--step-h3) !important;
  font-weight: 600 !important;
  letter-spacing: 0.8px !important;
  line-height: 1.35 !important;
}

/* 6. FLUID PRODUCT NAMES & FEATURE HEADINGS (H4) */
.woolentor-product-title,
.woolentor-product-title a,
.card-name,
.feature-box h4 {
  font-family: var(--font-display) !important;
  font-size: var(--step-h4) !important;
  font-weight: 600 !important;
  letter-spacing: 0.35px !important;
  line-height: 1.35 !important;
}

.woolentor-product-title a:hover,
.card-name:hover {
  color: var(--gold-primary) !important;
}

/* 7. FLUID SUBTITLES & INTRODUCTORY LEADS */
.subpage-subtitle,
.lead-text {
  font-family: var(--font-body) !important;
  font-size: var(--step-lead) !important;
  line-height: 1.65 !important;
  letter-spacing: 0.25px !important;
  max-width: 640px !important;
}

/* 8. FLUID BODY PROSE (45-75ch Measure) */
.editorial-section,
.editorial-section p,
.faq-answer,
.subpage-container p {
  font-family: var(--font-body) !important;
  font-size: var(--step-body) !important;
  line-height: 1.8 !important;
  color: #2d3748 !important;
}

.editorial-section {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* 9. FLUID & TABULAR NUMERICS (PRICES & METRICS) */
.price,
.card-price,
.woocommerce-Price-amount,
.woolentor-price-amount,
.qv-price {
  font-family: var(--font-mono) !important;
  font-size: var(--step-price) !important;
  font-weight: 700 !important;
  letter-spacing: -0.5px !important;
  font-variant-numeric: tabular-nums lining-nums !important;
}

.stat-card-value,
.counter-box-num {
  font-family: var(--font-mono) !important;
  font-size: var(--step-stat) !important;
  font-weight: 700 !important;
  letter-spacing: -0.5px !important;
  font-variant-numeric: tabular-nums lining-nums !important;
}

.admin-table td,
.results-count,
.order-num,
.badge-count {
  font-variant-numeric: tabular-nums lining-nums !important;
}

/* 10. FLUID LABELS, EYEBROWS & METADATA (LEGIBILITY FLOOR >= 11PX) */
.subpage-breadcrumbs,
.card-brand,
.stat-card-label,
.nav-section-label,
.card-badge,
.admin-table th,
.counter-box-label {
  font-family: var(--font-body) !important;
  font-size: var(--step-label) !important;
  font-weight: 700 !important;
  letter-spacing: 1.8px !important;
  text-transform: uppercase !important;
}

/* 11. PERCEPTUAL DARK SURFACE TEXT COMPENSATION */
.subpage-hero,
.subpage-subtitle,
.admin-sidebar,
.stat-card-subtext {
  letter-spacing: 0.25px;
}

/* ==========================================================================
   12. STRATEGIC LUXURY COLOR SYSTEM (Impeccable Colorize)
   ========================================================================== */

/* Category Semantic Badges on Product Cards */
.card-badge,
.mobile-cart-badge {
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
  border-radius: 4px !important;
  padding: 4px 10px !important;
  transition: all 0.25s ease !important;
}

/* Prestige Tier: Radiant Imperial Gold */
.card-badge.gold,
.card-badge.badge-prestige {
  background: #c9a14a !important;
  color: #0d0f12 !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 2px 8px rgba(201, 161, 74, 0.35) !important;
}

/* Men's Perfumes: Midnight Sapphire & Icy Blue */
.card-badge.badge-men {
  background: #111827 !important;
  color: #93c5fd !important;
  border: 1px solid rgba(147, 197, 253, 0.35) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
}

/* Women's Perfumes: Velvet Rose Noir & Champagne Blush */
.card-badge.badge-women {
  background: #1f131a !important;
  color: #fbcfe8 !important;
  border: 1px solid rgba(251, 207, 232, 0.35) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
}

/* Unisex Scents: Slate Obsidian & Silver Argent */
.card-badge.badge-unisex {
  background: #161c24 !important;
  color: #e2e8f0 !important;
  border: 1px solid rgba(226, 232, 240, 0.25) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
}

/* Reed Diffusers: Deep Cypress & Mint Sage */
.card-badge.badge-diffusers {
  background: #0e231b !important;
  color: #a7f3d0 !important;
  border: 1px solid rgba(167, 243, 208, 0.3) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
}

/* Gift Sets: Royal Velvet Plum & Lilac */
.card-badge.badge-giftsets {
  background: #201429 !important;
  color: #e9d5ff !important;
  border: 1px solid rgba(233, 213, 255, 0.3) !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) !important;
}

/* Filter Tabs & Active Focus Hierarchy */
.filter-pill {
  background: #fbfaf8 !important;
  border: 1px solid #e5e2da !important;
  color: #374151 !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.filter-pill:hover {
  background: #f4f1ea !important;
  border-color: #c9a14a !important;
  color: #111827 !important;
  transform: translateY(-1px) !important;
}

.filter-pill.active {
  background: linear-gradient(135deg, #1c212c 0%, #11141a 100%) !important;
  color: #f8f9fa !important;
  border-color: #c9a14a !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2), 0 0 0 1px #c9a14a !important;
}

/* Scent Family Micro-Tints */
.scent-chip {
  background: #fcfbfa !important;
  border: 1px solid #e9e6df !important;
  color: #4b5563 !important;
  transition: all 0.2s ease !important;
}

.scent-chip:hover {
  border-color: #c9a14a !important;
  color: #111827 !important;
}

.scent-chip.active {
  background: #c9a14a !important;
  color: #0d0f12 !important;
  font-weight: 700 !important;
  border-color: #c9a14a !important;
  box-shadow: 0 2px 8px rgba(201, 161, 74, 0.35) !important;
}

/* Primary Action Conversion Buttons */
.card-add-btn {
  background: #111827 !important;
  color: #ffffff !important;
  border: 1px solid #111827 !important;
  transition: all 0.25s ease !important;
}

.card-add-btn:hover {
  background: #c9a14a !important;
  border-color: #c9a14a !important;
  color: #0d0f12 !important;
  box-shadow: 0 4px 14px rgba(201, 161, 74, 0.35) !important;
}

/* 8. MOBILE TOUCH TARGET SYSTEM (WCAG 2.5.5 / 2.5.8 Compliant >= 44x44px) */
a[href^="tel:"],
a[href*="wa.me"],
a[href*="api.whatsapp.com"],
a[href*="maps.google"],
.touch-phone-link,
.touch-wa-link,
.touch-map-link,
.touch-location-btn,
.mobile-touch-call-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(201, 161, 74, 0.2);
}

.footer-navigation a[href^="tel:"],
.footer-navigation a[href*="wa.me"],
.footer-navigation a[href*="maps.google"] {
  padding-top: 8px;
  padding-bottom: 8px;
}

/* 9. MOBILE SCREEN ADAPTATION SYSTEM (Impeccable Adapt - Screen Mobile) */
@media (max-width: 768px) {
  /* A. Horizontal scrolling filter ribbons with thumb momentum */
  .filter-tabs-wrapper,
  .scent-chips-wrapper {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    padding: 6px 16px 14px !important;
    margin-left: -16px !important;
    margin-right: -16px !important;
    scrollbar-width: none !important; /* Firefox */
  }
  .filter-tabs-wrapper::-webkit-scrollbar,
  .scent-chips-wrapper::-webkit-scrollbar {
    display: none !important; /* Safari / Chrome */
  }
  .filter-pill,
  .scent-chip {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    font-size: 11.5px !important;
    padding: 8px 16px !important;
  }

  /* B. Touch Device Action Bar Visibility (No Hover Dependency) */
  .card-actions-float {
    opacity: 1 !important;
    transform: translateX(0) !important;
  }
  .card-action-btn {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
  }

  /* C. Quick View Modal Mobile Reflow */
  .billion-quickview-card {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    padding: 24px 18px !important;
    max-height: 88vh !important;
  }
  .billion-quickview-card img {
    max-height: 240px !important;
    margin: 0 auto !important;
  }

  /* D. Subpage Containers & Shop Grid Symmetrical Mobile Width */
  .subpage-container {
    padding: 24px 16px 60px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .shop-grid {
    width: 100% !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px 12px !important;
  }
  .subpage-hero {
    padding: 36px 16px 28px !important;
    text-align: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* E. Footer Responsive Full-Width Stacking & Newsletter */
  .footer-width-fixer .elementor-container {
    flex-direction: column !important;
    display: flex !important;
    width: 100% !important;
    padding: 0 16px !important;
    box-sizing: border-box !important;
  }
  .footer-width-fixer .elementor-column,
  .elementor-column.elementor-col-25,
  .elementor-column.elementor-col-33,
  .elementor-column.elementor-col-50,
  .elementor-column.elementor-col-100 {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    margin-bottom: 24px !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }
  .footer-width-fixer .elementor-widget-text-editor,
  .footer-width-fixer .footer-navigation ul {
    text-align: center !important;
    padding-left: 0 !important;
    list-style: none !important;
  }
  .footer-width-fixer .footer-navigation ul li {
    margin: 8px 0 !important;
  }
  .footer-width-fixer .elementor-element-39b6fec .elementor-form-fields-wrapper {
    display: flex !important;
    flex-direction: row !important;
    width: 100% !important;
    max-width: 420px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }
  .footer-width-fixer .elementor-element-39b6fec .elementor-field-group-email {
    flex: 1 1 auto !important;
    width: auto !important;
  }
  .footer-width-fixer .elementor-element-39b6fec .elementor-field-group.elementor-field-type-submit {
    flex: 0 0 auto !important;
    width: auto !important;
  }
  .footer-width-fixer .elementor-element-118b9ec {
    text-align: center !important;
  }
  .footer-width-fixer .elementor-element-118b9ec img {
    margin: 0 auto !important;
    max-width: 280px !important;
  }
}

@media (max-width: 600px) {
  /* F. Product Card Mobile Ergonomics */
  .shop-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px 10px !important;
  }
  .card-body {
    padding: 12px 10px 14px !important;
  }
  .card-name {
    font-size: 13.5px !important;
    line-height: 1.3 !important;
    margin-bottom: 6px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
  }
  .card-brand {
    font-size: 11px !important;
    margin-bottom: 4px !important;
  }
  .card-notes {
    font-size: 11px !important;
    margin-bottom: 8px !important;
  }
  .card-price {
    font-size: 16px !important;
  }
  .card-price-row {
    margin-bottom: 10px !important;
  }
  .card-add-btn {
    padding: 10px 8px !important;
    font-size: 11px !important;
    letter-spacing: 0.8px !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* G. Controls Bar Stacking */
  .shop-controls-bar {
    padding: 12px 14px !important;
    gap: 12px !important;
    margin-bottom: 24px !important;
  }
  .shop-search-box {
    min-width: 100% !important;
  }
  .shop-sort-box {
    width: 100% !important;
  }
  .shop-sort-box select {
    width: 100% !important;
    min-height: 44px !important;
  }

  /* F. Safe Area Pad for Floating Widgets */
  #billionWhatsAppWidget {
    bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
    left: calc(14px + env(safe-area-inset-left, 0px)) !important;
  }
  #billionFloatingCartWidget {
    bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
    right: calc(14px + env(safe-area-inset-right, 0px)) !important;
  }

  /* G. Checkout Modal Mobile Ergonomics */
  .checkout-form-row {
    flex-direction: column !important;
    gap: 8px !important;
  }
  .checkout-payment-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }
  .billion-checkout-modal-card {
    padding: 22px 16px !important;
    max-height: 94vh !important;
  }
}

/* 10. MOBILE DRAWER NAVIGATION STYLING */
.mobile-nav-link {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 13px 20px !important;
  font-size: 14.5px !important;
  font-weight: 500 !important;
  color: #1a1a1a !important;
  text-decoration: none !important;
  border-bottom: 1px solid #f7f7f7 !important;
  min-height: 44px !important;
  transition: all 0.2s ease !important;
  touch-action: manipulation !important;
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
  background: #fbfaf8 !important;
  color: var(--gold-primary) !important;
  padding-left: 24px !important;
}

.nav-count-badge {
  background: #f3f0e8 !important;
  color: #8c7335 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 2px 8px !important;
  border-radius: 12px !important;
}



