@font-face {
    font-family: 'Magnolia Script';
    src: url("/static/fonts/magnolia-script.33780fb90108.woff2") format('woff2'),
         url("/static/fonts/magnolia-script.7c503f4dfba3.woff") format('woff'),
         url("/static/fonts/magnolia-script.55dae609d9f1.ttf") format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ===== СТИЛИ БАННЕРА КАТАЛОГА ===== */
.catalog-hero-banner {
    margin-top: -50px;
    position: relative;
    width: 100%;
    height: 100vh;
    max-height: 500px;
    overflow: hidden;
}

.catalog-hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

.catalog-banner-content {
    width: 100%;
    color: var(--text-white);
    padding-top: 20px;
    padding-bottom: 80px;
}

.catalog-hero-content-wrapper {
    max-width: 900px;
    padding: 0 20px;
}

.catalog-hero-title {
    font-family: 'Magnolia Script', 'Brush Script MT', cursive, sans-serif;
    font-size: 3.5rem;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    max-width: 1000px;
    color: #689550;
}

.catalog-hero-subtitle {
    font-size: 1.3rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 470px;
    color: #636766;
}

.catalog-hero-emphasis {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-white);
    position: relative;
    padding-left: 20px;
    max-width: 800px;
}

.catalog-hero-emphasis::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 80%;
    background: var(--accent-color);
    border-radius: 2px;
}

.catalog-hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.catalog-action-btn {
    display: inline-flex;
    align-items: center;
    padding: 16px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    gap: 8px;
    position: relative;
    z-index: 100;
}

.catalog-action-btn--primary {
    background: var(--primary-color);
    color: var(--text-white);
}

.catalog-action-btn--primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.catalog-action-btn--secondary {
    background: transparent;
    color: var(--text-white);
    border: 2px solid var(--text-white);
}

.catalog-action-btn--secondary:hover {
    background: var(--text-white);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.catalog-action-btn__icon {
    font-size: 1.2rem;
}

/* Анимации баннера */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.catalog-hero-slide .catalog-hero-content-wrapper > * {
    animation: slideUp 0.8s ease forwards;
}

.catalog-hero-slide .catalog-hero-title {
    animation-delay: 0.2s;
}

.catalog-hero-slide .catalog-hero-subtitle {
    animation-delay: 0.4s;
}

.catalog-hero-slide .catalog-hero-emphasis {
    animation-delay: 0.6s;
}

.catalog-hero-slide .catalog-hero-buttons {
    animation-delay: 0.8s;
}

.catalog-hero-slide .catalog-hero-content-wrapper > * {
    opacity: 0;
}

/* Адаптивность баннера */
@media (min-width: 625px) {
    .catalog-banner-content {
        padding-top: 200px;
    }
}

@media (max-width: 1400px) {
    .catalog-hero-content-wrapper {
        padding: 0 40px;
    }
}

@media (max-width: 1200px) {
    .catalog-hero-title {
        max-width: 900px;
        font-size: 3.2rem;
    }
    .catalog-hero-subtitle,
    .catalog-hero-emphasis {
        max-width: 700px;
    }
}

@media (max-width: 1024px) {
    .catalog-hero-banner {
        max-height: 700px;
    }
    .catalog-hero-title {
        font-size: 2.8rem;
        max-width: 800px;
    }
    .catalog-hero-subtitle {
        font-size: 1.2rem;
        max-width: 600px;
    }
    .catalog-banner-content {
        padding-bottom: 80px;
    }
}

@media (max-width: 768px) {
    .catalog-hero-banner {
        height: 520px;
        max-height: 520px;
        min-height: 520px;
    }
    .catalog-banner-content {
        padding-top: 40px;
        padding-bottom: 80px;
    }
    .catalog-hero-title {
        font-size: 1.8rem;
        max-width: 100%;
        margin-bottom: 1rem;
    }
    .catalog-hero-subtitle {
        font-size: 0.95rem;
        max-width: 100%;
        margin-bottom: 1rem;
        line-height: 1.5;
    }
    .catalog-hero-emphasis {
        font-size: 0.95rem;
        max-width: 100%;
        margin-bottom: 1.2rem;
    }
    .catalog-hero-buttons {
        flex-direction: column;
        gap: 0.8rem;
        margin-bottom: 40px;
    }
    .catalog-action-btn {
        width: 100%;
        justify-content: center;
        padding: 10px 14px;
        font-size: 0.85rem;
    }
    .catalog-hero-content-wrapper {
        padding: 0 20px;
    }
}

@media (max-width: 540px) {
    .catalog-hero-banner {
        height: 480px;
        max-height: 480px;
        min-height: 480px;
    }
    .catalog-banner-content {
        padding-top: 35px;
        padding-bottom: 80px;
    }
    .catalog-hero-title {
        font-size: 1.6rem;
        margin-bottom: 0.8rem;
    }
    .catalog-hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }
    .catalog-hero-emphasis {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    .catalog-hero-buttons {
        margin-bottom: 40px;
        gap: 0.6rem;
    }
    .catalog-action-btn {
        padding: 9px 12px;
        font-size: 0.8rem;
    }
    .catalog-hero-content-wrapper {
        padding: 0 15px;
        padding-top: 70px;
        font-size: 25px !important;
    }
}

@media (max-width: 480px) {
    .catalog-hero-banner {
        height: 350px;
        max-height: 350px;
        min-height: 350px;
    }
    .catalog-banner-content {
        padding-top: 200px;
        padding-bottom: 80px;
    }
    .catalog-hero-title {
        font-size: 1.4rem;
    }
    .catalog-hero-subtitle {
        font-size: 0.85rem;
    }
    .catalog-hero-buttons {
        margin-bottom: 35px;
    }
}

/* ===== ОБЩИЕ СТИЛИ ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.catalog-section {
    background: var(--bg-tertiary);
    width: 100%;
    min-height: auto;
    padding: 40px 0;
}

.catalog-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* ===== ФИЛЬТРЫ ===== */
.filters-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
    margin-bottom: 20px;
}

.filters-top {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 10;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding: 0;
}

.filters-header-title {
    display: none;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.filters-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.clear-filters-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    padding: 8px 16px;
    border-radius: 8px;
    flex-shrink: 0;
}

.clear-filters-btn:hover {
    color: var(--primary-color);
    background: var(--bg-light);
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    position: relative;
}

/* ===== ГРУППА ФИЛЬТРА ===== */
.filter-group {
    position: relative;
}

.filter-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    user-select: none;
    height: 52px;
    position: relative;
    z-index: 2;
}

.filter-trigger:hover {
    border-color: var(--primary-color);
    background: var(--bg-light);
}

.filter-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.filter-arrow {
    color: var(--text-light);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.2rem;
}

.filter-group.active .filter-arrow {
    transform: rotate(180deg);
}

/* ===== ВЫПАДАЮЩИЕ СПИСКИ (БАЗОВЫЕ СТИЛИ) ===== */
.filter-dropdown {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-top: none;
    border-radius: 0 0 10px 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: -1px;
    max-height: 0;
    overflow: hidden;
    padding: 0 16px;
}

.filter-group.active .filter-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    max-height: 300px;
    padding: 16px 16px 8px 16px;
}

.filter-group.active .filter-trigger {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.filter-options {
    padding: 0;
    max-height: 203px;
    overflow-y: auto;
}

.filter-options::-webkit-scrollbar {
    width: 6px;
}

.filter-options::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 3px;
}

.filter-options::-webkit-scrollbar-thumb {
    background: var(--text-light);
    border-radius: 3px;
}

.filter-options::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 10px 0;
    transition: var(--transition);
    position: relative;
    border-radius: 6px;
}

.filter-option:hover {
    background: var(--bg-light);
}

.filter-option input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--text-light);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
    background: var(--bg-primary);
}

.filter-option input:checked ~ .checkmark {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkmark:after {
    content: "✓";
    color: white;
    font-size: 12px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.filter-option input:checked ~ .checkmark:after {
    opacity: 1;
}

.option-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.filter-option:hover .option-text {
    color: var(--primary-color);
}

.filter-option:hover .checkmark {
    border-color: var(--primary-color);
}

/* ===== АКТИВНЫЕ ФИЛЬТРЫ ===== */
.active-filters {
    margin-top: 20px;
    padding: 16px;
    background: var(--bg-primary);
    border-radius: 12px;
    border: 1px solid var(--border-light);
    display: none;
}

.active-filters.has-filters {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.active-filters-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.active-filters-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.active-filters-count {
    background: var(--primary-color);
    color: white;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.active-filters-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.active-filter-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

.active-filter-tag:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.active-filter-remove {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    transition: var(--transition);
    font-size: 14px;
    line-height: 1;
    padding: 0;
}

.active-filter-remove:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ===== КНОПКА "ФИЛЬТРЫ" ДЛЯ МОБИЛОК ===== */
.filters-toggle-btn {
    display: none;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
    font-size: inherit;
    color: var(--text-primary);
    flex: 1;
}

.filters-toggle-btn:hover {
    opacity: 0.7;
}

.filter-toggle-icon {
    font-size: 1.5rem;
    color: var(--text-secondary);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.filters-toggle-btn.collapsed .filter-toggle-icon {
    transform: rotate(-90deg);
}

.filters-count {
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    padding: 0 8px;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.filters-count:empty {
    display: none;
}

/* ===== ПРЕВЬЮ АКТИВНЫХ ФИЛЬТРОВ ===== */
.filters-active-preview {
    margin-top: 8px;
    padding: 0;
    min-height: 0;
    transition: all 0.3s ease;
    overflow: hidden;
    display: none;
}

.filters-active-preview .preview-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 7px 0;
}

.filters-active-preview .active-filter-tag {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--primary-color);
    color: white;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 500;
    animation: tagAppear 0.3s ease forwards;
}

@keyframes tagAppear {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.filters-active-preview .active-filter-remove {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    transition: var(--transition);
    font-size: 12px;
    line-height: 1;
    padding: 0;
}

.filters-active-preview .active-filter-remove:hover {
    background: rgba(255, 255, 255, 0.2);
}

.filters-active-preview .no-active-filters {
    color: var(--text-light);
    font-size: 0.8rem;
    padding: 4px 0;
    font-weight: 400;
}

.filters-active-preview:empty {
    display: none;
}

/* ===== ТЕЛО ФИЛЬТРОВ ===== */
.filters-body {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    max-height: 2000px;
    opacity: 1;
    margin-top: 7px;
    padding-top: 0;
}

.filters-body.collapsed {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    padding-top: 0;
    pointer-events: none;
}

/* ===== ПРОМО-БАННЕР ===== */
.promo-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    min-height: 200px;
}

.promo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-color);
    z-index: 1;
}

.promo-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
}

.promo-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.promo-text {
    font-size: 0.9rem;
    margin-bottom: 20px;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    line-height: 1.5;
}

.promo-btn {
    background: white;
    color: var(--text-primary);
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    display: inline-block;
}

.promo-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ===== КАТАЛОГ ===== */
.catalog-main {
    min-height: 635px;
    background: transparent;
    display: flex;
    flex-direction: column;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
    flex-grow: 1;
}

.product-card {
    flex: 0 0 auto;
    width: 100%;
    opacity: 0;
    transform: translateY(30px);
    animation: cardAppear 0.6s ease forwards;
    height: 100%;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: var(--transition);
    border-radius: 20px;
    height: 100%;
}

.product-card-link:hover {
    transform: translateY(-5px);
}

.product-card-link:hover .product-card-inner {
    box-shadow: var(--shadow-heavy);
}

.product-card-inner {
    background: var(--bg-secondary);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid transparent;
    cursor: pointer;
}

.product-image-container {
    position: relative;
    height: 280px;
    background-color: var(--bg-light);
    overflow: hidden;
    flex-shrink: 0;
}

.product-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.product-badges-right {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
}

.product-badge {
    position: absolute;
    top: 0;
    right: 0;
    padding: 8px 16px 8px 24px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
    color: white;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 20% 100%);
    box-shadow: -2px 2px 8px rgba(0, 0, 0, 0.15);
}

.product-badge.sale {
    background: linear-gradient(135deg, #f7971e 0%, #ffd200 100%);
    color: #2c2c2c;
    text-shadow: none;
}

.product-badge.new {
    background: var(--success-color);
    color: var(--text-white);
}

.product-badge.hit {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: var(--text-white);
    animation: pulse-hit 1.5s ease-in-out infinite;
}

.product-badge.promotion {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    color: var(--text-white);
    animation: pulse-promotion 2s infinite;
}

@keyframes pulse-hit {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes pulse-promotion {
    0% { box-shadow: 0 0 0 0 rgba(155, 89, 182, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(155, 89, 182, 0); }
    100% { box-shadow: 0 0 0 0 rgba(155, 89, 182, 0); }
}

.btn-favorite {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    box-shadow: var(--shadow-medium);
    z-index: 2;
    opacity: 0;
    transform: translateY(-10px);
}

.btn-favorite.active {
    opacity: 1;
    transform: translateY(0);
}

.btn-favorite:hover {
    background: var(--primary-color);
    color: var(--text-white);
    transform: scale(1.1);
}

.btn-favorite .material-icons {
    font-size: 20px;
}

.btn-favorite.in-wishlist,
.btn-favorite.active {
    opacity: 1 !important;
    transform: scale(1) !important;
    background: rgba(104, 149, 80, 0.1) !important;
}

.btn-favorite.in-wishlist .material-icons,
.btn-favorite.active .material-icons {
    color: #689550 !important;
}

.btn-favorite:hover {
    background: var(--primary-color) !important;
    transform: scale(1.1) !important;
}

.btn-favorite:hover .material-icons {
    color: white !important;
}

.product-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-brand {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 5px;
    font-weight: 500;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
    line-height: 1.3;
}

.product-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    flex-grow: 1;
    line-height: 1.5;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.feature-tag {
    padding: 4px 10px;
    background: var(--bg-light);
    color: var(--text-secondary);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid var(--border-light);
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.current-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.old-price {
    font-size: 1rem;
    padding-bottom: 10px;
    color: var(--text-light);
    text-decoration: line-through;
}

.product-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-add-to-cart {
    flex: 1;
    background: var(--hits-primary-color);
    color: var(--hits-text-white);
    border: none;
    padding: 12px;
    border-radius: var(--hits-border-radius);
    font-weight: 400;
    cursor: pointer;
    transition: var(--hits-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1rem;
    min-height: 44px;
}

.btn-add-to-cart:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-add-to-cart.added {
    background: var(--primary-dark) !important;
}

.catalog-btn-favorite {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.catalog-btn-favorite:hover {
    background: var(--bg-light);
    border-color: var(--primary-color);
}

.catalog-btn-favorite .material-icons {
    font-size: 20px;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.catalog-btn-favorite.in-wishlist .material-icons {
    color: #689550 !important;
}

.catalog-btn-favorite:hover .material-icons {
    color: #689550 !important;
}

.btn-view-details {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px;
    background: var(--bg-light);
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    flex: 1;
    justify-content: center;
}

.btn-view-details:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ===== ПАГИНАЦИЯ ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0;
    width: 100%;
    flex-wrap: wrap;
}

.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 8px 12px;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    background: var(--bg-white);
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.pagination-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.pagination-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-white);
    box-shadow: 0 4px 12px rgba(104, 149, 80, 0.3);
}

.pagination-next,
.pagination-prev,
.pagination-first,
.pagination-last {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--bg-white);
}

.pagination-next:hover,
.pagination-prev:hover,
.pagination-first:hover,
.pagination-last:hover {
    background: var(--primary-color);
    color: var(--text-white);
}

#pagination-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 40px;
}

/* ===== NO PRODUCTS ===== */
.no-products {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    text-align: center;
}

.no-products-content {
    max-width: 400px;
}

.no-products-content .material-icons {
    font-size: 64px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.no-products-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.no-products-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* ===== LOADING ===== */
.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--bg-light);
    border-left: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-indicator p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ===== OUT OF STOCK ===== */
.out-of-stock-message {
    flex: 1;
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: not-allowed;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-align: center;
    min-height: 44px;
}

.out-of-stock-message .material-icons {
    font-size: 18px;
    color: #6c757d;
}

.hits-btn-check-availability {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
    flex: 1;
    justify-content: center;
    min-height: 44px;
}

.hits-btn-check-availability:hover {
    background: #e9ecef;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.hits-btn-check-availability .material-icons {
    font-size: 18px;
}

/* ============================================================
   АДАПТИВНОСТЬ
   ============================================================ */

@media (max-width: 1200px) {
    .filters-container {
        grid-template-columns: 1fr;
    }
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .filters-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== ПЛАНШЕТЫ И МОБИЛКИ (≤1024px) ===== */
@media (max-width: 1024px) {
    .filters-grid {
        grid-template-columns: 1fr;
    }

    .filters-header-title {
        display: none !important;
    }

    .filters-toggle-btn {
        display: flex !important;
    }

    .filters-active-preview {
        display: block;
    }

    .filters-body:not(.collapsed) ~ .filters-active-preview {
        display: none !important;
    }

    .filters-body.collapsed + .filters-active-preview {
        display: block;
    }

    .active-filters {
        display: none !important;
    }

    /* На планшетах и мобилках списки открываются В ПОТОКЕ */
    .filter-dropdown {
        position: static !important;
        background: var(--bg-secondary);
        border: 1px solid var(--border-light);
        border-top: none;
        border-radius: 0 0 10px 10px;
        box-shadow: none;
        z-index: 1;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        margin-top: -1px;
        max-height: 0;
        overflow: hidden;
        padding: 0 16px;
    }

    .filter-group.active .filter-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        max-height: none !important; /* ← УБИРАЕМ ОГРАНИЧЕНИЕ ВЫСОТЫ */
        padding: 16px 16px 8px 16px;
    }

    .filter-options {
        padding: 0;
        max-height: none !important; /* ← УБИРАЕМ ОГРАНИЧЕНИЕ ВЫСОТЫ */
        overflow-y: visible; /* ← МЕНЯЕМ НА visible */
    }
}

/* ===== МОБИЛЬНАЯ ВЕРСИЯ (≤768px) ===== */
@media (max-width: 768px) {
    .catalog-section {
        padding: 20px 0;
    }

    .filters-top {
        padding: 20px;
    }

    .filters-header {
        flex-direction: row;
        align-items: center;
        gap: 15px;
        margin-bottom: -5px;
    }

    .filters-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .catalog-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        margin-bottom: 20px;
    }

    .product-card-link {
        display: flex;
        flex-direction: column;
        height: 100%;
        width: 100%;
        text-decoration: none;
        color: inherit;
        border-radius: 12px;
        transition: none;
        transform: none !important;
    }

    .product-card-link:hover {
        transform: none !important;
    }

    .product-card {
        display: flex;
        flex-direction: column;
        height: 100%;
        width: 100%;
        opacity: 0;
        transform: translateY(30px);
        animation: cardAppear 0.6s ease forwards;
        animation-duration: 0.4s;
    }

    .product-card:nth-child(1) { animation-delay: 0s !important; }
    .product-card:nth-child(2) { animation-delay: 0.05s !important; }
    .product-card:nth-child(3) { animation-delay: 0.1s !important; }
    .product-card:nth-child(4) { animation-delay: 0.15s !important; }
    .product-card:nth-child(5) { animation-delay: 0.2s !important; }
    .product-card:nth-child(6) { animation-delay: 0.25s !important; }

    .product-card-inner {
        display: flex;
        flex-direction: column;
        height: 100%;
        width: 100%;
        border-radius: 12px;
        background: var(--bg-secondary);
        overflow: hidden;
        border: 1px solid transparent;
        cursor: pointer;
        transition: none;
    }

    .product-card-inner:hover {
        transform: none !important;
        box-shadow: none !important;
    }

    .product-image-container {
        height: 170px;
        flex-shrink: 0;
        position: relative;
        background-color: var(--bg-light);
        overflow: hidden;
    }

    .product-badge {
        font-size: 0.6rem;
        padding: 3px 8px 3px 14px;
        letter-spacing: 0.5px;
        top: 0;
        right: 0;
    }

    .product-card .btn-favorite {
        display: none !important;
    }

    .product-info {
        padding: 10px 10px 12px;
        gap: 4px;
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .product-brand {
        font-size: 0.7rem;
        color: var(--text-light);
        margin-bottom: 0;
        font-weight: 500;
        letter-spacing: 0.3px;
        height: 16px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        flex-shrink: 0;
        text-transform: none !important;
    }

    .product-name {
        font-size: 0.6rem;
        margin-bottom: 4px;
        line-height: 1.3;
        display: -webkit-box !important;
        -webkit-line-clamp: 1;
        flex-shrink: 0;
    }

    .product-description {
        font-size: 0.7rem;
        color: var(--text-secondary);
        margin-bottom: 4px;
        line-height: 1.3;
        display: -webkit-box !important;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        overflow: hidden;
        height: 1.2em;
        flex-shrink: 0;
        display: none !important;
    }

    .product-features {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        margin-bottom: 6px;
        height: 20px;
        overflow: hidden;
        align-items: center;
        flex-shrink: 0;
    }

    .feature-tag {
        font-size: 0.55rem;
        padding: 2px 6px;
        border-radius: 8px;
        background: var(--bg-light);
        color: var(--text-secondary);
        border: 1px solid var(--border-light);
        white-space: nowrap;
    }

    .product-price {
        display: flex;
        align-items: center;
        gap: 1px;
        margin-bottom: 8px;
        flex-wrap: wrap;
        height: 24px;
        flex-shrink: 0;
    }

    .current-price {
        font-size: 0.9rem;
        font-weight: 700;
        color: var(--primary-color);
    }

    .old-price {
        font-size: 0.5rem;
        padding-bottom: 8px;
        color: var(--text-light);
        text-decoration: line-through;
    }

    .product-actions {
        display: flex;
        gap: 6px;
        align-items: center;
        width: 100%;
        height: 36px;
        flex-shrink: 0;
        margin-top: auto;
    }

    .btn-add-to-cart {
        flex: 1;
        padding: 8px 10px;
        font-size: 0.75rem;
        font-weight: 600;
        border-radius: 6px;
        min-height: 36px;
        height: 36px;
        gap: 4px;
        background: var(--primary-color);
        color: var(--text-white);
        border: none;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .btn-add-to-cart .material-icons {
        font-size: 16px;
    }

    .btn-add-to-cart:active {
        transform: scale(0.95);
    }

    .catalog-btn-favorite {
        width: 36px;
        height: 36px;
        min-width: 36px;
        border-radius: 6px;
        background: transparent;
        border: 1px solid var(--border-light);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        flex-shrink: 0;
        padding: 0;
    }

    .catalog-btn-favorite .material-icons {
        font-size: 18px;
        color: var(--text-light);
        transition: color 0.3s ease;
    }

    .catalog-btn-favorite.in-wishlist {
        border-color: #689550;
        background: rgba(104, 149, 80, 0.08);
    }

    .catalog-btn-favorite.in-wishlist .material-icons {
        color: #689550;
    }

    .catalog-btn-favorite:active {
        transform: scale(0.9);
    }

    .out-of-stock-message {
        flex: 1;
        padding: 8px 10px;
        font-size: 0.7rem;
        min-height: 36px;
        height: 36px;
        border-radius: 6px;
        background: #f8f9fa;
        color: #6c757d;
        border: 1px solid #dee2e6;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
    }

    .out-of-stock-message .material-icons {
        font-size: 14px;
    }

    .hits-btn-check-availability {
        flex: 1;
        padding: 8px 10px;
        font-size: 0.7rem;
        min-height: 36px;
        height: 36px;
        border-radius: 6px;
        background: #f8f9fa;
        color: #6c757d;
        border: 1px solid #dee2e6;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        text-decoration: none;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .hits-btn-check-availability .material-icons {
        font-size: 14px;
    }

    .hits-btn-check-availability:active {
        transform: scale(0.95);
    }

    .btn-view-details {
        display: none !important;
    }

    .active-filters {
        margin-top: 12px;
        padding: 12px;
        display: none !important;
    }

    .active-filters-title {
        font-size: 0.85rem;
    }

    .active-filters-count {
        font-size: 0.7rem;
        padding: 1px 6px;
        min-width: 18px;
    }

    .active-filter-tag {
        font-size: 0.7rem;
        padding: 4px 8px;
        border-radius: 14px;
    }

    .active-filter-remove {
        width: 14px;
        height: 14px;
        font-size: 12px;
    }

    .pagination {
        gap: 4px;
        margin: 20px 0;
    }

    .pagination-btn {
        min-width: 34px;
        height: 34px;
        font-size: 0.75rem;
        padding: 4px 8px;
        border-radius: 8px;
    }

    #pagination-container {
        margin-top: 20px;
    }

    .promo-banner {
        min-height: 160px;
        padding: 20px;
    }

    .promo-title {
        font-size: 1.1rem;
    }

    .promo-text {
        font-size: 0.8rem;
        margin-bottom: 12px;
    }

    .promo-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}

/* ===== ОЧЕНЬ МАЛЕНЬКИЕ ЭКРАНЫ (≤400px) ===== */
@media (max-width: 400px) {
    .catalog-grid {
        gap: 8px !important;
    }

    .product-image-container {
        height: 140px;
    }

    .product-info {
        padding: 8px 8px 10px;
    }

    .product-brand {
        font-size: 0.6rem;
        height: 14px;
    }

    .product-description {
        font-size: 0.6rem;
        height: 1em;
    }

    .product-features {
        height: 16px;
    }

    .feature-tag {
        font-size: 0.5rem;
        padding: 1px 4px;
    }

    .product-price {
        height: 20px;
    }

    .current-price {
        font-size: 0.85rem;
    }

    .product-actions {
        height: 30px;
    }

    .btn-add-to-cart {
        padding: 6px 8px;
        font-size: 0.65rem;
        min-height: 30px;
        height: 30px;
    }

    .btn-add-to-cart .material-icons {
        font-size: 14px;
    }

    .catalog-btn-favorite {
        width: 30px;
        height: 30px;
        min-width: 30px;
    }

    .catalog-btn-favorite .material-icons {
        font-size: 16px;
    }

    .out-of-stock-message {
        min-height: 30px;
        height: 30px;
        font-size: 0.6rem;
    }

    .hits-btn-check-availability {
        min-height: 30px;
        height: 30px;
        font-size: 0.6rem;
    }
}

/* ===== ПЛАНШЕТЫ (481-768px) ===== */
@media (min-width: 481px) and (max-width: 768px) {
    .catalog-grid {
        gap: 16px !important;
    }

    .product-image-container {
        height: 200px;
    }

    .btn-add-to-cart {
        font-size: 0.8rem;
        padding: 10px 12px;
        height: 40px;
        min-height: 40px;
    }

    .product-actions {
        height: 40px;
    }

    .current-price {
        font-size: 1.05rem;
    }

    .out-of-stock-message {
        min-height: 40px;
        height: 40px;
    }

    .hits-btn-check-availability {
        min-height: 40px;
        height: 40px;
    }
}

/* ============================================================
   ПК (≥1025px) - ВСЁ КАК БЫЛО
   ============================================================ */
@media (min-width: 1025px) {
    /* Скрываем кнопку "Фильтры" (она только для мобилок) */
    .filters-toggle-btn {
        display: none !important;
    }

    .filters-count {
        display: none !important;
    }

    .filters-active-preview {
        display: none !important;
    }

    .no-active-filters {
        display: none !important;
    }

    /* Показываем заголовок "Фильтры" */
    .filters-header-title {
        display: block !important;
    }

    .filters-header {
        margin-bottom: 25px !important;
    }

    /* Тело фильтров всегда видно */
    .filters-body {
        max-height: none !important;
        opacity: 1 !important;
        overflow: visible !important;
        pointer-events: all !important;
    }

    .filters-body.collapsed {
        max-height: none !important;
        opacity: 1 !important;
        margin-top: 20px !important;
        overflow: visible !important;
        pointer-events: all !important;
    }

    /* Блок активных фильтров - ПОКАЗЫВАЕМ */
    .active-filters {
        display: block !important;
        margin-top: 20px;
        padding: 16px;
        background: var(--bg-primary);
        border-radius: 12px;
        border: 1px solid var(--border-light);
    }

    .active-filters.has-filters {
        display: block !important;
    }

    /* НА ПК - ВЫПАДАЮЩИЕ СПИСКИ ПОВЕРХ (absolute) */
    .filter-dropdown {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        background: var(--bg-secondary);
        border: 1px solid var(--border-light);
        border-top: none;
        border-radius: 0 0 10px 10px;
        box-shadow: var(--shadow-large);
        z-index: 100;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: var(--transition);
        margin-top: -1px;
        max-height: 203px !important;
        overflow: hidden !important;
        padding: 0 16px !important;
    }

    .filter-group.active .filter-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        max-height: 203px !important;
        padding: 0 16px 16px 16px !important;
    }

    .filter-group.active .filter-trigger {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }

    .filter-options {
        max-height: 203px;
        overflow-y: auto;
        padding: 0;
    }

    /* Ховеры на ПК */
    .product-card-inner:hover {
        transform: translateY(-3px);
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.03);
    }

    .product-card-inner:hover .product-image {
        transform: scale(1.02);
    }

    .product-card-inner:hover .btn-favorite {
        opacity: 1;
        transform: translateY(0);
    }

    .btn-favorite {
        opacity: 0;
        transform: scale(0.8);
    }

    .product-card:hover .btn-favorite {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================================
   ХОВЕРЫ ДЛЯ ТАЧ-УСТРОЙСТВ
   ============================================================ */
@media (hover: none) and (pointer: coarse) {
    .product-card-inner:hover {
        transform: none;
        box-shadow: none;
    }
    .product-card-inner:hover .product-image {
        transform: none;
    }
    .product-card-inner:hover .btn-favorite {
        opacity: 1;
        transform: translateY(0);
    }
    .btn-add-to-cart:hover {
        transform: none;
        background: var(--primary-color);
    }
    .pagination-btn:hover {
        transform: none;
    }
    .promo-btn:hover {
        transform: none;
        background: white;
        color: var(--text-primary);
    }
    .filter-option:hover {
        transform: none;
        background: none;
    }
    .active-filter-tag:hover {
        transform: none;
        background: var(--primary-color);
    }
}

@media (max-width: 969px) {
    .btn-favorite {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .btn-favorite {
        opacity: 1 !important;
        transform: scale(1) !important;
    }
}

@media (max-width: 480px) {
    .pagination {
        gap: 4px;
    }
    .pagination-btn {
        min-width: 36px;
        height: 36px;
        font-size: 0.8rem;
        padding: 6px 8px;
    }
}

/* ===== МОБИЛЬНАЯ ВЕРСИЯ (≤768px) ===== */
@media (max-width: 768px) {
    /* ... остальные стили ... */

    .product-info {
        padding: 10px 10px 12px;
        gap: 4px;
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    /* Бренд - одна строка с обрезкой */
    .product-brand {
        font-size: 0.7rem;
        color: var(--text-light);
        margin-bottom: 0;
        font-weight: 500;
        letter-spacing: 0.3px;
        height: 16px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        flex-shrink: 0;
        text-transform: none !important;
    }

    /* НАЗВАНИЕ - показываем полностью (может быть 2 строки) */
    .product-name {
        font-size: 0.6rem;
        font-weight: 600;
        margin-bottom: 2px;
        line-height: 1.3;
        color: var(--text-primary);
        display: -webkit-box !important;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        flex-shrink: 0;
        min-height: 2.2em;
    }

    /* ОПИСАНИЕ - скрываем */
    .product-description {
        display: none !important;
    }

    /* Теги - компактные */
    .product-features {
        display: flex;
        flex-wrap: wrap;
        gap: 3px;
        margin-bottom: 6px;
        flex-shrink: 0;
    }

    .feature-tag {
        font-size: 0.5rem;
        padding: 1px 5px;
        border-radius: 6px;
        background: var(--bg-light);
        color: var(--text-secondary);
        border: 1px solid var(--border-light);
        white-space: nowrap;
        line-height: 1.4;
    }

    /* Цена */
    .product-price {
        display: flex;
        align-items: center;
        gap: 1px;
        margin-bottom: 4px;
        flex-wrap: wrap;
        flex-shrink: 0;
        margin-top: auto;
    }

    .current-price {
        font-weight: 700;
        color: var(--primary-color);
    }

    .old-price {
        font-size: 0.65rem;
        padding-bottom: 10px;
        color: var(--text-light);
        text-decoration: line-through;
    }

    /* Кнопки - прижаты вниз */
    .product-actions {
        display: flex;
        gap: 6px;
        align-items: center;
        width: 100%;
        height: 36px;
        flex-shrink: 0;
        margin-top: auto;
    }

    /* ... остальные стили ... */
}

.product-card:has(.out-of-stock-message) .catalog-btn-favorite {
    display: none !important;
}

/* Или через родителя */
.product-card:has(.hits-btn-check-availability) .catalog-btn-favorite {
    display: none !important;
}

/* ===== КНОПКА ДЛЯ НАБОРОВ (как обычная кнопка "В корзину") ===== */
.btn-kit {
    flex: 1;
    background: var(--primary-color);
    color: var(--text-white);
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.btn-kit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-kit.added {
    background: var(--primary-dark) !important;
}

.btn-kit .material-icons {
    font-size: 20px;
}

/* Для мобильной версии (≤768px) */
@media (max-width: 768px) {
    .btn-kit {
        flex: 1;
        padding: 8px 10px;
        font-size: 0.75rem;
        font-weight: 600;
        border-radius: 6px;
        min-height: 36px;
        height: 36px;
        gap: 4px;
    }

    .btn-kit .material-icons {
        font-size: 16px;
    }
}

@media (max-width: 400px) {
    .btn-kit {
        padding: 6px 8px;
        font-size: 0.65rem;
        min-height: 30px;
        height: 30px;
    }

    .btn-kit .material-icons {
        font-size: 14px;
    }
}

/* Для ПК ховер */
@media (hover: hover) and (pointer: fine) {
    .btn-kit:hover {
        background: var(--primary-dark);
        transform: translateY(-2px);
    }
}

/* Для тач-устройств */
@media (hover: none) and (pointer: coarse) {
    .btn-kit:hover {
        transform: none;
        background: var(--primary-color);
    }
}

/* ===== МОБИЛЬНАЯ ВЕРСИЯ (≤768px) ===== */
@media (max-width: 768px) {
    /* Ограничиваем высоту баннера на мобилке - 100px */
    .catalog-hero-banner {
        height: 120px !important;
        max-height: 120px !important;
        min-height: 120px !important;
        margin-top: -30px !important;
    }

    .catalog-hero-slide {
        height: 120px !important;
    }

    .catalog-banner-content {
        padding-top: 5px !important;
        padding-bottom: 5px !important;
    }

    .catalog-hero-title {
        font-size: 0.9rem !important;
        margin-bottom: 0.2rem !important;
    }

    .catalog-hero-subtitle {
        font-size: 0.6rem !important;
        margin-bottom: 0.2rem !important;
        max-width: 120% !important;
        line-height: 1.2 !important;
    }
}

/* Для очень маленьких экранов (≤480px) */
@media (max-width: 480px) {
    .catalog-hero-banner {
        height: 100px !important;
        max-height: 100px !important;
        min-height: 100px !important;
    }

    .catalog-hero-slide {
        height: 100px !important;
    }

    .catalog-hero-title {
        font-size: 0.8rem !important;
    }

    .catalog-hero-subtitle {
        font-size: 0.5rem !important;
    }
}

/* ===== МОБИЛЬНАЯ НАВИГАЦИЯ ПОВЕРХ БАННЕРА ===== */
@media (max-width: 768px) {
    .catalog-hero-banner {
        height: 160px !important;  /* было 160px → +20px */
        max-height: 160px !important;
        min-height: 160px !important;
        margin-top: -30px !important;
        position: relative !important;
        overflow: visible !important;
        background: #ffffff !important;
    }

    .catalog-hero-slide {
        height: 160px !important;  /* было 160px → +20px */
        position: relative !important;
        background: transparent !important;
        background-image: none !important;
    }

    .catalog-banner-content {
        padding-top: 5px !important;
        padding-bottom: 5px !important;
        height: 100% !important;
        display: flex !important;
        align-items: center !important;
        background: #ffffff !important;
        position: relative !important;
    }

    .catalog-hero-content-wrapper {
        width: 100% !important;
        max-width: 800px !important;  /* добавили ограничение, но шире */
        position: relative !important;
        padding-bottom: 50px;
    }

    .catalog-hero-title {
        font-size: 1.6rem !important;
        margin-bottom: 0.3rem !important;
        color: #689550 !important;
    }

    .catalog-hero-subtitle {
        font-size: 0.9rem !important;
        margin-bottom: 0.2rem !important;
        max-width: 90% !important;  /* было 70% → теперь шире */
        line-height: 1.3 !important;
        color: #666666 !important;
        opacity: 0.9;
    }

    /* ===== ПРОСТАЯ НАВИГАЦИЯ В НИЖНЕМ ЛЕВОМ УГЛУ ===== */
    .catalog-nav-mobile {
        position: absolute !important;
        bottom: 12px !important;
        left: 20px !important;
        right: auto !important;
        top: auto !important;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        padding: 0 !important;
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border: none !important;
        border-radius: 0 !important;
        z-index: 10 !important;
        width: auto !important;
        box-shadow: none !important;
    }

    .catalog-nav-mobile .nav-item {
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
        color: #999999 !important;
        text-decoration: none !important;
        font-size: 0.75rem !important;
        font-weight: 400 !important;
        transition: var(--transition) !important;
        padding: 4px 6px !important;
        border-radius: 0 !important;
        white-space: nowrap !important;
        background: transparent !important;
    }

    .catalog-nav-mobile .nav-item .material-icons {
        font-size: 1rem !important;
        color: #999999 !important;
    }

    .catalog-nav-mobile .nav-item:hover {
        color: #555555 !important;
        background: transparent !important;
    }

    .catalog-nav-mobile .nav-item:hover .material-icons {
        color: #555555 !important;
    }

    .catalog-nav-mobile .nav-item.active {
        color: #2d2d2d !important;
        background: transparent !important;
        font-weight: 500 !important;
    }

    .catalog-nav-mobile .nav-item.active .material-icons {
        color: #2d2d2d !important;
    }

    .catalog-nav-mobile .nav-divider {
        color: #cccccc !important;
        font-size: 0.8rem !important;
        padding: 0 2px !important;
    }
}

@media (max-width: 480px) {
    .catalog-hero-banner {
        height: 160px !important;  /* было 140px → +10px */
        max-height: 160px !important;
        min-height: 160px !important;
    }

    .catalog-hero-slide {
        height: 160px !important;
    }

    .catalog-hero-title {
        font-size: 1.3rem !important;
    }

    .catalog-hero-subtitle {
        font-size: 0.8rem !important;
        max-width: 90% !important;  /* было 65% → шире */
    }

    .catalog-nav-mobile {
        bottom: 8px !important;
        gap: 4px !important;
    }

    .catalog-nav-mobile .nav-item {
        font-size: 0.65rem !important;
        padding: 3px 4px !important;
        gap: 3px !important;
    }

    .catalog-nav-mobile .nav-item .material-icons {
        font-size: 0.85rem !important;
    }

    .catalog-nav-mobile .nav-divider {
        font-size: 0.7rem !important;
    }
}

/* ===== КНОПКА ДЛЯ ТОВАРОВ В КАТАЛОГЕ (как на странице товара) ===== */
.btn-add-to-cart {
    flex: 1;
    background: var(--primary-color);
    color: var(--text-white);
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    min-height: 44px;
}

.btn-add-to-cart:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-add-to-cart:active {
    opacity: 0.8;
}

.btn-add-to-cart .material-icons {
    font-size: 20px;
}

.btn-add-to-cart.added {
    background: var(--primary-dark) !important;
}

/* ===== КНОПКА ДЛЯ НАБОРОВ В КАТАЛОГЕ ===== */
.btn-kit {
    flex: 1;
    background: var(--primary-color);
    color: var(--text-white);
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
    min-height: 44px;
}

.btn-kit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-kit:active {
    opacity: 0.8;
}

.btn-kit .material-icons {
    font-size: 20px;
}

.btn-kit.added {
    background: var(--primary-dark) !important;
}

@media (max-width: 768px) {
    .btn-add-to-cart {
        padding: 10px 12px;
        font-size: 0.75rem;
        min-height: 36px;
        gap: 4px;
    }

    .btn-add-to-cart .material-icons {
        font-size: 16px;
    }

    .btn-kit {
        padding: 10px 12px;
        font-size: 0.75rem;
        min-height: 36px;
        gap: 4px;
    }

    .btn-kit .material-icons {
        font-size: 16px;
    }
}

@media (max-width: 400px) {
    .btn-add-to-cart {
        padding: 6px 8px;
        font-size: 0.7rem;
        min-height: 30px;
        font-weight: 400;
    }

    .btn-add-to-cart .material-icons {
        font-size: 14px;
    }

    .btn-kit {
        padding: 6px 8px;
        font-size: 0.7rem;
        min-height: 30px;
        font-weight: 400;
    }

    .btn-kit .material-icons {
        font-size: 14px;
    }
}

/* ===== КНОПКА ДЛЯ ТОВАРОВ В КАТАЛОГЕ (как на главной и странице товара) ===== */
.btn-add-to-cart {
    flex: 1;
    background: var(--primary-color);
    color: var(--text-white);
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 400;  /* ← ИЗМЕНЕНО: было 600, стало 400 */
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1rem;  /* ← ДОБАВЛЕНО: как на главной */
    min-height: 44px;
}

.btn-add-to-cart:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-add-to-cart:active {
    opacity: 0.8;
}

.btn-add-to-cart .material-icons {
    font-size: 20px;
}

.btn-add-to-cart.added {
    background: var(--primary-dark) !important;
}

/* ===== КНОПКА ДЛЯ НАБОРОВ В КАТАЛОГЕ ===== */
.btn-kit {
    flex: 1;
    background: var(--primary-color);
    color: var(--text-white);
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 400;  /* ← ИЗМЕНЕНО: было 600, стало 400 */
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1rem;  /* ← ДОБАВЛЕНО: как на главной */
    min-height: 44px;
}

.btn-kit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-kit:active {
    opacity: 0.8;
}

.btn-kit .material-icons {
    font-size: 20px;
}

.btn-kit.added {
    background: var(--primary-dark) !important;
}

/* Мобильная версия */
@media (max-width: 768px) {
    .btn-add-to-cart {
        padding: 10px 12px;
        font-size: 0.75rem;
        font-weight: 400;  /* ← ДОБАВЛЕНО */
        min-height: 36px;
        gap: 4px;
    }

    .btn-add-to-cart .material-icons {
        font-size: 16px;
    }

    .btn-kit {
        padding: 10px 12px;
        font-size: 0.75rem;
        font-weight: 400;  /* ← ДОБАВЛЕНО */
        min-height: 36px;
        gap: 4px;
    }

    .btn-kit .material-icons {
        font-size: 16px;
    }
}

@media (max-width: 400px) {
    .btn-add-to-cart {
        padding: 6px 8px;
        font-size: 0.7rem;
        font-weight: 400;
        min-height: 30px;
    }

    .btn-add-to-cart .material-icons {
        font-size: 14px;
    }

    .btn-kit {
        padding: 6px 8px;
        font-size: 0.7rem;
        font-weight: 400;
        min-height: 30px;
    }

    .btn-kit .material-icons {
        font-size: 14px;
    }
}

@media (max-width: 400px) {
    .current-price {
        font-size: 0.75rem;
    }
    .old-price {
        font-size: 0.55rem;
        padding-bottom: 10px;
    }
}

/* ===== ФИКС КНОПКИ НА МОБИЛКАХ ===== */
@media (max-width: 768px) {
    .product-actions {
        display: flex !important;
        gap: 6px !important;
        width: 100% !important;
        height: 36px !important;
        min-height: 36px !important;
        max-height: 36px !important;
        overflow: hidden !important;
        flex-shrink: 0 !important;
    }

    .btn-add-to-cart,
    .btn-kit {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        padding: 6px 8px !important;
        font-size: 0.7rem !important;
        font-weight: 400 !important;
        border-radius: 6px !important;
        min-height: 36px !important;
        height: 36px !important;
        gap: 4px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
        transition: background 0.3s ease !important;
    }

    .btn-add-to-cart .material-icons,
    .btn-kit .material-icons {
        font-size: 16px !important;
        flex-shrink: 0 !important;
    }

    .btn-add-to-cart span:not(.material-icons),
    .btn-kit span:not(.material-icons) {
        display: inline-block !important;
        white-space: nowrap !important;
        flex-shrink: 1 !important;
        font-size: 0.65rem !important;
    }

    .catalog-btn-favorite {
        flex-shrink: 0 !important;
        min-width: 36px !important;
        width: 36px !important;
        height: 36px !important;
    }

    .out-of-stock-message,
    .hits-btn-check-availability {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        max-width: 100% !important;
        width: 100% !important;
        padding: 6px 8px !important;
        font-size: 0.6rem !important;
        min-height: 36px !important;
        height: 36px !important;
        border-radius: 6px !important;
        box-sizing: border-box !important;
        white-space: nowrap !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Убираем трансформацию при добавлении */
    .btn-add-to-cart.added,
    .btn-kit.added {
        transform: none !important;
        background: var(--primary-dark) !important;
    }
}

@media (max-width: 400px) {
    .product-actions {
        height: 30px !important;
        min-height: 30px !important;
        max-height: 30px !important;
        gap: 4px !important;
    }

    .btn-add-to-cart,
    .btn-kit {
        min-height: 30px !important;
        height: 30px !important;
        padding: 4px 6px !important;
        font-size: 0.6rem !important;
        gap: 3px !important;
    }

    .btn-add-to-cart .material-icons,
    .btn-kit .material-icons {
        font-size: 14px !important;
    }

    .btn-add-to-cart span:not(.material-icons),
    .btn-kit span:not(.material-icons) {
        font-size: 0.55rem !important;
    }

    .catalog-btn-favorite {
        min-width: 30px !important;
        width: 30px !important;
        height: 30px !important;
    }

    .catalog-btn-favorite .material-icons {
        font-size: 14px !important;
    }

    .out-of-stock-message,
    .hits-btn-check-availability {
        min-height: 30px !important;
        height: 30px !important;
        padding: 4px 6px !important;
        font-size: 0.5rem !important;
    }
}


/* ===== ФИКС ХЕДЕРА ФИЛЬТРОВ НА МОБИЛКАХ ===== */
@media (max-width: 768px) {
    .filters-header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 100% !important;
        flex-wrap: nowrap !important;
    }

    .filters-toggle-btn {
        flex: 0 1 auto !important;
        min-width: 0 !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .filters-title {
        font-size: 1rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .filters-count {
        flex-shrink: 0 !important;
        margin-left: 4px !important;
    }

    .clear-filters-btn {
        flex-shrink: 0 !important;
        margin-left: auto !important;
        font-size: 0.75rem !important;
        padding: 4px 8px !important;
        white-space: nowrap !important;
    }
}

@media (max-width: 400px) {
    .filters-title {
        font-size: 0.85rem !important;
    }

    .clear-filters-btn {
        font-size: 0.75rem !important;
        padding: 3px 6px !important;
    }

    .filters-count {
        font-size: 0.6rem !important;
        min-width: 16px !important;
        height: 16px !important;
        padding: 0 5px !important;
    }
}