/* PRODUCT DETAIL PAGE STYLING */
.product-hero-banner {
    padding: 1.2rem 0;
    background: #090c14;
    border-bottom: 1px solid var(--border-dark);
}

.breadcrumb-trail {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.breadcrumb-trail a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb-trail a:hover {
    color: var(--gold);
}

.breadcrumb-trail .sep {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.2);
}

.breadcrumb-trail .current {
    color: var(--gold);
    font-weight: 600;
}

.product-detail-section {
    padding: 3.5rem 0 6rem;
    background: var(--bg-dark);
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 3.5rem;
    margin-bottom: 4.5rem;
}

/* GALLERY COLUMN */
.product-gallery-column {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.main-image-container {
    position: relative;
    width: 100%;
    height: 500px;
    background: var(--bg-card);
    border: 1.5px solid rgba(212, 175, 55, 0.35);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
}

.main-featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, opacity 0.25s ease;
}

.main-image-container:hover .main-featured-image {
    transform: scale(1.04);
}

.product-detail-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--gold);
    color: #0b0f19;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.product-thumbnails-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.thumbnail-card {
    height: 95px;
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0.6;
}

.thumbnail-card:hover,
.thumbnail-card.active {
    opacity: 1;
    border-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.35);
}

.thumbnail-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* INFO COLUMN */
.product-info-column {
    display: flex;
    flex-direction: column;
}

.product-meta-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.product-detail-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.25;
    margin-bottom: 0.8rem;
    letter-spacing: -0.5px;
}

.product-rating-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.rating-text {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.product-price-box {
    display: flex;
    align-items: baseline;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
}

.current-price {
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--gold);
}

.old-price {
    font-size: 1.3rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.savings-tag {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.4);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
}

.product-short-desc {
    color: var(--text-muted);
    font-size: 1.02rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* OPTION SELECTORS */
.option-selector-group {
    margin-bottom: 1.8rem;
}

.option-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.option-selector-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.size-guide-link {
    color: var(--text-muted);
    font-size: 0.82rem;
    text-decoration: none;
    transition: var(--transition);
}

.size-guide-link:hover {
    color: var(--gold);
}

.size-options-grid {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.size-pill {
    padding: 10px 20px;
    background: var(--input-bg);
    border: 1px solid var(--border-blue);
    color: var(--text-muted);
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.size-pill:hover,
.size-pill.active {
    background: var(--royal-blue);
    border-color: var(--gold);
    color: var(--gold);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.25);
}

.color-options-grid {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.color-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    background: var(--input-bg);
    border: 1px solid var(--border-blue);
    color: var(--text-muted);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.color-swatch-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.color-pill:hover,
.color-pill.active {
    border-color: var(--gold);
    color: var(--gold);
}

/* ACTIONS */
.action-purchase-group {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}

.quantity-stepper {
    display: flex;
    align-items: center;
    background: var(--input-bg);
    border: 1px solid var(--border-blue);
    border-radius: 14px;
    overflow: hidden;
}

.stepper-btn {
    width: 44px;
    height: 48px;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.stepper-btn:hover {
    background: var(--royal-blue);
    color: var(--gold);
}

.quantity-stepper input {
    width: 44px;
    text-align: center;
    background: none;
    border: none;
    color: var(--gold);
    font-weight: 800;
    font-size: 1.1rem;
    outline: none;
}

.add-to-bag-cta {
    flex-grow: 1;
    padding: 14px;
    border-radius: 14px;
    font-size: 0.98rem;
    font-weight: 800;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

.secondary-actions-row {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.custom-fitting-cta {
    text-align: center;
    padding: 12px;
    border-radius: 14px;
    font-size: 0.88rem;
    text-decoration: none;
}

.wishlist-detail-btn {
    background: var(--input-bg);
    border: 1px solid var(--border-dark);
    color: var(--text-muted);
    border-radius: 14px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

.wishlist-detail-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.garment-highlights-box {
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
    border-radius: 18px;
    padding: 1.5rem;
}

.garment-highlights-box h4 {
    color: var(--gold);
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
}

.garment-highlights-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.garment-highlights-box li {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* RESPONSIVE SPECIFICATION TABS CONTAINER */
.product-tabs-container {
    background: var(--bg-card);
    border: 1.5px solid var(--border-gold);
    border-radius: 24px;
    padding: 2.5rem;
    margin-bottom: 5rem;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
}

.tabs-nav-bar {
    display: flex;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border-dark);
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 14px 16px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gold);
    transition: width 0.3s ease;
    border-radius: 50px;
}

.tab-btn:hover,
.tab-btn.active {
    color: var(--gold);
}

.tab-btn.active::after {
    width: 100%;
}

.tab-content-panel {
    display: none;
    color: var(--text-muted);
    line-height: 1.8;
    animation: fadeIn 0.4s ease forwards;
}

.tab-content-panel.active {
    display: block;
}

.tab-content-panel h3 {
    color: var(--text-main);
    font-size: 1.35rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.spec-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.spec-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-muted);
    background: var(--bg-card-hover);
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--border-dark);
}

.spec-list li i {
    font-size: 1.1rem;
    margin-top: 2px;
}

.fitting-guarantee-box {
    margin-top: 1.5rem;
    padding: 1.2rem 1.5rem;
    background: var(--bg-card-hover);
    border: 1px solid var(--border-gold);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.guarantee-pill {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-main);
}

.shipping-badges-row {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.ship-badge {
    padding: 8px 18px;
    background: var(--bg-card-hover);
    border: 1px solid var(--border-gold);
    color: var(--text-main);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* RELATED PRODUCTS SECTION POLISH (ULTRA-LUXURY GLASSMORPHIC ENSEMBLE) */
.related-products-section {
    margin-top: 4.5rem;
    padding: 3.2rem 2.5rem;
    background: var(--bg-card);
    border: 1.5px solid var(--border-gold);
    border-radius: 28px;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(12px);
    position: relative;
}

.related-header {
    text-align: center;
    margin-bottom: 2.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.related-badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    background: var(--royal-blue);
    border: 1px solid var(--border-gold);
    color: var(--gold);
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 0.8rem;
    box-shadow: var(--shadow-sm);
}

.related-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.4rem;
    letter-spacing: -0.5px;
}

.related-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 600px;
    margin: 0 auto 1.2rem;
}

.related-title-divider {
    width: 60px;
    height: 3px;
    background: var(--gold);
    border-radius: 50px;
    margin: 0 auto;
}

.related-ensemble-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
}

.related-ensemble-card {
    border-radius: 18px;
    transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}

.related-ensemble-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
    box-shadow: 0 12px 30px rgba(212, 175, 55, 0.3);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVE MEDIA QUERIES FOR PRODUCT DETAIL PAGE */
@media (max-width: 992px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .main-image-container {
        height: 440px;
    }
    .product-detail-title {
        font-size: 2.1rem;
    }
    .related-ensemble-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.4rem;
    }
}

@media (max-width: 768px) {
    .product-detail-section {
        padding: 2.5rem 0 4rem;
    }

    .main-image-container {
        height: 380px;
        border-radius: 18px;
    }

    .thumbnail-card {
        height: 80px;
    }

    .product-detail-title {
        font-size: 1.8rem;
    }

    .current-price {
        font-size: 1.9rem;
    }

    /* RESPONSIVE TAB BUTTON SWIPER FOR MOBILE */
    .product-tabs-container {
        padding: 1.5rem;
        border-radius: 18px;
    }

    .tabs-nav-bar {
        display: flex;
        overflow-x: auto;
        flex-wrap: nowrap;
        gap: 0.6rem;
        border-bottom: none;
        padding-bottom: 10px;
        margin-bottom: 1.5rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .tabs-nav-bar::-webkit-scrollbar {
        display: none;
    }

    .tab-btn {
        padding: 10px 18px;
        background: #0d121f;
        border: 1px solid var(--border-blue);
        border-radius: 50px;
        font-size: 0.85rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .tab-btn::after {
        display: none;
    }

    .tab-btn.active {
        background: var(--royal-blue);
        border-color: var(--gold);
        color: var(--gold);
        box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    }

    .secondary-actions-row {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
}

@media (max-width: 576px) {
    .main-image-container {
        height: 320px;
    }

    .product-thumbnails-grid {
        gap: 0.6rem;
    }

    .thumbnail-card {
        height: 65px;
    }

    .product-detail-title {
        font-size: 1.55rem;
    }

    .action-purchase-group {
        flex-direction: column;
    }

    .quantity-stepper {
        width: 100%;
        justify-content: center;
    }

    .add-to-bag-cta {
        width: 100%;
    }

    .tab-content-panel h3 {
        font-size: 1.15rem;
    }

    .fitting-guarantee-box {
        flex-direction: column;
        text-align: center;
    }
}

/* FULLSCREEN IMAGE LIGHTBOX MODAL */
.product-lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: fadeIn 0.25s ease-out;
}

.product-lightbox-modal.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 85vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 14px;
    border: 2px solid var(--gold);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.lightbox-close-btn {
    position: absolute;
    top: -45px;
    right: 0;
    background: rgba(212, 175, 55, 0.2);
    border: 1.5px solid var(--gold);
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.lightbox-close-btn:hover {
    background: var(--gold);
    color: #000000;
    transform: scale(1.1);
}
