/* ==========================================
   DETALLE DEL PRODUCTO
   ========================================== */

.product-detail{
    max-width:1200px;
    margin:30px auto;
    background:#fff;
    border-radius:12px;
    padding:30px;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:40px;
}

/* Galería */

.product-gallery{
    display:flex;
    gap:15px;
}

.product-thumbnails{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.product-thumbnails img{
    width:70px;
    height:70px;
    object-fit:cover;
    border-radius:6px;
    cursor:pointer;
    border:2px solid transparent;
    transition:.3s;
}

.product-thumbnails img:hover{
    border-color:#3483fa;
}

.product-carousel{
    flex:1;
    position:relative;
}

.product-carousel img{
    width:100%;
    height:500px;
    object-fit:contain;
}

/* Flechas */

.product-nav{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:45px;
    height:45px;
    border:none;
    border-radius:50%;
    cursor:pointer;
    background:rgba(52,131,250,.8);
    color:#fff;
    font-size:24px;
}

.product-prev{
    left:10px;
}

.product-next{
    right:10px;
}

/* Información */

.product-condition{
    color:#777;
    margin-bottom:10px;
}

.product-title{
    font-size:28px;
    margin-bottom:20px;
}

.product-price{
    color:#00a650;
    font-size:42px;
    font-weight:bold;
    margin-bottom:10px;
}

.product-installments{
    color:#00a650;
    margin-bottom:25px;
}

.product-description{
    line-height:1.6;
    margin-bottom:25px;
}

.product-buttons{
    display:flex;
    gap:15px;
}

.btn-buy{
    background:#3483fa;
    color:#fff;
    border:none;
    padding:14px 25px;
    border-radius:8px;
    cursor:pointer;
    font-size:16px;
    transition:.3s;
}

.btn-buy:hover{
    background:#2968c8;
}

.btn-cart{
    background:#e3edfb;
    color:#3483fa;
    border:none;
    padding:14px 25px;
    border-radius:8px;
    cursor:pointer;
    font-size:16px;
}

/* Responsive */

@media(max-width:900px){

    .product-detail{
        grid-template-columns:1fr;
    }

    .product-carousel img{
        height:350px;
    }

}

@media(max-width:600px){

    .product-detail{
        padding:15px;
        margin:15px auto;
        border-radius:8px;
    }

    .product-gallery{
        flex-direction:column-reverse;
    }

    .product-thumbnails{
        flex-direction:row;
        overflow-x:auto;
        padding-bottom:4px;
    }

    .product-thumbnails img{
        flex-shrink:0;
    }

    .product-carousel img{
        height:280px;
    }

    .product-title{
        font-size:22px;
    }

    .product-price{
        font-size:32px;
    }

    .product-buttons{
        flex-direction:column;
    }

    .btn-buy,
    .btn-cart{
        width:100%;
    }

}

.old-price {
    text-decoration: line-through;
    color: #888;
    font-size: 14px;
    margin-right: 8px;
}

.offer-price {
    color: #00a650;
    font-size: 22px;
    font-weight: bold;
}

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 6px;
    color: white;
}

.sold-out {
    background: #e53935;
}

.card {
    position: relative;
}

.badge.discount1 {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e53935;
    color: white;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 6px;
}

.badge.discount2 {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff1744;
    color: white;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

.badge.discount3 {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #e53935;
    color: white;
    padding: 3px 6px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    line-height: 1;
    letter-spacing: 0.3px;
}

.badge.discount4 {
    position: absolute;
    top: 6px;
    right: 6px;
    background: #ff1744;
    color: white;
    padding: 2px 5px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 3px;
    line-height: 1;
}

.badge.discount {
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
    background: #ff1744;
}

.product-carousel {
    position: relative;
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #e53935;
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    z-index: 10;
}

.product-badge.discount {
    background: #e53935;
}

.stock{
    margin-top:8px;
    font-size:14px;
    font-weight:bold;
}

.stock-ok{
    color:#00a650;
}

.stock-low{
    color:#ff9800;
}

.stock-out{
    color:#e53935;
}

.vistas{
    margin-top:8px;
    font-size:13px;
    color:#757575;
}

