﻿/*Thanh lọc sản phẩm (filter toolbar) */
.filter-toolbar {
    transition: border-color 0.12s ease, background-color 0.12s ease;
    border: 1px solid #f1f1f1 !important;
}

/* Hiệu ứng cho các nút Radio thay thế cho Select truyền thống */
.btn-check:checked + .btn-outline-light {
    background-color: #d70018 !important; /* Đỏ CellphoneS */
    border-color: #d70018 !important;
    color: white !important;
}

.btn-outline-light:hover {
    background-color: #fee2e2; /* Đỏ rất nhạt khi hover */
    border-color: #d70018;
    color: #d70018 !important;
}


/* Tùy chỉnh Select mượt mà hơn */
.custom-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke=' %23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right .75rem center;
    background-size: 12px 10px;
    appearance: none;
}

/* Ẩn thanh cuộn nhưng vẫn cho cuộn ngang trên mobile */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.btn-white {
    background: white;
    transition: background-color 0.12s ease, border-color 0.12s ease;
}

    .btn-white:hover {
        background: #fff5f5;
        border-color: #ffc1c1;
    }

.search-product-grid .product-card-ct {
    display: flex;
    flex: 0 0 50%;
    max-width: 50%;
}

.search-product-card {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.search-product-card .image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    padding: 0.6rem;
    background: #fff;
}

.search-product-card .product-image {
    max-width: 100%;
    max-height: 152px;
    object-fit: contain;
}

.search-product-card .card-body {
    padding: 0.75rem !important;
}

.search-product-card .product-title {
    display: -webkit-box !important;
    min-height: 2.6em;
    height: 2.6em;
    max-height: 2.6em;
    font-size: 0.84rem !important;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.search-product-card .price-text {
    font-size: 0.9rem !important;
}

.search-product-card .text-decoration-line-through {
    font-size: 0.75rem !important;
}

.search-product-card .addToWishList {
    font-size: 0.8rem;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
}

@media (min-width: 768px) {
    .search-product-grid .product-card-ct {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

@media (min-width: 992px) {
    .search-product-grid .product-card-ct {
        flex: 0 0 20%;
        max-width: 20%;
    }

    .search-product-card .product-image {
        max-height: 142px;
    }
}
