:root {
    --bg: #f5f5f5;
    --dark: #111111;
    --gold: #D4AF37; /* Dorado Trofeo */
    --accent: #D4AF37; 
    --white: #ffffff;
    --grey: #888;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body { background: var(--bg); font-family: 'Roboto', sans-serif; color: var(--dark); overflow-x: hidden;}

/* Tipografía Deportiva */
h1, h2, h3, .logo, .filter-btn { font-family: 'Oswald', sans-serif; text-transform: uppercase; }

/* Header */
.main-header {
    background: var(--dark); color: var(--white);
    padding: 15px 5%; display: flex; justify-content: space-between; align-items: center;
    position: sticky; top: 0; z-index: 100; border-bottom: 3px solid var(--gold);
}
.logo { font-size: 2rem; letter-spacing: 2px; font-weight: bold; }
.logo .highlight { color: var(--gold); }
.cart-trigger { font-size: 1.5rem; position: relative; cursor: pointer; }
.badge { position: absolute; top: -5px; right: -8px; background: var(--gold); color: var(--dark); border-radius: 50%; width: 20px; height: 20px; display: flex; justify-content: center; align-items: center; font-size: 0.8rem; font-weight: bold; }
/* Header */
/* HEADER: Layout Flexible pero Ordenado */
.main-header {
    background: var(--dark); 
    color: var(--white);
    padding: 15px 5%; 
    display: flex; 
    justify-content: space-between; /* Extremos separados */
    align-items: center;
    position: sticky; top: 0; z-index: 100; 
    border-bottom: 3px solid var(--gold);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    /* Importante: No permitir salto de línea en escritorio */
    flex-wrap: nowrap; 
    gap: 20px;
}

/* 1. LOGO (Izquierda) */
.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0; /* Evita que el logo se aplaste */
}
.header-logo-img {
    height: 60px; width: auto;
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.3));
}
.logo { font-size: 2rem; letter-spacing: 2px; font-weight: bold; line-height: 1; }
.logo .highlight { color: var(--gold); }

/* 2. BUSCADOR (Centro - Ocupa el espacio sobrante) */
.search-wrapper {
    flex-grow: 1; /* Crece para ocupar el centro */
    margin: 0 40px; /* Margen para no pegarse al logo ni al carrito */
    max-width: 600px; /* Ancho máximo para que no se vea exagerado */
    position: relative;
}

#searchInput {
    width: 100%;
    padding: 12px 20px; padding-right: 50px;
    border-radius: 50px; border: 1px solid #333;
    background: #1a1a1a; color: white; outline: none; transition: 0.3s;
}
#searchInput:focus { border-color: var(--gold); background: #000; }
#searchInput::placeholder { color: #888; }

#searchBtn {
    position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
    background: var(--gold); color: var(--dark); border: none;
    width: 35px; height: 35px; border-radius: 50%; cursor: pointer;
    display: flex; justify-content: center; align-items: center; transition: 0.2s;
}
#searchBtn:hover { background: white; }

/* 3. CARRITO (Derecha) */
.header-icons {
    flex-shrink: 0; /* Evita que se aplaste */
}

/* --- VERSIÓN MÓVIL (Aquí sí cambiamos el orden) --- */
@media (max-width: 768px) {
    .main-header {
        flex-wrap: wrap; /* Permitir que baje el buscador */
        padding: 10px 5%;
    }
    
    .logo { font-size: 1.5rem; } /* Logo un poco más pequeño en celular */
    .header-logo-img { height: 40px; }

    .search-wrapper {
        order: 3; /* Forzamos al buscador a irse al final (abajo) */
        width: 100%;
        max-width: 100%;
        margin: 15px 0 0 0; /* Quitamos márgenes laterales */
    }
}

/* Responsive para móviles: Buscador abajo */
@media (max-width: 768px) {
    .search-wrapper {
        order: 3;
        width: 100%;
        max-width: 100%;
        margin-top: 10px;
    }
}


/* Hero */
.hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1518091043644-c1d4457512c6?q=80&w=2000&auto=format&fit=crop'); 
    background-size: cover; background-position: center;
    height: 300px; display: flex; flex-direction: column; justify-content: center; align-items: center;
    color: white; text-align: center;
}
.hero h1 { font-size: 3rem; margin-bottom: 10px; letter-spacing: 3px; }

/* Filters */
.filters { display: flex; justify-content: center; gap: 10px; padding: 20px; flex-wrap: wrap; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.filter-btn { background: transparent; border: 2px solid var(--dark); padding: 8px 25px; font-weight: bold; cursor: pointer; transition: 0.3s; }
.filter-btn.active, .filter-btn:hover { background: var(--dark); color: var(--gold); border-color: var(--dark); }

/* Grid */
.grid-container {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px; padding: 40px 5%; max-width: 1400px; margin: 0 auto;
}
.product-card {
    background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s; cursor: pointer; border: 1px solid #eee;
}
.product-card:hover { transform: translateY(-5px); border-color: var(--gold); }
.card-img { height: 280px; width: 100%; object-fit: contain; padding: 20px; background: #fff; }
.card-info { padding: 15px; text-align: center; background: #fafafa; border-top: 1px solid #eee;}
.card-price { font-size: 1.4rem; font-weight: bold; color: var(--dark); margin-top: 5px; }
.view-btn { width: 100%; background: var(--dark); color: white; padding: 10px; border: none; font-weight: bold; margin-top: 10px; cursor: pointer; }
.view-btn:hover { background: var(--gold); color: black; }


/* Tallas */
.size-selector { display: flex; gap: 10px; margin-top: 10px; }
.size-btn {
    width: 45px; height: 45px; border: 1px solid #ddd; background: white;
    font-weight: bold; cursor: pointer; transition: 0.2s; display: flex; justify-content: center; align-items: center;
}
.size-btn:hover { border-color: var(--dark); }
.size-btn.selected { background: var(--dark); color: var(--gold); border-color: var(--dark); }

/* Personalización Inputs */
.hidden { display: none; }
.custom-inputs { margin-top: 15px; display: flex; gap: 10px; }
.custom-inputs input {
    width: 100%; padding: 10px; border: 1px solid #ccc; font-family: 'Oswald'; text-transform: uppercase;
}
#customNumber { width: 80px; text-align: center; }

/* Add Button */
.add-cart-btn {
    margin-top: 25px; padding: 15px; background: var(--gold); color: var(--dark);
    font-size: 1.1rem; font-weight: bold; border: none; cursor: pointer; width: 100%; transition: 0.3s;
}
.add-cart-btn:hover { background: #bfa030; }

/* Sidebar Carrito (Reutilizado pero estilizado Dark) */
.cart-header {
    display: flex;
    justify-content: space-between; /* Título a la izq, X a la der */
    align-items: center;            /* Centrados verticalmente */
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.cart-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--dark);
    font-family: 'Oswald', sans-serif;
    letter-spacing: 1px;
}

.cart-sidebar {
    position: fixed; top: 0; right: -400px; width: 350px; height: 100%; background: white; z-index: 300;
    transition: 0.3s; padding: 20px; display: flex; flex-direction: column; box-shadow: -5px 0 20px rgba(0,0,0,0.5);
}
.cart-sidebar.open { right: 0; }
.cart-overlay-bg { position: fixed; top:0; left:0; width:100%; height:100%; display:none; z-index:250; }
.cart-overlay-bg.active { display:block; }

.cart-item { 
    display: flex; 
    align-items: center; 
    gap: 15px; /* Espacio entre foto y texto */
    padding: 15px 0; 
    border-bottom: 1px solid #eee; 
}

/* La foto pequeña */
.cart-thumb {
    width: 70px; 
    height: 70px; 
    object-fit: contain; /* Para que se vea toda la camiseta */
    border: 1px solid #f0f0f0;
    border-radius: 5px;
    background: white;
    padding: 2px;
}

/* Columna de texto */
.cart-col-info {
    flex: 1; /* Ocupa el espacio restante */
}

.cart-item-title { 
    font-weight: bold; 
    font-family: 'Oswald'; 
    font-size: 0.95rem; 
    line-height: 1.2;
    margin-bottom: 5px;
}

.cart-details { font-size: 0.85rem; color: #666; }
.cart-details strong { color: var(--dark); }

.close-cart-btn {
    background: transparent;
    border: none;
    font-size: 1.8rem;
    color: #999;     /* Gris suave por defecto */
    cursor: pointer;
    width: 40px;     /* Área de clic cómoda */
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.close-cart-btn:hover {
    color: #e74c3c;  /* Rojo al pasar el mouse */
    background-color: rgba(231, 76, 60, 0.1); /* Fondo rojo muy suave */
    transform: rotate(90deg); /* Efecto de giro */
}

.cart-footer {
    padding-top: 20px;
    border-top: 2px solid #eee; /* Línea separadora */
    margin-top: auto; /* Empuja el footer al fondo si hay pocos items */
}

/* Contenedor de la fila del precio */
.total-row {
    display: flex;
    justify-content: space-between; /* Texto a los extremos */
    align-items: flex-end; /* Alinear abajo para efecto visual */
    margin-bottom: 20px;
}

/* Texto "Total a Pagar" */
.total-label {
    font-size: 1.1rem;
    color: #666;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* El Precio ($0.00) */
.total-amount {
    font-size: 2.2rem; /* ¡Grande! */
    font-weight: bold;
    color: var(--black); /* Dorado de la marca */
    font-family: 'Oswald', sans-serif;
    line-height: 1;
    text-shadow: 1px 1px 0px rgba(0,0,0,0.1); /* Sombra sutil */
}

/* Botón eliminar */
.btn-remove {
    background: none; border: none; cursor: pointer; color: #ff4444; font-size: 1.1rem;
    transition: 0.2s;
}
.btn-remove:hover { transform: scale(1.2); color: red; }



.cart-details { font-size: 0.85rem; color: #666; margin: 5px 0; }
.cart-details strong { color: var(--dark); }

.checkout-btn { width: 100%; padding: 15px; background: #25D366; color: white; border: none; font-weight: bold; font-size: 1rem; margin-top: 20px; cursor: pointer; }

/* --- NUEVO: ESTILOS DE DESCUENTO --- */
.discount-badge {
    position: absolute; top: 10px; left: 10px;
    background: #e74c3c; /* Rojo intenso */
    color: white; padding: 5px 10px;
    font-size: 0.8rem; font-weight: bold; border-radius: 4px;
    z-index: 10; font-family: 'Oswald', sans-serif;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.price-container { display: flex; justify-content: center; gap: 10px; align-items: center; margin-top: 5px; }

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 1rem;
}

.current-price {
    color: var(--dark); /* O dorado si prefieres */
    font-weight: bold;
    font-size: 1.4rem;
}

/* --- FOOTER CRACK STORE --- */
.main-footer {
    background-color: #0a0a0a; /* Negro profundo */
    color: white;
    padding: 50px 20px 20px;
    margin-top: 60px;
    border-top: 4px solid var(--gold); /* Línea dorada superior */
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

/* Sección de Solicitud (Destacada) */
.footer-request {
    margin-bottom: 30px;
}

.footer-request h3 {
    color: var(--gold);
    font-size: 1.8rem;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.footer-request p {
    color: #ccc;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

/* Botón de Cotizar (Llamativo) */
.request-btn {
    display: inline-block;
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
    padding: 12px 30px;
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    text-decoration: none;
    text-transform: uppercase;
    transition: 0.3s;
    border-radius: 4px;
}

.request-btn:hover {
    background: var(--gold);
    color: black;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4); /* Resplandor dorado */
}

/* Divisor */
.footer-divider {
    border: 0;
    border-top: 1px solid #333;
    margin: 30px 0;
}

/* Contacto General */
.footer-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: white;
}

.whatsapp-link {
    color: #25D366; /* Verde WhatsApp */
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    transition: 0.2s;
}

.whatsapp-link:hover {
    color: white;
    text-decoration: underline;
}

.copyright {
    margin-top: 40px;
    font-size: 0.8rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 2px;
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); /* 2 columnas en teléfonos pequeños */
        gap: 15px; /* Menos espacio entre tarjetas para aprovechar el espacio */
        padding: 10px;
    }
    
    .hero-banner h2, .hero h1 {
        font-size: 1.5rem; /* Títulos un poco más pequeños para que no se corten */
    }
}


.add-cart-large {
    background: var(--gold); color: black; border: none;
    padding: 15px; font-size: 1.2rem; font-weight: bold; cursor: pointer; width: 100%;
}


.filters-container { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 20px; }
.filter-btn { background: #222; color: white; border: 1px solid #444; padding: 8px 15px; cursor: pointer; border-radius: 20px; font-family: 'Oswald'; }
.filter-btn.active, .filter-btn:hover { background: #D4AF37; color: black; border-color: #D4AF37; }}

/* PEGAR EN style.css SI AÚN SE VE MAL */

.product-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
    border: 1px solid #eee;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: #D4AF37; /* Borde dorado al pasar mouse */
}

/* IMPORTANTE: ESTE NOMBRE DE CLASE ES EL QUE HABÍA FALLADO */
.img-container {
    position: relative;
    width: 100%;
    height: 250px; /* Altura fija para uniformidad */
    overflow: hidden;
    background: #f9f9f9;
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Para que la imagen no se estire feo */
    transition: transform 0.5s;
}

.product-card:hover .img-container img {
    transform: scale(1.1); /* Zoom al pasar el mouse */
}

/* EL EFECTO DE "VER DETALLES" */
.view-details-overlay {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    background: rgba(17, 17, 17, 0.9); /* Fondo oscuro */
    color: #D4AF37; /* Texto dorado */
    text-align: center;
    padding: 10px;
    font-weight: bold;
    font-family: 'Oswald', sans-serif;
    transition: 0.3s;
    opacity: 0;
}

.product-card:hover .view-details-overlay {
    bottom: 0;
    opacity: 1;
}

.info {
    padding: 15px;
}

.category {
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    font-weight: bold;
}

.product-card h3 {
    margin: 5px 0 10px 0;
    font-size: 1.1rem;
    color: #111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #111;
}

.btn-add {
    background: #D4AF37;
    color: black;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.btn-add:hover {
    background: black;
    color: #D4AF37;
}

/* =======================================================
   CORRECCIÓN DE LA GRILLA (GRID) - PEGAR AL FINAL
   ======================================================= */

/* 1. EL CONTENEDOR: Forzamos el modo cuadrícula */
.products-grid {
    display: grid;
    /* Esto crea columnas automáticas. 
       Mínimo 280px de ancho por tarjeta, máximo lo que sobre.
       Esto evita que ocupen todo el ancho de la pantalla */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 30px; /* Espacio entre tarjetas */
    
    max-width: 1200px; /* Ancho máximo de la tienda centrada */
    margin: 40px auto; /* Centrado en la pantalla */
    padding: 0 20px;
}

/* 2. LA TARJETA: Tamaño controlado */
.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden; /* Para que nada se salga de los bordes */
    border: 1px solid #e1e1e1;
    transition: transform 0.3s ease, border-color 0.3s ease;
    
    /* Asegura que la tarjeta llene su celda pero no más */
    width: 100%; 
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px); /* Pequeña elevación */
    border-color: #D4AF37; /* Borde dorado */
}

/* 3. LA FOTO: Siempre del mismo tamaño */
.img-container {
    width: 100%;
    height: 320px; /* <--- AQUÍ DEFINIMOS LA ALTURA FIJA DE LA FOTO */
    position: relative;
    background: #f9f9f9;
    overflow: hidden;
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* <--- ESTO EVITA QUE LA FOTO SE DEFORME O ESTIRE */
    transition: transform 0.5s;
}

.product-card:hover .img-container img {
    transform: scale(1.1); /* Zoom suave al pasar el mouse */
}

/* 4. INFORMACIÓN: Espaciado uniforme */
.info {
    padding: 15px;
    background: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1; /* Para que todas las tarjetas midan lo mismo de alto */
}

.product-card h3 {
    font-size: 1.1rem;
    margin: 5px 0 10px 0;
    white-space: nowrap; /* Evita que el texto baje de línea */
    overflow: hidden;
    text-overflow: ellipsis; /* Pone "..." si el nombre es muy largo */
}
/* =======================================================
   GALERÍA EN EL MODAL
   ======================================================= */

/* Imagen principal grande */

/* Contenedor de miniaturas */
.thumbnails-row {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    overflow-x: auto; /* Scroll si hay muchas */
    justify-content: center;
}

.thumb {
    width: 60px;
    height: 60px;
    border: 2px solid transparent;
    border-radius: 5px;
    cursor: pointer;
    object-fit: cover;
    opacity: 0.6;
    transition: 0.3s;
}

.thumb:hover { opacity: 1; }

.thumb.active {
    border-color: #D4AF37; /* Borde dorado en la seleccionada */
    opacity: 1;
}

/* =========================================
   ESTILOS CARRUSEL (FLECHAS)
   ========================================= */


.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5); /* Fondo semitransparente */
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 10;
    border-radius: 50%;
    transition: 0.3s;
    user-select: none;
}

.carousel-btn:hover {
    background: #D4AF37; /* Dorado al pasar mouse */
    color: black;
}

.prev-btn { left: 10px; }
.next-btn { right: 10px; }

/* Ocultar flechas si solo hay 1 foto (lo manejaremos con JS, pero esto ayuda) */
.hidden { display: none !important; }


/* =========================================
   ESTILOS DEL MODAL (DISEÑO DEFINITIVO)
   ========================================= */

/* Fondo oscurecido */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85); z-index: 2000;
    display: none; justify-content: center; align-items: center;
    backdrop-filter: blur(5px); /* Efecto borroso elegante */
}
.modal-overlay.active { display: flex; }

/* La Caja Blanca */
.modal-content {
    background: #fff;
    width: 95%; max-width: 1000px; /* Más ancho para que quepa todo */
    max-height: 90vh; /* Para que no se salga de pantallas pequeñas */
    border-radius: 10px;
    position: relative;
    overflow-y: auto; /* Scroll si es necesario */
    display: flex; /* IMPORTANTE: Divide foto y texto */
    flex-direction: column; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

/* Botón cerrar (X) */
.close-btn {
    position: absolute; top: 15px; right: 20px;
    font-size: 2rem; cursor: pointer; color: #333; z-index: 20;
    transition: 0.3s;
}
.close-btn:hover { color: #e74c3c; transform: rotate(90deg); }

/* CUERPO DEL MODAL (Donde está la magia) */
.modal-body {
    display: flex;
    flex-wrap: wrap; /* Permite que baje en móviles */
    width: 100%;
    height: 100%;
}

/* --- IZQUIERDA: FOTOS --- */
.modal-img-container {
    flex: 1.2; /* Ocupa un poco más de espacio */
    background: #f4f4f4;
    padding: 20px;
    position: relative; /* Para las flechas */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 300px;
}

/* Foto Principal */
.modal-img-container img#modalImg {
    width: 100%;
    max-height: 450px;
    object-fit: contain; /* Muestra la camiseta entera sin recortar */
    mix-blend-mode: multiply; /* Truco para que el fondo blanco de la jpg se mezcle */
}

/* Flechas del Carrusel */
.carousel-btn {
    position: absolute; top: 45%; transform: translateY(-50%);
    background: rgba(17, 17, 17, 0.8); color: #D4AF37;
    border: none; width: 40px; height: 40px; border-radius: 50%;
    font-size: 1.2rem; cursor: pointer; transition: 0.3s;
    display: flex; justify-content: center; align-items: center;
    z-index: 10;
}
.carousel-btn:hover { background: #D4AF37; color: black; }
.prev-btn { left: 15px; }
.next-btn { right: 15px; }
.hidden { display: none !important; }

/* Miniaturas */
.thumbnails-row {
    display: flex; gap: 10px; margin-top: 15px;
    justify-content: center; flex-wrap: wrap;
}
.thumb {
    width: 60px; height: 60px; border: 2px solid #ddd; border-radius: 5px;
    cursor: pointer; object-fit: cover; opacity: 0.6; transition: 0.3s;
}
.thumb:hover, .thumb.active { opacity: 1; border-color: #D4AF37; transform: scale(1.05); }

/* --- DERECHA: INFORMACIÓN --- */
.modal-info {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.modal-info h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.2rem; margin-bottom: 10px; color: #111;
    line-height: 1.1;
}

.modal-info .price {
    font-size: 2rem; color: #D4AF37; font-weight: bold;
    margin-bottom: 20px;
}

#modalDesc {
    color: #666; line-height: 1.6; margin-bottom: 25px;
    font-size: 0.95rem; border-bottom: 1px solid #eee; padding-bottom: 20px;
}

/* Inputs y Botones */
.modal-input {
    width: 100%; padding: 12px; font-size: 1rem;
    border: 2px solid #ddd; border-radius: 5px; background: white;
    margin-bottom: 20px; cursor: pointer;
}
.modal-input:focus { border-color: #D4AF37; outline: none; }

.add-cart-large {
    background: #111; color: white; border: none;
    padding: 18px; font-size: 1.1rem; font-weight: bold;
    cursor: pointer; width: 100%; border-radius: 5px;
    text-transform: uppercase; letter-spacing: 1px;
    transition: 0.3s;
}
.add-cart-large:hover { background: #D4AF37; color: black; }

/* --- RESPONSIVE (Móvil) --- */
@media (max-width: 768px) {
    .modal-content { height: 100%; max-height: 100%; width: 100%; border-radius: 0; }
    .modal-body { flex-direction: column; }
    .modal-img-container { height: auto; padding: 40px 20px; }
    .modal-info { padding: 25px; justify-content: flex-start; }
    .modal-info h2 { font-size: 1.8rem; }
}

/* =========================================
   ELIMINAR BARRAS DE DESPLAZAMIENTO (SCROLLBARS)
   ========================================= */

/* 1. Ocultar barra horizontal de la página entera */
body, html {
    overflow-x: hidden; /* Corta cualquier desborde horizontal */
    width: 100%;
}

/* 2. Ocultar la barra gris de las miniaturas (Thumbnails) */
/* Mantiene la función de deslizar, pero quita la barra fea */
.thumbnails-row {
    overflow-x: auto; /* Permite deslizar */
    scrollbar-width: none;  /* Firefox */
    -ms-overflow-style: none;  /* IE y Edge */
}

/* Para Chrome, Safari y Opera */
.thumbnails-row::-webkit-scrollbar {
    display: none;
}

/* 3. Asegurar que el modal no genere scroll horizontal */
.modal-content {
    overflow-x: hidden;
}

/* =========================================
   ESTILOS DE OFERTA (Badge y Precio Tachado)
   ========================================= */

/* La etiqueta roja en la esquina */
.offer-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e74c3c; /* Rojo intenso */
    color: white;
    padding: 5px 12px;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 4px;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    font-family: 'Oswald', sans-serif;
    letter-spacing: 1px;
    animation: popIn 0.3s ease-out;
}

@keyframes popIn {
    0% { transform: scale(0); }
    80% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Contenedor de precios (para alinear el tachado y el nuevo) */
.price-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* El precio viejo tachado */
.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.95rem;
    font-weight: normal;
}

/* Ajuste para cuando hay oferta, el precio nuevo resalta más */
.price.offer-active {
    color: #e74c3c; /* Rojo oferta */
    font-size: 1.3rem;
}