/** * SUNGLASSNICE PREMIUM - MASTER DESIGN SYSTEM 
 * Versión Final 3.5 - Ultra-Responsive & Luxury Optics
 * Jet (#292929), Cornell Red (#AE040F), Silver (#BEBEBE), Anti-Flash White (#EFEFEF)
 */

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

:root {
    /* Paleta Base */
    --silver: #959595;
    --cornell-red: #AE040F;
    --jet: #292929;
    --anti-flash-white: #EFEFEF;
    
    /* Semántica */
    --primary: var(--jet);
    --accent: var(--cornell-red);
    --bg-light: var(--anti-flash-white);
    --glass: rgba(239, 239, 239, 0.9);
    
    /* Efectos */
    --transition-smooth: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-premium: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --shadow-neon: 0 0 15px rgba(174, 4, 15, 0.4);
    --radius-lg: 3rem;
    --radius-md: 1.5rem;
}

/* --- RESET & BASE --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-light);
    color: var(--jet);
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    line-height: 1.5;
}


/* --- NAVEGACIÓN PREMIUM --- */
.glass-nav {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: var(--glass);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 80px; 
    display: flex;
    align-items: center;
    transition: var(--transition-smooth);
    border-bottom: 2px solid var(--cornell-red);
    box-shadow: 0 4px 15px rgba(174, 4, 15, 0.15);
}

.glass-nav.scrolled {
    height: 70px;
    background: rgba(239, 239, 239, 0.98);
    box-shadow: 0 10px 30px rgba(174, 4, 15, 0.4);
}

.nav-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.glass-nav img {
    height: 45px; 
    width: auto;
    max-width: 180px;
    object-fit: contain;
    transition: var(--transition-smooth);
}

@media (min-width: 1024px) {
    .glass-nav { height: 110px; }
    .glass-nav.scrolled { height: 90px; }
    .glass-nav img { height: 75px; max-width: 280px; }
    .nav-container { padding: 0 2.5rem; }
}

/* ACCIONES NAV: CARRITO & AUTH */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--jet);
    color: white;
    border-radius: 14px;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.cart-btn:hover {
    background: var(--cornell-red);
    box-shadow: 0 0 20px var(--cornell-red);
    transform: translateY(-2px);
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: white;
    color: var(--cornell-red);
    font-size: 10px;
    font-weight: 900;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--cornell-red);
}

/* LINKS DE NAVEGACIÓN */
.nav-links-wrapper { display: none; }
@media (min-width: 1024px) { .nav-links-wrapper { display: flex; gap: 3rem; } }

.nav-link {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--jet);
    text-decoration: none;
    position: relative;
    transition: var(--transition-smooth);
}

.nav-link:hover { color: var(--cornell-red); }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--cornell-red);
    transition: width 0.3s ease;
}
.nav-link:hover::after { width: 100%; }

/* --- CATALOGO: PRODUCT CARDS --- */
.product-card-premium {
    position: relative;
    background: white;
    border-radius: 2.5rem;
    padding: 1.25rem;
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.product-card-premium:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-premium);
    border-color: var(--cornell-red);
}

/* Imagen y Efecto Ojo */
.card-image-wrapper {
    position: relative;
    aspect-ratio: 4/5;
    border-radius: 2rem;
    overflow: hidden;
    background: var(--bg-light);
    margin-bottom: 1.5rem;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.product-card-premium:hover .card-image-wrapper img {
    transform: scale(1.1);
}

.hover-view-btn {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
    pointer-events: none;
}

.product-card-premium:hover .hover-view-btn {
    opacity: 1;
}

.view-icon-circle {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(20px);
    transition: var(--transition-smooth);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.product-card-premium:hover .view-icon-circle {
    transform: translateY(0);
}

/* --- MARQUEE (CINTA DE MARCA) --- */
.brand-marquee {
    background: var(--jet);
    padding: 1.5rem 0;
    overflow: hidden;
    display: flex;
}

.marquee-content {
    display: flex;
    white-space: nowrap;
    animation: marqueeScroll 30s linear infinite;
}

@keyframes marqueeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.marquee-item {
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    font-style: italic;
    padding: 0 3rem;
    color: white;
}

/* --- MODO ADMINISTRADOR --- */
.admin-sidebar {
    background: #111;
    border-right: 1px solid #222;
    min-height: 100vh;
}

.admin-card {
    background: #222;
    border: 1px solid #333;
    border-radius: 1.5rem;
    padding: 2rem;
    transition: var(--transition-smooth);
}

.admin-card:hover {
    border-color: var(--cornell-red);
    background: #282828;
}

/* --- CHECKOUT & FORMS --- */
.input-premium {
    width: 100%;
    background: white;
    border: 2px solid transparent;
    padding: 1.25rem 1.5rem;
    border-radius: 1.25rem;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}

.input-premium:focus {
    outline: none;
    border-color: var(--cornell-red);
    box-shadow: var(--shadow-neon);
}

/* --- BOTONES LUXURY --- */
.btn-luxury {
    background: var(--jet);
    color: white;
    padding: 1.25rem 2.5rem;
    border-radius: 1.25rem;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-luxury:hover { 
    background: var(--cornell-red); 
    transform: translateY(-3px); 
    box-shadow: 0 15px 30px rgba(174, 4, 15, 0.4); 
}

/* --- SKELETON LOADING --- */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* --- WATERMARK --- */
.brand-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-5deg);
    font-size: 15vw;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.02);
    pointer-events: none;
    text-transform: uppercase;
    font-style: italic;
    z-index: 0;
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 768px) {
    :root {
        --radius-lg: 2rem;
        --radius-md: 1rem;
    }
    
    .product-card-premium { border-radius: 1.5rem; padding: 0.75rem; }
    .btn-luxury { padding: 1rem 1.5rem; width: 100%; }
}

/* Corrección de legibilidad móvil */
@media (max-width: 640px) {
    /* Forzamos un tamaño mínimo legible incluso si Tailwind dice 7px */
    .text-\[7px\], .text-\[8px\], .text-\[9px\] {
        font-size: 11px !important;
        line-height: 1.4 !important;
    }
    
    /* Ajustamos los badges para que no se rompan con el texto más grande */
    .badge, span.rounded-full {
        padding-left: 0.75rem !important;  /* px-3 */
        padding-right: 0.75rem !important;
        white-space: nowrap;
    }
}

.no-scrollbar::-webkit-scrollbar { display: none; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-light); }
::-webkit-scrollbar-thumb { background: var(--silver); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--jet); }