/* ============ PRODUCT DETAIL ============ */
.product-detail-section { padding: 40px 0; background: white; }

.main-image-wrapper {
    position: relative;
    overflow: hidden;
    background: #F8F3EF;
    border: 1px solid #F8F3EF;
}

.main-image {
    width: 100%;
    height: 550px;
    object-fit: contain;
    padding: 25px;
    display: block;
    transition: opacity 0.4s;
}

.image-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #E8DFD5;
    color: #3F3040;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
    z-index: 3;
}

.image-nav-btn:hover { background: #8B6688; color: white; border-color: #8B6688; }
.image-nav-prev { left: 15px; }
.image-nav-next { right: 15px; }

.image-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.image-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(63, 48, 64, 0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.image-dot.active { background: #C9A45C; width: 24px; border-radius: 4px; }

.thumbnail-images {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    background: #F8F3EF;
    padding: 3px;
}

.thumbnail:hover, .thumbnail.active { border-color: #8B6688; }

.product-title {
    color: #3F3040;
    font-weight: 700;
    font-size: 28px;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.product-category {
    color: #8B6688;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.price-section {
    margin: 20px 0;
    padding: 15px 0;
    border-top: 1px solid #F8F3EF;
    border-bottom: 1px solid #F8F3EF;
}

.current-price { color: #8B6688; font-weight: 700; font-size: 32px; }
.original-price { color: #B9A0C0; text-decoration: line-through; font-size: 18px; margin-left: 10px; }
.discount-badge-detail { background: #C9A45C; color: white; padding: 5px 12px; font-size: 12px; font-weight: 600; margin-left: 10px; }

.stock-status { font-weight: 500; margin-top: 10px; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }
.in-stock { color: #4a8f4a; }
.out-of-stock { color: #c14a4a; }

.size-chart-link {
    background: transparent;
    border: none;
    color: #8B6688;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    padding: 5px 0;
    border-bottom: 1px dashed #8B6688;
    transition: all 0.3s;
}

.size-chart-link:hover { color: #3F3040; border-color: #3F3040; }

.size-selector { margin: 20px 0; }
.size-selector h6 { color: #3F3040; margin-bottom: 12px; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; font-weight: 600; }
.size-btn { min-width: 50px; height: 50px; border: 1px solid #E8DFD5; background: white; margin-right: 8px; margin-bottom: 8px; cursor: pointer; font-weight: 600; color: #3F3040; transition: all 0.3s; font-size: 13px; }
.size-btn:hover { border-color: #8B6688; background: #F8F3EF; }
.size-btn.selected { border-color: #8B6688; background: #8B6688; color: white; }

.quantity-wrapper { margin: 20px 0; }
.quantity-wrapper label { display: block; color: #3F3040; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; font-weight: 600; margin-bottom: 10px; }

.quantity-control { display: inline-flex; align-items: center; border: 1px solid #E8DFD5; background: white; }
.quantity-btn { background: #F8F3EF; border: none; width: 45px; height: 45px; color: #3F3040; font-weight: 700; font-size: 18px; cursor: pointer; transition: all 0.3s; }
.quantity-btn:hover { background: #8B6688; color: white; }
.quantity-input { width: 65px; text-align: center; border: none; font-weight: 600; font-size: 16px; outline: none; }

.btn-add-to-cart { background: #8B6688; color: white; padding: 18px 45px; border: none; font-weight: 600; font-size: 13px; transition: all 0.3s; margin-top: 20px; cursor: pointer; letter-spacing: 3px; text-transform: uppercase; }
.btn-add-to-cart:hover { background: #3F3040; transform: translateY(-3px); box-shadow: 0 15px 30px rgba(63, 48, 64, 0.3); }

/* ============ ACCORDION SECTIONS ============ */
.accordion-section { padding: 20px 0 60px; background: white; }
.accordion-item { border-bottom: 1px solid #E8DFD5; cursor: pointer; }
.accordion-item:first-child { border-top: 1px solid #E8DFD5; }

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5px;
    transition: all 0.3s;
}

.accordion-title {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #3F3040;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.accordion-title i { color: #C9A45C; font-size: 18px; }
.accordion-icon { color: #8B6688; font-size: 18px; transition: all 0.3s; }
.accordion-item.active .accordion-icon { transform: rotate(180deg); }

.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; }
.accordion-item.active .accordion-content { max-height: 800px; }

.accordion-content-inner {
    padding: 0 5px 25px 40px;
    color: #5a4a5c;
    font-size: 13px;
    line-height: 1.8;
}

.accordion-content-inner ul { padding-left: 18px; margin: 0; }
.accordion-content-inner ul li { margin-bottom: 8px; }
.accordion-content-inner h6 {
    color: #3F3040;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 15px 0 10px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #F8F3EF;
    font-size: 13px;
}
.info-row:last-child { border-bottom: none; }
.info-label { color: #8B6688; letter-spacing: 0.5px; }
.info-value { color: #3F3040; font-weight: 500; text-align: right; }

/* ============ REVIEWS ============ */
.reviews-section { padding: 60px 0; background: #F8F3EF; }
.reviews-wrapper { max-width: 900px; margin: 0 auto; }

.rating-summary {
    background: white;
    padding: 35px;
    margin-bottom: 35px;
    border-top: 3px solid #C9A45C;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 35px;
    align-items: center;
}

.rating-summary-left { text-align: center; border-right: 1px solid #F8F3EF; padding-right: 35px; }
.rating-big { font-size: 55px; font-weight: 700; color: #8B6688; line-height: 1; margin-bottom: 10px; }
.rating-stars-big { color: #C9A45C; font-size: 18px; margin-bottom: 10px; }
.rating-count { color: #8B6688; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }
.rating-count strong { color: #3F3040; }

.rating-summary-right { display: flex; flex-direction: column; gap: 8px; }
.rating-bar-row { display: flex; align-items: center; gap: 12px; }
.rating-bar-label { color: #3F3040; font-size: 12px; font-weight: 500; min-width: 35px; display: flex; align-items: center; gap: 3px; }
.rating-bar-label i { color: #C9A45C; font-size: 10px; }
.rating-bar { flex: 1; height: 8px; background: #F8F3EF; border-radius: 4px; overflow: hidden; }
.rating-bar-fill { height: 100%; background: #C9A45C; border-radius: 4px; }
.rating-bar-count { color: #8B6688; font-size: 12px; font-weight: 500; min-width: 25px; text-align: right; }

.review-alert { padding: 15px 20px; margin-bottom: 25px; font-size: 13px; }
.review-alert.success { background: #E8F5E9; border-left: 4px solid #4CAF50; color: #2E7D32; }
.review-alert.error { background: #FCE4EC; border-left: 4px solid #C2185B; color: #C2185B; }

.reviews-list { margin-bottom: 40px; }
.reviews-heading { color: #3F3040; font-size: 18px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 25px; padding-bottom: 15px; border-bottom: 2px solid #C9A45C; display: inline-block; }
.reviews-heading i { color: #C9A45C; margin-right: 8px; }

.review-item { background: white; padding: 22px; margin-bottom: 12px; border-left: 3px solid #C9A45C; }
.review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; flex-wrap: wrap; gap: 10px; }
.reviewer-info { display: flex; align-items: center; gap: 12px; }
.reviewer-avatar { width: 42px; height: 42px; background: #8B6688; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 16px; }
.reviewer-name { color: #3F3040; font-weight: 600; font-size: 14px; }
.review-date { color: #8B6688; font-size: 11px; }
.review-stars { color: #C9A45C; font-size: 13px; }
.review-comment { color: #5a4a5c; font-size: 13px; line-height: 1.7; padding-left: 54px; }

.no-reviews { text-align: center; padding: 50px 20px; background: white; border: 1px dashed #E8DFD5; }
.no-reviews i { font-size: 45px; color: #C9A45C; margin-bottom: 12px; display: block; }
.no-reviews p { color: #8B6688; font-size: 13px; margin: 0; }

.write-review { background: white; padding: 35px; border-top: 3px solid #C9A45C; }
.form-row-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 20px; }
.form-label { color: #3F3040; font-weight: 500; font-size: 11px; margin-bottom: 8px; letter-spacing: 1.5px; text-transform: uppercase; display: block; }
.form-input { width: 100%; border: 1px solid #E8DFD5; padding: 12px 15px; font-size: 14px; background: #F8F3EF; color: #3F3040; font-family: 'Poppins', sans-serif; transition: all 0.3s; }
.form-input:focus { border-color: #8B6688; background: white; outline: none; box-shadow: 0 0 0 3px rgba(139, 102, 136, 0.08); }

.star-picker { display: flex; gap: 8px; padding: 5px 0; align-items: center; }
.star-picker .star-item { font-size: 32px; color: #E8DFD5; cursor: pointer; transition: color 0.15s, transform 0.15s; user-select: none; }
.star-picker .star-item.bi-star-fill { color: #C9A45C; }
.star-picker .star-item:hover { transform: scale(1.15); }

.submit-review-btn { background: #8B6688; color: white; border: none; padding: 15px 35px; font-weight: 600; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; cursor: pointer; transition: all 0.3s; }
.submit-review-btn:hover { background: #3F3040; transform: translateY(-2px); box-shadow: 0 10px 25px rgba(63, 48, 64, 0.2); }

/* ============ RELATED ============ */
.related-section { padding: 60px 0; background: white; }
.related-section h3 { color: #3F3040; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; text-align: center; margin-bottom: 35px; font-size: 22px; }
.related-card { background: white; border: 1px solid #F8F3EF; text-decoration: none; display: block; transition: all 0.3s; margin-bottom: 20px; }
.related-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(63, 48, 64, 0.1); }
.related-image { width: 100%; height: 220px; object-fit: cover; background: #F8F3EF; }
.related-info { padding: 15px; text-align: center; }
.related-name { color: #3F3040; font-weight: 500; font-size: 13px; margin-bottom: 6px; }
.related-price { color: #8B6688; font-weight: 700; font-size: 14px; }

/* ============ STICKY CART ============ */
.sticky-add-cart { display: none; position: fixed; bottom: 60px; left: 0; right: 0; background: white; padding: 12px 15px; box-shadow: 0 -2px 15px rgba(63, 48, 64, 0.1); z-index: 999; }
.sticky-add-cart .btn { width: 100%; background: #8B6688; color: white; border: none; padding: 14px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; font-size: 12px; }

/* ============ MOBILE OPTIMIZED ============ */
@media (max-width: 768px) {
    .product-detail-section { padding: 20px 0; }
    .main-image { height: 300px; padding: 15px; }
    .image-nav-btn { width: 35px; height: 35px; font-size: 15px; }
    .image-nav-prev { left: 8px; }
    .image-nav-next { right: 8px; }
    
    .thumbnail { width: 55px; height: 55px; }
    .thumbnail-images { gap: 6px; margin-top: 10px; }
    
    .product-title { font-size: 20px; margin-bottom: 6px; }
    .product-category { font-size: 10px; letter-spacing: 2px; margin-bottom: 12px; }
    
    .price-section { margin: 12px 0; padding: 10px 0; }
    .current-price { font-size: 22px; }
    .original-price { font-size: 14px; margin-left: 6px; }
    .discount-badge-detail { font-size: 10px; padding: 3px 8px; margin-left: 6px; }
    
    .stock-status { font-size: 11px; margin-top: 8px; }
    .size-chart-link { font-size: 11px; letter-spacing: 1px; }
    
    .size-selector { margin: 12px 0; }
    .size-selector h6 { font-size: 11px; letter-spacing: 1.5px; margin-bottom: 8px; }
    .size-btn { min-width: 42px; height: 42px; font-size: 12px; margin-right: 5px; margin-bottom: 5px; }
    
    .quantity-wrapper { margin: 12px 0; }
    .quantity-wrapper label { font-size: 11px; letter-spacing: 1.5px; margin-bottom: 8px; }
    .quantity-btn { width: 38px; height: 38px; font-size: 16px; }
    .quantity-input { width: 50px; font-size: 14px; }
    
    .btn-add-to-cart { padding: 14px 25px; font-size: 11px; letter-spacing: 2px; width: 100%; margin-top: 15px; }
    
    /* Accordion Mobile */
    .accordion-section { padding: 10px 0 30px; }
    .accordion-header { padding: 15px 5px; }
    .accordion-title { font-size: 11px; letter-spacing: 1.5px; gap: 10px; }
    .accordion-title i { font-size: 15px; }
    .accordion-icon { font-size: 16px; }
    .accordion-content-inner { padding: 0 5px 18px 32px; font-size: 12px; line-height: 1.7; }
    .accordion-content-inner h6 { font-size: 11px; margin: 12px 0 8px; }
    .info-row { font-size: 12px; padding: 6px 0; }
    
    /* Reviews Mobile */
    .reviews-section { padding: 30px 0; }
    .rating-summary { grid-template-columns: 1fr; padding: 25px 20px; gap: 20px; }
    .rating-summary-left { border-right: none; border-bottom: 1px solid #F8F3EF; padding: 0 0 20px; }
    .rating-big { font-size: 40px; }
    .rating-stars-big { font-size: 14px; margin-bottom: 6px; }
    .rating-count { font-size: 10px; }
    
    .reviews-heading { font-size: 13px; letter-spacing: 2px; padding-bottom: 10px; margin-bottom: 18px; }
    .reviews-heading i { font-size: 15px; margin-right: 5px; }
    
    .review-item { padding: 15px; margin-bottom: 10px; }
    .reviewer-avatar { width: 35px; height: 35px; font-size: 14px; }
    .reviewer-name { font-size: 12px; }
    .review-date { font-size: 10px; }
    .review-stars { font-size: 11px; }
    .review-comment { font-size: 12px; padding-left: 47px; line-height: 1.6; }
    
    .write-review { padding: 25px 20px; }
    .form-row-two { grid-template-columns: 1fr; gap: 0; }
    .form-label { font-size: 10px; letter-spacing: 1px; margin-bottom: 6px; }
    .form-input { padding: 10px 12px; font-size: 13px; }
    .star-picker .star-item { font-size: 26px; }
    .submit-review-btn { padding: 12px 25px; font-size: 11px; width: 100%; }
    
    /* Related */
    .related-section { padding: 30px 0; }
    .related-section h3 { font-size: 15px; letter-spacing: 2px; margin-bottom: 20px; }
    .related-image { height: 130px; }
    .related-name { font-size: 11px; }
    .related-price { font-size: 12px; }
    
    /* Sticky */
    .sticky-add-cart { display: block; padding: 8px 12px; bottom: 55px; }
    .sticky-add-cart .btn { padding: 12px; font-size: 11px; letter-spacing: 1.5px; }
    
    body { padding-bottom: 130px; }
}

/* ============ SCROLL ANIMATIONS ============ */

/* Product Images */
.main-image-wrapper {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.main-image-wrapper.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Thumbnails */
.thumbnail-images {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.thumbnail-images.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Product Info Block */
.product-category,
.product-title,
.price-section,
.stock-status,
.size-chart-link,
.size-selector,
.quantity-wrapper,
.btn-add-to-cart {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-category.animate-in,
.product-title.animate-in,
.price-section.animate-in,
.stock-status.animate-in,
.size-chart-link.animate-in,
.size-selector.animate-in,
.quantity-wrapper.animate-in,
.btn-add-to-cart.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Accordion Items */
.accordion-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Reviews Section */
.reviews-wrapper {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reviews-wrapper.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Related Products */
.related-section h3 {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.related-section h3.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.related-card {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.related-card.animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Preserve hover animation after reveal */
.related-card.animate-in:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(63, 48, 64, 0.15);
}

/* ============ SIZE CHART MODAL — Smooth Animation ============ */
#sizeChartModal {
    opacity: 0;
    transition: opacity 0.3s ease;
}

#sizeChartModal.show {
    opacity: 1;
}

#sizeChartModal > div {
    transform: scale(0.9) translateY(30px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.4s ease;
}

#sizeChartModal.show > div {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* ============ MOBILE OPTIMIZED ============ */
@media (max-width: 768px) {
    .main-image-wrapper {
        transform: translateY(20px);
    }
    
    .product-title {
        transform: translateY(20px);
    }
    
    .accordion-item {
        transform: translateY(20px);
    }
    
    .related-card {
        transform: translateY(30px) scale(0.95);
    }
}