/* Поиск и результаты */
#products-container {
    width: 100%;
    position: fixed;
    top: 6%;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1500;
    overflow-y: auto;
    background: linear-gradient(135deg, #f5e6d3 0%, #d4b896 50%, #c19a6b 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite, fadeIn 0.3s ease-in-out;
    padding: 0 2.5%;
    box-sizing: border-box;
}

#products-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 5px;
    width: 100%;
    box-sizing: border-box;
    padding-bottom: 80px;
}

/* Сортировка */
#sort-modal {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(250, 245, 235, 0.98) 0%, rgba(248, 243, 233, 0.98) 100%);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 30px 30px 0 0;
    box-shadow: 0 -15px 60px rgba(101, 67, 33, 0.35);
    z-index: 3000;
    animation: slideUp 0.4s cubic-bezier(0.32, 0.72, 0, 1);
    border: 3px solid rgba(193, 154, 107, 0.5);
    border-bottom: none;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.sort-content {
    padding: 25px 20px;
}

.sort-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(193, 154, 107, 0.2);
}

.sort-header h3 {
    font-family: 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, #8b6f47 0%, #654321 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.3px;
}

.sort-header i {
    font-size: 22px;
    color: #8b6f47;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sort-header i:active {
    transform: scale(1.15) rotate(90deg);
    color: #654321;
}

.sort-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sort-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 18px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(193, 154, 107, 0.15);
    box-shadow: 0 2px 8px rgba(101, 67, 33, 0.08);
}

.sort-option.active {
    background: linear-gradient(135deg, #8b6f47 0%, #654321 100%);
    border-color: rgba(184, 134, 11, 0.5);
    box-shadow: 0 6px 20px rgba(101, 67, 33, 0.4);
    transform: translateY(-2px);
}

.sort-option.active i,
.sort-option.active span {
    color: white;
}

.sort-option:active:not(.active) {
    background: rgba(240, 240, 240, 0.9);
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(101, 67, 33, 0.15);
}

.sort-option i {
    font-size: 18px;
    color: #8b6f47;
    transition: all 0.3s ease;
}

.sort-option span {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #2c2c2c;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* Кнопка брендов */
.sort-brands-button {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    background: rgba(250, 245, 235, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    margin-bottom: 15px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(101, 67, 33, 0.1);
    transition: all 0.3s ease;
    border: 2px solid rgba(193, 154, 107, 0.3);
    position: relative;
    z-index: 1;
}

.sort-brands-button i {
    font-size: 16px;
    color: #8b6f47;
}

.sort-brands-button span {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #654321;
    font-weight: 500;
}

.sort-brands-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 105, 61, 0.2);
}

.sort-brands-button:active {
    transform: translateY(0px);
    box-shadow: 0 3px 12px rgba(0,0,0,0.15);
}

/* Модалка брендов */
#brands-modal {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(250, 245, 235, 0.98) 0%, rgba(248, 243, 233, 0.98) 100%);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 30px 30px 0 0;
    box-shadow: 0 -15px 60px rgba(101, 67, 33, 0.35);
    z-index: 3000;
    max-height: 100vh;
    overflow-y: auto;
    animation: slideUp 0.4s cubic-bezier(0.32, 0.72, 0, 1);
    border: 3px solid rgba(193, 154, 107, 0.5);
    border-bottom: none;
}

.brands-content {
    padding: 25px 20px;
}

.brands-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(193, 154, 107, 0.2);
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, rgba(250, 245, 235, 0.98) 0%, rgba(248, 243, 233, 0.98) 100%);
    padding: 10px 0;
    z-index: 10;
}

.brands-header h3 {
    font-family: 'Inter', sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, #8b6f47 0%, #654321 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.3px;
}

.brands-header i {
    font-size: 22px;
    color: #8b6f47;
    cursor: pointer;
    transition: all 0.3s ease;
}

.brands-header i:active {
    transform: scale(1.15) rotate(90deg);
    color: #654321;
}

.brands-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.brand-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 18px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(193, 154, 107, 0.15);
    box-shadow: 0 2px 8px rgba(101, 67, 33, 0.08);
}

.brand-option span {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #2c2c2c;
    font-weight: 500;
    transition: all 0.3s ease;
}

.brand-option i {
    color: #1a1a1a;
    opacity: 0;
}

.brand-option.active {
    background: linear-gradient(135deg, #8b6f47 0%, #654321 100%);
    border-color: rgba(184, 134, 11, 0.5);
    box-shadow: 0 6px 20px rgba(101, 67, 33, 0.4);
    transform: translateY(-2px);
}

.brand-option.active span {
    color: white;
}

.brand-option.active i {
    opacity: 1;
    color: white;
}

.brand-option:active:not(.active) {
    background: rgba(240, 240, 240, 0.9);
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(101, 67, 33, 0.15);
}

.brands-section {
    margin-bottom: 20px;
}

.brands-section h4 {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 15px 0;
    background: linear-gradient(135deg, #8b6f47 0%, #654321 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.2px;
}

.brands-search {
    display: flex;
    align-items: center;
    background: rgba(248, 248, 248, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 16px;
    padding: 0 15px;
    margin-bottom: 15px;
    height: 48px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.brands-search:focus-within {
    border-color: rgba(139, 105, 61, 0.4);
    background: rgba(250, 245, 235, 0.98);
}

.brands-search i {
    color: #8b6f47;
    font-size: 16px;
}

.brands-search input {
    border: none;
    background: none;
    outline: none;
    width: 100%;
    margin-left: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
}

.brands-list {
    max-height: 300px;
    overflow-y: auto;
    padding-right: 5px;
}

.brands-footer {
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    margin-top: 15px;
}

.apply-filters {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #8b6f47 0%, #654321 100%);
    color: #faf5eb;
    border: none;
    border-radius: 16px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(101, 67, 33, 0.3);
}

.apply-filters:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(101, 67, 33, 0.4);
}

.apply-filters:active {
    transform: translateY(0px);
}


