/* ========================================
   BEST SELLING PRODUCTS PAGE
   Sản phẩm bán chạy
======================================== */

.uv-best-selling-page {
    background-color: #f1f5f9;
    min-height: calc(100vh - 130px);
    padding: 40px 0 60px;
}

.uv-best-selling-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 30px;
}

/* ========================================
   SIDEBAR
======================================== */

.uv-best-selling-sidebar {
    width: 280px;
    flex-shrink: 0;
    margin-top: 20px;
}

.uv-sidebar-section {
    margin-bottom: 30px;
}

.uv-sidebar-title {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #000;
    text-transform: uppercase;
    margin-bottom: 20px;
    line-height: 1.2;
}

.uv-sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.uv-sidebar-list li {
    margin-bottom: 12px;
}

.uv-sidebar-link {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #000;
    text-decoration: none;
    display: block;
    transition: color 0.2s ease;
    line-height: 1.4;
}

.uv-sidebar-link:hover,
.uv-sidebar-link.active {
    color: #0035a8;
    font-weight: 500;
}

.uv-sidebar-divider {
    height: 1px;
    background-color: #d1d5db;
    margin-top: 20px;
}

/* ========================================
   MAIN CONTENT
======================================== */

.uv-best-selling-main {
    flex: 1;
}

.uv-best-selling-title {
    font-family: 'Inter', sans-serif;
    font-size: 40px;
    font-weight: 700;
    color: #0036a5;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 40px;
    line-height: 1.2;
}

/* ========================================
   PRODUCT GRID
======================================== */

.uv-best-selling-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 40px;
}

.uv-bs-product-card {
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 339px;
}

.uv-bs-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.uv-bs-product-image {
    width: 100%;
    height: 212px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    overflow: hidden;
}

.uv-bs-product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.uv-bs-product-info {
    padding: 10px 15px 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.uv-bs-product-prices {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 5px;
}

.uv-bs-product-price {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #ce0030;
    line-height: 1.3;
}

.uv-bs-product-price-old {
    font-family: 'Roboto', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #7c7c7c;
    text-decoration: line-through;
    line-height: 1.3;
}

.uv-bs-product-points {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #0035a8;
    margin-bottom: 8px;
    line-height: 1.3;
}

.uv-bs-product-name {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #000;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 42px;
}

/* ========================================
   PAGINATION
======================================== */

.uv-best-selling-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
}

.uv-bs-page-btn {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: #000;
    padding: 0;
}

.uv-bs-page-btn:hover {
    color: #0035a8;
}

.uv-bs-page-btn svg {
    width: 12px;
    height: 24px;
}

.uv-bs-page-prev svg {
    transform: rotate(180deg);
}

.uv-bs-page-number {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #78829d;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.uv-bs-page-number.active,
.uv-bs-page-number:hover {
    background-color: #1b84ef;
    color: #fff;
}

/* ========================================
   MOBILE FILTER BAR
======================================== */
.uv-mobile-filter-bar {
    gap: 10px;
    margin-bottom: 20px;
}

.uv-mobile-filter-group {
    flex: 1;
}

.uv-mobile-filter-select {
    width: 100%;
    height: 44px;
    padding: 0 40px 0 15px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background-color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #333;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    outline: none;
}

.uv-mobile-filter-select:focus {
    border-color: #0035a8;
}

/* ========================================
   RESPONSIVE
======================================== */

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

@media (max-width: 992px) {
    .uv-best-selling-container {
        flex-direction: column;
    }

    .uv-best-selling-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .uv-best-selling-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .uv-best-selling-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .uv-bs-product-card {
        height: 100%;
        min-height: 0;
    }

    .uv-bs-product-image {
        height: 180px;
    }

    .uv-bs-product-price {
        font-size: 16px;
    }

    .uv-bs-product-points {
        font-size: 14px;
    }

    .uv-bs-product-name {
        font-size: 14px;
    }
}

@media (max-width: 480px) {

    .uv-best-selling-container {
        padding: 0 10px;
    }

    .uv-best-selling-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .uv-bs-product-image {
        height: 150px;
        padding: 10px;
    }

    .uv-bs-product-info {
        padding: 8px 10px 12px;
    }

    .uv-sidebar-title {
        font-size: 16px;
    }

    .uv-sidebar-link {
        font-size: 14px;
    }

    .uv-best-selling-pagination {
        padding-bottom: 60px;
        justify-content: center;
        flex-wrap: wrap;
    }
}