*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
        
:root {
    --bg-primary: #fafaf8;
    --bg-secondary: #f0efeb;
    --bg-tertiary: #e8e6e1;
    --bg-card: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #5a5a58;
    --text-muted: #9a9a96;
    --accent: #3d5a80;
    --accent-light: rgba(61,90,128,0.08);
    --accent-hover: #2c4a6e;
    --sale: #b84233;
    --sale-light: rgba(184,66,51,0.08);
    --success: #4a7c59;
    --success-light: rgba(74,124,89,0.08);
    --border: #e2e0db;
    --border-light: #eeedea;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
    --shadow-xl: 0 25px 60px rgba(0,0,0,0.15);
    --overlay: rgba(250,250,248,0.92);
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

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

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    min-width: 320px;
}

html, body { max-width: 100%; overflow-x: hidden; }

/* Normalización del H1 para evitar avisos de la consola */
h1 {
    font-size: 2.5rem; /* O el tamaño que prefieras */
    margin: 1rem 0;
    line-height: 1.2;
    display: block;
}

/* FAQ */

.faq-item {
    margin-bottom: 25px; /* Espacio entre el final de una FAQ y el inicio de la siguiente */
    padding-bottom: 15px; 
    border-bottom: 1px solid #333; /* Opcional: una línea sutil de separación */
}

.faq-question {
    margin-bottom: 8px;
    /* color: #fbbf24;  Color Onix para destacar la pregunta */
    font-weight: 600;
}

.faq-answer {
     /* color: #ccc; */
    line-height: 1.6; /* Mejora la legibilidad del texto */
}

/* Eliminar la línea en la última FAQ */
.faq-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
}


/* ═══════════════ LANGUAGE SELECTOR ═══════════════ */
.lang-dropdown {
    position: relative;
    display: inline-block;
    
}

.lang-toggle-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 2px solid var(--text-primary);
    border-radius: 50px;
    padding: 0.35rem 0.8rem;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.lang-toggle-btn:hover {
    background: var(--bg-secondary);
}

.globe-icon {
    width: 17px;
    height: 17px;
}

.chevron-icon {
    width: 15px;
    height: 15px;
    transition: transform var(--transition-fast);
}

/* Rotación del icono al abrir */
.lang-dropdown.active .chevron-icon {
    transform: rotate(180deg);
}

/* Contenedor del menú desplegable */
.lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 150px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
    z-index: 1001;
}

/* Mostrar menú al activar */
.lang-dropdown.active .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ESTILO DE LOS ENLACES (lang-link)
   Forzamos la eliminación de estilos de navegador (azul y subrayado)
*/
.lang-link, a.lang-link {
    text-decoration: none !important;
    color: var(--text-primary) !important;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Estilo del botón dentro del enlace */
.lang-link button {
    width: 100%;
    background: transparent;
    border: none;
    padding: 0.8rem 1rem;
    text-align: left;
    font-family: inherit;
    font-size: 0.85rem;
    color: inherit;
    cursor: pointer;
    transition: background var(--transition-fast);
    display: block;
    border-bottom: 1px solid var(--border-light);
}

/* Quitar borde al último elemento */
.lang-link:last-child button {
    border-bottom: none;
}

/* Efecto Hover en la fila completa */
.lang-link:hover button {
    background: var(--bg-secondary);
    color: var(--accent);
}

/* Ocultar el texto en móviles muy pequeños para no romper la cabecera */
@media (max-width: 767px) {
    #currentLangText { display: none; }
    .lang-toggle-btn { padding: 0.4rem; gap: 0.2rem; }
}
/* ═══════════════ PRELOADER ═══════════════ */
.preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-primary);
    display: flex; align-items: center; justify-content: center;
    z-index: 100000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
.preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-content { text-align: center; }
.preloader-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem; letter-spacing: 0.3em;
    color: var(--text-primary);
}
.preloader-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.2em;
    margin-top: 0.5rem;
}
.preloader-bar {
    width: 150px; height: 2px; background: var(--border);
    margin: 1.5rem auto 0; overflow: hidden;
}
.preloader-bar::after {
    content: ''; display: block; width: 50%; height: 100%;
    background: var(--text-primary);
    animation: preload 1s ease-in-out infinite;
}
@keyframes preload {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(300%); }
}

/* ═══════════════ HEADER ═══════════════ */
header {
    position: fixed; top: 0; left: 0; width: 100%;
    padding: 0 5%;
    height: 72px;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 1000;
    background: var(--overlay);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-light);
    transition: all var(--transition);
}

.header-left { display: flex; align-items: center; }

.logo {
    display: flex; align-items: center; gap: 0.75rem;
    text-decoration: none; color: var(--text-primary);
}
.logo-mark {
    width: 42px; height: 42px;
    background: var(--text-primary); border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    transition: transform var(--transition), border-radius var(--transition);
}
.logo:hover .logo-mark { transform: scale(1.05); border-radius: var(--radius-md); }
.logo-mark span {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 0.7rem; letter-spacing: 0.05em;
    color: var(--bg-primary);
}
.logo-type {
    display: flex; flex-direction: column;
}
.logo-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem; letter-spacing: 0.2em; line-height: 1;
}
.logo-tag {
    font-size: 0.6rem; letter-spacing: 0.25em;
    color: var(--text-muted); text-transform: uppercase;
    margin-top: 1px;
}

.header-center { flex: 1; max-width: 380px; margin: 0 3rem; }

.search-bar { position: relative; width: 100%; }
.search-bar input {
    width: 100%; padding: 0.65rem 1rem 0.65rem 2.6rem;
    background: var(--bg-secondary); border: 1px solid transparent;
    border-radius: var(--radius-xl);
    color: var(--text-primary); font-family: inherit; font-size: 0.85rem;
    transition: all var(--transition);
}
.search-bar input::placeholder { color: var(--text-muted); }
.search-bar input:focus {
    outline: none; border-color: var(--accent);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px var(--accent-light);
}
.search-bar > svg {
    position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%);
    width: 16px; height: 16px; stroke: var(--text-muted); fill: none; stroke-width: 2;
}

.search-results {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-md);
    max-height: 400px; overflow-y: auto; z-index: 1000;
    display: none; box-shadow: var(--shadow-lg);
}
.search-results.active { display: block; }
.search-result-item {
    display: flex; align-items: center; gap: 1rem;
    padding: 0.75rem 1rem; cursor: pointer;
    transition: background var(--transition-fast);
    border-bottom: 1px solid var(--border-light);
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--bg-secondary); }
.search-result-image {
    width: 44px; height: 56px; object-fit: cover;
    border-radius: var(--radius-sm); background: var(--bg-secondary);
}
.search-result-info { flex: 1; }
.search-result-brand {
    font-size: 0.6rem; font-weight: 600; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--text-muted);
}
.search-result-name { font-size: 0.82rem; font-weight: 500; margin: 0.15rem 0; }
.search-result-price { font-size: 0.82rem; font-weight: 600; color: var(--accent); }
.search-no-results { padding: 2rem; text-align: center; color: var(--text-muted); font-size: 0.9rem; }

.header-right { display: flex; align-items: center; gap: 0.5rem; }

.header-btn {
    width: 42px; height: 42px;
    border: none; background: transparent;
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all var(--transition-fast);
    position: relative;
}
.header-btn:hover { background: var(--bg-secondary); }
.header-btn svg {
    width: 20px; height: 20px;
    stroke: var(--text-primary); fill: none; stroke-width: 1.5;
    transition: stroke var(--transition-fast);
}
.header-btn .btn-count {
    position: absolute; top: 2px; right: 2px;
    min-width: 18px; height: 18px; padding: 0 4px;
    background: var(--accent); color: #fff;
    font-size: 0.6rem; font-weight: 700;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    line-height: 1;
}
.header-btn .btn-count.heart-count { background: var(--sale); }

/* ═══════════════ CATEGORIES NAV ═══════════════ */
.categories-nav {
    position: fixed; top: 72px; left: 0; width: 100%;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-light);
    z-index: 999; overflow-x: auto;
    -ms-overflow-style: none; scrollbar-width: none;
}
.categories-nav::-webkit-scrollbar { display: none; }
.categories-list {
    display: flex; justify-content: center;
    padding: 0; list-style: none;
    max-width: 1200px; margin: 0 auto;
}
.categories-list li a {
    display: block; padding: 0.85rem 1.5rem;
    color: var(--text-muted); text-decoration: none;
    font-size: 0.75rem; font-weight: 500;
    letter-spacing: 0.12em; text-transform: uppercase;
    transition: all var(--transition-fast);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}
.categories-list li a:hover { color: var(--text-primary); }
.categories-list li a.active {
    color: var(--text-primary);
    border-bottom-color: var(--accent);
}

/* ═══════════════ MAIN ═══════════════ */
main { padding-top: 120px; min-height: 100vh; }


/* ═══════════════ HERO SLIDER - CONFIGURACIÓN DEFINITIVA ═══════════════ */
.shop-hero { 
    position: relative; 
    overflow: hidden; 
    height: 70vh; min-height: 480px; max-height: 720px;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    margin-bottom: 3.5rem;
}

/* Capas del slider (Fondo) */
.shop-hero-slides { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; 
}

.shop-hero-slide { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; 
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out; 
}

/* Estado activo: visible (El JS añadirá esta clase) */
.shop-hero-slide.active { 
    opacity: 1; 
    z-index: 2; 
    transform: translateX(0) !important;
}

/* La imagen */
.shop-hero-bg { 
    position: absolute; top: 0; left: 0;
    width: 100%; height: 120%; object-fit: cover; display: block; 
    will-change: transform;
    transition: transform 0.1s linear;
}

/* Overlay y Contenido (z-index superior y absoluto para que no se muevan) */
.shop-hero-overlay { 
    position: absolute; z-index: 2; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(
        135deg,
        rgba(10,10,10,0.72) 0%,
        rgba(10,10,10,0.45) 50%,
        rgba(61,90,128,0.25) 100%
    );
    pointer-events: none; 
}

.shop-hero-content { 
    position: absolute; /* Esto evita que el texto se mueva */
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 3; 
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    pointer-events: none; /* Clics atraviesan el texto para llegar a los links de imagen */
    color: #fff;
    padding: 0 2rem;
}

/* Habilitar clics en los enlaces dentro del contenido */
.shop-hero-content * { pointer-events: auto; }

/* ═══════════════ FLECHAS DE NAVEGACIÓN ESTÉTICAS ═══════════════ */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px); /* Efecto cristal */
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%; /* Forma circular perfecta */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.2rem;
    padding: 0;
}

.hero-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
    border-color: rgba(255, 255, 255, 0.4);
}

.hero-prev { left: 2.5rem; }
.hero-next { right: 2.5rem; }

/* Ajuste específico para Mobile */
@media (max-width: 767px) {
    .hero-arrow {
        width: 26px;
        height: 26px;
        font-size: 0.9rem;
    }
    .hero-prev { left: 1rem; }
    .hero-next { right: 1rem; }
}

/* LÓGICA DE EFECTOS (Controlado por el data-slider-effect) */
.shop-hero[data-slider-effect="slide"] .shop-hero-slide { transform: translateX(100%); }
.shop-hero[data-slider-effect="slide"] .shop-hero-slide.active { transform: translateX(0); }
.hero-eyebrow {
    font-size: 0.75rem; font-weight: 500;
    letter-spacing: 0.35em; text-transform: uppercase;
    opacity: 0.7; margin-bottom: 1rem;
}
.shop-hero-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(4rem, 12vw, 8rem);
    letter-spacing: 0.25em; line-height: 0.9;
    margin-bottom: 1rem;
}
.shop-hero-subtitle {
    font-size: 1rem; letter-spacing: 0.15em;
    opacity: 0.65; font-weight: 300;
}
.hero-cta {
    display: inline-flex; align-items: center; gap: 0.6rem;
    margin-top: 2rem; padding: 0.9rem 2.2rem;
    background: #fff; color: #111;
    text-decoration: none; font-size: 0.8rem; font-weight: 600;
    letter-spacing: 0.12em; text-transform: uppercase;
    border-radius: var(--radius-xl);
    transition: all var(--transition);
}
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,0.3); }
.hero-cta svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ═══════════════ SHOP LAYOUT ═══════════════ */
.shop-container {
    display: grid; grid-template-columns: 260px 1fr;
    gap: 2.5rem;
    max-width: 1500px; margin: 0 auto; padding: 0 5%;
}

/* ═══════════════ FILTERS SIDEBAR ═══════════════ */
.filters-sidebar {
    position: sticky; top: 135px;
    max-height: calc(100vh - 155px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
    padding-right: 0.3rem;
}
.filters-sidebar::-webkit-scrollbar { width: 3px; }
.filters-sidebar::-webkit-scrollbar-track { background: transparent; }
.filters-sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.filters-header-mobile {
    display: none;
    justify-content: space-between; align-items: center;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--border);
}
.filters-header-mobile h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem; letter-spacing: 0.1em;
}
.filters-close-btn {
    width: 40px; height: 40px; background: transparent;
    border: none; border-radius: var(--radius-md);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background var(--transition-fast);
}
.filters-close-btn:hover { background: var(--bg-secondary); }
.filters-close-btn svg {
    width: 20px; height: 20px; stroke: var(--text-primary); stroke-width: 2; fill: none;
}

.filter-section { border-bottom: 1px solid var(--border-light); }
.filter-section:last-of-type { border-bottom: none; }

.filter-section-toggle {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.75rem 0; cursor: pointer; user-select: none;
    width: 100%; background: none; border: none;
    font-family: inherit; color: var(--text-primary);
}
.filter-section-toggle:hover .f-title { color: var(--accent); }
.f-title {
    font-size: 0.7rem; font-weight: 600;
    letter-spacing: 0.12em; text-transform: uppercase;
    transition: color var(--transition-fast);
    display: flex; align-items: center; gap: 0.4rem;
}
.f-badge {
    width: 16px; height: 16px; border-radius: 50%;
    background: var(--accent); color: #fff;
    font-size: 0.5rem; font-weight: 700;
    display: none; align-items: center; justify-content: center;
}
.f-badge.visible { display: inline-flex; }
.f-chevron {
    width: 14px; height: 14px; stroke: var(--text-muted); fill: none; stroke-width: 2;
    transition: transform var(--transition);
}
.filter-section.collapsed .f-chevron { transform: rotate(-90deg); }

.filter-section-body {
    overflow: visible;
    max-height: none; opacity: 1; padding-bottom: 0.6rem;
    transition: opacity 0.25s ease, padding 0.25s ease;
}
.filter-section.collapsed .filter-section-body {
    max-height: 0; opacity: 0; padding-bottom: 0;
    overflow: hidden;
}

/* Scrollable brand list when many brands */
.filter-options.scrollable {
    max-height: 220px;
    overflow-y: auto;
    padding-right: 0.3rem;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}
.filter-options.scrollable::-webkit-scrollbar { width: 4px; }
.filter-options.scrollable::-webkit-scrollbar-track { background: transparent; }
.filter-options.scrollable::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.filter-options { display: flex; flex-direction: column; gap: 0.1rem; }

.filter-option {
    display: flex; align-items: center; gap: 0.5rem;
    cursor: pointer; font-size: 0.8rem; color: var(--text-secondary);
    transition: all var(--transition-fast);
    padding: 0.3rem 0.4rem; border-radius: var(--radius-sm);
}
.filter-option:hover { color: var(--text-primary); background: var(--bg-secondary); }
.filter-option input { display: none; }

.filter-check {
    width: 15px; height: 15px;
    border: 1.5px solid var(--border);
    border-radius: 3px;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--transition-fast); flex-shrink: 0;
}
.filter-option input:checked + .filter-check {
    background: var(--accent); border-color: var(--accent);
}
.filter-option input:checked + .filter-check::after {
    content: '✓'; color: #fff; font-size: 0.55rem; font-weight: 700;
}
.filter-option input:checked ~ .f-opt-text { color: var(--text-primary); font-weight: 500; }

.f-opt-text {
    flex: 1; display: flex; justify-content: space-between; align-items: center;
}
.f-opt-count {
    font-size: 0.6rem; color: var(--text-muted);
    background: var(--bg-secondary); padding: 0.1rem 0.35rem;
    border-radius: 6px; font-weight: 500; min-width: 18px; text-align: center;
}

.size-grid {
    display: flex; flex-wrap: wrap; gap: 0.35rem;
}
.size-btn {
    padding: 0.45rem 0.6rem; border: 1px solid var(--border);
    background: transparent; color: var(--text-secondary);
    font-family: inherit; font-size: 0.72rem; font-weight: 500;
    cursor: pointer; transition: all var(--transition-fast);
    border-radius: var(--radius-sm);
    min-width: 38px; text-align: center;
}
.size-btn:hover { border-color: var(--accent); color: var(--accent); }
.size-btn.active {
    background: var(--accent); border-color: var(--accent); color: #fff;
}

.price-range { display: flex; align-items: center; gap: 0.5rem; }
.price-input {
    flex: 1; padding: 0.55rem 0.5rem; border: 1px solid var(--border);
    background: var(--bg-secondary); color: var(--text-primary);
    font-family: inherit; font-size: 0.82rem; text-align: center;
    border-radius: var(--radius-sm); transition: border var(--transition-fast);
    min-width: 0; width: 70px; max-width: 75px;
    -moz-appearance: textfield;
}
.price-input::-webkit-outer-spin-button,
.price-input::-webkit-inner-spin-button {
    -webkit-appearance: none; margin: 0;
}
.price-input:focus { outline: none; border-color: var(--accent); background: var(--bg-card); }
.price-input::placeholder { font-size: 0.72rem; color: var(--text-muted); }
.price-range-sep { color: var(--text-muted); font-size: 0.8rem; flex-shrink: 0; }
.apply-price-btn {
    width: 100%; margin-top: 0.6rem; padding: 0.55rem;
    background: var(--bg-secondary); border: 1px solid var(--border);
    color: var(--text-secondary); font-family: inherit;
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em;
    text-transform: uppercase; cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}
.apply-price-btn:hover {
    background: var(--accent); color: #fff; border-color: var(--accent);
}

.filters-footer { padding-top: 1rem; padding-bottom: 1rem; }
.clear-filters {
    width: 100%; padding: 0.7rem;
    background: transparent; border: 1px solid var(--border);
    color: var(--text-muted); font-family: inherit;
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em;
    text-transform: uppercase; cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}
.clear-filters:hover {
    background: var(--sale); color: #fff; border-color: var(--sale);
}

.mobile-apply-btn {
    display: none; width: 100%; padding: 0.9rem; margin-top: 0.5rem;
    background: var(--accent); color: #fff; border: none;
    font-family: inherit; font-size: 0.82rem; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase;
    border-radius: var(--radius-sm); cursor: pointer;
    transition: opacity var(--transition-fast);
}
.mobile-apply-btn:hover { opacity: 0.9; }

/* ═══════════════ PRODUCTS SECTION ═══════════════ */
.products-section { padding-bottom: 4rem; }

.mobile-filters-toggle {
    display: none; width: 100%; padding: 0.85rem 1.2rem;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-md); margin-bottom: 1.5rem;
    font-family: inherit; font-size: 0.8rem; font-weight: 500;
    letter-spacing: 0.08em; text-transform: uppercase;
    cursor: pointer; align-items: center; justify-content: center;
    gap: 0.6rem; color: var(--text-primary);
    transition: all var(--transition-fast);
}
.mobile-filters-toggle:hover { border-color: var(--accent); }
.mobile-filters-toggle svg {
    width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2;
}
.mobile-filter-count {
    background: var(--accent); color: #fff;
    font-size: 0.6rem; font-weight: 700;
    min-width: 18px; height: 18px; padding: 0 4px;
    border-radius: 10px;
    display: none; align-items: center; justify-content: center;
}
.mobile-filter-count.visible { display: inline-flex; }

.active-filters {
    display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.2rem;
}
.active-filter-tag {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    background: var(--accent-light); border: 1px solid transparent;
    border-radius: var(--radius-xl);
    font-size: 0.72rem; font-weight: 500; color: var(--accent);
    animation: tagIn 0.3s ease;
}
@keyframes tagIn { from { opacity: 0; transform: scale(0.85); } to { opacity: 1; transform: scale(1); } }
.active-filter-tag button {
    background: none; border: none; cursor: pointer;
    color: var(--accent); font-size: 0.9rem; line-height: 1; padding: 0;
    width: 16px; height: 16px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--transition-fast);
}
.active-filter-tag button:hover { background: var(--sale); color: #fff; }

.products-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem;
}
.products-count { font-size: 0.85rem; color: var(--text-muted); font-weight: 400; }
.products-count strong { color: var(--text-primary); font-weight: 600; }
.products-sort { display: flex; align-items: center; gap: 0.6rem; }
.products-sort label { font-size: 0.8rem; color: var(--text-muted); }
.products-sort select {
    padding: 0.5rem 2rem 0.5rem 0.8rem;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    background: var(--bg-card); color: var(--text-primary);
    font-family: inherit; font-size: 0.82rem; cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239a9a96' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 0.7rem center;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.2rem;
}

/* ═══════════════ PRODUCT CARD ═══════════════ */
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    opacity: 0; transform: translateY(20px);
}
.product-card.revealed {
    opacity: 1; transform: translateY(0);
}
.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: transparent;
}
.product-card.revealed:hover { transform: translateY(-4px); }

.product-image {
    position: relative; aspect-ratio: 3/4; overflow: hidden;
    background: var(--bg-secondary);
}

.product-image .secondary-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease-in-out, transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.product-image img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover .product-image img { transform: scale(1.06); }

/* 1. EFECTO: SWAP IMAGE (Cambiar por 2ª imagen) */
.product-card:hover .product-image.hover-swap_image .primary-img {
    opacity: 0; /* Ocultamos la primera */
}

.product-card:hover .product-image.hover-swap_image .secondary-img {
    opacity: 1; /* Mostramos la segunda */
    transform: scale(1.06); /* Le aplicamos el zoom de tu tema a la 2ª foto */
}

/* 2. EFECTO: FADE (Desvanecimiento) */
.product-card:hover .product-image.hover-fade .primary-img {
    opacity: 0.6;
    transform: scale(1); /* Anulamos el zoom por defecto */
}

/* 3. EFECTO: ZOOM (Más fuerte que el normal) */
.product-card:hover .product-image.hover-zoom .primary-img {
    transform: scale(1.15); 
}

/* 4. EFECTO: NONE (Sin efecto) */
.product-card:hover .product-image.hover-none .primary-img {
    transform: scale(1); /* Anulamos tu zoom por defecto global */
}

.product-badge {
    position: absolute; top: 0.8rem; left: 0.8rem;
    padding: 0.3rem 0.7rem;
    font-size: 0.62rem; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase;
    border-radius: var(--radius-sm);
}
.product-badge.sale { background: var(--sale); color: #fff; }
.product-badge.new { background: var(--success); color: #fff; }

.product-wishlist {
    position: absolute; top: 0.8rem; right: 0.8rem;
    width: 36px; height: 36px;
    background: var(--bg-card); border: none;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; opacity: 0;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}
.product-card:hover .product-wishlist { opacity: 1; }
.product-wishlist:hover { transform: scale(1.1); }
.product-wishlist svg {
    width: 17px; height: 17px;
    stroke: var(--text-primary); fill: none; stroke-width: 1.5;
    transition: all var(--transition-fast);
}
.product-wishlist.active svg { fill: var(--sale); stroke: var(--sale); }

.product-cart-slide {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 0.8rem 1rem;
    background: var(--text-primary);
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: none; cursor: pointer;
    color: var(--bg-primary);
    font-family: inherit; font-size: 0.75rem; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase;
}
.product-card:hover .product-cart-slide { transform: translateY(0); }
.product-cart-slide svg {
    width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.5;
}

.product-info { padding: 1rem 1.1rem 1.1rem; }
.product-brand {
    font-size: 0.62rem; font-weight: 600;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--text-muted); margin-bottom: 0.25rem;
}
.product-name {
    font-size: 0.9rem; font-weight: 500;
    margin-bottom: 0.5rem; line-height: 1.35;
    color: var(--text-primary);
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.product-price {
    display: flex; align-items: center; gap: 0.6rem;
}
.product-price .current {
    font-size: 1rem; font-weight: 700; color: var(--text-primary);
    transition: color var(--transition-fast);
}
.product-card:hover .product-price .current { color: var(--accent); }
.product-price .original {
    font-size: 0.8rem; color: var(--text-muted);
    text-decoration: line-through; font-weight: 400;
}
.product-price .discount {
    font-size: 0.65rem; color: var(--sale);
    font-weight: 700; background: var(--sale-light);
    padding: 0.15rem 0.4rem; border-radius: 4px;
}

/* ═══════════════ SIZE POPUP ═══════════════ */
.size-popup {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
    z-index: 10000; display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: all var(--transition);
}
.size-popup.active { opacity: 1; visibility: visible; }
.size-popup-content {
    background: var(--bg-card); padding: 2.5rem;
    max-width: 400px; width: 90%; text-align: center;
    border-radius: var(--radius-lg);
    transform: scale(0.92) translateY(10px);
    transition: transform var(--transition);
    box-shadow: var(--shadow-xl);
}
.size-popup.active .size-popup-content { transform: scale(1) translateY(0); }
.size-popup-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem; letter-spacing: 0.08em; margin-bottom: 0.3rem;
}
.size-popup-product {
    font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 1.5rem;
}
.size-popup-grid {
    display: flex; flex-wrap: wrap; gap: 0.6rem;
    justify-content: center; margin-bottom: 1.5rem;
}
.size-popup-btn {
    min-width: 52px; padding: 0.75rem 1rem;
    border: 1.5px solid var(--border); background: transparent;
    color: var(--text-primary); cursor: pointer;
    font-family: inherit; font-size: 0.88rem; font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast); position: relative;
}
.size-popup-btn:hover { border-color: var(--accent); color: var(--accent); }
.size-popup-btn.selected {
    background: var(--accent); border-color: var(--accent); color: #fff;
    box-shadow: 0 4px 16px rgba(61,90,128,0.25);
}
.size-popup-selected {
    display: none; margin-bottom: 1rem;
    padding: 0.5rem 1rem; border-radius: var(--radius-sm);
    background: var(--success-light); color: var(--success);
    font-size: 0.82rem; font-weight: 600;
}
.size-popup-actions { display: flex; gap: 0.6rem; }
.size-popup-actions button {
    flex: 1; padding: 0.85rem; font-family: inherit;
    font-size: 0.8rem; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase;
    cursor: pointer; border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}
.size-popup-cancel {
    background: transparent; border: 1px solid var(--border); color: var(--text-secondary);
}
.size-popup-cancel:hover { background: var(--bg-secondary); }
.size-popup-confirm {
    background: var(--accent); border: none; color: #fff;
}
.size-popup-confirm:disabled { opacity: 0.4; cursor: not-allowed; }
.size-popup-confirm:not(:disabled):hover { background: var(--accent-hover); }

/* ═══════════════ CART & FAVORITES SIDEBAR ═══════════════ */
.sidebar-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4); backdrop-filter: blur(4px);
    z-index: 10000; opacity: 0; visibility: hidden;
    transition: all var(--transition);
}
.sidebar-overlay.active { opacity: 1; visibility: visible; }

.sidebar-panel {
    position: fixed; top: 0; right: 0;
    width: 420px; max-width: 100%; height: 100%;
    background: var(--bg-card); z-index: 10001;
    transform: translateX(100%); transition: transform var(--transition);
    display: flex; flex-direction: column;
    box-shadow: -10px 0 40px rgba(0,0,0,0.1);
}
.sidebar-panel.active { transform: translateX(0); }

.sidebar-header {
    padding: 1.3rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    display: flex; justify-content: space-between; align-items: center;
}
.sidebar-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem; letter-spacing: 0.08em;
}
.sidebar-close {
    width: 38px; height: 38px; background: transparent;
    border: none; border-radius: var(--radius-md); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background var(--transition-fast);
}
.sidebar-close:hover { background: var(--bg-secondary); }
.sidebar-close svg { width: 20px; height: 20px; stroke: var(--text-primary); fill: none; stroke-width: 2; }

.sidebar-items { flex: 1; overflow-y: auto; padding: 1.5rem; }

.sidebar-empty {
    text-align: center; padding: 3rem 1rem; color: var(--text-muted);
}
.sidebar-empty-icon {
    width: 80px; height: 80px; margin: 0 auto 1.2rem;
    background: var(--bg-secondary); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.sidebar-empty-icon svg {
    width: 36px; height: 36px; stroke: var(--text-muted); fill: none; stroke-width: 1.2;
}
.sidebar-empty h4 {
    font-size: 1rem; font-weight: 600; color: var(--text-primary);
    margin-bottom: 0.4rem;
}
.sidebar-empty p { font-size: 0.85rem; margin-bottom: 1.2rem; }
.sidebar-empty-cta {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    background: var(--accent); color: #fff; border: none;
    font-family: inherit; font-size: 0.78rem; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase;
    border-radius: var(--radius-sm); cursor: pointer;
    transition: opacity var(--transition-fast);
}
.sidebar-empty-cta:hover { opacity: 0.85; }

.sidebar-item {
    display: grid; grid-template-columns: 75px 1fr;
    gap: 1rem; padding-bottom: 1.2rem; margin-bottom: 1.2rem;
    border-bottom: 1px solid var(--border-light);
}
.sidebar-item:last-child { border-bottom: none; margin-bottom: 0; }
.sidebar-item-image {
    aspect-ratio: 3/4; overflow: hidden;
    border-radius: var(--radius-sm); background: var(--bg-secondary);
}
.sidebar-item-image img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-item-info { display: flex; flex-direction: column; }
.sidebar-item-brand {
    font-size: 0.58rem; font-weight: 600; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--text-muted);
}
.sidebar-item-name { font-size: 0.85rem; font-weight: 500; margin: 0.2rem 0; }
.sidebar-item-details { font-size: 0.75rem; color: var(--text-secondary); }
.sidebar-item-price { font-weight: 600; font-size: 0.9rem; margin-top: auto; color: var(--accent); }
.sidebar-item-actions {
    display: flex; align-items: center; gap: 0.8rem; margin-top: 0.6rem;
}
.quantity-control {
    display: flex; align-items: center;
    border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden;
}
.quantity-btn {
    width: 28px; height: 28px; background: transparent;
    border: none; cursor: pointer; font-size: 0.85rem;
    color: var(--text-secondary); transition: background var(--transition-fast);
    display: flex; align-items: center; justify-content: center;
}
.quantity-btn:hover { background: var(--bg-secondary); }
.quantity-value {
    width: 32px; text-align: center; font-size: 0.8rem; font-weight: 600;
}
.sidebar-item-remove {
    background: none; border: none; color: var(--text-muted);
    font-family: inherit; font-size: 0.72rem;
    text-decoration: underline; cursor: pointer;
    transition: color var(--transition-fast);
}
.sidebar-item-remove:hover { color: var(--sale); }

/* Favorites specific */
.fav-item-add-cart {
    padding: 0.5rem 0.8rem;
    background: var(--accent); color: #fff; border: none;
    font-family: inherit; font-size: 0.68rem; font-weight: 600;
    letter-spacing: 0.06em; text-transform: uppercase;
    border-radius: var(--radius-sm); cursor: pointer;
    transition: all var(--transition-fast);
}
.fav-item-add-cart:hover { background: var(--accent-hover); }

.cart-footer {
    padding: 1.3rem 1.5rem;
    border-top: 1px solid var(--border-light);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.cart-subtotal {
    display: flex; justify-content: space-between;
    margin-bottom: 0.3rem; font-size: 0.95rem;
}
.cart-subtotal span:first-child { color: var(--text-secondary); }
.cart-subtotal span:last-child { font-weight: 700; }
.cart-shipping {
    font-size: 0.75rem; color: var(--text-muted); margin-bottom: 1.2rem;
}
.cart-checkout {
    display: block; width: 100%; padding: 0.95rem;
    background: var(--accent); color: #fff; border: none;
    font-family: inherit; font-size: 0.82rem; font-weight: 600;
    letter-spacing: 0.12em; text-transform: uppercase;
    cursor: pointer; text-align: center;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    text-decoration: none;
}
.cart-checkout:hover { background: var(--accent-hover); }
.cart-continue {
    display: block; text-align: center; margin-top: 0.8rem;
    color: var(--text-muted); text-decoration: underline; font-size: 0.8rem;
    cursor: pointer; background: none; border: none; width: 100%;
    font-family: inherit;
}
.cart-continue:hover { color: var(--text-primary); }

/* ═══════════════ PRODUCT MODAL ═══════════════ */
.product-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7); backdrop-filter: blur(6px);
    z-index: 999999; display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: all var(--transition);
    padding: 2rem;
}
.product-modal.active { opacity: 1; visibility: visible; }
.product-modal-content {
    background: var(--bg-card); max-width: 960px; width: 100%;
    max-height: 88vh; overflow: hidden;
    display: grid; grid-template-columns: 1fr 1fr;
    position: relative; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    transform: scale(0.95); transition: transform var(--transition);
}
.product-modal.active .product-modal-content { transform: scale(1); }
.product-modal-close {
    position: absolute; top: 1rem; right: 1rem;
    width: 44px; height: 44px;
    background: var(--bg-card); border: none;
    border-radius: var(--radius-md); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    z-index: 10; box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}
.product-modal-close:hover { background: var(--bg-secondary); }
.product-modal-close svg {
    width: 20px; height: 20px; stroke: var(--text-primary); stroke-width: 2; fill: none;
}
.product-modal-image {
    height: 100%; max-height: 88vh; overflow: hidden;
    background: var(--bg-secondary); display: flex; align-items: center;
    justify-content: center; padding: 1.5rem;
    cursor: zoom-in;
}
.product-modal-image img {
    width: 100%; height: 100%;
    object-fit: contain; max-height: 80vh;
    transition: transform 0.4s ease;
}
.product-modal-image:hover img {
    transform: scale(1.02);
}
.product-modal-info {
    padding: 2.5rem; display: flex; flex-direction: column;
    overflow-y: auto; max-height: 88vh;
}
.product-modal-brand {
    font-size: 0.68rem; font-weight: 600; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.5rem;
}
.product-modal-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem; letter-spacing: 0.04em;
    margin-bottom: 1rem; line-height: 1.1;
}
.product-modal-price-wrap {
    display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1.5rem;
}
.product-modal-price { font-size: 1.4rem; font-weight: 700; color: var(--accent); }
.product-modal-original {
    font-size: 1rem; color: var(--text-muted); text-decoration: line-through;
}
.product-modal-discount {
    background: var(--sale); color: #fff;
    padding: 0.25rem 0.55rem; font-size: 0.7rem; font-weight: 700;
    border-radius: var(--radius-sm);
}
.product-modal-desc {
    color: var(--text-secondary); line-height: 1.75;
    margin-bottom: 1.8rem; font-size: 0.9rem;
}
.product-modal-sizes { margin-bottom: 1.8rem; }
.product-modal-sizes h4 {
    font-size: 0.75rem; font-weight: 600;
    letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.8rem;
}
.modal-size-grid { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.modal-size-btn {
    min-width: 50px; height: 48px; padding: 0 0.9rem;
    border: 1.5px solid var(--border); background: transparent;
    cursor: pointer; font-family: inherit;
    font-size: 0.85rem; font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    color: var(--text-primary); position: relative;
}
.modal-size-btn:hover { border-color: var(--accent); color: var(--accent); }
.modal-size-btn.selected {
    background: var(--accent); border-color: var(--accent); color: #fff;
    box-shadow: 0 4px 16px rgba(61,90,128,0.2);
}
.modal-size-selected {
    display: none; margin-top: 0.6rem;
    padding: 0.5rem 0.8rem; border-radius: var(--radius-sm);
    background: var(--success-light); color: var(--success);
    font-size: 0.78rem; font-weight: 600;
}
.modal-size-selected.active { display: block; }

/* ═══ SIZE GUIDE LINK ═══ */
.size-guide-link {
    display: inline-flex; align-items: center; gap: 0.4rem;
    font-size: 0.75rem; font-weight: 600; color: var(--accent);
    background: var(--accent-light); border: 1px solid rgba(61,90,128,0.18);
    border-radius: var(--radius-xl);
    padding: 0.35rem 0.85rem;
    cursor: pointer; margin-top: 0.7rem;
    transition: all var(--transition-fast);
    text-decoration: none;
    letter-spacing: 0.04em;
}
.size-guide-link:hover {
    background: var(--accent); color: #fff;
    border-color: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(61,90,128,0.25);
}
.size-guide-link svg {
    width: 13px; height: 13px;
    stroke: currentColor; fill: none; stroke-width: 2;
    flex-shrink: 0;
}

/* ═══ SIZE GUIDE MODAL ═══ */
.size-guide-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.65); backdrop-filter: blur(6px);
    z-index: 10020; display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: all var(--transition);
    padding: 1rem;
    overscroll-behavior: contain;
    touch-action: none;
}
.size-guide-modal.active { opacity: 1; visibility: visible; z-index: 9999999 !important; }
.size-guide-content {
    background: var(--bg-card);
    max-width: 680px; width: 100%; max-height: 88vh; overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: flex; flex-direction: column;
    transform: scale(0.94) translateY(12px);
    transition: transform var(--transition);
    touch-action: pan-y;
    overscroll-behavior: contain;
}
.size-guide-modal.active .size-guide-content { transform: scale(1) translateY(0); }

.size-guide-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.4rem 1.8rem;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-secondary);
    flex-shrink: 0;
}
.size-guide-header-left { display: flex; align-items: center; gap: 0.8rem; }
.size-guide-header-icon {
    width: 44px; height: 44px;
    background: var(--accent-light);
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
}
.size-guide-header-icon svg {
    width: 22px; height: 22px;
    stroke: var(--accent); fill: none; stroke-width: 1.8;
}
.size-guide-header h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem; letter-spacing: 0.1em;
}
.size-guide-header p {
    font-size: 0.78rem; color: var(--text-muted); margin-top: 0.1rem;
}
.size-guide-close {
    width: 40px; height: 40px; background: transparent;
    border: none; border-radius: var(--radius-md); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background var(--transition-fast);
}
.size-guide-close:hover { background: var(--border); }
.size-guide-close svg { width: 20px; height: 20px; stroke: var(--text-primary); stroke-width: 2; fill: none; }

/* Tabs */
.size-guide-tabs {
    display: flex; gap: 0;
    padding: 0 1.8rem;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-card);
    flex-shrink: 0;
}
.size-guide-tab {
    padding: 0.85rem 1.2rem;
    font-family: inherit; font-size: 0.78rem; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase;
    cursor: pointer; background: none; border: none;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all var(--transition-fast);
    display: flex; align-items: center; gap: 0.4rem;
}
.size-guide-tab:hover { color: var(--text-primary); }
.size-guide-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}
.size-guide-tab svg {
    width: 15px; height: 15px;
    stroke: currentColor; fill: none; stroke-width: 1.8;
}

/* Body */
.size-guide-body {
    flex: 1; overflow-y: auto; padding: 1.8rem;
    scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.size-guide-body::-webkit-scrollbar { width: 4px; }
.size-guide-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.size-guide-panel { display: none; }
.size-guide-panel.active { display: block; }

/* Measure tip */
.measure-tip {
    display: flex; gap: 1rem; align-items: flex-start;
    background: var(--accent-light);
    border: 1px solid rgba(61,90,128,0.15);
    border-radius: var(--radius-md);
    padding: 1rem 1.2rem; margin-bottom: 1.5rem;
}
.measure-tip-icon {
    width: 36px; height: 36px; flex-shrink: 0;
    background: var(--accent); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.measure-tip-icon svg {
    width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2;
}
.measure-tip-text h5 {
    font-size: 0.82rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.3rem;
}
.measure-tip-text p { font-size: 0.78rem; color: var(--text-secondary); line-height: 1.5; }

/* Body measurements section */
.sg-section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem; letter-spacing: 0.1em;
    color: var(--text-primary); margin-bottom: 1rem;
    display: flex; align-items: center; gap: 0.5rem;
}
.sg-section-title::after {
    content: ''; flex: 1; height: 1px; background: var(--border-light);
}

/* Interactive finder */
.size-finder {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.4rem; margin-bottom: 1.8rem;
}
.size-finder-title {
    font-size: 0.88rem; font-weight: 700; color: var(--text-primary);
    margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem;
}
.size-finder-title span {
    background: var(--accent); color: #fff;
    font-size: 0.6rem; font-weight: 800; letter-spacing: 0.12em;
    text-transform: uppercase; padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
}
.size-finder-row {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem;
    margin-bottom: 1rem;
}
.size-finder-field label {
    display: block; font-size: 0.7rem; font-weight: 600;
    color: var(--text-muted); text-transform: uppercase;
    letter-spacing: 0.08em; margin-bottom: 0.35rem;
}
.size-finder-field input, .size-finder-field select {
    width: 100%; padding: 0.7rem 0.85rem;
    border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    background: var(--bg-card); color: var(--text-primary);
    font-family: inherit; font-size: 0.88rem;
    transition: border var(--transition-fast);
    -moz-appearance: textfield;
}
.size-finder-field input::-webkit-outer-spin-button,
.size-finder-field input::-webkit-inner-spin-button { -webkit-appearance: none; }
.size-finder-field input:focus, .size-finder-field select:focus {
    outline: none; border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}
.size-finder-btn {
    width: 100%; padding: 0.85rem;
    background: var(--accent); color: #fff; border: none;
    font-family: inherit; font-size: 0.82rem; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    border-radius: var(--radius-sm); cursor: pointer;
    transition: all var(--transition-fast);
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.size-finder-btn:hover { background: var(--accent-hover); }
.size-finder-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.size-finder-result {
    margin-top: 1rem; padding: 1rem 1.2rem;
    background: var(--success-light); border: 1px solid rgba(74,124,89,0.2);
    border-radius: var(--radius-md);
    display: none; align-items: center; gap: 0.8rem;
}
.size-finder-result.show { display: flex; }
.sfr-icon {
    width: 38px; height: 38px; flex-shrink: 0;
    background: var(--success); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.sfr-icon svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2.5; }
.sfr-text { flex: 1; }
.sfr-label { font-size: 0.72rem; color: var(--success); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.sfr-size { font-family: 'Bebas Neue', sans-serif; font-size: 2rem; color: var(--text-primary); line-height: 1; }
.sfr-desc { font-size: 0.78rem; color: var(--text-secondary); margin-top: 0.1rem; }

/* Size table */
.size-table-wrapper {
    overflow-x: auto; border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    margin-bottom: 1.5rem;
}
.size-table {
    width: 100%; border-collapse: collapse; min-width: 520px;
    font-size: 0.82rem;
}
.size-table th {
    background: var(--bg-secondary);
    padding: 0.7rem 0.9rem;
    text-align: center; font-size: 0.68rem; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--text-muted); border-bottom: 1px solid var(--border-light);
    white-space: nowrap;
}
.size-table td {
    padding: 0.65rem 0.9rem; text-align: center;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
    transition: background var(--transition-fast);
}
.size-table tr:last-child td { border-bottom: none; }
.size-table tr:hover td { background: var(--bg-secondary); }
.size-table td:first-child {
    font-weight: 700; color: var(--accent);
    font-size: 0.9rem; background: var(--accent-light);
}
.size-table tr.highlight td { background: rgba(61,90,128,0.07); }
.size-table tr.highlight td:first-child { background: var(--accent); color: #fff; }

/* Shoe size table */
.shoe-size-table th { min-width: 60px; }

/* How to measure */
.measure-steps {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.8rem;
    margin-bottom: 1.5rem;
}
.measure-step {
    display: flex; gap: 0.8rem; align-items: flex-start;
    padding: 0.9rem; background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}
.measure-step-num {
    width: 28px; height: 28px; flex-shrink: 0;
    background: var(--accent); color: #fff;
    border-radius: 50%; display: flex; align-items: center;
    justify-content: center; font-size: 0.75rem; font-weight: 800;
}
.measure-step-text { flex: 1; }
.measure-step-text strong { display: block; font-size: 0.82rem; color: var(--text-primary); margin-bottom: 0.15rem; }
.measure-step-text span { font-size: 0.75rem; color: var(--text-muted); line-height: 1.4; }

/* Size guide in size-popup */
.size-popup-guide-btn {
    display: inline-flex; align-items: center; gap: 0.35rem;
    font-size: 0.72rem; font-weight: 600; color: var(--accent);
    background: var(--accent-light); border: 1px solid rgba(61,90,128,0.18);
    border-radius: var(--radius-xl); padding: 0.3rem 0.75rem;
    cursor: pointer; margin-top: 0.5rem; margin-bottom: 0.2rem;
    transition: all var(--transition-fast); font-family: inherit;
}
.size-popup-guide-btn:hover {
    background: var(--accent); color: #fff; border-color: var(--accent);
}
.size-popup-guide-btn svg {
    width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2;
}

@media (max-width: 767px) {
    .size-guide-content { max-height: 95vh; border-radius: var(--radius-md); }
    .size-guide-header { padding: 1rem 1.2rem; }
    .size-guide-header-icon { width: 38px; height: 38px; }
    .size-guide-header h3 { font-size: 1.2rem; }
    .size-guide-tabs { padding: 0 1rem; overflow-x: auto; }
    .size-guide-tab { padding: 0.7rem 0.9rem; font-size: 0.7rem; white-space: nowrap; }
    .size-guide-body { padding: 1.2rem; }
    .size-finder-row { grid-template-columns: 1fr 1fr; }
    .measure-steps { grid-template-columns: 1fr; }
    .size-table { min-width: 420px; font-size: 0.78rem; }
    .size-table th { padding: 0.55rem 0.7rem; font-size: 0.62rem; }
    .size-table td { padding: 0.55rem 0.7rem; }
}

.product-modal-add {
    width: 100%; padding: 1.1rem;
    background: var(--accent); color: #fff; border: none;
    font-family: inherit; font-size: 0.85rem; font-weight: 600;
    letter-spacing: 0.12em; text-transform: uppercase;
    cursor: pointer; margin-top: auto;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}
.product-modal-add:hover { background: var(--accent-hover); }
.product-modal-features {
    margin-top: 1.5rem; padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem;
}
.feature-item { text-align: center; }
.feature-item svg {
    width: 22px; height: 22px; stroke: var(--text-muted); fill: none;
    stroke-width: 1.5; margin-bottom: 0.4rem;
}
.feature-item span {
    display: block; font-size: 0.62rem; color: var(--text-muted);
    letter-spacing: 0.04em;
}

/* ═══════════════ IMAGE LIGHTBOX ═══════════════ */
.image-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    cursor: zoom-out;
    overflow: hidden;
}

/* Transición de opacidad para pasar fotos */
.image-lightbox img {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
}

/* ====================================================
   LIGHTBOX ZOOM AVANZADO
==================================================== */


#lightboxImage {
    cursor: zoom-in;
    max-width: 90vw;
    max-height: 90vh;
    user-select: none;
    -webkit-user-drag: none; /* Crucial: Evita que se descargue la foto al arrastrar */
}

#lightboxImage.zoomed {
    cursor: grab;
    max-width: none;
    max-height: none;
}

#lightboxImage.zoomed:active {
    cursor: grabbing;
}

/* Botones Anterior y Siguiente */
.lightbox-prev, 
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 54px; height: 54px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all var(--transition-fast);
    z-index: 20001;
}

.lightbox-prev:hover, 
.lightbox-next:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-50%) scale(1.1);
    border-color: #fff;
}

.lightbox-prev svg, 
.lightbox-next svg {
    width: 28px; height: 28px;
    stroke: #fff; stroke-width: 2; fill: none;
}

.lightbox-prev { left: 2.5rem; }
.lightbox-next { right: 2.5rem; }

/* Hacerlos más compactos en móviles */
@media (max-width: 767px) {
    .lightbox-prev { left: 0.8rem; width: 44px; height: 44px; }
    .lightbox-next { right: 0.8rem; width: 44px; height: 44px; }
    .lightbox-prev svg, .lightbox-next svg { width: 22px; height: 22px; }
}

.image-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.image-lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: var(--radius-sm);
    box-shadow: 0 25px 80px rgba(0,0,0,0.5);
}

.image-lightbox.active img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

.lightbox-close svg {
    width: 24px;
    height: 24px;
    stroke: #fff;
    stroke-width: 2;
    fill: none;
}

.lightbox-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.5);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lightbox-hint svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

/* ═══════════════ ACCOUNT MODAL ═══════════════ */
.account-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(6px);
    z-index: 10005; display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: all var(--transition);
    padding: 1rem;
}
.account-modal.active { opacity: 1; visibility: visible; }

.account-modal-content {
    background: var(--bg-card); width: 100%; max-width: 420px;
    border-radius: var(--radius-lg); position: relative;
    padding: 2.5rem; box-shadow: var(--shadow-xl);
    transform: scale(0.92) translateY(20px);
    transition: transform var(--transition);
    max-height: 90vh; /* La caja nunca ocupará más del 90% de la altura de la pantalla */
    overflow-y: auto; /* Activa la barra de scroll vertical automática */
}

/* ESTILO ELEGANTE PARA LA BARRA DE SCROLL DEL MODAL */
.account-modal-content::-webkit-scrollbar {
    width: 6px;
}
.account-modal-content::-webkit-scrollbar-track {
    background: transparent;
}
.account-modal-content::-webkit-scrollbar-thumb {
    background-color: var(--border, #ccc);
    border-radius: 10px;
}

.account-modal.active .account-modal-content { transform: scale(1) translateY(0); }

.account-modal-close {
    position: absolute; top: 1rem; right: 1rem;
    width: 40px; height: 40px; background: transparent;
    border: none; border-radius: var(--radius-md); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background var(--transition-fast);
}
.account-modal-close:hover { background: var(--bg-secondary); }
.account-modal-close svg { width: 20px; height: 20px; stroke: var(--text-muted); stroke-width: 2; fill: none; }

.account-header { text-align: center; margin-bottom: 2rem; }
.account-icon {
    width: 70px; height: 70px; margin: 0 auto 1rem;
    background: var(--accent-light); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.account-icon svg { width: 32px; height: 32px; stroke: var(--accent); fill: none; stroke-width: 1.5; }
.account-header h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem; letter-spacing: 0.08em; margin-bottom: 0.3rem;
}
.account-header p { color: var(--text-muted); font-size: 0.9rem; }

.account-form .form-group { margin-bottom: 1rem; }
.account-form .form-group label {
    display: block; font-size: 0.75rem; font-weight: 600;
    color: var(--text-secondary); margin-bottom: 0.4rem;
    text-transform: uppercase; letter-spacing: 0.05em;
}
.account-form .form-group input {
    width: 100%; padding: 0.85rem 1rem;
    border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    font-family: inherit; font-size: 0.95rem; color: var(--text-primary);
    background: var(--bg-card); transition: all var(--transition-fast);
}
.account-form .form-group input:focus {
    outline: none; border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}
.account-form .form-group input::placeholder { color: var(--text-muted); }

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

.form-checkbox {
    display: flex; align-items: flex-start; gap: 0.6rem;
    margin-bottom: 1.2rem; font-size: 0.82rem; color: var(--text-secondary);
}
.form-checkbox input { margin-top: 0.15rem; accent-color: var(--accent); }
.form-checkbox a { color: var(--accent); text-decoration: underline; }

.account-submit-btn {
    width: 100%; padding: 1rem; background: var(--accent); color: #fff;
    border: none; border-radius: var(--radius-sm); cursor: pointer;
    font-family: inherit; font-size: 0.9rem; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase;
    transition: all var(--transition-fast);
}
.account-submit-btn:hover { background: var(--accent-hover); }

.account-divider {
    display: flex; align-items: center; gap: 1rem;
    margin: 1.5rem 0; color: var(--text-muted); font-size: 0.8rem;
}
.account-divider::before, .account-divider::after {
    content: ''; flex: 1; height: 1px; background: var(--border);
}

.account-social-btn {
    width: 100%; padding: 0.85rem; background: var(--bg-secondary);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    cursor: pointer; font-family: inherit; font-size: 0.85rem; font-weight: 500;
    color: var(--text-primary); display: flex; align-items: center;
    justify-content: center; gap: 0.6rem;
    transition: all var(--transition-fast);
}
.account-social-btn:hover { background: var(--bg-tertiary); border-color: var(--text-muted); }

.account-switch {
    text-align: center; margin-top: 1.5rem;
    font-size: 0.85rem; color: var(--text-muted);
}
.account-switch button {
    background: none; border: none; color: var(--accent);
    font-family: inherit; font-size: inherit; font-weight: 600;
    cursor: pointer; text-decoration: underline;
}

/* User Menu Dropdown */
.user-menu {
    position: fixed; top: 78px; right: 5%;
    width: 280px; background: var(--bg-card);
    border: 1px solid var(--border); border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg); z-index: 1001;
    opacity: 0; visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
}
.user-menu.active { opacity: 1; visibility: visible; transform: translateY(0); }

.user-menu-header {
    display: flex; align-items: center; gap: 0.8rem;
    padding: 1.2rem; border-bottom: 1px solid var(--border-light);
}
.user-avatar {
    width: 48px; height: 48px; background: var(--accent);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 1rem;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info { flex: 1; overflow: hidden; }
.user-name { display: block; font-weight: 600; font-size: 0.95rem; }
.user-email {
    display: block; font-size: 0.75rem; color: var(--text-muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.user-menu-items { padding: 0.5rem 0; }
.user-menu-item {
    display: flex; align-items: center; gap: 0.8rem;
    padding: 0.75rem 1.2rem; color: var(--text-secondary);
    text-decoration: none; font-size: 0.88rem;
    transition: all var(--transition-fast);
}
.user-menu-item:hover { background: var(--bg-secondary); color: var(--text-primary); }
.user-menu-item svg {
    width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.5;
}

.user-menu-footer { padding: 0.8rem 1.2rem; border-top: 1px solid var(--border-light); }
.logout-btn {
    width: 100%; display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.7rem; background: var(--sale-light); border: 1px solid transparent;
    border-radius: var(--radius-sm); color: var(--sale); font-family: inherit;
    font-size: 0.82rem; font-weight: 600; cursor: pointer;
    transition: all var(--transition-fast);
}
.logout-btn:hover { background: var(--sale); color: #fff; }
.logout-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }

/* Logged in state for account button */
.header-btn.logged-in { position: relative; }
.header-btn.logged-in::after {
    content: ''; position: absolute; bottom: 6px; right: 6px;
    width: 8px; height: 8px; background: var(--success);
    border-radius: 50%; border: 2px solid var(--bg-card);
}

/* ═══════════════ FULLSCREEN PANELS ═══════════════ */
.fullscreen-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    z-index: 10010;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.fullscreen-panel.active {
    transform: translateX(0);
}

.fullscreen-panel-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.fullscreen-panel-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 10;
}

.fullscreen-back-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.fullscreen-back-btn:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.fullscreen-back-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.fullscreen-panel-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    letter-spacing: 0.1em;
    color: var(--text-primary);
}

.fullscreen-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    -webkit-overflow-scrolling: touch;
}

.fullscreen-panel-footer {
    padding: 1.5rem 2rem;
    background: var(--bg-card);
    border-top: 1px solid var(--border-light);
}

/* Profile Panel Styles */
.profile-hero {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    color: #fff;
}

.profile-avatar-large {
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.2);
    border: 3px solid rgba(255,255,255,0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    letter-spacing: 0.05em;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.profile-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-avatar-wrapper {
    position: relative;
    cursor: pointer;
}

.profile-avatar-edit {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    background: #fff;
    border: 2px solid rgba(255,255,255,0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.profile-avatar-edit:hover {
    transform: scale(1.1);
    background: var(--accent);
}

.profile-avatar-edit:hover svg {
    stroke: #fff;
}

.profile-avatar-edit svg {
    width: 16px;
    height: 16px;
    stroke: var(--text-primary);
    fill: none;
    stroke-width: 2;
}

.profile-avatar-input {
    display: none;
}

.profile-remove-photo {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.8rem;
    padding: 0.4rem 0.8rem;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: var(--radius-xl);
    color: #fff;
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.profile-remove-photo:hover {
    background: var(--sale);
    border-color: var(--sale);
}

.profile-remove-photo svg {
    width: 12px;
    height: 12px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.profile-hero-info h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    letter-spacing: 0.08em;
    margin-bottom: 0.2rem;
}

.profile-hero-info p {
    opacity: 0.8;
    font-size: 0.95rem;
}

.profile-member-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.8rem;
    padding: 0.4rem 0.8rem;
    background: rgba(255,255,255,0.15);
    border-radius: var(--radius-xl);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.profile-member-badge svg {
    width: 14px;
    height: 14px;
    fill: #fbbf24;
    stroke: #fbbf24;
}

.profile-sections {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-section {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.profile-section-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.profile-section-header svg {
    width: 22px;
    height: 22px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 1.5;
}

.profile-section-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.profile-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.profile-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.profile-form-group.full-width {
    grid-column: span 2;
}

.profile-form-group label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.profile-form-group input {
    padding: 0.9rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.profile-form-group input:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.profile-save-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 1rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.profile-save-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(61,90,128,0.3);
}

.profile-save-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

/* Orders Panel Styles */
.orders-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.order-stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
}

.order-stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.order-stat-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
}

.order-stat-info {
    display: flex;
    flex-direction: column;
}

.order-stat-value {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    line-height: 1;
    color: var(--text-primary);
}

.order-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.orders-list-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.order-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-fast);
}

.order-card:hover {
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-light);
}

.order-id {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.order-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
}

.order-status {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-xl);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.order-status.pending {
    background: rgba(245,158,11,0.12);
    color: #d97706;
}

.order-status.shipped {
    background: var(--accent-light);
    color: var(--accent);
}

.order-status.completed {
    background: var(--success-light);
    color: var(--success);
}

.order-status svg {
    width: 12px;
    height: 12px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
}

.order-items {
    display: flex;
    gap: 0.8rem;
    padding: 1.2rem 1.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.order-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    min-width: 220px;
    flex-shrink: 0;
}

.order-item img {
    width: 50px;
    height: 65px;
    object-fit: cover;
    border-radius: 4px;
}

.order-item-info {
    flex: 1;
    min-width: 0;
}

.order-item-name {
    font-size: 0.82rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.order-item-details {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
}

.order-item-price {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--accent);
    margin-top: 0.3rem;
}

.order-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-light);
}

.order-total-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.order-total-value {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem;
    color: var(--accent);
}

/* Settings Panel Styles */
.settings-sections {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.settings-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.settings-card.danger {
    border-color: rgba(184,66,51,0.3);
}

.settings-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-light);
}

.settings-card.danger .settings-card-header {
    background: var(--sale-light);
}

.settings-card-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
}

.settings-card-icon.danger {
    background: var(--sale-light);
    color: var(--sale);
}

.settings-card-icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
}

.settings-card-header h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.1rem;
}

.settings-card-header p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.settings-card-body {
    padding: 1.5rem;
}

.settings-form-group {
    margin-bottom: 1rem;
}

.settings-form-group:last-of-type {
    margin-bottom: 1.2rem;
}

.settings-form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.4rem;
}

.settings-form-group input {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.settings-form-group input:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px var(--accent-light);
}

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

.settings-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.9rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.settings-action-btn:hover {
    background: var(--accent-hover);
}

.settings-action-btn.secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.settings-action-btn.secondary:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.settings-action-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.settings-action-btn:active {
    transform: scale(0.98);
}

.settings-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    margin-bottom: 0.8rem;
    transition: background var(--transition-fast);
}

.settings-toggle:hover {
    background: var(--bg-tertiary);
}

.settings-toggle-info {
    flex: 1;
}

.settings-toggle-title {
    display: block;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.settings-toggle-desc {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 28px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--border);
    border-radius: 28px;
    transition: background var(--transition-fast);
    cursor: pointer;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    left: 3px;
    bottom: 3px;
    width: 22px;
    height: 22px;
    background: #fff;
    border-radius: 50%;
    transition: transform var(--transition-fast);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--accent);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(22px);
}

.danger-warning {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.2rem;
    padding: 1rem;
    background: var(--sale-light);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--sale);
}

.settings-danger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 1rem;
    background: transparent;
    color: var(--sale);
    border: 2px solid var(--sale);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.settings-danger-btn:hover {
    background: var(--sale);
    color: #fff;
}

.settings-danger-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

/* Orders Empty State */
.orders-empty {
    text-align: center;
    padding: 4rem 2rem;
}

.orders-empty-icon {
    width: 120px;
    height: 120px;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.orders-empty-icon svg {
    width: 50px;
    height: 50px;
    stroke: var(--text-muted);
    fill: none;
    stroke-width: 1.2;
}

.orders-empty h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}

.orders-empty p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.orders-empty-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 2rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.orders-empty-btn:hover {
    background: var(--accent-hover);
}

/* Responsive Fullscreen Panels */
@media (max-width: 767px) {
    .fullscreen-panel-header {
        padding: 1rem 1.2rem;
    }
    
    .fullscreen-back-btn span {
        display: none;
    }
    
    .fullscreen-back-btn {
        padding: 0.6rem;
        border-radius: 50%;
    }
    
    .fullscreen-panel-title {
        font-size: 1.4rem;
    }
    
    .fullscreen-panel-body {
        padding: 1.2rem;
    }
    
    .fullscreen-panel-footer {
        padding: 1rem 1.2rem;
    }
    
    .profile-hero {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .profile-avatar-large {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .profile-avatar-edit {
        width: 28px;
        height: 28px;
    }
    
    .profile-avatar-edit svg {
        width: 14px;
        height: 14px;
    }
    
    .profile-remove-photo {
        font-size: 0.68rem;
        padding: 0.35rem 0.7rem;
    }
    
    .profile-hero-info h2 {
        font-size: 1.5rem;
    }
    
    .profile-form-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-form-group.full-width {
        grid-column: span 1;
    }
    
    .orders-stats {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .order-stat-card {
        padding: 1rem;
    }
    
    .order-stat-icon {
        width: 44px;
        height: 44px;
    }
    
    .order-stat-value {
        font-size: 1.5rem;
    }
    
    .order-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
        padding: 1rem;
    }
    
    .order-items {
        padding: 1rem;
    }
    
    .order-item {
        min-width: 200px;
        padding: 0.6rem;
    }
    
    .order-card-footer {
        padding: 0.8rem 1rem;
    }
    
    .settings-card-header {
        padding: 1rem;
    }
    
    .settings-card-icon {
        width: 40px;
        height: 40px;
    }
    
    .settings-card-body {
        padding: 1rem;
    }
    
    .settings-form-row {
        grid-template-columns: 1fr;
    }
    
    .settings-toggle {
        padding: 0.8rem;
    }
    
    .settings-toggle-title {
        font-size: 0.88rem;
    }
    
    .settings-toggle-desc {
        font-size: 0.72rem;
    }
    
    .toggle-switch {
        width: 44px;
        height: 24px;
    }
    
    .toggle-slider::before {
        width: 18px;
        height: 18px;
    }
    
    .toggle-switch input:checked + .toggle-slider::before {
        transform: translateX(20px);
    }
}

/* ═══════════════ TOAST ═══════════════ */
.toast {
    position: fixed; bottom: 2rem; left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: var(--text-primary); color: var(--bg-primary);
    padding: 0.9rem 1.8rem;
    display: flex; align-items: center; gap: 0.7rem;
    z-index: 10003; opacity: 0;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.88rem; font-weight: 500;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast svg { width: 20px; height: 20px; stroke: var(--success); fill: none; stroke-width: 2; }

/* ═══════════════ NO PRODUCTS ═══════════════ */
.no-products {
    grid-column: 1 / -1; text-align: center; padding: 5rem 2rem;
}
.no-products-icon {
    width: 100px; height: 100px; margin: 0 auto 1.5rem;
    background: var(--bg-secondary); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.no-products-icon svg {
    width: 44px; height: 44px; stroke: var(--text-muted); fill: none; stroke-width: 1.2;
}
.no-products h3 {
    font-size: 1.1rem; font-weight: 600; color: var(--text-primary); margin-bottom: 0.4rem;
}
.no-products p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }
.no-products button {
    padding: 0.8rem 1.8rem;
    background: var(--accent); color: #fff; border: none;
    cursor: pointer; font-family: inherit;
    font-size: 0.8rem; font-weight: 600;
    letter-spacing: 0.08em; text-transform: uppercase;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}
.no-products button:hover { background: var(--accent-hover); }

/* ═══════════════ FOOTER ═══════════════ */
footer {
    background: var(--bg-secondary);
    padding: 4rem 4% 2rem;
    border-top: 1px solid var(--border);
    margin-top: 4rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto 3rem;
}

.footer-column {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    margin-bottom: 1.5rem;
}
.footer-col h4 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.8rem; }
.footer-col a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}
.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-copy {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.footer-payments { display: flex; gap: 1rem; }
.footer-payments span {
    padding: 0.5rem 1rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* ═══════════════ FILTERS OVERLAY ═══════════════ */
.filters-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.4); backdrop-filter: blur(4px);
    z-index: 9999; opacity: 0; visibility: hidden;
    transition: all var(--transition);
}
.filters-overlay.active { opacity: 1; visibility: visible; }

/* ═══════════════ RESPONSIVE ═══════════════ */

/* Extra Large Desktop (1400px+) */
@media (min-width: 1400px) {
    .shop-container { max-width: 1600px; gap: 3rem; }
    .products-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
    .shop-hero { height: 75vh; max-height: 800px; }
    .shop-hero-title { font-size: 9rem; }
}

/* Large Desktop (1200px - 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
    .products-grid { grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
}

/* Desktop / Small Desktop (1024px - 1199px) */
@media (min-width: 1024px) and (max-width: 1199px) {
    .shop-container { grid-template-columns: 240px 1fr; gap: 2rem; }
    .products-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
    .header-center { max-width: 300px; margin: 0 2rem; }
}

/* Tablet Landscape (768px - 1023px) */
@media (max-width: 1023px) {
    .shop-container { grid-template-columns: 1fr; padding: 0 4%; }
    .filters-sidebar {
        position: fixed; top: 0; left: 0;
        width: 100%; max-width: 340px; height: 100%;
        background: var(--bg-card); z-index: 10000;
        transform: translateX(-100%); transition: transform var(--transition);
        border-radius: 0; max-height: 100%;
        box-shadow: 10px 0 30px rgba(0,0,0,0.1);
        padding: 0;
        display: flex; flex-direction: column;
    }
    .filters-sidebar.active { transform: translateX(0); }
    .filters-header-mobile { display: flex; }
    .filters-sidebar .filters-content-inner { 
        padding: 1rem 1.5rem; flex: 1; overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .filters-sidebar .filter-options.scrollable {
        max-height: 180px;
    }
    .filters-footer { 
        padding: 1rem 1.5rem; 
        border-top: 1px solid var(--border-light);
        background: var(--bg-secondary);
    }
    .mobile-filters-toggle { display: flex; }
    .mobile-apply-btn { display: block; }
    .products-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
    .product-modal-content { grid-template-columns: 1fr; max-height: 100vh; }
    .product-modal-image { max-height: 45vh; padding: 1rem; }
    .product-modal-info { max-height: 55vh; padding: 1.5rem; }
    .product-modal { padding: 0; }
    .product-modal-content { border-radius: 0; height: 100%; }
    .header-center { max-width: 280px; margin: 0 1.5rem; }
    .shop-hero { height: 60vh; min-height: 400px; }
}

/* Tablet Portrait (600px - 767px) */
@media (max-width: 767px) {
    .account-modal-content { padding: 1.8rem; max-width: 360px !important; max-height: 90vh !important; overflow-y: auto !important; }
    .account-header { margin-bottom: 1.5rem; }
    .account-icon { width: 60px; height: 60px; }
    .account-icon svg { width: 28px; height: 28px; }
    .account-header h2 { font-size: 1.5rem; }
    .account-header p { font-size: 0.82rem; }
    .account-form .form-group input { padding: 0.75rem 0.9rem; font-size: 0.9rem; }
    .account-form .form-row { grid-template-columns: 1fr; gap: 0; }
    .account-submit-btn { padding: 0.9rem; font-size: 0.82rem; }
    .account-social-btn { padding: 0.75rem; font-size: 0.8rem; }
    .user-menu { top: 66px; right: 3%; width: 260px; }
    .user-menu-header { padding: 1rem; }
    .user-avatar { width: 42px; height: 42px; font-size: 0.9rem; }
    .user-name { font-size: 0.88rem; }
    .user-menu-item { padding: 0.65rem 1rem; font-size: 0.82rem; }
    header { height: 60px; padding: 0 3%; }
    .logo-mark { width: 36px; height: 36px; }
    .logo-mark span { font-size: 0.6rem; }
    .logo-name { font-size: 1.5rem; letter-spacing: 0.15em; }
    .logo-tag { font-size: 0.5rem; }
    .header-btn { width: 38px; height: 38px; }
    .header-btn svg { width: 18px; height: 18px; }
    .header-btn .btn-count { min-width: 16px; height: 16px; font-size: 0.55rem; }
    .header-center { display: none; }
    .categories-nav { top: 60px; }
    .categories-list { justify-content: flex-start; padding: 0 0.5rem; }
    .categories-list li a { padding: 0.75rem 1rem; font-size: 0.68rem; }
    main { padding-top: 108px; }
    .shop-hero { height: 50vh; min-height: 300px; margin-bottom: 1.5rem; }
    .shop-hero-title { font-size: clamp(3rem, 10vw, 5rem); letter-spacing: 0.15em; }
    .hero-eyebrow { font-size: 0.65rem; letter-spacing: 0.2em; margin-bottom: 0.5rem; }
    .shop-hero-subtitle { font-size: 0.85rem; }
    .hero-cta { padding: 0.7rem 1.5rem; font-size: 0.7rem; margin-top: 1.5rem; }
    .shop-container { padding: 0 3%; }
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
    .products-header {
        flex-direction: column; align-items: stretch;
        gap: 0.8rem; margin-bottom: 1rem;
    }
    .products-count { font-size: 0.8rem; }
    .products-sort { width: 100%; }
    .products-sort label { font-size: 0.75rem; }
    .products-sort select { flex: 1; font-size: 0.8rem; padding: 0.55rem 2rem 0.55rem 0.7rem; }
    .mobile-filters-toggle { padding: 0.75rem 1rem; font-size: 0.75rem; margin-bottom: 1rem; }
    .active-filters { gap: 0.35rem; margin-bottom: 1rem; }
    .active-filter-tag { padding: 0.3rem 0.6rem; font-size: 0.68rem; }
    .product-card { border-radius: var(--radius-sm); }
    .product-badge { top: 0.5rem; left: 0.5rem; padding: 0.2rem 0.5rem; font-size: 0.55rem; }
    .product-wishlist { top: 0.5rem; right: 0.5rem; width: 32px; height: 32px; opacity: 1; }
    .product-wishlist svg { width: 15px; height: 15px; }
    .product-cart-slide { display: none; }
    .product-info { padding: 0.7rem 0.75rem 0.75rem; }
    .product-brand { font-size: 0.55rem; margin-bottom: 0.2rem; }
    .product-name { font-size: 0.8rem; margin-bottom: 0.4rem; line-height: 1.3; }
    .product-price { gap: 0.5rem; flex-wrap: wrap; }
    .product-price .current { font-size: 0.9rem; }
    .product-price .original { font-size: 0.7rem; }
    .product-price .discount { font-size: 0.6rem; padding: 0.12rem 0.35rem; }
    .sidebar-panel { width: 100%; }
    .sidebar-header { padding: 1.1rem 1.2rem; }
    .sidebar-title { font-size: 1.2rem; }
    .sidebar-items { padding: 1.2rem; }
    .sidebar-item { grid-template-columns: 70px 1fr; gap: 0.9rem; }
    .sidebar-item-name { font-size: 0.82rem; }
    .sidebar-item-price { font-size: 0.85rem; }
    .cart-footer { padding: 1.1rem 1.2rem; }
    .cart-subtotal { font-size: 0.9rem; }
    .cart-checkout { padding: 0.85rem; font-size: 0.78rem; }
    .product-modal-close { top: 0.5rem; right: 0.5rem; width: 38px; height: 38px; }
    .product-modal-close svg { width: 18px; height: 18px; }
    .product-modal-image { max-height: 38vh; padding: 0.8rem; }
    .product-modal-info { max-height: 62vh; padding: 1.2rem; }
    .product-modal-brand { font-size: 0.62rem; }
    .product-modal-name { font-size: 1.35rem; margin-bottom: 0.7rem; }
    .product-modal-price-wrap { margin-bottom: 1rem; gap: 0.6rem; }
    .product-modal-price { font-size: 1.15rem; }
    .product-modal-original { font-size: 0.9rem; }
    .product-modal-discount { font-size: 0.65rem; padding: 0.2rem 0.45rem; }
    .product-modal-desc { font-size: 0.82rem; margin-bottom: 1.2rem; line-height: 1.6; }
    .product-modal-sizes { margin-bottom: 1.2rem; }
    .product-modal-sizes h4 { font-size: 0.7rem; margin-bottom: 0.6rem; }
    .modal-size-grid { gap: 0.4rem; }
    .modal-size-btn { min-width: 44px; height: 44px; font-size: 0.78rem; padding: 0 0.7rem; }
    .modal-size-selected { font-size: 0.72rem; padding: 0.4rem 0.7rem; }
    .product-modal-add { padding: 0.95rem; font-size: 0.78rem; }
    .product-modal-features { margin-top: 1.2rem; padding-top: 1.2rem; gap: 0.5rem; }
    .feature-item svg { width: 20px; height: 20px; margin-bottom: 0.3rem; }
    .feature-item span { font-size: 0.58rem; }
    .size-popup-content { padding: 1.5rem; width: 92%; max-width: 360px; }
    .size-popup-title { font-size: 1.3rem; }
    .size-popup-product { font-size: 0.85rem; margin-bottom: 1.2rem; }
    .size-popup-grid { gap: 0.5rem; margin-bottom: 1.2rem; }
    .size-popup-btn { min-width: 48px; padding: 0.65rem 0.9rem; font-size: 0.82rem; }
    .size-popup-selected { font-size: 0.78rem; padding: 0.4rem 0.8rem; }
    .size-popup-actions { gap: 0.5rem; }
    .size-popup-actions button { padding: 0.75rem; font-size: 0.75rem; }
    .toast { bottom: 1rem; padding: 0.7rem 1.1rem; font-size: 0.8rem; max-width: 90%; }
    .toast svg { width: 18px; height: 18px; }
    footer { padding: 2rem 3% 1.5rem; margin-top: 2rem; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 2rem; }
    .footer-col h4 { font-size: 1rem; margin-bottom: 1rem; }
    .footer-col li { margin-bottom: 0.6rem; }
    .footer-col a { font-size: 0.82rem; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 1rem; padding-top: 1.5rem; }
    .footer-copy { font-size: 0.75rem; }
    .footer-payments { flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
    .footer-payments span { padding: 0.4rem 0.7rem; font-size: 0.65rem; border-radius: var(--radius-sm); }
    .no-products { padding: 3rem 1.5rem; }
    .no-products-icon { width: 80px; height: 80px; margin-bottom: 1rem; }
    .no-products-icon svg { width: 36px; height: 36px; }
    .no-products h3 { font-size: 1rem; }
    .no-products p { font-size: 0.85rem; margin-bottom: 1.2rem; }
    .no-products button { padding: 0.7rem 1.5rem; font-size: 0.75rem; }
}

/* Mobile Large (480px - 599px) */
@media (max-width: 599px) {
    .shop-hero { height: 45vh; min-height: 280px; }
    .shop-hero-title { font-size: clamp(2.5rem, 12vw, 4rem); }
    .products-grid { gap: 0.5rem; }
    .product-info { padding: 0.6rem 0.65rem 0.65rem; }
    .product-brand { font-size: 0.52rem; }
    .product-name { font-size: 0.75rem; }
    .product-price .current { font-size: 0.85rem; }
    .filters-sidebar { max-width: 300px; }
}

/* Mobile Medium (380px - 479px) */
@media (max-width: 479px) {
    header { padding: 0 2.5%; }
    .logo-name { font-size: 1.35rem; }
    .logo-tag { display: none; }
    .header-btn { width: 36px; height: 36px; }
    .header-right { gap: 0.4rem; }
    .categories-list li a { padding: 0.65rem 0.75rem; font-size: 0.62rem; }
    .shop-hero { height: 42vh; min-height: 260px; }
    .shop-hero-title { font-size: clamp(2.2rem, 14vw, 3.5rem); letter-spacing: 0.1em; }
    .hero-eyebrow { font-size: 0.6rem; }
    .hero-cta { padding: 0.65rem 1.3rem; font-size: 0.65rem; }
    .shop-container { padding: 0 2.5%; }
    .products-grid { gap: 0.4rem; }
    .product-card { border-radius: 4px; }
    .product-info { padding: 0.5rem 0.55rem 0.55rem; }
    .product-brand { font-size: 0.5rem; letter-spacing: 0.1em; }
    .product-name { font-size: 0.7rem; margin-bottom: 0.3rem; -webkit-line-clamp: 2; }
    .product-price { gap: 0.4rem; }
    .product-price .current { font-size: 0.8rem; }
    .product-price .original { font-size: 0.65rem; }
    .product-price .discount { font-size: 0.55rem; padding: 0.1rem 0.28rem; }
    .product-badge { top: 0.4rem; left: 0.4rem; padding: 0.18rem 0.4rem; font-size: 0.5rem; }
    .product-wishlist { top: 0.4rem; right: 0.4rem; width: 28px; height: 28px; }
    .product-wishlist svg { width: 13px; height: 13px; }
    .mobile-filters-toggle { padding: 0.7rem 0.9rem; font-size: 0.7rem; }
    .sidebar-item { grid-template-columns: 65px 1fr; gap: 0.8rem; }
    .sidebar-item-brand { font-size: 0.55rem; }
    .sidebar-item-name { font-size: 0.78rem; }
    .sidebar-item-details { font-size: 0.7rem; }
    .sidebar-item-price { font-size: 0.82rem; }
    .quantity-btn { width: 26px; height: 26px; font-size: 0.8rem; }
    .quantity-value { width: 28px; font-size: 0.75rem; }
    .fav-item-add-cart { padding: 0.45rem 0.7rem; font-size: 0.62rem; }
    .sidebar-item-remove { font-size: 0.68rem; }
    .product-modal-image { max-height: 35vh; }
    .product-modal-info { max-height: 65vh; padding: 1rem; }
    .product-modal-name { font-size: 1.2rem; }
    .product-modal-price { font-size: 1.1rem; }
    .product-modal-desc { font-size: 0.78rem; }
    .modal-size-btn { min-width: 40px; height: 40px; font-size: 0.75rem; }
    .size-popup-content { padding: 1.2rem; width: 94%; }
    .size-popup-title { font-size: 1.2rem; }
    .size-popup-btn { min-width: 44px; padding: 0.55rem 0.8rem; font-size: 0.78rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.2rem 1.5rem; }
    .footer-col h4 { font-size: 0.95rem; margin-bottom: 0.8rem; }
    .footer-col a { font-size: 0.78rem; }
    .footer-col li { margin-bottom: 0.5rem; }
}

/* Mobile Small (320px - 379px) */
@media (max-width: 379px) {
    header { height: 56px; }
    .logo-mark { width: 32px; height: 32px; }
    .logo-mark span { font-size: 0.55rem; }
    .logo-name { font-size: 1.2rem; }
    .header-btn { width: 34px; height: 34px; }
    .header-btn svg { width: 16px; height: 16px; }
    .header-btn .btn-count { min-width: 15px; height: 15px; font-size: 0.5rem; top: 0; right: 0; }
    .categories-nav { top: 56px; }
    .categories-list li a { padding: 0.55rem 0.6rem; font-size: 0.58rem; letter-spacing: 0.08em; }
    main { padding-top: 100px; }
    .shop-hero { height: 38vh; min-height: 220px; }
    .shop-hero-title { font-size: 2rem; letter-spacing: 0.08em; }
    .hero-eyebrow { font-size: 0.55rem; letter-spacing: 0.15em; }
    .shop-hero-subtitle { font-size: 0.75rem; letter-spacing: 0.1em; }
    .hero-cta { padding: 0.6rem 1.1rem; font-size: 0.6rem; }
    .shop-container { padding: 0 2%; }
    .products-grid { gap: 0.35rem; }
    .product-info { padding: 0.45rem 0.5rem 0.5rem; }
    .product-brand { font-size: 0.48rem; }
    .product-name { font-size: 0.65rem; line-height: 1.25; }
    .product-price .current { font-size: 0.75rem; }
    .product-price .original { font-size: 0.6rem; }
    .product-price .discount { font-size: 0.5rem; }
    .product-badge { font-size: 0.48rem; padding: 0.15rem 0.35rem; }
    .product-wishlist { width: 26px; height: 26px; }
    .product-wishlist svg { width: 12px; height: 12px; }
    .mobile-filters-toggle { padding: 0.65rem 0.8rem; font-size: 0.65rem; }
    .products-count { font-size: 0.75rem; }
    .products-sort label { font-size: 0.7rem; }
    .products-sort select { font-size: 0.75rem; padding: 0.5rem 1.8rem 0.5rem 0.6rem; }
    .filters-sidebar { max-width: 280px; }
    .sidebar-header { padding: 1rem; }
    .sidebar-title { font-size: 1.1rem; }
    .sidebar-items { padding: 1rem; }
    .sidebar-item { grid-template-columns: 58px 1fr; gap: 0.7rem; padding-bottom: 1rem; margin-bottom: 1rem; }
    .cart-footer { padding: 1rem; }
    .product-modal-info { padding: 0.9rem; }
    .product-modal-name { font-size: 1.1rem; }
    .product-modal-sizes h4 { font-size: 0.65rem; }
    .modal-size-btn { min-width: 38px; height: 38px; font-size: 0.7rem; }
    .product-modal-add { padding: 0.85rem; font-size: 0.72rem; }
    .size-popup-content { padding: 1rem; }
    .size-popup-title { font-size: 1.1rem; }
    .size-popup-product { font-size: 0.8rem; }
    .size-popup-btn { min-width: 40px; padding: 0.5rem 0.7rem; font-size: 0.72rem; }
    .toast { padding: 0.6rem 1rem; font-size: 0.75rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.2rem; }
    .footer-col h4 { font-size: 0.9rem; }
    .footer-col a { font-size: 0.75rem; }
    .footer-payments span { padding: 0.35rem 0.6rem; font-size: 0.6rem; }
    .no-products { padding: 2.5rem 1rem; }
    .no-products-icon { width: 70px; height: 70px; }
    .no-products-icon svg { width: 32px; height: 32px; }
    .no-products h3 { font-size: 0.95rem; }
    .no-products p { font-size: 0.8rem; }
    .no-products button { padding: 0.65rem 1.3rem; font-size: 0.7rem; }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .product-wishlist { opacity: 1; }
    .product-cart-slide { display: none; }
    .product-card:hover { transform: none; }
    .product-card:active { transform: scale(0.98); }
}

/* Landscape phone */
@media (max-height: 500px) and (orientation: landscape) {
    .shop-hero { height: 80vh; min-height: 200px; }
    .product-modal-content { grid-template-columns: 1fr 1fr; }
    .product-modal-image { max-height: 100vh; }
    .product-modal-info { max-height: 100vh; }
}

/* Print styles */
@media print {
    header, .categories-nav, .filters-sidebar, .mobile-filters-toggle,
    .product-wishlist, .product-cart-slide, footer { display: none !important; }
    main { padding-top: 0; }
    .shop-hero { display: none; }
    .products-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ═══════════════ SIZE GUIDE MODAL ═══════════════ */
.size-guide-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.65); backdrop-filter: blur(6px);
    z-index: 10006; display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: all var(--transition);
    padding: 1rem;
}
.size-guide-modal.active { opacity: 1; visibility: visible; z-index: 9999999 !important; }

.size-guide-content {
    background: var(--bg-card); width: 100%; max-width: 680px;
    max-height: 90vh; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl); display: flex; flex-direction: column;
    transform: scale(0.94) translateY(12px); transition: transform var(--transition);
    overflow: hidden;
}
.size-guide-modal.active .size-guide-content { transform: scale(1) translateY(0); }

.size-guide-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.4rem 1.6rem; border-bottom: 1px solid var(--border-light);
    background: var(--bg-secondary); flex-shrink: 0;
}
.size-guide-header-left { display: flex; align-items: center; gap: 0.9rem; }
.size-guide-header-icon {
    width: 44px; height: 44px; background: var(--accent-light);
    border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.size-guide-header-icon svg {
    width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 2;
}
.size-guide-header h3 {
    font-family: 'Bebas Neue', sans-serif; font-size: 1.3rem;
    letter-spacing: 0.08em; color: var(--text-primary);
}
.size-guide-header p { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.1rem; }
.size-guide-close {
    width: 40px; height: 40px; background: transparent; border: none;
    border-radius: var(--radius-md); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background var(--transition-fast);
}
.size-guide-close:hover { background: var(--bg-tertiary); }
.size-guide-close svg { width: 20px; height: 20px; stroke: var(--text-primary); stroke-width: 2; fill: none; }

.size-guide-tabs {
    display: flex; border-bottom: 1px solid var(--border-light);
    background: var(--bg-card); flex-shrink: 0; overflow-x: auto;
    -ms-overflow-style: none; scrollbar-width: none;
}
.size-guide-tabs::-webkit-scrollbar { display: none; }
.size-guide-tab {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.85rem 1.3rem; border: none; background: transparent;
    color: var(--text-muted); font-family: inherit; font-size: 0.8rem; font-weight: 500;
    cursor: pointer; border-bottom: 2px solid transparent;
    transition: all var(--transition-fast); white-space: nowrap; flex-shrink: 0;
}
.size-guide-tab svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; }
.size-guide-tab:hover { color: var(--text-primary); background: var(--bg-secondary); }
.size-guide-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

.size-guide-body { flex: 1; overflow-y: auto; padding: 1.5rem; }

.size-guide-panel { display: none; }
.size-guide-panel.active { display: block; }

/* Size link button (inline with talla title) */
.size-guide-link {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.35rem 0.8rem; border: 1.5px solid var(--accent);
    background: var(--accent-light); color: var(--accent);
    border-radius: var(--radius-xl); cursor: pointer;
    font-family: inherit; font-size: 0.7rem; font-weight: 600;
    letter-spacing: 0.04em; transition: all var(--transition-fast);
}
.size-guide-link:hover { background: var(--accent); color: #fff; }
.size-guide-link svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; }

/* Size popup guide button */
.size-popup-guide-btn {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.4rem 1rem; border: 1.5px solid var(--accent);
    background: var(--accent-light); color: var(--accent);
    border-radius: var(--radius-xl); cursor: pointer;
    font-family: inherit; font-size: 0.72rem; font-weight: 600;
    letter-spacing: 0.04em; transition: all var(--transition-fast);
    margin-bottom: 0.8rem;
}
.size-popup-guide-btn:hover { background: var(--accent); color: #fff; }
.size-popup-guide-btn svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; }

/* "Usar esta talla" button inside result */
.sg-use-btn {
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    width: 100%; margin-top: 1rem;
    padding: 0.85rem 1.2rem;
    background: var(--success); color: #fff;
    border: none; border-radius: var(--radius-sm);
    font-family: inherit; font-size: 0.82rem; font-weight: 700;
    letter-spacing: 0.08em; text-transform: uppercase;
    cursor: pointer; transition: all var(--transition-fast);
    box-shadow: 0 4px 16px rgba(74,124,89,0.25);
    animation: sizeGuideBtn 0.35s cubic-bezier(0.4,0,0.2,1);
}
@keyframes sizeGuideBtn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.sg-use-btn:hover:not(:disabled) {
    background: #3a6347; transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(74,124,89,0.35);
}
.sg-use-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.5; }
.sg-use-btn.not-available {
    background: var(--bg-tertiary); color: var(--text-muted);
    box-shadow: none; cursor: not-allowed;
}

/* Block scroll inside size guide (body already handled via JS) */
.size-guide-modal {
    overscroll-behavior: contain;
}
.size-guide-content {
    overscroll-behavior: contain;
}
.size-guide-body {
    overscroll-behavior: contain;
}

/* Finder */
.size-finder {
    background: var(--bg-secondary); border-radius: var(--radius-md);
    padding: 1.3rem; margin-bottom: 1rem;
}
.size-finder-title {
    font-weight: 700; font-size: 0.88rem; color: var(--text-primary);
    margin-bottom: 1rem; display: flex; align-items: center; gap: 0.6rem;
}
.size-finder-title span {
    font-size: 0.62rem; background: var(--accent); color: #fff;
    padding: 0.15rem 0.5rem; border-radius: var(--radius-xl); font-weight: 600; letter-spacing: 0.06em;
}
.size-finder-row {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; margin-bottom: 1rem;
}
.size-finder-field { display: flex; flex-direction: column; gap: 0.35rem; }
.size-finder-field label {
    font-size: 0.7rem; font-weight: 600; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.06em;
}
.size-finder-field input, .size-finder-field select {
    padding: 0.7rem 0.8rem; border: 1.5px solid var(--border);
    border-radius: var(--radius-sm); background: var(--bg-card);
    color: var(--text-primary); font-family: inherit; font-size: 0.88rem;
    transition: border var(--transition-fast);
    -moz-appearance: textfield;
}
.size-finder-field input::-webkit-outer-spin-button,
.size-finder-field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.size-finder-field input:focus, .size-finder-field select:focus {
    outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-light);
}
.size-finder-btn {
    display: flex; align-items: center; justify-content: center; gap: 0.5rem;
    width: 100%; padding: 0.8rem; background: var(--accent); color: #fff; border: none;
    border-radius: var(--radius-sm); cursor: pointer; font-family: inherit;
    font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
    transition: all var(--transition-fast);
}
.size-finder-btn:hover { background: var(--accent-hover); transform: translateY(-1px); }
.size-finder-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }

.size-finder-result {
    display: none; margin-top: 1rem;
    background: var(--success-light); border: 1.5px solid var(--success);
    border-radius: var(--radius-md); padding: 1.1rem 1.2rem;
    gap: 1rem; align-items: center;
}
.size-finder-result.visible { display: flex; animation: fadeIn 0.35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.sfr-icon {
    width: 44px; height: 44px; background: var(--success); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.sfr-icon svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2.5; }
.sfr-text { flex: 1; }
.sfr-label { font-size: 0.7rem; color: var(--success); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.sfr-size { font-family: 'Bebas Neue', sans-serif; font-size: 2.5rem; color: var(--text-primary); line-height: 1; }
.sfr-desc { font-size: 0.78rem; color: var(--text-secondary); margin-top: 0.2rem; }

/* Size table */
.sg-section-title {
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--text-muted);
    margin-bottom: 0.7rem; margin-top: 1.2rem;
}
.sg-section-title:first-child { margin-top: 0; }
.size-table-wrapper { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--border-light); }
.size-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.size-table th {
    background: var(--bg-secondary); padding: 0.6rem 0.8rem;
    font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.08em; color: var(--text-muted); text-align: center;
    border-bottom: 1px solid var(--border-light); white-space: nowrap;
}
.size-table td {
    padding: 0.55rem 0.8rem; text-align: center;
    border-bottom: 1px solid var(--border-light); color: var(--text-secondary);
}
.size-table tbody tr:last-child td { border-bottom: none; }
.size-table tbody tr:hover { background: var(--bg-secondary); }
.size-table td:first-child { font-weight: 700; color: var(--text-primary); }
.size-table tr.highlighted td { background: var(--accent-light); color: var(--accent); font-weight: 600; }
.size-table tr.highlighted td:first-child { color: var(--accent); }

/* Measure steps */
.measure-tip {
    display: flex; gap: 0.9rem; align-items: flex-start;
    background: var(--accent-light); border-radius: var(--radius-md);
    padding: 1rem 1.1rem; margin-bottom: 1.2rem;
}
.measure-tip-icon {
    width: 36px; height: 36px; background: var(--accent);
    border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.measure-tip-icon svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2; }
.measure-tip-text h5 { font-size: 0.82rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.2rem; }
.measure-tip-text p { font-size: 0.78rem; color: var(--text-secondary); line-height: 1.5; }

.measure-steps { display: flex; flex-direction: column; gap: 0.7rem; }
.measure-step {
    display: flex; gap: 0.9rem; align-items: flex-start;
    padding: 0.8rem 1rem; background: var(--bg-secondary);
    border-radius: var(--radius-sm); border-left: 3px solid var(--accent);
}
.measure-step-num {
    width: 28px; height: 28px; background: var(--accent); color: #fff;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.8rem; flex-shrink: 0;
}
.measure-step-text strong { display: block; font-size: 0.85rem; color: var(--text-primary); margin-bottom: 0.2rem; }
.measure-step-text span { font-size: 0.78rem; color: var(--text-secondary); line-height: 1.5; }

@media (max-width: 767px) {
    .size-guide-content { max-width: 100%; max-height: 95vh; border-radius: var(--radius-md); }
    .size-guide-header { padding: 1rem 1.1rem; }
    .size-guide-header h3 { font-size: 1.1rem; }
    .size-guide-header p { font-size: 0.72rem; }
    .size-guide-tab { padding: 0.7rem 0.9rem; font-size: 0.72rem; }
    .size-guide-body { padding: 1rem; }
    .size-finder-row { grid-template-columns: 1fr; gap: 0.6rem; }
    .sfr-size { font-size: 2rem; }
    .size-table { font-size: 0.75rem; }
    .size-table th, .size-table td { padding: 0.45rem 0.5rem; }
}

/* ═══════════════ DARK THEME ═══════════════ */
body.dark-theme {
    --bg-primary: #121212;
    --bg-secondary: #1e1e1e;
    --bg-tertiary: #2c2c2c;
    --bg-card: #181818;
    --text-primary: #f5f5f5;
    --text-secondary: #b0b0b0;
    --text-muted: #888888;
    --border: #333333;
    --border-light: #222222;
    --overlay: rgba(18, 18, 18, 0.92);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.5);
    --shadow-xl: 0 25px 60px rgba(0,0,0,0.6);
}

/* Lógica visual para cambiar de icono de luna a sol */
body.dark-theme .sun-icon { display: block !important; }
body.dark-theme .moon-icon { display: none !important; }

/* Transición suave para todos los colores de fondo y texto */
body {
    transition: background-color var(--transition), color var(--transition);
}


/* ====================================================
   EFECTO LUPA (ZOOM WINDOW)
==================================================== */
.modal-zoom-window {
    position: absolute;
    top: 50%;
    right: 4.3%; /* Centrado en el hueco de la derecha */
    transform: translateY(-80%); /* Centrado vertical */
    width: 150px; /* Tamaño del visor */
    height: 150px;
    background-color: var(--bg-card);
    background-repeat: no-repeat;
    background-size: 800%; /* ZOOM MUCHO MÁS ALTO: Para ver detalles de 1cm */
    z-index: 9;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease;
    border-radius: var(--radius-lg);
    border: 3px solid var(--accent);
    box-shadow: var(--shadow-xl);
}

/* Añadimos un pequeño indicador circular en la imagen principal (Opcional) */
.product-modal-image {
    cursor: crosshair !important;
}

.modal-zoom-window.active {
    opacity: 1;
    visibility: visible;
    /* Un sutil brillo azul para que combine con el marco */
    box-shadow: 0 12px 40px rgba(61, 90, 128, 0.25); 
}

/* Cambiamos el cursor para invitar al cliente a explorar */
.product-modal-image {
    cursor: crosshair !important;
}

/* Desactivamos el efecto lupa en móviles y tablets porque usan el dedo */
@media (max-width: 1024px) {
    .modal-zoom-window {
        display: none !important;
    }
}

/* COOKIE BANNER */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    z-index: 9999;
    padding: 20px;
    border-radius: 8px;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.cookie-banner.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 20px);
}

.cookie-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
}

.cookie-text { flex: 1; min-width: 300px; }
.cookie-text h4 { margin-bottom: 8px; color: var(--text-primary); }
.cookie-text p { font-size: 14px; color: var(--text-secondary); line-height: 1.4; }
.cookie-text a { color: var(--accent); text-decoration: underline; }

.cookie-actions { display: flex; gap: 10px; }

.cookie-btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.cookie-btn.primary { background: var(--accent); color: white; }
.cookie-btn.primary:hover { background: var(--accent-hover); }

/* ====================================================
   FIX Z-INDEX DE BOTONES Y EFECTOS EN MODAL
==================================================== */
.product-wishlist, 
.product-cart-slide {
    z-index: 10; /* Asegura que el botón siempre esté por encima del hover de imagen */
}

/* Efectos en la Ventana Modal */
.product-modal-image img.primary-img,
.product-modal-image img.secondary-img {
    width: 100%; height: 100%; object-fit: contain; max-height: 80vh;
    transition: transform 0.4s ease, opacity 0.4s ease;
}
.product-modal-image.hover-swap_image .secondary-img {
    position: absolute; top: 0; left: 0; opacity: 0; pointer-events: none;
}
.product-modal-image.hover-swap_image:hover .primary-img { opacity: 0; }
.product-modal-image.hover-swap_image:hover .secondary-img { opacity: 1; }
.product-modal-image.hover-zoom:hover .primary-img { transform: scale(1.15); }
.product-modal-image.hover-fade:hover .primary-img { opacity: 0.6; }


/* --- Bloque de Direcciones en Pedidos --- */
.order-card-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-light);
}

.order-info-column h4 {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.order-info-column p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 0.2rem;
}

/* --- Bloque de Notas/Instrucciones --- */
.order-notes-block {
    display: flex;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--accent-light);
    border-bottom: 1px solid var(--border-light);
}

.order-notes-icon {
    color: var(--accent);
    margin-top: 2px;
}

.order-notes-content h4 {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.3rem;
}

.order-notes-content p {
    font-size: 0.82rem;
    font-style: italic;
    color: var(--text-primary);
}

/* --- Ajuste Responsive --- */
@media (max-width: 767px) {
    .order-card-info-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ====================================================
   MODO IMPRESIÓN DE PEDIDOS (FACTURA / TICKET)
==================================================== */
@media print {
    /* 1. Ocultar absolutamente todo excepto el panel de pedidos */
    body.printing-order > *:not(#ordersPanel) {
        display: none !important;
    }

    /* 2. Limpiar el panel de botones y estadísticas */
    body.printing-order .fullscreen-panel-header,
    body.printing-order .orders-stats,
    body.printing-order .btn-print-order {
        display: none !important;
    }

    /* 3. Resetear cuerpo para papel */
    body.printing-order {
        background: white !important;
        color: black !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    body.printing-order #ordersPanel,
    body.printing-order .fullscreen-panel-content,
    body.printing-order .fullscreen-panel-body,
    body.printing-order .orders-list-container {
        position: static !important;
        display: block !important;
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
        background: white !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* 4. SELECCIÓN DE TARJETA: Evita duplicados */
    body.printing-order .order-card {
        display: none !important; 
    }
    
    body.printing-order .order-card.print-active {
        display: block !important;
        border: none !important;
        box-shadow: none !important;
        margin: 0 !important;
        padding: 20px !important;
        page-break-inside: avoid;
    }

    /* 5. Diseño de Factura */
    body.printing-order .order-card-header {
        border-bottom: 2px solid #000 !important;
        padding-bottom: 15px !important;
        margin-bottom: 20px !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    body.printing-order .order-id { font-size: 18pt !important; font-weight: bold !important; }
    body.printing-order .order-date { font-size: 11pt !important; color: #555 !important; }
    body.printing-order .order-status {
        border: 1px solid #000 !important;
        padding: 3px 10px !important;
        text-transform: uppercase !important;
        font-size: 9pt !important;
    }

    /* 6. Listado de productos (CORRECCIÓN VERTICAL) */
    body.printing-order .order-items {
        display: block !important; /* Forzamos apilación vertical */
        padding: 0 !important;
        overflow: visible !important;
    }

    body.printing-order .order-item {
        border-bottom: 1px solid #eee !important;
        padding: 15px 0 !important;
        display: flex !important; /* Imagen a la izquierda, texto a la derecha */
        gap: 20px !important;
        align-items: center !important;
        width: 100% !important;
        page-break-inside: avoid;
    }

    body.printing-order .order-item img {
        width: 80px !important; /* Tamaño optimizado para papel */
        height: 100px !important;
        object-fit: cover !important;
        flex-shrink: 0 !important;
    }

    body.printing-order .order-item-info {
        flex: 1 !important;
    }

    body.printing-order .order-item-name { 
        font-size: 13pt !important; 
        font-weight: bold !important;
        white-space: normal !important; /* Permite salto de línea si el nombre es largo */
    }

    /* 7. Desglose detallado al final */
    body.printing-order .order-card-footer {
        display: flex !important;
        justify-content: flex-end !important;
        border-top: 2px solid #000 !important;
        margin-top: 20px !important;
        padding-top: 15px !important;
    }

    body.printing-order .order-card-footer > div {
        width: 250px !important;
    }

    /* Líneas de Subtotal, Envío, etc. */
    body.printing-order .order-card-footer div[style*="display: flex"] {
        display: flex !important;
        justify-content: space-between !important;
        margin-bottom: 4px !important;
        font-size: 10pt !important;
    }

    body.printing-order .order-total-label { font-weight: bold !important; text-transform: uppercase !important; }
    body.printing-order .order-total-value { font-size: 15pt !important; font-weight: 800 !important; }

    /* Forzar visibilidad del descuento restando en negro */
    body.printing-order div[style*="color: var(--error)"] {
        color: #000 !important;
        font-weight: bold !important;
    }
.order-card-info-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        border-bottom: 2px solid #eee !important;
        padding: 15px 0 !important;
    }

    .order-notes-block {
        background: #f9f9f9 !important;
        border: 1px solid #eee !important;
        margin-top: 10px !important;
        padding: 10px !important;
    }
    
    .order-info-column h4, .order-notes-content h4 {
        color: #000 !important;
    }
} /* FIN DE MEDIA PRINT */
