.catalog-section {
    padding: 70px 0 70px;
    scroll-margin-top: 75px;
    font-family: 'Montserrat', sans-serif;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
}

    .section-title span {
        font-size: 15px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 5px;
        color: #B87B5C;
        display: block;
        margin-bottom: -20px;
    }

    .section-title h2 {
        font-size: 38px;
        font-weight: 300;
        letter-spacing: 2px;
        color: #2E2B28;
    }

    .title-line {
        width: 60px;
        height: 2px;
        background: #B87B5C;
        margin: 25px auto 0;
    }

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    min-width: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    will-change: opacity, transform;
}

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

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

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

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

    .section-title h2 {
        font-size: 28px;
    }

    .section-title span {
        font-size: 13px;
        margin-bottom: -10px;
    }

    .catalog-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .filter-open-btn {
        width: 70%;
        justify-content: center;
        min-width: 80px;
        padding: 10px 20px;
        font-size: 0.75rem;
    }
    
    .style-ribbon-wrapper {
        width: 100%;
    }

    .catalog-grid {
        gap: 20px;
    }

    


    .card-arrow {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .card-prev {
        left: 5px;
    }

    .card-next {
        right: 5px;
    }

    .card-dot {
        width: 8px;
        height: 8px;
    }

    .page-link {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .card-slider-container {
        height: 220px;
    }
    
    .price-value {
        font-size: 17px;
    }
    
    .btn-more {
        padding: 8px 15px;
        font-size: 11px;
    }
}

.kitchen-card {
    display: flex;
    background: #fff;
    flex-direction: column;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 0;
    height: 100%;
    position: relative;
    border: 1px solid transparent;
    word-break: break-word;
    overflow-wrap: break-word;
}
    

    .kitchen-card:hover {
        border-color: rgba(184, 123, 92, 0.1);
        transform: translateY(-5px);
    }

        .kitchen-card:hover .card-slides img {
            filter: grayscale(0%);
        }

.hidden-by-filter{
    display: none;
}

.card-slider-container {
    position: relative;
    height: 320px;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 4px;
    background: #fdfbf7;
}

.card-slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

    .card-slides img {
        width: 100%;
        min-width: 100%;
        flex-shrink: 0;
        height: 100%;
        object-fit: cover;
        filter: grayscale(20%);
        transition: all 0.8s ease;
    }

.card-arrow {
    position: absolute;
    top: 50%;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    font-size: 12px;
    opacity: 0;
    transition: 0.3s;
}

    .card-arrow:hover {
        background: rgba(255, 255, 255, 0.9)
    }

.card-slider-container:hover .card-arrow {
    opacity: 1;
}

.card-prev {
    left: 10px;
}

.card-next {
    right: 10px;
}

.card-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transition: 0.3s;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
    opacity: 0;
}

    .card-slider-container:hover .card-dots{
        opacity: 1;
    }

.card-dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

    .card-dot.active {
        background: #fff;
        transform: scale(1.2);
    }

    .card-dot:hover{
        background: #ccc;
        transform: scale(1.1)
    }


.card-content h3 {
    font-size: 1.1rem;
    margin: 0 0 5px 0;
}

.card-content p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 2.8em;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #f5f5f5;
}

.price-wrapper {
    display: flex;
    align-items: baseline;
    gap: 4px;
    color: #2E2B28;
}

.price-prefix {
    font-size: 14px;
    font-weight: 400;
    color: #888;
    text-transform: lowercase;
}

.price-value {
    font-size: 19px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.price-currency {
    font-size: 18px;
    font-weight: 500;
}

.btn-more {
    padding: 10px 20px;
    background-color: #B87B5C;
    text-decoration: none;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    border-radius: 2px;
    text-transform: uppercase;
    transition: 0.3s;
}

    .btn-more:hover {
        background-color: #94644c ;
    }


.pagination {
    margin-top: 80px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.page-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #2E2B28;
    border: 1px solid #eee;
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.4s ease;
    background: #fff;
    backface-visibility: hidden;
    transform: translateZ(0);
}

    .page-link.disabled {
        color: #ccc;
        border-color: #eee;
        cursor: not-allowed;
        pointer-events: none;
    }

    .page-link:hover {
        border-color: #B87B5C;
        color: #B87B5C;
        background: #fdfbf7;
    }

    .page-link.active {
        background-color: #B87B5C;
        border-color: #B87B5C;
        color: #fff;
        cursor: default;
        box-shadow: 0 4px 10px rgba(184, 123, 92, 0.3);
    }

    .prev-btn, .next-btn{
        text-decoration:none;
        cursor: pointer;
        background: #fff;
    }

.page-dots {
    display: flex;
    align-items: flex-end;
    padding: 0 5px 8px;
    color: #888;
    font-weight: 600;
    letter-spacing: 2px;
}


@media (max-width: 768px) {

    .catalog-controls {
        flex-direction: column;
        gap: 15px;
    }

    .catalog-controls img{
        height: 18px;
        width: 18px;
    }
    
    .style-ribbon-wrapper {
        width: 100%;
    }

    .page-link{
        width: 30px;
        height: 30px;
    }

    .card-dot{
        width: 10px;
        height: 10px;
    }

    .card-arrow{
        width: 40px;
        height: 40px;
        font-size: 15px;
    }
}