﻿/* ===== RESET / BASE ===== */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: #fff; /* nền trắng đơn giản */
    color: #111;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

.body-content {
    margin-top: 20px;
    padding: 0 15px;
}

/* ===== HEADER ===== */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 60px;
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
}

    .site-header .logo {
        font-size: 1.8rem;
        font-weight: bold;
        color: #111;
        letter-spacing: 1px;
    }

    .site-header .main-nav ul {
        list-style: none;
        display: flex;
        gap: 35px;
        margin: 0;
        padding: 0;
    }

    .site-header .main-nav a {
        color: #111;
        font-weight: 500;
        font-size: 0.95rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        transition: color 0.3s ease;
    }

        .site-header .main-nav a:hover {
            color: #d62828;
        }

.cart {
    font-weight: bold;
    color: #111;
    cursor: pointer;
}

/* ===== BANNER ===== */
.home-banner {
    margin-bottom: 40px;
}

#homeCarousel .carousel-item img {
    height: 600px;
    object-fit: cover;
    border-radius: 0;
}

/* ===== SECTION TITLE ===== */
section h3 {
    font-size: 1.6rem;
    font-weight: 600;
    margin: 40px 0 30px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

    section h3::after {
        content: none; /* bỏ gạch chân màu đỏ */
    }

/* ===== PRODUCT CARD ===== */
.featured-products .row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.featured-products .col-lg-3,
.featured-products .col-md-4,
.featured-products .col-sm-6 {
    display: flex;
}

.product-card {
    flex: 1;
    background: #fff;
    border: none;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

    .product-card:hover {
        transform: translateY(-5px);
    }

.product-img-wrapper {
    width: 100%;
    height: 380px; /* ảnh to như 160store */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9f9f9;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-img {
    transform: scale(1.08);
}

.card-body {
    padding: 12px 5px;
    text-align: center;
}

.card-title {
    font-size: 1rem;
    font-weight: 500;
    color: #111;
    text-transform: uppercase;
    margin: 8px 0 4px;
}

.card-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: #d62828;
}

/* ===== FOOTER ===== */
.site-footer {
    background: #f5f5f5;
    color: #666;
    text-align: center;
    padding: 40px 20px;
    margin-top: 50px;
    font-size: 0.9rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .product-img-wrapper {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .site-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 25px;
    }

        .site-header .main-nav ul {
            flex-direction: column;
            gap: 15px;
            margin-top: 12px;
        }

    .product-img-wrapper {
        height: 250px;
    }
}
.voucher-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 2px dashed #f00;
    border-radius: 8px;
    padding: 12px;
    margin: 10px 0;
    background: #fff8f8;
}

.voucher-left h4 {
    margin: 0;
    color: #e60000;
}

.voucher-left p {
    margin: 3px 0;
    font-size: 13px;
    color: #444;
}

.voucher-left small {
    color: #888;
}

.voucher-right {
    text-align: center;
}

.voucher-code {
    font-weight: bold;
    background: #eee;
    padding: 5px 10px;
    border-radius: 4px;
    margin-bottom: 5px;
}

.btn-copy {
    background: #e60000;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    text-decoration: none;
}

/* Styling cho GridView (Kết quả tìm kiếm) */
.product-results {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Thêm bóng đổ nhẹ cho bảng */
    border-radius: 8px; /* Bo góc bảng */
    overflow: hidden; /* Đảm bảo bo góc hoạt động tốt */
}

    .product-results th {
        /* Đảm bảo tiêu đề bảng có màu xanh và chữ trắng như định nghĩa trong HeaderStyle */
        background-color: #007bff;
        color: white;
        padding: 12px 15px;
        border-color: #0069d9 !important;
    }

    .product-results td {
        padding: 10px 15px;
        vertical-align: middle;
    }

    .product-results tr:hover {
        background-color: #e2f0ff !important; /* Hiệu ứng hover nhẹ khi di chuột qua hàng */
        cursor: pointer;
    }

/* ========================================================================= */
/* CẤU TRÚC HEADER & LOGO */
/* ========================================================================= */
.site-header {
    display: flex;
    justify-content: space-between; /* Đảm bảo các phần tử căng đều */
    align-items: center;
    padding: 10px 20px;
    border-bottom: 1px solid #e0e0e0; /* Đường phân cách nhẹ */
    background-color: white;
}

    .site-header .logo img {
        /* Điều chỉnh kích thước logo (ví dụ: 50px) */
        height: 50px;
        width: auto;
        object-fit: contain;
    }

    .site-header .main-nav {
        /* Thiết lập cho menu nav */
        flex-shrink: 0;
        margin-right: 20px;
    }

        .site-header .main-nav ul {
            list-style: none;
            padding: 0;
            margin: 0;
            display: flex;
        }

        .site-header .main-nav li a {
            text-decoration: none;
            color: #333;
            padding: 10px 15px;
            font-weight: 500;
            transition: color 0.2s;
        }

            .site-header .main-nav li a:hover {
                color: #007bff; /* Màu xanh nổi bật khi hover */
            }


    /* ========================================================================= */
    /* STYLE THANH TÌM KIẾM (Search Box - Giống 160Store) */
    /* ========================================================================= */

    .site-header .search-box {
        display: flex;
        align-items: center;
        /* Khung bo tròn viền đen, nền trắng */
        border: 1px solid #ccc; /* Viền mỏng hơn */
        border-radius: 20px;
        overflow: hidden;
        flex-grow: 1; /* Cho phép chiếm không gian lớn nhất */
        max-width: 500px;
        height: 40px;
        margin: 0 40px;
        background-color: white;
        transition: border-color 0.3s ease;
    }

        /* Hiệu ứng khi focus */
        .site-header .search-box:focus-within {
            border-color: black;
            box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
        }

    .site-header .search-input {
        flex-grow: 1;
        height: 100%;
        border: none; /* Bỏ border mặc định của textbox */
        outline: none;
        padding: 0 15px;
        font-size: 14px;
        background: transparent;
    }

        .site-header .search-input::placeholder {
            color: #aaa;
            font-style: italic;
        }

    .site-header .search-btn {
        width: 60px;
        height: 100%;
        /* Nền đen cho nút tìm kiếm */
        background-color: black !important;
        color: white !important;
        border: none !important;
        padding: 0;
        font-size: 0; /* Ẩn chữ "Tìm" */
        cursor: pointer;
        line-height: 1;
        border-radius: 0 20px 20px 0; /* Bo tròn góc phải */
    }

        /* Thêm icon kính lúp (sử dụng Bootstrap Icons) */
        .site-header .search-btn::before {
            content: "\f4a5"; /* Mã icon kính lúp (bi-search) */
            font-family: 'bootstrap-icons';
            font-size: 18px;
            font-weight: 900;
            line-height: 40px; /* Căn giữa icon theo chiều cao */
        }

        .site-header .search-btn:hover {
            background-color: #333 !important;
        }


    /* ========================================================================= */
    /* GIỎ HÀNG & ĐĂNG NHẬP */
    /* ========================================================================= */

    .site-header .cart,
    .site-header .login {
        margin-left: 20px;
        flex-shrink: 0;
    }

        .site-header .cart a,
        .site-header .login a {
            text-decoration: none;
            color: #333;
            font-weight: 500;
            transition: color 0.2s;
        }

            .site-header .cart a:hover,
            .site-header .login a:hover {
                color: #007bff;
            }

    /* Tùy chỉnh nhỏ cho login để căn chỉnh Literal và HyperLink */
    .site-header .login {
        display: flex;
        align-items: center;
        gap: 5px;
    }