/* Responsive Overrides */

/* Make sure all media flexes to container */
img {
    max-width: 100%;
    height: auto;
}

/* Header Tops Wrapper */
.header-tops-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.contact-list {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Base structural fixes */
.slider-wrapper {
    width: 100%;
    overflow: hidden;
}

.row.iso {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

/* Tablet Adjustments */
@media (max-width: 991px) {
    .rq-wrapper {
        padding: 40px 30px !important;
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {

    /* Request a quote overrides */
    .rq-wrapper {
        padding: 30px 15px !important;
    }

    .rq-container {
        flex-direction: column;
        align-items: center;
    }

    .rq-image-box {
        flex: none !important;
        width: 100% !important;
        height: auto;
    }

    .rq-side-text {
        position: static;
        writing-mode: horizontal-tb;
        transform: none;
        margin-bottom: 20px !important;
        text-align: center;
        font-size: 28px !important;
    }

    /* Resources overrides */
    .rsrc-box-new {
        width: 100% !important;
        max-width: 100%;
    }

    /* Slider overrides */
    .card {
        min-width: 260px !important;
    }

    /* Top header overrides */
    .header-tops-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .contact-list {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .top-right {
        margin-bottom: 5px;
    }

    /* Header logo resize */
    .header-logo img {
        max-width: 150px;
    }

    /* Footer adjustments */
    .single-footer-widget h3 {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .single-footer-widget .list-area li a,
    .single-footer-widget p,
    .single-footer-widget .contact-list li a {
        font-size: 14px !important;
        line-height: 1.5;
    }

    .single-footer-widget {
        margin-bottom: 25px;
    }

    /* About section buttons stack */
    .about-content .theme-btn {
        display: block;
        width: 100%;
        margin-bottom: 15px;
        text-align: center;
    }
}


@media (max-width: 480px) {

    /* Small mobile adjustments */
    .slider-wrapper {
        padding: 0 20px;
    }

    .card {
        min-width: 220px !important;
    }
}

/* Product Detail Table Styles */
.product-table-wrapper {
    margin-top: 40px;
    overflow-x: auto;
    border: 2px solid #274B7D;
    border-radius: 8px;
    background: #fff;
}

.product-detail-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.product-detail-table th {
    background-color: #f8f9fa;
    color: #274B7D;
    padding: 15px 20px;
    text-align: left;
    font-size: 18px;
    border-bottom: 2px solid #274B7D;
    font-weight: 700;
}

.col-sub {
    width: 200px;
    border-right: 2px solid #274B7D;
}

.product-detail-table td {
    padding: 0;
    vertical-align: top;
    border-bottom: 2px solid #274B7D;
}

.product-detail-table tr:last-child td {
    border-bottom: none;
}

.subcategory-name {
    padding: 20px !important;
    font-size: 18px;
    font-weight: 700;
    color: #000;
    background-color: #fff;
    border-right: 2px solid #274B7D;
    text-align: center;
    display: table-cell;
    vertical-align: middle !important;
}

.product-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.product-row:last-child {
    border-bottom: none;
}

.product-info {
    flex: 1;
    color: #333;
    font-size: 15px;
    padding-right: 20px;
}

.product-standards {
    width: 300px;
    color: #333;
    font-size: 15px;
    text-align: left;
}

/* Mobile Table Responsiveness */
@media (max-width: 991px) {
    .product-row {
        flex-direction: column;
    }

    .product-standards {
        width: 100%;
        margin-top: 10px;
        color: #274B7D;
        font-weight: 500;
    }
}

@media (max-width: 768px) {

    .product-detail-table,
    .product-detail-table thead,
    .product-detail-table tbody,
    .product-detail-table th,
    .product-detail-table td,
    .product-detail-table tr {
        display: block;
    }

    .product-detail-table thead {
        display: none;
    }

    .subcategory-name {
        background-color: #274B7D;
        color: #fff !important;
        width: 100%;
        border-right: none;
        border-bottom: 2px solid #fff;
    }
}

/* Product Gallery Styles */
.product-gallery {
    margin-bottom: 30px;
}

.gallery-card {
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease-in-out;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.gallery-card img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.gallery-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
}

.gallery-card:hover img {
    transform: scale(1.05);
}

/* Category Page Layout */
.category-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 30px;
    align-items: start;
}

.category-sidebar {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 18px 45px rgba(39, 75, 125, 0.05);
}

.sidebar-head {
    margin-bottom: 24px;
}

.sidebar-title {
    margin-bottom: 12px;
    font-size: 1.25rem;
    font-weight: 500;
    color: #1f324f;
}

.sidebar-note {
    color: #6c757d;
    line-height: 1.7;
    margin-bottom: 0;
}

.category-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 75vh;
    overflow-y: auto;
    padding-right: 10px;
}

/* Custom Scrollbar for Category Nav */
.category-nav::-webkit-scrollbar {
    width: 6px;
}

.category-nav::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 4px;
}

.category-nav::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.category-nav::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    border-radius: 12px;
    text-decoration: none;
    color: #343a40;
    background: #f8f9fa;
    border: 1px solid #00000008;
    transition: all 0.25s ease;
    font-weight: 600;
}

.category-link:hover,
.category-link.active {
    background: #274b7d;
    color: #fff;
    border-color: #274b7d;
}

.category-link:hover i,
.category-link.active i {
    color: #fff;
}

.category-detail {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e9ecef;
    padding: 28px;
}

.category-header {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 24px;
}

.category-summary {
    max-width: 720px;
}

.category-title {
    margin-bottom: 12px;
    font-size: 2.2rem;
    color: #1f324f;
    font-weight: 700;
}

.category-description {
    margin-bottom: 0;
    color: #6c757d;
    line-height: 1.85;
}

.category-image {
    min-width: 220px;
    max-width: 260px;
}

.category-image img {
    width: 60%;
    height: auto;
    object-fit: cover;
}

.product-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin: 5px 0;
}

.filter-label {
    font-weight: 700;
    color: #202940;
    white-space: nowrap;
}

.filter-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 18px;
    border-radius: 999px;
    background: #f1f4fb;
    color: #274b7d;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #00000008;
    transition: all 0.25s ease;
}

.filter-pill:hover,
.filter-pill.active {
    background: #274b7d;
    color: #fff;
    border-color: #274b7d;
}

.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.product-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
}

.product-item-img {
    width: 100%;
    height: 200px;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
}

.product-item-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.product-item:hover .product-item-img img {
    transform: scale(1.08);
}

.product-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(39, 75, 125, 0.12);
}

.product-item-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.product-item-title {
    font-size: 19px;
    margin-bottom: 12px;
    font-weight: 400;
    line-height: 1.4;
}

.product-item-title a {
    color: #1f324f;
    text-decoration: none;
}

.product-item-title a:hover {
    color: #274b7d;
}

/* Product Type Gallery Styles */
.product-type-gallery {
    padding: 10px 0;
    border-top: 1px solid #f1f4fb;
    border-bottom: 1px solid #f1f4fb;
}

.gallery-scroll {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 5px;
    scroll-behavior: smooth;
}

.gallery-scroll::-webkit-scrollbar {
    height: 6px;
}

.gallery-scroll::-webkit-scrollbar-track {
    background: #f1f4fb;
    border-radius: 10px;
}

.gallery-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

.gallery-item {
    flex: 0 0 180px;
    height: auto;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    transition: all 0.3s ease;
}

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

.gallery-item:hover {
    border-color: #274b7d;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(39, 75, 125, 0.08) !important;
}

.product-item-desc {
    color: #6c757d;
    margin-bottom: 0;
    line-height: 1.7;
    font-size: 0.95rem;
    flex: 1;
}

.product-item-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

.theme-btn-sm {
    padding: 8px 15px;
    font-size: 12px;
}

.btn-outline {
    background: transparent;
    color: #274b7d;
    border: 1px solid #274b7d;
}

.btn-outline:hover {
    background: #274b7d;
    color: #fff;
}

@media (max-width: 1199px) {
    .category-layout {
        grid-template-columns: 1fr;
    }

    /* .category-sidebar {
        order: 2;
    } */

    .category-detail {
        border-radius: 16px;
    }

    .product-list {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 767px) {
    .category-layout {
        gap: 20px;
    }

    .category-sidebar,
    .category-detail {
        padding: 20px;
    }

    .category-title {
        font-size: 1.75rem;
    }

    .product-filter {
        flex-direction: column;
        align-items: stretch;
    }

    .product-item {
        padding: 20px;
    }

    .product-list {
        grid-template-columns: 1fr;
    }

    .category-image {
        max-width: 100%;
    }
}

.news-content.p-4.text-center.bg-white {
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-content.p-4.text-center.bg-white.range{
    display: flex;
    flex-direction: column;
}