/**
 * Product Page CSS - Stili specifici pagina singolo prodotto
 * Gioielleria Egidio
 */

/* ========================================
   PRODUCT LAYOUT
   ======================================== */

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
    min-height: 600px; /* Previene CLS */
}

.product-gallery {
    position: sticky;
    top: 120px;
    min-height: 500px; /* Previene CLS */
}

.main-image {
    width: 100%;
    aspect-ratio: 1;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px; /* Previene CLS */
    contain: layout style paint; /* Ottimizza rendering */
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-image .placeholder {
    font-size: 8rem;
    color: var(--primary);
    opacity: 0.3;
}

/* ========================================
   PRODUCT INFO
   ======================================== */

.product-info {
    padding: 1rem 0;
}

.product-category {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.product-title {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.product-sku {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* ========================================
   PRODUCT PRICE
   ======================================== */

.product-price-box {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.product-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.product-price del {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-left: 1rem;
}

.price-note {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* ========================================
   PRODUCT DESCRIPTION
   ======================================== */

.product-description {
    color: var(--text);
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* ========================================
   PRODUCT SPECS
   ======================================== */

.specs-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.specs-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.specs-section h3 i {
    color: var(--primary);
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--light);
}

.spec-label {
    color: var(--text-light);
    font-weight: 500;
}

.spec-value {
    color: var(--dark);
    font-weight: 600;
}

/* ========================================
   CTA BUTTONS
   ======================================== */

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.add-to-cart-form {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex: 1;
}
