/* Product Page */
.product-page {
    padding: 2rem 0;
}

.product-container {
    display: flex;
    gap: 3rem;
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.left-section {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    justify-content: start;
    gap: 20px;
    box-sizing: border-box;/* why tf is this not working?*/
}

.product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(45deg, #f0f8ff, #e6f3ff);
    border-radius: 16px;
    font-size: 8rem;
    color: #3498db;
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: contain;
    padding: 30px;
}

.image-box {
    background: #f0f8ff;
    padding: 6px;
    display: flex;
    gap: 15px;
    border-radius: 16px;
    max-width: 100%; 
    overflow-x: auto;
    white-space: nowrap;
}

.image-box .image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: #d9ebfc;
    border-radius: 16px;
    cursor: pointer;
}

.product-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.product-description {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
}

.product-description-mobile {
    color: #666;
    font-size: 1.1rem;
    line-height: 1.6;
    display: none;
}

/* Variant Selection */
.variant-section {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 1.5rem;
    background: #f8f9fa;
}

.variant-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.variant-options {
    display: grid;
    gap: 1rem;
}

.variant-option {
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
}

.variant-option.sale {
    background: radial-gradient(rgb(255, 255, 255) 10%, rgb(255, 219, 226) 100%);
}

.variant-option:hover {
    border-color: #3498db;
}

.variant-option.selected {
    border-color: #28a745;
    background: #f8fff9;
}

.variant-option input[type="radio"] {
    display: none;
}

.variant-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.variant-specs {
    flex: 1;
}

.variant-name {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.variant-details {
    font-size: 0.9rem;
    color: #666;
}

.variant-price {
    display: flex;
    gap: 16px;
    font-size: 1.3rem;
    font-weight: bold;
    color: #27ae60;
}

/* montage Upsell */
.montage-section,
.service-section
 {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 1.5rem;
    background: #f8f9fa;
}

.montage-title,
.service-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.montage-option,
.service-option {
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
}

.montage-option.selected,
.service-option.selected {
    border-color: #28a745;
    background: #f8fff9;
}

.montage-checkbox,
.service-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.montage-checkbox input[type="checkbox"],
.service-checkbox input[type="checkbox"] {
    margin-top: 0.25rem;
}

.montage-info,
.service-info {
    flex: 1;
}

.montage-name,
.service-name {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.montage-details,
.service-details {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.montage-price,
.service-price {
    font-weight: bold;
    color: #28a745;
    font-size: 1.1rem;
}

/* Price Summary */
.price-summary {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 1.5rem;
}

.price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.price-row.total {
    border-top: 2px solid #ddd;
    padding-top: 0.5rem;
    font-weight: bold;
    font-size: 1.3rem;
    color: #2c3e50;
}

/* Add to Cart */
.add-to-cart-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn.disabled {
    background-color: gray;
    pointer-events: none;
    user-select: none;
}

/* Success Message */
.success-message {
    position: fixed;
    top: 75px;
    right: 15px;
    background: #28a745;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transform: translateX(400px);
    transition: transform 0.3s;
    z-index: 1001;
}

.success-message.show {
    transform: translateX(0);
}

@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }

    .product-container {
        flex-direction: column;
        gap: 2rem;
        padding: 1rem;
    }

    .variant-section,
    .montage-section {
        padding: 10px;
    }

    .variant-option {
        padding: 8px;
    }

    .variant-specs {
        flex: inherit;
    }

    .variant-price {
        font-size: 1rem;
        gap: 8px;
        white-space: nowrap;
        flex-direction: column;
    }


    .variant-name,
    .variant-details {
        font-size: 12px;
    }

    .product-description {
        display: none;
    }

    .product-description-mobile {
        display: block;
    }

    .product-image-section {
        min-height: 250px;
        font-size: 4rem;
    }

    .product-title {
        font-size: 2rem;
    }
}