.categorie-page {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 25px;
    align-items: flex-start;
}

.categorie-page .detail-categorie {
    position: sticky;
    top: 100px;
    display: block;
    border-radius: var(--border-radius);
    background: #fff;
    border: solid 1px var(--color-border-light);
    transition: all 0.3s;
    text-align: center;
    overflow: hidden;
}

.all-categorie-page .detail-categorie {
    position: relative;
    display: block;
    border-radius: var(--border-radius);
    background: #fff;
    border: solid 1px var(--color-border-dark);
    transition: all 0.3s;
    overflow: hidden;
    padding: 25px;
    cursor: pointer;
    transition: all 0.3s;
    width: max-content;
    flex-grow: 1;
    box-sizing: border-box;
    transition: all 0.3s;
    color: var(--color-green-secondary);
}

.all-categorie-page .detail-categorie i.icon {
    position: absolute;
    top: 0px;
    right: 10px;
    font-size: 52px;
    color: #31446b;
    opacity: 0.1;
}

.all-categorie-page .detail-categorie:hover {
    background: var(--color-bg-light);
}

.all-categorie-page {
    display: flex;
    justify-content: start;
    gap: 20px;
    flex-wrap: wrap;
}

#resultat-search {
    display: none;
}

.categorie-page .detail-categorie .contenu {
    padding: 0px 25px;
    padding-bottom: 25px;
}

.categorie-page .detail-categorie .contenu p {
    margin-top: 25px;
    margin-bottom: 0px;
}

.all-categorie-page .detail-categorie p.designation {
    margin: 0;
    color: var(--color-text-dark);
    font-size: 16px;
}

.all-supcategorie-page {
    display: flex;
    justify-content: start;
    gap: 20px;
    flex-wrap: wrap;
}

.detail-supcategorie {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: solid 1px var(--color-border-light);
    transition: all 0.3s;
    overflow: hidden;
    padding: 25px 40px;
    background: var(--color-bg-light);
    width: min-content;
    border-radius: var(--border-radius);
    text-transform: uppercase;
    font-weight: 600;
    flex-grow: 1;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: var(--color-green-secondary);
}

.detail-supcategorie:hover {
    background: var(--color-bg-light-hover);
    color: var(--color-green-secondary);
}

h2.title-categorie {
    font-size: 26px;
    font-weight: 200;
    text-transform: uppercase;
}

.detail-supcategorie i {
    opacity: 0.3;
}

.categorie-page .detail-categorie .photo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 150px;
    background: var(--color-bg-light);
    overflow: hidden;
    border: none;
    margin-bottom: 25px;
}

.listsouscategorie {
    display: flex;
    justify-content: start;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.blocksouscategorie {
    position: relative;
    display: block;
    border-radius: var(--border-radius-sm);
    background: #fff;
    border: solid 1px var(--color-border-light);
    transition: all 0.3s;
    overflow: hidden;
    padding: 8px 14px;
    cursor: pointer;
    width: max-content;
    color: var(--color-text-dark);
    font-size: var(--font-size-sm);
}

.blocksouscategorie:hover {
    background: var(--color-bg-light);
    color: var(--color-text-dark);
}

.blocksouscategorie.selected {
    background: var(--color-green-secondary);
    border: solid 1px var(--color-green-secondary);
    color: #fff;
}

.categorie-page .detail-categorie .photo img {
    width: 100%;
    height: 100%;
    transform-origin: center;
    object-fit: cover;
    border: none;
}

.categorie-page .product-categorie .filter-product {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.filter-all-categorie {
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 15px;
    margin-bottom: 15px;
}

.filter-all-categorie .search {
    display: flex;
    align-items: center;
    border: solid 1px var(--color-border-dark);
    border-radius: 50px;
    overflow: hidden;
    position: relative;
}

.filter-all-categorie .search i {
    color: var(--color-text-light);
    font-size: 20px;
    position: absolute;
    top: 6px;
    left: 12px;
    transform: all 0.3s;
}

.filter-all-categorie .search button {
    color: #fff;
    background: var(--color-green-primary);
    text-transform: uppercase;
    font-weight: 600;
    font-size: var(--font-size-sm);
    border-top-right-radius: 50px;
    border-bottom-right-radius: 50px;
    border: solid 4px #fff;
    height: 45px;
    padding: 0px 15px;
}

.all-categorie-page .detail-categorie small {
    color: var(--color-text-light);
}

.filter-all-categorie .search a {
    position: absolute;
    top: 5px;
    right: 125px;
    display: none;
    animation: tilte .3s ease-in-out alternate infinite;
}

.filter-all-categorie .search a i {
    font-size: 24px;
}

.filter-all-categorie .search a:hover i {
    color: #93a9b9;
}

.filter-all-categorie .search a i {
    position: relative;
    top: 0;
    left: 0;
}

.filter-all-categorie .search input {
    height: 45px;
    width: 350px;
    font-size: var(--font-size);
    border: none;
    padding-left: 25px;
    padding-right: 40px;
}

.categorie-page .product-categorie .filter-product .filter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.categorie-page .product-categorie .filter-product .filter label {
    margin-left: 15px;
    font-weight: 600;
    color: var(--color-text-light);
    font-size: 12px;
}

.categorie-page .product-categorie .filter-product .filter select {
    width: 50px;
    height: 35px;
    padding: 0px 10px;
    font-size: 12px;
}

.categorie-page .product-categorie .filter-product .filter div {
    display: flex;
    align-items: center;
    border: solid 1px var(--color-border-dark);
    border-radius: 50px;
    overflow: hidden;
}

.categorie-page .product-categorie .filter-product .filter input {
    height: 45px;
    width: 350px;
    font-size: var(--font-size);
    border: none;
    padding-left: 25px;
}

.categorie-page .product-categorie .filter-product .filter button {
    color: #fff;
    background: var(--color-green-primary);
    text-transform: uppercase;
    font-weight: 600;
    font-size: var(--font-size-sm);
    border-top-right-radius: 50px;
    border-bottom-right-radius: 50px;
    border: solid 4px #fff;
    height: 45px;
    padding: 0px 15px;
}

.categorie-page .product-categorie .contenu-product .list-product {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
    gap: 20px;
}

.categorie-page .product-categorie .contenu-product .list-product .block-product {
    min-width: 225px;
    width: auto;
}

h3 {
    font-weight: 200;
    font-size: 20px;
    color: var(--color-text-dark);
    text-transform: uppercase;
}

@media (max-width: 992px) {
    .filter-all-categorie .search input {
        height: 45px;
        width: 100%;
        font-size: 14px;
        padding-left: 40px;
    }

    .filter-all-categorie .search {
        width: 100%;
    }

    .filter-all-categorie .search i {
        font-size: 24px;
        top: 5px;
        left: 10px;
    }

    .all-categorie-page .detail-categorie p.designation {
        font-size: 20px;
    }

    .all-categorie-page {
        gap: 10px;
    }

    .categorie-page {
        display: block;
    }

    .categorie-page .detail-categorie .contenu {
        position: absolute;
        z-index: 3;
        top: 30px;
        left: 25px;
        text-align: left;
    }

    .categorie-page .detail-categorie .photo {
        margin-bottom: 0px;
        height: 105px;
    }

    .categorie-page .detail-categorie .contenu p {
        margin: 0px;
    }

    .categorie-page .detail-categorie {
        position: relative;
        top: 0px;
        margin-bottom: 15px;

    }

    .categorie-page .detail-categorie h3 {
        color: #fff;
        font-weight: 600;
        text-shadow:
            -1px -2px 5px #00000050,
            1px -2px 5px #00000050,
            -1px 2px 5px #00000050,
            1px 2px 5px #00000050;
        margin: 0;
    }
}

@media (max-width: 768px) {

    .categorie-page .product-categorie .filter-product .filter label,
    .categorie-page .product-categorie .filter-product .filter select {
        display: none;
    }

    .categorie-page .product-categorie .filter-product .filter input {
        height: 45px;
        width: 200px;
        padding-left: 35px;
    }

    .categorie-page .product-categorie .filter-product .filter div i {
        top: 8px;
        left: 10px;
    }

    .categorie-page .product-categorie .contenu-product .list-product {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }

    .categorie-page .product-categorie .contenu-product .list-product .block-product {
        min-width: 150px;
        width: auto;
    }
}

@media (max-width: 520px) {
    .all-categorie-page .detail-categorie p.designation {
        font-size: 20px;
    }

    .categorie-page .detail-categorie .contenu {
        left: 0;
        text-align: center;
    }

    h3.titlepage {
        font-size: 14px;
        margin: 0px;
    }
}