/**
 * ==========================================================================
 * KHELLO PRODUCT SHOW PAGE STYLES (Modern Redesign)
 * ==========================================================================
 */

.khello-show-section {
    background-color: #FAFAFA;
    min-height: 80vh;
}

/* --------------------------------------------------------------------------
 * Main Gallery
 * -------------------------------------------------------------------------- */
.khello-gallery-wrap {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    width: 100%;
}

@media (min-width: 992px) {
    .khello-gallery-wrap {
        position: sticky;
        top: 96px;
        align-self: flex-start;
        z-index: 10;
    }
}

/* Vertical Thumbnails Column */
.khello-gallery-thumbs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 68px;
    max-height: 460px;
    overflow-y: auto;
    flex-shrink: 0;
}

.khello-gallery-thumbs::-webkit-scrollbar {
    width: 4px;
}

.khello-gallery-thumbs::-webkit-scrollbar-thumb {
    background: #D1D5DB;
    border-radius: 4px;
}

.khello-gallery-thumb-btn {
    width: 68px;
    height: 68px;
    border-radius: 12px;
    border: 1.5px solid #E5E7EB;
    background: #FFFFFF;
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.khello-gallery-thumb-btn:hover {
    border-color: #93C5FD;
}

.khello-gallery-thumb-btn.active {
    border-color: #2563EB;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.khello-gallery-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Main Display Canvas */
.khello-gallery-main {
    flex: 1;
    min-width: 0;
    width: 100%;
    position: relative;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 18px;
    aspect-ratio: 1 / 1;
    max-height: 460px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 10px;
    user-select: none;
}

.khello-gallery-main-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

/* Floating Wishlist Button */
.khello-show-wishlist-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    z-index: 30;
    transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
    padding: 0;
}

.khello-show-wishlist-btn:hover {
    transform: scale(1.08);
    background-color: #FEF2F2;
    border-color: #FCA5A5;
}

/* Gallery Navigation Arrows */
.khello-gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1px solid #D1D5DB;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 25 !important;
    color: #374151;
    transition: all 0.15s ease;
    padding: 0;
    opacity: 1 !important;
    visibility: visible !important;
}

.khello-gallery-nav-btn:hover {
    background-color: #F3F4F6;
    color: #111827;
    border-color: #9CA3AF;
    transform: translateY(-50%) scale(1.06);
}

.khello-gallery-nav-btn.prev {
    left: 14px;
}

.khello-gallery-nav-btn.next {
    right: 14px;
}

/* --------------------------------------------------------------------------
 * Product Details (Right Column)
 * -------------------------------------------------------------------------- */
.khello-show-details {
    display: flex;
    flex-direction: column;
}

/* Header Badges */
.khello-show-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.khello-badge-condition {
    font-family: 'Poppins', sans-serif;
    font-size: 11.5px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
}

.khello-badge-condition.likenew {
    background-color: #FEF3C7;
    color: #B45309;
}

.khello-badge-condition.new {
    background-color: #E0F2FE;
    color: #0284C7;
}

.khello-badge-condition.good {
    background-color: #CCFBF1;
    color: #0F766E;
}

.khello-badge-condition.fair {
    background-color: #FEF3C7;
    color: #B45309;
}

.khello-badge-condition.used {
    background-color: #F3F4F6;
    color: #374151;
}

.khello-badge-verified {
    font-family: 'Poppins', sans-serif;
    font-size: 11.5px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    background-color: #CCFBF1;
    color: #0F766E;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Product Title */
.khello-show-title {
    font-family: 'Poppins', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #111827;
    line-height: 1.25;
    margin-top: 4px;
    margin-bottom: 12px;
}

/* Pricing Block */
.khello-show-price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 2px;
}

.khello-show-price {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.02em;
}

.khello-show-mrp {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #9CA3AF;
    text-decoration: line-through;
}

.khello-show-discount {
    font-family: 'Poppins', sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    color: #059669;
}

.khello-show-tax-note {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    color: #6B7280;
    margin-bottom: 16px;
}

/* Highlights List */
.khello-show-highlights {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.khello-show-highlight-item {
    font-family: 'Poppins', sans-serif;
    font-size: 13.5px;
    color: #4B5563;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.45;
}

.khello-show-highlight-item::before {
    content: '•';
    color: #111827;
    font-weight: bold;
    font-size: 16px;
    line-height: 1;
}

/* Specs Key-Value Table */
.khello-show-specs-grid {
    display: grid;
    grid-template-columns: 130px 15px 1fr;
    row-gap: 10px;
    align-items: center;
    font-family: 'Poppins', sans-serif;
    font-size: 13.5px;
    margin-bottom: 24px;
    padding-top: 6px;
}

.khello-spec-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4B5563;
    font-weight: 500;
}

.khello-spec-label svg {
    color: #6B7280;
    flex-shrink: 0;
}

.khello-spec-colon {
    color: #9CA3AF;
    text-align: center;
}

.khello-spec-val {
    color: #111827;
    font-weight: 600;
}

/* Variations Selector */
.khello-variant-selector {
    margin-bottom: 20px;
}

.khello-variant-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.khello-variant-pill-btn {
    padding: 6px 14px;
    border-radius: 8px;
    border: 1.5px solid #E5E7EB;
    background: #FFFFFF;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.15s ease;
}

.khello-variant-pill-btn:hover {
    border-color: #93C5FD;
}

.khello-variant-pill-btn.active {
    border-color: #2563EB;
    background-color: #EFF6FF;
    color: #1D4ED8;
    font-weight: 600;
}

/* Action Buttons */
.khello-show-actions-row {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
}

.khello-btn-buynow {
    flex: 1;
    background-color: #1D4ED8;
    color: #FFFFFF;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    padding: 13px 24px;
    border-radius: 12px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.2);
    transition: background-color 0.15s ease, transform 0.15s ease;
    text-decoration: none;
}

.khello-btn-buynow:hover {
    background-color: #1E40AF;
    color: #FFFFFF;
    transform: translateY(-1px);
}

.khello-btn-buynow:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.khello-btn-chat {
    flex: 1;
    background-color: #FFFFFF;
    color: #1D4ED8;
    border: 1.5px solid #2563EB;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    padding: 13px 24px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
}

.khello-btn-chat:hover {
    background-color: #EFF6FF;
    color: #1E40AF;
    border-color: #1D4ED8;
}

/* Trust Badges */
.khello-show-trust-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 6px 0;
    font-family: 'Poppins', sans-serif;
    font-size: 12.5px;
    font-weight: 500;
    color: #6B7280;
}

.khello-trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.khello-trust-item svg {
    color: #9CA3AF;
}

/* --------------------------------------------------------------------------
 * Middle Cards (Product Description & Seller Info)
 * -------------------------------------------------------------------------- */
.khello-info-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 24px;
    height: 100%;
}

.khello-info-card-title {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 14px;
}

.khello-info-card-body {
    font-family: 'Poppins', sans-serif;
    font-size: 13.5px;
    color: #4B5563;
    line-height: 1.6;
}

/* Seller Profile Box */
.khello-seller-profile-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.khello-seller-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.khello-seller-avatar-fallback {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #E2E8F0;
    color: #475569;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.khello-seller-name {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 2px;
    text-decoration: none;
    display: block;
}

.khello-seller-member-since {
    font-size: 12px;
    color: #6B7280;
    margin-bottom: 2px;
}

.khello-seller-rating {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 4px;
}

.khello-seller-rating .star-icon {
    color: #F59E0B;
}

.khello-btn-view-all-items {
    width: 100%;
    background-color: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    color: #1D4ED8;
    font-family: 'Poppins', sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.15s ease;
    margin-bottom: 12px;
}

.khello-btn-view-all-items:hover {
    background-color: #F9FAFB;
    border-color: #CBD5E1;
    color: #1E40AF;
}

.khello-seller-reply-time {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    color: #6B7280;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* --------------------------------------------------------------------------
 * "You May Also Like" Section
 * -------------------------------------------------------------------------- */
.khello-related-section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
}

.khello-related-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

/* --------------------------------------------------------------------------
 * Responsive Breakpoints
 * -------------------------------------------------------------------------- */
@media (max-width: 1199.98px) {
    .khello-related-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 991.98px) {
    .khello-gallery-wrap {
        flex-direction: column-reverse;
        gap: 10px;
    }

    .khello-gallery-thumbs {
        flex-direction: row;
        width: 100%;
        max-height: none;
        overflow-x: auto;
        padding-bottom: 4px;
        gap: 8px;
    }

    .khello-gallery-thumb-btn {
        width: 58px;
        height: 58px;
        border-radius: 10px;
        flex-shrink: 0;
        padding: 2px;
    }

    .khello-gallery-main {
        width: 100%;
        aspect-ratio: 1 / 1;
        max-height: 420px;
        height: auto;
        padding: 8px;
        border-radius: 16px;
    }

    .khello-related-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

@media (max-width: 767.98px) {
    .khello-show-title {
        font-size: 22px;
    }

    .khello-gallery-main {
        max-height: 380px;
        padding: 8px;
        border-radius: 14px;
    }

    .khello-gallery-thumb-btn {
        width: 52px;
        height: 52px;
    }

    .khello-show-actions-row {
        flex-direction: column;
    }

    .khello-related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .khello-gallery-main {
        max-height: 340px;
        padding: 6px;
        border-radius: 12px;
    }

    .khello-gallery-thumb-btn {
        width: 48px;
        height: 48px;
    }

    .khello-show-specs-grid {
        grid-template-columns: 110px 10px 1fr;
        font-size: 12.5px;
    }
}

