/* public/css/style.css */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #D81B60;
    /* Fucsia Fuerte (Antes Accent) */
    --primary-dark: #C2185B;
    /* Un poco más oscuro */
    --accent-color: #D81B60;
    /* Mismo color para compatibilidad */
    --text-color: #111111;
    --text-light: #757575;
    --bg-color: #FFFFFF;
    --bg-gray: #F5F5F5;
    --border-color: #E5E5E5;
    --font-family: 'Inter', sans-serif;

    /* Animation Defaults */
    --anim-duration: 0.3s;
    --anim-ease: ease;
    --anim-transform-scale: 1.02;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    padding-top: 80px;
    overflow-x: hidden;
    /* Prevent horizontal scroll from negative margins */
}

/* Global Animations Enforcer */
body.animations-enabled .btn,
body.animations-enabled a,
body.animations-enabled input,
body.animations-enabled select,
body.animations-enabled textarea,
body.animations-enabled .card,
body.animations-enabled .product-card,
body.animations-enabled .modal-content,
body.animations-enabled .icon-btn,
body.animations-enabled .social-icon-btn {
    transition: all var(--anim-duration) var(--anim-ease) !important;
}

/* Specific Hover Scale Effects for "Modern/Playful" feel */
body.animations-enabled .btn:hover,
body.animations-enabled .product-card:hover,
body.animations-enabled .social-icon-btn:hover {
    transform: scale(var(--anim-transform-scale));
}

.main-content {
    min-height: 80vh;
}

@media (max-width: 768px) {
    .main-content {
        min-height: calc(100vh - 60px);
        /* Adjust for mobile header */
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

/* Header & Nav */
header {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    /* Fixed to overlay/stick */
    width: 100%;
    top: 0;
    left: 0;
    /* Asegurar que empiece desde el borde izquierdo */
    z-index: 1000;
    transition: all 0.3s ease;
}

header.transparent-dark {
    background: transparent;
    border-bottom: none;
    box-shadow: none;
}

header.transparent-dark .logo,
header.transparent-dark .nav-links a,
header.transparent-dark .icon-btn,
header.transparent-dark .mobile-brand-name {
    color: white !important;
    /* Teksto blanco en fondo oscuro/imagen */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

header.scrolled {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    /* Izquierda, Centro (auto), Derecha */
    align-items: center;
    padding: 0 40px;
    height: 80px;
    /* Un poco más alto para elegancia */
    max-width: 1920px;
    margin: 0 auto;
}

.logo {
    order: 1;
    justify-self: start;
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 24px;
    text-decoration: none;
    color: var(--text-color);
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

/* Logo Toggling (Defaults for Light Mode) */
.logo-light {
    display: none;
}

/* Hide white logo normally */
.logo-dark {
    display: block;
}

/* Show dark logo normally */

header.transparent-dark .logo-light {
    display: block;
}

header.transparent-dark .logo-dark {
    display: none;
}

header.transparent-dark .logo-fallback circle {
    fill: white;
}

header.transparent-dark .logo-fallback text {
    fill: var(--primary-color);
}


/* Dark Mode Header Overrides */
body.dark-mode header {
    background: #000000;
    border-bottom: 1px solid #333;
}

/* Allow transparency if at top */
body.dark-mode header.transparent-dark {
    background: transparent;
    border-bottom: none;
}

body.dark-mode header.scrolled {
    background: #000000;
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
}

/* In Dark Mode, always use White Logo (unless specific override?) */
body.dark-mode .logo-light {
    display: block !important;
}

body.dark-mode .logo-dark {
    display: none !important;
}

/* In Dark Mode, nav links are white */
body.dark-mode .nav-links a {
    color: #ffffff;
}

body.dark-mode .nav-links a:hover {
    color: var(--primary-color);
}

body.dark-mode .icon-btn {
    color: #ffffff;
}

body.dark-mode .logo {
    color: #ffffff;
}

/* Dark Mode Product Cards & Details */
body.dark-mode .product-card {
    background: #121212;
    border-color: #333;
}

body.dark-mode .product-card .product-info h3,
body.dark-mode .product-detail-title {
    color: #ffffff;
}

body.dark-mode .product-card .product-info p,
body.dark-mode .price-ref,
body.dark-mode .product-detail-category,
body.dark-mode .product-detail-ref,
body.dark-mode .qty-stock,
body.dark-mode .product-description {
    color: #e0e0e0 !important;
    /* Make gray text light gray/white */
}

body.dark-mode .product-card .price-ves,
body.dark-mode .product-detail-price,
body.dark-mode .qty-val {
    color: #ffffff;
}

body.dark-mode .product-image {
    background-color: #222;
}

/* Dark Mode Buttons */
body.dark-mode .btn-primary,
body.dark-mode .btn-add-cart {
    background-color: var(--primary-text-adaptive, #333) !important;
    /* Match footer background */
    color: #000000 !important;
    /* Contrasting text */
    border: none;
}

body.dark-mode .btn-primary:hover,
body.dark-mode .btn-add-cart:hover {
    filter: brightness(1.2);
}

body.dark-mode .btn-share {
    background-color: #333;
    color: #fff;
    border: 1px solid #555;
}

body.dark-mode .size-option-btn {
    background: #222;
    border-color: #444;
    color: #fff;
}

body.dark-mode .size-option-btn.selected {
    background: #fff;
    color: #000;
    border-color: #fff;
}

body.dark-mode .qty-btn {
    background: #222;
    border-color: #444;
    color: #fff;
}

/* Product Detail Styles (New) */
.product-detail-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-color);
}

.product-detail-category {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--text-light);
}

.product-detail-price {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 0;
    color: var(--text-color);
}

.product-detail-ref {
    font-size: 16px;
    color: var(--text-light);
    margin-top: 5px;
}

.btn-add-cart {
    width: 100%;
    padding: 18px;
    border-radius: 30px;
    margin-top: 20px;
}

.btn-add-cart.disabled {
    background-color: #999 !important;
    cursor: not-allowed;
}

.btn-share {
    width: 100%;
    padding: 15px;
    border-radius: 30px;
    margin-top: 10px;
    background: #eee;
    color: #333;
    border: none;
}

.size-option-btn {
    border: 1px solid #ddd;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 20px;
    background: white;
    transition: all 0.2s;
}

.size-option-btn:hover {
    border-color: #000;
}

.size-option-btn.selected {
    border: 2px solid black;
    background: #f5f5f5;
    font-weight: 600;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 15px;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-val {
    font-size: 18px;
    font-weight: 600;
    width: 30px;
    text-align: center;
    color: var(--text-color);
}

.qty-stock {
    font-size: 12px;
    color: #666;
}

.product-description {
    margin-top: 40px;
    line-height: 1.8;
    color: var(--text-color);
}

/* Ensure headings are reachable if adaptive var fails, force light if needed */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3 {
    color: var(--primary-text-adaptive, #fff) !important;
}

.nav-links {
    order: 2;
    justify-self: center;
    display: flex;
    gap: 24px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 16px;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--text-light);
}

.nav-icons {
    order: 3;
    justify-self: end;
    display: flex;
    gap: 20px;
}

.icon-btn {
    position: relative;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 20px;
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--accent-color);
    color: white;
    font-size: 10px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.mobile-menu-btn,
.close-menu-btn {
    display: none;
}

/* Hero Carousel */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color), color-mix(in srgb, var(--primary-color), black 40%));
    margin-top: -80px;
    /* Pull up behind fixed header */
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    /* Parallax Effect */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

/* Dynamic Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: white;
    padding: 0 20px;
}

.hero h1 {
    font-size: 56px;
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 20px;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    /* Color is set dynamically via JS/Inline style */
    color: inherit;
    transition: color 0.3s;
}

.hero p {
    font-size: 24px;
    margin-bottom: 40px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Controles del Carrusel */
.hero-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.hero-dot.active {
    background: white;
    transform: scale(1.2);
}

.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.2);
    color: white;
    border: none;
    padding: 20px;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s;
}

.hero-nav:hover {
    background: rgba(0, 0, 0, 0.5);
}

.hero-prev {
    left: 0;
}

.hero-next {
    right: 0;
}

.btn {
    display: inline-block;
    background-color: var(--text-color);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.btn:hover {
    background-color: var(--text-light);
}

.btn-primary {
    background-color: var(--primary-color, #F8BBD0);
    /* Match primary color */
    color: #ffffff;
    /* Use calculated contrast text */
    border: 1px solid transparent;
}

.btn-primary:hover {
    background-color: var(--primary-dark, #F48FB1);
    color: #ffffff;
}

.btn-accent {
    background-color: var(--accent-color);
    color: var(--text-on-accent, #ffffff);
}

.btn-accent:hover {
    filter: brightness(90%);
}

section h2 {
    color: var(--text-color);
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 40px;
    max-width: 1440px;
    margin: 0 auto;
}

/* Product Carousel Styles */
.product-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 5px;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    /* IE */
    scrollbar-width: none;
    /* Firefox */
}

.product-carousel::-webkit-scrollbar {
    display: none;
}

.product-carousel .product-card {
    scroll-snap-align: start;
    flex-shrink: 0;
    /* Force card width for carousel consistency */
    flex-basis: 250px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 1px solid #ddd;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.carousel-btn:hover {
    background: var(--primary-color, #F8BBD0);
    /* Primary color light */
    color: var(--text-on-primary, white);
    border-color: var(--primary-color, #F8BBD0);
}

.carousel-btn.prev {
    left: -20px;
}

.carousel-btn.next {
    right: -20px;
}

@media (max-width: 768px) {

    /* Previously hid buttons, now we allow them or override later */
    /* Kept only carousel adjustments */
    .product-carousel {
        padding-left: 0;
        padding-right: 0;
        margin-left: 0;
        margin-right: 0;
    }
}


/* Product Card Improvements */
.product-card {
    position: relative;
    /* Constrain absolute overlays */
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.product-image {
    background-color: var(--bg-gray);
    width: 100%;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    /* Remove margin, using padding in info */
    overflow: hidden;
}

/* Product Detail Zoom */
.img-zoom-container {
    overflow: hidden;
    cursor: zoom-in;
    border-radius: 8px;
    width: 100%;
    aspect-ratio: 1/1;
    /* Forzar encuadre cuadrado armónico para zapatos */
    position: relative;
    background-color: var(--bg-gray, #f9f9f9);
    /* Fondo gris uniforme */
    display: flex;
    justify-content: center;
    align-items: center;
}

.img-zoom-target {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Encajar dentro sin estirar ni cortar */
    transition: transform 0.1s ease-out;
    display: block;
    will-change: transform;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 15px;
}

.product-info h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-color);
    line-height: 1.3;
}

.product-info p {
    color: var(--text-light);
    font-size: 13px;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

h1,
h2,
h3 {
    color: var(--primary-text-adaptive, #333);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-price {
    font-weight: 600;
    margin-top: 5px;
    display: flex;
    flex-direction: column;
}

.price-ves {
    color: var(--text-color);
    font-size: 1.15em;
    font-weight: 800;
}

.price-ref {
    color: #888;
    font-size: 0.85em;
    font-weight: 400;
}

/* Sold Out Overlay */
.sold-out-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.sold-out-badge {
    background: #FF3B30;
    /* iOS Red */
    color: white;
    padding: 8px 16px;
    font-weight: 700;
    font-size: 14px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(255, 59, 48, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Product Detail */
.category-header {
    color: var(--text-color) !important;
    margin-bottom: 30px;
    font-size: 42px;
    text-align: center;
}

.product-detail-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.product-gallery img {
    width: 100%;
    background-color: var(--bg-gray);
}

.product-options {
    padding-top: 20px;
}

.option-group {
    margin-bottom: 24px;
}

.option-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
}

.size-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.size-btn {
    border: 1px solid var(--border-color);
    padding: 12px;
    text-align: center;
    cursor: pointer;
    border-radius: 4px;
}

.size-btn.selected {
    border-color: var(--text-color);
    background-color: var(--text-color);
    color: white;
}

.size-btn:hover:not(.selected) {
    border-color: var(--text-color);
}

/* Cart & Sidebar */
.cart-sidebar {
    position: fixed;
    right: 0;
    top: 0;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    padding: 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.cart-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    display: none;
}

.overlay.show {
    display: block;
}

/* Auth */
body.admin-login-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding-top: 0;
    /* Reset top padding from main body style */
}

.login-container,
.admin-login {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    /* Center with flexbox, redundant top margin removed */
    padding: 40px;
    border: 1px solid var(--border-color);
    text-align: center;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

/* Global Form Styles */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--font-family);
    font-size: 16px;
    transition: border-color 0.3s;
    background: #fff;
    color: var(--text-color);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--text-color);
}

/* Footer */
.site-footer {
    background-color: var(--sidebar-bg, #333);
    color: var(--sidebar-text, #fff);
    padding: 60px 0;
    margin-top: auto;
}

/* Dark Mode Footer Override: Match background to adaptive primary text color */
body.dark-mode .site-footer {
    background-color: var(--primary-text-adaptive, #333);
    color: #000000;
    /* Force dark text on potentially light adaptive background */
}

body.dark-mode .footer-section h3,
body.dark-mode .footer-section h4,
body.dark-mode .footer-bottom,
body.dark-mode .footer-section ul li a {
    color: #000000 !important;
    border-bottom-color: #000000;
    /* For headers with border */
}

body.dark-mode .footer-section ul li a:hover {
    color: #333 !important;
    text-decoration: underline;
}

body.dark-mode .footer-bottom a {
    color: #000000;
}

.footer-content {
    /* "margenes deben ser de 20%" -> content occupies the middle 60% */
    width: 60%;
    margin: 0 auto;
    display: grid;
    /* 3 columnas iguales */
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    text-align: center;
    /* Contenido centrado */
}

/* Responsive adjustment: 
   On small screens, 50% width is too narrow. 
   We should probably relax this on mobile, but strictly follow instruction for desktop. */
@media (max-width: 1024px) {
    .footer-content {
        width: 80%;
    }
}

@media (max-width: 768px) {
    .footer-content {
        width: 90%;
        grid-template-columns: 1fr;
        /* Stack on mobile */
    }
}

.footer-section.links-section {
    text-align: center;
    /* Override previous right align */
}

.footer-section {
    color: var(--sidebar-text, #fff);
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center flex children */
}

.footer-section h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--sidebar-text, #fff);
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--sidebar-text, #fff);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
    display: inline-block;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 16px;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icons a {
    color: white;
    font-size: 28px;
    transition: transform 0.3s, color 0.3s;
    background: rgba(255, 255, 255, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
}

.social-icons a:hover {
    color: var(--primary-color);
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

h1,
h2,
h3 {
    color: var(--sidebar-bg, #2c3e50);
    /* Match text to footer theme */
    margin-bottom: 20px;
}

.footer-bottom {
    border-top: 1px solid var(--sidebar-divider, #444);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9em;
    color: var(--sidebar-text, #fff);
}

.footer-bottom a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .navbar {
        position: relative;
        /* Context for absolute centering */
        display: grid;
        height: 60px;
        padding: 0 15px;
        /* Estructura rígida:
           - 40px para el botón de menú
           - 1fr (espacio flexible) para el logo centrado
           - auto para el área de iconos (antes 40px)
        */
        grid-template-columns: 40px 1fr auto;
        grid-template-areas: "menu logo cart";
        gap: 0;
        align-items: center;
        justify-content: space-between;
    }

    /* Mobile Glassmorphism Header - REVERTED */

    /* Reset total de posicionamiento para la versión móvil */
    .mobile-menu-btn {
        display: flex;
        grid-area: menu;
        justify-self: start;
        align-items: center;
        width: 40px;
        height: 40px;
        margin: 0;
        padding: 0;
        border: none;
        background: transparent;
        order: unset;
        /* Ignorar orden desktop */
    }

    .logo {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: auto;
        max-width: calc(100% - 120px);
        /* Reserve space for menu (40) + icons (~80) */
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
        z-index: 10;
        /* Ensure on top */
    }

    .logo span {
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
    }

    .logo svg {
        width: 28px;
        height: 28px;
        margin-right: 8px;
        flex-shrink: 0;
    }

    .nav-icons {
        grid-area: cart;
        justify-self: end;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        width: auto;
        /* Allow width to expand */
        order: unset;
        /* Ignorar orden desktop */
        padding: 0;
        margin: 0;
        gap: 8px;
        /* Reduced space between icons */
    }

    /* Ajuste específico para el botón del carrito dentro de nav-icons */
    .nav-icons .icon-btn {
        padding: 0;
        width: 35px;
        /* Match logo height */
        height: 35px;
        font-size: 18px;
        /* Slightly smaller icon */
    }

    /* .mobile-menu-btn duplicate removed */

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.85);
        /* Fondo oscuro transparente */
        backdrop-filter: blur(15px);
        /* Difuminado fuerte sobre el fondo */
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 1100;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
        padding: 20px;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links a {
        font-size: 24px;
        margin-bottom: 20px;
        color: white;
        /* Texto blanco para contraste */
        text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    }

    .close-menu-btn {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
        background: none;
        border: none;
        font-size: 30px;
        cursor: pointer;
        color: white;
        /* X blanca para contraste en fondo oscuro */
    }

    /* Hero Responsive */
    .hero {
        height: 100vh;
        /* Fallback */
        height: 100dvh;
        /* Mobile viewport fix */
    }

    .hero-slide {
        background-attachment: fixed;
        /* Re-enable parallax on mobile as requested */
    }

    .hero h1 {
        font-size: 32px;
        line-height: 1.2;
    }

    .hero p {
        font-size: 16px;
        padding: 0 10px;
    }

    /* Cart Sidebar Mobile */
    .cart-sidebar {
        width: 100%;
    }

    /* Product Grid Mobile */
    .product-grid {
        padding: 20px;
        /* Reducir padding lateral */
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        /* Tarjetas más flexibles */
        justify-content: center;
        /* Centrar la grilla si sobran espacios */
    }

    .product-card {
        max-width: 350px;
        /* Evitar que se estiren demasiado en 1 sola columna */
        margin: 0 auto;
        /* Centrar la tarjeta en su celda */
        width: 100%;
    }

    /* Product Detail Mobile */
    .product-detail-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 20px;
        text-align: center;
    }

    .product-gallery,
    .product-options {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    /* Centrar selectores en mobile */
    .quantity-selector {
        justify-content: center;
    }

    .product-options .size-grid {
        justify-content: center;
    }
}

/* Shop Page Layout */
.shop-container {
    display: block;
    max-width: 100%;
    /* Full width */
    margin: 0 auto;
    padding: 40px;
}

.shop-sidebar {
    width: 250px;
    flex-shrink: 0;
    display: block;
}

.sidebar-title {
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

.sidebar-list {
    list-style: none;
}

.sidebar-item {
    margin-bottom: 10px;
}

.sidebar-link {
    text-decoration: none;
    color: #111;
    font-weight: 500;
    transition: color 0.3s;
    display: block;
    padding: 5px 0;
}

.sidebar-link.active {
    font-weight: bold;
    color: var(--accent-color);
}

.sidebar-link.view-all {
    color: var(--text-light);
}

.shop-main {
    flex-grow: 1;
    min-width: 0;
}

.category-header {
    margin-bottom: 20px;
    font-weight: 600;
    text-transform: capitalize;
    font-size: 2.5em;
    font-size: 2.5em;
    color: var(--sidebar-bg, #2c3e50);
    text-align: center;
}

.shop-section {
    margin-bottom: 40px;
    position: relative;
}

.subcategory-title {
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.3em;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.carousel-wrapper {
    position: relative;
}

/* Product Card Improvements */
.product-card .product-price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.price-ves {
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
}

.price-ref {
    font-size: 0.85em;
    color: #888;
}

.no-products {
    text-align: center;
    color: var(--text-light);
    margin-top: 40px;
}

/* Mobile Responsive Shop */
@media (max-width: 768px) {
    .shop-container {
        display: flex;
        /* Key fix: was block globally */
        flex-direction: column;
        padding: 0 30px 80px 30px;
        /* added bottom padding to match top spacing */
        /* Sidebar hidden, margins added */
        gap: 0;
    }

    .shop-sidebar {
        display: none;
    }

    .category-header {
        font-size: 2em;
        margin: 20px 0;
    }

    .shop-main {
        width: 100%;
        overflow-x: hidden;
        flex-grow: 0;
        /* Key fix: Allow parent to center this block */
    }

    .shop-section {
        padding: 0;
        /* Full width carousels */
        margin-bottom: 30px;
    }

    .subcategory-title {
        margin-left: 20px;
        /* Indent titles slightly */
        margin-right: 20px;
    }

    /* Fix Carousel Arrows on Mobile */
    .carousel-btn {
        display: flex;
        width: 35px;
        height: 35px;
        font-size: 14px;
        z-index: 20;
        /* Ensure on top */
    }

    .carousel-btn.prev {
        left: 5px;
        background: rgba(255, 255, 255, 0.9);
    }

    .carousel-btn.next {
        right: 5px;
        background: rgba(255, 255, 255, 0.9);
    }

    .product-carousel {
        padding-left: 0;
        padding-right: 0;
        margin-left: 0;
        margin-right: 0;
    }

    /* Vertical Centering */
    .shop-container {
        justify-content: center;
        min-height: 100%;
        /* Ensure it allows centering if content is small */
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    /* Shadow removed */
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
    fill: white;
}

/* Mobile Logo Logic */
.mobile-brand-name {
    display: none;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color);
}

/* =========================================
       Dynamic Logo Logic (Scroll & Responsive)
       ========================================= */

/* Base Styles for Logos */
.logo-dark,
.logo-light,
.logo-fallback {
    height: auto;
    width: auto;
    max-width: 100%;
    margin-right: 10px;
    transition: opacity 0.3s ease;
}

/* Desktop Size */
.logo-dark,
.logo-light {
    max-height: 50px;
}

/* Default State (Scrolled / White Background) */
/* Show Dark Logo, Hide Light Logo */
.logo-dark {
    display: block;
}

.logo-light {
    display: none;
}

.logo-fallback {
    display: flex;
    color: var(--text-color);
}

/* Transparent Header State (Top of Page / Dark Background) */
header.transparent-dark .logo-dark {
    display: none;
}

header.transparent-dark .logo-light {
    display: block;
}

/* Fallback SVG handling on transparent */
header.transparent-dark .logo-fallback circle {
    fill: white !important;
}

header.transparent-dark .logo-fallback text {
    fill: var(--primary-color) !important;
}

header.transparent-dark .logo-fallback span {
    color: white;
}

/* Mobile Responsive Rules */
@media (max-width: 768px) {

    /* Smaller Size for Mobile */
    .logo-dark,
    .logo-light {
        max-height: 35px !important;
    }

    /* Prevent Horizontal Overflow */
    .navbar {
        padding: 0 15px;
        /* Balanced padding */
        overflow-x: hidden;
    }

    /* Ensure logos don't cause overflow */
    .logo {
        flex: 1;
        display: flex;
        justify-content: center;
        overflow: hidden;
        white-space: nowrap;
    }
}

/* Sticky Footer Layout Fix */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

div[ui-view] {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Ensure Shop Container grows to push footer */
.shop-container {
    flex: 1;
    width: 100%;
}

/* =========================================
   Global Animations System
   ========================================= */

/* Default Variables (Normal Intensity) */
:root {
    --anim-duration: 0.8s;
    --anim-delay-base: 0.1s;
}

/* Intensity Modifiers */
body.anim-intensity-reduced {
    --anim-duration: 1.2s;
}

body.anim-intensity-dynamic {
    --anim-duration: 0.5s;
}

/* Base Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
    }
}

/* Utility to hide elements on mobile */
@media (max-width: 768px) {
    .hidden-mobile {
        display: none !important;
    }
}

/* Ensure PWA Prompt is hidden if user requested removal of fixed banner */
.pwa-prompt {
    display: none !important;
}


body.animations-enabled .hero-content h1 {
    opacity: 0;
    /* Init hidden */
    animation: fadeInUp var(--anim-duration) ease-out forwards;
}

body.animations-enabled .hero-content p {
    opacity: 0;
    animation: fadeInUp var(--anim-duration) ease-out forwards;
    animation-delay: 0.2s;
}

body.animations-enabled .hero-content .btn {
    opacity: 0;
    animation: fadeInUp var(--anim-duration) ease-out forwards;
    animation-delay: 0.4s;
}

body.animations-enabled .product-card {
    opacity: 0;
    animation: fadeInUp var(--anim-duration) ease-out forwards;
}

/* Stagger loop for product cards would receive delay via JS or nth-child CSS if simple */
body.animations-enabled .product-card:nth-child(1) {
    animation-delay: 0.1s;
}

body.animations-enabled .product-card:nth-child(2) {
    animation-delay: 0.2s;
}

body.animations-enabled .product-card:nth-child(3) {
    animation-delay: 0.3s;
}

body.animations-enabled .product-card:nth-child(4) {
    animation-delay: 0.4s;
}

body.animations-enabled .product-card:nth-child(5) {
    animation-delay: 0.5s;
}

/* Style Modifiers */

/* Playful Style - Use Bounce/Zoom instead of Fade */
body.animations-enabled.anim-style-playful .hero-content h1,
body.animations-enabled.anim-style-playful .product-card {
    animation-name: bounceIn;
}

/* Minimal Style - Only Fade, no movement */
body.animations-enabled.anim-style-minimal .hero-content h1,
body.animations-enabled.anim-style-minimal .product-card {
    animation-name: fadeOnly;
    transform: none !important;
}

@keyframes fadeOnly {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Hover Effects */
body.animations-enabled .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

body.animations-enabled .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Sidebar Checkout Wizard Styles */
.cart-sidebar {
    width: 450px;
    /* Slightly wider for better form fit */
    max-width: 100%;
    border-left: 1px solid var(--border-color);
    background: white;
}

.cart-sidebar .cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 15px;
}

.cart-sidebar .cart-header h2 {
    color: var(--primary-color);
    /* Reference Pink */
    font-size: 1.5em;
    font-weight: 800;
    margin: 0;
}

.cart-sidebar .cart-header .icon-btn {
    color: #333;
    font-size: 1.2em;
}

.step-indicators {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.step-item {
    font-size: 0.9em;
    color: #aaa;
    font-weight: 500;
    position: relative;
    cursor: default;
}

.step-item.active {
    color: var(--primary-color);
    font-weight: 700;
}

.step-item.active::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
}

/* Global Scrollbar Hide for Cart Sidebar Children */
.cart-sidebar * {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.cart-sidebar *::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.checkout-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 0 5px;
    height: 100%;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
}

.cart-sidebar .form-control {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px;
    font-size: 0.95em;
    transition: all 0.3s;
}

.cart-sidebar .form-control:focus {
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.cart-sidebar h3 {
    color: var(--primary-color);
    /* Reference Pink for Headers */
    font-size: 1.4em;
    margin-bottom: 20px;
    font-weight: 600;
}

.cart-sidebar .btn {
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cart-sidebar .btn-secondary {
    background: #f0f0f0;
    color: #555;
    border-radius: 12px;
}

.cart-sidebar .btn-secondary:hover {
    background: #e0e0e0;
}

/* Cart Item Reference Style */
.cart-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f9f9f9;
    position: relative;
}

.cart-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    background-color: #fce4ec;
}

.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cart-item h4 {
    font-size: 0.95em;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
    padding-right: 20px;
}

.cart-item-variant {
    font-size: 0.8em;
    color: #888;
    margin-bottom: 4px;
}

.cart-item-price {
    font-size: 1em;
    font-weight: 800;
    color: var(--primary-color);
}

.cart-item-ref {
    font-size: 0.75em;
    color: #999;
}

.cart-item-remove {
    position: absolute;
    top: 0;
    right: 0;
    color: #bbb;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
    padding: 5px;
}

.cart-item-remove:hover {
    color: var(--primary-dark);
}

/* Footer Reference Style */
.cart-footer {
    border-top: 1px solid #f0f0f0;
    padding-top: 20px;
    margin-top: auto;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
}

.cart-total-label {
    font-size: 1.1em;
    font-weight: 800;
    color: #333;
}

.cart-total-value {
    font-size: 1.4em;
    font-weight: 800;
    color: var(--primary-color);
    text-align: right;
    line-height: 1;
}

.cart-total-ref {
    font-size: 0.8em;
    color: #999;
    text-align: right;
    margin-top: 5px;
}

.btn-checkout {
    background-color: var(--primary-color);
    color: var(--text-on-primary, #fff);
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1em;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-checkout:hover {
    background-color: var(--primary-dark);
}

/* Scrollbar within sidebar */
.checkout-form::-webkit-scrollbar {
    width: 6px;
}

.checkout-form::-webkit-scrollbar-thumb {
    background: #e0e0e0;
    border-radius: 3px;
}

.checkout-form::-webkit-scrollbar-track {
    background: transparent;
}

/* Global Checkout Wizard Syles (Promoted from Mobile) */
/* Global Checkout Wizard Syles (Promoted from Mobile) */
/* Global Checkout Wizard Syles (Promoted from Mobile) */
.checkout-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 80px);
    /* Exact viewport height minus header */
    min-height: auto;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-bottom: 0;
    /* No extra padding needed if buttons are inside flex */
    overflow: hidden;
    /* Prevent outer scroll */
}

.wizard-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Center content vertically */
    padding: 20px 0 80px 0;
    /* Add bottom padding to account for fixed buttons if needed, or adjust */
    overflow-y: auto;
    /* Scroll ONLY the step content if absolutely necessary */
    width: 100%;
}

.responsive-map-container {
    width: 100%;
    flex: 1;
    /* Take available space */
    min-height: 200px;
    /* Minimum usable height */
    max-height: 50vh;
    /* Don't grow too large */
    background: #eee;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #ddd;
    margin-bottom: 15px;
    position: relative;
}

.responsive-map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.step-actions {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    /* More padding on desktop */
    background: white;
    border-top: 1px solid #f0f0f0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

/* Specific overrides for desktop width constraint on buttons */
@media (min-width: 769px) {
    .step-actions {
        left: 50%;
        transform: translateX(-50%);
        max-width: 800px;
        /* Match container width */
        width: 100%;
        border-radius: 12px 12px 0 0;
        /* Nice touch */
        bottom: 0;
        position: fixed;
    }
}

@media (max-width: 480px) {
    .cart-sidebar {
        width: 100%;
        height: 100dvh;
        /* Use dynamic viewport height for mobile */
        display: flex;
        flex-direction: column;
    }

    .checkout-form {
        flex: 1;
        display: flex;
        flex-direction: column;
        padding-bottom: 20px;
        /* Safe area */
    }

    /* .wizard-step style removed as it's now global, but we can override if needed */


    .wizard-content-centered {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        /* Vertical center */
        padding: 10px 20px;
    }

    /* Force map iframe to be responsive inside the square container */
    .delivery-card iframe {
        width: 100% !important;
        height: 100% !important;
        border-radius: 12px;
    }

    /* step-actions is now global */

    .social-icon-btn {
        width: 45px;
        height: 45px;
        border-radius: 50%;
        background: #f8f9fa;
        color: var(--text-color);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        transition: all 0.3s ease;
        text-decoration: none;
    }

    .social-icon-btn:hover {
        background: var(--accent-color);
        color: white;
        transform: translateY(-2px);
    }
}

/* Global Social Icons (Ensure they work on desktop too) */
.social-icon-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #f8f9fa;
    color: #333;
    /* Default text color */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
    text-decoration: none;
    margin: 0 5px;
    /* Add some spacing */
}

.social-icon-btn:hover {
    background: var(--primary-color);
    /* Use primary color on hover */
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.3);
    /* Soft shadow */
}

/* Order Success Screen Styles (Top Level) */
.success-icon-container {
    margin-bottom: 15px;
    /* Reduced margin */
}

.success-icon {
    font-size: 60px;
    color: var(--primary-color);
    /* Pink (Theme Color) */
    animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
    filter: drop-shadow(0 4px 6px rgba(233, 30, 99, 0.2));
}

@keyframes popIn {
    0% {
        transform: scale(0) rotate(-45deg);
        opacity: 0;
    }

    70% {
        transform: scale(1.2) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: scale(1) rotate(0deg);
    }
}

.order-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    width: auto;
    height: auto;
    margin: 10px auto;
}

.order-label {
    font-size: 0.7em;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #bbb;
    margin-bottom: 0;
    margin-top: 5px;
    font-weight: 600;
}

.order-number {
    font-size: 2.2em;
    font-weight: 800;
    color: #333;
    line-height: 1;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: -1px;
    margin-top: 0;
    margin-bottom: 5px;
}

/* Missing Button Classes */
.btn-block {
    display: block;
    width: 100%;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    transition: all 0.3s ease;
    font-weight: 700;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 5px 15px rgba(233, 30, 99, 0.2);

}

/* Footer Styles - Enforce White Text on Primary Background */

/* =========================================
   FOOTER STYLES (Cleaned & Responsive)
   ========================================= */
.site-footer {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
    padding: 60px 20px 30px;
    margin-top: auto;
    width: 100%;
    position: relative;
    z-index: 10;
}

/* Specific Footer Content Layout */
.footer-content {
    display: flex;
    flex-wrap: wrap;
    /* Allow wrap on mobile */
    justify-content: space-between;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: left;
    /* Default left for columns */
}

.footer-section {
    flex: 1;
    min-width: 220px;
    /* Slightly smaller to fit 3 cols easily */
}

/* Force 3 Columns on Desktop */
@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        text-align: left;
    }

    .footer-section {
        flex: 1;
    }
}

/* Stack on Mobile */
@media (max-width: 767px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .site-footer .social-icons {
        justify-content: center;
        /* Center icons on mobile */
    }
}

/* Text Colors & Typography */
.site-footer h3,
.site-footer h4,
.site-footer p,
.site-footer li,
.site-footer i,
.site-footer span {
    color: #ffffff !important;
}

.site-footer h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

.site-footer h4 {
    font-size: 1.1em;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

/* Links */
.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer ul li {
    margin-bottom: 12px;
}

.site-footer ul li a {
    color: rgba(255, 255, 255, 0.85) !important;
    text-decoration: none;
    font-size: 0.95em;
    transition: opacity 0.2s;
}

.site-footer ul li a:hover {
    color: #ffffff !important;
    text-decoration: underline;
    opacity: 1;
}

/* Social Icons Section */
.site-footer .social-icons {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.site-footer .social-icons a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 20px;
    color: white !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.site-footer .social-icons a:hover {
    background-color: #ffffff !important;
    transform: translateY(-3px);
}

.site-footer .social-icons a:hover i {
    color: var(--primary-color) !important;
}

/* Footer Bottom */
.footer-bottom {
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    width: 100%;
}

.footer-bottom p {
    font-size: 0.9em;
    opacity: 0.8;
    margin: 0;
    line-height: 1.6;
}

.footer-bottom a {
    color: white !important;
    font-weight: 700;
    text-decoration: none;
}

/* Cart Sidebar Dark Mode & Dynamic Colors */
.cart-sidebar {
    background: var(--card-bg);
    border-left: 1px solid var(--border-color);
}

.cart-sidebar .cart-header {
    border-bottom: 1px solid var(--border-color);
}

.cart-sidebar .cart-header h2 {
    color: var(--primary-color);
}

.cart-sidebar .cart-header .icon-btn {
    color: var(--text-color);
}

.cart-item {
    border-bottom: 1px solid var(--border-color);
}

.cart-item h4 {
    color: var(--text-color);
}

.cart-item-variant {
    color: var(--text-light);
}

.cart-item-price {
    color: var(--primary-color);
}

.cart-total-label {
    color: var(--text-color);
}

.cart-total-value {
    color: var(--primary-color);
}

.btn-checkout {
    background-color: var(--primary-color);
    color: white;
    /* Always white text for contrast on primary */
}

.btn-checkout:hover {
    filter: brightness(0.9);
}

/* Dark Mode Specific Overrides if variables aren't enough */
body.dark-mode .cart-sidebar {
    background: #121212 !important;
    border-left: 1px solid #333 !important;
}

body.dark-mode .cart-sidebar .form-control {
    background: #1e1e1e;
    border-color: #333;
    color: white;
}

body.dark-mode .cart-sidebar .btn-secondary {
    background: #333;
    color: #fff;
}

body.dark-mode .cart-sidebar .btn-secondary:hover {
    background: #444;
}

body.dark-mode .cart-item img {
    background-color: #333;
}

/* =========================================
   CHECKOUT & CART THEMING UI
   ========================================= */
.checkout-summary-card {
    text-align: center;
    padding: 20px;
    background: #fff0f6;
    /* Default Light Pink */
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.summary-label {
    color: #666;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.summary-amount {
    font-size: 2em;
    font-weight: 800;
    color: var(--primary-color);
    margin: 5px 0;
}

.summary-ref {
    color: #888;
    font-weight: 600;
}

.payment-info-box {
    background: #FFF3E0;
    padding: 15px;
    border-radius: 8px;
    font-size: 0.95em;
    color: #E65100;
    margin-bottom: 20px;
    white-space: pre-line;
    border-left: 4px solid #FF9800;
}

/* Dark Mode Overrides for Checkout */
body.dark-mode .checkout-summary-card {
    background: #1e1e1e;
    border-color: #333;
}

body.dark-mode .summary-label {
    color: #aaa;
}

body.dark-mode .summary-amount {
    color: var(--primary-color);
}

body.dark-mode .summary-ref {
    color: #888;
}

body.dark-mode .payment-info-box {
    background: rgba(255, 152, 0, 0.15);
    color: #ffb74d;
    /* Lighter Orange for dark mode */
    border-left-color: #ffb74d;
}

body.dark-mode .form-control {
    background: #1e1e1e;
    border-color: #444;
    color: white;
}

body.dark-mode .form-control:focus {
    border-color: var(--primary-color);
    background: #1e1e1e;
}

/* =========================================
   FOOTER FINAL CORRECTIONS
   ========================================= */

/* Center Logo Column */
.footer-section:first-child {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Ensure ALL text is White */
.site-footer h3,
.site-footer h4,
.site-footer p,
.site-footer span,
.site-footer li,
.site-footer a {
    color: #ffffff !important;
}

.site-footer ul li a:hover {
    color: #e0e0e0 !important;
}

.site-footer .footer-section h4 {
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 20px;
    margin-bottom: 20px;
}

/* Force White Text in Dark Mode for Footer - ULTRA SPECIFIC */
body.dark-mode .site-footer,
body.dark-mode .site-footer h1,
body.dark-mode .site-footer h2,
body.dark-mode .site-footer h3,
body.dark-mode .site-footer h4,
body.dark-mode .site-footer h5,
body.dark-mode .site-footer h6,
body.dark-mode .site-footer p,
body.dark-mode .site-footer span,
body.dark-mode .site-footer div,
body.dark-mode .site-footer li,
body.dark-mode .site-footer i {
    color: #ffffff !important;
}

/* Specifically target links in dark mode footer */
body.dark-mode .site-footer a,
body.dark-mode .site-footer ul li a,
body.dark-mode .site-footer .footer-content a,
body.dark-mode .site-footer a:link,
body.dark-mode .site-footer a:visited,
body.dark-mode .site-footer a:hover,
body.dark-mode .site-footer a:active {
    color: #ffffff !important;
    opacity: 0.9;
    text-decoration: none;
}

body.dark-mode .site-footer a:hover,
body.dark-mode .site-footer ul li a:hover {
    color: #ffffff !important;
    opacity: 1;
    text-decoration: underline;
}

/* Fix Borders in Footer for Dark Mode */
body.dark-mode .footer-bottom,
body.dark-mode .site-footer .footer-section h4 {
    border-color: rgba(255, 255, 255, 0.3) !important;
}

/* Ensure Social Icons Border is visible */
body.dark-mode .site-footer .social-icons a {
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
}

/* Fix Cart Cancel/Back Buttons in Dark Mode */
body.dark-mode .cart-sidebar .btn-secondary,
body.dark-mode .step-actions .btn-secondary {
    background-color: #333 !important;
    color: #ffffff !important;
    border: 1px solid #555 !important;
}

body.dark-mode .cart-sidebar .btn-secondary:hover,
body.dark-mode .step-actions .btn-secondary:hover {
    background-color: #444 !important;
    border-color: #666 !important;
}

/* Fix Step Actions (Wizard Bottom Buttons) Background in Dark Mode */
body.dark-mode .step-actions {
    background-color: #121212 !important;
    border-top: 1px solid #333 !important;
}

/* Fix Cart Footer (Initial Cart View) Background in Dark Mode */
body.dark-mode .cart-footer {
    background-color: #121212 !important;
    border-top: 1px solid #333 !important;
}

/* Fix Order Success Screen Text in Dark Mode */
body.dark-mode .order-badge .order-label,
body.dark-mode .order-badge .order-number,
body.dark-mode .success-icon-container .success-icon {
    color: #ffffff !important;
}

body.dark-mode .wizard-step h3,
body.dark-mode .wizard-step p.text-muted {
    color: #e0e0e0 !important;
}


/* PWA Prompt */
.pwa-prompt {
    position: fixed;
    bottom: -100px;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px;
    z-index: 2000;
    transition: bottom 0.3s ease-in-out;
    border-top: 3px solid var(--primary-color);
}

.pwa-prompt.show {
    bottom: 0;
}

.pwa-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.pwa-content p {
    margin: 0;
    font-weight: 500;
    flex: 1;
}

.pwa-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-close-prompt {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #666;
}

@media (max-width: 768px) {
    .pwa-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .pwa-actions {
        width: 100%;
        justify-content: center;
    }
}

/* Product Detail Carousel Styles */
.product-gallery {
    position: relative;
    width: 100%;
}

/* =========================================
   Global Loader Overlay
   ========================================= */

.global-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    visibility: visible;
    opacity: 1;
}

.global-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.global-loader .loader-logo-container {
    margin-bottom: 20px;
}

.global-loader .loader-logo-container img {
    max-height: 80px;
    width: auto;
    object-fit: contain;
    animation: pulseLogo 2s infinite ease-in-out;
}

.global-loader .loader-brand-text {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary-color, #333);
    margin-bottom: 20px;
    animation: pulseLogo 2s infinite ease-in-out;
}

.global-loader .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: var(--primary-color, #E91E63);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulseLogo {
    0% {
        transform: scale(1);
        opacity: 0.9;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 0.9;
    }
}

@media (max-width: 768px) {
    .global-loader .loader-logo-container img {
        max-height: 60px;
    }

    .global-loader .loader-brand-text {
        font-size: 20px;
    }

    .global-loader .spinner {
        width: 30px;
        height: 30px;
    }
}


.gallery-main {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
    background: #f9f9f9;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    color: #333;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.gallery-nav:hover {
    background: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.gallery-nav.prev {
    left: 10px;
}

.gallery-nav.next {
    right: 10px;
}

.video-container {
    width: 100%;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-gray, #f9f9f9);
    /* Gris congruente con galería */
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Ajusta sin recortar ni distorsionar ni forzar barras del HTML */
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 5px 0;
}

.thumb-item {
    width: 70px;
    height: 70px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

.thumb-item img,
.thumb-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-item.active {
    border-color: var(--primary-color, #D81B60);
    opacity: 0.8;
}

.video-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    background: rgba(0, 0, 0, 0.3);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}