/* ===== GENERAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: #d4a762;
    color: white;
}

.btn-primary:hover {
    background-color: #c29550;
}

/* ===== HEADER STYLES ===== */
.header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.top-bar {
    background-color: #f8f8f8;
    padding: 10px 0;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info span {
    margin-right: 15px;
}

.contact-info i {
    margin-right: 5px;
    color: #d4a762;
}

.social-icons a {
    color: #555;
    margin-left: 15px;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #d4a762;
}

.navbar {
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    position: relative;
    margin: 0 10px;
}

.nav-menu li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 10px 0;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.nav-menu li a i {
    margin-right: 5px;
}

.nav-menu li a:hover {
    color: #d4a762;
}

.nav-menu li.active a {
    color: #d4a762;
}

.cart-link .cart-count {
    background-color: #d4a762;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    margin-left: 5px;
}

.hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* ===== PRODUCTS SECTION ===== */
.products-section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    color: #222;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #d4a762;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 cột */
    gap: 30px;
}

.product-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    color: white;
    z-index: 1;
}

.product-badge.new {
    background-color: #4CAF50;
}

.product-badge.sale {
    background-color: #F44336;
}

.product-badge.hot {
    background-color: #2196F3;
}

.product-image {
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.product-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.product-price {
    margin-bottom: 15px;
}

.current-price {
    font-size: 18px;
    font-weight: bold;
    color: #d4a762;
}

.old-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    margin-left: 10px;
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.add-to-cart {
    background-color: #333;
    color: white;
}

.add-to-cart:hover {
    background-color: #555;
}

/* ===== FOOTER STYLES ===== */
.footer {
    background-color: #222;
    color: #ddd;
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col {
    margin-bottom: 20px;
}

.footer-logo {
    max-width: 150px;
    margin-bottom: 20px;
}

.footer-col h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: #d4a762;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: #d4a762;
}

.footer-col p {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.footer-col i {
    margin-right: 10px;
    color: #d4a762;
}

.newsletter-form input {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 4px 0 0 4px;
    margin-bottom: 10px;
}

.newsletter-form button {
    padding: 10px 20px;
    background-color: #d4a762;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.newsletter-form button:hover {
    background-color: #c29550;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding: 20px 0;
    text-align: center;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        margin: 0;
        padding: 10px 20px;
        border-bottom: 1px solid #eee;
    }
    
    .hamburger {
        display: block;
    }
}

@media (max-width: 768px) {
    .products-section {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .product-grid {
        gap: 20px;
    }
    
    .product-image {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr; /* 1 cột trên mobile */
        gap: 20px;
    }
    
    .product-image {
        height: 200px;
    }
    
    .section-title {
        font-size: 28px;
    }
}
