/* КАТАЛОГ HERO */
.catalog-hero {
    padding: 7rem 1rem 3.5rem;
    background: linear-gradient(135deg, #443f3c 0%, #2a2725 100%) !important;
    color: #faf5ef;
    margin-top: 0;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    user-select: none;
}

.catalog-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><path d="M30 5 L55 30 L30 55 L5 30 Z" fill="none" stroke="%23d65049" stroke-width="0.5" opacity="0.1"/></svg>');
    background-size: 60px 60px;
    z-index: -1;
    animation: slowShift 40s linear infinite;
}

@keyframes slowShift {
    0% { background-position: 0 0; }
    100% { background-position: 60px 60px; }
}

.catalog-hero .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* ===== СЛАЙДЕР HERO ===== */
.hero-slideshow {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
}

.hero-slide {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    transition: opacity 0.8s ease-in-out;
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
}

.catalog-hero h1 {
    font-family: "Unbounded", sans-serif;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    pointer-events: none;
}

.catalog-hero h1 span {
    color: #d65049;
    font-style: italic;
    font-family: "Literata", serif;
    display: inline-block;
    position: relative;
    pointer-events: none;
}

.catalog-hero h1 span::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 0;
    width: 100%;
    height: 6px;
    background-color: rgba(214, 80, 73, 0.2);
    z-index: -1;
}

.catalog-hero p {
    max-width: 550px;
    margin-bottom: 1rem;
    font-size: 1rem;
    opacity: 0.9;
    pointer-events: none;
}

.hero-tag {
    display: inline-block;
    background-color: rgba(214, 80, 73, 0.15);
    backdrop-filter: blur(5px);
    padding: 0.3rem 1.2rem;
    border-radius: 40px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #d65049;
    border: 1px solid rgba(214, 80, 73, 0.3);
    margin-top: 0.5rem;
    pointer-events: none;
}

.catalog-stats {
    display: flex;
    gap: 2.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    pointer-events: none;
}

.stat-number {
    font-family: "Unbounded", sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #d65049;
    line-height: 1;
    margin-bottom: 0.2rem;
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.7;
}

/* ОСНОВНОЙ КОНТЕЙНЕР КАТАЛОГА */
.catalog-main {
    padding: 3rem 1rem;
    background-color: #faf5ef;
}

.catalog-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

/* ФИЛЬТРЫ */
.filters-sidebar {
    flex: 0 0 280px;
    position: sticky;
    top: 90px;
    align-self: flex-start;
    height: fit-content;
    max-height: calc(100vh - 120px);
}

.filters-sticky {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 24px;
    box-shadow: 0 20px 40px -15px rgba(68, 63, 60, 0.15);
    border: 1px solid rgba(214, 80, 73, 0.1);
    transition: box-shadow 0.3s ease;
    width: 100%;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #d65049 #f0e8e0;
}

.filters-sticky:hover {
    box-shadow: 0 25px 50px -15px rgba(214, 80, 73, 0.2);
    border-color: rgba(214, 80, 73, 0.3);
}

.filters-sticky::-webkit-scrollbar {
    width: 4px;
}

.filters-sticky::-webkit-scrollbar-track {
    background: #f0e8e0;
    border-radius: 10px;
}

.filters-sticky::-webkit-scrollbar-thumb {
    background: #d65049;
    border-radius: 10px;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    cursor: default;
    user-select: none;
}

.filter-header h2 {
    font-family: "Literata", serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: #443f3c;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.filter-header h2 span {
    color: #d65049;
    font-style: italic;
}

.filter-header h2::before {
    content: '◆';
    color: #d65049;
    font-size: 1rem;
    opacity: 0.5;
    margin-right: 0.3rem;
}

.filter-content {
    display: block;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.8rem;
}

.filter-tag {
    background: none;
    border: 1px solid #dcc8b7;
    padding: 0.4rem 1.2rem;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #443f3c;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    user-select: none;
    text-decoration: none;
    display: inline-block;
}

.filter-tag:hover,
.filter-tag.active {
    background-color: #d65049;
    border-color: #d65049;
    color: #faf5ef;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 1.5rem;
}

.filter-group label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #a69e98;
    font-weight: 600;
    user-select: none;
}

.filter-select {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid #dcc8b7;
    border-radius: 12px;
    font-family: "Plus Jakarta Sans", sans-serif;
    background-color: #faf5ef;
    color: #443f3c;
    cursor: pointer;
    transition: all 0.2s;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="%23443f3c" stroke-width="2"><polyline points="6 9 12 15 18 9"/></svg>');
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    background-size: 12px;
    font-size: 0.9rem;
}

.filter-select:hover {
    border-color: #d65049;
}

.filter-select:focus {
    outline: none;
    border-color: #d65049;
    box-shadow: 0 0 0 3px rgba(214, 80, 73, 0.1);
}

.price-range {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.price-range input {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid #dcc8b7;
    border-radius: 12px;
    font-family: inherit;
    background-color: #faf5ef;
    font-size: 0.9rem;
}

.price-range input:focus {
    outline: none;
    border-color: #d65049;
}

.price-range span {
    color: #a69e98;
    font-size: 0.9rem;
    user-select: none;
}

.theme-filters {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed #dcc8b7;
    margin-bottom: 1.8rem;
}

.theme-filters h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #443f3c;
    font-weight: 500;
    user-select: none;
}

.theme-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.theme-tag {
    background: none;
    border: 1px solid #dcc8b7;
    padding: 0.4rem 1rem;
    border-radius: 40px;
    font-size: 0.85rem;
    color: #443f3c;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    user-select: none;
    text-decoration: none;
    display: inline-block;
}

.theme-tag:hover,
.theme-tag.active {
    background-color: #d65049;
    border-color: #d65049;
    color: #faf5ef;
}

.filter-reset-btn {
    background: none;
    border: 1px solid #dcc8b7;
    color: #443f3c;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    width: 100%;
    text-align: center;
    margin: 0.5rem auto 0;
    display: block;
    user-select: none;
    box-sizing: border-box;
    text-decoration: none;
}

.filter-reset-btn:hover {
    background-color: #d65049;
    border-color: #d65049;
    color: #faf5ef;
}

/* КНОПКА ИЗБРАННОГО (СЕРДЦЕ) */
.favorite-btn {
    position: absolute;
    top: 2px;
    right: 10px;
    width: 40px;
    height: 40px;
    min-width: 40px;
    max-width: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d65049;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 20;
    padding: 0;
    margin: 0;
    line-height: 1;
}

.favorite-btn:hover {
    transform: scale(1.1);
    background: #d65049;
    color: white;
    box-shadow: 0 4px 12px rgba(214, 80, 73, 0.3);
}

.favorite-btn svg {
    width: 24px;
    height: 24px;
    display: block;
}

.favorite-form {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 30;
    margin: 0;
    padding: 0;
    line-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.favorite-form button {
    pointer-events: auto;
    position: relative;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
}

/* Бейдж "Новинка" */
.card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #d65049;
    color: #faf5ef;
    padding: 0.2rem 0.7rem;
    border-radius: 40px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 15;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    user-select: none;
    white-space: nowrap;
    line-height: 1.2;
}

/* КОНТЕЙНЕР КАРТОЧЕК */
.catalog-content {
    flex: 1;
    min-width: 0;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.artwork-card {
    position: relative;
    background-color: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 16px -5px rgba(68, 63, 60, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.artwork-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 25px -10px rgba(214, 80, 73, 0.2);
    border-color: #d65049;
}

.card-media {
    position: relative;
    aspect-ratio: 1.3 / 1.2;
    overflow: hidden;
    background-color: #f0e8e0;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.artwork-card:hover .card-media img {
    transform: scale(1.05);
}

.card-content {
    padding: 0.8rem 0.6rem 0.6rem;
    background: #fff;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-size: 0.9rem;
    margin-bottom: 0.15rem;
    font-weight: 500;
    line-height: 1.2;
    color: #443f3c;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    user-select: none;
}

.card-artist {
    color: #d65049;
    font-size: 0.7rem;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    user-select: none;
}

.card-artist::before {
    content: '✧';
    font-size: 0.7rem;
    color: #d65049;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 0.4rem;
    border-top: 1px dashed #dcc8b7;
}

.card-price {
    font-family: "Unbounded", sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: #443f3c;
    user-select: none;
}

.card-year {
    font-size: 0.55rem;
    color: #a69e98;
    background-color: #faf5ef;
    padding: 0.1rem 0.4rem;
    border-radius: 40px;
    border: 1px solid #dcc8b7;
    user-select: none;
}

.card-hover-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(68,63,60,0.95), transparent);
    color: #faf5ef;
    padding: 1.2rem 0.8rem 0.8rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    pointer-events: none;
    font-size: 0.65rem;
}

.artwork-card:hover .card-hover-info {
    transform: translateY(0);
}

.card-hover-info span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.card-hover-info span::before {
    content: '▹';
    color: #d65049;
    font-size: 0.7rem;
}

/* ПАГИНАЦИЯ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem auto 3rem;
    flex-wrap: wrap;
    width: 100%;
}

.pagination-item {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #fff;
    color: #443f3c;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
    border: 1px solid #dcc8b7;
    font-size: 0.85rem;
    user-select: none;
    text-decoration: none;
}

.pagination-item:hover,
.pagination-item.active {
    background-color: #d65049;
    border-color: #d65049;
    color: #faf5ef;
}

.pagination-arrow {
    font-size: 1.1rem;
    border: none;
    background: none;
    color: #443f3c;
    cursor: pointer;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
    user-select: none;
    text-decoration: none;
}

.pagination-arrow:hover {
    color: #d65049;
}

.pagination-arrow.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* CTA */
.catalog-cta {
    background: linear-gradient(135deg, #443f3c, #2a2725);
    border-radius: 20px;
    padding: 1.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: #faf5ef;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    margin: 2rem auto 0;
    width: 100%;
}

.catalog-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(214,80,73,0.2), transparent 70%);
    z-index: -1;
}

.cta-content h3 {
    font-family: "Literata", serif;
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 0.3rem;
    user-select: none;
}

.cta-content h3 span {
    color: #d65049;
    font-style: italic;
}

.cta-content p {
    opacity: 0.8;
    font-size: 0.85rem;
    user-select: none;
}

.cta-btn {
    background-color: #d65049;
    color: #faf5ef;
    border: none;
    padding: 0.7rem 1.8rem;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    user-select: none;
    text-decoration: none;
    display: inline-block;
}

.cta-btn:hover {
    background-color: #faf5ef;
    color: #443f3c;
    transform: scale(1.05);
}

/* МОДАЛЬНОЕ ОКНО */
.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.auth-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    cursor: pointer;
}

.auth-modal .modal-content {
    position: relative;
    background: white;
    padding: 2rem;
    border-radius: 24px;
    max-width: 380px;
    width: 90%;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease;
    z-index: 10000;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f5f5f5;
    border: none;
    font-size: 24px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.2s;
    z-index: 10001;
}

.modal-close:hover {
    background: #d65049;
    color: white;
}

.modal-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.2rem;
    background: linear-gradient(135deg, #fef6f0, #fae6dd);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d65049;
}

.modal-icon svg {
    width: 35px;
    height: 35px;
}

.auth-modal h3 {
    font-size: 1.5rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.8rem;
    font-family: inherit;
}

.auth-modal p {
    color: #666;
    margin-bottom: 1.8rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.modal-actions .btn {
    padding: 0.7rem 1.8rem;
    border-radius: 40px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    min-width: 120px;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.modal-actions .btn-primary {
    background: #d65049;
    color: white;
}

.modal-actions .btn-primary:hover {
    background: #b53f38;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(214, 80, 73, 0.3);
}

.modal-actions .btn-outline {
    background: transparent;
    color: #333;
    border: 1px solid #ddd;
}

.modal-actions .btn-outline:hover {
    background: #f5f5f5;
    border-color: #d65049;
    transform: translateY(-2px);
}

/* СТИЛИ ДЛЯ ПУСТОГО РЕЗУЛЬТАТА */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 8px 16px -5px rgba(68, 63, 60, 0.1);
}

.no-results p {
    font-size: 1.1rem;
    color: #443f3c;
    margin-bottom: 1.5rem;
}

.no-results .btn-primary {
    display: inline-block;
    background-color: #d65049;
    color: #faf5ef;
    padding: 0.7rem 2rem;
    border-radius: 40px;
    text-decoration: none;
    transition: all 0.3s;
}

.no-results .btn-primary:hover {
    background-color: #b53f38;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(214, 80, 73, 0.3);
}

/* АДАПТАЦИЯ */

/* Планшеты */
@media (max-width: 1300px) {
    .catalog-grid {
        gap: 1.1rem;
    }
}

@media (max-width: 1200px) {
    .filters-sidebar {
        flex: 0 0 260px;
    }
    .catalog-grid {
        gap: 1rem;
    }
}

@media (max-width: 992px) {
    .filters-sidebar {
        position: relative;
        top: 0;
        flex: none;
        width: 100%;
        max-height: none;
        padding: 0 1rem;
    }
    .filters-sticky {
        position: relative;
        top: 0;
        max-height: none;
        overflow-y: visible;
        margin: 0 auto;
        padding: 1.2rem;
    }
    .catalog-container {
        flex-direction: column;
        gap: 1.5rem;
        padding: 0;
    }
    .filter-header {
        cursor: pointer;
        margin-bottom: 0;
        padding: 0.5rem 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .filter-header h2 {
        font-size: 1.3rem;
    }
    .filter-header::after {
        content: '▼';
        font-size: 0.9rem;
        color: #d65049;
        transition: transform 0.3s;
    }
    .filter-header.active::after {
        transform: rotate(180deg);
    }
    .filter-content {
        display: none;
    }
    .filter-content.active {
        display: block;
    }
    .catalog-content {
        width: 100%;
        padding: 0 1rem;
    }
    .catalog-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .favorite-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
        max-width: 36px;
        top: 8px;
        right: 8px;
    }

    .favorite-btn svg {
        width: 22px;
        height: 22px;
    }

    .favorite-form {
        top: 8px;
        right: 8px;
    }

    .card-badge {
        top: 8px;
        left: 8px;
        font-size: 0.6rem;
        padding: 0.15rem 0.6rem;
    }
}

@media (max-width: 880px) {
    .catalog-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.9rem;
    }
}

@media (max-width: 800px) {
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 600px;
        gap: 1rem;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 700px) {
    .catalog-grid {
        max-width: 550px;
        gap: 1rem;
    }

    .favorite-btn {
        width: 34px;
        height: 34px;
        min-width: 34px;
        max-width: 34px;
    }

    .favorite-btn svg {
        width: 20px;
        height: 20px;
    }

    .card-badge {
        font-size: 0.55rem;
        padding: 0.12rem 0.5rem;
    }
}

@media (max-width: 600px) {
    .catalog-main {
        padding: 2rem 0.5rem;
    }
    .catalog-grid {
        max-width: 500px;
        gap: 0.9rem;
        padding: 0 0.5rem;
    }
    .catalog-content {
        padding: 0 0.5rem;
    }
    .filters-sidebar {
        padding: 0 0.5rem;
    }
}

@media (max-width: 550px) {
    .catalog-grid {
        max-width: 480px;
        gap: 0.8rem;
    }
    .card-content h3 {
        font-size: 0.85rem;
    }
    .card-artist {
        font-size: 0.65rem;
    }
    .card-price {
        font-size: 0.8rem;
    }
    .catalog-cta {
        flex-direction: column;
        text-align: center;
        justify-content: center;
        padding: 1.5rem;
    }
    .cta-content {
        width: 100%;
        text-align: center;
    }
    .cta-content h3 {
        font-size: 1.1rem;
    }
    .cta-content p {
        font-size: 0.8rem;
    }
    .cta-btn {
        margin: 0 auto;
        padding: 0.6rem 1.6rem;
        font-size: 0.75rem;
    }

    .favorite-btn {
        width: 32px;
        height: 32px;
        min-width: 32px;
        max-width: 32px;
        top: 6px;
        right: 6px;
    }

    .favorite-btn svg {
        width: 15px;
        height: 15px;
    }

    .favorite-form {
        top: 1px;
        right: 4px;
    }

    .card-badge {
        top: 5px;
        left: 4px;
        font-size: 0.5rem;
        padding: 0.08rem 0.6rem;
    }
}

@media (max-width: 500px) {
    .catalog-grid {
        max-width: 450px;
        gap: 0.7rem;
    }
}

@media (max-width: 480px) {
    .catalog-hero {
        padding: 6rem 0.5rem 3rem;
    }
    .catalog-hero h1 {
        font-size: 1.5rem;
    }
    .catalog-hero p {
        font-size: 0.9rem;
    }
    .hero-tag {
        font-size: 0.7rem;
    }
    .filters-sticky {
        padding: 1rem;
    }
    .filter-header h2 {
        font-size: 1.2rem;
    }
    .filter-tag {
        font-size: 0.8rem;
        padding: 0.3rem 1rem;
    }
    .filter-group label {
        font-size: 0.75rem;
    }
    .filter-select,
    .price-range input {
        font-size: 0.85rem;
        padding: 0.5rem 0.7rem;
    }
    .theme-filters h3 {
        font-size: 0.9rem;
    }
    .theme-tag {
        font-size: 0.8rem;
        padding: 0.3rem 0.9rem;
    }
    .filter-reset-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
        max-width: 200px;
    }
    .catalog-grid {
        max-width: 420px;
        gap: 0.7rem;
        padding: 0 0.3rem;
    }
    .card-content {
        padding: 0.7rem 0.5rem 0.5rem;
    }
    .card-content h3 {
        font-size: 0.8rem;
    }
    .card-artist {
        font-size: 0.6rem;
    }
    .card-price {
        font-size: 0.75rem;
    }
    .card-year {
        font-size: 0.55rem;
    }
    .pagination-item {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }
    .pagination-arrow {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    .hero-slideshow {
        min-height: 140px;
    }
    .modal-content {
        padding: 1.5rem;
    }
    .modal-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

}

@media (max-width: 400px) {
    .catalog-main {
        padding: 1.5rem 0.3rem;
    }
    .catalog-grid {
        max-width: 360px;
        gap: 0.6rem;
    }
    .card-content h3 {
        font-size: 0.75rem;
    }
    .card-artist {
        font-size: 0.55rem;
    }
    .card-price {
        font-size: 0.7rem;
    }
    .filter-tag {
        font-size: 0.75rem;
        padding: 0.25rem 0.9rem;
    }
    .theme-tag {
        font-size: 0.75rem;
        padding: 0.25rem 0.8rem;
    }
    .catalog-cta {
        padding: 1.2rem;
    }
    .filter-reset-btn {
        max-width: 180px;
    }

    .favorite-btn {
        width: 28px;
        height: 28px;
        min-width: 28px;
        max-width: 28px;
        top: 5px;
        right: 5px;
    }

    .favorite-btn svg {
        width: 12px;
        height: 12px;
    }

    .favorite-form {
        top: 2px;
        right: 4px;
    }

    .card-badge {
        top: 5px;
        left: 4px;
        font-size: 0.5rem;
        padding: 0.08rem 0.6rem;
    }
}

@media (max-width: 360px) {
    .catalog-grid {
        max-width: 330px;
        gap: 0.5rem;
    }
    .card-content h3 {
        font-size: 0.7rem;
    }
    .card-price {
        font-size: 0.65rem;
    }
    .card-badge {
        font-size: 0.5rem;
        padding: 0.1rem 0.5rem;
    }
    .catalog-stats {
        gap: 1.5rem;
    }
    .stat-number {
        font-size: 1.4rem;
    }
    .stat-label {
        font-size: 0.7rem;
    }
    .filter-reset-btn {
        max-width: 160px;
        font-size: 0.75rem;
    }
    .cta-content h3 {
        font-size: 0.95rem;
    }
    .cta-btn {
        padding: 0.5rem 1.4rem;
        font-size: 0.7rem;
    }

    .favorite-btn {
        width: 26px;
        height: 26px;
        min-width: 26px;
        max-width: 26px;
    }
}

@media (max-width: 320px) {
    .catalog-grid {
        max-width: 290px;
        gap: 0.4rem;
    }
    .card-content h3 {
        font-size: 0.65rem;
    }
    .card-artist {
        font-size: 0.5rem;
    }
    .card-price {
        font-size: 0.6rem;
    }
    .hero-slideshow {
        min-height: 130px;
    }
    .hero-tag {
        font-size: 0.6rem;
        padding: 0.2rem 0.8rem;
    }
    .filter-reset-btn {
        max-width: 140px;
        font-size: 0.7rem;
    }
    .cta-content h3 {
        font-size: 0.85rem;
    }
    .cta-btn {
        padding: 0.4rem 1.2rem;
        font-size: 0.65rem;
    }

    .favorite-btn {
        width: 24px;
        height: 24px;
        min-width: 24px;
        max-width: 24px;
        top: 4px;
        right: 4px;
    }
}

