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

/* General styling */
body {
    background-color: whitesmoke;
    font-family: Arial, sans-serif;
}

/*Container Spacing*/
.container {
    margin-top: 200px;
}

/* Category Title Styling */
.category-title {
    font-size: 24px;
    font-weight: bold;
    margin-top: 30px;
    margin-bottom: 20px; /* 20px space between the category title and items */
    text-align: center !important;
    color: #333;
    display: flex !important;
    justify-content: center !important; /* Flexbox for centering */
    width: 100% !important;
}


/* Container for the product grid */
.product-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center !important;
    align-items: center !important;
    gap:30px;
    margin: auto 50px 60px auto;
    padding: 0 15px;
    width:100%;
}

/* Row styling for products within a category */
.product-container .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Center all cards within the row */
    gap: 20px; /* Space between product cards */
    width: 100%; /* Ensure the row takes up the full width of the container */
    margin: 0 auto; /* Center the row itself within the container */
}

/* Individual product card */
.product-card {
    border: 1px solid #ccc;
    padding: 20px;
    width: 300px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.1);
}

/* Product image with fixed width and height */
.product-image {
    width: 250px;
    height: 280px;
    object-fit: cover;
    margin-bottom: 10px;
    border-radius: 8px;
}

/* Styling for mobile screens (max-width: 768px) */
@media screen and (max-width: 768px) {
    .product-container {
        justify-content: center !important; /* Center the images */
        align-items: center;
        gap:20px;
    }

    .product-card {
        width: 75%; /* Adjust the card width to fit smaller screens */
       margin-bottom: 20px; /* Add some spacing between cards */
       margin: auto;
    }

    .product-image {
        width: 100%; /* Make the image responsive */
        height: auto; /* Let height adjust based on image */
    }

    /* Ensure the category title is centered on smaller screens */
    .category-title {
        font-size: 20px;
        margin-top: 20px;
        text-align: center !important;
    }
}

button {
    padding:6px 8px;
    border-radius: 10px;
    border:none;
    background-color:rgb(1, 79, 1);
    color:white;
}

#checkout {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 1000;
}

.checkout-header {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background-color: #f1f1f1;
    border-bottom: 1px solid #ccc;
}

.checkout-body {
    padding: 10px;
}

.checkout-footer {
    padding: 10px;
    background-color: #f1f1f1;
    border-top: 1px solid #ccc;
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap:20px;
    margin-bottom: 10px;
}

.cart-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    margin-right: 10px;
}

.cart-details {
    /*flex: 1;*/
    display: flex;
    gap:50px;
}

button.increase-qty, button.decrease-qty, button.delete-item {
    border: none;
    background-color:rgb(1, 79, 1);
    font-size: 18px;
    cursor: pointer;
}

button.delete-item {
    color: white;
}

/*Header Section*/

a {
    text-decoration: none;
    color: black;
}

li {
    list-style: none;
}

/* Header Section and Media Queries*/
header {
    background-color: white;
}

/* Top Navigation */
.topnav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap:30px;
    padding: 10px 30px;
    color: white;
    background-color: rgb(1, 79, 1);
    top: 0;
    font-weight: bolder;
    position: fixed;
    width: 100%;
    z-index: 100;
}

.topnav a {
    font-size: 1rem;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    background-color: white;
    position: fixed;
    top: 48px;
    width: 100%;
    z-index: 99;
}


.nav-menu {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: center;
}

.nav-link:hover {
    color: black;
}

.brand {
    display:flex;
    gap:10px;
    justify-content: center;
    align-items: center;
    padding:10px;
}

.brand h1 {
    color:rgb(1, 79, 1)
}

.brand img {
    height:90px;
    width:90px;
    border-radius: 50%;
    display:flex;
    justify-content: center;
    align-items: center;
    
}
@media(max-width:350px) {
    .brand img {
        height:50px;
        width:50px;
    }

    .topnav {
        text-align: center;
    }

}
.hamburger {
    display: none;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: black;
}

/* Dropdown Menu */
.nav-item {
    position: relative;
}

@media (max-width: 768px) {
    .navbar {
        padding: 0 15px;
    }

    .hamburger {
        display: block;
        cursor: pointer;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        position: fixed;
        left: -100%;
        top: 120px;
        transition: 0.3s;
        gap: 10px;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 10px 0;
       /* position:relative; /*Push other links further below*/
    }

    .nav-link {
        color: black;
    }

    .topnav a{
        font-size: 14px;
    }
}
