/* Garde ton CSS original pour category-small-container */
.category-small-container.no-margins {
    z-index: 9;
}

.category-small-container {
    z-index: 30;
    width: 100%;
    background-color: #fff;
    border-radius: 4px;
    margin-top: 60px;
    margin-bottom: 60px;
    padding: 0;
    position: relative;
    /* Pas de flexbox, on garde le comportement normal */
}

.category-small-container.no-margins {
    z-index: 18;
    margin-bottom: 0;
    transform: translate(0);
}

/* Position absolue pour la barre de recherche */
.search-container {
    position: absolute;
    top: 50%;
    right: 30px; /* Ajuste cette valeur pour l'éloigner du bord */
    transform: translateY(-50%);
    z-index: 10;
}

.search-form {
    display: flex;
    align-items: center;
    position: relative;
    width: 250px;
}

.search-input {
    width: 100%;
    padding: 10px 45px 10px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s ease;
    background-color: #fff;
}

.search-input:focus {
    border-color: #333;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.search-input::placeholder {
    color: #999;
}

.search-button {
    position: absolute;
    right: 5px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    z-index: 1;
}

.search-button:hover {
    background-color: #f0f0f0;
}

.search-button svg {
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .search-container {
        position: static;
        transform: none;
        margin-top: 15px;
        right: auto;
    }
    
    .search-form {
        width: 100%;
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.no-results {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
    grid-column: 1 / -1;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin: 20px 0;
}

.search-highlight {
    background-color: yellow;
    padding: 2px 4px;
    border-radius: 3px;
}