
:root {
    --primary-color: #4CAF50;
    --secondary-color: #388E3C;
    --light-bg: #F9F9F9;
    --dark-text: #2D3436;
    --light-text: #F9F9F9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.logo {
    display: flex;
    align-items: center;
}

.logo .logo-image{
    height: 40px;
    width: 40px;
    border-radius: 50%;
}

.navbar {
    display: flex;
    justify-content: space-between;
    padding: 1rem 5%;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar ul {
    display: flex;
    list-style: none;
    flex-direction: row;
    gap: 1rem;
}

.navbar ul li a{
    padding: 0.5rem 1rem;
    border-radius:10px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.navbar ul li a:hover {
    color: var(--light-text);
    background-color: var(--primary-color);
    transform:scale(1.1);
    border-radius: 10px;
}

.hidden {
    display: none;
}

body {
    background-color: var(--light-bg);
    color: var(--dark-text);
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

h1, h2, h3 {
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: inherit;
}

/* Hero Section */
.hero {
    background: url('hero-bg.jpg') no-repeat center center/cover;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Product Cards */
.products-section {
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.products-container{
    max-width: 100%;
    margin: 0 auto;
    display:flex;
    flex-wrap: wrap;
    flex-direction:row;
}

.products-grid {
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem 5%;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-info {
    padding: 1rem;
}

.product-info h3 {
    margin-bottom: 0.5rem;
}

.product-info p {
    font-weight: bold;
    color: var(--secondary-color);
}

.add-to-cart {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    margin-top: 1rem;
}

.add-to-cart:hover {
    background: var(--secondary-color);
}

/* Cart Section */
.cart-items {
    padding: 2rem 5%;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #eee;
    background: white;
    margin-bottom: 1rem;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.cart-section {
    padding: 2rem 5%;
}

.remove-item {
    background: #ff4444;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
}

.remove-item:hover {
    background: #cc0000;
}

.checkout-btn {
    background: var(--primary-color);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    margin-top: 1rem;
}

.checkout-btn:hover {
    background: var(--secondary-color);
}

/* About Section */
.about-section {
    padding: 2rem 5%;
    background: white;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Contact Section */
.contact-section {
    padding: 2rem 5%;
    background: var(--light-bg);
}

#contactForm {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#contactForm input,
#contactForm textarea {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

#contactForm button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 5px;
    cursor: pointer;
}

#contactForm button:hover {
    background: var(--secondary-color);
}

/* Footer */
footer {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: center;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}