:root {
    --primary-blue: #008ecc;
    --bg-dark: #232f3e;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #ffffff;
}

/* Header & Nav */
.menu-icon {
    background: #eef6f9;
    padding: 2px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.category-nav .nav-link.active {
    background-color: var(--primary-blue) !important;
    color: white !important;
}

/* Hero Banner */
.hero-banner {
    background-color: var(--bg-dark);
    min-height: 300px;
}

.dot {
    width: 20px;
    height: 3px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
}
.dot.active { background: #fff; width: 30px; }

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.nav-btn.prev { left: 20px; }
.nav-btn.next { right: 20px; }

/* Cards & Badges */
.product-card {
    transition: 0.3s;
    cursor: pointer;
}
.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.x-small { font-size: 0.75rem; }

/* Categories */
.cat-img.selected {
    background-color: #eef9fe !important;
}

/* Tùy chỉnh màu sắc cho menu khi hover */
.offcanvas-body .list-group-item:hover {
    background-color: #f3f9fb;
    color: var(--primary-blue);
    padding-left: 25px; /* Hiệu ứng đẩy nhẹ khi hover */
    transition: all 0.3s ease;
}

/* Đảm bảo nút menu có kích thước cố định */
.btn-light[data-bs-toggle="offcanvas"] {
    transition: 0.2s;
}

.btn-light[data-bs-toggle="offcanvas"]:hover {
    background-color: #d1e5ed !important;
}

/* Màu nền chung cho nội dung banner */
.hero-banner-content {
    background-color: var(--bg-dark); /* Sử dụng biến màu #232f3e gốc */
    min-height: 400px;
    display: flex;
    align-items: center;
}

/* Tùy chỉnh các dấu chấm chuyển ảnh của Bootstrap */
.carousel-indicators [data-bs-target] {
    width: 20px;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    width: 35px;
    background-color: #fff;
}

/* Giữ phong cách nút điều hướng của bạn */
.nav-btn {
    background: #fff;
    color: #333;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: 0.3s;
}

/* Chiều cao cố định cho banner để ảnh không bị quá dài trên PC */
.banner-img {
    height: 450px;
    object-fit: cover; /* Giúp ảnh không bị méo khi co giãn */
}

/* Tùy chỉnh các nút gạch dưới (Indicators) */
.carousel-indicators .dot {
    width: 30px;
    height: 4px;
    border-radius: 2px;
    border: none;
    opacity: 0.5;
}

.carousel-indicators .active {
    opacity: 1;
    background-color: #fff;
}

/* Giữ style nút mũi tên của bạn */
.nav-btn {
    background: #fff;
    color: #333;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Responsive cho di động */
@media (max-width: 768px) {
    .banner-img {
        height: 250px; /* Thu nhỏ chiều cao trên điện thoại */
    }
}

html {
    scroll-behavior: smooth;
}

/* 2. Định kiểu cho nút Float Button */
.float-back-top {
    position: fixed;
    bottom: 30px; /* Cách đáy 30px */
    right: 30px;  /* Cách phải 30px */
    z-index: 9999; /* Luôn nổi trên cùng */
    
    /* Căn giữa icon và tạo hình tròn */
    width: 50px; 
    height: 50px;
    display: flex; 
    align-items: center; 
    justify-content: center;
    border-radius: 50%;
    
    /* Hiệu ứng chuyển động */
    transition: 0.3s;
}

/* Hiệu ứng khi di chuột vào */
.float-back-top:hover {
    transform: scale(1.1); /* Phóng to nhẹ 10% */
}