@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Oswald:wght@500;700&display=swap');

:root {
    --bg-dark: #050505;
    --card-bg: rgba(20, 20, 20, 0.4);
    --gold: #D9C391;
    --gold-hover: #f7e6c1;
    --gold-dark: #a38c59;
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --whatsapp-green: #25D366;
    --whatsapp-hover: #1ebd5a;
    --glass-border: rgba(217, 195, 145, 0.15);
    --nav-h: 65px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Montserrat', sans-serif;
    background: radial-gradient(circle at 50% 0%, #1a1712 0%, #050505 60%, #000000 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

h1, h2, h3, .product-price, .hero-title {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ─── PROMO BANNER MARQUEE ───────────────────────────────── */
.promo-banner {
    background-color: var(--gold);
    color: #111;
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    z-index: 1001;
}

.promo-track {
    display: inline-flex;
    animation: marquee 28s linear infinite;
    white-space: nowrap;
}

.promo-track:hover {
    animation-play-state: paused;
}

.promo-item {
    display: inline-block;
    padding: 0 50px;
    font-weight: 700;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    white-space: nowrap;
}

@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ─── DESKTOP HEADER ─────────────────────────────────────── */
.header {
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding-top: 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    position: relative;
}

.logo {
    height: 100px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(217, 195, 145, 0.2));
    transition: transform 0.3s ease;
}
.logo:hover { transform: scale(1.05); }

.header-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.header-title {
    font-size: 1.5rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    text-align: center;
}

@media (min-width: 768px) {
    .header-container {
        flex-direction: row;
        justify-content: space-between;
    }
    .header-title {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        font-size: 1.8rem;
    }
    .header-right {
        flex-direction: row;
        justify-content: flex-end;
        width: auto;
        gap: 25px;
    }
}

.search-input {
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    background: rgba(255,255,255,0.05);
    color: var(--text-primary);
    font-family: 'Montserrat', sans-serif;
    outline: none;
    width: 100%;
    max-width: 280px;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}
.search-input::placeholder { color: rgba(255,255,255,0.4); }
.search-input:focus {
    border-color: var(--gold);
    background: rgba(255,255,255,0.1);
    box-shadow: 0 0 15px rgba(217,195,145,0.2);
}

.category-nav {
    display: flex;
    justify-content: center;
    padding: 15px 0 0 0;
    margin-top: 10px;
}
.category-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0 20px 15px 20px;
    overflow-x: auto;
    max-width: 1200px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.category-nav ul::-webkit-scrollbar { display: none; }
.category-nav li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    white-space: nowrap;
    border: 1px solid transparent;
}
.category-nav li a:hover,
.category-nav li a:focus {
    color: var(--bg-dark);
    background-color: var(--gold);
    box-shadow: 0 0 15px rgba(217,195,145,0.4);
    transform: translateY(-2px);
}

/* ─── MOBILE TOP (solo móvil, no sticky) ─────────────────── */
.mobile-top {
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px 0;
    text-align: center;
}
.mobile-logo {
    height: 90px;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(217,195,145,0.3));
}
.mobile-subtitle {
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 8px;
    font-weight: 600;
}

/* ─── HERO ───────────────────────────────────────────────── */
.hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    border-bottom: 1px solid var(--glass-border);
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('../img/logo.webp') center/contain no-repeat;
    opacity: 0.05;
    filter: blur(5px);
    transform: scale(1.5);
    z-index: 0;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(5,5,5,0) 0%, #050505 100%);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 1s ease-out forwards;
}
.hero-title {
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
    font-weight: 700;
}
.gold-text { color: var(--gold); font-style: italic; }
.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-weight: 300;
    letter-spacing: 0.5px;
}
.btn-hero {
    display: inline-block;
    padding: 15px 40px;
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
    border-radius: 30px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 2px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}
.btn-hero:hover {
    background: var(--gold);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(217,195,145,0.4);
    transform: translateY(-3px);
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── CONTAINER & GRID ───────────────────────────────────── */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px 16px 60px;
}
.product-grid { display: block; }

.category-title {
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--gold);
    text-transform: uppercase;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
    scroll-margin-top: 20px;
    font-size: 1.4rem;
}
@media (min-width: 768px) {
    .category-title { scroll-margin-top: 160px; }
}

/* Grid interno */
.product-grid-inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}
/* Toggle 1 columna (solo móvil) */
body.grid-single .product-grid-inner {
    grid-template-columns: 1fr;
    gap: 20px;
}
@media (min-width: 768px) {
    .product-grid-inner,
    body.grid-single .product-grid-inner {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 30px !important;
    }
}
@media (min-width: 1024px) {
    .product-grid-inner,
    body.grid-single .product-grid-inner {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 30px !important;
    }
}

/* ─── PRODUCT CARDS ──────────────────────────────────────── */
.product-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px 0 rgba(0,0,0,0.3);
    cursor: pointer;
}
.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
    box-shadow: 0 15px 45px rgba(217,195,145,0.15);
}
.product-image-wrapper {
    width: 100%;
    aspect-ratio: 4/5;
    background: radial-gradient(circle at center, rgba(30,30,30,0.8) 0%, transparent 100%);
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.product-image-wrapper::after {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.05), transparent);
    transform: skewX(-20deg);
    transition: 0.5s;
}
.product-card:hover .product-image-wrapper::after { left: 150%; }
.product-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.7));
    transition: transform 0.5s ease, opacity 0.4s ease;
    opacity: 0;
}
.product-image-wrapper img.loaded { opacity: 1; }
.product-card:hover .product-image-wrapper img { transform: scale(1.06) rotate(-1deg); }

@keyframes shimmer {
    0%   { background-position: -600px 0; }
    100% { background-position:  600px 0; }
}
.img-loading {
    background: linear-gradient(90deg, rgba(30,30,30,0.8) 25%, rgba(60,55,45,0.6) 50%, rgba(30,30,30,0.8) 75%);
    background-size: 600px 100%;
    animation: shimmer 1.6s infinite linear;
}

.product-info {
    padding: 10px 12px 14px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.5) 100%);
}
.product-title {
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-price {
    font-size: 1.05rem;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
    font-family: 'Oswald', sans-serif;
}
.product-sizes {
    color: var(--text-secondary);
    font-size: 0.65rem;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.product-description {
    display: none; /* oculta en 2 col móvil */
    color: var(--text-secondary);
    font-size: 0.78rem;
    line-height: 1.5;
    margin-bottom: 10px;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Botón "Ver detalles" compacto en móvil 2 col */
.product-card .btn-whatsapp {
    padding: 8px 10px;
    font-size: 0.65rem;
    letter-spacing: 0.5px;
    border-radius: 20px;
    margin-top: auto;
}

/* ─── MODO 1 COLUMNA (móvil) ─────────────────────────────── */
@media (max-width: 767px) {
    body.grid-single .product-info {
        padding: 20px;
    }
    body.grid-single .product-title {
        font-size: 1rem;
        margin-bottom: 6px;
        -webkit-line-clamp: unset;
    }
    body.grid-single .product-price {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
    body.grid-single .product-sizes {
        font-size: 0.8rem;
        margin-bottom: 16px;
    }
    body.grid-single .product-description {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        margin-bottom: 14px;
    }
    body.grid-single .product-image-wrapper {
        padding: 25px;
    }
    body.grid-single .product-card .btn-whatsapp {
        padding: 12px 20px;
        font-size: 0.8rem;
    }
}

/* ─── DESKTOP CARD STYLES ────────────────────────────────── */
@media (min-width: 768px) {
    .product-info { padding: 25px; }
    .product-title { font-size: 1rem; margin-bottom: 8px; -webkit-line-clamp: unset; }
    .product-price { font-size: 1.5rem; margin-bottom: 12px; }
    .product-sizes { font-size: 0.82rem; margin-bottom: 20px; }
    .product-description { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .product-image-wrapper { padding: 25px; }
    .product-card .btn-whatsapp { padding: 12px 20px; font-size: 0.82rem; letter-spacing: 1px; }
}

/* ─── BOTONES GLOBALES ───────────────────────────────────── */
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    backdrop-filter: blur(5px);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
}
.btn-whatsapp:hover {
    background-color: var(--gold);
    color: var(--bg-dark);
    box-shadow: 0 0 15px rgba(217,195,145,0.4);
}
.btn-whatsapp.green { background-color: var(--whatsapp-green); border-color: var(--whatsapp-green); color: white; }
.btn-whatsapp.green:hover { background-color: var(--whatsapp-hover); box-shadow: 0 0 15px rgba(37,211,102,0.5); color: white; }
.btn-whatsapp svg { width: 18px; height: 18px; fill: currentColor; }

/* ─── MODAL ──────────────────────────────────────────────── */
.modal {
    display: none;
    position: fixed;
    z-index: 2500;
    left: 0; top: 0; width: 100%; height: 100%;
    overflow: auto;
    background-color: rgba(5,5,5,0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}
.modal-content {
    background: rgba(15, 15, 15, 0.97);
    margin: 5% auto;
    padding: 50px;
    border: 1px solid var(--glass-border);
    width: 95%;
    max-width: 1200px;
    border-radius: 24px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    animation: zoomIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.95) translateY(20px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}
.close-btn {
    color: var(--text-secondary);
    position: absolute;
    right: 25px; top: 20px;
    font-size: 32px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}
.close-btn:hover { color: var(--gold); background: rgba(217,195,145,0.1); transform: rotate(90deg); }

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 20px;
}
@media (min-width: 992px) {
    .modal-body { flex-direction: row; }
    .modal-gallery { flex: 1.2; }
    .modal-info { flex: 1; display: flex; flex-direction: column; justify-content: center; }
}

.modal-gallery { display: flex; flex-direction: column; align-items: center; gap: 20px; }

.main-image-container {
    width: 100%;
    max-width: 600px;
    aspect-ratio: 4/5;
    background: radial-gradient(circle, rgba(40,40,40,0.5) 0%, transparent 80%);
    border-radius: 16px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    cursor: zoom-in;
}
#mainImage {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.8));
    transition: transform 0.1s ease-out;
    transform-origin: center center;
    pointer-events: none;
}
#mainImage.zoomed { transform: scale(2.2); }

.thumbnails {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 8px;
    max-width: 100%;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.thumbnails::-webkit-scrollbar { display: none; }
.thumbnails img {
    width: 70px; height: 70px;
    object-fit: contain;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    background: rgba(255,255,255,0.02);
    transition: all 0.3s ease;
    padding: 4px;
    flex-shrink: 0;
}
.thumbnails img.active,
.thumbnails img:hover {
    border-color: var(--gold);
    background: rgba(217,195,145,0.05);
    transform: translateY(-3px);
}

.modal-info h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    margin-bottom: 5px;
    color: #fff;
    line-height: 1.2;
}
.modal-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin: 12px 0 0 0;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--glass-border);
}
.size-selector { margin: 20px 0 30px 0; }
.size-selector p {
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.82rem;
}
.size-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.size-btn {
    background: rgba(255,255,255,0.03);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    padding: 12px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 56px;
}
.size-btn:hover:not(.out-of-stock) {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
}
.size-btn.selected {
    background: var(--gold);
    color: var(--bg-dark);
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(217,195,145,0.3);
}
.size-btn.out-of-stock {
    opacity: 0.2;
    text-decoration: line-through;
    cursor: not-allowed;
}
#modalWsBtn { width: 100%; padding: 16px; font-size: 0.95rem; }

@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(37,211,102,0.4); }
    70%  { box-shadow: 0 0 0 15px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
#modalWsBtn.green { animation: pulse 2s infinite; }


/* ─── FOOTER ─────────────────────────────────────────────── */
.footer {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid var(--glass-border);
    margin-top: 60px;
    background: rgba(0,0,0,0.3);
}

/* ─── CART BUTTON (desktop) ──────────────────────────────── */
.cart-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    color: var(--gold);
    cursor: pointer;
    padding: 10px 16px;
    border-radius: 30px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}
.cart-btn:hover { background: rgba(217,195,145,0.1); border-color: var(--gold); box-shadow: 0 0 15px rgba(217,195,145,0.2); }
.cart-btn svg { width: 18px; height: 18px; }
.cart-badge {
    position: absolute;
    top: -7px; right: -7px;
    background: var(--gold);
    color: var(--bg-dark);
    border-radius: 50%;
    width: 20px; height: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center;
}

/* ─── CART OVERLAY ───────────────────────────────────────── */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(5px);
    z-index: 3000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }

/* ─── CART DRAWER ────────────────────────────────────────── */
.cart-drawer {
    position: fixed;
    top: 0; right: -440px;
    width: 420px;
    max-width: 100vw;
    height: 100%;
    background: rgba(8,8,8,0.98);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--glass-border);
    z-index: 3001;
    transition: right 0.4s cubic-bezier(0.4,0,0.2,1);
    display: flex;
    flex-direction: column;
}
.cart-drawer.open { right: 0; }
.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px;
    border-bottom: 1px solid var(--glass-border);
}
.cart-header h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.4rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
}
.cart-close {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    width: 36px; height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.cart-close:hover { color: var(--gold); border-color: var(--gold); transform: rotate(90deg); }
.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    scrollbar-width: thin;
    scrollbar-color: var(--glass-border) transparent;
}
.cart-items::-webkit-scrollbar { width: 4px; }
.cart-items::-webkit-scrollbar-thumb { background: var(--glass-border); border-radius: 4px; }
.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 14px;
    color: var(--text-secondary);
    text-align: center;
    padding: 40px 30px;
}
.cart-empty-icon { font-size: 3.5rem; opacity: 0.4; }
.cart-empty p:last-child { font-size: 0.9rem; opacity: 0.7; }
.cart-empty p:first-of-type {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.cart-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 14px;
    transition: border-color 0.3s ease;
    animation: fadeInUp 0.3s ease;
}
.cart-item:hover { border-color: var(--gold-dark); }
.cart-item-img {
    width: 72px; height: 72px;
    object-fit: contain;
    border-radius: 10px;
    background: rgba(255,255,255,0.03);
    padding: 6px;
    flex-shrink: 0;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name {
    font-family: 'Oswald', sans-serif;
    font-size: 0.88rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cart-item-talla { font-size: 0.78rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.cart-item-price { font-family: 'Oswald', sans-serif; color: var(--gold); font-size: 1rem; margin-bottom: 10px; }
.cart-item-qty { display: flex; align-items: center; gap: 10px; }
.cart-item-qty button {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    width: 28px; height: 28px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-family: 'Montserrat', sans-serif;
}
.cart-item-qty button:hover { border-color: var(--gold); color: var(--gold); }
.cart-item-qty span { font-weight: 700; font-size: 1rem; min-width: 22px; text-align: center; }
.cart-item-remove {
    background: none;
    border: none;
    color: rgba(255,255,255,0.2);
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    padding: 0 0 0 4px;
    transition: color 0.2s ease;
    align-self: flex-start;
}
.cart-item-remove:hover { color: #ff5555; }
.cart-footer {
    padding: 18px 24px 24px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(0,0,0,0.4);
}
.cart-total { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; }
.cart-total span:first-child { text-transform: uppercase; letter-spacing: 2px; color: var(--text-secondary); font-size: 0.82rem; }
.cart-total span:last-child { font-family: 'Oswald', sans-serif; font-size: 1.9rem; color: var(--gold); }
.btn-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--whatsapp-green);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 30px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}
.btn-checkout:hover { background: var(--whatsapp-hover); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(37,211,102,0.4); }
.btn-checkout svg { width: 22px; height: 22px; fill: currentColor; flex-shrink: 0; }
.btn-clear-cart {
    background: none;
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--text-secondary);
    padding: 10px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
}
.btn-clear-cart:hover { border-color: #ff5555; color: #ff5555; }

/* ─── ADD TO CART (modal) ────────────────────────────────── */
.btn-add-cart {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(217,195,145,0.08);
    color: var(--gold);
    border: 1px solid var(--gold);
    padding: 15px 20px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 12px;
    font-family: 'Montserrat', sans-serif;
}
.btn-add-cart:hover { background: var(--gold); color: var(--bg-dark); box-shadow: 0 0 20px rgba(217,195,145,0.3); transform: translateY(-2px); }
.btn-add-cart svg { width: 18px; height: 18px; }

/* ─── TOAST ──────────────────────────────────────────────── */
.cart-toast {
    position: fixed;
    bottom: calc(var(--nav-h) + 16px);
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    background: rgba(15,15,15,0.97);
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 12px 26px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 9999;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    white-space: nowrap;
    box-shadow: 0 8px 30px rgba(0,0,0,0.6);
    pointer-events: none;
}
.cart-toast.show { transform: translateX(-50%) translateY(0); }
@media (min-width: 768px) {
    .cart-toast { bottom: 30px; }
}

/* ─── CATEGORY DRAWER (móvil) ────────────────────────────── */
.category-drawer {
    position: fixed;
    top: 0; left: -320px;
    width: 300px;
    height: 100%;
    background: rgba(5, 5, 5, 0.99);
    backdrop-filter: blur(25px);
    border-right: 1px solid var(--glass-border);
    z-index: 4001;
    transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: 0;
}
.category-drawer.open { left: 0; }
.category-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 20px 20px;
    border-bottom: 1px solid var(--glass-border);
}
.drawer-logo {
    height: 55px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(217,195,145,0.3));
}
.category-drawer-close {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    width: 38px; height: 38px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    line-height: 1;
}
.category-drawer-close:hover { color: var(--gold); border-color: var(--gold); transform: rotate(90deg); }
.category-drawer-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 16px 0;
}
.category-drawer-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    color: var(--text-secondary);
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: all 0.25s ease;
}
.category-drawer-link:hover {
    color: var(--gold);
    background: rgba(217,195,145,0.05);
    padding-left: 32px;
}
.drawer-link-icon { font-size: 1.3rem; width: 28px; text-align: center; }
.category-drawer-footer {
    padding: 20px 24px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 0.78rem;
    text-align: center;
}
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 4000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.drawer-overlay.open { opacity: 1; pointer-events: all; }

/* ─── SEARCH OVERLAY (móvil) ─────────────────────────────── */
.search-overlay {
    position: fixed;
    top: -80px;
    left: 0; right: 0;
    background: rgba(8, 8, 8, 0.98);
    backdrop-filter: blur(20px);
    z-index: 3500;
    padding: 14px 16px;
    border-bottom: 1px solid var(--glass-border);
    transition: top 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    gap: 12px;
    align-items: center;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}
.search-overlay.open { top: 0; }
.search-back-btn {
    background: none;
    border: none;
    color: var(--gold);
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.search-back-btn svg { width: 22px; height: 22px; }
.search-overlay-input {
    flex: 1;
    padding: 12px 18px;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    background: rgba(255,255,255,0.08);
    color: var(--text-primary);
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}
.search-overlay-input:focus {
    border-color: var(--gold);
    background: rgba(255,255,255,0.12);
    box-shadow: 0 0 15px rgba(217,195,145,0.15);
}
.search-overlay-input::placeholder { color: rgba(255,255,255,0.35); }

/* ─── MOBILE BOTTOM NAV ──────────────────────────────────── */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: var(--nav-h);
    background: rgba(5, 5, 5, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    z-index: 2000;
    padding: 0 8px;
    padding-bottom: env(safe-area-inset-bottom, 0);
    align-items: center;
    justify-content: space-around;
}
.mobile-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 12px;
    transition: all 0.2s ease;
    min-width: 60px;
    font-family: 'Montserrat', sans-serif;
}
.mobile-nav-btn:hover,
.mobile-nav-btn:active {
    color: var(--gold);
    background: rgba(217,195,145,0.08);
}
.mobile-nav-btn svg { width: 22px; height: 22px; }
.mobile-nav-btn span:last-child {
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.mobile-cart-btn { position: relative; }
.mobile-cart-wrap { position: relative; display: flex; align-items: center; justify-content: center; }
.cart-badge-mobile {
    position: absolute;
    top: -8px; right: -10px;
    background: var(--gold);
    color: var(--bg-dark);
    border-radius: 50%;
    width: 18px; height: 18px;
    font-size: 0.65rem;
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center;
}

/* ─── RESPONSIVE: MÓVIL ──────────────────────────────────── */
@media (max-width: 767px) {
    /* Activar nav inferior + ocultar header */
    .mobile-bottom-nav { display: flex; }
    .header { display: none; }
    .mobile-top { display: flex; }

    body {
        padding-bottom: var(--nav-h);
    }

    /* Hero más compacto en móvil */
    .hero {
        height: 52vh;
        min-height: 320px;
    }
    .hero-subtitle { font-size: 0.9rem; margin-bottom: 28px; }
    .btn-hero { padding: 12px 30px; font-size: 0.82rem; }

    /* Container padding */
    .container { padding: 30px 12px 40px; }

    /* Modal full-screen en móvil */
    .modal-content {
        margin: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        padding: 45px 16px 90px;
        position: fixed;
        bottom: 0; left: 0; right: 0;
        top: auto;
        min-height: 90vh;
        max-height: 95vh;
        overflow-y: auto;
        animation: slideUp 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        background: rgba(10, 10, 10, 0.98);
    }
    .close-btn {
        top: 15px;
        right: 15px;
        background: rgba(255, 255, 255, 0.1);
        z-index: 10;
        box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    }
    @keyframes slideUp {
        from { transform: translateY(100%); }
        to   { transform: translateY(0); }
    }
    .main-image-container {
        max-height: none;
        aspect-ratio: 1/1;
        padding: 5px;
        background: radial-gradient(circle, rgba(40,40,40,0.3) 0%, transparent 80%);
        border-radius: 12px;
        margin-bottom: 10px;
    }
    .thumbnails {
        justify-content: center;
        gap: 8px;
    }
    .thumbnails img { width: 65px; height: 65px; }
    .modal-body {
        gap: 15px;
        margin-top: 5px;
    }
    .modal-info h2 {
        font-size: 1.5rem;
        text-align: center;
    }
    .product-price {
        text-align: center;
        font-size: 1.4rem;
    }
    .modal-description { font-size: 0.85rem; }

    /* Footer en móvil */
    .footer { margin-top: 20px; }
}
