/* ==========================================================================
   Product Category Page
   ========================================================================== */
body.tax-product_cat,
body.page-template-template-products {
    .inner-banner {
        flex-direction: column;
        align-items: flex-start;
        padding-bottom: 15px !important;
    }

    .breadcrumb-nav {
        font-size: 14px;
    }

    .breadcrumb-nav a {
        color: #333;
    }

    .inner-banner:before {
        content: "";
        background-color: transparent;
        position: absolute;
        width: 100%;
        height: 100%;
        left: 0;
        top: 0;
        z-index: 1;
    }



    .mass-category-title :before {
        content: "";
        position: absolute;
        background-color: #000;
        height: 4px;
        border-right: 33px solid #e30913;
        max-width: 150px;
        width: 100%;
        left: 0;
        right: 0;
        bottom: -10px;
        margin: auto;
    }

    .category-banner-row {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 0;
        margin-top: 15px;
        margin-bottom: 0;
    }

    .category-banner-row .category-title-col {
        width: 100%;
        text-align: center;
    }

    .category-banner-row .category-desc-col {
        width: 100%;
        text-align: center;
    }

    .category-banner-row .mass-category-title {
        position: relative;
        display: inline;
        font-family: 'Montserrat', sans-serif;
        margin: 0;
        font-size: 28px;
        font-weight: 400;
        color: #333;
        line-height: 1.2;
    }

    .category-banner-row .category-description {
        margin-inline: auto;
        max-width: 800px;
    }

    .category-banner-row .category-description p {
        font-size: 16px;
        line-height: 1.7;
        color: #555;
        margin-top: 15px;
        margin-bottom: 0;
    }

    .category-banner-row .category-description p:last-child {
        margin-bottom: 0;
    }

    .breadcrumb-nav {
        padding: 15px 0 0;
        margin: 0;
        font-size: 14px;
        font-weight: 400;
        color: #777;
        text-transform: none !important;
    }

    .breadcrumb-nav a {
        color: #333 !important;
        text-decoration: none;
    }

    .breadcrumb-nav span {
        color: #333;
    }

    .product-lisiting {
        padding-top: 25px !important;
    }

    .product-lisiting .container {
        background-color: transparent;
    }



    .product-category-how-it-work .container {
        padding-bottom: 5px;
    }

    .product-category-how-it-work h3 {
        color: #000;
    }

    .product-category-how-it-work {

        h1,
        h2,
        h3,
        h4 {
            font-weight: normal;
        }

        h2 {
            font-size: 42px;
        }

        img {
            max-width: 70%;
            height: auto;
            display: block;
            margin: 30px auto;
        }

        @media (max-width: 991px) {
            img {
                max-width: 100%;
                margin: 20px auto;
            }
        }
    }

    #faqs-section {
        margin-bottom: 20px;
    }

    #faqs-section .container {
        background-color: #f9f9f9;
        padding-top: 20px;
    }

    #faqs-section .faq h2,
    #faqs-section .faq .dark_blk h2 {
        background-color: #000;
        color: #fff !important;
        padding: 15px 20px;
        margin-bottom: 20px;
        margin-top: 0;
        font-size: 28px;
    }

    #faqs-section .faq .dark_blk {
        background-color: transparent;
        padding: 0;
        margin: 0;
    }

    .faq summary h3 {
        color: #000;
        font-weight: 400;
        margin-bottom: 10px;
    }

    .quaote_blk .heading-block h2 {
        font-weight: normal;
    }
}

/* Shared Product Card Styles (used in Categories and Single Product Related) */
.product-content {
    padding: 20px 15px;
    background-color: #4c4c4c;
}

.product-content h3 {
    text-align: center;
    margin: 0;
}

.product-content h3 a {
    font-size: 14px;
    color: #fff !important;
    text-decoration: none;
    line-height: 1;
}

.childProduct .productActions {
    border-left: 15px solid #000000;
}

.childProduct .productActions a.theme-btn {
    width: 100%;
    cursor: pointer;
    border: none;
}

span.theme-btn {
    font-size: 13px;
    background: #4c4c4c;
    display: inline-block;
    width: 33.333%;
    text-align: left;
    margin: 0;
    float: left;
    color: #d2d2d2;
    border: 1px solid #fff;
    font-family: "Roboto Condensed", sans-serif;
    padding: 13px 13px;
    transition: 0.3s ease;
}

span.theme-btn:hover {
    color: #d2d2d2;
}

/* Product grid: equal-height cards with image filling space */
.product-block .row {
    display: flex;
    flex-wrap: wrap;
}

.product-block .row>[class*="col-"] {
    display: flex;
    margin-bottom: 30px;
}

.productblock.childProduct {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.productblock.childProduct:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.productblock.childProduct>a:not(.product-content) {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    height: 193px;
    min-height: 193px;
    max-height: 193px;
    background: #fff;
    width: 100%;
    padding: 10px;
    box-sizing: border-box;
}

.productblock.childProduct>a:not(.product-content) img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.5s ease;
}

.productblock.childProduct:hover>a:not(.product-content) img {
    transform: scale(1.05);
}

.productblock.childProduct a.product-content,
.productblock.childProduct .product-content {
    flex-shrink: 0 !important;
    width: 100% !important;
    min-height: 90px !important;
    /* Space for at least 2 lines of text */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 15px !important;
    background-color: #444444 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: background-color 0.3s ease !important;
    box-sizing: border-box !important;
}

.productblock.childProduct a.product-content:hover,
.productblock.childProduct:hover a.product-content,
.productblock.childProduct:hover .product-content {
    background-color: #222222 !important;
}

.productblock.childProduct .product-content h3,
.productblock.childProduct .product-content h3 a,
.productblock.childProduct .product-content h3 span {
    font-size: 14px !important;
    line-height: 1.2 !important;
    color: #ffffff !important;
    margin: 0;
    text-align: center;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

.productblock.childProduct a.product-content:hover h3,
.productblock.childProduct a.product-content:hover h3 a,
.productblock.childProduct:hover a.product-content h3,
.productblock.childProduct:hover a.product-content h3 a {
    color: #e30913 !important;
}

.productblock.childProduct .productActions {
    flex-shrink: 0;
}

/* 5-Column Grid Layout for Shop Archive */
.row.five-cols-row {
    display: flex !important;
    flex-wrap: wrap !important;
    margin-left: -10px !important;
    margin-right: -10px !important;
}

.row.five-cols-row:before,
.row.five-cols-row:after {
    display: none !important;
}

.row.five-cols-row .col-5-grid {
    display: flex !important;
    flex-direction: column !important;
    flex: 0 0 20% !important;
    max-width: 20% !important;
    width: 20% !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    margin-bottom: 25px !important;
    box-sizing: border-box !important;
    float: none !important;
}

@media (max-width: 1200px) {
    .row.five-cols-row .col-5-grid {
        flex: 0 0 25% !important;
        max-width: 25% !important;
        width: 25% !important;
    }
}

@media (max-width: 991px) {
    .row.five-cols-row .col-5-grid {
        flex: 0 0 33.333333% !important;
        max-width: 33.333333% !important;
        width: 33.333333% !important;
    }
}

@media (max-width: 767px) {
    .row.five-cols-row .col-5-grid {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
    }
}

@media (max-width: 480px) {
    .row.five-cols-row .col-5-grid {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }
}

.solutions-cta-box {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #b0b0b0;
    min-height: 180px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.solutions-cta-box:hover {
    background-color: #e30913;
    transform: translateY(-2px);
    text-decoration: none;
}

.solutions-cta-box span {
    color: #fff;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .solutions-cta .col-md-6 {
        margin-bottom: 15px;
    }

    .category-banner-row .category-title-col {
        text-align: center;
    }
}

/* Brand Group Headers */
.brand-group-header {
    width: 100%;
    margin-top: 40px;
    margin-bottom: 30px;
    text-align: left;
}

h2.brand-group-title {
    position: relative;
    display: inline-block;
    margin: 0;
    font-size: 28px;
    font-weight: 400;
    color: #333;
    line-height: 1.2;
    text-transform: uppercase;
}

.brand-group-title:before {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #e30913;
}

/* Option 1: Premium Modern Flat Filter Bar */
.core-product-archive-search {
    margin-bottom: 25px !important;
}

.shop-filter-bar-v1 {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    padding: 18px 24px;
    margin-top: 30px !important;
    margin-bottom: 40px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    clear: both;
}

/* Brand Pills Row */
.brand-pills-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 16px;
    overflow-x: auto;
}

.filter-group-label {
    font-size: 11px;
    font-weight: 800;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
}

.brand-pills-scroll {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    padding: 2px 0;
}

.brand-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    text-decoration: none !important;
    white-space: nowrap;
    transition: all 0.2s ease-in-out;
}

.brand-pill:hover {
    background-color: #ffffff !important;
    border-color: #e30913 !important;
    color: #e30913 !important;
    box-shadow: 0 2px 5px rgba(227, 9, 19, 0.1);
}

.brand-pill.active {
    background-color: #e30913 !important;
    border-color: #e30913 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(227, 9, 19, 0.2);
}

.brand-pill .count {
    font-size: 10px;
    opacity: 0.85;
    margin-left: 4px;
}

/* Dropdowns Row */
.quick-dropdowns-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin: 0 !important;
    padding: 0 !important;
}

.filter-dropdown-wrap {
    display: inline-flex !important;
    align-items: center !important;
    height: 38px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.filter-select {
    min-width: 195px !important;
    height: 38px !important;
    margin: 0 !important;
    padding: 0 34px 0 14px !important;
    font-family: inherit !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    background-color: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 4px !important;
    cursor: pointer;
    outline: none;
    line-height: normal !important;
    box-sizing: border-box !important;
    vertical-align: middle !important;
    transition: all 0.2s ease-in-out !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 12px !important;
}

.filter-select:hover,
.filter-select:focus {
    background-color: #ffffff !important;
    border-color: #e30913 !important;
    color: #e30913 !important;
    box-shadow: 0 2px 5px rgba(227, 9, 19, 0.1) !important;
}

.filter-reset-wrap {
    display: inline-flex !important;
    align-items: center !important;
    height: 38px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.filter-reset-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px;
    height: 38px !important;
    margin: 0 !important;
    padding: 0 16px !important;
    font-family: inherit !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: normal !important;
    color: #e30913 !important;
    background-color: #ffffff !important;
    text-decoration: none !important;
    border: 1px solid #e30913 !important;
    border-radius: 4px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle !important;
    transition: all 0.2s ease-in-out !important;
    box-sizing: border-box !important;
}

.filter-reset-btn:hover {
    background-color: #e30913 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(227, 9, 19, 0.2) !important;
}

@media (max-width: 768px) {
    .quick-dropdowns-row {
        flex-direction: column;
        gap: 12px;
    }
}