/* Product Detail Page Styles */
.product-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .product-detail-container {
        grid-template-columns: 1fr 1fr;
    }
}

.product-gallery {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background-color: #f5f5f7;
}

.product-main-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.product-thumbnails {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.product-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    cursor: pointer;
    object-fit: cover;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.product-thumbnail.active {
    border-color: #0071e3;
}

.product-info {
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1d1d1f;
}

.product-size {
    font-size: 1rem;
    color: #86868b;
    margin-bottom: 1.5rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 1rem;
}

.product-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #1d1d1f;
    margin-bottom: 2rem;
}

.key-ingredients {
    margin-bottom: 2rem;
}

.key-ingredients-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1d1d1f;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.key-ingredients-title::after {
    content: '+';
    margin-left: auto;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.key-ingredients.open .key-ingredients-title::after {
    transform: rotate(45deg);
}

.key-ingredients-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.key-ingredients.open .key-ingredients-content {
    max-height: 500px;
}

.key-ingredients-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.key-ingredients-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f5f5f7;
    font-size: 0.9rem;
    color: #1d1d1f;
}

.key-ingredients-list li:last-child {
    border-bottom: none;
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.quantity-label {
    margin-right: 1rem;
    font-size: 1rem;
    color: #1d1d1f;
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid #d2d2d7;
    border-radius: 8px;
    overflow: hidden;
}

.quantity-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #1d1d1f;
    transition: background-color 0.3s ease;
}

.quantity-btn:hover {
    background-color: #f5f5f7;
}

.quantity-input {
    width: 40px;
    height: 36px;
    border: none;
    text-align: center;
    font-size: 1rem;
    color: #1d1d1f;
    -moz-appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Payment Options */
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.installment-option {
    font-size: 0.9rem;
    color: #86868b;
    margin-bottom: 1rem;
}

.add-to-cart-btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background-color: #0071e3;
    color: white;
    border: none;
    border-radius: 980px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 1rem;
}

.add-to-cart-btn:hover {
    background-color: #0077ed;
}

.shop-pay-btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background-color: #5a31f4;
    color: white;
    border: none;
    border-radius: 980px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.shop-pay-btn img {
    height: 16px;
    margin-right: 8px;
}

.shop-pay-btn:hover {
    background-color: #6b46ff;
}

.more-payment-options {
    text-align: center;
    font-size: 0.9rem;
    color: #0071e3;
    text-decoration: none;
    cursor: pointer;
}

.more-payment-options:hover {
    text-decoration: underline;
}

/* Cart Notification */
.cart-notification {
    position: fixed;
    top: 80px;
    right: 20px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.cart-notification.show {
    transform: translateX(0);
}

.cart-notification-icon {
    font-size: 1.5rem;
    color: #0071e3;
}

.cart-notification-text {
    font-size: 0.9rem;
    color: #1d1d1f;
}

.cart-notification-link {
    color: #0071e3;
    text-decoration: none;
    font-weight: 500;
}

.cart-notification-link:hover {
    text-decoration: underline;
}

/* Related Products */
.related-products {
    margin-top: 4rem;
}

.related-products-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #1d1d1f;
    text-align: center;
}

/* Mobile Optimizations */
@media (max-width: 767px) {
    .product-detail-container {
        padding: 1rem;
    }
    
    .product-title {
        font-size: 1.5rem;
    }
    
    .product-price {
        font-size: 1.25rem;
    }
    
    .product-thumbnail {
        width: 60px;
        height: 60px;
    }
}
