/* ==========================================
   Senura Enterprises - Product Detail Page Styles
   Matching home.css design aesthetic and color palette
   ========================================== */

.product-detail-wrapper {
    background-color: var(--home-bg, #fafbfe);
    padding: 24px 0 60px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Header & Breadcrumb Top Navigation */
.detail-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.detail-top-bar .breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--home-text-muted, #6e7284);
}

.detail-top-bar .breadcrumb-nav a {
    color: var(--home-text-muted, #6e7284);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.detail-top-bar .breadcrumb-nav a:hover {
    color: var(--home-primary, #ffbb00);
}

.detail-top-bar .breadcrumb-separator {
    font-size: 10px;
    color: #c0c4d8;
}

.detail-top-bar .active-page {
    color: var(--home-text-dark, #231648);
    font-weight: 700;
}

.product-nav-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-ctrl-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid var(--home-border-sidebar, #eaedf2);
    background-color: #ffffff;
    color: var(--home-text-dark, #231648);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-ctrl-btn:hover {
    background-color: var(--home-text-dark, #231648);
    color: #ffffff;
    border-color: var(--home-text-dark, #231648);
}

.nav-ctrl-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* Main Product Detail Grid (2-Column) */
.product-main-grid {
    display: grid;
    grid-template-columns: 480px 1fr;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 60px;
}

/* Left Gallery Column */
.product-gallery-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.main-image-display-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #ffffff;
    border: 1px solid var(--home-border-sidebar, #eaedf2);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(35, 22, 72, 0.03);
    position: relative;
    overflow: hidden;
}

.main-image-display-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.main-image-display-box:hover img {
    transform: scale(1.03);
}

.gallery-thumbnails-strip {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.thumb-item {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    background-color: #ffffff;
    border: 2px solid var(--home-border-sidebar, #eaedf2);
    padding: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.thumb-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.thumb-item:hover,
.thumb-item.active {
    border-color: var(--home-text-dark, #231648);
    box-shadow: 0 2px 8px rgba(35, 22, 72, 0.1);
}

/* Right Info Column */
.product-info-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detail-category-tag {
    font-size: 13px;
    font-weight: 700;
    color: var(--home-text-muted, #6e7284);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-product-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--home-text-dark, #231648);
    line-height: 1.3;
    margin: 0;
}

/* Rating & Meta Bar */
.detail-rating-meta-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 13px;
}

.detail-stars {
    display: flex;
    align-items: center;
    gap: 3px;
    color: var(--home-primary, #ffbb00);
}

.detail-rating-count {
    color: var(--home-text-muted, #6e7284);
    font-weight: 600;
}

.meta-divider {
    color: #d2d6e4;
}

.sold-activity-tag {
    color: #e53935;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sku-tag {
    color: var(--home-text-muted, #6e7284);
    font-weight: 600;
}

/* Detail Price Row */
.detail-price-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

.detail-price-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--home-text-muted, #6e7284);
}

.detail-current-price {
    font-size: 24px;
    font-weight: 800;
    color: var(--home-text-dark, #231648);
}

.detail-old-price {
    font-size: 15px;
    color: #969ab0;
    text-decoration: line-through;
    font-weight: 600;
}

.detail-discount-badge {
    background-color: #e62e04;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
}

/* Detail Short Description */
.detail-short-desc {
    font-size: 14px;
    color: var(--home-text-desc, #5d637e);
    line-height: 1.6;
    margin: 0;
}

/* Live Viewing Callout */
.live-viewing-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--home-text-dark, #231648);
    font-weight: 600;
    background-color: #f2f5fb;
    padding: 8px 14px;
    border-radius: 6px;
    width: fit-content;
}

.live-viewing-box i {
    color: var(--home-text-dark, #231648);
}

/* Vehicle Fitment Card */
.vehicle-fitment-box {
    background-color: #f1f4fa;
    border: 1px solid #e2e7f3;
    border-radius: 8px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.fitment-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--home-text-dark, #231648);
}

.fitment-btn {
    background-color: transparent;
    border: none;
    color: var(--home-text-dark, #231648);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.fitment-btn:hover {
    color: var(--home-primary, #ffbb00);
}

/* Quantity & Action Buttons */
.cart-action-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.quantity-picker {
    display: flex;
    align-items: center;
    border: 1px solid var(--home-border-sidebar, #eaedf2);
    border-radius: 8px;
    background-color: #ffffff;
    height: 46px;
    overflow: hidden;
}

.qty-btn {
    width: 36px;
    height: 100%;
    border: none;
    background: transparent;
    color: var(--home-text-dark, #231648);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.qty-btn:hover {
    background-color: #f2f5fb;
}

.qty-input {
    width: 44px;
    height: 100%;
    border: none;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--home-text-dark, #231648);
    outline: none;
    font-family: inherit;
}

.add-to-cart-big-btn {
    flex: 1;
    min-width: 220px;
    height: 46px;
    background-color: var(--home-text-dark, #231648);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(35, 22, 72, 0.15);
}

.add-to-cart-big-btn:hover {
    background-color: var(--home-primary, #ffbb00);
    color: var(--home-text-dark, #231648);
    transform: translateY(-2px);
}

/* Secondary Actions (Wishlist / Compare / Share) */
.secondary-actions-row {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 13px;
    color: var(--home-text-dark, #231648);
    font-weight: 600;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--home-border-sidebar, #eaedf2);
}

.sec-action-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--home-text-dark, #231648);
    text-decoration: none;
    transition: color 0.2s ease;
    cursor: pointer;
}

.sec-action-link:hover {
    color: var(--home-primary, #ffbb00);
}

/* Shipping & Returns List */
.shipping-info-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    color: var(--home-text-desc, #5d637e);
}

.shipping-info-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
}

.shipping-info-item i {
    color: var(--home-text-dark, #231648);
    margin-top: 2px;
}

/* Support Callout Box */
.detail-support-box {
    background-color: #f1f4fa;
    border: 1px solid #e2e7f3;
    border-radius: 10px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.support-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.support-icon-box {
    width: 44px;
    height: 44px;
    background-color: var(--home-text-dark, #231648);
    color: #ffffff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.support-info {
    display: flex;
    flex-direction: column;
}

.support-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--home-text-muted, #6e7284);
    text-transform: uppercase;
}

.support-phone {
    font-size: 16px;
    font-weight: 800;
    color: var(--home-text-dark, #231648);
}

.support-chat-btn {
    background-color: #ffffff;
    border: 1px solid var(--home-border-sidebar, #eaedf2);
    color: var(--home-text-dark, #231648);
    font-size: 12px;
    font-weight: 800;
    padding: 9px 18px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.support-chat-btn:hover {
    background-color: var(--home-text-dark, #231648);
    color: #ffffff;
}

/* Product Meta Table / List */
.product-meta-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    padding-top: 8px;
}

.meta-row {
    display: flex;
    align-items: center;
}

.meta-row .label {
    width: 100px;
    color: var(--home-text-muted, #6e7284);
    font-weight: 600;
}

.meta-row .value {
    color: var(--home-text-dark, #231648);
    font-weight: 700;
}

.social-share-list {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.social-share-list .social-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #f1f4fa;
    color: var(--home-text-dark, #231648);
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid var(--home-border-sidebar, #eaedf2);
    outline: none;
    padding: 0;
}

.social-share-list .social-icon-btn:hover {
    background-color: var(--home-primary, #ffbb00);
    color: var(--home-text-dark, #231648);
    border-color: var(--home-primary, #ffbb00);
    transform: translateY(-2px);
}


/* ==========================================
   TABS SECTION (Description, Product Info, Reviews)
   ========================================== */

.product-tabs-section {
    background-color: #ffffff;
    border: 1px solid var(--home-border-sidebar, #eaedf2);
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 60px;
    box-shadow: 0 4px 18px rgba(35, 22, 72, 0.02);
}

.tabs-header-bar {
    display: flex;
    align-items: center;
    gap: 32px;
    border-bottom: 2px solid var(--home-border-sidebar, #eaedf2);
    margin-bottom: 28px;
    /* overflow-x: auto; */
}

.tab-nav-btn {
    background: none;
    border: none;
    padding: 12px 4px;
    font-size: 16px;
    font-weight: 700;
    color: var(--home-text-muted, #6e7284);
    cursor: pointer;
    position: relative;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.tab-nav-btn:hover,
.tab-nav-btn.active {
    color: var(--home-text-dark, #231648);
}

.tab-nav-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--home-text-dark, #231648);
    border-radius: 3px 3px 0 0;
}

.tab-content-panel {
    display: none;
}

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

/* Description Tab Content */
.description-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.desc-block-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--home-text-dark, #231648);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.desc-text {
    font-size: 14px;
    color: var(--home-text-desc, #5d637e);
    line-height: 1.7;
    margin-bottom: 12px;
}

/* Product Info Table Tab */
.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid var(--home-border-sidebar, #eaedf2);
}

.specs-table th {
    text-align: left;
    padding: 12px 16px;
    width: 200px;
    font-size: 13px;
    font-weight: 700;
    color: var(--home-text-muted, #6e7284);
    background-color: #fafbfe;
}

.specs-table td {
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--home-text-dark, #231648);
}

/* Customer Reviews Tab */
.reviews-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.reviews-summary-card {
    display: flex;
    align-items: center;
    gap: 32px;
    background-color: #fafbfe;
    border: 1px solid var(--home-border-sidebar, #eaedf2);
    border-radius: 10px;
    padding: 24px;
}

.rating-score-box {
    text-align: center;
}

.big-rating-number {
    font-size: 44px;
    font-weight: 800;
    color: var(--home-text-dark, #231648);
    line-height: 1;
}

.rating-score-stars {
    color: var(--home-primary, #ffbb00);
    margin: 6px 0;
}

.total-reviews-count {
    font-size: 12px;
    color: var(--home-text-muted, #6e7284);
    font-weight: 600;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.review-card {
    border-bottom: 1px solid var(--home-border-sidebar, #eaedf2);
    padding-bottom: 16px;
}

.review-author-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.reviewer-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--home-text-dark, #231648);
}

.review-date {
    font-size: 12px;
    color: var(--home-text-muted, #6e7284);
}

.review-comment {
    font-size: 13px;
    color: var(--home-text-desc, #5d637e);
    line-height: 1.6;
}


/* ==========================================
   RELATED PRODUCTS SECTION
   ========================================== */

.related-products-section {
    margin-bottom: 40px;
}

.section-tabs-bar {
    display: flex;
    align-items: center;
    gap: 28px;
    border-bottom: 2px solid var(--home-border-sidebar, #eaedf2);
    margin-bottom: 28px;
}

.rel-tab-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--home-text-dark, #231648);
    padding-bottom: 10px;
    position: relative;
    cursor: pointer;
}

.rel-tab-title.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--home-text-dark, #231648);
}

.rel-tab-title.inactive {
    color: #969ab0;
}


/* ==========================================
   RESPONSIVE BREAKPOINTS (TABLET & MOBILE)
   ========================================== */

@media (max-width: 1200px) {
    .product-main-grid {
        grid-template-columns: 400px 1fr;
        gap: 32px;
    }

    .products-grid.cols-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .product-detail-wrapper {
        padding: 16px 0 40px;
    }

    .product-main-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .main-image-display-box {
        max-width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        margin: 0 auto;
        padding: 16px;
    }

    .gallery-thumbnails-strip {
        justify-content: flex-start;
        padding-bottom: 8px;
    }

    .description-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .products-grid.cols-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .detail-top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .product-nav-controls {
        align-self: flex-end;
    }

    .product-tabs-section {
        padding: 20px 16px;
        border-radius: 10px;
    }

    .tabs-header-bar {
        gap: 16px;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
    }

    .tab-nav-btn {
        font-size: 14px;
        padding: 8px 0;
    }

    .specs-table th {
        width: 120px;
        padding: 10px 12px;
        font-size: 12px;
    }

    .specs-table td {
        padding: 10px 12px;
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .detail-product-title {
        font-size: 20px;
        line-height: 1.35;
    }

    .detail-current-price {
        font-size: 20px;
    }

    .detail-rating-meta-row {
        gap: 10px;
        font-size: 12px;
    }

    .cart-action-row {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        margin-top: 12px;
    }

    .add-to-cart-big-btn {
        width: 100%;
        font-size: 15px;
        font-weight: 800;
        height: 56px;
        padding: 14px 20px;
        border-radius: 10px;
        letter-spacing: 0.5px;
    }

    .detail-support-box {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 14px 16px;
    }

    .support-chat-btn {
        width: 100%;
        justify-content: center;
    }

    .meta-row {
        flex-wrap: wrap;
        gap: 4px;
    }

    .meta-row .label {
        width: 80px;
        font-size: 12px;
    }

    .meta-row .value {
        font-size: 12px;
    }

    .products-grid.cols-4 {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .rel-tab-title {
        font-size: 18px;
    }

    .thumb-item {
        width: 64px;
        height: 64px;
    }
}
