.store-desc-wrapper { 
    position: relative; 
}

.store-desc {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.3s ease;
    cursor: pointer;
}

.store-desc.expanded { 
    -webkit-line-clamp: unset; 
    display: block; 
}

.store-desc-hint {
    display: inline-block;
    margin-top: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #3b82f6;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: color 0.2s;
}

.store-desc-hint:hover { 
    color: #1d4ed8; 
    text-decoration: underline; 
}

.store-desc-hint.hidden-hint { 
    display: none; 
}

/* ===== БЛОК ФИЛЬТРОВ ===== */
.filter-section {
    transition: all 0.3s ease;
}

.filter-content {
    max-height: 1000px;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 1;
}

.filter-content.collapsed {
    max-height: 0;
    opacity: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.filter-icon {
    transition: transform 0.3s ease;
}

.filter-icon.rotated {
    transform: rotate(-90deg);
}

input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    cursor: pointer;
}

input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -60%) rotate(45deg);
}

input[type="checkbox"]:focus {
    outline: none;
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
}

input[type="range"]:focus {
    outline: none;
}

input[type="range"]::-webkit-slider-runnable-track {
    height: 6px;
    background: transparent;
    border-radius: 3px;
}

input[type="range"]::-moz-range-track {
    height: 6px;
    background: transparent;
    border-radius: 3px;
}

@keyframes tagSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

#sidebar-filters > div:first-child {
    animation: tagSlideIn 0.3s ease-out;
}

.filter-section a {
    position: relative;
    overflow: hidden;
}

.filter-section a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.1), transparent);
    transition: width 0.3s ease;
}

.filter-section a:hover::before {
    width: 100%;
}

.js-filters-reset {
    position: relative;
    overflow: hidden;
}

.js-filters-reset::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #ef4444, #dc2626);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.js-filters-reset:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

body:is(.is-dark, .theme-dark, .theme-space) .filter-section,
body:is(.is-dark, .theme-dark, .theme-space) .sb-filters {
    background-color: #111827 !important;
    border-color: #1f2937 !important;
}

body:is(.is-dark, .theme-dark, .theme-space) .filter-toggle:hover {
    background-color: #1f2937 !important;
}

body:is(.is-dark, .theme-dark, .theme-space) .filter-group {
    border-color: #1f2937 !important;
}

body:is(.is-dark, .theme-dark, .theme-space) input[type="checkbox"] {
    background-color: #1f2937 !important;
    border-color: #374151 !important;
}

body:is(.is-dark, .theme-dark, .theme-space) input[type="checkbox"]:checked {
    background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
    border-color: #3b82f6 !important;
}

body:is(.is-dark, .theme-dark, .theme-space) .filter-section a:not(.bg-gradient-to-r) {
    color: #e5e7eb !important;
}

body:is(.is-dark, .theme-dark, .theme-space) .filter-section a:not(.bg-gradient-to-r):hover {
    background-color: #1f2937 !important;
}

body:is(.is-dark, .theme-dark, .theme-space) .js-price-from,
body:is(.is-dark, .theme-dark, .theme-space) .js-price-to,
body:is(.is-dark, .theme-dark, .theme-space) .js-filter-city {
    background-color: #1f2937 !important;
    border-color: #374151 !important;
    color: #f9fafb !important;
}

body:is(.is-dark, .theme-dark, .theme-space) .js-price-from:focus,
body:is(.is-dark, .theme-dark, .theme-space) .js-price-to:focus,
body:is(.is-dark, .theme-dark, .theme-space) .js-filter-city:focus {
    background-color: #111827 !important;
}

@media (max-width: 1024px) {
    .filter-content {
        max-height: none;
    }
    
    .filter-icon {
        display: none;
    }
}

.filter-section,
.sb-filters,
.filter-group,
input[type="checkbox"],
input[type="range"],
select {
    transition: all 0.2s ease;
}

label:has(input[type="checkbox"]:hover) {
    transform: translateX(2px);
}

input[type="range"]:active::-webkit-slider-thumb {
    transform: scale(1.2);
}

input[type="range"]:active::-moz-range-thumb {
    transform: scale(1.2);
}

/* ===== СТИЛИ ДЛЯ ШИРОКОГО БАННЕРА ===== */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 768px) {
    .banner-layout .h-48 {
        height: 12rem;
    }
}

@media (max-width: 640px) {
    .banner-layout .h-48 {
        height: 10rem;
    }
}
/* ===== КАРУСЕЛЬ БАННЕРА ===== */
.banner-carousel {
    position: relative;
}

.banner-carousel:hover .banner-prev,
.banner-carousel:hover .banner-next {
    opacity: 1 !important;
}

.banner-slides {
    display: flex;
    will-change: transform;
}

.banner-slide {
    flex-shrink: 0;
    width: 100%;
}

.banner-dot {
    transition: all 0.3s ease;
}

.banner-dot:hover {
    background: rgba(255, 255, 255, 0.9) !important;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .banner-carousel {
        height: 12rem !important;
    }
    
    .banner-prev,
    .banner-next {
        width: 8 !important;
        height: 8 !important;
        opacity: 0.7 !important;
    }
}

@media (max-width: 640px) {
    .banner-carousel {
        height: 10rem !important;
    }
}