/* =========================
   DETALLE DE PRODUCTO
========================= */

.producto-detalle{
    max-width:1200px;
    margin:30px auto;
    padding:25px;

    display:grid;
    grid-template-columns:450px 1fr;
    gap:40px;

    background:#fff;
    border-radius:15px;
    box-shadow:0 4px 15px rgba(0,0,0,.08);
}

/* =========================
   IMAGEN
========================= */

.producto-imagen{
    display:flex;
    justify-content:center;
    align-items:center;

    background:#f8f8f8;
    border-radius:12px;
    padding:20px;
}

.producto-imagen img{
    width:100%;
    max-width:380px;
    object-fit:contain;
    transition:.3s;
}

.producto-imagen img:hover{
    transform:scale(1.05);
}

.sin-imagen{
    width:100%;
    height:300px;

    display:flex;
    align-items:center;
    justify-content:center;

    background:#f0f0f0;
    color:#666;
    border-radius:10px;
}

/* =========================
   INFORMACIÓN
========================= */

.producto-info{
    display:flex;
    flex-direction:column;
}

.categoria{
    display:inline-block;
    width:max-content;

    background:var(--color-principal);
    color:#fff;

    padding:6px 14px;
    border-radius:20px;

    font-size:14px;
    margin-bottom:15px;
}

.producto-info h1{
    color:var(--color-principal);
    font-size:2rem;
    margin-bottom:15px;
    line-height:1.3;
}

.descripcion{
    margin:20px 0;
    color:#555;
    line-height:1.7;
}

/* =========================
   PRECIOS
========================= */

.precio-anterior{
    color:#999;
    text-decoration:line-through;
    font-size:1.2rem;
    margin-bottom:5px;
}

.precio-promocion{
    color:#d32f2f;
    font-size:2.5rem;
    font-weight:700;
}

.precio-normal{
    color:var(--color-principal);
    font-size:2.5rem;
    font-weight:700;
}

/* =========================
   STOCK
========================= */

.stock-producto{
    margin-top:20px;

    background:#edf7ed;
    border-left:5px solid #2e7d32;

    padding:12px;
    border-radius:6px;

    font-size:16px;
}

.stock-bajo{
    background:#ffebee;
    border-left:5px solid #d32f2f;
}

/* =========================
   PROMOCIONES
========================= */

.promo-activa{
    margin-top:15px;

    background:#fff8e1;
    border-left:5px solid #ff9800;

    padding:12px;
    border-radius:6px;

    color:#e65100;
    font-weight:500;
}

/* =========================
   BOTONES
========================= */

.btn-volver{
    display:inline-block;
    width:max-content;

    margin-top:30px;

    background:var(--color-principal);
    color:#fff;

    padding:12px 24px;

    border-radius:8px;

    text-decoration:none;
    font-weight:600;

    transition:.3s;
}

.btn-volver:hover{
    background:#452208;
    color:#fff;
    transform:translateY(-2px);
}

.producto-imagen{
    position:relative;
}

.badge-no-disponible{
    position:absolute;
    top:10px;
    right:10px;
    background:var(--color-rojo);
    color:var(--color-blanco);
    font-size:16px;
    font-weight:700;
    padding:6px 10px;
    border-radius:6px;
    z-index:20;
    text-transform:uppercase;
}

.badge-pocas-unidades{
    position:absolute;
    top:10px;
    right:10px;
    background:var(--color-dorado);
    color:var(--color-negro);
    font-size:16px;
    font-weight:700;
    padding:6px 10px;
    border-radius:6px;
    z-index:20;
    text-transform:uppercase;
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width:992px){

    .producto-detalle{
        grid-template-columns:1fr;
        gap:20px;
    }

    .producto-imagen img{
        max-width:280px;
    }

    .producto-info h1{
        font-size:1.6rem;
    }

    .precio-normal,
    .precio-promocion{
        font-size:2rem;
    }
}

@media(max-width:576px){

    .producto-detalle{
        padding:15px;
        margin:15px;
    }

    .producto-info h1{
        font-size:1.4rem;
    }

    .precio-normal,
    .precio-promocion{
        font-size:1.8rem;
    }

    .btn-volver{
        width:100%;
        text-align:center;
    }
}
.btn-share-mobile{
   position: relative;
    top: 10px;
    left: 10px;
    z-index: 50;
    display: block; /* IMPORTANTE */
}

.btn-share-mobile button{
    background: var(--color-principal);
    color: #fff;
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
}

@media (min-width: 769px){
    .btn-share-mobile{
        display: none;
    }
}

.btn-share {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: #1877ff;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.btn-share i {
    font-size: 16px;
}