:root {
    --bg-color: #050505;
    --card-bg: #0a0a0a;
    --text-primary: #f0f0f0;
    --text-secondary: #888888;
    --gold: #D4AF37;
    --gold-bright: #F0E68C;
    --gold-dark: #8A6E2F;
    --accent: #fff;
    --font-main: 'Outfit', sans-serif;
    --font-heading: 'Playfair Display', serif;
    --border-gold: 1px solid rgba(212, 175, 55, 0.15);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-gold: 0 10px 30px rgba(212, 175, 55, 0.2);
}

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

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

:root {
    --bg-color: #050505;
    --card-bg: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --accent-gold: #D4AF37;
    /* Metallic Gold */
    --accent-light: #FFD700;
    /* Bright Gold */
    --font-main: 'Teko', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    /* Luxury Dark Background */
    background: radial-gradient(circle at center, #1a1a1a 0%, #000000 100%);
}

/* Marquee */
.marquee-container {
    position: sticky;
    top: 0;
    z-index: 1100;
    background: #000;
    color: var(--gold);
    padding: 6px 0;
    overflow: hidden;
    white-space: nowrap;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.marquee-content {
    display: inline-block;
    animation: marquee 30s linear infinite;
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.marquee-content span {
    margin: 0 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

    100% {
        transform: translateX(-50%);
    }
}

/* Modal Gallery */
.modal-thumbnails {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    overflow-x: auto;
    padding-bottom: 5px;
}

.modal-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.modal-thumb:hover {
    border-color: #ddd;
}

.modal-thumb.active {
    border-color: #000;
}

/* Header */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    transition: all 0.4s ease;
}

.logo-text {
    font-family: 'Teko', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-text .accent {
    color: var(--accent-gold);
    background: linear-gradient(135deg, #d4af37 0%, #f9e2af 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-style: normal;
}

/* 3D Hero Section */
.hero-3d-section {
    padding: 4rem 0;
    text-align: center;
    overflow: visible;
    background: radial-gradient(circle at top, rgba(212, 175, 55, 0.1) 0%, transparent 60%);
}

.hero-text-content {
    margin-bottom: 4rem;
    padding: 0 1rem;
}

.hero-title {
    font-family: var(--font-main);
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: #fff;
}

.outline-text {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--gold);
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.4));
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 50px;
    overflow: hidden;
    /* Clip side cards so they don't break page layout */
}

.cards-3d-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    perspective: 1500px;
    -webkit-perspective: 1500px;
    /* Safari fix */
    min-height: 450px;
    position: relative;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    /* Safari fix */
}

.card-3d {
    width: 280px;
    height: 400px;
    position: absolute;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
    will-change: transform, opacity;
}

/* 3D Cover Flow Logic */
.card-3d.active {
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(0, 0, 100px) rotateY(0deg);
    z-index: 10;
}

.card-3d.prev-card {
    opacity: 1 !important;
    pointer-events: auto;
    transform: translate3d(-240px, 0, -80px) rotateY(15deg) scale(0.9);
    z-index: 5;
    filter: brightness(0.8);
}

.card-3d.next-card {
    opacity: 1 !important;
    pointer-events: auto;
    transform: translate3d(240px, 0, -80px) rotateY(-15deg) scale(0.9);
    z-index: 5;
    filter: brightness(0.8);
}

.card-3d.far-prev {
    transform: translate3d(-400px, 0, -150px) rotateY(45deg) scale(0.7);
    opacity: 0.2;
    pointer-events: none;
}

.card-3d.far-next {
    transform: translate3d(400px, 0, -150px) rotateY(-45deg) scale(0.7);
    opacity: 0.2;
    pointer-events: none;
}

.card-inner {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: #111;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    /* Safari fix */
    transform: translateZ(0);
    /* Force layer promotion */
    -webkit-transform: translateZ(0);
}

.card-3d.active .card-inner {
    border-color: var(--gold);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.carousel-control:hover {
    background: var(--gold);
    color: #000;
}

.carousel-control.prev {
    left: 0;
}

.carousel-control.next {
    right: 0;
}

.card-badge {
    position: absolute;
    top: 15px;
    left: -35px;
    background: var(--accent-gold);
    color: #000;
    padding: 0.4rem 3rem;
    transform: rotate(-45deg);
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 1.1rem;
    z-index: 2;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
    border: 1px solid #fff;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7) contrast(1.2);
    transition: 0.3s;
}

.card-3d:hover .card-img {
    filter: brightness(0.9) contrast(1.1);
}

.card-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, #000 0%, transparent 100%);
    padding: 2rem 1rem 1.5rem;
    text-align: left;
}

.highlight-banner {
    background: var(--accent-gold);
    color: #000;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 2px;
    margin-bottom: 0.5rem;
}

.card-bottom h3 {
    font-family: var(--font-main);
    font-size: 2rem;
    line-height: 0.9;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    color: #fff;
}

.card-bottom button {
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 0.3rem 1rem;
    font-size: 0.8rem;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s;
}

.card-bottom button:hover {
    background: var(--accent-gold);
    color: #000;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 1500;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: whatsappPulse 3s infinite;
}

@keyframes whatsappPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-float:hover {
    transform: scale(1.15) rotate(5deg);
    background: #20b355;
}

/* ===== RESPONSIVE MOBILE ===== */
@media (max-width: 768px) {

    /* --- Carousel 3D: modo horizontal --- */
    .carousel-wrapper {
        padding: 0 10px;
        overflow: hidden;
    }

    .cards-3d-container {
        flex-direction: row;
        min-height: 420px;
        perspective: 800px;
    }

    .hero-3d-section {
        padding: 1.5rem 0;
    }

    .hero-text-content {
        margin-bottom: 0.5rem;
    }

    /* Tamaño grande de card en móvil */
    .card-3d {
        width: 260px;
        height: 420px;
        margin-bottom: 0;
    }

    /* Posiciones ajustadas para pantalla pequeña */
    .card-3d.active {
        transform: translate3d(0, 0, 60px) rotateY(0deg) !important;
        z-index: 100;
    }

    .card-3d.prev-card {
        transform: translate3d(-140px, 0, -80px) rotateY(25deg) scale(0.82) !important;
        opacity: 0.4 !important;
    }

    .card-3d.next-card {
        transform: translate3d(140px, 0, -80px) rotateY(-25deg) scale(0.82) !important;
        opacity: 0.4 !important;
    }

    .card-3d.far-prev,
    .card-3d.far-next {
        opacity: 0 !important;
        pointer-events: none !important;
    }

    /* --- Tipografía productos --- */
    .product-title {
        font-size: 0.8rem !important;
        line-height: 1.2 !important;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        height: auto !important;
    }

    .product-price {
        font-size: 0.9rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .add-btn {
        padding: 0.45rem 0.5rem !important;
        font-size: 0.72rem !important;
        gap: 3px !important;
        white-space: nowrap;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

.shop-now-btn {
    background: var(--gold);
    color: #000;
    border: none;
    padding: 1rem 3rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 1.5rem;
    transition: 0.3s;
}

.shop-now-btn:hover {
    background: #fff;
}

/* Newsletter Popup */
.newsletter-popup {
    display: none;
    position: fixed;
    bottom: 0;
    right: 0;
    width: 100%;
    max-width: 400px;
    background: #fff;
    color: #000;
    padding: 3rem;
    z-index: 2000;
    box-shadow: -5px -5px 30px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.close-newsletter {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #000;
    cursor: pointer;
    font-size: 1.5rem;
}

.newsletter-content h3 {
    color: #000;
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.2rem;
}

.newsletter-content p {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.newsletter-content input {
    width: 100%;
    padding: 0.8rem;
    margin: 1rem 0;
    background: #f5f5f5;
    border: none;
    color: #000;
}

.newsletter-content input::placeholder {
    color: #999;
}

.newsletter-content button {
    width: 100%;
    padding: 0.8rem;
    background: #000;
    border: none;
    font-weight: normal;
    cursor: pointer;
    color: #fff;
    letter-spacing: 1px;
}

.newsletter-content button:hover {
    background: #333;
}

.animate-reveal {
    animation: fadeUpReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeUpReveal {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Controls Section */
.controls-section {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.search-bar {
    position: relative;
    width: 100%;
    max-width: 600px;
}

.search-bar i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold-dark);
}

.search-bar input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: var(--card-bg);
    border: 1px solid #333;
    border-radius: 50px;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: var(--shadow-gold);
}

.filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    background: transparent;
    border: 1px solid #333;
    color: var(--text-secondary);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(212, 175, 55, 0.1);
}

/* Catalog Grid */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 3rem;
    padding: 3rem 5%;
    max-width: 1600px;
    margin: 0 auto;
}

.product-card {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-15px) scale(1.02);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 175, 55, 0.1);
}

.product-img-wrapper {
    width: 100%;
    height: 350px;
    overflow: hidden;
    position: relative;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.product-card:hover .product-img {
    transform: scale(1.15);
}

.product-info {
    padding: 2rem;
    text-align: left;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-title {
    font-family: 'Teko', sans-serif;
    font-size: 1.8rem;
    line-height: 1;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    letter-spacing: 1px;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-family: 'Teko', sans-serif;
    font-size: 2rem;
    font-weight: 600;
    background: linear-gradient(135deg, #d4af37 0%, #f9e2af 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.add-btn {
    width: 100%;
    padding: 1rem;
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    cursor: pointer;
    font-family: 'Teko', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.add-btn:hover {
    background: var(--accent-gold);
    color: #000;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

/* Footer Info Bar */
.footer-info-bar {
    padding: 4rem 2rem;
    background: rgba(10, 10, 10, 0.5);
    border-top: 1px solid #222;
    margin-top: 2rem;
}

.footer-info-bar .info-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-align: left;
}

.info-item i {
    font-size: 2.5rem;
    color: var(--gold);
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
}

.info-item h4 {
    color: #fff;
    font-size: 1rem;
    margin-bottom: 0.3rem;
    letter-spacing: 1px;
}

.info-item p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Footer */
.main-footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid #222;
    background: #000;
    color: var(--text-secondary);
}

/* 3D Carousel Animation - Removed auto-rotation to fix flickering/disappearing */
.cards-3d-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 4rem 0;
    transform-style: preserve-3d;
    perspective: 1200px;
}

/* WHOLESALE SECTION - PREMIUM IMPACT */
.wholesale-section {
    padding: 6rem 5%;
    background: radial-gradient(circle at center, #111 0%, #000 100%);
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.wholesale-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    z-index: 0;
}

.wholesale-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    text-align: center;
}

.wholesale-badge {
    display: inline-block;
    background: var(--gold);
    color: #000;
    padding: 0.5rem 2rem;
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    transform: skewX(-15deg);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.wholesale-title {
    font-family: var(--font-main);
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 0.9;
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 3.5rem;
    letter-spacing: -2px;
}

.gold-text {
    color: var(--gold);
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
}

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

.wholesale-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

.wholesale-card i {
    font-size: 3.5rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
    transition: 0.4s;
}

.wholesale-card h3 {
    font-family: var(--font-main);
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.wholesale-card p {
    color: #aaa;
    line-height: 1.6;
    font-size: 1rem;
}

.wholesale-card:hover {
    transform: translateY(-15px);
    background: rgba(212, 175, 55, 0.05);
    border-color: var(--gold);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.wholesale-card.highlight {
    border-color: rgba(212, 175, 55, 0.5);
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.1), transparent);
}

.wholesale-cta {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--gold);
    color: #000;
    padding: 1.2rem 3.5rem;
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
    text-transform: uppercase;
}

.wholesale-cta i {
    font-size: 1.8rem;
    color: #000;
}

.wholesale-cta:hover {
    transform: scale(1.05);
    background: #fff;
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.4);
}

/* CART DRAWER REDESIGN */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    /* Start off-screen */
    width: 400px;
    height: 100vh;
    /* Full viewport height */
    background: #000;
    /* Pitch Black */
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.8);
    transition: right 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    z-index: 2000;
    /* High z-index to be on top of everything */
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--accent-gold);
    visibility: hidden;
    /* Hide when closed to prevent interaction */
}

.cart-sidebar.open {
    right: 0;
    visibility: visible;
}

/* Ensure promo banner content is centered */
.promo-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.promo-content h3,
.promo-content p {
    text-align: center;
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0a0a0a;
}

.cart-header h2 {
    font-family: var(--font-main);
    font-size: 2rem;
    color: var(--accent-gold);
    margin: 0;
    text-transform: uppercase;
}

.nav-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    position: relative;
    transition: 0.3s;
}

.nav-btn:hover {
    color: var(--accent-gold);
    transform: scale(1.1);
}

.close-cart {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.3s;
}

.close-cart:hover {
    color: var(--accent-gold);
    transform: rotate(90deg);
}

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

/* Cart Item Styling */
.cart-item {
    display: flex;
    gap: 1rem;
    padding-bottom: 1rem;
}

.cart-item-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-title {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.cart-item-price {
    color: var(--gold);
    font-size: 0.9rem;
}

.remove-item-btn {
    background: none;
    border: none;
    color: #ff4040;
    font-size: 0.8rem;
    cursor: pointer;
    margin-top: 0.5rem;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid #333;
    background: #0f0f0f;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
}

.checkout-btn {
    width: 100%;
    padding: 1rem;
    background: var(--gold);
    border: none;
    color: #000;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

.checkout-btn:hover {
    background: var(--gold-bright);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.5);
}

/* Checkout Form Styles */
.checkout-form {
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.checkout-form h3 {
    font-family: var(--font-main);
    font-size: 1.2rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group {
    margin-bottom: 0.8rem;
}

.form-group input {
    width: 100%;
    padding: 0.7rem 1rem;
    background: #111;
    border: 1px solid #333;
    border-radius: 5px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.form-group input::placeholder {
    color: #555;
}

/* New Cart Styles */
.empty-cart-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-secondary);
    gap: 1.5rem;
    opacity: 0.6;
}

.empty-icon {
    font-size: 4rem;
    color: var(--accent-gold);
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.remove-item-btn {
    background: none;
    border: none;
    color: #ff4d4d;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 2px;
    transition: 0.2s;
    opacity: 0.7;
}

.remove-item-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.05);
    width: fit-content;
    padding: 4px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: 0.2s;
}

.qty-btn:hover {
    background: var(--accent-gold);
    color: #000;
}

.qty-number {
    font-weight: 600;
    min-width: 20px;
    text-align: center;
    font-size: 0.9rem;
}

/* Glassmorphism for Sidebar */
.cart-sidebar {
    background: rgba(5, 5, 5, 0.85) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}


/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    backdrop-filter: blur(2px);
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Responsive - catalog grid */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .catalog-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
        padding: 1rem;
    }

    .product-img-wrapper {
        height: 200px;
    }
}

/* PC Specific Refinements */
@media (min-width: 1200px) {
    .cards-3d-container {
        perspective: 1200px;
        min-height: 550px;
    }

    .card-3d {
        width: 340px;
        height: 480px;
    }

    .card-3d.prev-card {
        transform: translate3d(-320px, 0, -50px) rotateY(20deg) scale(0.9);
        opacity: 0.9 !important;
    }

    .card-3d.next-card {
        transform: translate3d(320px, 0, -50px) rotateY(-20deg) scale(0.9);
        opacity: 0.9 !important;
    }

    .card-3d.active {
        transform: translate3d(0, 0, 150px) rotateY(0deg);
        z-index: 50;
        /* Ensure it stays on top */
    }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--card-bg);
    margin: 10% auto;
    padding: 20px;
    border: 1px solid var(--gold-dark);
    width: 80%;
    max-width: 800px;
    display: flex;
    gap: 20px;
    border-radius: 10px;
    position: relative;
    animation: fadeInUp 0.4s ease;
}

.close-modal {
    color: var(--gold);
    font-size: 30px;
    font-weight: bold;
    position: absolute;
    top: 12px;
    right: 15px;
    cursor: pointer;
    z-index: 2100;
    background: rgba(0, 0, 0, 0.65);
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--gold);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.45);
    transition: transform 0.2s ease;
    line-height: 1;
}

.close-modal:hover {
    transform: scale(1.1);
}

.modal-body {
    display: flex;
    gap: 20px;
    width: 100%;
}

/* --- Modal responsive en móvil --- */
@media (max-width: 768px) {
    .modal-content {
        margin: 3vh auto;
        width: 94%;
        flex-direction: column;
        padding: 15px;
        box-sizing: border-box;
        overflow: hidden;
    }

    .modal-body {
        flex-direction: column;
        gap: 12px;
    }

    .modal-img-container {
        width: 100%;
    }

    #modal-img {
        width: 100%;
        height: auto;
        max-height: 50vw;
        object-fit: contain;
        display: block;
    }

    .modal-info p,
    .modal-info h2 {
        word-break: break-word;
    }

    .modal-thumbnails {
        overflow-x: auto;
        max-width: 100%;
    }
}

.modal-img-container {
    flex: 1;
}

.modal-img-container img {
    width: 100%;
    border-radius: 8px;
}

.modal-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-info h2 {
    font-family: var(--font-heading);
    color: var(--gold);
    margin-bottom: 10px;
}

.modal-info .price {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.add-to-cart-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-bright) 100%);
    border: none;
    border-radius: 50px;
    color: #000;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
    position: relative;
    overflow: hidden;
}

.add-to-cart-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transition: 0.6s;
}

.add-to-cart-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 100%);
}

.add-to-cart-btn:hover::before {
    left: 100%;
}

.add-to-cart-btn:active {
    transform: translateY(0) scale(0.98);
}

.add-to-cart-btn i {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .modal-body {
        flex-direction: column;
    }

    .modal-content {
        margin: 20% auto;
        width: 90%;
    }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: rgba(212, 175, 55, 0.95);
    color: #000;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast.show {
    transform: translateX(0);
}

.toast i {
    font-size: 1.2rem;
}