.bestseller-page {
    padding: 40px 0 80px;
    background-color: #fafafa;
}

.bestseller-container {
    display: block;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.page-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    color: #222;
}

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

.header-filters label {
    font-size: 14px;
    font-weight: 600;
    color: #666;
}

.filter-dropdown {
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #fff;
    color: #333;
    cursor: pointer;
    outline: none;
    transition: all 0.3s ease;
    min-width: 220px;
}

.filter-dropdown:focus {
    border-color: #ffeb3b;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.main-content {
    width: 100%;
}

.stars .active-star {
    color: #f5a623 !important;
}

.stars .empty-star {
    color: #d1d5db !important;
}

.card-review-stat {
    color: #555;
    font-size: 13px;
    font-weight: 500;
    margin-left: 5px;
}

.no-card-reviews {
    color: #888;
    font-size: 12.5px;
    font-style: italic;
}

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

.product-card {
    background-color: #fff;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

.product-image {
    position: relative;
    height: 260px;
    background-color: #f9f9f9;
}

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

.badge.discount {
    position: absolute; 
    top: 15px;
    left: 15px;
    z-index: 5;        
    background-color: #d32f2f;
    color: #fff;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
}

.price-wrapper {
    display: flex;
    flex-direction: column;
}

.no-deals-fallback-notice {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #777;
    font-size: 16px;
    font-weight: 500;
}

.pagination {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.page-btn {
    padding: 10px 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.page-btn:hover:not(:disabled) {
    background-color: #f5f5f5;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-numbers {
    display: flex;
    gap: 8px;
}

.page-num {
    width: 38px;
    height: 38px;
    border: 1px solid #ddd;
    background-color: #fff;
    border-radius: 6px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.page-num:hover,
.page-num.active {
    background-color: #222;
    color: #fff;
    border-color: #222;
}

.clickable-product-card {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.clickable-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.clickable-product-card .wishlist-btn,
.clickable-product-card .add-to-cart-btn {
    cursor: pointer;
}

.footer-logo {
    display: inline-block;
    color: #fff;
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.breadcrumb-nav {
    background: transparent;
    border: none;
    padding: 16px 0 8px 0;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
    font-weight: 500;
}

.breadcrumb-item {
    display: inline-flex;
    align-items: center;
}

.breadcrumb-link {
    color: #4b5563;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.breadcrumb-link:hover {
    color: #111827;
}

.breadcrumb-home-icon {
    font-size: 12px;
}

.breadcrumb-separator {
    margin: 0 10px;
    color: #9ca3af;
    user-select: none;
}

.breadcrumb-item.active {
    color: #8b0000;
    font-weight: 600;
}

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

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

@media (max-width: 650px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    .page-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    .header-filters {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    .filter-dropdown {
        width: 100%;
    }
}