/* Inner Banner Styles (Not Scoped Under .product_section) */
.inner_banner_products {
    margin-bottom: 0px;
    margin-top: 86px;
}

.products_banner {
    background-image: url(../images/product-page/product_banner.png);
    background-repeat: no-repeat;
    background-size: cover;
}

.products_banner .inner_banner_title {
    display: inline-block;
    padding: 160px 0px 160px;
    position: relative;
    text-align: left;
}

.inner_banner_title ul {
    list-style: none;
    padding: 0;
    margin: 0 0 10px 0;
    display: flex;
    gap: 5px;
    font-size: 14px;
    color: #fff;
}

.inner_banner_title ul li a {
    color: #fff;
    text-decoration: none;
}

.inner_banner_title ul li a:hover {
    text-decoration: underline;
}

.inner_banner_title h1 {
    color: #fff;
    font-size: 36px;
    font-weight: 700;
}

/* Styles for the New Header Section (Not Scoped Under .product_section) */
.product_header_section {
    padding: 40px 60px 30px 60px !important;
    background: #fff; /* White background to match the theme */
}

.product_header_section .header-title {
    font-size: 32px;
    font-weight: 700;
    color: #fe0002; /* Red color to match the theme */
    margin-bottom: 10px;
}

.product_header_section .header-paragraph {
    font-size: 16px;
    color: #343434;
    font-weight: 400;
}

.product_header_section .search-bar-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.product_header_section .search-input {
    padding: 9px 15px;
    border: 1px solid #ddd;
    border-radius: 25px 0 0 25px; /* Rounded left corners */
    width: 100%;
    max-width: 300px;
    font-size: 14px;
    color: #666;
    outline: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.product_header_section .search-input::placeholder {
    color: #999;
}

.product_header_section .search-button {
    padding: 10px 20px;
    background: #fe0002; /* Red button to match the theme */
    color: #fff;
    border: none;
    border-radius: 0 25px 25px 0; /* Rounded right corners */
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.product_header_section .search-button:hover {
    background: #fe0002; /* Slightly darker red on hover */
}

/* Scoped under .product_section */
.product_section {
    padding: 20px 60px !important;
}

.product_section .category-wrapper {
    position: relative;
}

.product_section .category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: linear-gradient(
        135deg,
        #ffffff 0%,
        #f8f9fa 100%
    ); /* Subtle gradient for card effect */
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Soft shadow for card effect */
    min-height: 100vh;
    overflow: hidden; /* Ensure rounded corners apply to content */
}

.product_section .category-item {
    position: relative;
    margin-bottom: 10px;
}

.product_section .main-category {
    font-weight: bold;
    color: #333;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s, color 0.3s;
    cursor: pointer;
}

/* Hover and Active Effects for Main Category */
.product_section .main-category:hover {
    background: #fe0002; /* Red background on hover */
    color: #fff;
}

.product_section .main-category:hover .toggle-arrow {
    color: #fff;
}

/* Subtle Active State for Main Category */
.product_section .category-item.active .main-category {
    background: #fe0002;
    color: #fff;
}

.product_section .category-item.active .main-category .toggle-arrow {
    color: #fff;
}

.product_section .toggle-arrow {
    font-size: 12px;
    transition: color 0.3s;
}

.product_section .toggle-arrow i {
    transition: transform 0.3s;
}

/* Subcategory Menu */
.product_section .subcategory-menu {
    display: none;
    background: #fff;
    padding: 10px;
    border-radius: 5px;
}

.product_section .subcategory-menu.active {
    display: block;
}

.product_section .subcategory-item {
    display: block;
    padding: 10px 15px;
    color: #fe0002; /* Red to match the theme */
    text-decoration: none;
    border-radius: 3px;
    transition: background 0.3s, color 0.3s, border-left 0.3s;
    position: relative;
}

/* Hover Effect for Subcategory */
.product_section .subcategory-item:hover {
    background: #f8f9fa;
    color: #fe0002; /* Slightly darker red on hover */
}

/* Active State for Subcategory (Tab Active Feel) */
.product_section .subcategory-item.active {
    background: #fe0002;
    color: #fff;
    border-left: 4px solid #fe0002; /* Slightly darker red border for tab feel */
    padding-left: 11px; /* Adjust padding to account for border */
}

/* Product Section */
.product_section .product-container {
    padding: 0px 30px 30px 30px;
}

.product_section .product-section {
    display: none;
    margin-bottom: 40px;
}

.product_section .product-section.active {
    display: block;
}

.product_section .section-title {
    font-size: 28px;
    color: #333;
    margin-bottom: 20px;
    border-bottom: 2px solid #fe0002; /* Red underline */
    padding-bottom: 10px;
}

/* Product Row and Columns */
.product_section .product-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Add gap between cards */
    margin: 0; /* Remove default Bootstrap row margins */
}

.product_section .product-col {
    flex: 0 0 calc(33.333% - 20px); /* 3 columns with gap adjustment */
    max-width: calc(33.333% - 20px); /* Ensure proper width */
}

.product_section .product-col.d-none {
    display: none !important; /* Ensure hidden elements don't take up space */
}

@media (max-width: 767px) {
    .product_section .product-col {
        flex: 0 0 calc(50% - 20px); /* 2 columns on mobile */
        max-width: calc(50% - 20px);
    }
}

@media (max-width: 576px) {
    .product_section .product-col {
        flex: 0 0 100%; /* 1 column on very small screens */
        max-width: 100%;
    }
}

/* Product Card (Using Bootstrap Card) */
.product_section .product-card {
    position: relative;
    border: none; /* Remove default border */
    border-radius: 10px;
    overflow: hidden; /* Ensure rounded corners apply to image */
    transition: transform 0.3s, box-shadow 0.3s;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); /* Subtle shadow by default */
    height: 100%; /* Ensure card takes full height */
    display: flex;
    flex-direction: column;
}

.product_section .product-card:hover {
    transform: scale(1.05); /* Slight grow effect on hover */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); /* Enhanced shadow on hover */
}

.product_section .product-card .card-img-top {
    width: 100%;
    height: 200px;
    object-fit: cover; /* Ensure the image fits nicely */
}

.product_section .product-card .card-body {
    padding: 15px;
    background: #fff; /* White background for the bottom section */
    text-align: center;
    position: relative;
    z-index: 1;
    flex: 1; /* Allow body to take remaining space */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product_section .product-card .card-title {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
    transition: color 0.3s;
}

.product_section .product-card:hover .card-title {
    color: #fe0002; /* Red title on hover */
}

.product_section .product-card .see-more-btn {
    display: inline-block;
    padding: 4px 16px;
    background: #fe0002;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 500;
    transition: background 0.3s, transform 0.3s;
}

.product_section .product-card .see-more-btn:hover {
    background: #b02a37;
    transform: translateY(-2px);
}

.product_section .product-card .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: background 0.3s;
    z-index: 0;
}

.product_section .product-card:hover .overlay {
    background: rgba(0, 0, 0, 0.1); /* Subtle overlay on hover */
}

.product_section .no-results-message {
    font-size: 16px;
    color: #666;
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* New Brands We Serve Section */
.product_section .brands_we_serve_sec {
    padding: 50px 0;
    background: #f8f9fa;
    margin-top: 30px;
}

.product_section .brands_we_serve_sec .web_title h2 {
    font-size: 42px;
    color: #343434;
    font-weight: 800;
    margin-bottom: 10px;
}

.product_section .brands_we_serve_sec .web_title p {
    font-size: 18px;
    color: #343434;
    font-weight: 600;
    margin-bottom: 30px;
}

.product_section .brands_we_serve_slider {
    position: relative;
}

.product_section .brands_slider .item {
    text-align: center;
}

.product_section .brands_slider .item img {
    max-width: 150px;
    height: auto;
    margin: 0 auto;
    transition: transform 0.3s;
}

.product_section .brands_slider .item img:hover {
    transform: scale(1.1);
}

/* Owl Carousel Dots Styling */
.product_section .brands_slider .owl-dots {
    text-align: center;
    margin-top: 20px;
}

.product_section .brands_slider .owl-dot {
    display: inline-block;
    margin: 0 5px;
}

.product_section .brands_slider .owl-dot span {
    width: 10px;
    height: 10px;
    background: #ddd;
    border-radius: 50%;
    display: inline-block;
    transition: background 0.3s;
}

.product_section .brands_slider .owl-dot.active span,
.product_section .brands_slider .owl-dot:hover span {
    background: #fe0002; /* Red to match the theme */
}

/* Consolidated Mobile Layout Adjustments */
@media (max-width: 767px) {
    .product_section {
        padding: 20px 20px !important;
    }

    .product_header_section {
        padding: 20px 10px 20px 10px !important;
    }

    .product_section .category-list {
        min-height: auto;
        border: 1px solid #ddd;
        border-radius: 5px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        margin-bottom: 20px;
        background: #fff; /* Solid white on mobile for simplicity */
    }

    .product_section .subcategory-menu {
        padding: 0 20px 10px;
        box-shadow: none;
        background: #fff;
        border-top: 1px solid #ddd;
    }

    .product_section .subcategory-item {
        font-size: 14px;
        padding: 12px 15px;
        border-bottom: 1px solid #eee;
    }

    .product_section .subcategory-item:last-child {
        border-bottom: none;
    }

    .product_section .product-container {
        padding: 0 15px;
    }

    .product_section .product-section {
        padding: 20px;
        background: #fff;
        border: 1px solid #ddd;
        border-radius: 5px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .product_section .row {
        margin-left: -7.5px;
        margin-right: -7.5px;
    }

    .product_section .col-6 {
        padding-left: 7.5px;
        padding-right: 7.5px;
    }

    .product_section .category-wrapper {
        margin-bottom: 20px;
    }

    .product_section .main-category {
        background: #f8f9fa;
        border-bottom: 1px solid #ddd;
        font-size: 16px;
    }

    .product_section .main-category:last-child {
        border-bottom: none;
    }

    .product_section .section-title {
        font-size: 24px;
    }

    .product_section .product-card .card-img-top {
        height: 150px; /* Smaller images on mobile */
    }

    .product_section .product-card .card-title {
        font-size: 14px;
    }

    .product_section .product-card .see-more-btn {
        font-size: 12px;
        padding: 6px 12px;
    }

    .product_section .brands_we_serve_sec {
        padding: 30px 0;
    }

    .product_section .brands_we_serve_sec .web_title h2 {
        font-size: 24px;
    }

    .product_section .brands_we_serve_sec .web_title p {
        font-size: 14px;
    }

    .product_section .brands_slider .item img {
        max-width: 100px;
    }

    .product_header_section .header-title {
        font-size: 24px;
    }

    .product_header_section .header-paragraph {
        font-size: 14px;
    }

    .product_header_section .search-bar-wrapper {
        margin-top: 15px;
        justify-content: center;
    }

    .product_header_section .search-input {
        max-width: 100%;
    }
}
