* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f8f8f8;
    color: #222;
}


/* Header */

.header {
    width: 100%;
    height: 70px;
    background: white;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 7%;

    box-shadow: 0 2px 10px rgba(0,0,0,0.08);

    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 25px;
    font-weight: bold;
    color: #168a45;
}
.logo2{
    width: 150px;
    height: 75px;

}

nav {
    display: flex;
    gap: 25px;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

nav a:hover {
    color: #168a45;
}

.cart-btn {
    border: none;
    background: #168a45;
    color: white;

    padding: 10px 17px;
    border-radius: 7px;

    cursor: pointer;
    font-size: 15px;
}

#cartCount {
    background: white;
    color: #168a45;

    padding: 2px 6px;
    border-radius: 50%;

    margin-left: 4px;
}
/* Hamburger Menu Button */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #168a45;
    border-radius: 2px;
}


/* Hero */

.hero {
    min-height: 480px;

    display: flex;
    align-items: center;

    padding: 50px 8%;

    background:
        linear-gradient(
            rgba(0,0,0,0.35),
            rgba(0,0,0,0.35)
        ),
        url("https://images.unsplash.com/photo-1542838132-92c53300491e?auto=format&fit=crop&w=1600&q=80");

    background-size: cover;
    background-position: center;
}

.hero-content {
    color: white;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 19px;
    margin-bottom: 30px;
}

.shop-btn {
    display: inline-block;

    background: #168a45;
    color: white;

    text-decoration: none;

    padding: 14px 25px;

    border-radius: 7px;
}


/* Products */

.products-section {
    padding: 60px 7%;
}

.products-section h2 {
    text-align: center;
    margin-bottom: 35px;

    font-size: 32px;
}

/* Category Filter */
.category-wrap {
    margin: 0 auto 35px;
    max-width: 1100px;
    text-align: center;
}

.category-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 14px;
}

.category-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.category-btn {
    border: 1px solid #168a45;
    background: white;
    color: #168a45;
    padding: 9px 16px;
    border-radius: 22px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s;
}

.category-btn:hover,
.category-btn.active {
    background: #168a45;
    color: white;
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 35px 10px;
    color: #666;
    background: white;
    border-radius: 10px;
}

.product-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(220px, 1fr));

    gap: 25px;
}

.product,
.product-card {
    background: white;

    border-radius: 12px;

    overflow: hidden;

    box-shadow:
        0 3px 15px rgba(0,0,0,0.08);

    transition: 0.3s;
}

.product:hover,
.product-card:hover {
    transform: translateY(-5px);
}

.product img,
.product-card img {
    width: 100%;
    height: 210px;

    object-fit: cover;
}

.product-info {
    padding: 18px;
}

.product-category {
    display: inline-block;
    font-size: 12px;
    color: #168a45;
    background: #eaf7ef;
    padding: 4px 8px;
    border-radius: 12px;
    margin-bottom: 8px;
}

.product-info h3 {
    margin-bottom: 8px;
}

.price {
    color: #168a45;

    font-size: 20px;
    font-weight: bold;

    margin-bottom: 15px;
}

.product-buttons {
    display: flex;
    gap: 8px;
}

.add-btn,
.buy-btn,
.add-cart-btn,
.buy-now-btn {
    flex: 1;

    border: none;

    padding: 11px;

    border-radius: 6px;

    cursor: pointer;
}

.add-btn,
.add-cart-btn {
    background: #168a45;
    color: white;
}

.buy-btn,
.buy-now-btn {
    background: #ff9800;
    color: white;
}


/* Overlay */

.overlay {
    position: fixed;

    inset: 0;

    background: rgba(0,0,0,0.5);

    display: none;

    z-index: 200;
}


/* Cart */

.cart {
    position: fixed;

    top: 0;
    right: -430px;

    width: 400px;
    max-width: 90%;

    height: 100vh;

    background: white;

    z-index: 300;

    transition: 0.3s;

    display: flex;
    flex-direction: column;
}

.cart.active {
    right: 0;
}

.overlay.active {
    display: block;
}

.cart-header {
    display: flex;

    justify-content: space-between;
    align-items: center;

    padding: 20px;

    border-bottom: 1px solid #ddd;
}

.cart-header button,
.close-checkout {
    border: none;

    background: none;

    font-size: 22px;

    cursor: pointer;
}

#cartItems {
    flex: 1;

    overflow-y: auto;

    padding: 15px;
}

.cart-item {
    display: flex;

    gap: 10px;

    border-bottom: 1px solid #ddd;

    padding: 15px 0;
}

.cart-item img {
    width: 65px;
    height: 65px;

    object-fit: cover;

    border-radius: 7px;
}

.cart-item-info {
    flex: 1;
}

.cart-item-info h4 {
    margin-bottom: 5px;
}

.quantity {
    display: flex;

    align-items: center;

    gap: 8px;

    margin-top: 8px;
}

.quantity button {
    border: none;

    width: 25px;
    height: 25px;

    cursor: pointer;

    background: #eee;
}

.remove-btn {
    color: red;

    background: none;

    border: none;

    cursor: pointer;
}

.cart-footer {
    padding: 20px;

    border-top: 1px solid #ddd;
}

.checkout-btn {
    width: 100%;

    border: none;

    background: #168a45;
    color: white;

    padding: 14px;

    margin-top: 15px;

    border-radius: 7px;

    cursor: pointer;

    font-size: 16px;
}


/* Checkout */

.checkout-modal {
    position: fixed;

    inset: 0;

    background: rgba(0,0,0,0.6);

    display: none;

    align-items: center;
    justify-content: center;

    z-index: 500;

    padding: 20px;
}

.checkout-modal.active {
    display: flex;
}

.checkout-box {
    width: 450px;
    max-width: 100%;

    background: white;

    padding: 30px;

    border-radius: 12px;

    position: relative;
}

.close-checkout {
    position: absolute;

    top: 15px;
    right: 15px;
}

.checkout-box h2 {
    margin-bottom: 25px;
}

.checkout-box label {
    display: block;

    margin-bottom: 7px;

    margin-top: 15px;

    font-weight: bold;
}

.checkout-box input,
.checkout-box textarea {
    width: 100%;

    border: 1px solid #ddd;

    padding: 12px;

    border-radius: 6px;

    outline: none;

    font-size: 15px;
}

.checkout-box textarea {
    height: 100px;

    resize: none;
}

.whatsapp-btn {
    width: 100%;

    border: none;

    background: #25D366;

    color: white;

    padding: 14px;

    border-radius: 7px;

    margin-top: 20px;

    cursor: pointer;

    font-size: 16px;

    font-weight: bold;
}


/* Footer */

footer {
    background: #123b27;

    color: white;

    text-align: center;

    padding: 40px 20px;
}

footer p {
    margin-top: 10px;
}

.copyright {
    margin-top: 25px !important;

    color: #bbb;
}


/* Mobile */


@media (max-width: 700px) {

    .header {
        padding: 0 4%;
        position: relative; /* মেনুর পজিশন ঠিক রাখার জন্য */
    }

    /* মোবাইলে ৩টি দাগ (☰) দেখাবে */
    .hamburger {
        display: flex;
    }

    /* প্রথম অবস্থায় মেনুটি মোবাইলে লুকিয়ে থাকবে */
    nav {
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        padding: 20px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        z-index: 1000;
        gap: 15px;
        text-align: center;
    }

    /* জাভাস্ক্রিপ্ট দিয়ে active ক্লাস যোগ হলে মেনু শো করবে */
    nav.active {
        display: flex;
    }

    .category-list {
        gap: 8px;
    }

    .category-btn {
        padding: 8px 12px;
        font-size: 13px;
    }

    .hero {
        min-height: 400px;
        padding: 40px 6%;
    }

    .hero-content h1 {
        font-size: 35px;
    }

    .products-section {
        padding: 40px 5%;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product img,
.product-card img {
        height: 160px;
    }

    .product-info {
        padding: 12px;
    }

    .product-buttons {
        flex-direction: column;
    }

    .cart {
        width: 100%;
        max-width: 100%;
    }
}