/* ==========================================
   PRODUCT DETAIL PAGE STYLES
   Used for valentines-lover.html and valentines-hater.html
   ========================================== */

/* Product Layout */
.product-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 0 40px 80px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Product Gallery */
.product-gallery {
    position: sticky;
    top: 40px;
    height: fit-content;
}

.main-image {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    margin-bottom: 15px;
}

.thumbnail-row {
    display: flex;
    gap: 10px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.thumbnail:hover,
.thumbnail.active {
    opacity: 1;
}

/* Product Details */
.product-details {
    padding-top: 20px;
}

.product-title {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 400;
    letter-spacing: -0.5px;
    margin-bottom: 15px;
    text-transform: lowercase;
}

.product-price {
    font-size: 18px;
    margin-bottom: 25px;
}

/* Product Info */
.product-info {
    margin-bottom: 35px;
}

.product-intro {
    font-size: 15px;
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 20px;
}

.product-info ul {
    list-style: disc;
    padding-left: 20px;
}

.product-info li {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 10px;
    line-height: 1.5;
}

.product-info li strong {
    font-weight: 600;
    color: var(--text);
}

/* Selectors */
.selector-group {
    margin-bottom: 25px;
}

.selector-label {
    font-size: 14px;
    color: var(--black);
    margin-bottom: 10px;
    display: block;
}

.selector-dropdown {
    width: 100%;
    max-width: 320px;
    padding: 16px 20px;
    font-size: 15px;
    font-family: inherit;
    border: 1px solid var(--black);
    background: var(--white);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231a1a1a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.selector-dropdown:focus {
    outline: none;
    border-color: var(--black);
}

/* Quantity */
.quantity-group {
    margin-bottom: 30px;
}

.quantity-input {
    width: 80px;
    padding: 16px 20px;
    font-size: 15px;
    font-family: inherit;
    border: 1px solid var(--black);
    text-align: center;
}

.quantity-input:focus {
    outline: none;
}

/* Add to Cart */
.add-to-cart {
    width: 100%;
    max-width: 320px;
    padding: 18px 40px;
    background: var(--blue);
    color: var(--white);
    border: none;
    font-size: 15px;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.2s;
}

.add-to-cart:hover {
    opacity: 0.85;
}

.add-to-cart:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Delivery Note */
.delivery-note {
    font-size: 13px;
    color: #888;
    margin-top: 12px;
}

/* Mobile */
@media (max-width: 968px) {
    .product-page {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px 60px;
    }

    .product-gallery {
        position: relative;
        top: 0;
    }

    .selector-dropdown,
    .add-to-cart {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .product-page {
        padding: 0 15px 50px;
    }

    .product-title {
        font-size: 26px;
    }

    .thumbnail {
        width: 60px;
        height: 60px;
    }
}
