/* ================== RESET & BASE ================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
}

body {
    background: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

/* ================== HEADER ================== */
.header {
    background: #2e7d32;
    color: #fff;
    padding: 20px;
    text-align: center;
    position: relative;
}

.header h2 {
    margin-bottom: 5px;
    font-size: 2rem;
}

.header h3 {
    font-weight: normal;
    font-size: 1rem;
    color: #e0e0e0;
}

/* ================== NAVIGATION / MENU ================== */
.top-nav {
    background: #fff;
    border-bottom: 1px solid #ccc;
}

.nav-menu {
    list-style: none;
    margin: 0;
    padding: 0 20px;
    display: flex;
    gap: 30px;
    align-items: center;
    white-space: nowrap;
    justify-content: center; /* center menu horizontally */
}

.nav-menu > li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 12px 8px;
    color: #2e7d32;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
}

.nav-menu a:hover {
    background-color: #2e7d32;
    color: white;
    border-radius: 4px;
}

/* Dropdown */
.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #ccc;
    min-width: 300px;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 999;
    border-radius: 4px;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
    white-space: normal;
}

.nav-menu > li:hover > .dropdown {
    display: block;
}

.dropdown-content {
    margin: 0;
    padding: 0;
}

.dropdown ul {
    padding-left: 20px;
    margin: 10px 0 0 0;
    list-style-type: disc;
}

.dropdown ul li {
    margin-bottom: 6px;
}

/* ================== SEARCH BAR ================== */
.search-container {
    max-width: 800px;
    margin: 30px auto;
    padding: 15px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.search-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.search-form input,
.search-form select {
    padding: 10px 12px;
    font-size: 0.95rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    transition: 0.3s;
}

.search-form input {
    flex: 1;
    min-width: 180px;
}

.search-form select {
    min-width: 140px;
    background: #fff;
    cursor: pointer;
}

.search-form input:focus,
.search-form select:focus {
    border-color: #2e7d32;
    outline: none;
}

.search-form button {
    padding: 10px 16px;
    font-size: 0.95rem;
    background-color: #2e7d32;
    border: none;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.search-form button:hover {
    background-color: #256028;
}

.reset-btn {
    padding: 10px 16px;
    background: #777;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
}

.reset-btn:hover {
    background: #555;
}

/* ================== PRODUCTS ================== */
.category-section {
    margin: 40px auto;
    max-width: 1200px;
    padding: 0 15px;
}

.category-section h2 {
    font-size: 1.8rem;
    color: #2e7d32;
    margin-bottom: 15px;
    text-align: center;
}

.category-section h3 {
    font-size: 1.3rem;
    margin: 15px 0 10px;
    color: #555;
}

.product-row {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-behavior: smooth;
    flex-wrap: nowrap; /* horizontal scrolling, no wrapping */
}

.product-card {
    min-width: 220px;
    max-width: 220px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.25);
}

.img-box {
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-card h4 {
    font-size: 1.1rem;
    margin: 10px 0 5px;
    text-align: center;
    color: #2e7d32;
}

.product-card p {
    font-size: 0.9rem;
    padding: 0 10px;
    text-align: center;
    margin-bottom: 5px;
}

.product-card .price {
    font-weight: bold;
    color: #d32f2f;
    margin-bottom: 10px;
    text-align: center;
}

/* ================== SLIDER ================== */
.slider {
    max-width: 800px;
    margin: 20px auto;
    overflow: hidden;
    border-radius: 10px;
}

.slides {
    display: flex;
    transition: transform 0.8s ease;
}

.slides img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

/* ================== FOOTER ================== */
.site-footer {
    background-color: #1e1e1e;
    color: #f1f1f1;
    text-align: center;
    padding: 40px 20px;
}

.site-footer h3 {
    margin-bottom: 15px;
    color: #ffffff;
}

.site-footer p, .site-footer a {
    margin: 5px 0;
    color: #ccc;
    text-decoration: none;
    font-size: 0.95rem;
}

.site-footer a:hover {
    color: #4caf50;
    text-decoration: underline;
}

.site-footer hr {
    margin: 25px auto;
    width: 60%;
    border: 0;
    border-top: 1px solid #444;
}

.site-footer .copyright {
    font-size: 14px;
    color: #bbb;
}

/* ================== MAP ================== */
.map-box {
    max-width: 600px;
    margin: 20px auto;
    border-radius: 10px;
    overflow: hidden;
}

.map-box iframe {
    width: 100%;
    height: 250px;
    border: 0;
}

/* ================== RESPONSIVE ================== */
@media (max-width: 768px) {
    .product-row {
        gap: 15px;
    }

    .product-card {
        min-width: 180px;
        max-width: 180px;
    }

    .header h2 {
        font-size: 1.5rem;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0;
    }

    .nav-menu > li {
        width: 100%;
    }

    .nav-menu > li:hover > .dropdown {
        position: static;
        box-shadow: none;
        border: none;
    }

    .dropdown {
        padding: 10px 0;
        min-width: 100%;
    }
}