/* /public/assets/css/detalle.css */

/* =========================================
   BOTÓN VOLVER
   ========================================= */
.btn-volver-container {
    margin-bottom: 25px;
}

.btn-modern-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background-color: #ffffff;
    color: #475569;
    font-weight: 600;
    font-size: 0.95em;
    text-decoration: none;
    border-radius: 50px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
}

.btn-modern-back:hover {
    background-color: #f8fafc;
    color: #0284c7;
    border-color: #bae6fd;
    transform: translateX(-5px);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.1);
}

.btn-modern-back svg {
    transition: transform 0.3s ease;
}

.btn-modern-back:hover svg {
    transform: translateX(-3px);
}

/* =========================================
   LAYOUT PRINCIPAL DEL DETALLE
   ========================================= */
.detalle-card {
    max-width: 1100px;
    padding: 30px;
    margin: 0 auto;
}

.detalle-layout {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.col-galeria {
    flex: 1.2;
    min-width: 320px;
}

.col-info {
    flex: 1;
    min-width: 300px;
}

/* =========================================
   GALERÍA Y LUPA
   ========================================= */
.lupa-caja {
    position: relative;
    overflow: hidden;
    cursor: crosshair;
    background-color: #ffffff;
}

.lupa-caja img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    transition: transform 0.1s ease-out;
}

.sin-imagen {
    color: #888;
    font-weight: bold;
}

/* =========================================
   INFORMACIÓN DEL PRODUCTO
   ========================================= */
.sku-badge {
    background-color: var(--oscuro);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: bold;
}

.titulo-producto {
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 2em;
    line-height: 1.2;
    color: var(--oscuro);
}

.precio-producto {
    color: var(--exito);
    font-size: 2.2em;
    margin-top: 0;
    margin-bottom: 20px;
}

.info-meta {
    margin-bottom: 5px;
    color: #555555;
}

.info-meta strong {
    color: #333333;
}

.condicion-texto {
    text-transform: capitalize;
}

/* =========================================
   ESPECIFICACIONES Y COLOR
   ========================================= */
.specs-titulo {
    margin-top: 25px;
    border-bottom: 2px solid #eeeeee;
    padding-bottom: 5px;
    color: var(--oscuro);
}

.specs-lista {
    list-style-type: none;
    padding-left: 0;
    color: #444444;
    margin-bottom: 25px;
}

.specs-item {
    margin-bottom: 8px;
    border-bottom: 1px dashed #e0e0e0;
    padding-bottom: 5px;
    display: flex;
    align-items: center;
}

.specs-clave {
    text-transform: capitalize;
    color: #222222;
    display: inline-block;
    width: 140px;
}

.color-box-wrapper {
    display: flex;
    align-items: center;
}

.color-box {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 1px solid #cccccc;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

/* =========================================
   BOTÓN WHATSAPP
   ========================================= */
.wa-container {
    margin-top: 30px;
}

.btn-whatsapp {
    display: block;
    text-align: center;
    text-decoration: none;
    font-size: 1.2em;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(40,167,69,0.3);
}

/* =========================================
   DESCRIPCIÓN DETALLADA
   ========================================= */
.desc-container {
    margin-top: 50px;
    border-top: 2px solid #eeeeee;
    padding-top: 30px;
}

.desc-titulo {
    margin-top: 0;
    color: var(--oscuro);
    margin-bottom: 15px;
    font-size: 1.5em;
}

.desc-caja {
    background-color: #fcfcfc;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #eaeaea;
    color: #444444;
    line-height: 1.7;
    font-size: 1.05em;
}