:root {
    --primary-color-blue: #0053e2;
    --primary-color-blue-2: #f0f5ff;
    --primary-color-blue-3: #001e60;
    --color-body: #404040;
    --color-white: #fff;
    --color-grey-0: #fafafa;
    --color-grey-1: #f5f5f5;
    --color-grey-2: #e3e2e2;
    --color-grey-3: #c8c7c7;
    --color-grey-4: #797979;
    --color-grey-5: #999;
    --color-grey-line: #ccc;
}

.category-search .filter-sidebar .btn-subcategory {
    font-family: 'EverydaySans regular','Open Sans',sans-serif;
    font-size: 12pt;
    display: block;
    width: 100%;
    text-align: left;
    padding: 8px 15px;
    margin-bottom: 8px;
    cursor: pointer;
    background-color: var(--color-white);
    border: 1.5px solid var(--color-grey-2);
    border-radius: 10px;
    color: var(--color-body);
    transition: all 0.2s ease-in-out;
}

.category-search .filter-sidebar .btn-subcategory.active {
    color: var(--color-white);
    border-color: var(--color-body);
    background-color: var(--primary-color-blue);
    box-shadow: 0 4px 10px rgba(0, 83, 226, 0.3);
    text-decoration: none;
}

.category-search .filter-sidebar {
    background-color: var(--color-white);
    margin-right: 30px;
}

.category-search .filter-sidebar .filter-sidebar-items {
    padding: 0 25px;
}

.category-search .filter-sidebar .filter-sidebar-heading {
    display: flex;
    flex-direction: column;
    gap: 5px;
    border: 1.5px solid var(--color-grey-2);
    color: var(--color-body);
    background-color: var(--color-grey-1);
    padding: 25px;
    border-radius: 10px;
}

.category-search .filter-sidebar-heading-upper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.category-search .filter-sidebar .filter-sidebar-heading h3 {
    color: var(--color-body);
    font-family: 'EverydaySans medium','Open Sans',sans-serif;
    font-size: 14pt;
    margin: 0;
}

.category-search .filter-sidebar h5 {
    font-family: 'EverydaySans medium','Open Sans',sans-serif;
    margin-bottom: 20px;
    font-size: 12pt;
}

.category-search .filter-sidebar .btn-subcategory:hover {
    color: var(--color-body);
    border-color: var(--color-body);
    background-color: var(--color-grey-1);
    transform: translateX(5px);
}

.category-search .filter-sidebar .btn-subcategory.active {
    font-family: 'EverydaySans regular','Open Sans',sans-serif;
    background-color: var(--primary-color-blue);
    border-color: var(--primary-color-blue);
    color: var(--color-white);
    pointer-events: none;
    transform: none;
}

.category-search .section-product-tiles .row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

/* --- Sidebar Section Layout --- */

.category-search .filter-sidebar-item {
    margin-top: 20px;
    padding-top: 20px;
}

.category-search .filter-sidebar-item .mode-header {
    font-size: 12pt;
    font-weight: 500;
    color: var(--primary-color-blue);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.category-search .toggle-container {
    display: flex;
    align-items: center;
}

.category-search .filter-sidebar-item .switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    margin: 0;
    padding: 0;
    line-height: initial;
}

.category-search .filter-sidebar-item .switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.category-search .filter-sidebar-item .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-grey-line);
    transition: .4s;
    border-radius: 34px;

    margin: 0 !important;
}

.category-search .filter-sidebar-item .slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.category-search .filter-sidebar-item input:checked + .slider {
    background-color: var(--primary-color-blue);
}

.category-search .filter-sidebar-item input:checked + .slider:before {
    transform: translateX(24px);
}

/* --- Tile Container --- */
.category-search .section-product-tile {
    margin-bottom: 30px;
    position: relative;
}

.category-search .section-product-tile a {
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: var(--color-white);
    border: 1.5px solid var(--color-grey-2);
    border-radius: 16px;
    text-decoration: none;
    color: var(--color-body);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-search .section-product-tile a:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.category-search .section-product-tile a:active,
.category-search .section-product-tile a:focus {
    border: 1.5px solid var(--primary-color-blue);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.category-search .section-product-tile .tile-image-container {
    height: auto;
    aspect-ratio: 3 / 2;
}

/* --- Image Area --- */
.category-search .tile-image-container {
    height: 25vh;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px 15px 0 0;
    position: relative;
    overflow: hidden;
}

.category-search .tile-image-container img {
    width: 100%;
    object-fit: contain;
}

/* --- Tile Content Layout --- */
.category-search .tile-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.category-search .tile-content {
    position: relative;
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    text-align: left;
    flex-grow: 1;
    gap: 15px;
}

.category-search .tile-category-product-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
}

/* --- Text & Details --- */
.category-search .tile-title {
    font-family: 'EverydaySans regular','Open Sans',sans-serif;
    font-size: 12pt;
    margin-bottom: 4px;
    line-height: 1.4;
    display: block;
}

.category-search .tile-subtitle {
    font-family: 'EverydaySans regular','Open Sans',sans-serif;
    font-size: 10pt;
    color: var(--color-grey-5);
    margin-bottom: auto;
    display: block;
}

/* --- Colors --- */
.category-search .tile-colors {
    list-style: none;
    padding: 0;
    margin: 7px 0 3px 0;
    display: flex;
    gap: 6px;
}

.category-search .tile-colors .tile-color {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    cursor: pointer;
    border: 1.5px solid var(--color-grey-line);
    box-sizing: border-box;
    transition: transform 0.2s ease;
}

.category-search .tile-colors .tile-color:hover {
    transform: scale(1.2);
}

.category-search .tile-colors .tile-color.selected {
    border: 2px solid #4285F4;
}

/* --- Actions (Wishlist / Preview) --- */
.category-search .tile-actions {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-self: baseline;
    z-index: 1;
}

.category-search .tile-actions .wishlist-btn {
    z-index: 1;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    align-self: baseline;
}

.category-search .tile-actions .wishlist-btn:hover .wishlist-icon {
    transform: scale(1.10);
}

.category-search .tile-actions .wishlist-btn:focus {
    outline: none;
}

.category-search .tile-actions .wishlist-icon {
    width: 27px;
    height: 27px;
    display: block;
    transition: filter 0.25s ease, transform 0.2s ease;
    filter: grayscale(100%) brightness(1.4) opacity(0.7);
    border-radius: 4px;
    box-sizing: border-box;
}

.category-search .tile-actions .wishlist-btn.is-active .wishlist-icon {
    filter: none;
}


/* --- SLA Info --- */
.category-search .tile-sla-info {
    display: flex;
    align-items: start;
    margin-top: 12px;
    text-align: right;
}

.category-search .tile-sla-info .sla-icon {
    width: 16px;
    height: 16px;
    margin: 0 10px 0 0;
}

.category-search .tile-sla-info .sla-text {
    font-size: 10pt;
    font-weight: 500;
    color: var(--primary-color-blue);
    text-align: start;
    line-height: 1.5em;
}

/* --- Unavailable State --- */
.category-search .item-unavailable-tag {
    display: none;
}

.category-search .section-product-tile.item-unavailable .tile-image-container,
.category-search .section-product-tile.item-unavailable .tile-info {
    filter: grayscale(100%) brightness(0.8);
}

.category-search .section-product-tile.item-unavailable .item-unavailable-tag {
    display: block;
    position: absolute;
    font-family: sans-serif;
    text-align: center;
    text-transform: capitalize;
    background-color: var(--color-white);
    padding: 6px 16px;
    border-radius: 4px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.category-search .section-product-tile.item-unavailable a {
    background-color: var(--color-grey-3);
}

.category-search .section-product-tile.item-unavailable .tile-info {
    border-radius: 0 0 15px 15px;
}

.category-search .section-product-tile.item-unavailable .tile-actions {
    pointer-events: none;
}

.category-search .section-product-tile.item-unavailable .tile-sla-info {
    display: none;
}

.category-search .no-themes-state {
    background-color: var(--color-grey-3);
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 3rem;
    margin-top: 20px;
}

.category-search .no-themes-state h4 {
    font-weight: 600;
    margin-bottom: 10px;
}

/* --- Parent Product Carousel --- */
.category-search .parent-product-carousel {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 15px;
    padding: 2px 0 20px 0;
    margin-bottom: 20px;

    /* Hide Scrollbar */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    cursor: grab;
    user-select: none;
}

.category-search .parent-product-carousel::-webkit-scrollbar {
    display: none;
}

.category-search .parent-product-carousel.active {
    cursor: grabbing;
    cursor: -webkit-grabbing;
}

.category-search .parent-product-carousel-item {
    flex: 0 0 auto;
    width: 130px;
}

.category-search .pp-select {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--color-body);
    transition: transform 0.2s ease;
    -webkit-user-drag: none;
}

.category-search .pp-select:hover {
    text-decoration: none;
    transform: translateY(3px);
    color: var(--primary-color-blue);
}

.category-search .pp-image-wrapper {
    aspect-ratio: 1 / 1;
    height: 130px;
    background-color: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 10px;
    transition: box-shadow 0.2s ease;
    border: 1.5px solid var(--color-grey-1);
    pointer-events: none;
}

.category-search .pp-img {
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.category-search .pp-info {
    text-align: center;
    padding: 0 2px;
}

.category-search .pp-title {
    font-family: 'EverydaySans regular','Open Sans',sans-serif;
    font-size: 10pt;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: inherit;
}

.category-search .pp-price-container {
    margin-top: 5px;
    font-size: 10pt;
    line-height: 1.2;
    color: var(--color-body);
}

.category-search .pp-price-label {
    font-size: 10pt;
    color: var(--color-grey-3);
    text-transform: uppercase;
    margin-right: 2px;
    font-weight: 500;
}

.category-search .pp-price {
    color: var(--color-grey-4);
}

.category-search .parent-product-carousel-item.active {
    pointer-events: none;
    transform: none;
}

.category-search .parent-product-carousel-item.active .pp-image-wrapper {
    border-color: var(--primary-color-blue);
    box-shadow: 0 0 0 2px rgba(0, 83, 226, 0.2);
}

.category-search .parent-product-carousel-item.active .pp-title {
    color: var(--primary-color-blue);
}

/* --- Product Closet (Sidebar) --- */
.category-search .product-closet-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}
.category-search .product-closet-overlay.open {
    opacity: 1;
    visibility: visible;
}

.category-search .product-closet {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 650px;
    height: 100%;
    background: #fff;
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: -5px 0 25px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
}
.category-search .product-closet.open {
    transform: translateX(0);
}

.category-search .closet-header {
    position: absolute;
    top: 10px;
    right: 15px;
    z-index: 10;
}

.category-search .closet-close-btn {
    background: rgba(255,255,255,0.8);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 24px;
    line-height: 32px;
    color: var(--color-body);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.category-search .closet-close-btn:hover {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.category-search .closet-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 0;
}

.category-search .table td, .table th {
    border-top: none;
}

.category-search .qv-pricing-section .qv-price-display table {
    padding: 10px 0;
    justify-items: start;
    border-collapse: separate;
    border-spacing: 10px 0;
    border-radius: 10px;
    transform: translateX(-10px);
}

.category-search .qv-pricing-section .qv-price-display th {
    width: 110px;
    text-align: center;
    border-radius: 10px 10px 0 0;
    color: var(--color-body);
    background-color: var(--color-grey-1);
}

.category-search .qv-pricing-section .qv-price-display td {
    width: 100px;
    text-align: center;
    color: var(--color-white);
    background-color: var(--primary-color-blue);
    border-radius: 0 0 10px 10px;
}

.category-search .qv-actions .btn-primary {
    min-width: 170px;
    width: 170px;
}
.category-search .tile-sla-info.qv-sla-spacing {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.category-search-product-closet .qv-actions .btn-primary {
    min-width: 170px;
    width: 170px;
}

.category-search-product-closet .quick-view-header {
    background-color: #f8f9fa;
    padding: 30px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1.5px solid var(--color-grey-2);
}

.category-search-product-closet .qv-image-container img {
    max-height: 280px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-radius: 4px;
}

.category-search-product-closet .quick-view-body {
    padding: 40px;
}

.category-search-product-closet .table td, .table th {
    border-top: none;
}

.category-search-product-closet .qv-pricing-section .qv-price-display table {
    padding: 10px 0;
    justify-items: start;
    border-collapse: separate;
    border-spacing: 10px 0;
    border-radius: 10px;
    transform: translateX(-10px);
}

.category-search-product-closet .qv-pricing-section .field-qty {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 10px;
}

.category-search-product-closet .qv-pricing-section .form-control {
    width: 170px;
    margin-bottom: 10px;
}

.category-search-product-closet .qv-pricing-section .qv-price-display th {
    width: 110px;
    text-align: center;
    border-radius: 10px 10px 0 0;
    color: var(--color-body);
    background-color: var(--color-grey-1);
}

.category-search-product-closet .qv-pricing-section .qv-price-display td {
    width: 100px;
    text-align: center;
    color: var(--color-white);
    background-color: var(--primary-color-blue);
    border-radius: 0 0 10px 10px;
}

.category-search-product-closet .qv-title {
    font-size: 18pt;
    margin-bottom: 5px;
    color: var(--color-body);
    line-height: 1.2;
}

.category-search-product-closet .qv-theme-name {
    font-size: 12pt;
    margin-bottom: 12px;
    font-weight: 400;
}

.category-search-product-closet .tile-sla-info.qv-sla-spacing {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}
.category-search-product-closet .tile-sla-info .sla-icon {
    width: 16px;
    height: 16px;
}
.category-search-product-closet .tile-sla-info .sla-text {
    font-size: 10pt;
    font-weight: 500;
    color: var(--primary-color-blue);
}

.category-search-product-closet .qv-description {
    font-size: 12pt;
    color: var(--color-body);
    margin-bottom: 20px;
    line-height: 1.6;
}

.category-search-product-closet .qv-price-display p {
    font-family: 'EverydaySans medium','Open Sans',sans-serif;
    font-size: 1.6rem;
    color: var(--primary-color-blue);
    line-height: 1;
}

/* Theme Category Filter -- */
.category-search .theme-category-filter .form-control {
    height: 46px;
    border: 1.5px solid var(--color-grey-4);
    border-radius: 10px;
    padding: 0 10px;
}

/* --- Direct Buy (No Themes) Layout --- */
.category-search .direct-buy-wrapper {
    box-shadow: 0 5px 25px rgba(0,0,0,0.04);
    background-color: var(--color-white);
    border: 1.5px solid var(--color-grey-2);
    border-radius: 10px;
}

.category-search .direct-buy-wrapper-left {
    padding: 20px;
}

.category-search .direct-buy-wrapper-right {
    overflow: auto;
    height: 570px;
    align-content: center;
    align-self: center;
    padding: 30px 20px;
}

.category-search .section-product-tile.direct-buy-wrapper:hover {
    transform: none;
    box-shadow: 0 5px 25px rgba(0,0,0,0.04);
}

.category-search .db-image-container {
    padding: 0;
    width: 100%;
}

.category-search .db-image-container img {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
}

.category-search .db-title {
    font-size: 20pt;
    color: var(--color-body);
    text-align: left;
}

.category-search .db-form-container .qv-pricing-section th,
.category-search .db-form-container .qv-pricing-section td,
.category-search .db-form-container .qv-pricing-section div {
    white-space: nowrap !important;
}

.category-search .db-form-container .qv-pricing-section .field-qty {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 10px;
}

.category-search .db-form-container .qv-pricing-section .form-control {
    width: 170px;
    margin-bottom: 10px;
}

.category-search .db-form-container .qv-pricing-section .form-group {
    margin-bottom: 20px;
}

.category-search .db-form-container .qv-price-display p {
    font-family: 'EverydaySans medium','Open Sans',sans-serif;
    font-size: 1.6rem;
    color: var(--primary-color-blue);
    line-height: 1;
}

/* --- Size Filter Grid Styling --- */

.category-search .size-filter-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.category-search .size-check-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.category-search .size-option-label {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    aspect-ratio: 4 / 2;
    padding: 5px;
    margin-bottom: 0;
    background-color: var(--color-white);
    border: 1.5px solid var(--color-grey-2);
    border-radius: 10px;
    color: var(--color-body);
    font-size: 12pt;
    font-family: 'EverydaySans regular','Open Sans',sans-serif;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease-in-out;
}

.category-search .size-option-label:hover {
    color: var(--color-body);
    background-color: var(--color-grey-1);
    border-color: var(--color-body);
}

.category-search .size-check-input:checked + .size-option-label {
    font-family: 'EverydaySans regular','Open Sans',sans-serif;
    background-color: var(--primary-color-blue);
    color: var(--color-white);
    border-color: var(--primary-color-blue);
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0, 83, 226, 0.3);
}

/* --- Color Filter Grid Styling --- */

.category-search .color-filter-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.category-search .color-option-item {
    position: relative;
    width: 32px;
    height: 32px;
}

.category-search .color-check-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.category-search .color-option-label {
    display: block;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    cursor: pointer;
    border: 1.5px solid var(--color-grey-2);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-search .color-option-label:hover {
    transform: scale(1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.category-search .color-check-input:checked + .color-option-label {
    transform: scale(1);
    border-color: transparent;
    box-shadow: 0 0 0 2px var(--color-white), 0 0 0 4px var(--primary-color-blue);
}

/* --- Type Filter List Styling --- */

.category-search .type-filter-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.category-search .type-option-item {
    position: relative;
    width: 100%;
}

.category-search .type-check-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.category-search .type-option-label {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    cursor: pointer;
    margin: 0;
    padding: 5px 0;
    user-select: none;
    transition: all 0.2s ease;
}

.category-search .custom-radio-indicator {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 1.5px solid var(--color-grey-2);
    border-radius: 50%;
    margin-right: 15px;
    position: relative;
    transition: all 0.2s ease;
    background-color: var(--color-white);
}

.category-search .type-icon-wrapper {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border: 1.5px solid var(--color-grey-3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    transition: all 0.2s ease;
    background-color: var(--color-white);
}

.category-search .type-icon-img {
    width: 35px;
    height: 35px;
    object-fit: contain;
    transition: all 0.2s ease;
    filter: brightness(0) saturate(100%) invert(45%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(72%) contrast(95%);
}

.category-search .type-label-text {
    font-family: 'EverydaySans regular','Open Sans',sans-serif;
    font-size: 12pt;
    color: var(--color-body);
    transition: color 0.2s ease;
}

.category-search .type-check-input:checked + .type-option-label .custom-radio-indicator {
    background-color: var(--primary-color-blue);
    border-color: var(--primary-color-blue);
}

.category-search .type-check-input:checked + .type-option-label .custom-radio-indicator::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-white);
}

.category-search .type-check-input:checked + .type-option-label .type-icon-wrapper {
    border-color: var(--primary-color-blue);
}

.category-search .type-check-input:checked + .type-option-label .type-icon-img {
    filter: invert(19%) sepia(96%) saturate(3994%) hue-rotate(214deg) brightness(96%) contrast(102%);
    opacity: 1;
}

.category-search .type-check-input:checked + .type-option-label .type-label-text {
    color: var(--primary-color-blue);
}

.category-search .type-option-label:hover .custom-radio-indicator {
    border-width: 6px;
    border-color: var(--color-grey-4);
}

.category-search .type-option-label:hover .type-icon-wrapper {
    border-color: var(--color-grey-4);
}

/* --- Material Filter Grid Styling --- */

.category-search .material-format-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.category-search .material-option-item {
    position: relative;
}

.category-search .material-check-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.category-search .material-option-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
    text-align: center;
    padding: 0 0 10px 0;
    margin-bottom: 0;
    border: 1.5px solid var(--color-grey-2);
    border-radius: 10px;
    color: var(--color-body);
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease-in-out;
    height: 100%;
    gap: 10px;
}

.category-search .material-option-label:hover {
    border-color: var(--color-grey-4);
    background-color: var(--color-grey-1);
}

.category-search .material-label-text {
    font-family: 'EverydaySans regular','Open Sans',sans-serif;
    font-size: 12pt;
    line-height: 1.2;
    padding: 0 10px;
}

.category-search .material-check-input:checked + .material-option-label {
    color: var(--primary-color-blue);
    border-color: var(--primary-color-blue);
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(0, 83, 226, 0.3);
}

.category-search .material-icon-wrapper {
    width: 100%;
    aspect-ratio: 4 / 2;
    display: block;
    border-radius: 8px 8px 0 0;
    background-color: var(--color-grey-3);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* --- Style Filter Grid (Icons + Text) --- */

.category-search .style-format-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.category-search .style-option-item {
    position: relative;
}

.category-search .style-check-input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.category-search .style-option-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 85px;
    padding: 10px 5px;
    margin-bottom: 0;
    background-color: var(--color-white);
    border: 1.5px solid var(--color-grey-2);
    border-radius: 10px;
    color: var(--color-body);
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease-in-out;
    height: 100%;
    gap: 5px;
}

.category-search .style-option-label:hover {
    border-color: var(--color-grey-4);
    background-color: var(--color-grey-1);
}

.category-search .style-label-text {
    font-family: 'EverydaySans regular','Open Sans',sans-serif;
    font-size: 10pt;
    line-height: 1.2;
}

.category-search .style-check-input:checked + .style-option-label {
    background-color: var(--primary-color-blue);
    color: var(--color-white);
    border-color: var(--primary-color-blue);
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(0, 83, 226, 0.3);
}

/* =========================================
   ICON MAPPING & DEFAULTS
   ========================================= */

.category-search .type-icon-wrapper .inner-icon,
.category-search .style-icon-wrapper {
    width: 100%;
    height: 100%;
    display: block;
    background-color: var(--color-grey-5);
    filter: none;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    background-image: none;
    -webkit-mask-image: url('../../../images/category-filter-icons/icon-default.svg');
    mask-image: url('../../../images/category-filter-icons/icon-default.svg');
}

.category-search .style-icon-wrapper.style-icon-flat,
.category-search .style-icon-wrapper.style-icon-plat {
    -webkit-mask-image: url('../../../images/category-filter-icons/style-icon-flat.svg');
    mask-image: url('../../../images/category-filter-icons/style-icon-flat.svg');
}

.category-search .style-icon-wrapper.style-icon-folded,
.category-search .style-icon-wrapper.style-icon-plie {
    -webkit-mask-image: url('../../../images/category-filter-icons/style-icon-folded.svg');
    mask-image: url('../../../images/category-filter-icons/style-icon-folded.svg');
}

.category-search .style-icon-wrapper.style-icon-christmas,
.category-search .style-icon-wrapper.style-icon-noel {
    -webkit-mask-image: url('../../../images/category-filter-icons/style-icon-christmas.svg');
    mask-image: url('../../../images/category-filter-icons/style-icon-christmas.svg');
}

.category-search .style-icon-wrapper.style-icon-diwali {
    -webkit-mask-image: url('../../../images/category-filter-icons/style-icon-diwali.svg');
    mask-image: url('../../../images/category-filter-icons/style-icon-diwali.svg');
}

.category-search .style-icon-wrapper.style-icon-hanukkah,
.category-search .style-icon-wrapper.style-icon-hanoukka {
    -webkit-mask-image: url('../../../images/category-filter-icons/style-icon-hanukkah.svg');
    mask-image: url('../../../images/category-filter-icons/style-icon-hanukkah.svg');
}

.category-search .style-icon-wrapper.style-icon-generic,
.category-search .style-icon-wrapper.style-icon-generique {
    -webkit-mask-image: url('../../../images/category-filter-icons/style-icon-flat.svg');
    mask-image: url('../../../images/category-filter-icons/style-icon-flat.svg');
}

.category-search .style-icon-wrapper.style-icon-colourful,
.category-search .style-icon-wrapper.style-icon-colore {
    -webkit-mask-image: url('../../../images/category-filter-icons/style-icon-colourful.svg');
    mask-image: url('../../../images/category-filter-icons/style-icon-colourful.svg');
}

.category-search .style-icon-wrapper.style-icon-natural,
.category-search .style-icon-wrapper.style-icon-naturel {
    -webkit-mask-image: url('../../../images/category-filter-icons/style-icon-natural.svg');
    mask-image: url('../../../images/category-filter-icons/style-icon-natural.svg');
}

.category-search .style-icon-wrapper.style-icon-decorative,
.category-search .style-icon-wrapper.style-icon-decoratif {
    -webkit-mask-image: url('../../../images/category-filter-icons/style-icon-decorative.svg');
    mask-image: url('../../../images/category-filter-icons/style-icon-decorative.svg');
}

.category-search .style-icon-wrapper.style-icon-standard,
.category-search .style-icon-wrapper.style-icon-norme {
    -webkit-mask-image: url('../../../images/category-filter-icons/style-icon-flat.svg');
    mask-image: url('../../../images/category-filter-icons/style-icon-flat.svg');
}

.category-search .style-icon-wrapper.style-icon-set-of-2,
.category-search .style-icon-wrapper.style-icon-lot-de-2 {
    -webkit-mask-image: url('../../../images/category-filter-icons/style-icon-set-of-2.svg');
    mask-image: url('../../../images/category-filter-icons/style-icon-set-of-2.svg');
}

.category-search .style-icon-wrapper.style-icon-set-of-3,
.category-search .style-icon-wrapper.style-icon-lot-de-3 {
    -webkit-mask-image: url('../../../images/category-filter-icons/style-icon-set-of-3.svg');
    mask-image: url('../../../images/category-filter-icons/style-icon-set-of-3.svg');
}

.category-search .style-icon-wrapper.style-icon-set-of-4,
.category-search .style-icon-wrapper.style-icon-lot-de-4 {
    -webkit-mask-image: url('../../../images/category-filter-icons/style-icon-set-of-4.svg');
    mask-image: url('../../../images/category-filter-icons/style-icon-set-of-4.svg');
}

.category-search .style-icon-wrapper.style-icon-set-of-6,
.category-search .style-icon-wrapper.style-icon-lot-de-6 {
    -webkit-mask-image: url('../../../images/category-filter-icons/style-icon-set-of-6.svg');
    mask-image: url('../../../images/category-filter-icons/style-icon-set-of-6.svg');
}

.category-search .style-icon-wrapper.style-icon-set-of-8,
.category-search .style-icon-wrapper.style-icon-lot-de-8 {
    -webkit-mask-image: url('../../../images/category-filter-icons/style-icon-set-of-8.svg');
    mask-image: url('../../../images/category-filter-icons/style-icon-set-of-8.svg');
}

.category-search .style-icon-wrapper.style-icon-set-of-9,
.category-search .style-icon-wrapper.style-icon-lot-de-9 {
    -webkit-mask-image: url('../../../images/category-filter-icons/style-icon-set-of-9.svg');
    mask-image: url('../../../images/category-filter-icons/style-icon-set-of-9.svg');
}

.category-search .style-icon-wrapper.style-icon-set-of-12,
.category-search .style-icon-wrapper.style-icon-lot-de-12 {
    -webkit-mask-image: url('../../../images/category-filter-icons/style-icon-set-of-12.svg');
    mask-image: url('../../../images/category-filter-icons/style-icon-set-of-12.svg');
}

.category-search .type-icon-wrapper .inner-icon {
    -webkit-mask-size: 75%;
    mask-size: 75%;
}

.category-search .type-icon-wrapper .inner-icon.type-icon-announcement,
.category-search .type-icon-wrapper .inner-icon.type-icon-annonce {
    -webkit-mask-image: url('../../../images/category-filter-icons/type-icon-announcement.svg');
    mask-image: url('../../../images/category-filter-icons/type-icon-announcement.svg');
}

.category-search .type-icon-wrapper .inner-icon.type-icon-greeting,
.category-search .type-icon-wrapper .inner-icon.type-icon-salutation {
    -webkit-mask-image: url('../../../images/category-filter-icons/type-icon-greeting.svg');
    mask-image: url('../../../images/category-filter-icons/type-icon-greeting.svg');
}

.category-search .type-icon-wrapper .inner-icon.type-icon-invitation {
    -webkit-mask-image: url('../../../images/category-filter-icons/type-icon-invitation.svg');
    mask-image: url('../../../images/category-filter-icons/type-icon-invitation.svg');
}

.category-search .type-icon-wrapper .inner-icon.type-icon-carved,
.category-search .type-icon-wrapper .inner-icon.type-icon-sculpte {
    -webkit-mask-image: url('../../../images/category-filter-icons/type-icon-carved.svg');
    mask-image: url('../../../images/category-filter-icons/type-icon-carved.svg');
}

.category-search .type-icon-wrapper .inner-icon.type-icon-woven,
.category-search .type-icon-wrapper .inner-icon.type-icon-tisse {
    -webkit-mask-image: url('../../../images/category-filter-icons/type-icon-woven.svg');
    mask-image: url('../../../images/category-filter-icons/type-icon-woven.svg');
}

.category-search .type-icon-wrapper .inner-icon.type-icon-rustic,
.category-search .type-icon-wrapper .inner-icon.type-icon-rustique{
    -webkit-mask-image: url('../../../images/category-filter-icons/type-icon-rustic.svg');
    mask-image: url('../../../images/category-filter-icons/type-icon-rustic.svg');
}

.category-search .style-check-input:checked + .style-option-label .style-icon-wrapper {
    filter: invert(100%) brightness(10) contrast(100%);
    background-color: var(--color-white);
    filter: none;
}

.category-search .type-icon-wrapper .inner-icon {
    width: 100%;
    height: 100%;
    background-size: 80%;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0) saturate(100%) invert(48%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(72%) contrast(95%);
}

.category-search .type-icon-wrapper .inner-icon {
    width: 100%;
    height: 100%;
    background-size: 80%;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0) saturate(100%) invert(48%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(72%) contrast(95%);
}

.category-search .type-check-input:checked + .type-option-label .type-icon-wrapper .inner-icon {
    background-color: var(--primary-color-blue);
    filter: none;
}

.category-search .material-icon-wrapper.material-icon-card-stock {
    background-image: url('../../../images/category-filter-icons/material-icon-card-stock.png');
}

.category-search .material-icon-wrapper.material-icon-pearl {
    background-image: url('../../../images/category-filter-icons/material-icon-pearl.png');
}

.category-search .material-icon-wrapper.material-icon-soft-touch {
    background-image: url('../../../images/category-filter-icons/material-icon-soft-touch.png');
}

/* --- Layout Options --- */
.category-search .layout-options {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 0 15px;
    margin-bottom: 30px;
}

.category-search .layout-options .top-option-wrapper img {
    height: 30px;
    width: 100%;
}

.category-search .layout-options .top-option-wrapper {
    display: flex;
    gap: 15px;
}

.category-search .layout-options .hide-filter-btn {
    height: 40px;
    width: 40px;
    border: 1.5px solid var(--color-grey-2);
    border-radius: 10px;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
}

.category-search .layout-options .hide-filter-btn:hover {
    cursor: pointer;
    background-color: var(--color-grey-1);
}

.category-search .layout-options .hide-filter-btn img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    filter: invert(20%);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-origin: center center;
}

.category-search .row-product-tiles.filters-closed .hide-filter-btn img {
    transform: scaleX(-1);
    opacity: 0.6;
}

/* --- Carousel Wrapper & Arrows --- */

.category-search .carousel-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.category-search .parent-product-carousel {
    margin-bottom: 0;
}

.category-search .carousel-arrow {
    position: absolute;
    top: 70px;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: var(--color-white);
    border: 1.5px solid var(--color-grey-2);
    border-radius: 50%;
    z-index: 10;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
}

.category-search .carousel-arrow:hover {
    background-color: var(--color-grey-1);
    border-color: var(--primary-color-blue);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    cursor: pointer;
}

.category-search .arrow-left {
    left: -20px;
}

.category-search .arrow-right {
    right: -20px;
}

.category-search .carousel-chevron {
    border: solid var(--color-body);
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
    transition: border-color 0.2s;
}

.category-search .carousel-arrow:hover .carousel-chevron {
    border-color: var(--primary-color-blue);
}

.category-search .carousel-chevron.left {
    transform: rotate(135deg);
    margin-left: 2px;
}

.category-search .carousel-chevron.right {
    transform: rotate(-45deg);
    margin-right: 2px;
}

/* --- Filter Toggle Animation --- */

.category-search .row-product-tiles .hide-filter-sidebar,
.category-search .row-product-tiles .section-product-results {
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.category-search .row-product-tiles.filters-closed .hide-filter-sidebar {
    flex: 0 0 0%;
    max-width: 0%;
    padding-left: 0;
    padding-right: 0;
    margin: 0;

    overflow: hidden;
    opacity: 0;
    visibility: hidden;
}

.category-search .row-product-tiles.filters-closed .section-product-results {
    flex: 0 0 100%;
    max-width: 100%;
}

.category-search .row-product-tiles.filters-closed .direct-buy-wrapper-right {
    height: auto;
}

.category-search .hide-filter-btn img {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.category-search .row-product-tiles.filters-closed .hide-filter-btn img {
    transform: rotate(180deg);
    opacity: 0.6;
}

/* --- Foil Selection Styling --- */

.category-search-product-closet .foil-options-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-search-product-closet .foil-option-btn {
    cursor: pointer;
    border: 1.5px solid var(--color-grey-2);
    border-radius: 6px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    background-color: var(--color-white);
    color: var(--color-body);
}

.category-search-product-closet .foil-option-btn:hover {
    border-color: var(--color-grey-4);
}

.category-search-product-closet .foil-option-btn.active {
    border-color: var(--primary-color-blue);
    background-color: var(--primary-color-blue-2);
    color: var(--primary-color-blue);
}

.category-search-product-closet .foil-color-dot {
    display: block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.1);
}

.category-search-product-closet .foil-label-text {
    user-select: none;
}

/* --- Theme Filter Chips --- */
.category-search .theme-chip-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.category-search .theme-chip-container .theme-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    height: 40px;

    font-family: 'EverydaySans regular', 'Open Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;

    background-color: var(--color-white);
    border: 1.5px solid var(--color-grey-2);
    border-radius: 20px;
    color: var(--color-body);

    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
    user-select: none;
}

.category-search .theme-chip:hover {
    color: var(--primary-color-blue-3);
    border-color: var(--primary-color-blue-3);
    transform: translateY(-2px);
}

.category-search .theme-chip.active {
    background-color: var(--primary-color-blue);
    border-color: var(--primary-color-blue);
    color: var(--color-white);
    box-shadow: 0 4px 10px rgba(0, 83, 226, 0.3);
    pointer-events: none;
}

/* --- Responsive Styles --- */
@media (max-width: 1200px) {
    .category-search .style-format-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .category-search .size-filter-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    /* -- Filter Sidebar -- */
    .category-search .filter-sidebar .filter-sidebar-items {
        padding: 0;
    }
}

@media (max-width: 991px) {
    /* -- Product Closet -- */
    .category-search .direct-buy-wrapper-right {
        height: auto;
        align-content: start;
        padding: 0 20px 20px 20px;
    }
}

@media (max-width: 767px) {
    /* -- Theme Filter Chips -- */
    .category-search .theme-chip-container::-webkit-scrollbar {
        display: none;
    }
    .category-search .theme-chip:hover {
        transform: none;
    }
    .category-search .theme-chip.active {
        box-shadow: none;
    }
    /* -- Top Option Wrapper -- */
    .category-search .row-product-tiles.filters-closed .hide-filter-sidebar {
        max-height: 0;
    }
    .category-search .row-product-tiles.filters-closed .layout-options {
        margin-bottom: 15px;
    }
    /* -- Filter Sidebar -- */
    .category-search .filter-sidebar {
        padding: 0;
        margin-bottom: 40px;
        margin: 0 0 30px 0;
    }
    .category-search .filter-sidebar .btn-subcategory {
        font-size: 10pt;
        display: inline-block;
        width: auto;
        margin-right: 5px;
    }
    .category-search .filter-sidebar .filter-sidebar-items {
        padding: 0;
    }
    .category-search .filter-sidebar .filter-sidebar-item {
        padding-top: 0;
    }
    .category-search .filter-sidebar .filter-sidebar-heading h3 {
        font-size: 12pt;
    }
    .category-search .filter-sidebar .small {
        font-size: 10pt;
    }
    .category-search .size-filter-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .category-search .type-filter-grid {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 5px 25px;
    }
    .category-search .type-filter-grid > * {
        flex: 0 0 calc(33.333% - 25px);
    }
    .category-search .size-option-label,
    .category-search .type-label-text,
    .category-search .material-label-text {
        font-size: 10pt;
    }
    .category-search .db-title {
        font-size: 14pt;
    }
    /* -- Product Closet -- */
    .category-search-product-closet .quick-view-body {
        padding: 30px;
    }
    .category-search-product-closet .qv-title {
        font-size: 14pt;
    }
    .category-search-product-closet .qv-description {
        font-size: 10pt;
    }
    /* -- Product Tiles -- */
    .category-search .section-product-tile .tile-content {
        flex-direction: row-reverse;
    }
    .category-search .section-product-tile .tile-title,
    .category-search .section-product-tile .tile-subtitle,
    .category-search .section-product-tile .category-product-pricing {
        text-align: left;
    }
    .category-search .section-product-tile .sla-text {
        margin-top: 3px;
    }
    .category-search .form-control {
        font-size: 12pt;
    }
    /* -- Carousel Wrapper & Items -- */
    .category-search .parent-product-carousel-item {
        width: 100px;
    }
    .category-search .pp-image-wrapper {
        height: 100px;
    }
    /* -- Product Carousel -- */
    .category-search .arrow-left, .arrow-right {
        display: none;
    }
    .category-search .carousel-wrapper {
        padding: 0;
    }
}

@media (max-width: 576px) {
    /* -- Section Product Tiles -- */
    .category-search .material-format-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .category-search .style-format-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .category-search .style-label-text {
        font-size: 10pt;
    }
    /* -- Top Option Wrapper -- */
    .category-search .layout-options .top-option-wrapper {
        flex-direction: column;
    }
    .category-search .layout-options .hide-filter-btn {
        height: 40px;
        width: 40px;
    }
    .category-search .layout-options .hide-filter-btn img {
        width: 25px;
        height: 25px;
    }
    /* -- Filter Sidebar -- */
    .category-search .type-filter-grid {
        flex-direction: column;
    }
    .category-search .material-filter-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .category-search .filter-sidebar .btn-subcategory {
        font-size: 10pt;
    }
    .category-search .filter-sidebar .filter-sidebar-heading {
        padding: 20px;
    }
    .category-search .filter-sidebar h5 {
        font-size: 10pt;
    }
    /* -- Product Closet -- */
    .category-search-product-closet .quick-view-header {
        min-height: 350px;
    }
    .category-search-product-closet .qv-description {
        font-size: 10pt;
    }
    .category-search-product-closet .qv-actions {
        justify-content: center;
    }
    .category-search-product-closet .qv-pricing-section .form-control {
        width: 150px;
    }
    .category-search-product-closet .qv-pricing-section .qv-price-display table {
        transform: none;
        justify-items: center;
    }
    .category-search .qv-pricing-section .qv-price-display table {
        transform: none;
        justify-items: center;
    }
    .category-search .form-control {
        font-size: 10pt;
    }
    .category-search .qv-actions {
        justify-content: center;
    }
}
