﻿

 
/* Mobile Filter Modal Styles */
.mobile-unique-filter-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999999;
    display: none;
    visibility: hidden;
    opacity: 0;
    backdrop-filter: blur(3px);
    transition: all 0.3s ease;
}

.mobile-unique-filter-modal.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.mobile-unique-filter-modal-content {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    border-radius: 0;
    height: 100vh;
    max-height: 100vh;
    min-height: 100vh;
    overflow: hidden;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    box-shadow: none;
    border: none;
    z-index: 1000000;
    width:85%
}

.mobile-unique-filter-modal.show .mobile-unique-filter-modal-content {
    transform: translateY(0) !important;
}

.mobile-unique-card {
    border: none;
    box-shadow: none;
}

.mobile-unique-card-header {
    background: linear-gradient(135deg, #16bcdc, #0056b3) !important;
    color: white !important;
    padding: 25px 20px 20px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    border-radius: 0;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 123, 255, 0.2);
}

.mobile-unique-card-header::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 5px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 3px;
}

.mobile-unique-close-modal {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.mobile-unique-close-modal i {
    color: white !important;
}

.mobile-unique-close-modal:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.mobile-unique-card-body {
    padding: 20px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    background: #fafbfc;
    height: calc(100vh - 200px);
    min-height: calc(100vh - 200px);
}

.mobile-unique-filter-section {
    margin-bottom: 25px;
    border-bottom: 1px solid #e9ecef;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    margin-bottom: 15px;
}

.mobile-unique-filter-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.mobile-unique-filter-title {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f8f9fa;
}

.mobile-unique-filter-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
}

.mobile-unique-filter-list-scrollable {
    max-height: 100%;
}

.mobile-unique-filter-item {
        margin-bottom: 15px;
        width: 100%;
}

.mobile-unique-filter-checkbox {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 8px 10px;
        background: #f8f9fa;
        border-radius: 8px;
        transition: all 0.2s;
        cursor: pointer;
        min-height: 44px;
}

.mobile-unique-filter-checkbox:hover {
    background: #e9ecef;
    transform: translateX(2px);
}

.mobile-unique-filter-checkbox input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
    accent-color: #16bcdc;
}

.mobile-unique-filter-checkbox label {
            flex: 1;
            color: #333;
            font-size: 13px;
            cursor: pointer;
            margin: 0;
            line-height: 1.3;
            word-break: break-word;
}

.mobile-unique-category-link {
    text-decoration: none;
    color: #333 !important;
    font-size: 14px;
    flex: 1;
    transition: color 0.2s;
}

.mobile-unique-category-link:hover {
    color: #16bcdc !important;
}

.mobile-unique-filter-count {
    background: #16bcdc;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    min-width: 24px;
    text-align: center;
}

.mobile-unique-show-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #16bcdc;
    font-size: 14px;
    cursor: pointer;
    padding: 10px;
    margin-top: 10px;
    border: 2px dashed #16bcdc;
    border-radius: 8px;
    transition: all 0.2s;
}

.mobile-unique-show-more:hover {
    background: #f0f8ff;
    transform: translateY(-1px);
}

.mobile-unique-show-more i {
    transition: transform 0.2s;
}

.mobile-unique-show-more.expanded i {
    transform: rotate(180deg);
}

.mobile-unique-hidden {
    display: none !important;
}

.mobile-unique-filter-item:nth-child(n+6) {
    display: none;
}

.mobile-unique-filter-item.mobile-unique-show {
    display: block !important;
}

.mobile-unique-price-slider-container {
    margin: 15px 0;
}

.mobile-unique-price-range-inputs {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-unique-price-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f9fa;
    padding: 12px 15px;
    border-radius: 10px;
}

.mobile-unique-price-input-group span {
    font-size: 14px;
    color: #666;
    white-space: nowrap;
}

.mobile-unique-price-input {
    flex: 1;
    border: none;
    background: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}

.mobile-unique-price-input:focus {
    border-color: #16bcdc;
}

.mobile-unique-filter-button {
    background: linear-gradient(135deg, #16bcdc, #0056b3);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    width: 100%;
    margin-top: 10px;
}

.mobile-unique-filter-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.mobile-unique-filter-button-secondary {
    background: linear-gradient(135deg, #6c757d, #495057);
}

.mobile-unique-filter-button-secondary:hover {
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
}

.mobile-unique-filter-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
    padding: 20px;
    background: white;
    border-radius: 0;
    box-shadow: 0 -3px 15px rgba(0, 0, 0, 0.08);
    position: sticky;
    bottom: 0;
}

.mobile-unique-mb-4 {
    margin-bottom: 1.5rem;
}

.mobile-unique-me-2 {
    margin-right: 0.5rem;
}

.mobile-unique-bg-primary {
    background-color: #16bcdc !important;
}

.mobile-unique-text-white {
    color: white !important;
}

/* Animation keyframes */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

    @media (max-width: 1280px) {
        .product-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr))!important;
            gap: 20px;
        }
    }
/* Responsive adjustments */
@media (max-width: 480px) {
    .mobile-unique-filter-modal-content {
        height: 100vh;
        max-height: 100vh;
        min-height: 100vh;
    }
    
    .mobile-unique-card-header {
        padding: 20px 15px 15px 15px;
        font-size: 16px;
    }
    custom-sort-optionss{
        display:block!important;
    }
    #filterButtonMobile{
            display: block !important;
            background-color: white!important;
            border: none;
            border-radius: 0px;
            color:black;
    }
    .mobile-unique-card-body {
        padding: 15px;
        height: calc(100vh - 180px);
        max-height: calc(100vh - 180px);
        min-height: calc(100vh - 180px);
    }
    
    .mobile-unique-filter-section {
        padding: 15px;
        margin-bottom: 12px;
    }
    
    .mobile-unique-filter-buttons {
        padding: 15px;
        gap: 10px;
    }
}

@media (max-height: 600px) {
    .mobile-unique-filter-modal-content {
        height: 100vh;
        max-height: 100vh;
    }
    
    .mobile-unique-card-body {
        height: calc(100vh - 160px);
        max-height: calc(100vh - 160px);
    }
}

/* Smooth scrollbar */
.mobile-unique-card-body::-webkit-scrollbar,
.mobile-unique-filter-list::-webkit-scrollbar {
    width: 6px;
}

.mobile-unique-card-body::-webkit-scrollbar-track,
.mobile-unique-filter-list::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 10px;
}

.mobile-unique-card-body::-webkit-scrollbar-thumb,
.mobile-unique-filter-list::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #16bcdc, #0056b3);
    border-radius: 10px;
}

.mobile-unique-card-body::-webkit-scrollbar-thumb:hover,
.mobile-unique-filter-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
}

/* Thêm hiệu ứng fade in cho các section */
.mobile-unique-filter-section {
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

    /* CSS tĩnh cho danh sách sản phẩm - OPTIMIZED */
    .product-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px; /* Giảm gap từ 20px xuống 15px */
        will-change: transform; /* Tối ưu rendering */
    }
    
    /* Tối ưu rendering cho product items */
    .custom-item-product {
        contain: layout style paint; /* CSS containment để tối ưu */
    }
    
    .custom-product-item {
        will-change: transform;
        backface-visibility: hidden;
        transform: translateZ(0); /* Force GPU acceleration */
    }


    /* Brand Carousel - Cố định 2 hàng, lướt ngang */
    :root {
        --primary-color: #16bcdc;
        --text-color: #333;
        --border-color: #e0e0e0;
        --white: #fff;
    }
    /* CSS cho carousel thương hiệu hai hàng */

    /* Container chính */
    /* novazone style carousel cho thương hiệu */

    .novazone-mall-section {
        background-color: #fff;
        border-radius: 2px;
        box-shadow: 0 1px 1px 0 rgba(0,0,0,.05);
        margin-bottom: 20px;
        overflow: hidden;
        margin-top: 20px;
    }

    .novazone-mall-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        border-bottom: 1px solid #f5f5f5;
    }

    .novazone-mall-title {
        color: #16bcdc;
        font-size: 16px;
        font-weight: 500;
        margin: 0;
    }

    .novazone-mall-view-all {
        color: #16bcdc;
        font-size: 14px;
        text-decoration: none;
        display: flex;
        align-items: center;
    }

        .novazone-mall-view-all .right-icon {
            margin-left: 5px;
            font-size: 12px;
        }

    /* Brand container */
    .brands-container {
        position: relative;
        width: 100%;
        overflow: hidden;
    }

    /* Brand row */
    .brand-row {
        display: flex;
        position: relative;
        transition: transform 0.5s ease;
    }

    /* Brand box */
    .brand-box {
        flex: 0 0 calc(100% / 6); /* 6 brands per row */
        height: 250px; /* 2 boxes of 70px each */
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
        border-right: 1px solid #f5f5f5;
        border-bottom: 1px solid #f5f5f5;
    }

    /* Each brand item in box */
    .brand-item {
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 10px;
        background-color: #fff;
        position: relative;
        overflow: hidden;
        cursor: pointer;
    }

        .brand-item:first-child {
            border-bottom: 1px solid #f5f5f5;
        }

        .brand-item:hover {
            background-color: rgba(0, 0, 0, 0.01);
        }

        .brand-item img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            width: 100%;
            height: 100px;
        }

    /* Navigation arrows */
    .nav-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 30px;
        height: 45px;
        background-color: rgba(0,0,0,.18);
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10;
        cursor: pointer;
        opacity: 0;
        transition: opacity 0.2s;
    }

    .brands-container:hover .nav-arrow {
        opacity: 1;
    }

    .nav-prev {
        left: 0;
        border-top-right-radius: 4px;
        border-bottom-right-radius: 4px;
    }

    .nav-next {
        right: 0;
        border-top-left-radius: 4px;
        border-bottom-left-radius: 4px;
    }

    /* Responsive */
    @media (max-width: 1199px) {
        .brand-box {
            flex: 0 0 calc(100% / 5); /* 5 brands per row */
        }
    }

    @media (max-width: 991px) {
        .brand-box {
            flex: 0 0 calc(100% / 4); /* 4 brands per row */
        }
    }

    @media (max-width: 767px) {
        .brand-box {
            flex: 0 0 calc(100% / 3); /* 3 brands per row */
        }

        .novazone-mall-title {
            font-size: 16px;
        }

        .nav-arrow {
            width: 25px;
            height: 40px;
        }
    }

    @media (max-width: 575px) {
        .brand-box {
            flex: 0 0 calc(100% / 2); /* 2 brands per row */
            height: 120px;
        }

        .brand-item img {
            max-height: 40px;
        }
    }
    /* Bộ lọc sản phẩm */
    .custom-filter-section {
        margin-bottom: 20px;
        border-bottom: 1px solid var(--gray-200);
        padding-bottom: 15px;
    }

        .custom-filter-section:last-child {
            border-bottom: none;
            padding-bottom: 0;
        }

    .custom-filter-title {
        font-weight: 600;
        color: var(--gray-800);
        margin-bottom: 12px;
        font-size: 15px;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .custom-filter-list {
        /*        max-height: 200px;

                        overflow-y: auto; */

        margin-bottom: 10px;
    }

    .custom-filter-item {
        margin-bottom: 8px;
    }

    .custom-filter-checkbox {
        display: flex;
        align-items: center;
        position: relative;
        cursor: pointer;
    }

        .custom-filter-checkbox input[type="checkbox"] {
            margin-right: 8px;
            width: 16px;
            height: 16px;
            cursor: pointer;
        }

        .custom-filter-checkbox label {
            flex: 1;
            font-size: 14px;
            color: var(--gray-700);
            cursor: pointer;
            margin-bottom: 0;
        }

    .custom-filter-count {
        font-size: 12px;
        color: var(--gray-600);
        background-color: var(--gray-200);
        padding: 2px 6px;
        border-radius: 10px;
        margin-left: auto;
    }

    .custom-show-more {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 5px 0;
        cursor: pointer;
        font-size: 13px;
        color: var(--primary-color);
        transition: all 0.2s;
    }

        .custom-show-more:hover {
            color: var(--primary-dark);
        }

        .custom-show-more i {
            margin-left: 5px;
            font-size: 10px;
            transition: transform 0.2s;
        }

        .custom-show-more.active i {
            transform: rotate(180deg);
        }

    /* Lọc theo giá */
    .custom-price-slider-container {
        padding: 10px 0;
    }

    .custom-price-range-inputs {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 15px;
    }

    .custom-price-input-group {
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .custom-price-input {
        width: 90px;
        padding: 5px 8px;
        border: 1px solid var(--gray-300);
        border-radius: 4px;
        font-size: 13px;
        text-align: right;
    }

    .custom-price-slider {
        position: relative;
        width: 100%;
        height: 5px;
        margin: 15px 0;
    }

    .custom-price-slider-track {
        position: absolute;
        width: 100%;
        height: 5px;
        background-color: var(--gray-300);
        border-radius: 3px;
    }

    .custom-price-slider-range {
        position: absolute;
        height: 5px;
        background-color: var(--primary-color);
        border-radius: 3px;
        z-index: 1;
    }

    .custom-price-slider-thumb {
        position: absolute;
        width: 15px;
        height: 15px;
        background-color: var(--white);
        border: 2px solid var(--primary-color);
        border-radius: 50%;
        top: -5px;
        z-index: 2;
        cursor: pointer;
    }

    .custom-price-slider-thumb-left {
        left: 0;
    }

    .custom-price-slider-thumb-right {
        right: 0;
    }

    .custom-price-slider-thumb:hover,
    .custom-price-slider-thumb.active {
        box-shadow: 0 0 0 3px rgba(22, 188, 220, 0.2);
    }

    /* Nút bộ lọc */
    .custom-filter-buttons {
        display: flex;
        gap: 10px;
        margin-top: 20px;
    }

    .custom-filter-button {
        padding: 8px 15px;
        border-radius: 4px;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        border: none;
        width: 100%;
    }

        .custom-filter-button i {
            font-size: 12px;
        }

    .custom-filter-button-primary {
        background-color: var(--primary-color);
        color: var(--white);
    }

        .custom-filter-button-primary:hover {
            background-color: var(--primary-dark);
        }

    .custom-filter-button-secondary {
        background-color: var(--gray-200);
        color: var(--gray-700);
    }

        .custom-filter-button-secondary:hover {
            background-color: var(--gray-300);
        }

    /* Custom scrollbar cho bộ lọc */
    .custom-filter-list::-webkit-scrollbar {
        width: 5px;
    }

    .custom-filter-list::-webkit-scrollbar-track {
        background: var(--gray-200);
        border-radius: 10px;
    }

    .custom-filter-list::-webkit-scrollbar-thumb {
        background: var(--gray-400);
        border-radius: 10px;
    }

        .custom-filter-list::-webkit-scrollbar-thumb:hover {
            background: var(--gray-500);
        }

    /* Responsive cho bộ lọc */
    @media (max-width: 1199px) {
        .custom-filter-title {
            font-size: 14px;
        }

        .banner-slider {
            position: relative;
            width: 100%;
            height: 640px;
        }
    }

    @media (max-width: 991px) {
    

        .banner-slider {
            position: relative;
            width: 100%;
            height: 290px !important;
        }
    }

    @media (max-width: 767px) {
        .custom-filter-section {
            margin-bottom: 15px;
            padding-bottom: 10px;
        }

        .partner-brands-container {
            position: relative;
            overflow: hidden;
            padding: 0px;
            margin-top: 0;
        }

        .custom-filter-buttons {
            flex-direction: column;
            gap: 8px;
        }

        .custom-price-range-inputs {
            flex-direction: column;
            align-items: flex-start;
            gap: 10px;
        }

        .custom-price-input-group {
            width: 100%;
        }

        .custom-price-input {
            flex: 1;
        }
    }
    /* Biến màu sắc */
    :root {
        --primary-color: #16bcdc;
        --primary-dark: #13a3bf;
        --primary-light: #e1f5f9;
        --secondary-color: #16bcdc;
        --white: #fff;
        --dark: #2a3042;
        --gray-100: #f8f9fa;
        --gray-200: #e9ecef;
        --gray-300: #dee2e6;
        --gray-400: #ced4da;
        --gray-500: #adb5bd;
        --gray-600: #6c757d;
        --gray-700: #495057;
        --gray-800: #343a40;
        --success: #2cc067;
        --danger: #ef4444;
        --warning: #fbbf24;
    }

    /* Layout container */
    .custom-container {
        width: 100%;
        max-width: 95%;
        padding-right: 15px;
        padding-left: 15px;
        margin-right: auto;
        margin-left: auto;
    }

    .custom-row {
        display: flex;
        flex-wrap: wrap;
    }

    .custom-col-lg-3 {
        flex: 0 0 22%;
        max-width: 22%;
    }

    .custom-col-lg-9 {
        flex: 0 0 78%;
        max-width: 78%;
        padding-right: 15px;
        padding-left: 15px;
    }

    .custom-col-md-4 {
    }

    .custom-col-md-8 {
        padding-right: 15px;
        padding-left: 15px;
    }

    .custom-col-12 {
        flex: 0 0 100%;
        max-width: 100%;
        padding-right: 15px;
        padding-left: 15px;
    }

    /* Spacing */
    .custom-mb-4 {
        margin-bottom: 1.5rem;
    }

    .custom-mb-1 {
        margin-bottom: 0.25rem;
    }

    .custom-pb-3 {
        padding-bottom: 1rem;
    }

    .custom-pb-1 {
        padding-bottom: 0.25rem;
    }

    .custom-py-3 {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .custom-me-2 {
        margin-right: 0.5rem;
    }

    /* Alignment */
    .custom-d-flex {
        display: flex;
    }

    .custom-justify-content-center {
        justify-content: center;
    }

    .custom-justify-content-between {
        justify-content: space-between;
    }

    .custom-align-items-center {
        align-items: center;
        flex-wrap: wrap;
        justify-content: center;
    }

    .custom-text-center {
        text-align: center;
    }

    .custom-position-relative {
        position: relative;
    }

    .custom-overflow-hidden {
        overflow: hidden;
    }

    /* Card Filter */
    .custom-card {
        position: relative;
        background-color: var(--white);
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        margin-bottom: 1.5rem;
    }

    .custom-card-header {
        padding: 1rem 1.25rem;
        border-bottom: 1px solid var(--gray-200);
        border-radius: 8px 8px 0 0;
        font-weight: 600;
        display: flex;
        align-items: center;
    }

    .custom-card-body {
        padding: 1.25rem;
    }

    .custom-bg-primary {
        background-color: var(--primary-color);
    }

    .custom-text-white {
        color: var(--white);
    }

    .custom-icon-filter::before {
        content: "\f0b0";
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
    }

    /* Sort Bar */
    .custom-sort-bar {
        display: flex;
        align-items: center;
        gap: 15px;
        margin-bottom: 20px;
        flex-wrap: wrap;
        width: 100%;
    }

    .custom-sort-label {
        font-size: 15px;
        color: var(--gray-600);
        font-weight: 500;
    }

    .custom-sort-options {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        align-items: center;
        flex: 1;
    }

    .custom-sort-option-group {
        display: flex;
        gap: 5px;
    }

    .custom-sort-option {
        padding: 6px 15px;
        border-radius: 4px;
        border: 1px solid var(--gray-300);
        background-color: var(--white);
        font-size: 15px;
        color: var(--gray-700);
        cursor: pointer;
        transition: all 0.2s;
    }

        .custom-sort-option:hover {
            border-color: var(--primary-color);
            color: var(--primary-color);
        }

    .custom-sort-selected {
        background-color: var(--primary-color) !important;
        border-color: var(--primary-color);
        color: var(--white);
    }

    .custom-sort-price-select {
        padding: 6px 15px;
        border-radius: 4px;
        border: 1px solid var(--gray-300);
        background-color: var(--white);
        font-size: 0.9rem;
        color: var(--gray-700);
        cursor: pointer;
        transition: all 0.2s;
        display: flex;
        align-items: center;
        gap: 5px;
    }

        .custom-sort-price-select:hover {
            border-color: var(--primary-color);
            color: var(--primary-color);
        }

    .custom-icon-down {
        width: 10px;
        height: 6px;
        margin-left: 5px;
        transition: transform 0.2s;
    }

    /* Page Controller */
    .custom-page-controller {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .custom-page-state {
        font-size: 0.9rem;
        color: var(--gray-600);
    }

    .custom-page-current {
        font-weight: 600;
        color: var(--primary-color);
    }

    .custom-page-prev,
    .custom-page-next {
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--gray-300);
        border-radius: 4px;
        background-color: var(--white);
        color: var(--gray-700);
        transition: all 0.2s;
    }

        .custom-page-prev:hover,
        .custom-page-next:hover {
            border-color: var(--primary-color);
            color: var(--primary-color);
        }

    .custom-disabled {
        opacity: 0.5;
        cursor: not-allowed;
        pointer-events: none;
    }

    .custom-icon-left,
    .custom-icon-right {
        width: 7px;
        height: 11px;
    }

    /* Product Grid */
    .custom-item-product {
        flex: 0 0 25%;
        max-width: 100%;
    }

    .custom-bg-light {
        background-color: var(--gray-100);
    }

    /* Product Card */
    .custom-product-item {
        border: 1px solid var(--gray-200);
        border-radius: 8px;
        transition: all 0.3s ease;
        overflow: hidden;
        background-color: var(--white);
        height: 100%;
        display: flex;
        flex-direction: column;
    }

        .custom-product-item:hover {
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            transform: translateY(-3px);
        }

    .custom-product-img {
        position: relative;
        overflow: hidden;
        background-color: white;
    }

    .custom-img-fluid {
        max-width: 100%;
        height: auto;
        transition: transform 0.3s ease;
    }

    .custom-product-item:hover .custom-img-fluid {
        transform: scale(1.03);
    }

    /* Product Actions */
    .custom-product-action {
        position: absolute;
        width: 100%;
        bottom: -50px;
        left: 0;
        display: flex;
        justify-content: center;
        gap: 8px;
        padding: 10px 0;
        background-color: rgba(255, 255, 255, 0.9);
        transition: all 0.3s ease;
        z-index: 2;
    }

    .custom-product-item:hover .custom-product-action {
        bottom: 0;
    }

    .custom-btn {
        display: inline-block;
        font-weight: 400;
        text-align: center;
        vertical-align: middle;
        user-select: none;
        border: 1px solid transparent;
        padding: 0.375rem 0.75rem;
        font-size: 1rem;
        line-height: 1.5;
        border-radius: 0.375rem;
        transition: all 0.15s ease-in-out;
    }

    .custom-btn-outline-dark {
        color: var(--gray-700);
        border-color: var(--gray-300);
        background-color: var(--white);
    }

        .custom-btn-outline-dark:hover {
            color: var(--white);
            background-color: #999;
            border-color: var(--primary-color);
        }

    .custom-btn-square {
        width: 36px;
        height: 36px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 4px;
    }

    .custom-icon-cart::before {
        content: "\f07a";
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
    }

    .custom-icon-more::before {
        content: "\f141";
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
    }

    /* Product Info */
    .custom-product-name {
        height: 3.3em;
        display: block;
        overflow: hidden;
        line-height: 1.5em;
        white-space: normal;
        text-overflow: ellipsis;
        text-align: left;
        font-size: 15px;
        font-weight: bold;
        color: var(--gray-800);
        text-decoration: none;
        margin-bottom: 10px;
        padding: 0 10px;
    }

        .custom-product-name:hover {
            color: var(--primary-color);
        }

    .custom-price-wrapper {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 0 10px;
        margin-bottom: 8px;
    }

    .custom-price-original {
        font-size: 13px;
        text-align: left;
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
        margin-bottom: 5px;
    }

    .custom-text-muted {
        color: var(--gray-600);
    }

    .custom-text-success {
        color: var(--success);
        display: none;
    }

    @media (min-width: 992px) {
        .custom-text-success {
            display: inline;
        }
    }

    .custom-price-sale {
        font-size: 1.1em;
        font-weight: bold;
        text-align: left;
        color: var(--danger);
    }

    .custom-price-contact {
        display: block;
    }

    .custom-text-danger {
        color: var(--danger);
    }

    .custom-stock-status {
        padding: 0 10px;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .custom-stock-status h6 {
        text-align: right;
        margin: 0;
        font-size: 13px;
    }

    .custom-text-available {
        color: #28a745;
        font-size: 14px;
        line-height: 30px;
    }

    .custom-text-available.custom-text-inactive {
        color: #dc3545;
    }

    .custom-icon-check {
        color: inherit;
        margin-right: 5px;
    }

        .custom-icon-check::before {
            content: "\f00c";
            font-family: "Font Awesome 5 Free";
            font-weight: 900;
        }

    .custom-icon-x::before {
        content: "\f00d";
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
        margin-right: 5px;
    }

    .custom-text-preorder {
        color: #28a745;
        font-size: 14px;
        line-height: 30px;
    }

    .custom-text-preorder.custom-text-inactive {
        color: #dc3545;
    }

    .custom-icon-preorder {
        color: inherit;
        margin-right: 5px;
    }

        .custom-icon-preorder::before {
            content: "\f00c";
            font-family: "Font Awesome 5 Free";
            font-weight: 900;
        }

    .custom-stock-labels {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    /* Responsive */
    @media (max-width: 1199px) {
        .custom-item-product {
            flex: 0 0 33.333%;
            max-width: 100%;
        }
    }

    @media (max-width: 991px) {
        .custom-col-lg-3 {
            flex: 0 0 33.333%;
            max-width: 33.333%;
        }

        .custom-col-lg-9 {
            flex: 0 0 66.667%;
            max-width: 66.667%;
        }

        .product-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(160px, 2fr));
            gap: 10px;
        }

        .custom-col-md-4 {
            flex: 0 0 33.333%;
            max-width: 33.333%;
        }

        .partner-logo {
            display: flex;
            justify-content: center;
            align-items: center;
            /* padding: 10px; */
            transition: all 0.3s ease;
        }

        .custom-col-md-8 {
            flex: 0 0 66.667%;
            max-width: 66.667%;
        }

        .custom-item-product {
            flex: 0 0 50%;
            max-width: 100%;
        }

        .banner-slider {
            position: relative;
            width: 100%;
            height: 290px;
        }
    }
     @media (max-width: 480px) {
            .custom-col-lg-3, .custom-col-md-4{
                display:none;
            }
     }
    @media (max-width: 767px) {
        .custom-col-lg-3, .custom-col-md-4 {
            flex: 0 0 100%;
            max-width: 100%;
            margin-bottom: 10px;
        }

        .banner-slider {
            position: relative;
            width: 100%;
            height: 290px;
        }

        .partner-logo {
            display: flex;
            justify-content: center;
            align-items: center;
            /* padding: 10px; */
            transition: all 0.3s ease;
        }

        .product-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(120px, 2fr));
            gap: 20px;
        }

        .custom-col-lg-9,
        .custom-col-md-8 {
            flex: 0 0 100%;
            max-width: 100%;
        }

        .custom-sort-bar {
            flex-direction: column;
            align-items: flex-start;
        }

        .custom-sort-options {
            width: 100%;
            margin-bottom: 10px;
        }

        .custom-page-controller {
            width: 100%;
            justify-content: center;
        }

        .custom-item-product {
            flex: 0 0 50%;
            max-width: 100%;
        }
    }

    @media (max-width: 480px) {


        .product-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(140px, 2fr))!important;
            gap: 10px;
        }

        .product-grid {
            position: sticky; 
             top: 0; 
             z-index: 0; 
             background-color: #fff; 
             border: 1px solid #e6ecf2;
            padding: 0px 0 0px 0px;
            max-height: none!important; 
             overflow-x: unset;
            -webkit-overflow-scrolling:0 ;
            touch-action:none;
            margin-top: 0px; 
             border-radius: 0px;
        }
        .custom-item-product {
            flex: 0 0 50%;
            max-width: 100%;
            padding: 0 0px;
            margin-bottom: 0px;
        }

        .partner-logos {
            display: grid;
            grid-template-rows: repeat(1, 50px);
            grid-auto-flow: column;
            grid-auto-columns: 5.666%;
            min-width: 100%;
            width: max-content;
        }

        .product-banner {
            position: relative;
            overflow: hidden;
            /* margin-bottom: 30px; */
            border-radius: 10px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        .banner-slider {
            position: relative;
            width: 100%;
            height: 200px !important;
        }

        .banner-slide img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            z-index: 0;
        }

        .custom-sort-option-group {
            flex-wrap: wrap;
            gap: 8px;
        }

        .custom-product-action {
            position: static;
            width: 100%;
            bottom: -50px;
            left: 0;
            display: flex;
            justify-content: center;
            gap: 8px;
            padding: 10px 0;
            background-color: rgba(255, 255, 255, 0.9);
            transition: all 0.3s ease;
            z-index: 2;
        }
    }

    /* Banner và slider styles */
    /* Banner và slider styles */
    .product-banner {
        position: relative;
        overflow: hidden;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .banner-slider {
        position: relative;
        width: 100%;
        height: 640px;
    }

    .banner-slide {
        position: absolute;
        width: 100%;
        height: 100%;
        opacity: 0;
        transition: opacity 1s ease-in-out;
        display: flex;
        align-items: center;
    }

        .banner-slide.active {
            opacity: 1;
        }

        .banner-slide img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover; /* Đổi lại thành cover để hình ảnh rộng full */
            z-index: 0;
        }

    .banner-content {
        padding: 25px 80px;
        max-width: 100%; /* Mở rộng nội dung cho toàn bộ slide */
        background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0) 100%); /* Gradient background */
        position: absolute; /* Vị trí tuyệt đối */
        left: 0;
        top: 0;
        bottom: 0;
        width: 60%; /* Chiều rộng phần gradient */
        display: flex;
        flex-direction: column;
        justify-content: center;
        z-index: 1;
        border-radius: 10px 0 0 10px;
    }

    .banner-title {
        color: #ffffff; /* Đổi sang màu trắng để hiển thị rõ trên nền tối */
        font-size: 2rem;
        font-weight: 700;
        margin-bottom: 10px;
        text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); /* Thêm bóng chữ */
    }

    .banner-text {
        color: #f0f0f0; /* Màu sáng hơn cho văn bản phụ */
        margin-bottom: 20px;
        font-size: 1rem;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); /* Thêm bóng chữ */
    }

    .banner-button {
        display: inline-block;
        padding: 10px 25px;
        background-color: #16bcdc;
        color: white;
        text-decoration: none;
        border-radius: 5px;
        font-weight: 600;
        transition: all 0.3s ease;
        align-self: flex-start; /* Căn nút bên trái */
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Thêm bóng cho nút */
    }

        .banner-button:hover {
            background-color: #108da5;
            transform: translateY(-2px);
            box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
        }

    .banner-indicators {
        position: absolute;
        bottom: 20px;
        left: 0;
        right: 0;
        display: flex;
        justify-content: center;
        gap: 10px;
        z-index: 2; /* Đảm bảo indicators hiển thị trên cùng */
    }

    .banner-indicator {
        width: 12px;
        height: 12px;
        background-color: rgba(255, 255, 255, 0.5);
        border-radius: 50%;
        cursor: pointer;
        transition: all 0.3s ease;
    }

        .banner-indicator.active {
            background-color: #16bcdc;
            transform: scale(1.2);
        }

    .banner-control {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        background-color: rgba(255, 255, 255, 0.7);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 1;
        transition: all 0.3s ease;
    }

        .banner-control:hover {
            background-color: white;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }

    .banner-control-prev {
        left: 20px;
    }

    .banner-control-next {
        right: 20px;
    }


    /* Sản phẩm */
    .item-product-Cate {
        padding: 0 10px;
        margin-bottom: 20px;
        width: 25%;
    }

    @media (max-width: 991px) {
        .item-product-Cate {
            width: 33.333%;
        }
    }

    @media (max-width: 767px) {
        .item-product-Cate {
            width: 50%;
        }

        .banner-content {
            max-width: 80%;
            padding: 20px;
        }

        .banner-title {
            font-size: 1.5rem;
        }
    }

    @media (max-width: 575px) {
        .item-product-Cate {
            width: 100%;
        }

        .banner-content {
            max-width: 100%;
        }

        .banner-title {
            font-size: 1.2rem;
        }
    }

    .product-item {
        border: 1px solid #eee;
        border-radius: 8px;
        transition: all 0.3s ease;
        overflow: hidden;
    }

        .product-item:hover {
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            transform: translateY(-3px);
        }

    .product-img {
        position: relative;
        overflow: hidden;
        background-color: #f8f9fa;
    }

    .product-action {
        position: absolute;
        width: 100%;
        bottom: -40px;
        left: 0;
        display: flex;
        justify-content: center;
        gap: 5px;
        padding: 8px 0;
        background-color: rgba(255, 255, 255, 0.9);
        transition: all 0.3s ease;
    }

    .banner-slide img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 0;
    }

    .product-item:hover .product-action {
        bottom: 0;
    }

    .btn-outline-dark {
        border-color: #dee2e6;
        color: #495057;
        width: 35px;
        height: 35px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s;
    }

        .btn-outline-dark:hover {
            background-color: #16bcdc;
            border-color: #16bcdc;
            color: white;
        }

    /* novazone style components */
    .novazone-sort-bar {
        display: flex;
        align-items: center;
        gap: 15px;
        margin-bottom: 20px;
        flex-wrap: wrap;
    }

    .novazone-sort-bar__label {
        font-size: 0.9rem;
        color: #555;
        font-weight: 500;
    }

    .novazone-sort-by-options {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        align-items: center;
        flex: 1;
    }

    .novazone-sort-by-options__option-group {
        display: flex;
        gap: 5px;
    }

    .novazone-sort-by-options__option {
        padding: 5px 15px;
        border-radius: 4px;
        border: 1px solid #dee2e6;
        background-color: white;
        font-size: 0.9rem;
        color: #555;
        cursor: pointer;
        transition: all 0.2s;
    }

        .novazone-sort-by-options__option:hover {
            border-color: #16bcdc;
            color: #16bcdc;
        }

    .novazone-sort-by-options__option--selected {
        background-color: #16bcdc;
        border-color: #16bcdc;
        color: white;
    }

    .sort-price-select {
        padding: 5px 15px;
        border-radius: 4px;
        border: 1px solid #dee2e6;
        background-color: white;
        font-size: 0.9rem;
        color: #555;
        cursor: pointer;
        transition: all 0.2s;
        display: flex;
        align-items: center;
        gap: 5px;
    }

        .sort-price-select:hover {
            border-color: #16bcdc;
            color: #16bcdc;
        }

    .novazone-mini-page-controller {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .novazone-mini-page-controller__state {
        font-size: 0.9rem;
        color: #555;
    }

    .novazone-button-outline {
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid #dee2e6;
        border-radius: 4px;
        background-color: white;
        color: #555;
        transition: all 0.2s;
    }

        .novazone-button-outline:hover {
            border-color: #16bcdc;
            color: #16bcdc;
        }

    .novazone-button-outline--disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

        .novazone-button-outline--disabled:hover {
            border-color: #dee2e6;
            color: #555;
        }
    /* Thanh cuộn cho danh sách giá trị thuộc tính */
    .custom-filter-list-scrollable {
        max-height: auto;
      /*   overflow-y: auto; */
        padding-right: 5px;
    }

        .custom-filter-list-scrollable::-webkit-scrollbar {
            width: 5px;
        }

        .custom-filter-list-scrollable::-webkit-scrollbar-track {
            background: var(--gray-200);
            border-radius: 10px;
        }

        .custom-filter-list-scrollable::-webkit-scrollbar-thumb {
            background: var(--gray-400);
            border-radius: 10px;
        }

            .custom-filter-list-scrollable::-webkit-scrollbar-thumb:hover {
                background: var(--gray-500);
            }

    .custom-hidden {
        display: none !important;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .custom-filter-checkbox:not(.custom-hidden) {
        display: flex;
        opacity: 1;
    }

    .custom-show-more-attribute {
        cursor: pointer;
        color: var(--primary-color);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 5px 0;
        font-size: 13px;
        transition: all 0.2s;
    }

        .custom-show-more-attribute:hover {
            color: var(--primary-dark);
        }

        .custom-show-more-attribute i {
            margin-left: 5px;
            font-size: 10px;
            transition: transform 0.2s;
        }

        .custom-show-more-attribute.active i {
            transform: rotate(180deg);
        }
