/*==================================================
    WEEALL PRODUCT DETAILS PAGE
==================================================*/

.product-details-page {
    width: min(94%, 1240px);
    margin: 160px auto 60px auto;
    box-sizing: border-box;
}

/* Optional Back Navigation Bar */
.page-navigation-bar {
    width: min(94%, 1240px);
    margin: 150px auto 10px auto;
    display: flex;
    align-items: center;
}

.page-navigation-bar + .product-details-page {
    margin-top: 10px !important;
}

.back-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.back-nav-btn:hover {
    background-color: #f9fafb;
    border-color: #D71920;
    color: #D71920;
}

/*==================================================
    MAIN PRODUCT CARD CONTAINER (TWO-COLUMN)
==================================================*/

.product-details-container {
    display: grid;
    grid-template-columns: 460px 1fr;
    gap: 40px;
    align-items: start;
    background: #ffffff;
    padding: 35px;
    border-radius: 16px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    margin-bottom: 35px;
}

/*==================================================
    PRODUCT GALLERY & HOVER ZOOM
==================================================*/

.product-gallery {
    display: flex;
    flex-direction: row-reverse;
    gap: 16px;
    width: 100%;
}

.main-product-image {
    flex: 1;
    height: 430px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fafafa;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    overflow: hidden !important;
    position: relative !important;
    cursor: crosshair;
    padding: 16px;
    box-sizing: border-box;
}

.main-product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    pointer-events: none !important;
    user-select: none;
    transform-origin: center center;
    transition: transform 0.1s ease-out;
    display: block;
}

.main-product-image video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.thumbnail-list {
    width: 76px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 430px;
    overflow-y: auto;
    padding-right: 2px;
}

.thumbnail-list::-webkit-scrollbar {
    width: 4px;
}

.thumbnail-list::-webkit-scrollbar-thumb {
    background: #e0e0e0;
    border-radius: 4px;
}

.thumbnail-item,
.thumbnail-list img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 10px;
    border: 2px solid #e5e7eb;
    background: #ffffff;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.thumbnail-item.active,
.thumbnail-item:hover,
.thumbnail-list img:hover {
    border-color: #D71920;
}

/* Video Thumbnail Support */
.video-thumbnail {
    position: relative;
    width: 70px;
    height: 70px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    background: #f1f1f1;
    border: 2px solid #e5e7eb;
}

.video-thumbnail-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.video-play-icon i {
    font-size: 11px;
    margin-left: 2px;
}

/*==================================================
    PRODUCT INFORMATION
==================================================*/

.product-information {
    display: flex;
    flex-direction: column;
}

.product-information h1 {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 15px;
    color: #111827;
}

.price-box {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.offer-price {
    font-size: 28px;
    font-weight: 800;
    color: #D71920;
}

.mrp {
    font-size: 17px;
    color: #9ca3af;
    text-decoration: line-through;
}

.discount {
    background: #EAF8ED;
    color: #16803C;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
}

.product-description {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 22px;
}

/*==================================================
    QUANTITY BOX
==================================================*/

.quantity-box {
    display: inline-flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    margin-bottom: 22px;
    width: fit-content;
    overflow: hidden;
}

.quantity-box button {
    width: 40px;
    height: 40px;
    border: none;
    background: #f3f4f6;
    font-size: 17px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: background 0.2s ease;
}

.quantity-box button:hover {
    background: #e5e7eb;
}

#quantity {
    min-width: 44px;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #111827;
}

/*==================================================
    ACTION BUTTONS
==================================================*/

.add-cart-details {
    width: 100%;
    height: 48px;
    background: #ffffff;
    border: 2px solid #D71920;
    color: #D71920;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

.add-cart-details:hover {
    background: #D71920;
    color: #ffffff;
}

.buy-now-btn {
    width: 100%;
    height: 48px;
    background: #D71920;
    border: none;
    color: #ffffff;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.buy-now-btn:hover {
    background: #b8141a;
}

/*==================================================
    DESCRIPTION SECTION
==================================================*/

.description-section {
    background: #ffffff;
    padding: 30px 35px;
    border-radius: 16px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    margin-bottom: 35px;
}

.description-section h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #111827;
}

.description-section p {
    font-size: 14px;
    line-height: 1.7;
    color: #4b5563;
}

/*==================================================
    CUSTOMER REVIEWS (RESPONSIVE GRID)
==================================================*/

.reviews-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e5e7eb;
}

.reviews-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 40px;
    align-items: start;
}

.rating-breakdown-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
}

/*==================================================
    SUGGESTED PRODUCTS (HORIZONTAL SCROLL)
==================================================*/

.suggested-section {
    background: #ffffff;
    padding: 30px 35px;
    border-radius: 16px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.suggested-section h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #111827;
}

.suggested-products {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding-bottom: 14px;
    width: 100%;
    box-sizing: border-box;
}

.suggested-products::-webkit-scrollbar {
    height: 6px;
}

.suggested-products::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.suggested-products::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 4px;
}

.suggested-products::-webkit-scrollbar-thumb:hover {
    background: #D71920;
}

.suggested-products .suggested-card,
.suggested-products .product-card {
    min-width: 215px !important;
    max-width: 215px !important;
    width: 215px !important;
    flex: 0 0 auto !important;
    scroll-snap-align: start;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 14px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.suggested-products .suggested-card:hover,
.suggested-products .product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.suggested-products img {
    width: 100%;
    height: 140px;
    object-fit: contain;
    margin-bottom: 10px;
}

.suggested-card h3 {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
    line-height: 1.35;
    height: 38px;
    overflow: hidden;
}

.suggested-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.suggested-price strong {
    font-size: 16px;
    color: #D71920;
}

.suggested-price del {
    color: #9ca3af;
    font-size: 12px;
}

.suggested-card button {
    width: 100%;
    padding: 8px;
    border: none;
    background: #111827;
    color: #ffffff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.suggested-card button:hover {
    background: #D71920;
}

/*==================================================
    MOBILE STICKY ACTION BAR
==================================================*/

.mobile-cta-sticky-bar {
    display: none;
}

/*==================================================
    FLUID RESPONSIVENESS (LARGE ANDROID & IPHONES)
==================================================*/

@media (max-width: 920px) {
    .product-details-page {
        margin-top: 130px;
        margin-bottom: 40px;
        width: 94%;
        padding-bottom: 80px;
    }

    .page-navigation-bar {
        margin-top: 120px;
        margin-bottom: 8px;
        width: 94%;
    }

    .product-details-container {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 20px;
    }

    .product-gallery {
        flex-direction: column-reverse;
        gap: 12px;
        width: 100%;
    }

    .thumbnail-list {
        flex-direction: row;
        width: 100%;
        max-height: none;
        overflow-x: auto;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
    }

    .thumbnail-item,
    .thumbnail-list img,
    .video-thumbnail {
        width: 60px;
        height: 60px;
        flex-shrink: 0;
    }

    .main-product-image {
        height: auto;
        min-height: 280px;
        max-height: 380px;
        width: 100%;
        cursor: default;
    }

    .description-section,
    .suggested-section {
        padding: 20px;
    }

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

/* Covers all Android Phablets (6.5"–6.8") and iPhones */
@media (max-width: 768px) {
    .product-information h1 {
        font-size: 20px;
        line-height: 1.35;
        word-break: break-word;
    }

    .price-box {
        gap: 8px;
        margin-bottom: 12px;
    }

    .offer-price {
        font-size: 24px;
    }

    .mrp {
        font-size: 15px;
    }

    .pincode-estimator-widget {
        box-sizing: border-box;
        width: 100%;
    }

    /* Hide desktop inline buttons across all mobile viewports */
    .product-information .add-cart-details,
    .product-information .buy-now-btn {
        display: none !important;
    }

    /* Full-width responsive bottom CTA */
    .mobile-cta-sticky-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 62px;
        background: #ffffff;
        box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.1);
        display: flex !important;
        align-items: center;
        padding: 8px 14px;
        gap: 10px;
        z-index: 1000;
        box-sizing: border-box;
    }

    .mobile-cta-sticky-bar button {
        flex: 1;
        height: 44px;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        border: none;
        cursor: pointer;
    }

    .mobile-cta-sticky-bar .mobile-add-cart {
        background: #f8fafc;
        color: #1e293b;
        border: 1.5px solid #cbd5e1;
    }

    .mobile-cta-sticky-bar .mobile-buy-now {
        background: #D71920;
        color: #ffffff;
    }
}