/* --- BIẾN MÀU SẮC --- */
:root {
    --primary-color: #e67e22;
    --dark-color: #2c3e50;
    --light-bg: #f9f9f9;
    --white: #ffffff;
}

* {
    margin: 0; padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body { background-color: var(--light-bg); }

/* --- HEADER & NAVBAR --- */
header {
    background: var(--dark-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo { color: var(--white); font-size: 24px; font-weight: 800; }

.search-box {
    display: flex;
    background: var(--white);
    border-radius: 20px;
    padding: 5px 15px;
    width: 40%;
}

.search-box input {
    border: none; outline: none; width: 100%; padding: 5px;
}

.search-box button {
    border: none; background: none; cursor: pointer; color: #666;
}

.nav-links { list-style: none; display: flex; align-items: center; }
.nav-links li { margin-left: 20px; }
.nav-links a { color: var(--white); text-decoration: none; font-size: 16px; }

.cart-icon { position: relative; }
#cart-count {
    position: absolute;
    top: -10px; right: -10px;
    background: var(--primary-color);
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 50%;
}

/* --- HERO SECTION --- */
.hero {
    height: 400px;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), 
                url('https://images.unsplash.com/photo-1616348436168-de43ad0db179?auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content h2 { font-size: 40px; margin-bottom: 10px; }
.cta-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
}

/* --- PRODUCT SECTION --- */
.container { max-width: 1200px; margin: 40px auto; padding: 20px; }

.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.categories button {
    padding: 8px 20px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 20px;
    margin-left: 10px;
}

.categories button.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
}

.product-card {
    background: var(--white);
    border-radius: 15px;
    padding: 20px;
    position: relative;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.product-card:hover { transform: translateY(-10px); }

.badge {
    position: absolute;
    top: 10px; left: 10px;
    padding: 4px 12px;
    border-radius: 5px;
    font-size: 12px;
    color: white;
}
.hot { background: #e74c3c; }
.new { background: #27ae60; }

.product-card img {
    width: 100%; height: 220px;
    object-fit: contain;
    margin-bottom: 15px;
}

.price {
    color: var(--primary-color);
    font-size: 20px;
    font-weight: bold;
    margin: 10px 0;
}

.buy-btn {
    width: 100%;
    padding: 12px;
    border: none;
    background: var(--dark-color);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: 0.3s;
}

.buy-btn:hover { background: var(--primary-color); }

/* --- FOOTER --- */
footer {
    background: var(--dark-color);
    color: white;
    padding: 50px 0 20px;
    margin-top: 50px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 0 20px;
}

.footer-section h4 { margin-bottom: 20px; color: var(--primary-color); }
.footer-section ul { list-style: none; }
.footer-section a { color: #ccc; text-decoration: none; line-height: 2; }
.socials i { font-size: 24px; margin-right: 15px; cursor: pointer; }

.copyright {
    text-align: center;
    border-top: 1px solid #444;
    margin-top: 30px;
    padding-top: 20px;
    font-size: 14px;
}