/* ======================================================
   PRODUCTO - VISTA PÚBLICA
====================================================== */

.product-detail {
    margin-top: 30px;
}

/* GRID REAL: izquierda galería / derecha info */
.product-detail-grid {
    display: grid;
    grid-template-columns: 480px 1fr; /* 👈 columna fija + flexible */
    gap: 40px;
    align-items: start;
}

/* =========================
   GALERÍA
========================= */
.product-gallery {
    position: sticky;
    top: 90px; /* queda tipo sidebar */
}

/* Imagen principal controlada */
.product-gallery .main-image {
    width: 100%;
    max-width: 480px;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.product-gallery .main-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Miniaturas */
.product-gallery .thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.product-gallery .thumbs img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    background: #fff;
}

.product-gallery .thumbs img:hover {
    border-color: #000;
}

/* =========================
   INFO / COMPRA
========================= */
.product-detail-info h1 {
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 8px;
}

.product-detail-info .sku {
    color: #777;
    margin-bottom: 12px;
}

/* Precio */
.price-box {
    margin: 18px 0;
}

.price-total {
    font-size: 28px;
    font-weight: bold;
    color: #e60023;
}

.price-breakdown {
    font-size: 14px;
    color: #666;
}

/* =========================
   SELECTOR DE CANTIDAD
========================= */

.qty-box {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    height: 44px;
    margin: 16px 0;
}

.qty-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: #f6f6f6;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

.qty-btn:hover {
    background: #eaeaea;
}

.qty-input {
    width: 60px;
    height: 44px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    outline: none;
}

/* Quitar flechas del input number */
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-input[type=number] {
    -moz-appearance: textfield;
}


/* Botones */
.product-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

/* Stock */
.stock {
    margin-top: 14px;
    font-weight: bold;
}

.in-stock {
    color: #0a7a0a;
}

.out-stock {
    color: #c00;
}

.backorder {
    color: #e67e22;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
    }

    .product-gallery {
        position: static;
        max-width: 100%;
    }

    .product-gallery .main-image {
        max-width: 100%;
    }
}

/* =========================
   META PRODUCTO (SKU / CÓDIGO)
========================= */

.product-meta {
    margin: 6px 0 14px;
    font-size: 14px;
    color: #666;
}

.product-meta p {
    margin: 2px 0;
}

.product-meta strong {
    color: #333;
}

.barcode {
    font-family: monospace;
    letter-spacing: 0.5px;
}

/* =========================
   caracteristicas
========================= */

.product-section {
    margin-top: 32px;
}

.product-section h3 {
    margin-bottom: 10px;
    font-size: 18px;
    border-bottom: 1px solid #eee;
    padding-bottom: 6px;
}

.product-section .text {
    font-size: 15px;
    line-height: 1.6;
}

/* =========================
   DOCUMENTACIÓN
========================= */

.product-docs {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-docs li {
    margin: 8px 0;
    font-size: 15px;
}

.product-docs a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.product-docs a:hover {
    text-decoration: underline;
}
