/* =========================================================
   MÁS FITNESS SUPLEMENTOS - Tema Oscuro Premium
========================================================== */

:root {
    /* Color Palette - Light Monochrome Haute Couture */
    --bg-main: #FFFFFF;
    --bg-surface: #FAFAFA;
    --bg-surface-hover: #F0F0F0;
    --bg-panel: #FFFFFF;
    
    --accent: #000000; /* Pure Jet Black Acento Principal */
    --accent-hover: #1f1f1f;
    --accent-glow: rgba(0, 0, 0, 0.1);

    --text-primary: #0a0a0a;
    --text-secondary: #5a5a5a;
    --text-muted: #8e8e8e;

    --border: #e2e2e2;
    --border-light: #cfcfcf;

    /* Typography */
    --font-sans: 'Inter', system-ui, sans-serif;
    --font-heading: 'Playfair Display', 'Times New Roman', serif;

    /* Transitions & Shadows */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 15px var(--accent-glow);
    
    /* Layout */
    --nav-height: 80px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
}

/* =========================================
   Typography & Reusables
========================================= */
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

ul {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    transition: all var(--transition);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    border-radius: 0;
    transition: all var(--transition);
}

.btn-primary {
    background: var(--accent);
    color: #ffffff;
    border: 2px solid var(--accent);
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.2);
}

.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-light);
}

.btn-outline:hover {
    border-color: var(--text-primary);
    background: rgba(255,255,255,0.05);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-block {
    width: 100%;
}

.icon-btn {
    color: var(--text-primary);
    padding: 0.5rem;
    border-radius: 0;
}
.icon-btn:hover {
    background: var(--bg-surface-hover);
    color: var(--accent);
}

/* =========================================
   Navbar (Glassmorphism)
========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: auto;
    min-height: var(--nav-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    z-index: 100;
    display: flex;
    flex-direction: column;
}

.nav-container {
    height: var(--nav-height);
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0 3%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.logo-icon {
    color: var(--accent);
    width: 32px;
    height: 32px;
}

/* =========================================
   Top Search Bar (Retail Style)
========================================= */
.header-search-bar {
    flex: 1;
    max-width: 600px;
    margin: 0 4rem;
    position: relative;
    display: flex;
    align-items: center;
}

.header-search-bar input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.8rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.95rem;
    font-family: var(--font-sans);
    outline: none;
    transition: all var(--transition);
    background: var(--bg-surface);
}

.header-search-bar input:focus {
    border-color: var(--accent);
    background: #fff;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.05);
}

.header-search-bar .search-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    width: 18px;
    height: 18px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-menu-btn {
    display: block;
}
@media(min-width: 768px) {
    .mobile-menu-btn { display: none; }
}

.cart-btn.cart-circle-style {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    padding: 0;
    transition: transform var(--transition);
}

.cart-btn.cart-circle-style:hover {
    transform: scale(1.05);
    background: var(--accent-hover);
}

.cart-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.cart-badge {
    position: absolute;
    top: -2px;
    right: -4px;
    background: #fff;
    color: #000;
    font-size: 0.75rem;
    font-weight: 900;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15); /* Sombra sutil para despegarlo del fondo oscuro */
}

.cart-total {
    font-weight: 600;
    font-size: 0.9rem;
    display: none;
}
@media(min-width: 640px) {
    .cart-total { display: block; }
}

/* =========================================
   Hero Banner
========================================= */
.hero {
    margin-top: 130px;
    position: relative;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 2rem;
    overflow: hidden;
}

/* Hero CSS Crossfade Carousel */
.hero-carousel {
    position: absolute;
    inset: 0;
    z-index: 1; /* Below overlay */
    background: #f0f0f0;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0;
    animation: fadeSlide 15s infinite;
}

.slide-1 {
    background-image: url('https://images.unsplash.com/photo-1594035910387-fea47794261f?q=80&w=2069&auto=format&fit=crop'); /* Dior / Bright */
    animation-delay: 0s;
}

.slide-2 {
    background-image: url('https://images.unsplash.com/photo-1541643600914-78b084683601?q=80&w=2000&auto=format&fit=crop'); /* Abstract bottle aesthetic */
    animation-delay: 5s;
}

.slide-3 {
    background-image: url('https://images.unsplash.com/photo-1616401784845-180882ba9ba8?q=80&w=2000&auto=format&fit=crop'); /* Golden perfume array */
    animation-delay: 10s;
}

@keyframes fadeSlide {
    0% { opacity: 0; transform: scale(1.05); }
    10% { opacity: 1; transform: scale(1); }
    33% { opacity: 1; transform: scale(1); }
    43% { opacity: 0; transform: scale(1.05); }
    100% { opacity: 0; transform: scale(1.05); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(90deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.85) 50%, rgba(255,255,255,0.4) 100%);
}

.hero-content {
    position: relative;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    z-index: 10;
}

.badge-new {
    display: inline-block;
    background: rgba(255, 42, 42, 0.15);
    color: var(--accent);
    padding: 0.4rem 1rem;
    border-radius: 0;
    font-weight: 500;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--accent);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 2.5rem;
}

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

/* Hero Stats */
.hero-stats {
    position: absolute;
    bottom: -40px;
    right: 10%;
    display: flex;
    gap: 2rem;
    background: var(--bg-surface);
    padding: 1.5rem 3rem;
    border-radius: 0;
    border: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    z-index: 20;
}
@media(max-width: 1024px) {
    .hero-stats { display: none; }
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-primary);
    line-height: 1;
}

.stat-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================
   Store Layout
========================================= */
.store-container {
    max-width: 1400px;
    margin: 5rem auto;
    padding: 0 2rem;
}

/* Products Area Only (Full Width Runway) */
@media(min-width: 900px) {
    .store-container {
        display: block;
    }
}

/* =========================================
   Haute Couture Navigation (Horizontal)
========================================= */
.haute-couture-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between; /* Alineación distribuida a los márgenes */
    width: 100%;
    padding-bottom: 0.5rem;
    padding-top: 0.5rem;
    margin-bottom: 0;
    border-bottom: none;
    gap: 1rem;
    padding-left: 3%;
    padding-right: 3%;
}

.category-tabs {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.category-tabs label {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color 0.4s ease;
    padding-bottom: 0.5rem;
    position: relative;
}

.category-tabs label:hover {
    color: var(--text-primary);
}

.category-tabs input[type="radio"] {
    display: none;
}

/* Pseudo-underline for active tabs handled by JS or CSS sibling selectors */
.category-tabs label:has(input:checked) {
    color: var(--text-primary);
    border-bottom: 1px solid var(--accent);
}

.sort-dropdown {
    display: flex;
    align-items: center;
}

.minimal-select {
    background: transparent;
    color: var(--text-primary);
    border: none;
    border-bottom: 1px solid var(--border);
    padding: 0.4rem 1rem 0.4rem 0;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    outline: none;
    cursor: pointer;
}

/* =========================================
   Product Grid & Cards (Large Editorial Format)
========================================= */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 3rem 1.5rem;
}

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

.product-card {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.5s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    animation: fadeUp 1s cubic-bezier(0.19, 1, 0.22, 1) both;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 0, 0, 0.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.03);
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--accent);
    color: white;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    border-radius: 2px;
    z-index: 2;
    text-transform: uppercase;
}

.product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: transparent;
    position: relative;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.8s ease, filter 0.8s ease;
    filter: brightness(0.95) contrast(1.1) grayscale(0.1);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
    filter: brightness(1) contrast(1.1) grayscale(0);
}

.product-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-brand {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.product-title {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    text-transform: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.product-meta {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.product-price-block {
    display: flex;
    flex-direction: column;
}

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

.price-current {
    font-family: var(--font-sans);
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    line-height: 1.1;
}

.btn-add {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: 0 1rem;
    height: 38px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all var(--transition);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
}

.product-card:hover .btn-add {
    background: var(--text-primary);
    color: white;
    border-color: var(--text-primary);
}

/* =========================================
   Cart Drawer
========================================= */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -400px; /* Hidden state */
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: var(--bg-surface);
    border-left: 1px solid var(--border);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transition: right var(--transition);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.cart-drawer.open {
    right: 0;
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: var(--bg-surface);
    z-index: 10;
}

.cart-header h3 {
    font-size: 1.5rem;
}

.close-cart {
    color: var(--text-secondary);
}
.close-cart:hover {
    color: var(--accent);
}

.cart-items {
    flex-grow: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.empty-cart {
    margin: auto;
    text-align: center;
    color: var(--text-muted);
}
.empty-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1rem;
    opacity: 0.5;
}
.empty-cart p {
    margin-bottom: 1.5rem;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    background: var(--bg-main);
}

.cart-summary {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.cart-tax-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* =========================================
   Footer
========================================= */
.footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
}

.footer-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 400px;
}

.footer-brand .logo {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

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

.social-links a {
    color: var(--text-primary);
    background: var(--bg-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-light);
}

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

.footer-links h4, .footer-newsletter h4 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links a {
    display: block;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

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

.footer-newsletter p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.newsletter-form {
    display: flex;
}

.newsletter-form input {
    background: var(--bg-main);
    border: 1px solid var(--border);
    padding: 0.75rem 1rem;
    color: white;
    outline: none;
    flex-grow: 1;
    border-radius: 4px 0 0 4px;
}
.newsletter-form input:focus {
    border-color: var(--border-light);
}

.newsletter-form button {
    background: var(--accent);
    color: white;
    padding: 0 1rem;
    border-radius: 0 4px 4px 0;
}
.newsletter-form button:hover {
    background: var(--accent-hover);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.85rem;
}

.legal-links {
    display: flex;
    gap: 1.5rem;
}
.legal-links a:hover {
    color: var(--text-primary);
}

/* =========================================
   Animations
========================================= */
.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-spinner {
    text-align: center;
    padding: 3rem;
    color: var(--text-muted);
    font-size: 1.2rem;
    grid-column: 1 / -1;
}

/* Toast */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    padding: 1rem 1.5rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.toast i {
    color: var(--accent);
}

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

@keyframes fadeOut {
    to { opacity: 0; }
}

/* =========================================
   Reviews & Testimonials (Blanco y Negro)
========================================= */
.reviews {
    background: #ffffff;
    padding: 6rem 2rem;
    border-top: 1px solid #e5e7eb;
}

.reviews-container {
    max-width: 1400px;
    margin: 0 auto;
}

.reviews-header {
    text-align: center;
    margin-bottom: 4rem;
}

.reviews-header .section-title {
    color: #000000;
}

.reviews-header .text-secondary {
    color: #4b5563;
    margin-top: 0.5rem;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.review-card {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    padding: 2rem;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition);
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-color: #000000;
}

.review-stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
    color: #e5e7eb; /* empty star color */
}

.review-stars .star-filled {
    color: #000000; /* black stars for the B&W theme */
    fill: #000000;
}

.review-text {
    font-size: 0.95rem;
    color: #111827;
    font-style: italic;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.review-author {
    font-weight: 700;
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
}

.badge-verified {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #ffffff;
    background: #000000;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

.badge-verified i {
    width: 12px;
    height: 12px;
}

/* Review Form Container */
.review-form-container {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    padding: 3rem;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    text-align: center;
}

.review-form-container h3 {
    margin-bottom: 2rem;
    color: #000000;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

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

@media(max-width: 600px) {
    .form-group.row {
        grid-template-columns: 1fr;
    }
}

.review-form input,
.review-form select,
.review-form textarea {
    width: 100%;
    background: #f9fafb;
    color: #000000;
    border: 2px solid #e5e7eb;
    border-radius: 4px;
    padding: 1rem;
    font-family: var(--font-sans);
    outline: none;
    transition: border-color var(--transition);
}

.review-form input:focus,
.review-form select:focus,
.review-form textarea:focus {
    border-color: #000000;
}

.review-form button {
    background: #000000;
    color: #ffffff;
    border: none;
}
.review-form button:hover {
    background: #333333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* ==========================================
 * MODALS (AUTH)
 * ========================================== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(4px);
    z-index: 9998;
    display: none;
    opacity: 0;
    transition: var(--transition);
}

.modal-overlay.active {
    display: block;
    opacity: 1;
}

.modal {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    padding: 2.5rem;
    border-radius: 8px;
    z-index: 9999;
    width: 90%;
    max-width: 400px;
    max-height: 90vh;
    overflow-y: auto;
    display: none;
    opacity: 0;
    transition: var(--transition);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal.active {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem; right: 1rem;
    color: var(--text-muted);
}

.modal-close:hover {
    color: var(--accent);
}

.auth-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.auth-tab {
    padding: 0.5rem 0;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    background: transparent;
    font-size: 1rem;
    font-weight: 600;
}
.auth-tab.active {
    color: var(--text-primary);
    border-bottom-color: var(--accent);
}

.auth-form { display: none; flex-direction: column; gap: 1rem; }
.auth-form.active { display: flex; }
.auth-form input {
    background: var(--bg-main);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 0.8rem;
    border-radius: 4px;
    font-family: var(--font-sans);
}

.order-history-card {
    background: var(--bg-main);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}
.order-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.order-history-status {
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: bold;
}
.order-history-status.pending { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
.order-history-status.completed { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.order-history-status.cancelled { background: rgba(239, 68, 68, 0.2); color: #ef4444; }

.order-history-item {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    border-bottom: 1px dashed var(--border-light);
    padding: 0.3rem 0;
}
.order-history-item:last-child {
    border-bottom: none;
}

/* =========================================
   Footer & Social Links
========================================= */
.footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding: 2rem 5% 1rem 5%;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-brand .logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    color: var(--text-primary);
    background: var(--bg-main);
    transition: all var(--transition);
}

.social-links a:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-3px);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links h4 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color var(--transition);
}

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

.footer-newsletter {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-newsletter h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

.footer-newsletter p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    background: var(--bg-main);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 0.6rem;
    border-radius: 4px;
    font-family: var(--font-sans);
}

.newsletter-form button {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0 1rem;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
}

.newsletter-form button:hover {
    background: #e60000;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    border-top: 1px solid var(--border);
    background: var(--bg-surface);
    color: var(--text-muted);
    font-size: 0.85rem;
    gap: 1rem;
}

.legal-links {
    display: flex;
    gap: 1.5rem;
}

.legal-links a {
    color: var(--text-muted);
}
.legal-links a:hover {
    color: var(--text-primary);
}

/* =========================================
   PERFUME LOGO ANIMATION (SVG)
========================================= */
.perfume-animated-logo {
    display: block;
    margin-left: -5px;
    margin-right: 8px;
}

.fragrance-cloud {
    transform-origin: 28px 28px;
    animation: sprayCloud 2s infinite ease-out;
}

@keyframes sprayCloud {
    0% { transform: scale(0.2) translate(15px, 15px); opacity: 0; }
    30% { transform: scale(1) translate(0, 0); opacity: 1; }
    80% { transform: scale(1.1) translate(-2px, -5px); opacity: 0.8; }
    100% { transform: scale(1.3) translate(-8px, -15px); opacity: 0; }
}
#popularTrack::-webkit-scrollbar { display: none; }
/* AI Chatbot Styles */
.ai-chat-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--text-primary);
    color: var(--bg-main);
    border: none;
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ai-chat-btn:hover {
    transform: scale(1.08) translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.2);
}
.ai-chat-btn i {
    width: 24px;
    height: 24px;
    animation: pulseGlow 2s infinite alternate;
}
@keyframes pulseGlow {
    from { opacity: 0.7; filter: drop-shadow(0 0 2px var(--bg-main)); }
    to { opacity: 1; filter: drop-shadow(0 0 8px var(--bg-main)); }
}

.ai-chat-modal {
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    width: 380px;
    height: 550px;
    max-height: 80vh;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.9);
    display: none;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
    transform-origin: bottom right;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.ai-chat-modal.active {
    display: flex;
}
@keyframes popIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.chat-header {
    padding: 1.2rem;
    background: var(--bg-main);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.chat-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-close-chat {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}
.btn-close-chat:hover { color: var(--text-primary); }

.chat-flow {
    flex-grow: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-main) 100%);
}
.chat-bubble {
    max-width: 85%;
    padding: 0.8rem 1.2rem;
    border-radius: 18px;
    font-size: 0.9rem;
    line-height: 1.5;
    animation: slideUpFade 0.3s ease forwards;
}
@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.chat-bubble.bot {
    align-self: flex-start;
    background: var(--bg-main);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    border-bottom-left-radius: 4px;
}
.chat-bubble.user {
    align-self: flex-end;
    background: var(--text-primary);
    color: var(--bg-main);
    border-bottom-right-radius: 4px;
}
.chat-typing {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 0.5rem 1rem;
}
.chat-typing span {
    width: 6px;
    height: 6px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out both;
}
.chat-typing span:nth-child(1) { animation-delay: -0.32s; }
.chat-typing span:nth-child(2) { animation-delay: -0.16s; }
@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

.chat-input-area {
    padding: 1rem;
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    display: flex;
    gap: 0.5rem;
}
.chat-input-area input {
    flex-grow: 1;
    background: var(--bg-main);
    border: 1px solid var(--border);
    padding: 0.8rem 1.2rem;
    border-radius: 20px;
    color: var(--text-primary);
    font-family: var(--font-body);
}
.chat-input-area input:focus {
    outline: none;
    border-color: var(--text-primary);
}
.chat-send-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: filter 0.2s;
}
.chat-send-btn:hover { filter: brightness(1.2); }
.mobile-bottom-nav { display: none; }

@media (max-width: 768px) {
    .ai-chat-modal {
        bottom: 0;
        right: 0;
        width: 100%;
        height: 100%;
        max-height: 100vh;
        border-radius: 0;
        animation: slideUpFull 0.3s ease;
    }
    @keyframes slideUpFull {
        from { transform: translateY(100%); }
        to { transform: translateY(0); }
    }
}

@media (max-width: 768px) {
    /* 1. Navegacion Movil Liquida */
    .nav-container { flex-wrap: wrap; height: auto; padding: 0.8rem 1rem; gap: 0.5rem; justify-content: space-between; }
    .header-search-bar { order: 3; margin: 0.1rem 0; width: 100%; max-width: 100%; }
    .nav-links-secondary { overflow-x: auto; white-space: nowrap; padding: 0.8rem 1rem; margin: 0; justify-content: flex-start !important; gap: 1rem; }
    .logo { font-size: 1.2rem; }

    /* 2. Textos adaptables */
    .hero-content h1 { font-size: 2.2rem; }
    .hero-content p { font-size: 1rem; }

    /* 3. Filtros Estilo Shein / Amazon (Pills) */
    .haute-couture-filters { padding: 0.5rem 1rem; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .category-tabs { flex-wrap: nowrap; gap: 0.5rem; padding-bottom: 0.5rem; }
    .category-tabs label { 
        padding: 0.5rem 1rem; 
        background: var(--bg-surface); 
        border: 1px solid var(--border); 
        border-radius: 20px; 
        font-size: 0.75rem; 
        white-space: nowrap;
    }
    .category-tabs label:has(input:checked) {
        background: var(--text-primary);
        color: var(--bg-main);
        border: 1px solid var(--text-primary);
    }
    .sort-dropdown { display: none; /* Ocultar dropdown en celular para priorizar píldoras */ }

    /* 4. Catalogo (Grilla de 2 columnas apretadas para moviles) */
    .products-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 0.5rem !important; }
    .product-card { padding: 0.6rem; border-radius: 6px; }
    .product-image img { height: 130px; object-fit: contain !important; }
    .product-title { font-size: 0.7rem; min-height: 2.2rem !important; margin: 0.3rem 0; }
    .btn-add span { display: none; }
    .btn-add { padding: 0.6rem; justify-content: center; border-radius: 4px; }

    /* 5. Carrusel Adaptivo */
    .track-wrapper .track { gap: 0.8rem; padding: 0.5rem; }
    .track-wrapper div[style*="240px"] { min-width: 140px !important; max-width: 140px !important; }
    .track-wrapper img { height: 130px !important; object-fit: contain !important; }
    
    /* 6. Estructuras */
    .grid-layout, .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

    /* ========================================================
       🚨 NATIVE APP-LIKE EXPERIENCES (MOBILE ONLY) 🚨
       ======================================================== */
       
    /* 7. Bottom Navigation Bar */
    body { padding-bottom: 70px; } /* Espacio para que el contenido no se oculte debajo del nav */
    
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 65px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-top: 1px solid var(--border-light);
        z-index: 9999;
        justify-content: space-around;
        align-items: center;
        box-shadow: 0 -4px 15px rgba(0,0,0,0.05);
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    .mobile-bottom-nav .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: var(--text-muted);
        font-size: 0.65rem;
        gap: 4px;
        flex: 1;
        transition: color 0.2s ease;
    }
    
    .mobile-bottom-nav .nav-item i {
        width: 22px;
        height: 22px;
        stroke-width: 1.5px;
    }
    
    .mobile-bottom-nav .nav-item.active {
        color: #1B365D;
        font-weight: 600;
    }
    
    .mobile-bottom-nav .nav-item.active i {
        stroke-width: 2.5px;
    }

    .mobile-bottom-nav .action-center {
        transform: translateY(-15px);
    }
    
    .mobile-bottom-nav .bot-icon-wrapper {
        background: linear-gradient(135deg, #1B365D, #000000);
        width: 50px;
        height: 50px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        box-shadow: 0 8px 20px rgba(27, 54, 93, 0.4);
        border: 3px solid #fff;
        margin-bottom: 2px;
        transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    
    .mobile-bottom-nav .action-center:active .bot-icon-wrapper {
        transform: scale(0.9);
    }

    /* Ocultar botones flotantes regulares en móvil ya que usamos el bottom nav */
    .chatbot-btn { display: none !important; }
    .ai-chat-btn { display: none !important; }
    
    /* 8. Full-screen Modales (100vh nativo) */
    #productDetailModal {
        height: 100vh !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        border-radius: 0 !important;
        transform: translateY(100vh);
        top: 0;
        max-width: 100vw !important;
        margin: 0 !important;
        z-index: 10000 !important;
    }

    .ai-chat-modal {
        z-index: 10000 !important; /* Cubre sobre el bottom nav */
        bottom: 0 !important;
    }

    .toast-container {
        bottom: 85px !important; /* Salta por encima del bottom nav */
        z-index: 10000 !important;
    }

    #productDetailModalOverlay {
        padding: 0 !important;
        align-items: flex-end !important;
    }
    
    .cart-sidebar {
        width: 100vw !important;
        border-radius: 0 !important;
    }
    
    .cart-drawer {
        z-index: 10001 !important;
    }
    .cart-overlay {
        z-index: 10000 !important;
    }
    
    .btn-close {
        top: 1rem !important;
        right: 1rem !important;
        background: #f1f5f9 !important;
        width: 44px !important;
        height: 44px !important;
        box-shadow: none !important;
    }
    
    /* 9. Scrolling Horizontal Trust Bar */
    .trust-bar { padding: 1rem 0 !important; }
    .trust-bar-container { 
        flex-wrap: nowrap !important; 
        overflow-x: auto; 
        -webkit-overflow-scrolling: touch; 
        justify-content: flex-start !important; 
        padding: 0 1rem; 
        gap: 1rem !important; 
    }
    .trust-bar-container > div {
        flex: 0 0 85% !important;
        min-width: unset !important;
        justify-content: flex-start !important;
        background: var(--bg-main);
        padding: 0.8rem;
        border-radius: 8px;
        border: 1px solid var(--border-light);
    }
    .trust-bar-container::-webkit-scrollbar { display: none; }
    
    /* 10. Refinamiento Product Card (Micro-interacciones) */
    .product-image { padding: 1rem; }
    .product-info { position: relative; z-index: 1; padding: 0.5rem; text-align: left; }
    .product-card { position: relative; display: flex; flex-direction: column; overflow: hidden; }
}
