/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Inter:wght@400;500&display=swap');

:root {
    --bg-main: #060608;
    --bg-card: #111114;
    --bg-glass: rgba(10, 10, 14, 0.8);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --accent: #5e6ad2;
    --accent-hover: #7b88ff;
    --accent-glow: rgba(94, 106, 210, 0.5);
    --neon-glow: 0 0 30px rgba(94, 106, 210, 0.3);
    --border: #1e1e24;
    --border-hover: #33333e;
    --border-glass: rgba(255, 255, 255, 0.1);
    --danger: #ef4444;
    --success: #10b981;
    --header-height: 80px;
    --announcement-height: 40px;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

.announcement-bar {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #fff;
    border: none;
    text-align: center;
    padding: 10px 5%;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Glassmorphism Header */
.main-header {
    position: fixed;
    top: var(--announcement-height);
    width: 100%;
    height: 70px;
    z-index: 1000;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s ease;
}

header.scrolled {
    padding: 0.8rem 8%;
    background: rgba(6, 6, 8, 0.9);
    top: 0;
}

.logo {
    font-size: 1.6rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-primary);
    text-decoration: none;
}














/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(94,106,210,0.15) 0%, rgba(10,10,12,0) 70%);
    z-index: 0;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #ffffff, #a0a0b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-family: 'Inter', sans-serif;
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
}

.hero-image-container {
    position: absolute;
    right: 8%;
    top: 55%;
    transform: translateY(-50%);
    z-index: 10;
}

.hero-video-wrapper {
    width: 320px;
    height: 550px;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--neon-glow), 0 30px 60px rgba(0,0,0,0.8);
    animation: floatHero 6s ease-in-out infinite;
}

.hero-sneaker-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
}

@keyframes floatHero {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

@media (max-width: 1024px) {
    .hero { 
        flex-direction: column; 
        text-align: center; 
        padding-top: 140px; 
        min-height: auto; 
        padding-bottom: 4rem; 
        display: flex;
        justify-content: center;
    }
    .hero-content { 
        margin: 0 auto; 
        width: 100%; 
        padding: 0 1rem;
    }
    .hero h1 { font-size: 3.5rem; line-height: 1.2; }
    .hero p { font-size: 1.1rem; }
    .hero-image-container { 
        position: relative; 
        right: auto; 
        top: auto; 
        transform: none; 
        margin-top: 2rem; 
        display: flex; 
        justify-content: center; 
        width: 100%; 
    }
    .hero-video-wrapper { 
        width: 260px; 
        height: 450px; 
    }
}

@media (max-width: 768px) {
    .main-header { padding: 0 15px; height: 60px; }
    .logo { font-size: 1.3rem; }
    .hero { padding-top: 100px; }
    .hero h1 { font-size: 2.8rem; }
    .section-title { font-size: 2rem; }
    .products-section { padding: 3rem 15px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 0.95rem; margin-bottom: 1.5rem; }
    .hero-video-wrapper { 
        width: 220px; 
        height: 380px; 
    }
    .section-title { font-size: 1.6rem; }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    background: var(--accent);
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 12px;
    box-shadow: 0 10px 20px -10px var(--accent-glow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    gap: 0.5rem;
}

.btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -10px var(--accent-glow);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border);
    box-shadow: none;
}

.btn-secondary:hover {
    background: var(--bg-card);
    border-color: var(--text-secondary);
}

/* Products Grid */
.products-section {
    padding: 5rem 5%;
    position: relative;
    z-index: 10;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.card {
    flex: 0 1 300px;
    max-width: 100%;
    background: var(--bg-card);
    border-radius: 24px;
    padding: 1.2rem;
    border: 1px solid var(--border);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: var(--accent-hover);
    box-shadow: 0 20px 40px -20px rgba(0,0,0,0.5), 0 0 20px rgba(94, 106, 210, 0.1);
}

.card-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    transition: transform 0.5s;
}

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

/* Wishlist Heart Icon */
.wishlist-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 15;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wishlist-btn:hover {
    transform: scale(1.15);
    background: rgba(255, 255, 255, 0.1);
}

.wishlist-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

.wishlist-btn i {
    font-size: 1.1rem;
    transition: transform 0.3s;
}

.wishlist-btn:active i {
    transform: scale(0.8);
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    text-decoration: none;
    display: block;
}

.card-brand {
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.price {
    font-size: 1.5rem;
    font-weight: 600;
}

.btn-icon {
    background: var(--bg-main);
    color: white;
    border: 1px solid var(--border);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-icon:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

/* Forms & Tables (Reusable) */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1.2rem;
    background: #0f0f12;
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-radius: 12px;
    transition: all 0.3s;
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    background: #15151a;
    box-shadow: 0 0 0 4px rgba(94, 106, 210, 0.1);
}

.admin-panel {
    padding: 8rem 5% 5rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
}

th, td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

th {
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
}

/* Layout Utilities */
main {
    min-height: calc(100vh - 250px);
}

/* Search Component */
.search-container {
    max-width: 700px;
    margin: 0 auto 4rem;
    padding: 0 5%;
}

.search-form {
    display: flex;
    gap: 0;
    background: #0f0f12;
    padding: 0.4rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s;
    align-items: center;
}

.search-form:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(94, 106, 210, 0.1);
    background: #15151a;
}

.search-icon {
    padding-left: 1.5rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 1rem 1.5rem;
    color: var(--text-primary);
    font-size: 1.1rem;
    outline: none;
}

.btn-search {
    border-radius: 12px;
    padding: 0.8rem 2rem;
}

.search-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    animation: fadeIn 0.4s ease;
}

.clear-search {
    width: 24px;
    height: 24px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s;
}

.clear-search:hover {
    background: var(--danger);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Scroll Shadow logic */
header.scrolled {
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Carrito Premium */
.cart-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.cart-item:hover {
    border-color: var(--accent);
}

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

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

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

.cart-item-meta {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-item-subtotal {
    font-size: 1.25rem;
    font-weight: 700;
    min-width: 110px;
    text-align: right;
    color: var(--text-primary);
}

/* --- PRODUCT VIEW RESTORATION (DESKTOP) --- */
.product-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    margin: 4rem auto;
    max-width: 1100px;
    align-items: start;
    padding: 0 5%;
}

.product-gallery {
    position: sticky;
    top: calc(var(--header-height) + 40px);
}

.product-img-main {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.product-info h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.1;
}

.product-price {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent-hover);
    margin: 20px 0;
}

.product-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.variation-selects {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.variation-selects select {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 1.2rem;
    border-radius: 12px;
    font-size: 1.05rem;
}

/* --- MOBILE LUXURY (NIKE STYLE) --- */
@media (max-width: 768px) {
    :root {
        --container-padding: 24px;
    }

    body { font-size: 15px; }

    .announcement-bar {
        position: relative;
        padding: 8px var(--container-padding) !important;
        font-size: 0.65rem;
        z-index: 1100;
    }

    header {
        position: sticky !important;
        top: 0 !important;
        height: 70px !important;
        background: #000 !important;
        padding: 0 var(--container-padding) !important;
        border-bottom: 1px solid #222;
        z-index: 1099 !important;
    }

    .logo { font-size: 1.2rem !important; }

    header nav { display: none !important; }

    .cart-container {
        display: flex;
        align-items: center;
        gap: 1.2rem;
    }

    .mobile-nav {
        display: flex !important;
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        height: 100vh;
        background: #000 !important;
        z-index: 20000 !important;
        padding: 100px var(--container-padding) 40px;
        flex-direction: column;
        gap: 2rem;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        border-left: 1px solid #222;
    }

    .mobile-nav.active { right: 0; }
    .mobile-nav a { font-size: 1.6rem; font-weight: 700; text-transform: uppercase; color: #fff !important; text-decoration: none; border-bottom: 1px solid #111; padding-bottom: 10px; letter-spacing: 1px; }

    .overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(0,0,0,0.8); backdrop-filter: blur(4px); z-index: 19999 !important; display: none; }
    .overlay.active { display: block; }

    .hero { padding: 60px var(--container-padding) 40px; }
    .hero h1 { font-size: 2.2rem !important; }
    .hero-sneaker-img { max-width: 260px !important; }

    .grid { grid-template-columns: 1fr !important; gap: 40px !important; padding: 0 var(--container-padding) !important; }
    .card { background: transparent !important; padding: 0 !important; border: none !important; }
    .card-img { aspect-ratio: 1/1 !important; height: auto !important; border-radius: 20px !important; background: #111; border: 1px solid #222 !important; }

    .product-layout { grid-template-columns: 1fr; gap: 2.5rem; padding: 40px var(--container-padding) 100px; margin: 0; }
    .product-gallery { position: relative; top: 0; }
    .product-info h1 { font-size: 2.2rem !important; }
    .product-price { font-size: 1.8rem !important; }

    /* Cart Item Mobile Fix */
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }

    .cart-item-img {
        width: 100%;
        height: 200px;
    }

    .cart-item-actions {
        width: 100%;
        justify-content: space-between;
        margin-top: 15px;
        padding-top: 10px;
        border-top: 1px solid #222;
    }

    .cart-item-subtotal {
        width: 100%;
        text-align: right;
        margin-top: 10px;
    }

    table, thead, tbody, th, td, tr { display: block; }
    thead tr { display: none; }
    tr { background: #111; border: 1px solid #222; border-radius: 12px; padding: 15px; margin-bottom: 15px; }
    td { display: flex; justify-content: space-between; align-items: center; padding: 8px 0 !important; border-bottom: 1px solid #222; }
    td:last-child { border-bottom: none; }
    td:before { content: attr(data-label); font-weight: 600; opacity: 0.6; font-size: 0.8rem; text-transform: uppercase; }
}




/* Footer override */
footer {
    border: none;
    background: #000;
    padding: 6rem 5% 3rem;
}

/* Dashboard Premium */
.dashboard-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 3rem;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 5% 5rem;
}

.profile-sidebar {
    position: sticky;
    top: 120px;
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.order-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    margin-bottom: 2rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.order-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.5rem;
}

.status-badge {
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-top: 50px;
    }
    
    .profile-sidebar {
        position: static;
        padding: 2rem;
    }
}

/* Drops & Countdown Styles */
.drop-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 15;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(217, 119, 6, 0.3);
}

.drop-countdown {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: #f59e0b;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* --- BENEFITS BAR --- */
.benefits-bar {
    background: #000;
    border-bottom: 1px solid var(--border);
    padding: 0.8rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    position: fixed;
    top: calc(70px + var(--announcement-height));
    width: 100%;
    z-index: 999;
    transition: all 0.4s;
}

.main-header.scrolled + .benefits-bar {
    top: 70px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.benefit-item i {
    color: var(--accent);
    font-size: 1rem;
}

@media (max-width: 768px) {
    .benefits-bar {
        position: relative;
        top: 0 !important;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        padding: 1rem 5%;
    }
    .benefit-item {
        font-size: 0.75rem;
    }
}

/* --- SIZE GUIDE --- */
.size-guide-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    transition: all 0.3s;
    cursor: pointer;
    border-bottom: 1px dashed var(--accent);
}

.size-guide-link:hover {
    color: var(--accent-hover);
    border-color: var(--accent-hover);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 2.5rem;
    max-width: 800px;
    width: 95%;
    position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    max-height: 90vh;
    overflow-y: auto;
}

.size-guide-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .modal-content {
        padding: 1.5rem;
        padding-top: 3.5rem;
    }
    .size-guide-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Fix mobile table layout for size guide */
    .size-guide-grid table { display: table !important; width: 100%; }
    .size-guide-grid thead { display: table-header-group !important; }
    .size-guide-grid tbody { display: table-row-group !important; }
    .size-guide-grid tr { display: table-row !important; background: transparent !important; border: none !important; margin: 0 !important; padding: 0 !important; }
    .size-guide-grid thead tr { display: table-row !important; }
    .size-guide-grid th, .size-guide-grid td { display: table-cell !important; padding: 0.8rem !important; border-bottom: 1px solid var(--border) !important; text-align: center !important; }
    .size-guide-grid td:before { display: none !important; }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: white;
}




/* Reviews Carousel */
.reviews-carousel-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: slide-reviews 40s linear infinite;
}

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

.review-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    width: 350px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

@keyframes slide-reviews {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 1rem)); } /* -50% because we duplicated the array */
}

@media (max-width: 768px) {
    .review-card {
        width: 300px;
    }
}


/* Floating Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 800px;
    height: 75px;
    background: rgba(15, 15, 20, 0.8);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 10px;
    z-index: 2000;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    position: relative;
}

.nav-item i {
    font-size: 1.4rem;
    margin-bottom: 4px;
}

.nav-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-item:hover, .nav-item.active {
    color: var(--text-primary);
    transform: translateY(-5px);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -10px;
    width: 5px;
    height: 5px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
}

.nav-icon-home {
    background: #fff;
    width: 45px;
    height: 45px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: -5px;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -12px;
    background: var(--accent);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px var(--accent-glow);
}

.profile-link {
    color: var(--text-primary);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.profile-link:hover {
    transform: scale(1.1);
    color: var(--accent);
}

/* Page spacing for bottom nav */
body {
    padding-bottom: 100px;
}

.header-icon-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1.1rem;
}

.header-icon-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* Global fixes for mobile components on desktop */
.mobile-nav {
    display: none;
}
.overlay {
    display: none;
}


/* Global Nav Styles (Restored for Admin Panel) */
nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover, nav a.active {
    color: var(--accent);
}

/* Specific fix for admin header */
header .logo {
    margin-bottom: 0.5rem;
}


/* Explicit Admin Header Fix */
header nav ul {
    list-style: none !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 1.5rem !important;
    padding: 0 !important;
    margin: 0 !important;
}

header nav ul li {
    margin: 0 !important;
}

header nav ul li a {
    color: var(--text-secondary) !important;
    text-decoration: none !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

header nav ul li a:hover, header nav ul li a.active {
    color: var(--accent) !important;
}


/* --- BRAND CATEGORIES SECTION --- */
.categories-section {
    padding: 4rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.category-card {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    border: 1px solid var(--border);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a20;
}

.category-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    filter: brightness(0.9);
}

.category-card:hover img {
    transform: scale(1.15);
    filter: brightness(1.1);
}

.category-card .category-info {
    position: relative;
    z-index: 2;
    text-align: center;
}

.category-card h3 {
    font-size: 2.5rem;
    font-weight: 900;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    text-shadow: 0 5px 15px rgba(0,0,0,0.5);
    transition: transform 0.5s;
}

.category-card:hover h3 {
    transform: scale(1.1);
}

.category-card .category-btn {
    margin-top: 1rem;
    padding: 0.5rem 1.5rem;
    background: white;
    color: black;
    font-weight: 800;
    font-size: 0.8rem;
    border-radius: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.category-card:hover .category-btn {
    opacity: 1;
    transform: translateY(0);
}

.category-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 30px rgba(94, 106, 210, 0.3);
}

@media (max-width: 480px) {
    .categories-grid {
        grid-template-columns: 1fr; /* Una columna en móviles muy pequeños */
        gap: 1rem;
    }
    .category-card h3 {
        font-size: 1.8rem;
    }
}

/* --- BRAND UNIVERSE HERO (SHOP.PHP) --- */
.brand-hero {
    height: 70vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 0;
}

.brand-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.6);
    background-attachment: fixed;
}

.brand-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    max-width: 800px;
}

.brand-hero h1 {
    font-size: 6rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -3px;
    line-height: 0.9;
    margin-bottom: 1rem;
}

.brand-hero p {
    font-size: 1.5rem;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    font-weight: 300;
}
