* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background: #f7fff9;
}

/* HEADER */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #2e8b57;
    /* green fresh */
    color: #fff;
    padding: 15px 25px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    font-size: 20px;
}

.logo img {
    width: 35px;
    height: 35px;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

.icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-icon {
    display: none;
    cursor: pointer;
    font-size: 22px;
}

/* HOME */
.home {
    position: relative;
    background: #fff;
    padding: 0;
    overflow: hidden;
}

.home-content {
    position: relative;
}

.home .image img {
    width: 100%;
    height: 80vh;
    object-fit: cover;
    display: block;
    filter: brightness(65%);
    /* si qoraalka u muuqdo */
}

/* QORAALKA DHEXDA SAWIRKA */
.home .text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.85);
    /* box cadan oo transparent */
    padding: 30px 40px;
    border-radius: 10px;
    text-align: center;
    max-width: 600px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.home .text h1 {
    font-size: 32px;
    color: #2e8b57;
    margin-bottom: 10px;
}

.home .text p {
    color: #333;
    margin-bottom: 20px;
    line-height: 1.6;
}

.home .text .btn {
    background: #2e8b57;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.home .text .btn:hover {
    background: #256d46;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .home .text {
        width: 90%;
        padding: 20px;
    }

    .home .text h1 {
        font-size: 24px;
    }
}



/* PRODUCTS */
.products {
    padding: 40px 20px;
    text-align: center;
}

.products h2 {
    color: #2e8b57;
    font-size: 26px;
}

.product-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.product {
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.product img {
    width: 100%;
    /* height: 180px; */
    object-fit: cover;
    border-radius: 10px;
}

.product button {
    margin-top: 10px;
    background: #2e8b57;
    color: #fff;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s;
}

.product button:hover {
    background: #256d46;
}

/* CART SIDEBAR */
/* CART SIDEBAR */
.cart-sidebar {
    position: fixed;
    top: 70px;
    right: -350px;
    width: 320px;
    height: calc(100% - 70px);
    background: #fff;
    box-shadow: -3px 0 8px rgba(0, 0, 0, 0.2);
    padding: 20px;
    transition: right 0.3s ease;
    overflow-y: auto;
    z-index: 999;
}

.cart-sidebar.active {
    right: 0;
}


.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.cart-item button {
    background: #dc2626;
    color: white;
    border: none;
    padding: 3px 7px;
    border-radius: 3px;
    cursor: pointer;
}

.cart-total {
    margin-top: 20px;
}

#closeCart,
#clearCart {
    background: #2e8b57;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    width: 100%;
    border-radius: 5px;
    margin-top: 10px;
}

/* CONTACT SECTION */
.contact {
    background: #fff;
    padding: 60px 10%;
    text-align: center;
}

.contact h2 {
    color: #2e8b57;
    font-size: 26px;
    margin-bottom: 10px;
}

.contact p {
    color: #555;
    margin-bottom: 30px;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    align-items: flex-start;
}

.contact-info,
.contact-form {
    flex: 1 1 350px;
    background: #f9fff8;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.contact-info h3 {
    color: #2e8b57;
    margin-bottom: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    margin-bottom: 15px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.contact-form button {
    background: #2e8b57;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-form button:hover {
    background: #256d46;
}

@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
    }
}


/* FOOTER */
footer {
    text-align: center;
    padding: 20px;
    background: #2e8b57;
    color: white;
    margin-top: 40px;
}

/* RESPONSIVE MENU & GRID */
@media (max-width: 992px) {
    .product-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .product img {
        width: 80%
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        background: #2e8b57;
        position: absolute;
        top: 60px;
        right: 0;
        width: 200px;
        padding: 10px;
    }

    .nav-links a {
        padding: 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    }

    .nav-links.active {
        display: flex;
    }

    .menu-icon {
        display: block;
    }

    .product-list {
        grid-template-columns: 1fr;
    }

    .home-content {
        flex-direction: column;
        text-align: center;
    }

    .home .image {
        text-align: center;
        margin-top: 20px;
    }

    .product img {
        width: 80%;
    }
}