/* 
    Product Detail Redesign
    Theme: Liquid Glass + Luxury Couture
*/

/* Product Hero Section */
.couture-product-hero {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(212, 175, 55, 0.15); /* Temple Gold tint */
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.couture-breadcrumb {
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.5px;
    font-size: 0.977rem;
    text-transform: uppercase;
    color: #475569;
}

.couture-breadcrumb a {
    color: #94A3B8;
    transition: color 0.3s ease;
}

.couture-breadcrumb a:hover {
    color: #D4AF37; /* Temple Gold */
}

/* Typography */
.couture-hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.875rem;
    font-weight: 600;
    color: #0F172A;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.couture-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.3rem;
    font-weight: 700;
    color: #1E293B;
}

.couture-price-old {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.438rem;
    color: #94A3B8;
    text-decoration: line-through;
}

.couture-discount-badge {
    background: rgba(212, 175, 55, 0.1);
    color: #D4AF37;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.977rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

/* Attributes / Variants */
.couture-variant-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.035rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #475569;
    margin-bottom: 1rem;
}

/* Buttons */
.couture-btn-primary {
    background: #0F172A;
    color: #FFFFFF;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.035rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 1rem 2.5rem;
    border-radius: 0;
    border: 1px solid #0F172A;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.1);
}

.couture-btn-primary:hover {
    background: #FFFFFF;
    color: #0F172A !important;
    border-color: #0F172A;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.15);
}

.couture-btn-secondary {
    background: transparent;
    color: #D4AF37;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.035rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 1rem 2.5rem;
    border-radius: 0;
    border: 1px solid #D4AF37;
    transition: all 0.3s ease;
    cursor: pointer;
}

.couture-btn-secondary:hover {
    background: #D4AF37;
    color: #FFFFFF !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.2);
}

/* Info Boxes ("Get It Today" area) */
.couture-info-box {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.couture-info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

.couture-info-icon-wrapper {
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.couture-info-box:hover .couture-info-icon-wrapper {
    background: #D4AF37;
    border-color: #D4AF37;
}

.couture-info-box:hover .couture-info-icon-wrapper svg path {
    fill: #FFFFFF !important;
}

/* Action Icons (Wishlist, Share) */
.couture-action-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid #E2E8F0;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #0F172A;
}

.couture-action-btn:hover {
    border-color: #D4AF37;
    background: rgba(212, 175, 55, 0.05);
    transform: translateY(-2px);
}

.couture-action-btn svg path {
    transition: fill 0.3s ease;
}

.couture-action-btn:hover svg path {
    fill: #D4AF37 !important;
}

/* Product Tabs */
.couture-tabs-container {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.02);
    margin-top: 2rem;
}

.couture-nav-pills .nav-link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: #64748B;
    border-radius: 0;
    border-bottom: 2px solid transparent;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
    background: transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.035rem;
}

.couture-nav-pills .nav-link:hover {
    color: #0F172A;
}

.couture-nav-pills .nav-link.active {
    background: transparent;
    color: #D4AF37;
    border-bottom-color: #D4AF37;
}

/* Custom Checkboxes / Radios for Variants */
.couture-size-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border: 1px solid #E2E8F0; /* Subtle default border */
    border-radius: 6px; /* Slightly softer corners */
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: #64748B; /* Softer text color when unselected */
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background: #FFFFFF;
    min-width: 100px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.couture-size-btn:hover {
    border-color: #CBD5E1;
    color: #334155;
    background: #F8FAFC;
    transform: translateY(-1px);
}

.size-checkbox2-input:checked + .couture-size-btn {
    border-color: #C8960C; /* Temple Gold */
    background: rgba(200, 150, 12, 0.05); /* Very soft gold tint */
    color: #0F172A; /* Midnight Black */
    font-weight: 600;
    box-shadow: 0 0 0 1px #C8960C; /* Sharper highlight */
}

/* Image Gallery Translucency */
.tf-product-media-wrap {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

/* Fix Duplicate Image Bug (Missing Fashion CSS) */
.drift-bounding-box {
    z-index: 1;
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.40);
    border: 1px solid #E2E8F0;
}

.tf-zoom-main {
    position: sticky;
    top: 30px;
    z-index: 50;
}
.tf-zoom-main .drift-zoom-pane {
    top: 0;
    left: 0;
    height: 520px;
    max-width: 520px;
    width: 100%;
    background: #fff;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    z-index: 3;
    border-radius: 24px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}
.tf-zoom-main .drift-zoom-pane img {
    object-fit: cover;
}

.tf-product-media-thumbs {
    width: 92px;
    flex: 0 0 92px;
    height: 592px; /* Matched banner height */
}
.tf-product-media-thumbs .swiper-slide {
    height: max-content;
}
.tf-product-media-thumbs .swiper-slide .item {
    position: relative;
    border-radius: 12px;
    width: 92px;
    aspect-ratio: 92 / 105;
    cursor: pointer;
}
.tf-product-media-thumbs .swiper-slide .item::after {
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    border-radius: 12px;
}
.tf-product-media-thumbs .swiper-slide.swiper-slide-thumb-active .item::after {
    border: 1px solid #D4AF37;
}
.tf-product-media-thumbs .swiper-slide .item img {
    border-radius: 12px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tf-product-media-main .item {
    border-radius: 16px;
    overflow: hidden;
}
.tf-product-media-main .item img {
    border-radius: 16px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ec-product-banner-slide {
    width: 100%;
    height: 592px;
}
.ec-product-banner-slide .item {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.thumbs-slider-wrap {
    display: flex;
    gap: 16px;
}

/* Tab Review & Additional Content */
.couture-body-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #475569;
}

.couture-additional-info {
    padding: 24px 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    column-gap: 61px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.couture-additional-title {
    position: relative;
    border-right: 1px solid rgba(212, 175, 55, 0.2);
    width: 150px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.438rem;
    font-weight: 600;
    color: #0F172A;
}

.couture-meta-block {
    padding: 15px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.couture-meta-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.092rem;
    font-weight: 600;
    color: #475569;
    min-width: 110px;
}

.couture-meta-value {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.265rem;
    font-weight: 500;
    color: #0F172A;
}

/* Detail Add To Cart Button Logic */
.product-card-body .detail-add-btn {
    display: none !important;
}

/* Product detail page: ensure main Add to Cart button is visible */
#addToCartButtonMain {
    display: inline-flex !important;
}

.dtBtn .quick-add-group {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    transform: none;
    opacity: 1;
    pointer-events: all;
    width: 100%;
}

.dtBtn .quick-add-btn {
    display: none !important;
}

.dtBtn .detail-add-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    background-color: #0F172A;
    color: #FFFFFF;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.977rem;
    font-weight: 600;
    letter-spacing: 1px;
    border: 1px solid #0F172A;
    border-radius: 0;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.dtBtn .detail-add-btn:hover {
    background-color: transparent;
    color: #0F172A;
}

.dtBtn .quantity-selector-group {
    display: inline-flex;
    align-items: center;
    border: 1px solid #E2E8F0;
    height: 48px;
    background: #FFFFFF;
}

.dtBtn .quantity-selector-group .qs-btn {
    width: 40px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #475569;
    transition: all 0.2s;
}

.dtBtn .quantity-selector-group .qs-btn:hover {
    color: #0F172A;
    background: #F8FAFC;
}

.dtBtn .quantity-selector-group .qs-qty {
    width: 50px;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.15rem;
    color: #0F172A;
    border-left: 1px solid #E2E8F0;
    border-right: 1px solid #E2E8F0;
    line-height: 48px;
}

.customer-review-single {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    padding: 24px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.customer-review-single:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
}

/* Luxury Review Section Styles */
.couture-rating-stars-wrap .rating-wrap-line h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4.025rem;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 0;
}

.couture-rating-stars-wrap .rating-stars-wrap img {
    width: 20px;
    height: 20px;
    margin-right: 2px;
}

.single-rating-progress-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 8px;
}

.single-rating-progress-wrap .rating {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.977rem;
    font-weight: 500;
    color: #64748B;
    min-width: 60px;
    margin-bottom: 0;
}

.single-rating-progress-wrap .progressbar-width {
    flex-grow: 1;
    height: 6px;
    background: #F1F5F9;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.single-rating-progress-wrap .progressbar-width::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: var(--progress-width, 0%);
    background: #D4AF37;
    border-radius: 10px;
    transition: width 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.single-rating-progress-wrap .count {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.977rem;
    font-weight: 600;
    color: #0F172A;
    min-width: 20px;
    text-align: right;
    margin-bottom: 0;
}

.couture-review-btn {
    background: transparent;
    border: 1px solid #1C1917;
    color: #1C1917;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    letter-spacing: 1.5px;
    padding: 12px 30px;
    transition: all 0.3s ease;
    border-radius: 0;
}

.couture-review-btn:hover {
    background: #1C1917;
    color: #FFFFFF;
}

/* Interactive Star Rating Form */
.couture-star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 8px;
}

.couture-star-rating input {
    display: none;
}

.couture-star-rating label {
    cursor: pointer;
    width: 32px;
    height: 32px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='none' stroke='%23CBD5E1' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'%3E%3C/polygon%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    transition: all 0.2s ease;
}

.couture-star-rating label:hover,
.couture-star-rating label:hover ~ label,
.couture-star-rating input:checked ~ label {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='%23D4AF37' stroke='%23D4AF37' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'%3E%3C/polygon%3E%3C/svg%3E");
}

/* Review Item refinements */
.customer-review-single .al-title-16px {
    color: #0F172A;
    font-weight: 600;
}

.customer-review-single .al-subtitle-14px {
    color: #64748B;
}

.review-sm-stars img {
    width: 14px;
    height: 14px;
    margin-right: 1px;
}

.review-product-img {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #E2E8F0;
    transition: transform 0.3s ease;
}

.review-product-img:hover {
    transform: scale(1.05);
}

.icontext-sm-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.977rem;
    font-weight: 500;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s ease;
}

.icontext-sm-link:hover {
    color: #D4AF37;
}

.icontext-sm-link svg {
    transition: fill 0.2s ease;
}

.icontext-sm-link:hover svg path {
    fill: #D4AF37 !important;
}

/* Size Guide Trigger */
.size-guide-link {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: #FFFFFF;
    background: #D4AF37;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid #D4AF37;
}

.size-guide-link:hover {
    background: #0F172A;
    border-color: #0F172A;
    color: #D4AF37;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.2);
    transform: translateY(-2px);
}

/* Size Guide Modal & Table */
.size-guide-container {
    font-family: 'Cormorant Garamond', serif;
    max-width: 100%;
    border: 1px solid #C8960C;
    border-radius: 12px;
    overflow: hidden;
    background-color: #FEF9EE;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.size-guide-header {
    background: linear-gradient(135deg, #4A1A0A 0%, #7B3F00 100%);
    color: #FEF9EE;
    padding: 30px 20px;
    text-align: center;
}

.size-guide-header h2 {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #C8960C;
    font-size: 2rem;
    font-weight: 700;
}

.size-guide-header p {
    margin-top: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    opacity: 0.8;
}

.size-guide-table {
    width: 100%;
    border-collapse: collapse;
    color: #4A1A0A;
}

.size-guide-table th {
    background-color: rgba(200, 150, 12, 0.1);
    padding: 15px;
    border-bottom: 2px solid #C8960C;
    font-size: 0.95rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
}

.size-guide-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid rgba(200, 150, 12, 0.2);
    font-size: 1.1rem;
}

.highlight-col {
    background-color: rgba(200, 150, 12, 0.05);
    font-weight: 700;
    color: #7B3F00;
    border-left: 1px solid rgba(200, 150, 12, 0.3);
    border-right: 1px solid rgba(200, 150, 12, 0.3);
}

.size-guide-table tr:hover {
    background-color: #FFFDF0;
}

@media (max-width: 768px) {
    .size-guide-header h2 {
        font-size: 1.5rem;
    }
    .size-guide-table td, .size-guide-table th {
        padding: 10px;
        font-size: 0.9rem;
    }
}

/* Out of Stock Styling */
.couture-size-btn.out-of-stock {
    position: relative;
    opacity: 0.6;
    border-color: #E2E8F0 !important;
    background: #F8FAFC !important;
    color: #94A3B8 !important;
    cursor: not-allowed !important;
    overflow: hidden;
}

.couture-size-btn.out-of-stock::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: #CBD5E1;
    transform: rotate(-15deg);
}

.sold-out-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ef4444;
    color: white;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 2;
}
