:root {
    --primary-color: #1b5e20;
    /* Deep Green */
    --secondary-color: #4caf50;
    /* Fresh Green */
    --accent-color: #ffca28;
    /* Golden Yellow */
    --text-dark: #212121;
    --text-grey: #616161;
    --text-light: #ffffff;
    --background-light: #ffffff;
    --background-off-white: #f5f5f5;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --transition: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Verdana, sans-serif;
    /* Recommended Google Font */
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-off-white);
}

/* Typography & Utilities */
h1,
h2,
h3,
h4 {
    font-weight: 600;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.btn {
    display: inline-block;
    padding: 10px 24px;
    background: var(--primary-color);
    color: var(--text-light);
    border-radius: 50px;
    font-weight: 500;
    border: 2px solid transparent;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(27, 94, 32, 0.2);
}

.btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(76, 175, 80, 0.3);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Nav */
header {
    background: var(--background-light);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    max-width: 1200px;
    /* Limit width */
    margin: 0 auto;
    /* Center it */
}

.logo img {
    height: 70px;
    /* Increased from 50px */
    width: auto;
    max-width: 250px;
    /* Prevent it from being too wide on mobile */
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(27, 94, 32, 0.9), rgba(27, 94, 32, 0.7)), url('../images/logo.png');
    background-size: cover;
    background-position: center;
    color: var(--text-light);
    padding: 120px 20px;
    text-align: center;
    border-radius: 0 0 50% 50% / 20px;
    /* Modern curve at bottom */
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Products Section */
.products-section,
.about-preview,
.contact-section {
    padding: 80px 5%;
    /* Add percentage padding for responsiveness */
    max-width: 1400px;
    /* Max width for large screens */
    margin: 0 auto;
    /* Center the section */
}

.section-title {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 50px;
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.product-card {
    background: var(--background-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    height: 220px;
    padding: 20px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.product-info {
    padding: 25px;
    text-align: left;
    border-top: 1px solid #f0f0f0;
}

.product-info h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: var(--text-dark);
}

.product-category-label {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--secondary-color);
    background: rgba(76, 175, 80, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 15px;
}

/* Filters */
.filters {
    text-align: center;
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    padding: 8px 20px;
    border: 1px solid var(--secondary-color);
    background: transparent;
    color: var(--secondary-color);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--secondary-color);
    color: #fff;
}

/* Detail Page Styles */
.detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 40px;
    background: white;
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.detail-gallery {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.main-image-container {
    position: relative;
    width: 100%;
    height: 380px;
    border: 1px solid #eee;
    border-radius: var(--radius-sm);
    background: #fafafa;
    overflow: hidden;
    flex-shrink: 0;
    cursor: zoom-in;
}

.main-image-container img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: calc(100% - 24px);
    max-height: calc(100% - 24px);
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.thumbnail-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    object-fit: contain;
    padding: 5px;
    border: 1px solid #eee;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary-color);
}

.detail-info h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.detail-description {
    font-size: 1.1rem;
    margin-top: 20px;
    margin-bottom: 30px;
    color: var(--text-grey);
}

.video-section {
    margin-top: 40px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Contact Section Fixes */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    /* Allow wrapping on small screens */
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    /* Center the container */
    justify-content: center;
    /* Center items if they wrap */
}

.contact-info,
.map-container {
    flex: 1 1 350px;
    /* Minimum width before wrapping */
    min-width: 300px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-item i {
    color: var(--primary-color);
    margin-right: 15px;
    font-size: 1.4rem;
    margin-top: 5px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

/* ===== HERO SLIDER ===== */
.hero-slider {
    position: relative;
    overflow: hidden;
    background: #000;
    max-height: 600px;
}
.slider-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(.25,.46,.45,.94);
    will-change: transform;
}
.slide {
    min-width: 100%;
    position: relative;
}
.slide img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    display: block;
    opacity: .92;
}
.slide-caption {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    background: linear-gradient(to bottom, rgba(0,0,0,.15), rgba(0,0,0,.55));
    color: #fff;
}
.slide-caption h2 {
    font-size: 2.8rem;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0,0,0,.4);
    margin-bottom: .5rem;
}
.slide-caption p {
    font-size: 1.15rem;
    max-width: 600px;
    text-shadow: 0 1px 4px rgba(0,0,0,.4);
    margin-bottom: 1.2rem;
}
.slide-btn {
    background: var(--secondary-color);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 14px rgba(0,0,0,.3);
}
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,.35);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    transition: background .2s;
    z-index: 10;
}
.slider-arrow:hover { background: rgba(0,0,0,.6); }
.slider-prev { left: 16px; }
.slider-next { right: 16px; }
.slider-dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    border: none;
    cursor: pointer;
    transition: background .2s, transform .2s;
}
.dot.active {
    background: #fff;
    transform: scale(1.3);
}

/* ===== LIGHTBOX ===== */
.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img {
    max-width: 92vw;
    max-height: 90vh;
    border-radius: 6px;
    box-shadow: 0 8px 40px rgba(0,0,0,.6);
    cursor: default;
    object-fit: contain;
}
.lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    color: #fff;
    font-size: 2.2rem;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    opacity: .8;
}
.lightbox-close:hover { opacity: 1; }

/* ===== FOOTER — Zengin ===== */
footer {
    background: var(--primary-color);
    color: rgba(255,255,255,.85);
    margin-top: 60px;
    text-align: left;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 2rem 2rem;
    text-align: left;
}
.footer-col {
    text-align: left;
}
.footer-col h4 {
    color: #fff;
    font-size: .95rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: .4rem;
    border-bottom: 2px solid var(--secondary-color);
    display: inline-block;
    text-align: left;
}
.footer-col p, .footer-col li {
    font-size: .88rem;
    line-height: 1.75;
    color: rgba(255,255,255,.75);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li a {
    color: rgba(255,255,255,.75);
    text-decoration: none;
    transition: color .2s;
    display: block;
    padding: .1rem 0;
}
.footer-col ul li a:hover { color: #fff; }
.footer-col .footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    margin-bottom: .55rem;
    font-size: .86rem;
    color: rgba(255,255,255,.75);
}
.footer-col .footer-contact-item i {
    color: var(--secondary-color);
    margin-top: .18rem;
    flex-shrink: 0;
    width: 15px;
    text-align: center;
}
.footer-logo {
    max-width: 140px;
    max-height: 48px;
    width: auto;
    height: auto;
    margin-bottom: .8rem;
    border-radius: 4px;
    display: block;
    object-fit: contain;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.15);
    text-align: center;
    padding: .9rem 2rem;
    font-size: .82rem;
    color: rgba(255,255,255,.5);
}

/* Media Queries */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        padding: 20px 0;
        box-shadow: var(--shadow-md);
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .detail-container {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .contact-container {
        flex-direction: column;
    }
    .slide img { height: 300px; }
    .slide-caption h2 { font-size: 1.6rem; }
    .slide-caption p { font-size: .95rem; }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        padding: 1.8rem 1.2rem 1.2rem;
    }
}
@media (max-width: 520px) {
    .footer-grid { grid-template-columns: 1fr; }
}