﻿.topbar-mobile {
    background: #243c93;
    padding: 8px 12px;
    color: #fff;
}

    .topbar-mobile .topbar-inner {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .topbar-mobile .btn-menu {
        background: #fff;
        color: #243c93;
        border: none;
        border-radius: 6px;
        padding: 4px 10px;
        font-size: 16px;
        font-weight: bold;
    }

        .topbar-mobile .btn-menu:hover {
            background: #f1f1f1;
        }

.breadcrumb-mobile {
    flex: 1;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none; /* Firefox */
}

    .breadcrumb-mobile::-webkit-scrollbar {
        display: none; /* Ẩn scrollbar trên Chrome/Safari */
    }

.topbar-mobile .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
    color: #fff;
}

.topbar-mobile .breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    color: rgba(255,255,255,0.6);
    padding: 0 4px;
}

.topbar-mobile .breadcrumb a {
    color: #fff !important;
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.form-select {
    border: 1px solid #243c93;
    border-radius: 5px;
    padding: 6px 32px 6px 12px; /* rộng hơn chút để dễ bấm */
    font-size: 0.9rem;
    font-weight: 500;
    color: #243c93;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%23243c93' class='bi bi-chevron-down' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none; /* ẩn default arrow */
    -webkit-appearance: none;
    -moz-appearance: none;
}

    .form-select:hover {
        border-color: #1d3278;
        box-shadow: 0 0 5px rgba(36,60,147,0.3);
    }

    .form-select:focus {
        outline: none;
        border-color: #1d3278;
        box-shadow: 0 0 6px rgba(36,60,147,0.5);
    }

.results-info {
    font-size: 0.95rem;
    color: #555;
    margin: 0;
}

    .results-info strong {
        color: #243c93; /* nhấn số liệu bằng màu thương hiệu */
        font-weight: 600;
    }
.breadcrumb {
    background: none;
    margin-bottom: 0;
    padding: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›"; /* đổi dấu phân cách */
    color: #666;
}

.breadcrumb a {
    color: #243c93; /* màu link thương hiệu */
    text-decoration: none;
}

    .breadcrumb a:hover {
        text-decoration: underline;
    }

.pagination {
    gap: 6px; /* khoảng cách giữa các nút */
}

    .pagination .page-item .page-link {
        border-radius: 50%; /* bo tròn nút */
        border: 1px solid #333; /* viền đen */
        color: #333; /* màu chữ mặc định */
        width: 40px; /* kích thước nút */
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 500;
        transition: all 0.2s ease-in-out;
    }

        .pagination .page-item .page-link:hover {
            background-color: #f0f0f0;
            text-decoration: none;
        }

    .pagination .page-item.active .page-link {
        background-color: #243c93; /* màu active */
        border-color: #243c93;
        color: #fff; /* chữ trắng */
    }

    .pagination .page-item.disabled .page-link {
        color: #ccc;
        border-color: #ccc;
        cursor: not-allowed;
        background-color: #f9f9f9;
    }

.custom-offcanvas {
    width: 280px; /* chỉnh chiều rộng sidebar mobile */
}

.offcanvas .menu-link {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
}

    .offcanvas .menu-link:hover {
        background: #f5f5f5;
    }


.category-list {
    list-style: none;
}

    .category-list li {
        margin-bottom: 8px;
    }

    .category-list a {
        display: flex;
        text-decoration: none;
        color: #243c93;
        font-size: 14px;
        border-bottom: 1px solid #e3e6ef;
        padding: 3.5px;
    }
        .category-list a:hover {
            font-weight: bold;
        }

        .category-list .active > a {
            font-weight: bold;
            color: #243c93;
        }

.sub-category {
    list-style: none;
    padding-left: 15px;
    margin-top: 5px;
}

/* Main */
.main-content {
    flex: 1;
}
    .main-content img{
        max-width:100%;
    }
    .product-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 15px;
        margin-top: 15px;
    }

.product-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px;
    text-align: center;
}

    .product-card img {
        width: 100%;
        height: 160px;
        object-fit: contain;
        margin-bottom: 10px;
    }

    .product-card h4 {
        font-size: 13px;
        font-weight:500;
        margin-bottom: 5px;
    }

    .product-card p {
        font-size: 13px;
        color: #666;
    }

/* --- Responsive --- */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 250px;
        height: 100%;
        background: #fff;
        border-right: 1px solid #ddd;
        padding: 20px;
        transition: left 0.3s;
        z-index: 999;
    }

        .sidebar.active {
            left: 0;
        }

    .close-btn {
        background: none;
        border: none;
        font-size: 22px;
        position: absolute;
        top: 10px;
        right: 15px;
        cursor: pointer;
    }
}



/* ===== Hiệu ứng nổi sản phẩm khi hover ===== */
.product-item {
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    transform: translateY(0);
    cursor: pointer;
}

    .product-item:hover {
        transform: translateY(-6px);
        box-shadow: 0 6px 16px rgba(0,0,0,0.12);
        z-index: 2;
    }

    /* Hiệu ứng ảnh phóng nhẹ khi hover */
    .product-item img {
        transition: transform 0.3s ease;
    }

    .product-item:hover img {
        transform: scale(1.05);
    }

    /* Tên sản phẩm đổi màu nhẹ */
    .product-item .product-name {
        transition: color 0.3s ease;
    }

    .product-item:hover .product-name {
        color: #243c93; /* xanh thương hiệu, có thể đổi */
    }

/* ===== Giá hiển thị khi hover ===== */
.product-card::after {
    content: attr(data-price);
    position: absolute;
    left: 10px;
    top: 10px;
    background: rgba(36, 60, 147, 0.9); /* màu nền xanh thương hiệu */
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 4px 8px;
    border-radius: 6px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.product-card:hover::after {
    opacity: 1;
    transform: translateY(0);
}

.product-card,
.product-card:hover {
    text-decoration: none !important;
}
    .product-card h4 {
        color: #243c93; /* hoặc màu thương hiệu của bạn */
    }
.product-item:hover h4, .product-item:hover p {
    font-weight: 700;
}





/* đây là css ở tab tin tức*/

.news-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* khoảng cách giữa các thẻ */
    justify-content: space-between;
}

.news-card {
    display: block;
    flex: 0 0 calc(50% - 10px); /* 2 thẻ trên 1 hàng, trừ gap */
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-decoration: none;
    color: #333;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-bottom: 20px;
}

    .news-card img {
        width: 100%;
        height: 300px;
        object-fit: cover;
    }

    .news-card h4 {
        font-size: 1.1rem;
        font-weight: 600;
        margin: 10px;
    }

    .news-card p {
        font-size: 0.9rem;
        margin: 0 10px 10px;
        color: #555;
    }

    .news-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    }
    .news-card h4 {
        color: #243c93; /* hoặc màu thương hiệu của bạn */
    }

    .news-card:hover h4, .news-card:hover p {
        font-weight: 700;
    }
/* Responsive trên điện thoại */
@media (max-width: 768px) {
    .news-card {
        flex: 0 0 100%; /* 1 thẻ / hàng */
    }
}


.news-widget {
    width: 100%;
    max-width: 350px;
    background: #fff;
    font-family: "Segoe UI", Roboto, sans-serif;
}

.news-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    border-bottom: 2px solid #ddd;
    padding-bottom: 5px;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.news-item {
    display: flex;
    gap: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

    .news-item:last-child {
        border-bottom: none;
    }

    .news-item img {
        width: 80px;
        height: 60px;
        object-fit: cover;
        border-radius: 3px;
        flex-shrink: 0;
    }

.news-info {
    flex: 1;
}

    .news-info a {
        display: block;
        font-size: 15px;
        font-weight: 500;
        color: #0041c2;
        text-decoration: none;
        line-height: 1.4;
    }

        .news-info a:hover {
            text-decoration: underline;
        }

    .news-info p {
        font-size: 12px;
        color: #888;
        margin-top: 3px;
    }
.titDanhMuc {
    font-size: 1em;
    font-weight: 600;
    padding: 6px;
}


.dropdown-toggle {
    cursor: pointer;
    font-size: 14px;
    padding: 5px;
}
.parent-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e3e6ef;
}

