.allproducts-header {
    margin-top: 3rem;
    width: 100%;
}

.header-banner {
    width: 100%;
    height: auto;
    /* để ảnh không bị méo */
    display: block;
}

/* Main layout */
.allproducts-main-content {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    margin-top: 8rem;
}

/* SIDEBAR */
.allproducts-sidebar {
    width: 250px;
    background-color: #f8fafc;
    padding: 25px;
    border-radius: 12px;
    height: fit-content;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.allproducts-filter-section {
    margin-bottom: 30px;
}

.allproducts-filter-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 15px;
    color: #1e293b;
}

.allproducts-color-option {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    gap: 5px
}

.allproducts-color-checkbox {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    border-radius: 4px;
    cursor: pointer;
}

.allproducts-color-red {
    background-color: #ef4444;
}

.allproducts-color-orange {
    background-color: #f97316;
}

.allproducts-color-purple {
    background-color: #8b5cf6;
}

.allproducts-color-gray {
    background-color: #6b7280;
}

.allproducts-color-white {
    background-color: #ffffff;
    border: 2px solid #d1d5db;
}

.allproducts-price-range {
    display: flex;
    margin-bottom: 10px;
}

.allproducts-price-range input[type="checkbox"] {
    margin-right: 8px;
}

/* Product Grid */
.allproducts-products-section {
    flex: 1;
}

.allproducts-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.allproducts-product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.allproducts-product-card img {
    width: 100%;
}

.allproducts-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.allproducts-product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background-color: #f1f5f9;
}

.allproducts-product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.allproducts-badge-new {
    background-color: #10b981;
    color: white;
}

.allproducts-badge-hot {
    background-color: #f59e0b;
    color: white;
}

.allproducts-badge-limited {
    background-color: #ef4444;
    color: white;
}

.allproducts-product-info {
    padding: 20px;
}

.allproducts-product-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1e293b;
}

.allproducts-product-price {
    display: flex;
    font-size: 1.2rem;
    font-weight: bold;
    /* color: #2563eb; */
    gap: 1px;
}

.allproducts-heart-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    font-size: 16px;
    color: #6b7280;
}

.allproducts-heart-icon:hover {
    transform: scale(1.1);
}

.allproducts-heart-icon.liked {
    color: #ef4444;
    background-color: rgba(255, 255, 255, 0.95);
}

/* Responsive */
@media (max-width: 1024px) {
    .allproducts-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .allproducts-main-content {
        flex-direction: column;
    }

    .allproducts-sidebar {
        width: 100%;
    }

    .allproducts-products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .allproducts-banner-text {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .allproducts-products-grid {
        grid-template-columns: 1fr;
    }
}

.favorite-icon {
    color: #999;
    font-size: 22px;
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}

.favorite-icon.active {
    color: #e60023;
    /* đỏ tươi */
    content: "♥";
}



/* Giá cũ bị mờ */
.allproducts-product-price del {
    opacity: 0.5;
}

/* Nút */
.product-buttons {
    margin-top: 10px;

}

.header-banner:hover {
    transform: scale(0.95);
    transition: 0.5s;
}

.add-to-cart-btn,
.buy-now-btn {
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    width: 100%;
    display: flex;
    justify-content: center;
}

.add-to-cart-btn {
    background: #f5f5f5;
    border: 1px solid #ddd;
    font-weight: bold;
    color: black;
}

.buy-now-btn {
    background: #1BCAC4;
    ;
    color: #fff;
    border: none;
    margin-top: 5px;

}

.buy-now-btn:hover {
    background: #0073aa
}

.product-category a {
    text-decoration: none;
    color: gray;
}

.allproducts-product-price bdi {
    color: black;
    text-decoration: none;
}

.filter-submit-btn {
    background: rgb(27, 202, 196);
    padding: 10px 10px;
    font-size: medium;
    font-weight: bold;
}
.allproducts-pagination{
    display: flex;
    justify-content: center;
    margin-top: 10px;
    gap: 12px;
}
/* Pagination container */
.allproducts-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
}

/* Các nút */
.allproducts-pagination .page-numbers {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 8px;
    background: #f5f5f5;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Hover */
.allproducts-pagination .page-numbers:hover {
    background: #222;
    color: #fff;
}

/* Trang hiện tại */
.allproducts-pagination .page-numbers.current {
    background: #1BCAC4;
    color: #fff;
    font-weight: 600;
}