/* SBA Smart India - Industrial B2B Product Page Styles */
:root {
    --primary-blue: #004aad;
    /* Industrial Blue */
    --primary-dark: #003380;
    --accent-yellow: #ffc107;
    /* Warning/Action Yellow */
    --accent-orange: #fd7e14;
    --text-main: #333333;
    --text-light: #666666;
    --bg-light: #F6F8FB;
    /* Soft Industrial Background */
    --white: #ffffff;
    --border-color: #e0e0e0;
    --success-green: #28a745;
    --danger-red: #dc3545;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.08);
    --radius-card: 12px;
    --radius-btn: 6px;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
}

.product-details-container {
    width: 100%;
    box-sizing: border-box;
    padding: 40px 20px;
    max-width: 1300px;
    margin: 0 auto;
}

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: 25px;
    font-size: 14px;
    color: var(--text-light);
}

.breadcrumbs a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs a:hover {
    color: var(--primary-blue);
}

/* Product Hero Layout (Split) */
.product-hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

/* Left: Image Section */
.product-gallery-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column-reverse;
    /* Thumbs at bottom for mobile, sidebar for desktop handled by grid */
    gap: 20px;
    height: fit-content;
}

@media (min-width: 768px) {
    .product-gallery-card {
        flex-direction: row;
        align-items: flex-start;
    }
}

.gallery-thumbs {
    display: flex;
    flex-direction: column;
    /* Vertical on Desktop */
    gap: 10px;
    width: 80px;
    max-height: 500px;
    overflow-y: auto;
    scrollbar-width: thin;
}

.gallery-thumb {
    width: 80px;
    height: 80px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    padding: 5px;
    transition: all 0.2s;
}

.gallery-thumb:hover,
.gallery-thumb.active {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 2px rgba(0, 74, 173, 0.1);
}

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

.gallery-main {
    flex-grow: 1;
    height: 500px;
    /* Fixed height container */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.gallery-main img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.gallery-main:hover img {
    transform: scale(1.1);
    /* Zoom effect */
}


/* Right: Product Info & CTA */
.product-info-col {
    display: flex;
    flex-direction: column;
}

.brand-badge {
    display: inline-block;
    background-color: #eef4ff;
    color: var(--primary-blue);
    font-size: 13px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.product-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-blue);
    /* Brand Dark Blue */
    line-height: 1.3;
    margin-bottom: 10px;
}

.rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 25px;
}

.stars {
    color: #ffc107;
    font-size: 14px;
}

.review-count {
    color: var(--text-light);
    font-size: 14px;
}

/* Sticky CTA Card */
.cta-card {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    position: sticky;
    top: 20px;
}

.price-section {
    background-color: #fff8e1;
    /* Soft Yellow BG */
    padding: 15px;
    border-radius: 8px;
    border-left: 5px solid var(--accent-yellow);
    margin-bottom: 20px;
}

.price-label {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 5px;
    display: block;
}

.price-large {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-main);
}

.price-currency {
    font-size: 20px;
    font-weight: 600;
    vertical-align: top;
}

.price-mrp {
    font-size: 15px;
    color: var(--text-light);
    text-decoration: line-through;
    margin-left: 10px;
}

.price-save {
    font-size: 14px;
    color: var(--success-green);
    font-weight: 600;
    display: block;
    margin-top: 5px;
}

.price-request-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-blue);
}

.stock-dispatch-row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    font-size: 14px;
    font-weight: 500;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.stock-status.in-stock {
    color: var(--success-green);
}

.stock-status.out-stock {
    color: var(--accent-orange);
}

.delivery-info {
    color: var(--text-main);
}

.delivery-info i {
    color: var(--primary-blue);
    margin-right: 5px;
}

.action-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.btn-primary {
    flex: 1;
    padding: 14px 20px;
    background-color: var(--primary-blue);
    color: white;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-btn);
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
    text-align: center;
    text-decoration: none;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-secondary {
    flex: 1;
    padding: 14px 20px;
    background-color: transparent;
    color: var(--primary-blue);
    font-weight: 600;
    border: 2px solid var(--primary-blue);
    border-radius: var(--radius-btn);
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
    text-align: center;
    text-decoration: none;
}

.btn-secondary:hover {
    background-color: #eef4ff;
}

.btn-cart {
    flex: 1;
    padding: 14px 20px;
    background-color: #ff9900;
    /* Amazon-like Yellow/Orange */
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-btn);
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
    text-align: center;
    text-decoration: none;
}

.btn-cart:hover {
    background-color: #e68a00;
}

/* Trust Icons Row in CTA */
.trust-icons-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding-top: 5px;
}

.trust-icon-item {
    text-align: center;
    font-size: 11px;
    color: var(--text-light);
    flex: 1;
}

.trust-icon-item i {
    display: block;
    font-size: 18px;
    color: var(--success-green);
    margin-bottom: 5px;
}


/* Product Highlights Row */
.highlights-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

.highlight-card {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius-card);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid #eee;
    transition: transform 0.2s;
}

.highlight-card:hover {
    transform: translateY(-5px);
}

.highlight-card i {
    font-size: 32px;
    color: var(--primary-blue);
    margin-bottom: 12px;
}

.highlight-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: var(--text-main);
}


/* Tabs Section */
.product-tabs-section {
    margin-bottom: 60px;
}

.tabs-nav {
    display: flex;
    gap: 10px;
    margin-bottom: -1px;
    /* Overlap border */
    position: relative;
    z-index: 10;
}

.tab-btn {
    padding: 15px 30px;
    background: #eef4ff;
    color: var(--text-light);
    border: 1px solid transparent;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn.active {
    background: var(--white);
    color: var(--primary-blue);
    border-color: var(--border-color);
    /* Matches card border */
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.03);
}

.tab-content-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 0 8px 8px 8px;
    padding: 40px;
    box-shadow: var(--shadow-sm);
    min-height: 300px;
}

.tab-pane {
    display: none;
    line-height: 1.8;
    color: var(--text-main);
}

.tab-pane.active {
    display: block;
}

.tab-pane h3 {
    color: var(--primary-blue);
    margin-bottom: 20px;
}


/* Why Buy From Us Section */
.why-buy-section {
    background: #fff;
    padding: 50px;
    border-radius: var(--radius-card);
    margin-bottom: 60px;
    border: 1px solid var(--border-color);
}

.section-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 40px;
}

.reasons-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.reason-item {
    text-align: center;
}

.reason-icon {
    width: 60px;
    height: 60px;
    background: #eef4ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 24px;
    color: var(--primary-blue);
}

.reason-title {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 8px;
}

.reason-desc {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
}


/* Related Products */
.related-products-section {
    margin-bottom: 60px;
}

/* Responsive */
@media (max-width: 991px) {
    .product-hero {
        grid-template-columns: 1fr;
    }

    .product-gallery-card {
        flex-direction: column-reverse;
    }

    .gallery-thumbs {
        flex-direction: row;
        width: 100%;
        height: auto;
        overflow-x: auto;
    }

    .highlights-row,
    .reasons-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-card {
        position: static;
    }
}

@media (max-width: 576px) {

    .highlights-row,
    .reasons-grid {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-direction: column;
    }

    .tab-btn {
        padding: 12px 15px;
        font-size: 14px;
        flex: 1;
        text-align: center;
    }

    .tabs-nav {
        flex-wrap: wrap;
    }
}