/* --- 1. Hero Section Light --- */
.hero-section {
    padding: 60px 0;
    /* Gradient rất nhẹ từ trắng sang xanh nhạt */
    background: linear-gradient(120deg, #ffffff 0%, #f0f8ff 100%);
    display: flex; align-items: center;
}

.hero-section .container { display: flex; align-items: center; justify-content: space-between; width: 100%; flex-wrap: wrap; }
.hero-content { flex: 1; min-width: 350px; padding-right: 40px; }
.hero-image { flex: 1; min-width: 350px; text-align: center; }

/* Ảnh Hero đổ bóng mềm */
.hero-image img { 
    max-width: 100%; height: auto; border-radius: 20px; 
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1); 
    animation: floatImage 4s ease-in-out infinite;
}
@keyframes floatImage { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }

/* Badge & Text */
.badge-auth {
    background: #e1f5fe; color: #0288d1;
    padding: 6px 15px; border-radius: 20px; font-weight: 700; font-size: 0.85rem;
    display: inline-flex; align-items: center; gap: 8px; border: 1px solid #b3e5fc;
}

/* Slogan: Màu tối để nổi trên nền trắng - Kích thước chuẩn 2.8rem */
.hero-content h1 {
    font-size: 2.8rem; 
    line-height: 1.2;
    margin: 15px 0 25px;
    color: #2c3e50; /* Xanh đen đậm */
    font-weight: 800;
    white-space: nowrap; /* Giữ 1 dòng trên desktop */
}
.highlight-text { color: var(--accent-color); }
.hero-content p { font-size: 1.1rem; color: #666; margin-bottom: 30px; }
.hero-btn-group { display: flex; gap: 15px; margin-bottom: 30px; }

/* Mini Brands */
.mini-brands { display: flex; align-items: center; gap: 25px; margin-top: 10px; }
.mini-brands span { font-weight: 600; color: #888; margin-right: 10px; }
.mini-brands img { 
    height: 45px; width: auto; 
    filter: grayscale(100%); /* Logo đen trắng cho sang */
    opacity: 0.7; transition: 0.3s;
}
.mini-brands img:hover { filter: grayscale(0); opacity: 1; transform: scale(1.1); }

/* --- 2. Categories Grid Light --- */
.categories-section { padding: 60px 0; background: #fff; }
.cat-grid-10 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-top: 30px; }
.cat-card {
    display: flex; flex-direction: column; align-items: center;
    background: #fff; border: 1px solid #f0f0f0;
    border-radius: 16px; padding: 20px 10px; text-align: center; text-decoration: none;
    transition: 0.3s; box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}
.cat-card:hover {
    border-color: var(--accent-color); transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 180, 216, 0.15);
}
.cat-icon {
    width: 55px; height: 55px;
    background: #e1f5fe; color: var(--accent-color);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin-bottom: 15px; transition: 0.3s;
}
.cat-card:hover .cat-icon { background: var(--accent-color); color: #fff; }
.cat-card h3 { font-size: 0.95rem; color: #333; margin: 0 0 5px; font-weight: 700; }
.cat-card p { font-size: 0.8rem; color: #888; margin: 0; }

/* Combo HOT */
.special-cat { background: linear-gradient(135deg, #fff0f1, #fff); border-color: #ffccd5; }
.special-cat .cat-icon { background: #ff4757; color: #fff; }
.special-cat h3, .special-cat p { color: #ff4757; }

/* --- 4. Product Section Light --- */
.products-section { padding: 80px 0; background: #f9fbfd; }
.section-title { text-align: center; margin-bottom: 40px; font-size: 2rem; color: #2c3e50; font-weight: 800; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 25px; }
.product-card {
    background: #fff; border-radius: 12px; overflow: hidden;
    position: relative; transition: 0.3s; border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}
.product-card:hover {
    transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); border-color: var(--accent-color);
}
.product-card img { width: 100%; height: 220px; object-fit: cover; }
.product-info { padding: 15px; text-align: center; }
.product-info h3 a { font-size: 1rem; color: #333; text-decoration: none; font-weight: 600; display: block; margin-bottom: 5px; }
.price { display: block; margin: 8px 0; color: var(--accent-color); font-weight: bold; font-size: 1.1rem; }
.btn-add-cart {
    display: block; width: 100%; padding: 10px; background: #f1f2f6; color: #333;
    text-decoration: none; border-radius: 8px; font-size: 0.9rem; font-weight: 600; transition: 0.2s;
}
.btn-add-cart:hover { background: var(--accent-color); color: #fff; }
.view-all-wrap { text-align: center; margin-top: 50px; }

/* --- 5. CTA Section Light --- */
.cta-section {
    background: var(--primary-text); /* Nền xanh đen */
    color: #fff; text-align: center; padding: 80px 0;
}
.btn-white {
    background: #fff; color: var(--primary-text); padding: 15px 40px; border-radius: 30px;
    font-weight: 800; display: inline-block; transition: 0.3s;
}
.btn-white:hover { transform: scale(1.05); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }
/* --- CSS CHO PHẦN DANH MỤC TRƯỢT NGANG (MỚI) --- */

.cat-section-horizontal {
    padding: 40px 0;
    border-bottom: 1px dashed #eee; /* Đường kẻ mờ phân cách các mục */
    background: #fff;
}

/* Header của mỗi danh mục */
.cat-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
}

.cat-title-modern {
    font-size: 1.8rem;
    font-weight: 800;
    color: #2c3e50;
    margin: 0;
    position: relative;
    padding-left: 15px;
    border-left: 5px solid var(--accent-color, #0288d1); /* Dùng màu accent của bạn */
    line-height: 1;
}

.btn-see-more {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.3s;
}
.btn-see-more:hover {
    color: var(--accent-color, #0288d1);
}

/* --- KHUNG SCROLL NGANG --- */
.horizontal-scroll-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 5px 20px 5px; /* Padding dưới để không bị cắt bóng đổ */
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    
    /* Tùy chỉnh thanh cuộn cho đẹp */
    scrollbar-width: thin;
    scrollbar-color: #ddd transparent;
}

.horizontal-scroll-container::-webkit-scrollbar { height: 6px; }
.horizontal-scroll-container::-webkit-scrollbar-thumb { background: #ccc; border-radius: 10px; }
.horizontal-scroll-container::-webkit-scrollbar-track { background: transparent; }

/* --- CARD SẢN PHẨM TRONG THANH TRƯỢT --- */
.product-card-scroll {
    flex: 0 0 240px; /* Chiều rộng cố định cho mỗi sản phẩm */
    scroll-snap-align: start;
}

.card-inner {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-inner:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-color: var(--accent-color, #0288d1);
}

.card-img {
    position: relative;
    height: 240px; /* Chiều cao ảnh cố định */
    display: block;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.card-inner:hover .card-img img {
    transform: scale(1.05); /* Zoom nhẹ khi hover */
}

.badge-sale {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff4757;
    color: #fff;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.card-info {
    padding: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-info h3 {
    margin: 0 0 10px;
    font-size: 1rem;
    line-height: 1.4;
    height: 42px; /* Giới hạn 2 dòng tiêu đề */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-info h3 a {
    color: #333;
    text-decoration: none;
    transition: 0.2s;
}
.card-info h3 a:hover { color: var(--accent-color, #0288d1); }

.price-wrap {
    color: var(--accent-color, #0288d1);
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.btn-mini-add {
    margin-top: auto; /* Đẩy nút xuống dưới cùng */
    display: inline-block;
    padding: 8px 15px;
    border: 1px solid #eee;
    border-radius: 30px;
    color: #555;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: 0.3s;
    background: #f9f9f9;
}

.btn-mini-add:hover {
    background: var(--accent-color, #0288d1);
    border-color: var(--accent-color, #0288d1);
    color: #fff;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .product-card-scroll {
        flex: 0 0 170px; /* Card nhỏ hơn trên mobile */
    }
    .card-img {
        height: 170px;
    }
    .cat-title-modern {
        font-size: 1.4rem;
    }
}

/* --- Mobile --- */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2rem; white-space: normal; } /* Mobile cho xuống dòng */
    .hero-section { text-align: center; }
    .cat-grid-10 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}