@font-face {
    font-family: 'Magnolia Script';
    src: url('/static/fonts/magnolia-script.woff2') format('woff2'),
         url('/static/fonts/magnolia-script.woff') format('woff'),
         url('/static/fonts/magnolia-script.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;
    }
}

@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;
    margin-bottom: 25px;
}

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

.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;
}

.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;
}

.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 {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    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;
}

.filter-group.active .filter-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

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

.filter-options {
    padding: 16px;
    max-height: 200px;
    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);
    transform: translateX(4px);
}

.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;
}

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


.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;
}


.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-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;
}

@media (hover: hover) and (pointer: fine) {
    .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);
    }
}

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

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

.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);
}

@media (max-width: 969px) {
    .btn-favorite {
        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;
}


.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.product-badge.sale {
    background: var(--accent-color);
    color: var(--text-white);
}

.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);
}

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

.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;
    color: var(--text-light);
    text-decoration: line-through;
    margin-bottom: 5px;
}

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

.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: 5px;
}

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


.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 20px 0;
    flex-shrink: 0;
}

.pagination-btn {
    width: 44px;
    height: 44px;
    border: 2px solid var(--border-light);
    background: var(--bg-white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    color: var(--text-secondary);
    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(59, 130, 246, 0.3);
}

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

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


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

.product-badge.hit {
    animation: pulse-hit 1.5s ease-in-out infinite;
}


@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);
    }
}

.product-badge.promotion {
    animation: pulse-promotion 2s infinite;
}


@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);
    }
}

@media (max-width: 1024px) {
    .filters-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 768px) {
    .catalog-section {
        padding: 20px 0;
    }

    .filters-top {
        padding: 20px;
    }

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

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

    .catalog-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

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

    .product-info {
        padding: 15px;
    }

    .product-name {
        font-size: 1rem;
    }

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

    .pagination-btn {
        width: 40px;
        height: 40px;
    }

    .active-filters-list {
        gap: 6px;
    }

    .active-filter-tag {
        font-size: 0.8rem;
        padding: 5px 10px;
    }

    
    .product-card {
        animation-delay: 0s !important;
        animation-duration: 0.4s;
    }
}

@media (max-width: 480px) {
    .catalog-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .filters-header {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    .filters-title {
        font-size: 1.1rem;
        flex-shrink: 0;
        margin: 0;
    }

    .clear-filters-btn {
        font-size: 0.85rem;
        padding: 6px 12px;
        margin-left: auto;
        white-space: nowrap;
    }

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


@media (max-width: 360px) {
    .filters-header {
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    .filters-title {
        width: auto;
        margin-bottom: 0;
    }

    .clear-filters-btn {
        margin-left: 0;
    }
}


@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 (hover: hover) and (pointer: fine) {
    .product-card-inner:hover .btn-favorite {
        opacity: 1;
        transform: translateY(0);
    }

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


.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);
}

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

.btn-add-to-cart {
    flex: 2;
}


.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;
}


.search-container {
    display: flex;
    gap: 8px;
    padding: 10px;
}

.search-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    font-size: 0.9rem;
}

.search-btn {
    padding: 8px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}


.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 20px 0;
    flex-shrink: 0;
}

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

.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(59, 130, 246, 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);
}


@media (max-width: 768px) {
    .pagination-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .pagination {
        gap: 4px;
    }

    .pagination-btn {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }
}


.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;
}



.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: 40px;
    height: 40px;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.pagination-btn:hover {
    border-color: #007bff;
    color: #007bff;
}

.pagination-btn.active {
    background: #007bff;
    color: white;
    border-color: #007bff;
}

.pagination-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}


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


.btn-favorite {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.8);
    z-index: 10;
}


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


.btn-favorite.active.always-visible {
    opacity: 1;
    transform: scale(1);
}


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


.btn-favorite.active .material-icons {
    color: #e74c3c;
}

.btn-favorite .material-icons {
    color: #666;
    font-size: 20px;
    transition: color 0.3s ease;
}

.btn-favorite:hover .material-icons {
    color: #e74c3c;
}


.btn-favorite {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}


@media (hover: hover) and (pointer: fine) {
    .btn-favorite {
        opacity: 0;
        transform: scale(0.8);
    }

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


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


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


.btn-favorite .material-icons {
    font-size: 20px;
    transition: color 0.3s ease;
}


.btn-favorite .material-icons {
    color: #666;
}


.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;
}


.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;
}


@media (max-width: 768px) {
    .pagination {
        gap: 6px;
        margin: 30px 0;
    }

    .pagination-btn {
        min-width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .pagination {
        gap: 4px;
    }

    .pagination-btn {
        min-width: 36px;
        height: 36px;
        font-size: 0.8rem;
        padding: 6px 8px;
    }
}


.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);
}

.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-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;
}


.btn-favorite,
.btn-add-to-cart {
    cursor: pointer;
    position: relative;
    z-index: 10;
}


.product-card-link {
    text-decoration: none;
    color: inherit;
}


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

@media (max-width: 768px) {
    .catalog-grid {
        grid-template-columns: 1fr;
    }

    .product-card-link {
        margin-bottom: 0;
    }
}


.catalog-btn-favorite {
    width: 50px;
    height: 50px;
    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;
}


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

.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: 5px;
}

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

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

.filter-group:not(.active) .filter-dropdown {
    display: none !important;
}

.filter-group:not(.active) .filter-options {
    display: none !important;
}


.filter-dropdown {
    display: none;
}

.filter-group.active .filter-dropdown {
    display: block;
}

/* Стили для сообщения "Нет в наличии" в каталоге */
.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;
}

/* Альтернативный стиль с предупреждающим цветом */
.out-of-stock-message.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.out-of-stock-message.warning .material-icons {
    color: #856404;
}

/* Стиль с красным акцентом */
.out-of-stock-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.out-of-stock-message.error .material-icons {
    color: #721c24;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .out-of-stock-message {
        padding: 10px 12px;
        font-size: 0.85rem;
        min-height: 40px;
    }

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

/* Анимация появления */
@keyframes outOfStockAppear {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.out-of-stock-message {
    animation: outOfStockAppear 0.3s ease-out;
}

.out-of-stock-message:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}


.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: 768px) {
    .hits-btn-check-availability {
        font-size: 12px;
        padding: 14px;
        min-height: 40px;
    }

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