/*@import "tailwindcss";*/

body {
    padding: 10px;
}

h1 {
    text-align: center;
}

#searchbox {
    margin-bottom: 20px;
    background-color: white;
    border: #a49e8e;
    border-radius: 0;
    font-size: 16px;
}

.ais-SearchBox-input {
    font-size: 16px;
    max-width: 500px;
    padding: 15px 15px 15px 25px;
    border: 1px solid #a49e8e;
    border-radius: 0;
    text-align: center;
}

.ais-SearchBox-input::placeholder {
    color: #7c7363;
    align-items: center;
}

.ais-Hits-item {
    margin: 0;
    width: 289px;
    height: 410px;
    border: 1px solid lightgray;
}

.ais-Hits--empty {
    display: none;
}

.hits {
    margin: 20px;
    justify-content: center;
}

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


.hit h2 {
    font-size: 16px;
}

.hit img {
    width: 250px;
    height: 250px;
    object-fit: contain;
    margin-bottom: 10px;
}

.hit-separator {
    border: none;
    border-top: 1px solid darkgray;
    margin-bottom: 10px;
}

.row {
    display: flex;
    padding-top: 10px;
    padding-bottom: 10px;
    background-color: #ECECEC;
    align-items: flex-start;
    min-height: 100vh;
}

.filter-column {
    flex: 0 0 24%;
    padding: 15px;
    background-color: white;
    margin-right: 10px;
    border-radius: 10px;
    border-color: white;
    height: auto;
    position: sticky;
    top: 10px;
    bottom: 10px;
    max-height: 100vh;
    overflow-y: auto;
}

.filter-column::-webkit-scrollbar {
    width: 6px;
}

.filter-column::-webkit-scrollbar-thumb {
    background-color: black;
    border-radius: 8px;
}

.filter-column::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.products-column {
    flex: 0 0 75%;
    padding: 5px;
    background-color: white;
    /*margin-right: 10px;*/
    border-radius: 10px;
    border-color: white;
    width: auto;
    z-index: 20;
}

.prices-row{
    display: flex;
    justify-content: start;
    font-family: Montserrat, serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 120%;
}

em {
    font-weight: bold;
}

.ais-Stats-text {
    font-size: medium;
    color: #747474;
}

.ais-RefinementList-showMore{
    background-color: dimgrey;
}

.ais-RefinementList-showMore:hover{
    background-color: darkgrey;
}

.ais-ClearRefinements-button {
    color: black !important;
    background-color: white !important;
    all: unset;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.ais-ClearRefinements-button--disabled{
    background-color: white;
    color: black !important;
}

.ais-ClearRefinements-button:hover {
    background-color: white;
    border-color: white;
    color: #918A77 !important;
}


.ais-Pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #F0F0F0;
    font-size: 16px;
    font-weight: bold;
    padding: 18px 25px;
    margin: 5px;
    color:  #7c7363;
    border: 1.5px solid #918A77;
    border-radius: 0;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.ais-Pagination-link:hover {
    background-color: #487254;
    border-color: #918A77;
    color: white;
}

.ais-Pagination-item--selected .ais-Pagination-link {
    background-color: #487254;
    color: white;
    border-color: #7c7363;
}

#sort-by-dropdown ul.category-level {
    list-style: none;
    padding: 0;
    margin: 0;
}

#sort-by-dropdown ul.category-level li {
    padding-top: 10px;
    padding-bottom: 10px;
}

#sort-by-dropdown ul.category-level li:last-child {
    border-bottom: none;
}

#sort-by-dropdown .category-label {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    cursor: pointer;
    color: #918A77;
    font-size: 14px;
}

.category-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    color: #2b2a26;
}

.category-label input[type="radio"] {
    appearance: none;
    width: 14px;
    height: 14px;
    border: 1px solid #ECECEC;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    cursor: pointer;
    margin-right: 6px;
}

.category-label input[type="radio"]:checked {
    border-color: black;
}

.category-label input[type="radio"]:checked::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 7px;
    height: 7px;
    background-color: black;
    color: black;
    border-radius: 50%;
}


.category-label .label-text {
    font-family: Montserrat, sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 150%;
    color: #918A77;
}

.category-label input[type="radio"]:checked + .label-text {
    font-weight: bold;
    color: black;
}

#sort-by-dropdown .ais-RefinementList-labelText {
    font-size: 14px;
    color: #918A77;
}

/*hits per page dropdown*/
.custom-dropdown {
    position: relative;
    display: inline-block;
}

#dropdownToggle {
    font-family: Montserrat, serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 150%;
    padding: 10px 15px;
    margin-right: 30px;
    background-color: white;
    color: black;
    border: 1px solid #ECECEC;
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    list-style: none;
    padding: 0;
    margin: 5px 0 0;
    border: 1px solid #ccc;
    width: 100%;
    z-index: 1000;
}

.dropdown-menu li {
    padding: 10px 15px;
    cursor: pointer;
}

.dropdown-menu li:hover,
.dropdown-menu li.active {
    background-color: #f0f0f0;
}

.collapsed {
    display: none;
}

#category-filter ul.category-level {
    list-style: none;
    padding: 0;
    margin: 0;
}

#category-filter ul.category-level li {
    padding-top: 10px;
    padding-bottom: 10px;
}

#category-filter ul.category-level li:last-child {
    border-bottom: none;
}

#category-filter .category-label {
    display: flex;
    justify-content: start;
    align-items: center;
    cursor: pointer;
    color: #918A77;
    text-transform: uppercase;
    font-size: 14px;
}

#category-filter input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #ECECEC;
    background-color: white;
    cursor: pointer;
    position: relative;
    border-radius: 4px;
    margin-right: 10px;
}

#category-filter input[type="checkbox"]:checked {
    background-color: white;
    border-color: black;
}

input[type="checkbox"]:checked + .ais-RefinementList-labelText {
    font-weight: bold;
    color: black;
}

.category-label input[type="checkbox"]:checked + .label-text {
    font-weight: bold;
    color: black;
}

#category-filter input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 4px;
    height: 9px;
    border: solid black;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}


#category-filter .ais-RefinementList-labelText {
    font-size: 16px;
    color: #918A77;
}

#category-filter .ais-RefinementList-count {
    display: none;
}

/* Optional: indent child levels like level-1 and level-2 */
#category-filter ul.category-level.level-1 {
    padding-left: 10px;
}

#category-filter ul.category-level.level-2 {
    padding-left: 20px;
}


.dropdown {
    position: relative;
    width: 100%;
    border-bottom: 1px solid #a49e8e;
}

.dropdown-toggle {
    font-family: Montserrat, sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 120%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 20px 2px;
}

.arrow-icon {
    transition: transform 0.3s ease;
    margin-left: 8px;

}

.dropdown-toggle.open .arrow-icon {
    transform: rotate(180deg);
}

#dropdownToggle.open .arrow-icon {
    transform: rotate(180deg);
}

.dropdown-toggle:hover {
    background-color: #f5f5f5;
    border-color: #7c7363;
}

.show-more-filters-btn.open .arrow-icon {
    transform: rotate(180deg);
}

.ais-RefinementList-count {
    display: none;
}

.ais-RefinementList-labelText{
    font-family: Montserrat, sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 150%;
    color: #918A77;
    text-transform: uppercase;
}

.ais-RefinementList-checkbox {
    appearance: none;
    width: 18px;
    height: 18px;
    margin-right: 10px;
    border: 2px solid #ECECEC;
    background-color: white;
    cursor: pointer;
    position: relative;
    border-radius: 4px;
}

.ais-RefinementList-checkbox:checked {
    background-color: white;
    border-color: black;
}

.ais-RefinementList-checkbox:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 4px;
    height: 9px;
    border: solid black;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}


.ais-RefinementList-label {
    display: flex;
    justify-content: start;
    align-items: center;
    cursor: pointer;
}

.ais-RefinementList-item{
    /*border-bottom: 1px solid #a49e8e;*/
    padding-top: 10px;
    padding-bottom: 10px;
}

.dropdown-content {
    display: none;
    width: 100%;
    border: none;
    border-top: 1px solid #a49e8e;
    padding: 10px;
    box-shadow: none;
    position: static;
}

.dropdown-content.show {
    display: block;
}


.filters-row {
    display: flex;
    flex-direction: column;
    padding: 0;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #a49e8e;
}


.filter-header h3 {
    font-family: 'Lora', serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 150%;
    margin: 0;
}

/* Price Slider */
#price-range-slider {
    margin-top: 20px;
    margin-bottom: 16px;
    margin-right: 30px;
}

.noUi-target {
    background: #ddd !important;
    border: none !important;
    box-shadow: none !important;
    height: 6px !important;
    border-radius: 50px !important;
}

.noUi-connect {
    background-color: black !important;
    height: 6px !important;
    border-radius: 50px !important;
}

.noUi-handle {
    background-color: black !important;
    border: none !important;
    border-radius: 50% !important;
    width: 16px !important;
    height: 16px !important;
    top: -5px !important;
    box-shadow: none !important;
    cursor: pointer !important;
}

.noUi-handle::before,
.noUi-handle::after {
    display: none !important;
}

.range-labels {
    display: flex;
    justify-content: space-between;
    gap: 45px;
}

.range-labels input {
    width: 100px;
    padding: 5px 20px;
    font-size: 14px;
    text-align: center;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #2e2e2e;
}

.range-labels span {
    align-self: center;
    font-weight: bold;
    color: #2e2e2e;
}
/* Price Slider End */


.row-stats{
    display: flex;
    padding: 20px;
    margin-top: 10px;
    align-items: center;
    justify-content: end;
}

#applied-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
    border-bottom: 1px solid #918A77;
}

.applied-filters-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    overflow: hidden;
    max-height: none;
    padding-bottom: 10px;
    transition: max-height 0.3s ease;
}

.applied-filters-list.collapsed {
    max-height: 150px;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

.applied-filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.applied-filters-header h4 {
    font-family: Montserrat, serif;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    line-height: 150%;
    padding-left: 2px;
    margin: 0;
}

.show-more-filters-btn {
    background: none;
    border: none;
    color: #333;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    font-size: 14px;
}


.ais-CurrentRefinements-item{
    color: #918A77;
    background-color: white;
    border: 1px solid #918A77;
    border-radius: 0;
    padding: 10px;
    align-items: center;
    margin-right: 5px;
    margin-bottom: 10px;
}

.ais-CurrentRefinements-label{
    color:#918A77;
}

.ais-CurrentRefinements-category{
    color: #918A77;
}

.ais-CurrentRefinements-categoryLabel{
    color: #918A77;
}

.ais-CurrentRefinements-delete{
    color: #918A77;
}

.applied-filter {
    font-family: Montserrat, serif;
    font-weight: 500;
    line-height: 120%;
    font-size: 12px;
    color: #918A77;
    background-color: white;
    border: 1px solid #918A77;
    border-radius: 0;
    padding: 6px;
    align-items: center;
    margin-right: 5px;
    margin-bottom: 5px;
}



.applied-filter button {
    background: none;
    border: none;
    font-size: 16px;
    margin-left: 5px;
    cursor: pointer;
}

.view-toggle button {
    padding: 5px 5px;
    margin: 2px;
    background-color: white;
    cursor: pointer;
}

.view-toggle button.active {
    color: white;
}
table {
    width: 100%;
    border-collapse: collapse;
}
th {
    padding: 10px 10px 10px 0;
    border-bottom: 1px solid #ddd;
    text-align: left;
    font-family: Montserrat, serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 150%;
}

td {
    padding: 10px 10px 10px 0;
    border-bottom: 1px solid #ddd;
    text-align: left;
    font-family: Montserrat, serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 150%;
}

.product-brand{
    font-family: Lora, sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 150%;
}

.product-name{
    font-family: Montserrat, serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 120%;
}

button .active-icon {
    display: none;
}
button .inactive-icon {
    display: inline;
}
button.active .active-icon {
    display: inline;
}
button.active .inactive-icon {
    display: none;
}

.dropdown-content {
    max-height: 350px;
    overflow-y: auto;
}

.dropdown-content::-webkit-scrollbar {
    width: 8px;
}

.dropdown-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.dropdown-content::-webkit-scrollbar-thumb {
    background-color: #487254;
    border-radius: 10px;
}

.dropdown-content::-webkit-scrollbar-thumb:hover {
    background-color: #487254;
}

.dropdown-content input[type="text"] {
    font-family: Montserrat, serif;
    font-weight: 600;
    line-height: 150%;
    font-size: 16px;
    width: 100%;
    color:  #7c7363;
    border-bottom: 1px solid #ECECEC;
    top: 2px;
    background: white;
    z-index: 10;
    padding-left: 35px;
}


.input-with-icon {
    position: relative;
    width: 100%;
}

.input-with-icon input {
    padding-left: 32px;
    height: 40px;
    width: 100%;
    box-sizing: border-box;
}

.input-with-icon .search-icon {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #888;
}

.ais-Stats-text {
    font-family: Montserrat, serif !important;
    font-weight: 500 !important;
    font-size: 12px !important;
    line-height: 120% !important;
}

/*.profit-calculator-button{*/
/*    font-family: Montserrat, serif;*/
/*    font-weight: 600;*/
/*    line-height: 150%;*/
/*    margin-right: 20px;*/
/*    font-size: 16px;*/
/*    text-decoration: underline;*/
/*}*/

/*.modal-overlay {*/
/*    display: none;*/
/*    position: fixed;*/
/*    inset: 0;*/
/*    background-color: rgba(0,0,0,0.4);*/
/*    justify-content: center;*/
/*    align-items: center;*/
/*    z-index: 999;*/
/*}*/

/*.modal-overlay.show {*/
/*    display: flex;*/
/*}*/

/*.modal-content {*/
/*    background: white;*/
/*    padding: 30px 50px;*/
/*    border-radius: 12px;*/
/*    box-shadow: 0 10px 30px rgba(0,0,0,0.2);*/
/*    max-width: 600px;*/
/*    width: 100%;*/
/*    text-align: center;*/
/*}*/

/*.input-group {*/
/*    display: flex;*/
/*    gap: 20px;*/
/*    margin-bottom: 20px;*/
/*}*/

/*.input-group input {*/
/*    flex: 1;*/
/*    padding: 15px;*/
/*    font-size: 16px;*/
/*    border: 1px solid #ccc;*/
/*}*/

/*input:focus {*/
/*    border-color: #487254;*/
/*    outline: none;*/
/*}*/

/*.button-group {*/
/*    display: flex;*/
/*    gap: 20px;*/
/*}*/

/*.btn-reset {*/
/*    flex: 1;*/
/*    padding: 15px;*/
/*    font-size: 16px;*/
/*    border: 1px solid #ccc;*/
/*    background: white;*/
/*    cursor: pointer;*/
/*}*/

/*.btn-submit {*/
/*    flex: 1;*/
/*    padding: 15px;*/
/*    font-size: 16px;*/
/*    background-color: #406c50;*/
/*    color: white;*/
/*    border: none;*/
/*    cursor: pointer;*/
/*}*/

/*.title-line {*/
/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*    gap: 20px;*/
/*    margin: 20px 0;*/
/*}*/

/*.title-line .line {*/
/*    flex: 1;*/
/*    height: 1px;*/
/*    background-color: #e5e5e5;*/
/*    border: none;*/
/*}*/

/*.title-line span {*/
/*    font-size: 24px;*/
/*    color: #2b2a26;*/
/*}*/


/*brand modal*/
.brand-modal {
    flex: 0 0 75%;
    background: white;
    padding: 10px;
    overflow-y: auto;
    display: none;

}

.brand-modal.show {
    display: block;
    background: white;
    border-radius: 10px;
    z-index: 50;
    height: 100vh;

}

.brand-modal-content {
    background: white;
    padding: 10px;
    width: 100%;
    max-height: 100vh;
    overflow-y: auto;
    position: relative;
}
.category-group-title {
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 18px;
}

.category-subitem {
    margin-left: 16px;
    margin-bottom: 6px;
    color: #333;
}

.close-modal-btn {
    display: flex;
    align-items: center;
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 16px;
    border: none;
    background: none;
    cursor: pointer;
    color: black;
}

/*.close-modal-btn {*/
/*    display: flex;*/
/*    align-items: center;*/
/*    position: sticky;*/
/*    top: 0;*/
/*    left: auto;*/
/*    right: 0;*/
/*    z-index: 10;*/
/*    font-size: 16px;*/
/*    border: none;*/
/*    cursor: pointer;*/
/*    color: black;*/
/*    padding: 10px 20px;*/
/*}*/

.back-btn {
    font-family: Montserrat, serif;
    font-weight: 600;
    line-height: 120%;
    font-size: 16px;
    margin-left: 15px;
}

.brand-modal-content h2 {
    font-family: Lora, serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 150%;
    text-align: center;
    color: black;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.brand-modal-content p {
    font-family: Montserrat, serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 150%;
    color: black;
    text-align: center;
    margin-bottom: 25px;
}

.view-all-btn {
    font-family: Montserrat, sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #2B2A26;
    position: absolute;
    right: 40px;
    top: 20px;
    background: none;
    border: none;
    text-decoration: underline;
    cursor: pointer;
    z-index: 2;
    padding: 0;
}

.alphabet-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 50px;
}

.alphabet-filter button {
    padding: 6px 12px;
    background-color: #FBFBFB;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.alphabet-filter button:hover {
    background-color: #ECECEC;
    color: black;
}

.all-brands-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 40px;
}

.brand-group h3 {
    font-size: 20px;
    margin-bottom: 10px;
}


.brand-letter-group {
    display: flex;
    flex-direction: column;
}

.brand-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 30px;
    margin-top: 10px;
}

.all-brands-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.brand-letter-row {
    display: flex;
    align-items: center;
    gap: 40px;
}

.brand-letter-title {
    font-size: 50px;
    font-family: Lora, serif;
    font-weight: 400;
    color: black;
    min-width: 60px;
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    grid-auto-rows: auto;
    max-width: 100%;
    gap: 10px 30px;
    list-style: none;
    padding: 0;
    margin-bottom: 50px;
}

.brand-list-item {
    font-family: Montserrat, serif;
    font-weight: 600;
    font-size: 14px;
    line-height: 150%;
    color: black;
    cursor: pointer;
}

.brand-list-item:hover {
    color: #747474;
}

.brand-count {
    color: #747474;
}

.brand-list-item.selected {
    background-color: #f0f0f0;
    border-radius: 4px;
}
/*brand modal end*/
.category-columns {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    width: 100%;
    padding: 20px 0;
}

/* Each level column */
.category-column {
    flex: 1;
    min-width: 0;
}

/* Optional: visually separate the columns */
.category-column.lvl0,
.category-column.lvl1,
.category-column.lvl2 {
    border-right: 1px solid #ddd;
    padding-right: 15px;
}

/* Last column no border */
.category-column.lvl2 {
    border-right: none;
}

/* List reset */
.category-column ul,
.category-column li {
    list-style: none;
    padding: 6px 6px;
    margin-bottom: 5px;
}

/* Checkbox styling inside li */
.category-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

/* Ensure consistent spacing */
.label-text {
    margin-left: 5px;
    flex-grow: 1;
}

.category-item.selected {
    /*background-color: #ECECEC;*/
    background-color: #F5F5F5;
    border-radius: 2px;
    font-weight: 600;
    color: black;
}

.category-item {
    text-transform: uppercase;
    cursor: pointer;
    font-family: Montserrat, serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 150%;
    color: #747474;
}

.category-item:hover{
    color: black;
    background-color:  #ECECEC;
}

/* Tab navigation at top of modal */
.modal-tabs {
    display: flex;
    justify-content: center;
    margin: 0 0 1.5rem;
    padding: 0;
    list-style: none;
    border-bottom: 1px solid #e0e0e0;
}

.modal-tabs li {
    position: relative;
    cursor: pointer;
    padding: 0.5rem 27px;
    font-size: 20px;
    font-weight: 600;
    font-family: Lora, serif;
    line-height: 150%;
    text-transform: uppercase;
    color: #747474;
    transition: color 0.2s;
}

.modal-tabs li:hover {
    color: #000;
}

.modal-tabs li.active {
    color: #000;
    font-weight: 600;
    font-family: Lora, serif;
    line-height: 150%;
    font-size: 20px;
}

.modal-tabs li.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: black;
    border-radius: 2px 2px 0 0;
}

/*sizes table*/
#size-checkboxes .ais-RefinementList-list {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr); /* ✅ 3 columns */
    margin: 0;
    list-style: none;
    padding-top: 15px;
}

#size-checkboxes .ais-RefinementList-item {
    margin: 0;
    padding: 0;
}

.size-grid-box {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    border: 1px solid #ECECEC;
    background: white;
    font-weight: 600;
    font-size: 14px;
    font-family: Montserrat, serif;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
    text-align: center;
    text-transform: none;
    width: 100%;
    color: black;
}

.size-grid-box input[type="checkbox"] {
    display: none;
}

.size-grid-box.selected{
    background-color: #ECECEC;
    color: black;
    border-color: #ECECEC;
}
.size-grid-box:hover {
    background-color:#FBFBFB;
    color: black;
    border-color: #ECECEC;
}





/* Product Groups filter style identical to Category filter */
.group-level {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.group-level li {
    margin-bottom: 6px;
    padding-left: 0;
}

.group-label {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    cursor: pointer;
    color: #9c9389; /* default light brown */
    font-weight: 500;
}

.group-label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #bfbfbf;
    border-radius: 2px;
    margin-right: 10px;
    position: relative;
    cursor: pointer;
    background-color: #fff;
}

.group-label input[type="checkbox"]:checked {
    border-color: #000;
    background-color: #000;
}

.group-label input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 6px;
    width: 4px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.group-label input[type="checkbox"]:focus {
    outline: none;
}

.group-level.level-0 .group-label {
    font-weight: bold;
    color: #000;
}

.group-level.level-1 .group-label,
.group-level.level-2 .group-label,
.group-level.level-3 .group-label {
    padding-left: 20px;
    font-weight: 500;
    color: #9c9389;
}

.ais-RefinementList-count {
    display: none;
}


/* ===== GROUP FILTER: mirror of #category-filter ===== */

#group-filter ul.group-level {
    list-style: none;
    padding: 0;
    margin: 0;
}

#group-filter ul.group-level li {
    padding-top: 5px;
    padding-bottom: 5px;
}

#group-filter ul.group-level li:last-child {
    border-bottom: none;
}

#group-filter .group-label {
    display: flex;
    justify-content: start;
    align-items: center;
    cursor: pointer;
    color: #918A77;
    text-transform: uppercase;
    font-size: 14px; /* same as #category-filter .category-label */
}

/* Checkbox identical to category checkboxes */
#group-filter input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #ECECEC;
    background-color: white;
    cursor: pointer;
    position: relative;
    border-radius: 4px;
    margin-right: 10px;
}

#group-filter input[type="checkbox"]:checked {
    background-color: white;
    border-color: black;
}

/* Label text style + bold/black when checked (same sibling structure as categories) */
#group-filter .group-label .label-text {
    font-family: Montserrat, sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 150%;
    color: #918A77;
}

#group-filter .group-label input[type="checkbox"]:checked + .label-text {
    font-weight: bold;
    color: black;
}

/* Draw the black checkmark like categories */
#group-filter input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 4px;
    height: 9px;
    border: solid black;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Hide counts, same as categories */
#group-filter .ais-RefinementList-count {
    display: none;
}

/* Indentation for nested levels like categories */
#group-filter ul.group-level.level-1 {
    padding-left: 10px;
}
#group-filter ul.group-level.level-2 {
    padding-left: 20px;
}
