/* ==========================================================================
   TISHAMART LUXURY PRODUCT TABS & REVIEWS SYSTEM
   Aesthetic: Jost Font, Rich Gold Accents (#C8A165 / #8C6D3B), Slate/Dark, Micro-animations
   ========================================================================== */

/* Product Tabs Container */
.luxury-product-tabs-wrapper {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
    padding: 24px 30px;
    margin-top: 36px;
    margin-bottom: 40px;
    font-family: 'Jost', sans-serif;
    /* Prevent any internal overflow from breaking page layout */
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .luxury-product-tabs-wrapper {
        padding: 16px;
        border-radius: 12px;
        margin-top: 24px;
        margin-bottom: 28px;
    }
}

/* Nav Tabs Header */
.luxury-nav-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    border-bottom: 2px solid #F3F4F6;
    padding-bottom: 2px;
    margin-bottom: 28px;
    scrollbar-width: thin;
}
.luxury-nav-tabs::-webkit-scrollbar {
    height: 4px;
}
.luxury-nav-tabs::-webkit-scrollbar-thumb {
    background: #E5E7EB;
    border-radius: 4px;
}

.luxury-nav-tabs .nav-item {
    white-space: nowrap;
}

.luxury-nav-tabs .nav-link {
    font-family: 'Jost', sans-serif;
    font-size: 15.5px;
    font-weight: 600;
    color: #64748B;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 12px 20px;
    border-radius: 8px 8px 0 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
    cursor: pointer;
}

.luxury-nav-tabs .nav-link:hover {
    color: #0F172A;
    background: #F8FAFC;
}

.luxury-nav-tabs .nav-link.active {
    color: #0F172A;
    border-bottom-color: #C8A165;
    background: transparent;
    font-weight: 700;
}

.luxury-tab-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #F1F5F9;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.luxury-nav-tabs .nav-link.active .luxury-tab-count-badge {
    background: #FEF3C7;
    color: #B45309;
}

/* Tab Content Areas */
.luxury-tab-pane {
    font-size: 15px;
    line-height: 1.75;
    color: #475569;
}

/* ==========================================================================
   REVIEWS TAB CONTENT
   ========================================================================== */

/* Review Summary Rating Box */
.review-summary-card {
    background: #FAFAFA;
    border: 1px solid #F1F5F9;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 32px;
}

@media (max-width: 768px) {
    .review-summary-card {
        padding: 20px 16px;
    }
}

.rating-score-huge {
    font-size: 3.4rem;
    font-weight: 800;
    line-height: 1;
    color: #0F172A;
    letter-spacing: -1px;
}

.stars-gold {
    color: #F59E0B;
    font-size: 1.15rem;
    letter-spacing: 2px;
}

.stars-gold-lg {
    color: #F59E0B;
    font-size: 1.35rem;
    letter-spacing: 3px;
}

/* Rating Breakdown Progress Bars */
.rating-bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 13.5px;
    color: #475569;
}

.rating-bar-label {
    min-width: 50px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.rating-progress-wrap {
    flex: 1;
    height: 9px;
    background: #E2E8F0;
    border-radius: 8px;
    overflow: hidden;
}

.rating-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #F59E0B, #D97706);
    border-radius: 8px;
    transition: width 0.6s ease;
}

.rating-bar-count {
    min-width: 35px;
    text-align: right;
    font-weight: 600;
    color: #64748B;
    font-size: 12px;
}

/* Write Review CTA Button */
.btn-write-review {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #0F172A;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 14.5px;
    padding: 12px 24px;
    border-radius: 10px;
    border: 1px solid #0F172A;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.btn-write-review:hover {
    background: #C8A165;
    border-color: #C8A165;
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(200, 161, 101, 0.3);
}

/* Customer Photos Gallery Strip */
.customer-photos-strip {
    margin-bottom: 30px;
    padding: 18px 20px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
}

.customer-photos-title {
    font-size: 14px;
    font-weight: 700;
    color: #1E293B;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.customer-photos-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
}

.customer-photo-thumb {
    width: 76px;
    height: 76px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    border: 2px solid transparent;
    transition: all 0.25s ease;
}

.customer-photo-thumb:hover {
    border-color: #C8A165;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.customer-photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.customer-photo-thumb:hover img {
    transform: scale(1.1);
}

/* ==========================================================================
   REVIEW SUBMISSION FORM
   ========================================================================== */
.review-form-container {
    background: #FFFFFF;
    border: 2px solid #E2E8F0;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 36px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    display: none;
    animation: fadeInDown 0.3s ease forwards;
}

.review-form-container.active {
    display: block;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.review-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #E2E8F0;
    padding-bottom: 16px;
    margin-bottom: 22px;
}

.review-form-title {
    font-size: 18px;
    font-weight: 700;
    color: #0F172A;
    margin: 0;
}

/* Interactive Star Rating Picker */
.interactive-stars-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.star-rating-box {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 4px;
}

.star-rating-box input[type="radio"] {
    display: none;
}

.star-rating-box label {
    font-size: 26px;
    color: #CBD5E1;
    cursor: pointer;
    transition: color 0.15s ease, transform 0.15s ease;
}

.star-rating-box label:hover,
.star-rating-box label:hover ~ label,
.star-rating-box input[type="radio"]:checked ~ label {
    color: #F59E0B;
}

.star-rating-box label:hover {
    transform: scale(1.15);
}

.rating-text-feedback {
    font-weight: 700;
    font-size: 14.5px;
    color: #D97706;
}

/* Review Upload Dropzone */
.review-upload-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    border: 2px dashed #CBD5E1;
    border-radius: 12px;
    background: #F8FAFC;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
}

.review-upload-dropzone:hover {
    border-color: #C8A165;
    background: #FEFDF9;
}

.review-upload-dropzone i {
    font-size: 28px;
    color: #64748B;
    margin-bottom: 8px;
}

/* Image Previews inside Form */
.review-preview-card {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #CBD5E1;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

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

.review-preview-remove {
    position: absolute;
    top: 3px;
    right: 3px;
    background: rgba(15, 23, 42, 0.8);
    color: #FFFFFF;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.review-preview-remove:hover {
    background: #EF4444;
}

/* ==========================================================================
   REVIEW LIST & CARDS
   ========================================================================== */
.review-item-card {
    border-bottom: 1px solid #E2E8F0;
    padding: 24px 0;
    transition: background 0.2s ease;
}

.review-item-card:last-child {
    border-bottom: none;
}

.review-avatar-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1E293B, #334155);
    color: #C8A165;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1.5px solid #FEF3C7;
}

.review-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #DCFCE7;
    color: #15803D;
    font-size: 11.5px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    border: 1px solid #BBF7D0;
}

.review-title-text {
    font-size: 16px;
    font-weight: 700;
    color: #0F172A;
    margin-bottom: 6px;
}

.review-body-text {
    font-size: 14.5px;
    line-height: 1.65;
    color: #334155;
    white-space: pre-line;
    margin-bottom: 14px;
}

.review-card-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.review-image-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #E2E8F0;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.review-image-thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

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

/* Helpful Button */
.btn-helpful {
    background: transparent;
    border: 1px solid #E2E8F0;
    border-radius: 20px;
    padding: 4px 14px;
    font-size: 12.5px;
    font-weight: 600;
    color: #64748B;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-helpful:hover {
    border-color: #0F172A;
    color: #0F172A;
    background: #F8FAFC;
}

.btn-helpful.active {
    background: #EFF6FF;
    border-color: #3B82F6;
    color: #2563EB;
}

/* Official Store Response Block */
.store-official-reply-card {
    background: #F8FAFC;
    border-left: 3.5px solid #C8A165;
    border-radius: 0 12px 12px 0;
    padding: 14px 18px;
    margin-top: 14px;
}

.store-reply-title {
    font-size: 13px;
    font-weight: 700;
    color: #0F172A;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.store-reply-body {
    font-size: 13.5px;
    color: #475569;
    line-height: 1.55;
}

/* Review Filter Pills */
.review-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.review-filter-btn {
    background: #F1F5F9;
    color: #475569;
    border: 1px solid transparent;
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.review-filter-btn:hover {
    background: #E2E8F0;
    color: #0F172A;
}

.review-filter-btn.active {
    background: #0F172A;
    color: #FFFFFF;
}

/* Lightbox Modal */
.review-modal-lightbox .modal-content {
    background: rgba(15, 23, 42, 0.95);
    border: none;
    border-radius: 16px;
}

.review-modal-lightbox .modal-body {
    position: relative;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.review-modal-lightbox img {
    max-height: 80vh;
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.review-modal-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s ease;
    z-index: 10;
}

.review-modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   MOBILE RESPONSIVE OVERRIDES — VERTICAL TABS + REVIEWS LAYOUT
   ========================================================================== */

/* ---- Tablet & below (≤ 768px) — VERTICAL TAB LAYOUT ---- */
@media (max-width: 768px) {

    /* Wrapper: tighter, no overflow issues */
    .luxury-product-tabs-wrapper {
        padding: 0;
        border-radius: 10px;
        margin-top: 20px;
        margin-bottom: 22px;
        overflow: hidden;
    }

    /* =====================================================
       VERTICAL TABS: nav stacks on top, full-width buttons
       ===================================================== */
    .luxury-nav-tabs {
        flex-direction: column;
        flex-wrap: nowrap;
        overflow-x: visible;
        overflow-y: visible;
        gap: 0;
        border-bottom: none;
        border-right: none;
        padding-bottom: 0;
        margin-bottom: 0;
        background: #F8FAFC;
        border-bottom: 1px solid #E5E7EB;
        scrollbar-width: auto;
    }

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

    .luxury-nav-tabs .nav-item {
        white-space: normal;
        width: 100%;
    }

    .luxury-nav-tabs .nav-link {
        font-size: 14px;
        font-weight: 600;
        padding: 13px 18px;
        gap: 10px;
        border-bottom: none;
        border-left: 3.5px solid transparent;
        border-radius: 0;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        background: transparent;
        color: #64748B;
        transition: all 0.2s ease;
        border-bottom: 1px solid #EEF0F3;
    }

    /* Last tab: no bottom separator */
    .luxury-nav-tabs .nav-item:last-child .nav-link {
        border-bottom: none;
    }

    .luxury-nav-tabs .nav-link:hover {
        background: #FFFFFF;
        color: #0F172A;
        border-left-color: #E2E8F0;
    }

    /* Active vertical tab: gold left border */
    .luxury-nav-tabs .nav-link.active {
        background: #FFFFFF;
        color: #0F172A;
        border-left-color: #C8A165;
        border-bottom-color: #EEF0F3;
        font-weight: 700;
        box-shadow: inset 0 0 0 0 transparent;
    }

    /* Push the count badge to the right */
    .luxury-nav-tabs .nav-link .luxury-tab-count-badge {
        margin-left: auto;
        font-size: 11px;
        padding: 2px 8px;
    }

    /* Chevron indicator on right side */
    .luxury-nav-tabs .nav-link::after {
        content: "\f054";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 11px;
        color: #CBD5E1;
        margin-left: 8px;
        transition: color 0.2s ease, transform 0.2s ease;
    }

    /* Hide chevron when a count badge is present (avoid double trailing element) */
    .luxury-nav-tabs .nav-link:has(.luxury-tab-count-badge)::after {
        display: none;
    }

    .luxury-nav-tabs .nav-link.active::after {
        color: #C8A165;
    }

    /* Tab content: padded card below the nav */
    .tab-content#productDetailTabsContent {
        padding: 20px 16px;
    }

    /* Count badge */
    .luxury-tab-count-badge {
        font-size: 11px;
        padding: 1px 7px;
    }

    /* =====================================================
       REVIEWS CONTENT ADJUSTMENTS
       ===================================================== */

    /* Review summary card */
    .review-summary-card {
        padding: 16px 14px;
    }

    .rating-score-huge {
        font-size: 2.6rem;
    }

    .rating-bar-row {
        gap: 8px;
        font-size: 12.5px;
    }

    .rating-bar-label {
        min-width: 42px;
    }

    /* Review form */
    .review-form-container {
        padding: 18px 14px;
    }

    .review-form-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .review-form-title {
        font-size: 15px;
    }

    .interactive-stars-wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .star-rating-box label {
        font-size: 22px;
    }

    .review-upload-dropzone {
        padding: 18px 12px;
    }

    /* Review items */
    .review-item-card {
        padding: 18px 0;
    }

    .review-item-card .d-flex.gap-3 {
        gap: 10px !important;
    }

    .review-avatar-circle {
        width: 36px;
        height: 36px;
        font-size: 13px;
        flex-shrink: 0;
    }

    .review-body-text {
        font-size: 13.5px;
    }

    .review-image-thumbnail {
        width: 64px;
        height: 64px;
    }

    .customer-photos-strip {
        padding: 14px 12px;
    }

    .customer-photo-thumb {
        width: 64px;
        height: 64px;
    }

    .review-filter-pills {
        gap: 6px;
        margin-bottom: 18px;
    }

    .review-filter-btn {
        font-size: 12px;
        padding: 4px 12px;
    }

    .store-official-reply-card {
        padding: 12px 14px;
    }

    /* Lightbox: full-screen on mobile */
    .review-modal-lightbox .modal-dialog {
        margin: 0;
        max-width: 100vw;
        height: 100%;
        height: 100dvh;
    }

    .review-modal-lightbox .modal-content {
        border-radius: 0;
        min-height: 100%;
        height: 100%;
        height: 100dvh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding-bottom: max(16px, env(safe-area-inset-bottom, 16px));
        box-sizing: border-box;
    }

    .review-modal-lightbox img {
        max-height: calc(85dvh - 70px);
        max-width: 95vw;
        width: auto;
        height: auto;
        object-fit: contain;
    }
}

/* ---- Mobile-only (≤ 576px) ---- */
@media (max-width: 576px) {

    .luxury-product-tabs-wrapper {
        border-radius: 8px;
    }

    /* Slightly smaller tab labels */
    .luxury-nav-tabs .nav-link {
        font-size: 13px;
        padding: 12px 14px;
    }

    /* Tab content padding */
    .tab-content#productDetailTabsContent {
        padding: 16px 12px;
    }

    /* Rating summary */
    .review-summary-card {
        padding: 14px 10px;
    }

    .rating-score-huge {
        font-size: 2.2rem;
    }

    .review-summary-card .col-12:last-child > div {
        padding: 12px !important;
    }

    .btn-write-review {
        font-size: 13px;
        padding: 10px 16px;
    }

    /* Review form */
    .review-form-container {
        padding: 14px 10px;
        border-radius: 12px;
    }

    .star-rating-box label {
        font-size: 20px;
    }

    /* Review items */
    .review-item-card {
        padding: 14px 0;
    }

    .review-avatar-circle {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .review-title-text {
        font-size: 14px;
    }

    .review-body-text {
        font-size: 13px;
    }

    .review-image-thumbnail {
        width: 56px;
        height: 56px;
    }

    .customer-photo-thumb {
        width: 56px;
        height: 56px;
    }

    .btn-helpful {
        font-size: 11.5px;
        padding: 3px 10px;
    }

    /* Filter pills: horizontal scroll on very small screens */
    .review-filter-pills {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 6px;
        scrollbar-width: none;
    }

    .review-filter-pills::-webkit-scrollbar {
        display: none;
    }

    .review-verified-badge {
        font-size: 10.5px;
        padding: 1px 6px;
    }
}

/* ==========================================================================
   MOBILE ACCORDION (lux-mobile-accordion)
   ========================================================================== */
.lux-mobile-accordion {
    margin-top: 20px;
    margin-bottom: 28px;
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    overflow: hidden;
    font-family: 'Jost', sans-serif;
    box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.06);
}

.lux-acc-item {
    border-bottom: 1px solid #E5E7EB;
}

.lux-acc-item:last-child {
    border-bottom: none;
}

/* Accordion Header Button */
.lux-acc-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 18px;
    background: #FAFAFA;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s ease;
    gap: 12px;
    -webkit-tap-highlight-color: transparent;
}

.lux-acc-header:focus {
    outline: none;
}

.lux-acc-header:active,
.lux-acc-header:hover {
    background: #F3F4F6;
}

/* Active (expanded) state — gold left border */
.lux-acc-item.is-open > .lux-acc-header {
    background: #FFFFFF;
    border-left: 3.5px solid #C8A165;
}

.lux-acc-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14.5px;
    font-weight: 700;
    color: #0F172A;
    flex: 1;
}

.lux-acc-title i {
    font-size: 14px;
    width: 18px;
    text-align: center;
    color: #64748B;
    flex-shrink: 0;
}

.lux-acc-item.is-open > .lux-acc-header .lux-acc-title i {
    color: #C8A165;
}

.lux-acc-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #F1F5F9;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 4px;
    transition: all 0.2s ease;
}

.lux-acc-item.is-open .lux-acc-badge {
    background: #FEF3C7;
    color: #B45309;
}

/* Chevron: rotates 180° when open */
.lux-acc-chevron {
    font-size: 12px;
    color: #94A3B8;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
    flex-shrink: 0;
}

.lux-acc-item.is-open > .lux-acc-header .lux-acc-chevron {
    transform: rotate(180deg);
    color: #C8A165;
}

/* Accordion Body — smooth height animation via max-height */
.lux-acc-body {
    max-height: 9999px;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease;
    opacity: 1;
    background: #FFFFFF;
}

.lux-acc-body--collapsed {
    max-height: 0 !important;
    opacity: 0;
}

.lux-acc-inner {
    padding: 20px 16px;
}
