﻿/* ====== HEADER ====== */
.site-header {
    font-family: 'Segoe UI', sans-serif;
    background-color: #ffffff !important; /* nền trắng */
    color: #000 !important; /* chữ đen */
    font-size: 24px;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    /* Đã THU NHỎ: Giảm padding để thu gọn header */
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    /* CỐ ĐỊNH HEADER */
    position: fixed; /* Cố định header */
    top: 0; /* Đặt ở trên cùng */
    width: 100%; /* Mở rộng chiều ngang */
    z-index: 1000; /* Đảm bảo header nằm trên mọi nội dung khác */
}

/* Logo + brand */
.logo {
    /* Đã THU NHỎ: Giảm chiều cao logo */
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

    .logo:hover {
        transform: scale(1.1);
    }

.brand-name {
    font-weight: 800;
    font-size: 28px;
    letter-spacing: 0.5px;
    color: #000 !important;
}

/* Navigation */
.main-menu .nav-link {
    font-size: 24px;
    padding: 12px 18px;
    border-radius: 8px;
    color: #000 !important;
    transition: all 0.3s ease;
}

    .main-menu .nav-link:hover {
        background-color: rgba(0, 0, 0, 0.05);
        text-decoration: none;
    }

/* Search box */
.search-box {
    width: 360px;
}

    .search-box .form-control {
        border: 2px solid #000; /* viền đen */
        font-size: 20px;
        padding: 10px 14px;
        border-radius: 8px 0 0 8px;
    }

    .search-box .btn {
        border: 2px solid #000;
        border-left: none;
        background-color: #fff;
        color: #000;
        font-size: 22px;
        border-radius: 0 8px 8px 0;
        transition: all 0.3s ease;
    }

        .search-box .btn:hover {
            background-color: #000;
            color: #fff;
        }

/* Icons */
.icon-btn {
    height: 50px; /* Cân đối với logo 50px */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    filter: brightness(0); /* chuyển icon màu đen */
}

.profile-btn:hover .icon-btn,
.cart-btn:hover .icon-btn {
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

/* ====== USER & CART BOX ====== */
.user-cart-box {
    margin-right: 10px;
    gap: 20px;
}

/* ====== ĐIỀU CHỈNH NỘI DUNG CHÍNH (FORM) ====== */

/* THAY THẾ ".user-profile-content" bằng class/id của phần tử chứa nội dung chính */
.user-profile-content {
    /* Đẩy nội dung xuống 80px để tránh header che khuất */
    margin-top: 80px;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 992px) {
    .main-menu {
        display: none;
    }

    .search-box {
        width: 240px;
    }

    .site-header {
        font-size: 20px;
        padding-top: 18px !important;
        padding-bottom: 18px !important;
    }

    .user-profile-content {
        /* Điều chỉnh margin-top cho màn hình nhỏ */
        margin-top: 90px;
    }
}

@media (max-width: 576px) {
    .container-fluid {
        justify-content: center !important;
        text-align: center;
    }

    .search-box {
        width: 100%;
        margin-top: 10px;
    }

    .hotline {
        display: none;
    }

    .brand-name {
        font-size: 24px;
    }

    .user-profile-content {
        /* Điều chỉnh margin-top cho màn hình rất nhỏ nếu header xếp chồng */
        margin-top: 150px;
    }
}

/* ====== BANNER ====== */
.banner-img {
    width: 100%;
    height: 75vh;
    object-fit: cover;
}

.carousel-caption h2 {
    font-size: 32px;
    font-weight: 700;
    text-shadow: 2px 2px 5px #000;
}

.carousel-caption p {
    font-size: 20px;
    text-shadow: 1px 1px 4px #000;
}

.carousel-fade .carousel-item {
    transition: opacity 1s ease-in-out;
}

