* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

header {
    background: #333;
    color: white;
    padding: 1rem 5%;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo span { color: #ff4757; font-weight: bold; }

nav ul { display: flex; list-style: none; }

nav ul li { margin-left: 20px; }

nav ul li a { color: white; text-decoration: none; }

.hero {
    height: 60vh;
    background: #f4f4f4;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.hero h1 { font-size: 3rem; margin-bottom: 10px; }

.hero button {
    padding: 10px 25px;
    background: #ff4757;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.1rem;
    margin-top: 20px;
}

.products { padding: 50px 5%; text-align: center; }

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover; /* Giúp ảnh không bị méo */
    border-radius: 5px;
}

/* Thêm nhãn Sale/Mới */
.product-card {
    position: relative;
    overflow: hidden;
}

.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff4757;
    color: white;
    padding: 5px 10px;
    font-size: 0.8rem;
    border-radius: 3px;
    z-index: 1;
}

/* Chỉnh màu giá tiền */
.price {
    color: #ff4757;
    font-weight: bold;
    font-size: 1.2rem;
    margin: 10px 0;
}

.old-price {
    text-decoration: line-through;
    color: #888;
    font-size: 0.9rem;
    margin-right: 5px;
}

/* Hiệu ứng khi di chuột vào nút */
.add-cart:hover {
    background: #ff4757;
    transition: 0.3s;
}

footer {
    background: #222;
    color: white;
    padding: 40px 5% 20px;
    margin-top: 50px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    border-bottom: 1px solid #444;
    padding-bottom: 20px;
}

.footer-info h3 span { color: #ff4757; }
.footer-info p { font-size: 0.9rem; color: #ccc; margin-top: 10px; }

.footer-links h4, .footer-contact h4 { margin-bottom: 15px; font-size: 1.1rem; }
.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 8px; }
.footer-links ul li a { color: #ccc; text-decoration: none; font-size: 0.9rem; }
.footer-links ul li a:hover { color: #ff4757; }

.footer-contact p { font-size: 0.9rem; color: #ccc; margin-bottom: 8px; }

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    font-size: 0.8rem;
    color: #777;
}