﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

body {
    font-family: 'Inter', sans-serif;
    background-color: #f2f4f7;
    color: #1d2939;
}

/* Sửa lỗi Footer đè lên thẻ sản phẩm và nút Đăng nhập bị chìm */
footer.footer {
    position: relative !important;
    bottom: auto !important;
    line-height: normal !important;
    padding: 20px 0;
    margin-top: 50px;
    background-color: #ffffff;
}

header .btn-outline-light {
    color: #ffffff !important;
    border-color: #ffffff !important;
    font-weight: 600;
}

    header .btn-outline-light:hover {
        background-color: #ffffff !important;
        color: #0071e3 !important;
    }

.bg-primary {
    background: linear-gradient(90deg, #0052cc 0%, #0071e3 100%) !important;
}

/* --- HERO BANNER SIÊU THỊ --- */
.hero-banner {
    background: linear-gradient(135deg, #003b95 0%, #0071e3 60%, #00a8ff 100%);
    border-radius: 16px;
    padding: 36px 40px;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 113, 227, 0.2);
}

.hero-badge {
    background-color: #ffd400;
    color: #d70018;
    font-weight: 800;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 50px;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- THANH CAM KẾT DỊCH VỤ (USP) --- */
.service-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid #e4e7ec;
    transition: transform 0.2s;
}

    .service-box:hover {
        transform: translateY(-3px);
        border-color: #0071e3;
    }

.service-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background-color: #eff8ff;
    color: #0071e3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

/* --- TIÊU ĐỀ DANH MỤC --- */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    padding: 14px 20px;
    border-radius: 12px;
    border-left: 5px solid #0071e3;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* --- THẺ SẢN PHẨM THƯƠNG MẠI ĐIỆN TỬ --- */
.product-card {
    background-color: #ffffff;
    border: 1px solid #eaecf0;
    border-radius: 14px;
    padding: 14px;
    position: relative;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    .product-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1) !important;
        border-color: #0071e3;
    }

/* Nhãn Trả góp & Giảm giá trên góc thẻ */
.card-badges {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.badge-installment {
    background-color: #f2f4f7;
    color: #344054;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
}

.badge-discount {
    background-color: #ffe4e8;
    color: #d70018;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}

/* Khung ảnh sản phẩm */
.product-img-wrapper {
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    margin-bottom: 10px;
    background-color: #f8fafc;
    border-radius: 10px;
    overflow: hidden;
}

    .product-img-wrapper img {
        max-height: 100%;
        max-width: 100%;
        object-fit: contain;
        transition: transform 0.3s ease;
    }

.product-card:hover .product-img-wrapper img {
    transform: scale(1.06);
}

/* Nhãn thông số kỹ thuật nhỏ */
.spec-tags {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.spec-tag {
    background-color: #eff8ff;
    color: #175cd3;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
}

.product-title {
    font-size: 15px;
    font-weight: 600;
    color: #1d2939;
    line-height: 1.4;
    height: 42px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 8px;
}

.product-card:hover .product-title {
    color: #0071e3;
}

.product-price-box {
    margin-bottom: 8px;
}

.product-price {
    color: #d70018;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.2;
}

.product-old-price {
    color: #98a2b3;
    font-size: 13px;
    text-decoration: line-through;
    margin-right: 6px;
}

.product-rating {
    font-size: 12px;
    color: #fdb022;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Nút Chọn mua */
.btn-buy {
    background: linear-gradient(90deg, #0066cc 0%, #0071e3 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    padding: 9px 16px;
    transition: all 0.2s;
}

    .btn-buy:hover {
        background: linear-gradient(90deg, #004c99 0%, #005bb5 100%);
        color: #ffffff;
        box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
    }
