body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.header {
    background-color: #234724;
    color: white;
    padding: 15px 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.logo {
    text-align: center;
}

.nav {
    display: flex;
    justify-content: center;
}

.dropdown {
    position: relative;
    margin: 0 10px;
}

.menu-btn {
    background-color: #234724;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 16px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.main-content {
    padding: 20px;
}

.carousel {
    position: relative;
    max-width: 800px;
    margin: auto;
    overflow: hidden;
}

.carousel-image {
    width: 100%;
    display: none;
}

.carousel-image.active {
    display: block;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    padding: 10px;
    z-index: 10;
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

.carousel-btn:hover {
    background-color: rgba(255, 255, 255, 1);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

.product-card {
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    text-align: center;
}

.product-card img {
    width: 150px;  
    height: 150px; 
    object-fit: cover; 
    border-radius: 5px; 
    transition: opacity 0.3s ease;
}

.product-card h3 {
    margin: 10px 0;
}

.price {
    margin: 5px 0;
}

.old-price span {
    text-decoration: line-through;
    color: red;
}

.new-price span {
    font-weight: bold;
    color: green;
}

.buy-btn {
    background-color: #234724;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
}

.footer {
    background-color: #234724;
    color: white;
    text-align: center;
    padding: 15px 0;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .nav {
        flex-direction: row; 
        justify-content: center; 
    }

    .dropdown-content {
        position: relative;
    }

    .dropdown-content ul {
        display: block;
    }

    .product-grid {
        display: flex; 
        flex-wrap: nowrap; 
        overflow-x: auto; 
        gap: 10px; 
    }

    .product-card {
        min-width: 150px; 
        flex: 0 0 auto; 
    }
}
