/* --- CORE --- */
body {
    background-color: #050505;
    color: #ffffff;
    cursor: default;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

/* --- LOADER STYLES (CINEMATIC) --- */
#loader-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: #050505;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.8s ease-in-out;
}

#loader-logo {
    will-change: transform;
    transform-origin: top left;
    position: relative;
    z-index: 10000;
}

.loader-complete {
    pointer-events: none;
    background-color: transparent !important;
}

/* --- NAVBAR STYLES (CLEAN & STATIC FOR TRANSITION) --- */
#main-navbar {
    transition:
        background-color 0.4s ease,
        backdrop-filter 0.4s ease,
        border-bottom 0.4s ease,
        padding 0.4s ease;
    will-change: background-color, backdrop-filter, padding;
}

#main-navbar.scrolled {
    background-color: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

#main-navbar:not(.scrolled) {
    background-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid transparent;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

/* Logo estático para asegurar encaje perfecto */
#nav-logo {
    opacity: 0;
    /* Hidden initially for loader land */
    transform: none !important;
    /* Force static geometry */
    transition: opacity 0.1s ease;
    /* Only fade, no movement */
    cursor: default;
}

/* --- REVEAL ANIMATIONS --- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- UI COMPONENTS --- */
.pro-card {
    contain: paint;
    transform-style: preserve-3d;
    will-change: transform;
}

.tech-grid {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

.radial-glow {
    background: radial-gradient(circle, rgba(204, 255, 0, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
}

.stroke-text {
    -webkit-text-stroke: 1px white;
    color: transparent;
    transition: all 0.4s ease;
}

.stroke-text:hover {
    color: #CCFF00;
    -webkit-text-stroke: 0px;
    text-shadow: 0 0 30px rgba(204, 255, 0, 0.3);
}

.toast {
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
    transform: translateY(0);
}

.admin-view {
    display: none;
}

.store-view {
    display: block;
}

body.is-admin .admin-view {
    display: block;
}

body.is-admin .store-view {
    display: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: #050505;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 2px;
}

/* Mobile Menu */
#mobile-menu-overlay {
    clip-path: circle(0% at 100% 0);
    transition: clip-path 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

#mobile-menu-overlay.active {
    clip-path: circle(150% at 100% 0);
}

/* ===== NEON CARD DESIGN SYSTEM ===== */
:root {
    --neon-accent: #CCFF00;
    --dark-bg-main: #121212;
    --dark-card-bg: #1E1E1E;
    --text-white: #FFFFFF;
    --text-gray: #A0A0A0;
    --card-border-radius: 25px;
}

/* Product Card Container - Responsive */
.neon-product-card {
    background-color: var(--dark-card-bg);
    border-radius: var(--card-border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 9 / 13;
    margin: 0 auto;
}

/* Mobile (320px - 639px) */
@media (min-width: 320px) {
    .neon-product-card {
        max-width: 280px;
    }
}

/* Tablet (640px - 1023px) */
@media (min-width: 640px) {
    .neon-product-card {
        max-width: 260px;
    }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    .neon-product-card {
        max-width: 280px;
    }
}

/* Large Desktop (1440px+) */
@media (min-width: 1440px) {
    .neon-product-card {
        max-width: 300px;
    }
}

.neon-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

/* Neon Graphic Background - Responsive */
.neon-card-graphic {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 46%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.neon-card-graphic::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at top left, var(--neon-accent) 0%, var(--neon-accent) 35%, transparent 36%);
    transition: transform 0.5s ease;
}

.neon-product-card:hover .neon-card-graphic::before {
    transform: scale(1.05);
}

/* Shoe Image Container - Responsive */
.neon-card-image-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 46%;
    padding: 8% 6%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.neon-card-image {
    width: 100%;
    max-width: 85%;
    max-height: 75%;
    object-fit: contain;
    filter: drop-shadow(0px 15px 15px rgba(0, 0, 0, 0.6));
    transition: transform 0.4s ease, filter 0.4s ease;
}

.neon-product-card:hover .neon-card-image {
    transform: scale(1.05) rotate(-2deg);
    filter: drop-shadow(0px 20px 20px rgba(0, 0, 0, 0.7));
}

/* Card Content - Responsive */
.neon-card-content {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 54%;
    padding: 5% 6% 6%;
    text-align: center;
    background-color: var(--dark-card-bg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
}

.neon-card-title {
    color: var(--text-white);
    font-size: clamp(14px, 3.5vw, 18px);
    font-weight: bold;
    margin: 0;
    line-height: 1.3;
    min-height: 2.6em;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-overflow: ellipsis;
}

.neon-card-category {
    color: var(--text-gray);
    font-size: clamp(9px, 2.2vw, 11px);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4%;
    font-weight: 600;
}

/* Size and Color Options */
.neon-card-options {
    margin: 12px 0;
    flex-shrink: 0;
}

.neon-option-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 8px;
    height: 30px;
}

.neon-option-label {
    color: var(--text-gray);
    font-size: 12px;
    min-width: 45px;
    text-align: left;
    font-weight: 500;
}

.neon-size-box {
    width: 28px;
    height: 28px;
    background-color: white;
    color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.neon-size-box:hover,
.neon-size-box.active {
    background-color: var(--neon-accent);
    transform: scale(1.1);
}

.neon-color-circle {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.2s ease, border-color 0.2s ease;
    flex-shrink: 0;
}

.neon-color-circle:hover {
    transform: scale(1.15);
    border-color: white;
}

/* Price Badge - Responsive */
.neon-card-price {
    font-size: clamp(16px, 4vw, 20px);
    font-weight: bold;
    color: var(--neon-accent);
    margin: 4% 0;
    min-height: 1.4em;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Buy Now Button - Responsive */
.neon-buy-button {
    background-color: var(--neon-accent);
    color: black;
    font-weight: bold;
    text-transform: uppercase;
    padding: 4% 0;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: clamp(11px, 2.5vw, 13px);
    letter-spacing: 0.15em;
    transition: transform 0.2s ease, background-color 0.2s ease;
    width: 100%;
    max-width: 85%;
    min-height: 2.8em;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.neon-buy-button:hover {
    transform: scale(1.05);
    background-color: #e0ff33;
}

/* Badge (NEW, SALE, etc.) - Responsive */
.neon-card-badge {
    position: absolute;
    top: 4%;
    right: 4%;
    background-color: var(--neon-accent);
    color: black;
    font-size: clamp(8px, 2vw, 10px);
    font-weight: bold;
    text-transform: uppercase;
    padding: 0.4em 0.8em;
    border-radius: 4px;
    letter-spacing: 0.1em;
    z-index: 20;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    min-height: 1.8em;
    display: flex;
    align-items: center;
}

/* Out of Stock State */
.neon-product-card.out-of-stock {
    opacity: 0.6;
    filter: grayscale(0.8);
}

.neon-product-card.out-of-stock::after {
    content: 'AGOTADO';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    background-color: rgba(255, 0, 0, 0.9);
    color: white;
    font-size: 24px;
    font-weight: bold;
    padding: 10px 30px;
    border-radius: 5px;
    z-index: 30;
    letter-spacing: 3px;
}