/* Search Page Styles */
.search-page-toggle {
    display: none;
    padding: 1rem 2rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.filter-toggle-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #2563eb;
    color: white;
    border: none;
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-toggle-btn:hover {
    background: #1d4ed8;
}

.search-page-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    gap: 2rem;
    min-height: calc(100vh - 200px);
}

/* Sidebar filtri */
.search-sidebar {
    width: 300px;
    flex-shrink: 0;
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    height: calc(100vh - 4rem - 40px); /* Altezza viewport meno padding e margini */
    position: sticky;
    top: 2rem;
    display: flex;
    flex-direction: column;
    overflow-y: hidden; /* Nasconde lo scroll globale */
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding-right: 0.5rem; /* Spazio per scrollbar */
    margin-right: -0.5rem; /* Compensa il padding */
}

/* Custom scrollbar per la sidebar */
.sidebar-content::-webkit-scrollbar {
    width: 6px;
}

.sidebar-content::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.sidebar-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.sidebar-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.sidebar-header h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.clear-filters-btn {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #cbd5e1;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.clear-filters-btn:hover {
    background: #f8fafc;
    color: #475569;
}

/* Sezioni filtri */
.filter-section {
    margin-bottom: 1.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8fafc;
    cursor: pointer;
    user-select: none;
}

.filter-header h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-toggle {
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 0.3rem;
    transition: transform 0.3s ease;
}

.filter-toggle.active {
    transform: rotate(180deg);
}

.filter-content {
    padding: 1rem;
    background: white;
    display: block;
}

.filter-content.hidden {
    display: none;
}

/* Albero categorie per search */
.categories-tree-search .category-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0;
    cursor: pointer;
    margin-left: 0;
}

.categories-tree-search .category-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.categories-tree-search .category-checkbox label {
    cursor: pointer;
    font-size: 0.9rem;
    color: #475569;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.categories-tree-search .category-checkbox:hover label {
    color: #2563eb;
}

/* Stili per categorie selezionate e indicatori */
.category-checkbox.selected {
    background-color: #e0f2fe;
    border-radius: 4px;
    padding: 0.3rem 0.5rem;
    margin: 0.2rem 0;
}

.category-checkbox.selected label {
    color: #0369a1;
    font-weight: 600;
}

.selected-children-indicator {
    font-size: 0.75rem;
    color: #64748b;
    margin-left: auto;
    font-style: italic;
    background: #f1f5f9;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
}

/* Filtro brand */
.brand-search {
    position: relative;
    margin-bottom: 1rem;
}

.brand-search-input {
    width: 100%;
    padding: 0.7rem 2rem 0.7rem 0.8rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.9rem;
}

.brand-search i {
    position: absolute;
    right: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
}

.brand-search-input.searching {
    border-color: #2563eb;
    background-color: #f0f7ff;
}

.brands-list {
    max-height: 250px;
    overflow-y: auto;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.5rem;
}

.brand-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    margin-bottom: 0.2rem;
}

.brand-item:last-child {
    margin-bottom: 0;
}

.brand-item:hover {
    background: #f1f5f9;
}

.brand-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    flex-shrink: 0;
}

.brand-item label {
    cursor: pointer;
    font-size: 0.9rem;
    color: #475569;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-item label i {
    color: #64748b;
    font-size: 0.8rem;
}

.brand-item input:checked + label {
    color: #2563eb;
    font-weight: 600;
}

.brand-item input:checked + label i {
    color: #2563eb;
}

/* Stili per messaggio di ricerca brand */
.brand-search-message {
    text-align: center;
    padding: 1.5rem;
    color: #64748b;
}

.brand-search-message i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #94a3b8;
}

.brand-search-message p {
    font-size: 0.9rem;
    margin: 0;
}

/* Marche selezionate - NUOVO DESIGN */
.selected-brands {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.8rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px dashed #cbd5e1;
    min-height: 44px;
}

.selected-brands:empty {
    display: none;
}

.selected-brands-title {
    width: 100%;
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.selected-brands-title i {
    color: #10b981;
}

.selected-brand-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    padding: 0.5rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
    transition: all 0.2s ease;
    animation: slideIn 0.3s ease;
}

.selected-brand-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

.selected-brand-tag span {
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.remove-brand-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    font-size: 0.7rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.remove-brand-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Filtro prezzo */
.price-range {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.price-inputs {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.price-input-group {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-input-group label {
    font-size: 0.85rem;
    color: #64748b;
    min-width: 25px;
}

.price-input-wrapper {
    flex: 1;
    position: relative;
}

.price-input {
    width: 100%;
    padding: 0.5rem 0.5rem 0.5rem 0.8rem;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-size: 0.9rem;
}

.price-input-group .currency {
    position: absolute;
    right: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.85rem;
    color: #64748b;
}

.price-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.price-preset {
    padding: 0.4rem 0.8rem;
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s ease;
}

.price-preset:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
}

.price-preset.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

/* Azioni filtri */
.filter-actions {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.btn-apply-filters {
    width: 100%;
    padding: 0.8rem;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-apply-filters:hover {
    background: linear-gradient(90deg, #1d4ed8, #2563eb);
    transform: translateY(-2px);
}

/* Contenuto risultati */
.search-content {
    flex: 1;
    min-width: 0;
}

.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.results-info {
    flex: 1;
    min-width: 240px;
}

.results-info h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.results-count {
    color: #64748b;
    font-size: 0.95rem;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-options {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.view-toggle-btn {
    width: 2.25rem;
    height: 2.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-toggle-btn:hover {
    color: #2563eb;
    background: #e0ecff;
}

.view-toggle-btn.active {
    color: #fff;
    background: #2563eb;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.22);
}

.sort-select {
    padding: 0.5rem 2rem 0.5rem 0.8rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #475569;
    background: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23475569'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    background-size: 1rem;
}

/* Griglia prodotti */
.products-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.products-results.products-results-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.products-results.products-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.product-card-search {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card-search:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.product-image-search {
    height: 200px;
    overflow: hidden;
    position: relative;
    background: #f8fafc;
}

.product-image-search img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
    transition: transform 0.5s ease;
}

.product-card-search:hover .product-image-search img {
    transform: scale(1.05);
}

.product-badge-search {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    background: #ef4444;
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
}

.product-unavailable {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    padding: 0.5rem;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-info-search {
    padding: 1.2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name-search {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-brand-search {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.product-price-container {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
}

.product-original-price {
    text-decoration: line-through;
    color: #94a3b8;
    font-size: 0.9rem;
}

.product-price-search {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2563eb;
}

.product-price-range {
    display: flex;
    width: 100%;
    gap: 0.75rem;
}

.product-price-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    background-color: #f8fafc;
    border-radius: 10px;
}

.product-price-label {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 0.3rem;
}

.product-price-value {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: #2563eb;
    text-align: center;
}

.product-price-box:last-child .product-price-value {
    color: #ef4444;
}

.product-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    font-size: 0.8rem;
    color: #64748b;
    padding-top: 0.5rem;
    border-top: 1px solid #f1f5f9;
}

.product-category-search,
.product-stores {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.product-category-search i,
.product-stores i {
    font-size: 0.7rem;
}

.product-actions-search {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.btn-compare-search,
.btn-details-search {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.6rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.btn-compare-search {
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    color: white;
    border: none;
}

.btn-compare-search:hover {
    background: linear-gradient(90deg, #1d4ed8, #2563eb);
}

.btn-details-search {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.btn-details-search:hover {
    background: #e2e8f0;
}

/* Vista lista prodotti - solo pagina ricerca */
.products-results-list .product-card-search {
    min-height: 126px;
    height: auto;
    flex-direction: row;
    align-items: stretch;
    border-radius: 10px;
}

.products-results-list .product-card-search:hover {
    transform: translateY(-1px);
}

.products-results-list .product-image-search {
    width: 128px;
    min-width: 128px;
    height: auto;
    min-height: 126px;
    border-right: 1px solid #f1f5f9;
}

.products-results-list .product-image-search img {
    padding: 0.75rem;
}

.products-results-list .product-card-search:hover .product-image-search img {
    transform: none;
}

.products-results-list .product-info-search {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 210px;
    grid-template-areas:
        "name actions"
        "brand actions"
        "price actions"
        "details actions";
    column-gap: 1.25rem;
    align-items: center;
    padding: 0.8rem 1rem;
}

.products-results-list .product-name-search {
    grid-area: name;
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.products-results-list .product-brand-search {
    grid-area: brand;
    margin-bottom: 0.35rem;
}

.products-results-list .product-price-container {
    grid-area: price;
    margin-bottom: 0.35rem;
}

.products-results-list .product-price-range {
    max-width: 430px;
}

.products-results-list .product-price-box {
    align-items: flex-start;
    padding: 0.45rem 0.65rem;
}

.products-results-list .product-price-value {
    font-size: 1rem;
}

.products-results-list .product-details {
    grid-area: details;
    justify-content: flex-start;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-bottom: 0;
    padding-top: 0;
    border-top: 0;
}

.products-results-list .product-actions-search {
    grid-area: actions;
    justify-content: flex-end;
    align-self: center;
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.products-results-list .btn-compare-search,
.products-results-list .btn-details-search {
    flex: 0 0 auto;
    min-width: 0;
    padding: 0.55rem 0.8rem;
    white-space: nowrap;
}

.products-results-list .btn-compare-search {
    min-width: 128px;
}

.products-results-list .btn-details-search {
    min-width: 92px;
}

.loading-products,
.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #64748b;
}

.loading-products i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #2563eb;
}

.no-products i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #94a3b8;
}

.no-products h3 {
    font-family: 'Poppins', sans-serif;
    color: #475569;
    margin-bottom: 0.5rem;
}

.no-products p {
    color: #64748b;
    margin-bottom: 1.5rem;
}

.no-products .btn-retry {
    margin-top: 0;
}

/* Paginazione */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #cbd5e1;
    background: white;
    color: #475569;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.pagination-btn.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Overlay mobile */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

/* Stile per messaggi di errore */
.error-message {
    text-align: center;
    padding: 3rem;
    color: #64748b;
    grid-column: 1 / -1;
}

.error-message i {
    font-size: 3rem;
    color: #ef4444;
    margin-bottom: 1rem;
}

.error-message h3 {
    font-family: 'Poppins', sans-serif;
    color: #dc2626;
    margin-bottom: 0.5rem;
}

.btn-retry {
    padding: 0.7rem 1.5rem;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-retry:hover {
    background: linear-gradient(90deg, #1d4ed8, #2563eb);
    transform: translateY(-2px);
}

/* Notifiche */
.filter-notification {
    position: fixed;
    top: 80px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(150%);
    transition: transform 0.3s ease;
    max-width: 350px;
}

.filter-notification.show {
    transform: translateX(0);
}

.filter-notification.error {
    background: #dc3545;
}

.filter-notification.info {
    background: #17a2b8;
}

.filter-notification i {
    font-size: 18px;
}

.filter-notification span {
    font-size: 14px;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 992px) {
    .search-page-container {
        flex-direction: column;
        padding: 1rem;
    }
    
    .search-sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 90%;
        max-width: 400px;
        height: 100vh;
        z-index: 1000;
        border-radius: 0;
        transition: left 0.3s ease;
        overflow-y: auto;
    }
    
    .search-sidebar.active {
        left: 0;
    }
    
    .search-page-toggle {
        display: block;
    }
    
    .search-content {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .products-results {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .search-results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .sort-options {
        width: 100%;
    }

    .view-options {
        width: 100%;
        justify-content: flex-start;
    }
    
    .sort-select {
        width: 100%;
    }

    .products-results-list .product-card-search {
        min-height: 116px;
    }

    .products-results-list .product-image-search {
        width: 96px;
        min-width: 96px;
        min-height: 116px;
    }

    .products-results-list .product-info-search {
        grid-template-columns: minmax(0, 1fr) 42px;
        grid-template-areas:
            "name actions"
            "brand actions"
            "price actions"
            "details actions";
        column-gap: 0.65rem;
        padding: 0.7rem;
    }

    .products-results-list .product-name-search {
        font-size: 0.92rem;
        line-height: 1.22;
        margin-bottom: 0.15rem;
    }

    .products-results-list .product-brand-search {
        font-size: 0.78rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-bottom: 0.35rem;
    }

    .products-results-list .product-price-range {
        flex-direction: row;
        gap: 0.35rem;
        max-width: 100%;
    }

    .products-results-list .product-price-box {
        padding: 0.35rem 0.45rem;
        border-radius: 7px;
        min-width: 0;
    }

    .products-results-list .product-price-label {
        font-size: 0.65rem;
        margin-bottom: 0.15rem;
    }

    .products-results-list .product-price-value {
        font-size: 0.82rem;
        line-height: 1.15;
    }

    .products-results-list .product-details {
        gap: 0.65rem;
        font-size: 0.72rem;
    }

    .products-results-list .product-category-search {
        display: none;
    }

    .products-results-list .product-actions-search {
        flex-direction: column;
        gap: 0.45rem;
        align-items: stretch;
        justify-content: center;
    }

    .products-results-list .btn-compare-search,
    .products-results-list .btn-details-search {
        width: 42px;
        height: 42px;
        min-width: 0;
        padding: 0;
        justify-content: center;
        border-radius: 9px;
        font-size: 1rem;
    }

    .products-results-list .btn-text {
        display: none;
    }
    
    .selected-brand-tag {
        padding: 0.4rem 0.7rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .products-results {
        grid-template-columns: 1fr;
    }

    .products-results-list .product-image-search {
        width: 86px;
        min-width: 86px;
    }

    .products-results-list .product-name-search {
        font-size: 0.88rem;
    }

    .products-results-list .product-info-search {
        grid-template-columns: minmax(0, 1fr) 38px;
        column-gap: 0.55rem;
        padding: 0.62rem;
    }

    .products-results-list .btn-compare-search,
    .products-results-list .btn-details-search {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }

    .products-results-list .product-price-box {
        padding: 0.3rem 0.38rem;
    }

    .products-results-list .product-price-value {
        font-size: 0.76rem;
    }
    
    .price-inputs {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .price-presets {
        justify-content: center;
    }
    
    .selected-brands {
        padding: 0.6rem;
    }
    
    .selected-brand-tag span {
        max-width: 80px;
    }
}

.temp-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #10b981;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateX(150%);
    transition: transform 0.3s ease;
    max-width: 350px;
}

.temp-notification.show {
    transform: translateX(0);
}

.temp-notification.error {
    background: #ef4444;
}

.temp-notification.info {
    background: #3b82f6;
}

.temp-notification i {
    font-size: 18px;
}

.temp-notification span {
    font-size: 14px;
    font-weight: 500;
}

.search-seo-text {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    color: #334155;
    line-height: 1.7;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.search-seo-text p:last-child {
    margin-bottom: 0;
}
