*,
*::after,
*::before {
    box-sizing: border-box;
}

.search-wrapper {
    position: relative; 
    width: 350px;
    z-index: 1; /* derrière */
}

.search-wrapper input {
    width: 100%;
    padding: 10px 40px 10px 12px;
    border-radius: 20px;
    border: 3px solid #3d2727;
    background-color: #c7ac99;
    outline: none;
}

.search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.search-btn img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.sort-button {
    padding: 10px 15px;
    background: #2d2d2d;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 45px;
    left: 0;
    background: white;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 200px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.dropdown-content button {
    width: 100%;
    padding: 10px;
    background: white;
    border: none;
    text-align: left;
    cursor: pointer;
}

.dropdown-content button:hover,
.dropdown-content button.selected {
    background: #422b21;
    color: white;
}


.filter {
    position: relative;
    display: inline-block;
}

.filter-button {
    padding: 10px 15px;
    background: #2d2d2d;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.filter-menu {
    display: none;
    position: absolute;
    top: 45px;
    left: 0;
    width: 260px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

details summary {
    cursor: pointer;
    padding: 6px;
    background: #f2f2f2;
    border-radius: 4px;
    margin-bottom: 5px;
}

.options {
    margin-left: 15px;
    margin-top: 5px;
}

.option {
    display: block;
    padding: 6px;
    cursor: pointer;
    border-radius: 4px;
}

.option.selected {
    background: #794b0c;
    color: white;
}

.sort-container {
    position: relative;
    z-index: 10; /* devant */
}

.sort-option.active {
    background-color: #e5e5e5;
    font-weight: bold;
}
