.content-wrapper {
    display: flex;
    gap: 2rem;
    margin-top: 100px;
    width: 100%;
    height: 86vh;
    padding-top: 16px;
    padding-right: 36px;
    padding-bottom: 5rem;
    padding-left: 36px;
    position: relative;
    max-width: none;
}
.product-filters {
    width: 320px;
    min-width: 280px;
    max-width: 320px;
    flex-shrink: 0;
    z-index: 2;
}
.filters {
    width: clamp(280px, 30vw, 320px);
    max-width: 100%;
    overflow-y: auto;
    height: 100%;
    scroll-behavior: smooth;
    padding: 0 15px;
    z-index: 0;
    position: relative;
}
.filters label {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: .5rem;
    padding: 3px 0 3px 38px;
    transition: background-color .2s ease;
    font-size: .875rem;
    color: #555;
    cursor: pointer;
    line-height: 1.2;
}

.filter-section-title label {
    padding: 3px 0 3px 15px;
}

.filter-group {
    padding: 8px 0 16px 0;
    border-bottom: 1px solid #ddd;
    transition: all .3s ease-in-out;
    transform-origin: top;
    opacity: 1;
    position: relative;
}

.product-inner-top {
    position: sticky;
    top: 0;
    z-index: 10;
    background-color: #fff;
    padding: 0 0 12px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
#selected-filters {
    color: #6b7280;
    font-style: italic;
}
#selected-filters span {
    font-weight: 500;
    color: #374151;
    white-space: nowrap;
    font-style: normal;
}
.rmc-search-container {
    position: relative;
    min-width: 250px;
    margin-left: auto;
    margin-right: 12px;
    z-index: 4;
}
.rmc-search-input {
    width: 100% !important;
    padding: .75rem 1rem .75rem 2.5rem !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 2rem !important;
    font-size: .875rem !important;
    color: #374151 !important;
    background-image: url('/wp-content/uploads/2025/03/search.svg') !important;
    background-repeat: no-repeat !important;
    background-position: 12px center !important;
    background-size: 20px !important;
    background-color: #fff !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    line-height: normal !important;
    min-height: auto !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    transition: all .2sease !important;
}
.rmc-search-input:focus {
    outline: none !important;
    border-color: #4f46e5 !important;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, .1) !important;
}
.product-inner {
    flex: 1;
    min-width: 0;
    height: 100%;
    overflow-y: auto;
    z-index: 0;
}
#product-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: max-content;
    align-items: start;
    gap: 20px;
    height: calc(100% - 60px);
    padding: 0;
}
.color-circle {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    vertical-align: middle;
    border: 1px solid #ccc;
}

.filter-group h3 {
    margin: 0;
    padding-left: 12px;
    font-size: .875rem;
    font-weight: 600;
    color: #333;
    line-height: 16px;
    height: 16px;
    display: inline-flex;
    align-items: center;
}

.filter-group input[type="checkbox"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    outline: none !important;
    width: 13px !important;
    height: 13px !important;
    min-width: 13px !important;
    min-height: 13px !important;
    border: 2px solid #6b7280 !important;
    border-radius: 2px !important;
    background-color: #fff !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
}

.filter-group input[type="checkbox"]:checked {
    background-color: #4f46e5 !important;
    border-color: #4f46e5 !important;
}

.filter-group input[type="checkbox"]:checked::after {
    content: "" !important;
    position: absolute !important;
    left: 50% !important;
    top: 45% !important;
    width: 4px !important;
    height: 7px !important;
    border: solid #fff !important;
    border-width: 0 1.5px 1.5px 0 !important;
    transform: translate(-50%, -50%) rotate(45deg) !important;
    box-sizing: content-box !important;
}

.filter-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    padding: 6px 0;
    background: #fff;
    position: relative;
    z-index: 99;
}

.filter-section-title > div {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 1;
}

.filter-header {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 0;
}

.filter-count {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 500;
    min-height: 28px;
}

.filter-badge {
    background-color: #e0e7ff;
    color: #4f46e5;
    padding: .25rem .75rem;
    border-radius: 9999px;
    font-size: .75rem;
    font-weight: 500;
    min-width: 2rem;
    opacity: 1;
    transition: all .2s ease;
    overflow: hidden;
    display: none;
    align-items: center;
    justify-content: center;
}

.clear-filters {
    font-size: .875rem;
    color: #53525b;
    background: none;
    border: none;
    cursor: pointer;
    padding: .25rem .75rem;
    margin-left: 8px;
    white-space: nowrap;
    height: 28px;
    opacity: 1;
    border-radius: 9999px;
    transition: opacity .2sease, background-color .2sease;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e0e7ff;
}

.clear-filters:hover {
    background-color: #c7d2fe;
    color: #4f46e5;
}

.expand-icon.expanded {
    transform: translateY(-50%) rotate(0deg);
}
.expand-icon {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: #6b7280;
    transition: transform .2s ease;
    display: flex;
    align-items: center;
}

.help-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    border: 1px solid #848484;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    font-size: 11px;
    cursor: pointer;
    transition: all .2s ease;
    margin-top: 0;
    padding: 0;
}

.help-icon:hover {
    background: #d1d5db;
    color: #2f3540;
    border: 1px solid #646464;
}

.popup {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.popup-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    top: 50%;
    left: 50%;
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 400px;
    max-width: 80%;
    text-align: center;
    position: relative;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
}

.product-item-top {
    position: relative;
    width: 100%;
    height: 167.031px;
    background: #f3f4f6;
    border-bottom: 1px solid #e5e7eb;
}

.product-item-top .product-item-link {
    max-width: 100%;
    width: 100%;
    height: 167.031px;
    height: 17.99vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-item-top > a > .product-item-image {
    max-width: 100%;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.product-category {
    position: absolute;
    top: .75rem;
    left: .75rem;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: .375rem;
    padding: .375rem .625rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
    font-size: .75rem;
    font-weight: 500;
    color: #374151;
    letter-spacing: .025em;
}

.product-file {
    position: absolute;
    bottom: .75rem;
    right: .75rem;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 9999px;
    background: #d2232a;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #fff;
    transition: all .2s ease;
}

.product-file:hover {
    background: #ff7000;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
}

.product-file::after {
    content: "Download Spec Sheet";
    position: absolute;
    top: 50%;
    right: calc(100% + 8px);
    transform: translateY(-50%);
    background: rgba(0, 0, 0, .8);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all .2s ease;
}

.product-file:hover::after,
.product-file:hover::before {
    opacity: 1;
    visibility: visible;
}

.product-item {
    display: flex;
    flex-direction: column;
    /*height: 100%;*/
    height: auto;
    /*min-height: 307px;*/
    padding: 0;
    border: 1px solid #e5e7eb;
    border-radius: .5rem;
    background: #fff;
    transition: transform .2s ease, box-shadow .2s ease;
    position: relative;
}

.product-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, .1);
}

.product-item-top {
    position: relative;
    width: 100%;
    min-height: 165px;
    height: 165px;
/*     flex: 1; */
}

.product-item-top .product-item-link {
    max-width: 100%;
    width: 100%;
    /*min-height: 250px;*/
    /*height: 250px;*/
    height: auto;
    background: #f3f4f6;
    border-bottom: 1px solid #e5e7eb;
}

.product-item-top > a > .product-item-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
}

.product-content {
    display: block;
    padding: .5rem 1rem 1.25rem;
    color: #666;
    margin: 0 0 15px 0;
    font-size: .9em;
    line-height: 1.4;
    min-height: 85px;
}

.product-content h3 {
    font-style: normal;
    font-weight: 600;
    padding: 0 0 .25rem 0;
    line-height: 1.3;
    color: #333;
    font-size: 1.2em;
    margin: 1.5em 0 .5em;
    margin-top: 0;
}

.product-content p,
.product-content .product-content-text {
    height: 20px;
    overflow: hidden;
}

.product-categories {
    margin-top: 32px;
}

.product-categories h2 {
    text-align: left;
    font-size: 32px;
    color: #3a3a3a;
}

.product-categories span {
    display: block;
    margin-bottom: 8px;
    text-transform: uppercase;
    color: #303030;
    font-size: 14px;
}

.section-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 48px;
    padding-bottom: 2rem;
    border-bottom: 0.67px solid #718096;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(250px, 1fr));
    gap: 2rem;
}

.category-card {
    display: block;
    min-height: 400px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    border: 1px solid #ddd;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
    text-decoration: none;
    color: inherit;
    text-align: center;
}

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

.category-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
}

.category-title {
    margin-bottom: 5px;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    text-align: left;
}

.category-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    align-self: center;
    margin-top: 10px;
    flex: 1;
    object-fit: contain;
}

@media screen and (max-width: 1200px) {
    #product-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .content-wrapper {
        height: auto;
        position: relative;
        padding: 12px;
    }
    .product-inner-top{
        align-items: flex-start;
        flex-direction: column-reverse;
    }
    .rmc-search-container {
        min-width: 100%;
         margin-left: 0;
    }
    #product-list {
        grid-template-columns: repeat(1, 1fr);
        height: auto;
    }
    .product-filters {
        max-width: 100%;
        width: 100%;
        position: fixed;
        left: 0;
        bottom: 0;
        height: 70px;
        z-index: 100;
        background: #fff;
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, .1);
        transition: all 0.3s;
    }
    .product-filters.active {
        height: 80%;
    }
    .filter-header {
        padding: 24px 0 10px;
        position: relative;
    }
    .filter-header:after {
        content: '▼';
        display: inline-block;
        padding-top: 12px;
        padding-bottom: 0;
        font-size: 1.2rem;
        left: 50%;
        position: absolute;
        top: 0px;
        transform: rotate(180deg);
        transition: all 0.3s;
    }
    .filter-header.active:after {
        top: -10px;
        transform: rotate(0deg);
    }
    .filters {
        width: 100%;
        max-width: 100%;
    }
    .filter-group h3 {
        font-size: 14px;
    }
    .filters label {
        padding: 0.8px 0 0.8px 38px;
        font-size: 14px;
    }
    .product-item-top,
    .product-item-top .product-item-link {
        height: 25.5vh;
    }
}