/* ============================================
   PRODUCT DETAIL PAGE SPECIFIC STYLES
   ============================================ */

/* Product Images Section */
.product-images-section {
    position: sticky;
    top: 100px;
    align-self: start;
}

.main-image-container {
    position: relative;
}

.main-image-container img {
    transition: opacity 0.3s ease-in-out;
}

/* Thumbnail Gallery */
.thumbnail-gallery {
    margin-top: 1rem;
}

.thumbnail-item {
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.thumbnail-item.active-thumbnail {
    border-color: #d69185 !important;
    box-shadow: 0 0 0 2px rgba(214, 145, 133, 0.2);
}

.thumbnail-item img {
    transition: transform 0.3s ease-in-out;
}

.thumbnail-item:hover img {
    transform: scale(1.05);
}

/* Variant Selector */
.variant-option {
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    background-color: #ffffff;
}

.variant-option:hover {
    background-color: #f7e9e3;
}

.variant-option.variant-active {
    border-color: #d69185 !important;
    background-color: #f7e9e3;
    color: #cd7e7e;
    font-weight: 600;
}

/* Quantity Selector */
.quantity-selector {
    max-width: 200px;
    border-radius: 0.5rem;
    overflow: hidden;
}

.quantity-btn {
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    background-color: #ffffff;
    flex-shrink: 0;
}

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

.quantity-btn:focus {
    outline: none;
    box-shadow: none;
}

.quantity-btn:active {
    background-color: #f7e9e3;
}

.quantity-input {
    -moz-appearance: textfield;
    flex-shrink: 0;
}

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

.quantity-input:focus {
    outline: none;
    box-shadow: none;
    border-color: #d69185;
}

/* Ensure buttons and input are connected */
.quantity-selector .quantity-btn:first-child {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.quantity-selector .quantity-btn:last-child {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.quantity-selector .quantity-input {
    border-left: none;
    border-right: none;
}

/* Fix border connection on hover */
.quantity-selector:hover .quantity-btn:first-child,
.quantity-selector:hover .quantity-input {
    border-color: #d69185;
}

.quantity-selector:hover .quantity-btn:last-child {
    border-color: #d69185;
}

/* Favorite Button */
#favorite-btn {
    transition: all 0.3s ease-in-out;
}

#favorite-btn:hover {
    transform: scale(1.1);
}

#favorite-icon {
    transition: all 0.3s ease-in-out;
}

#favorite-icon.text-prm-pink {
    fill: #d69185;
    stroke: #d69185;
}

/* Product Info Section */
.product-info-section {
    padding-left: 0;
}

@media (min-width: 1024px) {
    .product-info-section {
        padding-left: 2rem;
    }
}

/* Product Description */
.product-description {
    line-height: 1.8;
}

/* Product Benefits */
.product-benefits ul {
    list-style: none;
    padding: 0;
}

.product-benefits li {
    line-height: 1.6;
}

/* Share Buttons */
.share-btn {
    transition: all 0.3s ease-in-out;
    cursor: pointer;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(214, 145, 133, 0.2);
}

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

/* Responsive Styles */
@media (max-width: 1023px) {
    .product-images-section {
        position: relative;
        top: 0;
    }
    
    .product-info-section {
        padding-left: 0;
    }
}

@media (max-width: 767px) {
    .thumbnail-gallery {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .variant-selector {
        flex-direction: column;
    }
    
    .variant-option {
        width: 100%;
        text-align: center;
    }
    
    .quantity-selector {
        max-width: 100%;
    }
}

