/* ES LA PERCHA - Brand Base Styles (v7.0 SUPREME) */
/* Centrado absoluto, control de imagen y estética Figma-Perfect */

:root {
    --brand-olive: #6e7051;
    --brand-bone: #ffffff; /* Forced pure white for maximum clarity */
    --brand-dark: #121212;
    --brand-white: #ffffff;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --font-main: 'Inter', 'Outfit', sans-serif; /* Added font variable */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background: var(--brand-bone);
    color: var(--brand-dark);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: clip; /* Modern fix: Kills horizontal scroll on mobile without breaking sticky headers */
}

/* Master wrapper */
html, body {
    width: 100%;
    max-width: 100vw;
    margin: 0;
    padding: 0;
}

.container,
.cs-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    box-sizing: border-box; /* Crucial restriction */
}

/* ═══════════════════════════════
   HEADER & NAVIGATION
   ═══════════════════════════════ */
.top-bar {
    background: var(--brand-dark);
    color: #fff;
    padding: 12px;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
}

header {
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: sticky;
    width: 100%;
    top: 0;
    background: var(--brand-dark);
    color: #fff;
    z-index: 1000;
    flex-wrap: nowrap;
    gap: 15px;
    transition: background 0.4s ease, border 0.4s ease, color 0.4s ease, padding 0.4s ease;
}

header.solid {
    background: rgba(255, 255, 255, 0.98);
    color: var(--brand-dark); /* Vuelve al modo oscuro estándar */
    border-bottom: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.logo-text {
    font-size: clamp(20px, 4vw, 28px);
    font-weight: 900;
    letter-spacing: -2px;
    flex-shrink: 0;
}

.logo-text a {
    text-decoration: none;
    color: inherit;
}

.nav-main {
    display: none;
}

@media (min-width: 1024px) {
    .nav-main {
        display: flex;
        gap: 40px;
        align-items: center;
    }

    .nav-main a {
        text-decoration: none;
        color: inherit;
        font-size: 12px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 2px;
        opacity: 0.8;
        transition: 0.3s;
    }

    .nav-main a:hover {
        opacity: 1;
    }

    /* ═══ MEGA MENU (VCP Style) ═══ */
    .mega-trigger {
        position: static;
    }

    .mega-trigger > a {
        cursor: pointer;
    }

    .mega-menu {
        position: fixed;
        top: 55px;
        left: 0;
        width: 100vw;
        background: #fff;
        color: var(--brand-dark);
        padding: 50px 8%;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 40px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001;
        box-shadow: 0 20px 60px rgba(0,0,0,0.08);
        border-bottom: 1px solid #eee;
        pointer-events: none;
    }

    .mega-trigger:hover .mega-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: all;
    }

    /* Invisible hover bridge to prevent gap between trigger and menu */
    .mega-menu::before {
        content: '';
        position: absolute;
        top: -30px;
        left: 0;
        width: 100%;
        height: 30px;
        background: transparent;
    }

    .mega-col h4 {
        font-size: 11px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 3px;
        margin-bottom: 20px;
        color: var(--brand-dark);
    }

    .mega-col a {
        display: block;
        font-size: 13px !important;
        font-weight: 400 !important;
        text-transform: none !important;
        letter-spacing: 0 !important;
        color: #555 !important;
        opacity: 1 !important;
        padding: 6px 0;
        transition: color 0.2s, padding-left 0.2s;
    }

    .mega-col a:hover {
        color: var(--brand-dark) !important;
        padding-left: 5px;
    }
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box input {
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 6px 30px 6px 15px;
    font-size: 13px;
    width: clamp(120px, 15vw, 200px);
    outline: none;
    transition: var(--transition);
}

.search-box input:focus {
    border-color: var(--brand-dark);
}

.search-icon {
    position: absolute;
    right: 10px;
    font-size: 12px;
    opacity: 0.5;
    pointer-events: none;
}

.search-results {
    position: absolute;
    top: 100%;
    right: 0;
    width: 280px;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin-top: 15px;
    display: none;
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
}

.search-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f9f9f9;
    transition: var(--transition);
}

.search-item:hover {
    background: #fafafa;
}

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

.search-item h4 {
    font-size: 11px;
    margin-bottom: 3px;
}

.search-item span {
    font-size: 10px;
    color: var(--brand-olive);
    font-weight: 800;
}

.no-results {
    padding: 20px;
    font-size: 12px;
    text-align: center;
    opacity: 0.5;
}

.mobile-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 24px;
    color: inherit; /* FIX: Allows the icon to turn white when the header is dark! */
    cursor: pointer;
}

@media (min-width: 1024px) {
    .mobile-toggle {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-main {
        position: fixed;
        top: 65px; /* Safely clears the header height to not overlap the logo/burger */
        left: 0;
        width: 100%; /* Force true 100% */
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 0;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(10px);
        opacity: 0;
        transform: translateY(-10px);
        pointer-events: none;
        transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        z-index: 999;
        box-sizing: border-box; /* CRITICAL FIX: prevents width + padding from exceeding 100vw */
    }

    .nav-main.active {
        opacity: 1;
        transform: translateY(0);
        pointer-events: all;
    }

    .nav-main a {
        padding: 25px 0; /* Removed horizontal padding that was breaking 100vw */
        width: 100%;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        font-size: 14px;
        font-weight: 800;
        color: var(--brand-dark);
        text-align: center;
        letter-spacing: 2px;
        display: block; /* Ensure full click area */
    }

    .nav-main a:last-child {
        border-bottom: none;
    }

    .search-box {
        display: none !important; /* Force hide the search box itself to avoid logo collision */
    }
}

.cart-link {
    position: relative;
    text-decoration: none;
    color: inherit;
    font-size: 18px;
}

.cart-count {
    position: absolute;
    top: -10px;
    right: -15px;
    background: var(--brand-olive);
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
}

/* ═══════════════════════════════
   CENTRADO GLOBAL DE TÍTULOS
   ═══════════════════════════════ */
.section-title,
.dark-header,
.ind-title,
.sc-title,
.cs-section-header,
.sc-intro h2,
.hero h1 {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
    display: block !important;
}

/* Hero & Banners Centered */
.hero,
.hero-editorial,
.hero-brutalist,
.season-banner,
.intro-header {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    height: 80vh !important;
    width: 100% !important;
    margin: 0 auto !important;
}

.hero-content,
.hero-title,
.hero-text {
    position: relative !important;
    left: auto !important;
    bottom: auto !important;
    max-width: 900px !important;
    margin: 0 auto !important;
    text-align: center !important;
}

.hero p {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center;
}

.sc-intro {
    display: block !important;
    /* Desactiva flex de modelos antiguos que rompen injection */
    text-align: center;
    width: 100%;
}

/* ═══════════════════════════════
   PRODUCT GRID & CARDS
   ═══════════════════════════════ */
.product-grid-main,
.grid-all,
.grid-new,
.grid-best,
.grid-drops,
.grid-bestsellers {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 40px !important;
    padding: 0 3% !important;
    max-width: 1800px !important;
    margin: 40px auto 100px !important;
    justify-content: center !important;
}

@media (max-width: 768px) {
    .product-grid-main,
    .grid-all,
    .grid-new,
    .grid-best,
    .grid-drops,
    .grid-bestsellers {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        padding: 0 2% !important;
    }
}

.product-card {
    position: relative;
    max-width: 380px;
    /* Tamaño ideal */
    margin: 0 auto !important;
    width: 100%;
    padding: 20px;
    /* Reducido para evitar aplastamiento */
}

.p-img {
    position: relative;
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
    background: #fff; /* Changed from #f0f0f0 to fix 'gris' issue */
    margin-bottom: 20px;
}

.p-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease;
}

.img-secondary {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    z-index: 2;
}

.product-card:hover .p-img img.img-primary {
    opacity: 0;
}

.product-card:hover .img-secondary {
    opacity: 1;
    transform: scale(1.04);
}

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

.quick-add {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: white;
    color: black;
    border: none;
    padding: 14px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
    cursor: pointer;
}

.product-card:hover .quick-add {
    opacity: 1;
    transform: translateY(0);
}

.p-info {
    text-align: center;
    /* Centrado de info de producto */
}

.p-info h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.p-info h3 a,
.p-info a {
    color: var(--brand-dark) !important;
    text-decoration: none;
    transition: var(--transition);
}

.p-info h3 a:hover,
.p-info a:hover {
    color: var(--brand-olive) !important;
}

.p-prices {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.price-list {
    font-weight: 800;
    font-size: 16px;
}

.price-cash {
    font-size: 12px;
    color: var(--brand-olive);
    font-weight: 600;
}

/* ═══════════════════════════════
   MARKETING INJECTED SECTIONS
   ═══════════════════════════════ */
.cs-trust {
    background: #fff;
    padding: 80px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.cs-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}

.cs-trust-item i {
    font-size: 24px;
    margin-bottom: 15px;
    display: block;
}

.cs-trust-item h4 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.cs-trust-item p {
    font-size: 11px;
    opacity: 0.5;
}

.cs-reviews {
    padding: 100px 0;
}

.cs-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.cs-review-card {
    background: white;
    padding: 40px;
    text-align: center;
    border-radius: 4px;
}

.cs-review-card p {
    font-style: italic;
    font-size: 14px;
    margin-bottom: 20px;
    color: #555;
}

.cs-review-card strong {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
}

.cs-review-card span {
    font-size: 10px;
    opacity: 0.4;
}

.cs-insta-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.cs-insta-item {
    aspect-ratio: 1;
    overflow: hidden;
    background: #eee;
}

.cs-insta-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cs-newsletter {
    background: var(--brand-dark);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.cs-newsletter-content p {
    max-width: 500px;
    margin: 0 auto 40px;
    opacity: 0.7;
}

.cs-newsletter-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.cs-newsletter-form input {
    flex: 1;
    background: none;
    border: none;
    color: white;
    padding: 15px;
    outline: none;
    font-family: inherit;
}

.cs-newsletter-form button {
    background: none;
    border: none;
    color: white;
    font-weight: 900;
    padding: 0 20px;
    cursor: pointer;
    letter-spacing: 2px;
}

/* ═══════════════════════════════
   FLOATING ELEMENTS
   ═══════════════════════════════ */
.cs-whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 9999;
}

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

    .product-grid-main,
    .grid-all,
    .grid-new,
    .grid-best,
    .grid-drops,
    .grid-bestsellers {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    .cs-trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cs-insta-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {

    .product-grid-main,
    .grid-all,
    .grid-new,
    .grid-best,
    .grid-drops,
    .grid-bestsellers {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    .product-card {
        max-width: 100%;
        padding: 5px;
    }

    .section-title,
    .sc-title h2 {
        font-size: 26px !important;
    }
    
    .p-info h3 {
        font-size: 11px;
    }
    
    .price-cash {
        font-size: 14px !important;
    }
}

/* ═══════════════════════════════
   SEARCH & NAVIGATION IMPROVEMENTS
   ═══════════════════════════════ */
.search-box {
    position: relative;
    margin-right: 20px;
    display: none;
}

@media (min-width: 768px) {
    .search-box {
        display: block;
    }
}

.search-box input {
    padding: 10px 15px 10px 35px;
    border: 1px solid #eee;
    border-radius: 20px;
    font-size: 13px;
    outline: none;
    width: 200px;
    transition: 0.3s;
}

.search-box input:focus {
    width: 260px;
    border-color: var(--brand-olive);
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    opacity: 0.3;
}

.search-results {
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-top: 15px;
    display: none;
    z-index: 2000;
    max-height: 400px;
    overflow-y: auto;
}

.search-item {
    display: flex;
    align-items: center;
    padding: 15px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f9f9f9;
    transition: 0.2s;
}

.search-item:hover {
    background: #fafafa;
}

.search-item img {
    width: 50px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 15px;
}

.search-item h4 {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 4px;
}

.search-item span {
    font-size: 12px;
    opacity: 0.5;
}

.no-results {
    padding: 20px;
    text-align: center;
    font-size: 13px;
    opacity: 0.4;
}

/* Mobile Navigation Overlay */
.mobile-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    margin-left: 20px;
}

@media (min-width: 1024px) {
    .mobile-toggle {
        display: none;
    }
}

header .nav-main.active {
    display: flex !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #fff;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    z-index: 2000;
}

header .nav-main.active a {
    font-size: 24px;
    font-weight: 800;
}

/* Filter Bar */
.filter-bar {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.filter-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.5;
}

.filter-chips {
    display: flex;
    gap: 8px;
}

.filter-chip {
    padding: 8px 16px;
    border: 1px solid #eee;
    background: #fff;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.2s;
}

.filter-chip:hover {
    border-color: var(--brand-dark);
}

.filter-chip.active {
    background: var(--brand-dark);
    color: #fff;
    border-color: var(--brand-dark);
}

/* ═══════════════════════════════
   ACCOUNT & AUTH
   ═══════════════════════════════ */
.auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    background: var(--brand-bone);
}

.auth-card {
    background: #fff;
    padding: 50px;
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 450px;
}

.auth-card h2 {
    text-transform: uppercase;
    font-size: 16px;
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: 2px;
    font-weight: 800;
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 8px;
    opacity: 0.5;
    text-transform: uppercase;
}

.input-group input {
    width: 100%;
    padding: 16px;
    border: 1px solid #eee;
    border-radius: 4px;
    background: #fafafa;
    outline: none;
    transition: var(--transition);
}

.input-group input:focus {
    border-color: var(--brand-dark);
    background: #fff;
}

.auth-links {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

.auth-links a {
    color: var(--brand-dark);
    text-decoration: none;
    font-weight: 600;
}

.account-area {
    display: none;
    width: 100%;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 5%;
}

.account-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
}

.account-sidebar {
    background: #fff;
    padding: 30px;
    border-radius: 4px;
    border: 1px solid #eee;
}

.account-sidebar h3 {
    font-size: 11px;
    text-transform: uppercase;
    margin-bottom: 30px;
    opacity: 0.5;
    letter-spacing: 1px;
}

.account-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.account-nav a {
    text-decoration: none;
    color: var(--brand-dark);
    font-size: 13px;
    font-weight: 600;
    opacity: 0.6;
    transition: var(--transition);
}

.account-nav a:hover,
.account-nav a.active {
    opacity: 1;
}

.account-main {
    background: #fff;
    padding: 50px;
    border-radius: 4px;
    border: 1px solid #eee;
}

.account-main h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .account-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════
   PAGES EXTRA (Nosotros / Ayuda)
   ═══════════════════════════════ */
/* Nosotros */
.about-hero {
    background: var(--brand-dark);
    color: white;
    padding: 100px 5%;
    text-align: center;
}

.about-hero h1 {
    font-size: 48px;
    font-weight: 900;
    letter-spacing: 5px;
    margin-bottom: 20px;
}

.about-hero p {
    opacity: 0.6;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.content-section {
    max-width: 800px;
    margin: 80px auto;
    padding: 0 5%;
    line-height: 2;
    font-size: 16px;
    color: #444;
}

.locales-grid {
    max-width: 1200px;
    margin: 0 auto 100px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 0 5%;
}

.local-card {
    background: #fff;
    padding: 40px;
    border: 1px solid #eee;
    border-radius: 8px;
}

.local-card h3 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.local-card p {
    font-size: 14px;
    opacity: 0.6;
    margin-bottom: 8px;
}

.local-card a {
    color: var(--brand-olive);
    font-weight: 700;
    text-decoration: none;
    display: block;
    margin-top: 20px;
}

/* Ayuda / FAQ */
.hero-help {
    background: var(--brand-dark);
    color: white;
    padding: 60px 40px;
    border-radius: 10px;
    margin-bottom: 40px;
    text-align: center;
}

.hero-help h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.help-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.help-card i {
    font-size: 24px;
    color: var(--brand-olive);
    margin-bottom: 20px;
}

.help-card h3 {
    margin-bottom: 15px;
    font-size: 18px;
    text-transform: uppercase;
}

.help-card p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.contact-footer {
    margin-top: 60px;
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 8px;
}

.btn-wa {
    display: inline-block;
    padding: 15px 40px;
    background: #25d366;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    margin-top: 20px;
}

/* ═══════════════════════════════
   CARRITO & CHECKOUT
   ═══════════════════════════════ */
.checkout-wrapper {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 5%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 1024px) {
    .checkout-wrapper {
        grid-template-columns: 1fr 450px;
    }
}

.checkout-section {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    border: 1px solid #eee;
    margin-bottom: 30px;
}

.checkout-section h2 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    flex: 1;
    margin-bottom: 20px;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
    opacity: 0.6;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 4px;
    background: #fafafa;
    outline: none;
    transition: 0.3s;
}

.form-group input:focus {
    border-color: var(--brand-olive);
    background: #fff;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.payment-card {
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: 0.2s;
}

.payment-card:hover,
.payment-card.active {
    border-color: var(--brand-dark);
}

.payment-card.active {
    background: #f9f9f9;
}

.payment-card input {
    width: auto;
}

.order-summary {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sum-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
    opacity: 0.7;
}

.sum-total {
    border-top: 2px solid #000;
    margin-top: 20px;
    padding-top: 20px;
    font-size: 22px;
    font-weight: 900;
}

.btn-pay {
    width: 100%;
    padding: 22px;
    background: var(--brand-dark);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 40px;
    transition: 0.3s;
}

.btn-pay:hover {
    background: var(--brand-olive);
}

.mp-brick {
    margin-top: 30px;
    display: none;
}

/* Carrito Custom Classes */
.cart-table {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #eee;
    overflow: hidden;
}

.cart-row {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 30px;
    padding: 30px;
    border-bottom: 1px solid #f9f9f9;
    align-items: center;
}

.c-img {
    aspect-ratio: 3/4;
    border-radius: 4px;
    overflow: hidden;
    background: #f4f4f4;
}

.p-img img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================
   HIGH-END: CINEMATIC HOVER (CROSS-FADE)
   ========================================= */
.p-img .img-secondary {
    opacity: 0;
    z-index: 2;
}

.product-card:hover .p-img .img-primary {
    opacity: 0;
}

.product-card:hover .p-img .img-secondary {
    opacity: 1;
}

/* Page Transition Layer */
.page-transition-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: #fff;
    z-index: 99999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-transition-overlay.active {
    opacity: 1;
    pointer-events: all;
}
.c-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.c-info h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 5px;
}

.c-info p {
    font-size: 12px;
    opacity: 0.5;
    text-transform: uppercase;
}

.c-actions {
    text-align: right;
}

.c-price {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
}

.remove-btn {
    background: none;
    border: none;
    font-size: 10px;
    font-weight: 700;
    color: #ff0000;
    cursor: pointer;
    opacity: 0.3;
    text-transform: uppercase;
}

.remove-btn:hover {
    opacity: 1;
}

.promo-notice {
    background: #e9ecef;
    padding: 15px;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    margin-top: 20px;
    border-radius: 4px;
}

/* ═══════════════════════════════
   SEARCH RESULTS DROPDOWN
   ═══════════════════════════════ */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 5px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
}

.search-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: var(--brand-dark);
    transition: background 0.2s;
}

.search-item:hover {
    background: #fafafa;
}

.search-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 15px;
}

.search-item h4 {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 4px;
}

.search-item span {
    font-size: 11px;
    color: var(--brand-olive);
    font-weight: 600;
}

.no-results {
    padding: 20px;
    text-align: center;
    font-size: 12px;
    opacity: 0.6;
}

/* ═══════════════════════════════
   CATEGORY PILLS
   ═══════════════════════════════ */
.category-pills-container {
    overflow-x: auto;
    padding: 20px 5%;
    margin: 40px 0 20px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.category-pills-container::-webkit-scrollbar {
    display: none;
}

.category-pills {
    display: flex;
    gap: 15px;
    white-space: nowrap;
}

.pill {
    padding: 12px 24px;
    border: 1px solid #ddd;
    border-radius: 40px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--brand-dark);
    text-decoration: none;
    transition: 0.3s;
}

.pill.active,
.pill:hover {
    background: var(--brand-dark);
    color: #fff;
    border-color: var(--brand-dark);
}

.sale-pill {
    background: #d00000;
    color: #fff;
    border-color: #d00000;
}

/* ═══════════════════════════════
   UGC VIDEO GRID
   ═══════════════════════════════ */
.ugc-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 0 5%;
    margin-bottom: 80px;
}

.ugc-video {
    position: relative;
    aspect-ratio: 9/16;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: #000;
}

.ugc-video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: 0.3s;
}

.ugc-video:hover img {
    opacity: 1;
    transform: scale(1.05);
}

.ugc-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 30px;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.ugc-user {
    position: absolute;
    bottom: 15px;
    left: 15px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    z-index: 2;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

@media(max-width: 768px) {
    .ugc-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .hide-mobile {
        display: none;
    }
}

/* ═══════════════════════════════
   LEAD MAGNET POPUP
   ═══════════════════════════════ */
.lead-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.4s;
}

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

.lead-box {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    width: 90%;
    max-width: 450px;
    position: relative;
    text-align: center;
    transform: translateY(50px);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lead-overlay.active .lead-box {
    transform: translateY(0);
}

.lead-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.5;
    transition: 0.2s;
}

.lead-close:hover {
    opacity: 1;
}

/* ═══════════════════════════════
   BRANDS SECTION
   ═══════════════════════════════ */
.brands-section {
    background: #fff;
    padding: 60px 5%;
    border-bottom: 1px solid #eee;
    text-align: center;
}

.brands-container {
    max-width: 1200px;
    margin: 0 auto;
}

.brands-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 6px;
    opacity: 0.4;
    margin-bottom: 40px;
}

.brands-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.brand-item {
    flex: 1 1 120px;
    max-width: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.brand-item img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%) contrast(120%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.brand-item img:hover {
    filter: grayscale(0%) contrast(100%);
    opacity: 1;
}

/* =========================================
   PREMIUM UX: SKELETONS & HOVER EFFECTS
   ========================================= */

@keyframes skeleton-pulse {
    0% { background-color: #f4f4f4; }
    50% { background-color: #e0e0e0; }
    100% { background-color: #f4f4f4; }
}

.skeleton {
    animation: skeleton-pulse 1.5s infinite ease-in-out;
    border-radius: 4px;
}

.skeleton-card {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.p-img .img-primary {
    opacity: 1;
    transition: opacity 0.4s ease;
}

.p-img .img-secondary {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.product-card:hover .p-img .img-primary {
    opacity: 0;
}

.product-card:hover .p-img .img-secondary {
    opacity: 1;
}

/* =========================================
   CART DRAWER (SLIDE-OUT)
   ========================================= */

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.cart-drawer {
    position: fixed;
    top: 0;
    right: -450px;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: #fff;
    z-index: 10000;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    box-sizing: border-box; /* Prevent padding overflow */
}

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

.drawer-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f9f9f9;
}

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

/* =========================================
   HOMEPAGE ANIMATIONS (PHASE 17)
   ========================================= */

/* Infinite Marquee */
.marquee-wrapper {
    width: 100%;
    max-width: 100vw; /* Crucial restriction */
    overflow: hidden;
    background: var(--brand-dark);
    color: #fff;
    padding: 12px 0;
    white-space: nowrap;
    position: relative;
    box-sizing: border-box; /* Crucial restriction */
}

.marquee-content {
    display: inline-block;
    animation: marquee 25s linear infinite;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.marquee-content span {
    margin: 0 40px;
}

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

/* Scroll Reveal Utility */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   PHASE 18: VISUAL GRIDS & PARALLAX
   ========================================= */

/* Visual Categories Grid */
.v-cats-container {
    padding: 0 5% 100px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.v-cat-card {
    position: relative;
    height: 60vh;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
}

.v-cat-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 0;
}

.v-cat-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.2) linear-gradient(0deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 50%);
    z-index: 1;
    transition: 0.4s;
}

.v-cat-card:hover img {
    transform: scale(1.08);
}

.v-cat-card:hover::after {
    background: rgba(0,0,0,0.4) linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 50%);
}

.v-cat-info {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.v-cat-info h3 {
    font-size: 36px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.v-cat-info span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    border-bottom: 1px solid #fff;
    padding-bottom: 5px;
}

.v-cat-card:hover .v-cat-info {
    transform: translateY(0);
}

/* Base Parallax Class Utility */
.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* =========================================
   SKELETON LOADERS
   ========================================= */
@keyframes skeleton-pulse {
    0% { background-color: #f4f4f4; }
    50% { background-color: #e0e0e0; }
    100% { background-color: #f4f4f4; }
}

.skeleton {
    animation: skeleton-pulse 1.5s infinite ease-in-out;
    border-radius: 4px;
    width: 100%;
}

.skeleton-img { height: 350px; margin-bottom: 15px; }
.skeleton-text { height: 15px; margin-bottom: 8px; border-radius: 2px; }
.skeleton-price { height: 20px; width: 40%; margin: 10px auto 0; border-radius: 2px; }

/* =========================================
   GLOBAL FOOTER
   ========================================= */
footer {
    padding: 120px 5% 60px;
    background: #fff;
    border-top: 1px solid #eee;
}

.f-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 60px;
}

.f-col h4 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
}

.f-col a {
    display: block;
    text-decoration: none;
    color: inherit;
    font-size: 14px;
    opacity: 0.5;
    margin-bottom: 12px;
    transition: 0.2s;
}

.f-col a:hover {
    opacity: 1;
    padding-left: 5px;
}

.f-bottom {
    margin-top: 100px;
    padding-top: 40px;
    border-top: 1px solid #eee;
    text-align: center;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 3px;
    opacity: 0.3;
}

/* =========================================
   PHASE 19: HIGH-END UX (FILM GRAIN)
   ========================================= */

/* 1. Film Grain Pseudo-Element */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.04; 
    display: none !important; /* Disabled Film Grain to remove 'gris' noise */
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Disable Grain on Mobile to improve performance */
@media (max-width: 1024px) {
    body::before { display: none !important; }
}