/* 
=====================
    Product page Styling:
=====================
 */

.products-page-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.section-main-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 32px;
    color: var(--primary-blue, #0A192F);
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.section-main-title::after {
    content: '';
    position: absolute;
    width: 70px;
    height: 3px;
    background-color: var(--primary-gold, #C49B3B);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* B2B Product Card */
.b2b-product-card {
    background: #f9f9f9;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.4s ease;
    height: 100%;
    /* For uniform grid heights */
    display: flex;
    flex-direction: column;
}

.b2b-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-gold, #C49B3B);
    background: #ffffff;
}

/* Image Wrapper */
.prod-img-box {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
    background-color: #fff;
}

.prod-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.b2b-product-card:hover .prod-img-box img {
    transform: scale(1.1);
    /* Smooth image zoom */
}

/* Product Content */
.prod-content {
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    /* Pushes button to the bottom */
}

.prod-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: var(--primary-blue, #0A192F);
    margin-bottom: 12px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.b2b-product-card:hover .prod-title {
    color: var(--primary-gold, #C49B3B);
}

.prod-specs {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.prod-specs li {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #555555;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.prod-specs li i {
    color: var(--primary-gold, #C49B3B);
    margin-right: 10px;
    font-size: 14px;
}

.btn-details-page {
    margin-top: auto;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #ffffff;
    background-color: var(--primary-blue, #0A192F);
    padding: 12px 20px;
    border-radius: 4px;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    border: 2px solid var(--primary-blue, #0A192F);
}

.btn-details-page:hover {
    background-color: var(--primary-gold, #C49B3B);
    border-color: var(--primary-gold, #C49B3B);
    color: #ffffff;
}

@media (max-width: 768px) {
    .prod-img-box {
        height: 200px;
    }

    .prod-title {
        font-size: 18px;
    }
}


/* 
=====================
    Product Detail Page Styling:
=====================
 */

.product-details-section {
    padding: 90px 0;
    background-color: #ffffff;
}

/* Left Side: Product Image */
.product-main-img-box {
    background: #f9f9f9;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.product-main-img-box img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: transform 0.5s ease;
}

.product-main-img-box:hover img {
    transform: scale(1.05);
    /* Slight zoom on hover */
}

/* Right Side: Product Info */
.product-info-wrapper {
    padding-left: 20px;
}

.product-detail-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 36px;
    color: var(--primary-blue, #0A192F);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.product-short-desc {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: #555555;
    line-height: 1.7;
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eaeaea;
}

/* Specifications Grid */
.spec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 35px;
}

.spec-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.spec-icon {
    width: 45px;
    height: 45px;
    background-color: rgba(196, 155, 59, 0.1);
    color: var(--primary-gold, #C49B3B);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.spec-text h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: var(--primary-blue, #0A192F);
    margin: 0 0 3px 0;
    text-transform: uppercase;
}

.spec-text p {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #666666;
    margin: 0;
}

/* Action Buttons */
.product-action-btns {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-action-primary {
    background-color: var(--primary-gold, #C49B3B);
    color: #ffffff !important;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 15px;
    padding: 14px 35px;
    border-radius: 6px;
    text-transform: uppercase;
    border: 2px solid var(--primary-gold, #C49B3B);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-action-primary:hover {
    background-color: var(--primary-blue, #0A192F);
    border-color: var(--primary-blue, #0A192F);
    transform: translateY(-2px);
}

.btn-action-outline {
    background-color: transparent;
    color: var(--primary-blue, #0A192F) !important;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 15px;
    padding: 14px 35px;
    border-radius: 6px;
    text-transform: uppercase;
    border: 2px solid var(--primary-blue, #0A192F);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-action-outline:hover {
    background-color: var(--primary-blue, #0A192F);
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* Full Description Section (Bottom) */
.product-full-details {
    margin-top: 80px;
}

.detail-heading {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: var(--primary-blue, #0A192F);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-gold, #C49B3B);
    display: inline-block;
}

.detail-content-box {
    background: #fdfdfd;
    border: 1px solid #eaeaea;
    padding: 40px;
    border-radius: 12px;
}

.detail-content-box p {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    color: #444444;
    line-height: 1.8;
    margin-bottom: 15px;
}

.related-products-section {
    border-top: 1px solid #eaeaea;
    padding-top: 60px;
    padding-bottom: 40px;

}

.related-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 26px;
    color: var(--primary-blue, #0A192F);
    margin-bottom: 30px;
    position: relative;
}

.related-title::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--primary-gold, #C49B3B);
    bottom: -10px;
    left: 0;
}

.related-slider-container {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 30px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.related-slider-container::-webkit-scrollbar {
    display: none;
}

.related-slide-item {
    flex: 0 0 calc(33.333% - 17px);
    scroll-snap-align: start;
}

@media (max-width: 991px) {
    .related-slide-item {
        flex: 0 0 calc(50% - 13px);
    }
}

@media (max-width: 576px) {
    .related-slide-item {
        flex: 0 0 85%;
    }
}

@media (max-width: 991px) {
    .product-info-wrapper {
        padding-left: 0;
        margin-top: 40px;
    }

    .product-detail-title {
        font-size: 28px;
    }

    .spec-grid {
        grid-template-columns: 1fr;
        /* Stack specs on mobile */
    }

    .product-action-btns {
        flex-direction: column;
    }

    .btn-action-primary,
    .btn-action-outline {
        width: 100%;
        justify-content: center;
    }

    .detail-content-box {
        padding: 25px;
    }

}