.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    font-size: 14px;
    color: #222;
    background-color: #f7f0e8;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    height: 100px;
}

.left,
.right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 98px;
}


.btn-icon {
    background: none;
    border: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: #222;
    padding: 4px 6px;
}

.view-icons {
    display: flex;
    gap: 24px;
    align-items: center;
}

.view-icons img {
    display: block;
    width: 20px;
    height: auto;
}


.btn-icon i {
    font-size: 14px;
}

.result-text {
    color: #444;
}

.divider {
    width: 1.5px;
    height: 30px;
    background-color: #bbb;
    margin: 0 12px;
}

input[type="number"],
select {
    border: 1px solid #ddd;
    border-radius: 2px;
    padding: 4px 6px;
    font-size: 20px;
    font-weight: 400;
    color: #9F9F9F;
    line-height: 100%;
    outline: none;
    width: 188px;
    height: 55px;
}

input[type="number"] {
    width: 55px;
    height: 55px;
    text-align: center;
}

select {
    background: white;
}


.product-grid-title h2 {
    text-align: center;
    font-size: 40px;
    margin-bottom: 32px;
    margin-top: 56px;
    font-weight: 700;
    color: #3A3A3A;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1236px;
    margin: 0 auto;
    margin-top: 46px;
}

.product-card {
    background-color: #F4F5F7;
    overflow: hidden;
    position: relative;
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
}

.product-card.hidden {
    opacity: 0;
    transform: scale(0.95);
    visibility: hidden;
    position: absolute;
}


.product-card:hover .product-overlay {
    opacity: 1;
}

.product-image {
    position: relative;
}

.product-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.badge {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    color: white;
    font-size: 16px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 500;
}

.badge.sale {
    background-color: #E97171;
}

.badge.new {
    background-color: #2EC1AC;
}

.product-info {
    padding: 16px 16px 30px;
}

.product-title {
    font-weight: 600;
    font-size: 24px;
    margin-bottom: 8px;
    color: #3A3A3A;
}

.product-description {
    color: #898989;
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: 500;
}

.product-price {
    font-weight: 600;
    color: #3A3A3A;
    font-size: 20px;
}

.product-price .old-price {
    text-decoration: line-through;
    color: #B0B0B0;
    margin-left: 16px;
    font-size: 16px;
    font-weight: 400;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(58, 58, 58, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-overlay button {
    background-color: #FFFFFF;
    border: none;
    padding: 12px 52px;
    margin-bottom: 24px;
    cursor: pointer;
    color: #B88E2F;
    font-weight: 600;
    font-size: 16px;
}

.overlay-actions {
    display: flex;
    gap: 20px;
    font-size: 16px;
    font-weight: 600;
    color: #FFFFFF;
}

.overlay-actions span {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 60px;
    margin-bottom: 70px;
}

.page-btn,
.next-btn {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 400;
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    background-color: #FFF3E3;
    color: #3A3A3A;
    transition: background-color 0.3s, color 0.3s;
}

.next-btn {
    width: auto;
    padding: 0 25px;
}

.page-btn.active {
    background-color: #B88E2F;
    color: #FFFFFF;
    font-weight: 600;
}

.page-btn:hover:not(.active),
.next-btn:hover {
    background-color: #f2e4ce;
}

@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        margin: 0 24px;
    }

    .filter-bar .left,
    .filter-bar .right {
        margin: 0 24px;
        gap: 8px;
    }
}

@media (max-width: 768px) {
    .banner {
        height: 250px;
    }

    .banner_background {
        background-position: 0% 10%;
    }

    .filter-bar {
        flex-direction: column;
        height: auto;
        padding: 20px 16px;
        gap: 20px;
    }

    .filter-bar .left,
    .filter-bar .right {
        margin: 0;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .divider {
        display: none;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        margin: 0 16px;
        gap: 16px;
    }

    .product-title {
        font-size: 20px;
    }

    input[type="number"],
    select {
        width: 100%;
        height: 45px;
        font-size: 16px;
    }

    .pagination {
        gap: 10px;
        margin-top: 40px;
        margin-bottom: 50px;
    }

    .page-btn,
    .next-btn {
        width: 48px;
        height: 48px;
        font-size: 16px;
    }

    .next-btn {
        padding: 0 16px;
        width: auto;
    }
}

@media (max-width: 480px) {
    .banner {
        height: 200px;
    }

    .banner__content__name {
        font-size: 28px;
    }

    .product-grid {
        grid-template-columns: 1fr;
        margin: 0 12px;
    }

    .filter-bar .right {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-bar .right input[type="number"],
    .filter-bar .right select {
        width: 100%;
        text-align: center;
    }

    .page-btn,
    .next-btn {
        width: 42px;
        height: 42px;
        font-size: 14px;
    }

    .next-btn {
        padding: 0 12px;
    }
}