/* --- Contenedor Principal --- */
.contenedor-detalle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1100px;
    margin: 40px auto;
    padding: 20px;
    background-color: #fff;
}
* {
    font-family: 'Lora', serif !important;
}
/* --- Galería de Imágenes --- */
.seccion-imagenes .imagen-principal img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border: 1px solid #f0f0f0;
}

.miniaturas {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.thumb:hover {
    border-color: #e600e6;
}

.thumb.activa {
    border-color: #e600e6;
}

/* --- Breadcrumb --- */
.breadcrumb {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.breadcrumb a {
    text-decoration: none;
    color: #888;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #e600e6;
}

/* --- Título --- */
.titulo-producto {
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 10px;
    font-weight: 400;
    line-height: 1.3;
}

/* --- PRECIOS NORMALES --- */
.precio-detalle,
.precio-normal {
    font-size: 1.8rem;
    color: #d4af37;
    font-weight: bold;
    margin-bottom: 20px;
}

/* --- BLOQUE DE OFERTA --- */
.contenedor-precio-detalle {
    margin-bottom: 24px;
}

.etiqueta-oferta-top {
    display: inline-block;
    background-color: #e74c3c;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 5px 12px;
    border-radius: 2px;
    margin-bottom: 10px;
}

.precios-display {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-top: 6px;
}

.precio-antes {
    text-decoration: line-through;
    color: #aaa;
    font-size: 1.1rem;
    font-weight: 400;
}

.precio-ahora {
    font-size: 2.2rem;
    font-weight: 700;
    color: #e74c3c;
    line-height: 1;
}

/* --- Descripción --- */
.contenedor-descripcion {
    margin: 20px 0;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.subtitulo-luxury {
    color: #d4af37;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
    font-weight: 700;
}

.texto-descripcion {
    color: #555;
    line-height: 1.7;
    font-size: 0.95rem;
    white-space: pre-line;
}

/* --- Formulario / Selección --- */
.campo-seleccion {
    margin-bottom: 20px;
}

.campo-seleccion label {
    display: block;
    font-size: 0.72rem;
    color: #888;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
}

.campo-seleccion input[type="number"] {
    width: 100px;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.campo-seleccion input[type="number"]:focus {
    border-color: #e600e6;
}

/* --- SWATCHES (Talles y Colores) --- */
.swatches-contenedor {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.swatch-btn {
    padding: 8px 18px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    color: #333;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 48px;
    text-align: center;
}

.swatch-btn:hover {
    border-color: #e600e6;
    color: #e600e6;
}

.swatch-btn.activo {
    background-color: #e600e6;
    border-color: #e600e6;
    color: #fff;
}

/* Botones de talle un toque más compactos */
.btn-talle {
    min-width: 52px;
    padding: 8px 14px;
}

/* Botones de color un poco más anchos */
.btn-color {
    min-width: 80px;
}

/* --- Botones Comprar --- */
.acciones-botones {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 24px;
}

.btn-primario,
.btn-secundario,
.btn-agotado {
    padding: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease;
    border: none;
    border-radius: 4px;
}

.btn-primario {
    background-color: #e600e6;
    color: #fff;
}

.btn-primario:hover {
    background-color: #cc00cc;
}

.btn-primario:active {
    transform: scale(0.98);
}

.btn-secundario {
    background-color: #1a1a1a;
    color: #fff;
}

.btn-secundario:hover {
    background-color: #333;
}

.btn-secundario:active {
    transform: scale(0.98);
}

.btn-agotado {
    background-color: #f0f0f0;
    color: #999;
    grid-column: span 2;
    cursor: not-allowed;
    letter-spacing: 1px;
}

/* --- Divisor --- */
.divisor-seccion {
    border: 0;
    height: 1px;
    background: #eaeaea;
    margin: 40px auto;
    max-width: 90%;
}

/* --- Productos Similares --- */
.productos-similares {
    max-width: 1000px;
    margin: 0 auto 60px auto;
    padding: 0 20px;
}

.titulo-seccion {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #1a1a1a;
    margin-bottom: 30px;
    font-size: 1.3rem;
}

.grilla-recomendados {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.tarjeta-min {
    background-color: #fff;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tarjeta-min:hover {
    border-color: #d4af37;
    box-shadow: 0 5px 15px rgba(255, 0, 255, 0.07);
    transform: translateY(-4px);
}

.tarjeta-min img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.info-min {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 12px 12px 0 12px;
}

.info-min h3 {
    margin: 0 0 8px 0;
    font-size: 0.9rem;
    color: #1a1a1a;
    font-weight: 400;
    line-height: 1.4;
}

.precios-min {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    padding-bottom: 10px;
}

.precio-tachado-min {
    text-decoration: line-through;
    color: #aaa;
    font-size: 0.8rem;
}

.precio-oferta-min {
    color: #e74c3c;
    font-weight: 700;
    font-size: 1rem;
}

.precio-normal-min {
    color: #d4af37;
    font-weight: 600;
    font-size: 1rem;
}

.btn-fake-detalles {
    background-color: #e600e6;
    color: #fff;
    text-align: center;
    padding: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: auto;
    transition: background-color 0.3s;
}

.tarjeta-min:hover .btn-fake-detalles {
    background-color: #cc00cc;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 900px) {
    .contenedor-detalle {
        gap: 30px;
        margin: 20px auto;
    }

    .seccion-imagenes .imagen-principal img {
        height: 450px;
    }
}

@media (max-width: 768px) {
    .contenedor-detalle {
        grid-template-columns: 1fr;
        padding: 10px;
        margin: 0;
        gap: 20px;
    }

    .seccion-imagenes .imagen-principal img {
        height: 400px;
        border: none;
    }

    .miniaturas {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 10px;
        scrollbar-width: thin;
        scrollbar-color: #e600e6 #f0f0f0;
    }

    .miniaturas::-webkit-scrollbar {
        height: 4px;
    }

    .miniaturas::-webkit-scrollbar-thumb {
        background: #e600e6;
        border-radius: 10px;
    }

    .thumb {
        flex: 0 0 70px;
        width: 70px;
        height: 70px;
    }

    .titulo-producto {
        font-size: 1.5rem;
    }

    .precio-ahora {
        font-size: 1.8rem;
    }

    .acciones-botones {
        grid-template-columns: 1fr;
    }

    .btn-primario,
    .btn-secundario {
        width: 100%;
        padding: 16px;
    }

    .grilla-recomendados {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .tarjeta-min img {
        height: 180px;
    }

    .contenedor-descripcion {
        margin: 16px 0;
    }

    .texto-descripcion {
        font-size: 0.92rem;
    }
}

@media (max-width: 400px) {
    .seccion-imagenes .imagen-principal img {
        height: 300px;
    }

    .info-min h3 {
        font-size: 0.8rem;
    }

    .precio-ahora {
        font-size: 1.5rem;
    }
}