.subcategory {
    padding-top: 165px;
}
.subcategory__wrapper .filters {
    margin-top: 40px;
    background-color: #eff3ff;
    padding: 40px 50px;
    border-radius: 10px;
}
.subcategory__wrapper .filters__title {
    font-weight: 700;
    font-size: 18px;
    color: #021549;
}
.subcategory__wrapper .filters__wrapper {
    margin-top: 16px;
    display: flex;
    justify-content: space-between;
}
.subcategory__wrapper .filters__box {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    width: 100%;
}
.subcategory__wrapper .filters__box-reset {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}
.subcategory__wrapper .filters__box-reset span {
    font-size: 16px;
    color: #6a7d94;
}
.subcategory__wrapper .filters__box-item {
    width: 100%;
    position: relative;
    border: none;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    max-height: 40px;
    cursor: pointer;
    background-color: #fff;
}
.subcategory__wrapper .filters__box-item span {
    overflow-x: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.subcategory__wrapper .filters__box-item .arrow {
    width: 9px;
    height: 9px;
    border-left: 1px solid #021549;
    border-bottom: 1px solid #021549;
    transform: rotate(-45deg);
    transition: all 0.2s ease;
}
.subcategory__wrapper .filters__box-item.open .arrow {
    transform: rotate(135deg);
}
.subcategory__wrapper .filters__dropdown {
    position: absolute;
    top: calc(100% - 2px);
    left: 0;
    background-color: #fff;
    border: none;
    border-top: 0;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 8px rgb(0 0 0 / 0.05);
    z-index: 10;
    padding: 10px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 160px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #850003 #8b8b91;
}
.subcategory__wrapper .filters__dropdown::-webkit-scrollbar {
    width: 2px;
    border-radius: 3px;
}
.subcategory__wrapper .filters__dropdown::-webkit-scrollbar-track {
    background: #8b8b91;
    border-radius: 3px;
}
.subcategory__wrapper .filters__dropdown::-webkit-scrollbar-thumb {
    background-color: #850003;
    border-radius: 3px;
}
.subcategory__wrapper .filters__dropdown label {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.subcategory__wrapper .filters__dropdown label input[type="checkbox"] {
    accent-color: #850003;
}
.subcategory__wrapper .filters__dropdown.hidden {
    display: none;
}
.subcategory__wrapper .filters__search {
    position: sticky;
    top: 0;
    background: #fff;
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid #dfe4f3;
}
.subcategory__wrapper .filters__search-input {
    width: 100%;
    height: 34px;
    padding: 6px 10px;
    border: 1px solid #dfe4f3;
    border-radius: 4px;
    font-size: 14px;
}
.subcategory__showmore {
    margin-top: 30px;
}
.subcategory__showmore-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 40px;
    background-color: #fff0;
    border: 1px solid #dfe4f3;
    border-radius: 5px;
    color: #021549;
    text-decoration: underline;
    cursor: pointer;
}
.subcategory__showmore-button:hover {
    background-color: #f9faff;
}
.subcategory .pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: #021549;
    font-size: 20px;
    margin-top: 30px;
}
.subcategory .pagination__num {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
    border-radius: 50%;
}
.subcategory .pagination__num:hover {
    color: #fff;
    background-color: #850003;
}
.subcategory .pagination__num.current {
    color: #fff;
    background-color: #850003;
}
.subcategory .pagination .arrow {
    width: 9px;
    height: 9px;
    border-left: 1px solid #021549;
    border-bottom: 1px solid #021549;
}
.subcategory .pagination .arrow:hover {
    border-left: 1px solid #021549;
    border-bottom: 1px solid #021549;
    cursor: pointer;
}
.subcategory .pagination .arrow-left {
    transform: rotate(45deg);
}
.subcategory .pagination .arrow-right {
    transform: rotate(-135deg);
}
.subcategory__products {
    margin-top: 40px;
}
.subcategory__products-title {
    color: #7898a1;
    font-size: 16px;
}
.subcategory__products-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
}
.subcategory__product {
    display: grid;
    grid-template-areas: "image title title title price btn" "image chars chars chars counter .";
    padding: 20px;
    border-radius: 10px;
    column-gap: 16px;
    border: 1px solid #dfe4f3;
    grid-template-columns: 85px 1fr 1fr 1fr 150px 45px;
    transition: all 0.3s ease;
}
.subcategory__product-img {
    grid-area: image;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 2px;
}
.subcategory__product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.subcategory__product-title {
    grid-area: title;
    font-size: 18px;
    font-weight: 700;
}
.subcategory__product-chars {
    grid-area: chars;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 20px;
    row-gap: 10px;
}
.subcategory__product-chars .char {
    font-size: 14px;
    color: #8b8b91;
    font-weight: 400;
}
.subcategory__product-chars .char span {
    color: #021549;
}
.subcategory__product-price {
    grid-area: price;
    font-size: 16px;
}
.subcategory__product-counter {
    grid-area: counter;
    display: flex;
    gap: 2px;
}
.subcategory__product-counter .minus,
.subcategory__product-counter .plus {
    background-color: #f9faff;
    width: 40px;
    height: 35px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.subcategory__product-counter input {
    width: 50px;
    height: 35px;
    border: none;
    outline: none;
    background-color: #f9faff;
    padding: 5px;
    text-align: center;
}
.subcategory__product .addtocart {
    grid-area: btn;
    width: 44px;
    height: 44px;
    border: none;
    outline: none;
    background-color: #021549;
    padding: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
}
.subcategory__product .addtocart::after {
    content: "";
    position: absolute;
    right: -4px;
    top: -5px;
    width: 20px;
    height: 20px;
    background-color: #fff;
    border-radius: 50%;
    z-index: 2;
    display: none;
}
.subcategory__product .addtocart::before {
    content: "";
    position: absolute;
    right: 2px;
    top: -1px;
    width: 7px;
    height: 10px;
    border-bottom: 2px solid #850003;
    border-right: 2px solid #850003;
    z-index: 3;
    transform: rotate(45deg);
    display: none;
}
.subcategory__product.purchased {
    background-color: #eff3ff;
}
.subcategory__product.purchased .addtocart {
    background-color: #850003;
}
.subcategory__product.purchased .addtocart::after {
    display: block;
}
.subcategory__product.purchased .addtocart::before {
    display: block;
}
@media screen and (max-width: 992px) {
    .subcategory__wrapper .filters__box {
        grid-template-columns: repeat(3, 1fr);
    }
    .subcategory__wrapper .filters {
        padding: 30px 20px;
    }
    .subcategory__wrapper .filters__title {
        font-size: 16px;
    }
    .subcategory__product {
        grid-template-areas: "image title title price btn" "image chars chars counter ." ". chars chars . . " ". chars chars . .";
        width: 100%;
        grid-template-columns: 85px 1fr 1fr 136px 45px;
    }
    .subcategory__product-chars {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        row-gap: 8px;
    }
    .subcategory__product-title {
        font-size: 16px;
    }
    .subcategory .pagination {
        font-size: 16px;
    }
    .subcategory .pagination__num {
        width: 30px;
        height: 30px;
    }
}
@media screen and (max-width: 692px) {
    .subcategory__wrapper .filters__box {
        grid-template-columns: 100%;
    }
    .subcategory__product {
        grid-template-areas: "image . ." "image . ." "title title title" "chars chars chars" "chars chars chars" "chars chars chars" "price price ." "counter . btn";
        row-gap: 16px;
        column-gap: 10px;
        grid-template-columns: 85px 1fr 1fr;
    }
    .subcategory__product .addtocart {
        align-self: end;
        justify-self: end;
    }
    .subcategory__product-chars .char {
        font-size: 12px;
    }
    .subcategory__product-price {
        font-size: 14px;
    }
    .subcategory__product {
        padding: 10px;
    }
    .subcategory__wrapper .filters__title {
        position: relative;
        cursor: pointer;
        padding-right: 30px;
        user-select: none;
    }
    .subcategory__wrapper .filters__title::after {
        content: "";
        position: absolute;
        top: 50%;
        right: 10px;
        width: 10px;
        height: 10px;
        border-bottom: 2px solid #021549;
        border-right: 2px solid #021549;
        transform: translateY(-50%) rotate(45deg);
        transition: transform 0.3s ease;
    }
    .filters.is-open .filters__title::after {
        transform: translateY(-50%) rotate(225deg);
    }
    .subcategory__wrapper .filters__wrapper {
        max-height: 0;
        overflow: hidden;
        margin-top: 0;
        transition: max-height 0.3s ease;
        opacity: 1;
        visibility: visible;
    }
    .filters.is-open .filters__wrapper {
        margin-top: 16px;
        padding-bottom: 20px;
    }
    .subcategory__wrapper .filters__box {
        grid-template-columns: 100%;
        gap: 15px;
    }
    .subcategory__wrapper .filters__box-item {
        max-height: none;
        min-height: 40px;
    }
    .subcategory__wrapper .filters__dropdown {
        max-height: 200px;
        z-index: 1000;
    }
    .filters__box-reset {
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid #dfe4f3;
    }
}
.filter-tooltip {
    position: fixed;
    background-color: #2c3e50;
    color: #fff;
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 14px;
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
    transform: translateY(10px);
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}
.filter-tooltip.show {
    opacity: 1;
    transform: translateY(0);
}
.filters__dropdown label {
    position: relative;
    display: block;
}
.disabled-filter-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff0;
    cursor: not-allowed;
    z-index: 2;
}
.active-filters {
    margin-top: 20px;
    padding: 15px 0;
    border-top: 1px solid #e0e6ed;
    border-bottom: 1px solid #e0e6ed;
}
.active-filters__container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.active-filter {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background-color: #eff3ff;
    border: 1px solid #bacade;
    border-radius: 30px;
    font-size: 14px;
    color: #16224a;
}
.active-filter__remove {
    margin-left: 8px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.active-filter__remove svg {
    transition: fill 0.2s ease;
}
.active-filter__remove:hover svg {
    fill: #228aed;
}
@media (max-width: 768px) {
    .active-filters {
        padding: 12px 0;
    }
    .active-filter {
        padding: 5px 10px;
        font-size: 13px;
    }
}
.search-results__title {
    margin-top: 60px;
    font-size: 24px;
    font-weight: 700;
}
.search-results__title span {
    font-size: 18px;
    font-weight: 400;
}
@media screen and (max-width: 992px) {
    .search-results__title {
        font-size: 20px;
        margin-top: 40px;
    }
    .search-results__title span {
        font-size: 16px;
    }
}
.subcategory .subcats {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
.subcat-card {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px;
    text-decoration: none;
    color: #2d3748;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgb(0 0 0 / 0.02);
    min-height: 100px;
    max-height: 100px;
    overflow: hidden;
    position: relative;
}
.subcat-card:hover {
    box-shadow: 0 6px 20px rgb(2 21 73 / 0.12);
    border-color: #021549;
    background: #f8faff;
}
.subcat-card__image {
    width: 70px;
    height: 70px;
    min-width: 70px;
    border-radius: 6px;
    overflow: hidden;
    margin-right: 14px;
    border: 1px solid #f1f5f9;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.subcat-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.subcat-card:hover .subcat-card__image img {
    transform: scale(1.08);
}
.subcat-card__content {
    flex: 1;
    min-width: 0;
    padding-right: 8px;
}
.subcat-card__name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
    color: #2d3748;
}
.subcat-card:hover .subcat-card__name {
    color: #021549;
}
.subcat-card__arrow {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    transition: all 0.3s ease;
    flex-shrink: 0;
    opacity: 0.7;
}
.subcat-card:hover .subcat-card__arrow {
    color: #021549;
    opacity: 1;
    transform: translateX(2px);
}
.subcat-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    border-radius: 10px;
    z-index: -1;
}
.subcat-card:hover::after {
    opacity: 1;
}
@media (max-width: 1400px) {
    .subcategory .subcats {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 1200px) {
    .subcategory .subcats {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}
@media (max-width: 768px) {
    .subcategory .subcats {
        display: flex;
        grid-template-columns: none;
        gap: 0;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        padding: 10px 0 20px 0;
        margin-left: -15px;
        margin-right: -15px;
        padding-left: 15px;
        padding-right: 15px;
        scrollbar-width: thin;
        scrollbar-color: #cbd5e0 #fff0;
    }
    .subcategory .subcats::-webkit-scrollbar {
        height: 4px;
    }
    .subcategory .subcats::-webkit-scrollbar-track {
        background: #f1f5f9;
        border-radius: 2px;
    }
    .subcategory .subcats::-webkit-scrollbar-thumb {
        background: #cbd5e0;
        border-radius: 2px;
    }
    .subcategory .subcats::-webkit-scrollbar-thumb:hover {
        background: #94a3b8;
    }
    .subcat-card {
        flex: 0 0 auto;
        width: 280px;
        margin-right: 12px;
        padding: 12px;
        min-height: 90px;
        max-height: 90px;
        scroll-snap-align: start;
    }
    .subcat-card:last-child {
        margin-right: 0;
    }
    .subcat-card__image {
        width: 60px;
        height: 60px;
        min-width: 60px;
        margin-right: 12px;
    }
    .subcat-card__name {
        font-size: 13px;
        -webkit-line-clamp: 2;
    }
    .subcat-card__arrow {
        width: 20px;
        height: 20px;
    }
}
@media (max-width: 480px) {
    .subcategory .subcats {
        padding-left: 10px;
        padding-right: 10px;
        margin-left: -10px;
        margin-right: -10px;
    }
    .subcat-card {
        width: 260px;
        padding: 10px;
        min-height: 85px;
        max-height: 85px;
        margin-right: 10px;
    }
    .subcat-card__image {
        width: 55px;
        height: 55px;
        min-width: 55px;
        margin-right: 10px;
    }
}



/* État vide des produits */
.products-empty-state {
    text-align: center;
    padding: 2rem 1rem;
}

/* Icône centrée */
.empty-state__icon {
    margin: 0 auto 2rem;
    color: #6c757d;
    width: 64px;
    height: 64px;
}

/* HIGHLIGHT ALTERNATIF - Style simple et élégant */
.availability__highlight {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding: 1rem 0;
    position: relative;
}

.highlight__check {
    color: #198754;
    font-size: 2rem;
    font-weight: bold;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #198754;
    border-radius: 50%;
}

.highlight__text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #198754;
    letter-spacing: 0.3px;
    line-height: 1.3;
}

/* Ligne décorative sous le texte */
.availability__highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #198754;
    border-radius: 2px;
}

/* Message */
.availability__message {
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.5;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Contacts */
.availability__contacts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto 2rem;
}

.contact-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    text-decoration: none;
    color: #212529;
    font-weight: 600;
    transition: all 0.2s ease;
}

.contact-link:hover {
    background: #850003;
    border-color: #850003;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

.contact-link--email:hover {
    background: #850003;
    border-color: #850003;
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.2);
}

.contact-icon {
    font-size: 1.25rem;
}

.availability__note {
    color: #6c757d;
    font-size: 1.9rem;
    margin-top: 1.5rem;
}

.availability__note a {
    color: #850003;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.availability__note a:hover {
    color: #850003;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .availability__highlight {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .highlight__text {
        font-size: 1.3rem;
        text-align: center;
    }
    
    .highlight__check {
        font-size: 1.75rem;
        width: 36px;
        height: 36px;
    }
    
    .availability__message {
        font-size: 1rem;
        padding: 0 0.5rem;
    }
    
    .contact-link {
        padding: 0.875rem 1.25rem;
    }
}

@media (max-width: 480px) {
    .highlight__text {
        font-size: 1.2rem;
    }
    
    .contact-link {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
    }
    
    .empty-state__icon {
        width: 48px;
        height: 48px;
        margin-bottom: 1.5rem;
    }
}