/* Base and Reset */
:root {
    --primary-color: #2e7d32; /* Emerald Green */
    --primary-light: #4caf50;
    --primary-dark: #1b5e20;
    --bg-color: #f9fbf9;
    --text-main: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Prompt', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-dark);
}

.logo ion-icon {
    color: var(--primary-color);
    margin-right: 5px;
    font-size: 28px;
}

.logo span {
    color: var(--primary-light);
}

.navbar nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.navbar nav a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    transition: var(--transition);
}

.navbar nav a:hover {
    color: var(--primary-color);
}

.cart {
    position: relative;
    cursor: pointer;
    font-size: 24px;
    color: var(--text-main);
    transition: var(--transition);
}

.cart:hover {
    color: var(--primary-color);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #e53935;
    color: white;
    font-size: 12px;
    font-weight: bold;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Hero Section */
.hero {
    height: 100vh;
    background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6)), url('images/hero.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 0 10%;
    color: var(--white);
    margin-top: 0;
}

.hero-content {
    max-width: 600px;
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    opacity: 0.9;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.4);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.6);
}

/* Features */
.features {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 80px 10%;
    background-color: white;
    flex-wrap: wrap;
}

.feature-box {
    text-align: center;
    flex: 1;
    min-width: 250px;
    padding: 30px;
    border-radius: 20px;
    background: var(--bg-color);
    transition: var(--transition);
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-shadow);
}

.feature-box .icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-box h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.feature-box p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Products Section */
.products {
    padding: 80px 10%;
    background-color: var(--bg-color);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.product-img {
    height: 250px;
    background: #f0f4f0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-info {
    padding: 25px;
}

.product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.product-info .price {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.product-info .price span {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 400;
}

.add-to-cart {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.add-to-cart:hover {
    background: var(--primary-color);
    color: white;
}

/* Modals */
.cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: flex-end;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 2000;
}

.cart-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.cart-content {
    background: white;
    width: 400px;
    height: 100%;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    display: flex;
    flex-direction: column;
}

.cart-modal.open .cart-content {
    transform: translateX(0);
}

.cart-header {
    padding: 25px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    font-size: 1.5rem;
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

.cart-items {
    flex: 1;
    padding: 25px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f5f5f5;
}

.item-info h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.item-info p {
    color: var(--text-light);
}

.item-remove {
    background: none;
    border: none;
    color: #e53935;
    cursor: pointer;
    font-size: 1.2rem;
}

.cart-footer {
    padding: 25px;
    border-top: 1px solid #eee;
    background: #fafafa;
}

.cart-footer h3 {
    margin-bottom: 20px;
    text-align: right;
    font-size: 1.4rem;
}

.checkout-btn {
    width: 100%;
    padding: 15px;
    background: #333;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.checkout-btn:hover {
    background: var(--primary-color);
}

/* Footer */
footer {
    background: #111;
    color: white;
    padding: 60px 10% 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

.footer-col .logo {
    color: white;
    margin-bottom: 20px;
}

.footer-col p {
    color: #aaa;
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 15px;
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 10px;
}


.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #222;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    color: #777;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }
    .navbar nav ul {
        display: none;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .features, .products {
        padding: 50px 20px;
    }
    .cart-content {
        width: 100%;
    }
}
