@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800&family=Inter:wght@400;600&display=swap');

:root {
    --bg-color: #050505;
    --surface-color: #121212;
    --accent-color: #00d166;
    --accent-glow: rgba(0, 209, 102, 0.4);
    --accent-hover: #00f076;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(18, 18, 18, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    background-image: 
        linear-gradient(to bottom, rgba(5, 5, 5, 0.6), rgba(5, 5, 5, 0.95)),
        url('stadium_bg.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-color);
}


.navbar {
    background-color: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.8rem 2rem;
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.logo-img {
    height: 45px;
    width: auto;
    object-fit: cover;
    border-radius: 6px;
    transition: transform 0.2s;
}

.logo-img:hover {
    transform: scale(1.05);
}

.search-container {
    flex: 1;
    max-width: 500px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.8rem 1.2rem;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-color);
    color: var(--text-primary);
    outline: none;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 209, 102, 0.2);
}

/* --- ESTILOS MEJORADOS PARA EL DESPLEGABLE DE BÚSQUEDA --- */
.search-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    overflow: hidden;
    max-height: 400px;
    overflow-y: auto;
}

.search-dropdown.active {
    display: block;
    animation: fadeInDown 0.3s ease forwards;
}

.search-dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: background 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    gap: 1rem;
}

.search-dropdown-item:last-child {
    border-bottom: none;
}

.search-dropdown-item:hover {
    background: rgba(0, 209, 102, 0.1);
}

.search-dropdown-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    flex-shrink: 0;
}

.search-dropdown-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.search-dropdown-title {
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.search-dropdown-price {
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 700;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}


.nav-buttons {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.nav-icon {
    width: 22px;
    height: 22px;
    transition: transform 0.2s, color 0.2s;
    vertical-align: middle;
}

.nav-buttons a:hover .nav-icon {
    transform: scale(1.1);
    color: var(--accent-color);
}

.nav-link-with-badge {
    position: relative;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
}

.nav-badge {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-left: 0.3rem;
    background: rgba(0, 209, 102, 0.1);
    padding: 1px 6px;
    border-radius: 10px;
}

.btn {
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-align: center;
    display: inline-block;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #000;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 209, 102, 0.3);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
}

.btn-secondary:hover {
    background-color: rgba(0, 209, 102, 0.1);
}

/* =============================================
   BOTÓN "VER MÁS" — PAGINACIÓN
   ============================================= */

.load-more-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2.5rem 1rem 1rem;
}

.btn-load-more {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 2.4rem;
    border-radius: 50px;
    border: 1.5px solid var(--accent-color);
    background: transparent;
    color: var(--accent-color);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.03em;
    overflow: hidden;
    transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease, border-color 0.25s ease;
}

.btn-load-more::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 209, 102, 0.12), rgba(0, 240, 118, 0.06));
    opacity: 0;
    transition: opacity 0.25s ease;
    border-radius: inherit;
}

.btn-load-more:hover:not(:disabled)::before {
    opacity: 1;
}

.btn-load-more:hover:not(:disabled) {
    box-shadow: 0 0 20px rgba(0, 209, 102, 0.25), 0 4px 16px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
    border-color: var(--accent-hover);
}

.btn-load-more:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: none;
}

.btn-load-more__icon {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.btn-load-more:hover:not(:disabled) .btn-load-more__icon {
    transform: translateY(3px);
}

.btn-load-more__spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(0, 209, 102, 0.3);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: lm-spin 0.7s linear infinite;
    flex-shrink: 0;
}

@keyframes lm-spin {
    to { transform: rotate(360deg); }
}

.btn-load-more.is-loading {
    opacity: 0.85;
    cursor: not-allowed;
    border-color: rgba(0, 209, 102, 0.4);
    transform: none !important;
    box-shadow: none !important;
}

.btn-load-more.is-loading .btn-load-more__text {
    opacity: 0.6;
}

.btn-load-more.is-loading .btn-load-more__icon {
    display: none;
}

.btn-load-more.is-loading .btn-load-more__spinner {
    display: block;
}

@keyframes reveal-in {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.reveal-append {
    animation: reveal-in 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}



main {
    flex: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
    width: 100%;
}

.home-layout {
    display: block; 
    max-width: 1200px;
    margin: 0 auto;
}



.main-content-column {
    min-width: 0;
}


.hero-carousel-container {
    height: 420px;
    width: 98%;
    max-width: 1400px;
    background: #050505;
    border-radius: 12px;
    margin: 1rem auto 3rem;
    position: relative;
    overflow: hidden !important; 
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex; 
}

.hero-track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    height: 100%;
    width: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.hero-slide {
    width: 100%;
    min-width: 100%;
    flex: 0 0 100%;
    height: 100%;
    position: relative;
    background-color: #050505;
    overflow: hidden;
}

.hero-bg-blur {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 50%, rgba(0, 209, 102, 0.15), transparent 70%),
                radial-gradient(circle at 30% 50%, rgba(255, 218, 0, 0.05), transparent 70%),
                var(--bg-color);
    z-index: 0;
}

.hero-image-main {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.hero-image-main img {
    max-width: 80%;
    max-height: 70%; 
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.8));
    mask-image: radial-gradient(circle, black 65%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle, black 65%, transparent 100%);
}

@media (max-width: 900px) {
    .hero-image-main img {
        max-width: 90%;
        max-height: 55%; 
        transform: translateY(10%); /* Empujamos la imagen un poco hacia abajo en móvil */
    }
}


.hero-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(5,5,5,0.4) 40%, rgba(5,5,5,1) 85%);
    z-index: 2;
}

.hero-content {
    position: absolute;
    right: 6%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    max-width: 320px;
    text-align: right;
    animation: heroRightFade 0.8s ease-out;
}

@media (max-width: 900px) {
    .hero-content {
        right: 50%;
        top: auto;
        bottom: 120px;
        transform: translateX(50%);
        max-width: 90%;
        text-align: center;
        width: 100%;
    }
}

@keyframes heroRightFade {
    from { opacity: 0; transform: translateY(-50%) translateX(30px); }
    to { opacity: 1; transform: translateY(-50%) translateX(0); }
}

@media (max-width: 900px) {
    @keyframes heroRightFade {
        from { opacity: 0; transform: translateY(0) translateX(0) scale(0.9); }
        to { opacity: 1; transform: translateY(0) translateX(0) scale(1); }
    }
}

.hero-action-bottom {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
}

.hero-subtitle {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    color: #ffda00;
    margin-bottom: 1rem;
    font-weight: 700;
}

@media (max-width: 480px) {
    .hero-subtitle {
        font-size: 0.65rem;
        margin-bottom: 0.5rem;
        letter-spacing: 0.1rem;
    }
}

.hero-content h1 {
    font-size: 2.5rem; 
    font-weight: 800;
    margin-bottom: 0.8rem;
    color: #ffffff;
    text-shadow: 0 4px 12px rgba(0,0,0,0.6);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}


.hero-btn-yellow {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background-color: #ffda00;
    color: #000;
    padding: 1rem 3rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1.15rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 20px -5px rgba(255, 218, 0, 0.4);
    text-transform: none;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .hero-btn-yellow {
        padding: 0.7rem 1.6rem;
        font-size: 0.9rem;
        gap: 0.5rem;
    }
    .hero-action-bottom {
        bottom: 40px;
    }
}

@media (max-width: 480px) {
    .hero-btn-yellow {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
        gap: 0.4rem;
        box-shadow: 0 6px 15px -4px rgba(255, 218, 0, 0.5);
    }
    .hero-action-bottom {
        bottom: 30px;
    }
}

.hero-btn-yellow:hover {
    background-color: #fff000;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(255, 218, 0, 0.6);
}

.hero-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.hero-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-dot.active {
    background: #ffda00;
    width: 35px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(255, 218, 0, 0.5);
    border-color: #ffda00;
}

.hero-loading {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: var(--text-secondary);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 209, 102, 0.1);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: ft-spin 1s linear infinite;
}

@keyframes ft-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .hero-carousel-container { height: 400px; }
    .hero-content { 
        padding: 0 1.5rem; 
        top: 30px; 
        bottom: auto;
    }
    .hero-content h1 { font-size: 1.7rem; }
    .hero-content p { font-size: 0.95rem; margin-bottom: 1rem; }
}

@media (max-width: 480px) {
    .hero-carousel-container { height: 360px; }
    .hero-content { 
        top: 20px;
    }
    .hero-content h1 { font-size: 1.4rem; }
    .hero-content p { display: none; }
    .hero-action-bottom { bottom: 20px; }
}


.section-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.section-title::before {
    content: '';
    display: block;
    width: 6px;
    height: 24px;
    background-color: var(--accent-color);
    border-radius: 4px;
}


.category-bar {
    background-color: var(--surface-color);
    border-bottom: 1px solid var(--border-color);
    padding: 0; 
    position: sticky;
    top: 65px; 
    z-index: 99;
    /* Efecto de máscara para indicar scroll */
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.category-bar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 2rem;
    overflow-x: auto;
    padding: 0.8rem 1.5rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.category-bar-container::-webkit-scrollbar {
    display: none;
}

.category-link {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s;
    padding: 0.4rem 0.2rem;
    border-bottom: 2px solid transparent;
    scroll-snap-align: center;
}

.category-link:hover {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

@media (max-width: 768px) {
    .category-bar {
        top: 105px; 
        padding: 0.3rem 0;
    }
    .category-bar-container {
        justify-content: flex-start;
        gap: 1.5rem;
    }
    .category-link {
        font-size: 0.85rem;
    }
}



.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.load-more-container {
    text-align: center;
    margin-top: 2rem;
    margin-bottom: 4rem;
}
.product-card-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card {
    background-color: var(--surface-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    position: relative;
    height: 100%;
    flex: 1;
}



.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px var(--accent-glow);
    border-color: var(--accent-color);
}

.product-img-wrapper {
    height: 200px;
    background-color: #1a1a1a; /* Un poco más oscuro para resaltar la carta */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    padding: 0.8rem; /* Espacio para que la carta no toque los bordes */
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ajusta sin cortar */
    transition: transform 0.5s ease;
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.08);
}

.product-img-wrapper img[src=""],
.product-img-wrapper img:not([src]) {
    opacity: 0;
}

.product-img-wrapper::after {
    content: 'No Image';
    position: absolute;
    color: var(--text-secondary);
    font-size: 0.9rem;
    z-index: -1;
}

.product-info {
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
}

.product-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
    line-height: 1.4;
}

.product-price {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.25rem;
    margin-top: auto;
}


.store-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2.5rem;
    align-items: start;
}

.sidebar {
    background-color: var(--surface-color);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    position: sticky;
    top: 100px;
}

.sidebar h2 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.8rem;
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group label {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: color 0.2s;
}

.filter-group label:hover {
    color: var(--text-primary);
}

.filter-group>label.filter-title {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    cursor: default;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-group input[type="checkbox"] {
    appearance: none;
    background-color: var(--bg-color);
    margin: 0;
    font: inherit;
    color: currentColor;
    width: 20px;
    height: 20px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    display: grid;
    place-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-group input[type="checkbox"]::before {
    content: "";
    width: 12px;
    height: 12px;
    border-radius: 2px;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    background-color: var(--bg-color);
}

.filter-group input[type="checkbox"]:checked {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.filter-group input[type="checkbox"]:checked::before {
    transform: scale(1);
}



.auth-container {
    max-width: 420px;
    margin: 3rem auto;
    background-color: var(--surface-color);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.auth-container h2 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 1.6rem;
}

.auth-container p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-input {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.auth-btn {
    width: 100%;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    padding: 0.8rem;
    font-size: 1rem;
}

.auth-links {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.auth-links a {
    color: var(--accent-color);
    font-weight: 600;
}

.auth-links a:hover {
    text-decoration: underline;
}


footer {
    background-color: #050505;
    padding: 2.5rem 1rem;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
    text-align: center;
    color: var(--text-secondary);
}

footer p,
footer address {
    margin-top: 0.5rem;
    font-style: normal;
    font-size: 0.9rem;
}

footer a {
    color: var(--text-secondary);
    transition: color 0.2s;
}

footer a:hover {
    color: var(--accent-color);
}


@media (max-width: 1100px) {
    .home-layout {
        grid-template-columns: 1fr;
    }

    .ads-sidebar {
        position: static;
        order: 2;
        min-height: auto;
    }
}

@media (max-width: 900px) {
    .store-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        z-index: 10;
        transition: max-height 0.3s ease-out;
        overflow: hidden;
    }

    .sidebar.collapsed {
        max-height: 50px;
    }

    .sidebar h2 {
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .sidebar h2::after {
        content: '▼';
        font-size: 0.8rem;
    }

    .sidebar.collapsed h2::after {
        content: '▲';
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.8rem 1rem;
    }

    .nav-container {
        flex-wrap: wrap;
        gap: 0.5rem;
        position: relative;
    }

    .logo-img {
        height: 35px;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 20px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
        margin-left: auto; 
    }

    .menu-toggle span {
        width: 100%;
        height: 3px;
        background-color: var(--accent-color);
        transition: transform 0.3s, opacity 0.3s;
        border-radius: 4px;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8.5px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8.5px) rotate(-45deg);
    }

    .nav-buttons {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: var(--bg-color);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        z-index: 1000;
        transform: translateY(-150%);
        transition: transform 0.3s ease-in-out;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        border-bottom: 1px solid var(--border-color);
    }

    .nav-buttons.active {
        transform: translateY(0);
    }

    .nav-buttons .btn {
        width: 100%;
    }

    .search-container {
        width: 100%;
        order: 3;
        margin-top: 0.8rem;
        max-width: none;
    }

    .search-container.active {
        display: block;
    }
}


@media (min-width: 769px) {
    .menu-toggle {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 2rem 1rem;
    }

    .section-title {
        font-size: 1.4rem;
        margin-bottom: 1.2rem;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }

    .product-info {
        padding: 0.8rem;
    }

    .product-title {
        font-size: 0.9rem;
    }

    .product-price {
        font-size: 1.1rem;
    }
}


.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background-color: var(--surface-color);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    margin-bottom: 3rem;
}

.product-detail-image {
    background-color: #222;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    min-height: 400px;
    position: relative;
    overflow: hidden;
}

.product-detail-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

.product-detail-image img:hover {
    transform: scale(1.05);
}

.product-detail-info {
    display: flex;
    flex-direction: column;
}

.product-detail-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.product-detail-price {
    font-size: 2.5rem;
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 2rem;
}

.product-detail-desc {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.product-detail-meta {
    margin-bottom: 2rem;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
}

.meta-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
}

.meta-item:last-child {
    margin-bottom: 0;
}

.meta-label {
    color: var(--text-secondary);
}

.meta-value {
    color: var(--text-primary);
    font-weight: 600;
}

.add-to-cart-btn {
    padding: 1.2rem;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    .product-detail-container {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
    .product-carousel {
        height: 350px;
    }
}


@media (min-width: 769px) {
    .product-detail-container {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        align-items: start;
        padding: 3rem 2rem;
    }
    .product-carousel {
        position: sticky;
        top: 100px;
    }
}


@media (max-width: 992px) {
    .store-container {
        grid-template-columns: 1fr;
    }
    .sidebar {
        position: relative;
        top: 0;
        margin-bottom: 2rem;
    }
}

#min-price, #max-price {
    width: 90px;
    min-width: 80px;
}

@media (max-width: 480px) {
    .nav-buttons {
        gap: 0.5rem !important;
    }
    .nav-buttons .btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
    .logo-img {
        height: 35px;
    }
}


.ft-toast {
    border-radius: 12px !important;
    border-left: 5px solid var(--accent-color) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
}

@media (max-width: 768px) {
    .ft-toast-mobile {
        width: 90% !important;
        margin: 10px auto !important;
        font-size: 0.85rem !important;
        padding: 0.5rem !important;
    }
    .ft-toast-mobile .swal2-title {
        font-size: 1rem !important;
    }
    .ft-toast-mobile .swal2-html-container {
        font-size: 0.8rem !important;
    }
}


.ft-toast-success {
    border-left-color: #00d166 !important;
    background: linear-gradient(90deg, #1a1a2e 0%, #0d2d1d 100%) !important;
}

.ft-toast-warning {
    border-left-color: #ffcc00 !important;
    background: linear-gradient(90deg, #1a1a2e 0%, #3d3500 100%) !important;
}

.ft-toast-error {
    border-left-color: #ff4d4d !important;
    background: linear-gradient(90deg, #1a1a2e 0%, #3d0000 100%) !important;
}

.ft-toast-info {
    border-left-color: #0099ff !important;
    background: linear-gradient(90deg, #1a1a2e 0%, #001a3d 100%) !important;
}

.ft-popup {
    border-radius: 20px !important;
    background: #121212 !important;
    border: 1px solid var(--border-color) !important;
}

.ft-title {
    color: #fff !important;
    font-weight: 800 !important;
    letter-spacing: -0.5px !important;
}

.ft-confirm-btn {
    border-radius: 8px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}


@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .hide-desktop {
        display: none !important;
    }
}

/* Redes Sociales - Footer */
.social-links {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 1.5rem;
}

.footer-social-link {
    color: var(--text-secondary);
    transition: transform 0.2s ease, color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-social-link:hover {
    transform: scale(1.25);
    color: var(--accent-color);
}