/* === CÀI ĐẶT CHUNG === */
:root {
    --primary-color: #f39c12;  /* Màu cam của dưa lưới */
    --secondary-color: #27ae60; /* Màu xanh lá */
    --text-color: #333;
    --light-bg-color: #fefdfa;
    --border-color: #eee;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fff;
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* === HEADER === */
.site-header {
    background-color: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    margin: 0;
    color: var(--secondary-color);
    font-size: 24px;
}

.search-bar {
    display: flex;
}

.search-bar input {
    border: 1px solid #ccc;
    padding: 8px 12px;
    border-radius: 5px 0 0 5px;
    width: 250px;
}

.search-bar button {
    border: none;
    background-color: var(--primary-color);
    color: white;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 0 5px 5px 0;
    transition: background-color 0.3s;
}

.search-bar button:hover {
    background-color: #e67e22;
}

.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
}

.main-nav li {
    margin-left: 20px;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s;
}

.main-nav a.active,
.main-nav a:hover {
    background-color: var(--secondary-color);
    color: #fff;
}

/* === HERO BANNER === */
.hero-banner {
    background-image: url('anh-vuon.jpeg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    text-align: left;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-banner h2 {
    font-size: 48px;
    margin-bottom: 10px;
}

.hero-banner p {
    font-size: 20px;
    margin-bottom: 25px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #e67e22;
}

/* === FEATURES (3 Ô NỔI BẬT) === */
.features {
    padding: 40px 0;
    background-color: #fff;
}

.features .container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.feature-box {
    flex-basis: 32%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
}

.feature-box img {
    width: 100%;
    display: block;
}

.feature-box h3 {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 5px 15px;
    border-radius: 5px;
    margin: 0;
}

/* === PRODUCTS SECTION === */
.products-section {
    padding: 50px 0;
    background-color: var(--light-bg-color);
}

.products-section h2 {
    text-align: center;
    font-size: 32px;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.products-section p {
    text-align: center;
    font-size: 16px;
    color: #777;
    margin-bottom: 40px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.product-card {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    padding: 15px;
    text-align: center;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.product-image {
    position: relative;
    margin-bottom: 15px;
}

.product-image img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #e74c3c;
    color: white;
    padding: 3px 8px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 5px;
}

.product-name {
    font-size: 18px;
    font-weight: 500;
    margin: 0 0 10px 0;
    color: var(--text-color);
    flex-grow: 1; /* Đẩy giá và nút xuống dưới */
}

.product-price {
    margin-bottom: 15px;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
    margin-right: 5px;
}

.new-price {
    font-size: 18px;
    font-weight: 700;
    color: #e74c3c;
}

.btn-buy {
    display: block;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn-buy:hover {
    background-color: #e67e22;
}

/* === FOOTER === */
.site-footer {
    background-color: #333;
    color: #ccc;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
}

/* === RESPONSIVE (Cho điện thoại) === */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        gap: 15px;
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .features .container {
        flex-direction: column;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .hero-banner h2 {
        font-size: 32px;
    }
}