/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Navigation Bar */
nav {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1.5rem 0;
}
.nav-link {
    text-decoration: none;
    color: #28775b;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}
.nav-link:hover, .nav-link.active {
    color: #3aaf55;
}

/* Hero Section */
.hero {
    background-color: #082613;
    padding: 4rem 2rem;
    text-align: center;
}
.site-name {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 1rem;
}
.main-title {
    font-size: 1.5rem;
    color: #555;
    margin-bottom: 1.5rem;
}
.hero-desc {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Country Section */
.country-section {
    padding: 4rem 2rem;
}
.section-title {
    text-align: center;
    font-size: 2rem;
    color: #333;
    margin-bottom: 3rem;
}
.country-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.country-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.country-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}
.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 1.5rem;
}
.card-overlay h3 {
    font-size: 1.5rem;
}
.country-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Product Section */
.page-header {
    text-align: center;
    padding: 3rem 2rem;
    background-color: #f9f9f9;
}
.page-header h1 {
    font-size: 2rem;
    color: #333;
}
.snack-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    border-bottom: 1px solid #eee;
}
.section-header {
    text-align: center;
    margin-bottom: 2rem;
}
.section-header h2 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 1rem;
}
.divider {
    width: 80px;
    height: 3px;
    background-color: #e74c3c;
    margin: 0 auto;
}
.snack-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}
.snack-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px 0 0 8px;
}
.card-content {
    padding: 2rem;
}
.card-content h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1rem;
}
.price {
    font-size: 1.2rem;
    color: #e74c3c;
    font-weight: bold;
    margin-bottom: 1rem;
}
.desc {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
}
.add-to-cart {
    background-color: #e74c3c;
    color: #fff;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s ease;
}
.add-to-cart:hover {
    background-color: #c0392b;
}

/* Cart Page */
.cart-container {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 2rem;
}
#cart-items {
    margin-bottom: 2rem;
}
.cart-item {
    display: grid;
    grid-template-columns: 100px 1fr 100px 100px;
    gap: 1rem;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid #eee;
}
.cart-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
}
.cart-item h4 {
    font-size: 1rem;
    color: #333;
    margin-bottom: 0.5rem;
}
.cart-item .item-price {
    color: #e74c3c;
    font-weight: bold;
}
.delete-item {
    background-color: #e74c3c;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.delete-item:hover {
    background-color: #c0392b;
}
.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-top: 2px solid #eee;
}
.cart-total p {
    font-size: 1.2rem;
    color: #333;
}
#total-price {
    color: #e74c3c;
    font-weight: bold;
}
#checkout {
    background-color: #e74c3c;
    color: #fff;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s ease;
}
#checkout:hover {
    background-color: #c0392b;
}

/* About Us Page */
.about-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.about-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}
.about-icon {
    font-size: 2.5rem;
    color: #e74c3c;
    margin-bottom: 1rem;
}
.about-card h2 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1rem;
}
.about-card p {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0;
    }
    .country-grid {
        grid-template-columns: 1fr;
    }
    .snack-card {
        grid-template-columns: 1fr;
    }
    .snack-card img {
        border-radius: 8px 8px 0 0;
        height: 200px;
    }
    .about-container {
        grid-template-columns: 1fr;
    }
 /* Base styles for mobile (< 600px) */
.container {
    padding: 10px;
    font-size: 14px;
}

nav ul {
    flex-direction: column;
}

/* Tablet (≥ 600px) */
@media (min-width: 600px) {
    .container {
        padding: 20px;
        font-size: 16px;
    }
}

/* Desktop (≥ 1200px) */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 40px;
    }

    nav ul {
        flex-direction: row;
    }
}   
}