/* =====================================================================
   PRODUCTO — estilos compartidos (todas las anchuras)
   Layout de columnas / anchos fijos: product-desktop.css y product-mobile.css
   ===================================================================== */

.product-detail {
    display: grid;
    margin-bottom: 3rem;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gallery-main {
    background-color: #F3F4F6;
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gallery-main img {
    object-fit: contain;
}

.gallery-thumbs {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.gallery-thumbs img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #E5E7EB;
    cursor: pointer;
    transition: all 0.3s;
}

.gallery-thumbs img:hover {
    border-color: #1E3A8A;
}

.gallery-thumbs img.active {
    border-color: #1E3A8A;
    box-shadow: 0 0 0 2px rgba(30, 58, 138, 0.2);
}

.view-fullsize-link {
    display: inline-block;
    margin-top: 0.5rem;
    color: #1E3A8A;
    text-decoration: none;
    font-size: 0.9rem;
    cursor: pointer;
    transition: color 0.3s;
}

.view-fullsize-link:hover {
    color: #1D4ED8;
    text-decoration: underline;
}

.product-info h1 {
    color: #1E3A8A;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.product-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #6B7280;
}

.product-price-box {
    background-color: #F3F4F6;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price-large {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1E3A8A;
}

.product-stock {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
}

.product-stock.En_Stock {
    background-color: #D1FAE5;
    color: #065F46;
}

.product-stock.Preventa {
    background-color: #FEF3C7;
    color: #92400E;
}

.product-stock.Agotado {
    background-color: #FEE2E2;
    color: #991B1B;
}

.product-description-short {
    margin-bottom: 1.5rem;
    color: #374151;
    line-height: 1.6;
}

.product-actions {
    margin-bottom: 2rem;
}

.variant-selector-block {
    margin-bottom: 1.5rem;
}

.variant-selector-block label {
    display: block;
    font-weight: 600;
    color: #1E3A8A;
    margin-bottom: 0.5rem;
}

.variant-select {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    background-color: #FFFFFF;
    color: #111827;
}

.variant-chip {
    margin-top: 0.75rem;
    color: #374151;
}

.btn-large {
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.product-details {
    border-top: 1px solid #E5E7EB;
    padding-top: 1.5rem;
}

.detail-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #F3F4F6;
    display: flex;
    gap: 1rem;
}

.detail-item strong {
    color: #1E3A8A;
    min-width: 120px;
}

.product-description-full {
    background-color: #F9FAFB;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 3rem;
}

.product-description-full h2 {
    color: #1E3A8A;
    margin-bottom: 1rem;
}

.product-description-full p {
    line-height: 1.8;
    color: #374151;
}

.related-products {
    margin-top: 3rem;
}

.related-products h2 {
    color: #1E3A8A;
    margin-bottom: 1.5rem;
}

.related-products .product-card a {
    text-decoration: none;
    color: inherit;
}
