/* Thiết lập nền tảng và căn chỉnh chân trang */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f4f6f8;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

.main-content {
    flex: 1 0 auto;
}

.site-footer {
    flex-shrink: 0;
    background: #0a0a0a;
    color: rgba(255,255,255,0.5);
    padding: 30px 0;
    margin-top: 60px;
}

/* Thanh điều hướng (Navbar) */
.navbar {
    background: #000 !important;
    height: 70px;
    border-bottom: 2px solid #FFD700;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-family: 'Oswald', sans-serif;
    color: #FFD700 !important;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-link {
    color: #eee !important;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

    .nav-link:hover {
        color: #FFD700 !important;
    }

/* Thanh tìm kiếm trên Navbar */
.search-input {
    background: rgba(255,255,255,0.1) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    color: #fff !important;
    border-radius: 20px 0 0 20px !important;
}

.btn-search {
    background: #FFD700;
    border-radius: 0 20px 20px 0 !important;
    padding: 0 20px;
}

/* Biển quảng cáo (Hero Banner) */
.hero-banner {
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
    border-radius: 20px;
    padding: 80px 40px;
    color: white;
    text-align: center;
    margin-bottom: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Thẻ hiển thị sản phẩm */
.product-card {
    border: none;
    border-radius: 16px;
    background: #fff;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .product-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 35px rgba(0,0,0,0.12) !important;
    }

.product-img-container {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
}

.product-card img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-card:hover img {
    transform: scale(1.1);
}

/* Tiêu đề mục và nhãn giá */
.price-tag {
    color: #d9534f;
    font-weight: 800;
    font-size: 1.2rem;
}

.section-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    border-left: 5px solid #FFD700;
    padding-left: 15px;
    margin-bottom: 30px;
}

/* Nhóm nút hành động trên sản phẩm */
.card-actions-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}

.btn-main-buy {
    background: #FFD700;
    color: #000;
    font-weight: 700;
    text-align: center;
    padding: 10px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

    .btn-main-buy:hover {
        background: #e6c200;
        transform: translateY(-2px);
    }

.sub-actions {
    display: flex;
    gap: 8px;
}

.btn-icon-cart {
    flex: 0 0 45px;
    background: #111;
    color: white;
    text-align: center;
    padding: 8px 0;
    border-radius: 10px;
    text-decoration: none;
    transition: 0.3s;
}

    .btn-icon-cart:hover {
        background: #333;
    }

.btn-sub-detail {
    flex: 1;
    background: #f8f9fa;
    color: #555;
    border: 1px solid #ddd;
    text-align: center;
    padding: 8px 0;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    transition: 0.3s;
}

    .btn-sub-detail:hover {
        border-color: #111;
        color: #111;
    }

/* Các thành phần bổ trợ và quản trị */
.status-badge {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.table-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    background: #f8f9fa;
    border-radius: 6px;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #555;
    }

/* ===== CHIỀU CAO BANNER ===== */
.banner-img {
    height: 450px;
    width: 100%;
    object-fit: cover;
}

.carousel-inner {
    height: 450px;
}

/* ===== SLIDE CHUẨN ===== */
.carousel-item {
    position: relative;
}

/* ===== CAPTION ===== */
.locphat-caption {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    padding: 18px 35px;
    border-radius: 12px;
    text-align: center;
    color: #fff;
    min-width: 320px;
    z-index: 5;
}

    /* text */
    .locphat-caption h5 {
        font-size: 1.6rem;
        margin: 0;
        color: #fff;
    }

    .locphat-caption p {
        margin-top: 5px;
        color: #ddd;
    }

/* ===== NAV BUTTON ===== */
.lp-nav {
    width: 60px;
    opacity: 0;
    transition: 0.3s;
    z-index: 10;
}

#bannerCarousel:hover .lp-nav {
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: #000;
    border-radius: 50%;
    width: 45px;
    height: 45px;
}

/* ===== INDICATORS ===== */
.custom-indicators button {
    background-color: #000;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .banner-img,
    .carousel-inner {
        height: 250px;
    }

    .locphat-caption {
        bottom: 20px;
        min-width: 80%;
        padding: 10px;
    }

        .locphat-caption p {
            display: none;
        }
}