
/* ==========================================
   COMBOS EKSEL
   PÁGINA INDIVIDUAL DE PRODUCTOS
========================================== */

.detalle-producto-pagina {
    padding-top: 28px;
    padding-bottom: 65px;
}

/* ==========================================
   RUTA DE NAVEGACIÓN
========================================== */

.detalle-migas {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
    color: #64748b;
    font-size: 13px;
}

.detalle-migas a {
    color: #073b83;
    text-decoration: none;
    font-weight: 700;
}

.detalle-migas a:hover {
    color: #e52b39;
}

.detalle-migas span:last-child {
    overflow-wrap: anywhere;
}

/* ==========================================
   ESTRUCTURA PRINCIPAL
========================================== */

.detalle-producto-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 45px;
    margin-bottom: 65px;
}

/* ==========================================
   FOTOGRAFÍA PRINCIPAL
========================================== */

.detalle-producto-foto {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    padding: 25px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(7, 59, 131, 0.07);
    overflow: hidden;
}

.detalle-imagen-principal {
    display: block;
    width: 100%;
    max-height: 480px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.detalle-producto-foto:hover .detalle-imagen-principal {
    transform: scale(1.035);
}

.detalle-sin-imagen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 300px;
    color: #94a3b8;
}

.detalle-sin-imagen span {
    font-size: 90px;
}

.detalle-sin-imagen p {
    font-size: 14px;
    font-weight: 700;
}

.detalle-etiqueta-destacado {
    position: absolute;
    top: 18px;
    left: 18px;
    padding: 9px 14px;
    border-radius: 8px;
    background: #e52b39;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(229, 43, 57, 0.2);
}

/* ==========================================
   INFORMACIÓN DEL PRODUCTO
========================================== */

.detalle-producto-info {
    min-width: 0;
}

.detalle-categoria {
    display: inline-block;
    margin-bottom: 12px;
    padding: 7px 12px;
    border-radius: 20px;
    background: #eaf2ff;
    color: #073b83;
    font-size: 12px;
    font-weight: 800;
}

.detalle-nombre {
    margin: 0 0 22px;
    color: #0f172a;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.2;
    font-weight: 900;
    overflow-wrap: anywhere;
}

/* ==========================================
   PRECIOS
========================================== */

.detalle-precios {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 23px;
}

.detalle-precio-actual {
    color: #073b83;
    font-size: clamp(30px, 4vw, 43px);
    line-height: 1.2;
    font-weight: 900;
}

.detalle-precio-actual small {
    font-size: 15px;
    font-weight: 800;
}

.detalle-precio-anterior {
    color: #94a3b8;
    font-size: 15px;
    text-decoration: line-through;
}

/* ==========================================
   DISPONIBILIDAD
========================================== */

.detalle-disponibilidad {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 12px;
    padding: 10px 14px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 800;
}

.detalle-disponibilidad.disponible {
    background: #ecfdf5;
    color: #047857;
}

.detalle-disponibilidad.agotado {
    background: #fef2f2;
    color: #b91c1c;
}

.detalle-stock {
    margin: 0 0 25px;
    color: #64748b;
    font-size: 14px;
}

/* ==========================================
   DESCRIPCIÓN
========================================== */

.detalle-descripcion {
    margin-top: 18px;
    margin-bottom: 26px;
    padding-top: 23px;
    border-top: 1px solid #e2e8f0;
}

.detalle-descripcion h2 {
    margin: 0 0 15px;
    color: #0f172a;
    font-size: 19px;
    font-weight: 900;
}

.detalle-texto-descripcion,
.detalle-descripcion > p {
    color: #475569;
    font-size: 15px;
    line-height: 1.85;
}

.detalle-texto-descripcion p {
    margin: 0 0 12px;
}

/* ==========================================
   FORMULARIO DE COMPRA
========================================== */

.detalle-formulario-compra {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 25px;
}

.detalle-formulario-compra label {
    width: 100%;
    color: #334155;
    font-size: 14px;
    font-weight: 800;
}

.detalle-formulario-compra input[type="number"] {
    width: 100px;
    height: 50px;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
    color: #0f172a;
    font-size: 16px;
    font-weight: 800;
    text-align: center;
}

.detalle-formulario-compra input[type="number"]:focus {
    outline: 2px solid #93c5fd;
    outline-offset: 2px;
}

.detalle-boton-comprar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 200px;
    min-height: 50px;
    padding: 12px 22px;
    border: none;
    border-radius: 10px;
    background: #073b83;
    color: #ffffff;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.2s ease;
}

.detalle-boton-comprar:hover:not(:disabled) {
    background: #e52b39;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(229, 43, 57, 0.2);
}

.detalle-boton-comprar:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

/* ==========================================
   VENTAJAS DE COMPRA
========================================== */

.detalle-ventajas {
    display: grid;
    gap: 10px;
    margin-top: 28px;
    padding: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.detalle-ventajas p {
    margin: 0;
    color: #475569;
    font-size: 13px;
    font-weight: 700;
}

/* ==========================================
   PRODUCTOS RELACIONADOS
========================================== */

.detalle-relacionados {
    padding-top: 35px;
    border-top: 1px solid #e2e8f0;
}

.detalle-relacionados .titulo-seccion {
    margin-bottom: 28px;
}

.detalle-relacionado-enlace {
    color: inherit;
    text-decoration: none;
}

.detalle-relacionado-enlace:hover {
    color: #e52b39;
}

.detalle-relacionados .producto-imagen {
    cursor: pointer;
}

/* ==========================================
   REGRESAR A LA TIENDA
========================================== */

.detalle-volver {
    margin-top: 40px;
    text-align: center;
}

.detalle-volver a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 20px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
    color: #073b83;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.2s ease;
}

.detalle-volver a:hover {
    border-color: #073b83;
    background: #eaf2ff;
}

/* ==========================================
   TABLETS
========================================== */

@media (max-width: 900px) {

    .detalle-producto-grid {
        gap: 25px;
    }

    .detalle-producto-foto {
        min-height: 330px;
        padding: 18px;
    }

    .detalle-nombre {
        font-size: 28px;
    }
}

/* ==========================================
   CELULARES
========================================== */

@media (max-width: 700px) {

    .detalle-producto-pagina {
        padding-top: 20px;
        padding-bottom: 40px;
    }

    .detalle-producto-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-bottom: 40px;
    }

    .detalle-producto-foto {
        min-height: 280px;
        padding: 16px;
    }

    .detalle-imagen-principal {
        max-height: 340px;
    }

    .detalle-nombre {
        font-size: 27px;
    }

    .detalle-precio-actual {
        font-size: 34px;
    }

    .detalle-formulario-compra {
        align-items: stretch;
    }

    .detalle-boton-comprar {
        min-width: 0;
    }

    .detalle-relacionados {
        padding-top: 25px;
    }
}

@media (max-width: 380px) {

    .detalle-formulario-compra input[type="number"] {
        width: 100%;
    }

    .detalle-boton-comprar {
        width: 100%;
        flex-basis: 100%;
    }

    .detalle-etiqueta-destacado {
        top: 10px;
        left: 10px;
        padding: 7px 10px;
        font-size: 11px;
    }
}
