* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: #f5f5f5;
    
}

html {
    scroll-behavior: smooth;
}

/* ================= HEADER ================= */

/* NORMAL HEADER */
.main-header{
  position: sticky;
  top: 0;
  z-index: 999;
  height: 90px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;

  transition: all 0.3s ease;
  background-color: #2e7d32;
}

/* LOGO NORMAL */
.main-header img{
  height: 55px;
  transition: all 0.3s ease;
}


/* SCROLL EDİNCE KÜÇÜLEN HAL */
.main-header.shrink{
  height: 65px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* LOGO DA KÜÇÜLSÜN */
.main-header.shrink img{
  height: 40px;
}



.header-left img {
    height: 50px;
}

.header-nav {
    display: flex;
    gap: 25px;
}

.header-nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    position: relative;
}

/* Alt çizgi hover efekti */
.header-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: white;
    transition: .3s;
}

.header-nav a:hover::after {
    width: 100%;
}

.header-right {
    display: flex;
    align-items: center;
}

.cart-icon {
    font-size: 22px;
    cursor: pointer;
    position: relative;
}

.cart-icon span {
    background: red;
    color: white;
    padding: 2px 6px;
    border-radius: 50%;
    font-size: 12px;
    position: absolute;
    top: -8px;
    right: -12px;
}

/* ================= RESPONSIVE HEADER ================= */

@media (max-width: 768px) {
    .header-nav {
        display: none; /* mobilde menüyü sonra açacağız */
    }
}


/* ================= PRODUCTS ================= */

.products {
    padding: 40px 8%;
    display: grid;
    grid-template-columns: repeat(auto-fill, 280px);
    gap: 25px;
    justify-content: center; /* TEK ÜRÜNDE ORTALAR */
}

@media (max-width: 600px) {
    .products {
        grid-template-columns: 1fr;
    }
}


.card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    transition: transform .3s ease, box-shadow .3s ease;
}

@media (max-width: 768px) {
    .card img {
        height: 180px;
    }
}

.card:hover {
    transform: scale(1.02);
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.18);
}

.card img {
    width: 100%;
    height: 220px;          /* SABİT YÜKSEKLİK */
    object-fit: contain;   /* GÜBRE ÇUVALLARI İÇİN EN DOĞRUSU */
    background: #f8f8f8;   /* BOŞLUK KALIRSA TEMİZ GÖRÜNÜR */
    padding: 10px;
    transition: transform .3s ease;
}

.card:hover img {
    transform: scale(1.05);
}

.card-body {
    padding: 15px;
}

button, .btn {
    background: #2e7d32;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: .3s;
    font-weight: bold;
}

button:hover, .btn:hover {
    background: #1b5e20;
}

/* ================= SEARCH ================= */

.search-box {
    margin: 20px auto;
    width: 90%;
    max-width: 350px;
}

.search-box input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

/* ================= CART ================= */

.cart {
    position: fixed;
    top: 0;
    right: -400px;          /* kapalıyken ekran dışında */
    width: 400px;
    height: 100vh;

    background: #ffffff;
    box-shadow: -4px 0 15px rgba(0,0,0,0.25);
    z-index: 1001;

    padding: 20px;

    display: flex;
    flex-direction: column;

    transition: right 0.4s ease;
}

#cartItems {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 15px;
}

.cart-footer {
    border-top: 1px solid #ddd;
    padding-top: 15px;
}

.cart.show {
    right: 0;        /* AÇIK */
}

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: none;
    z-index: 1000;
}

/* ================= WHATSAPP ================= */

.whatsapp-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    padding: 14px 20px;
    background: #25D366;
    color: white;
    border-radius: 50px;
    font-size: 18px;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    z-index: 100;
}

/* ================= SLIDER ================= */

.slider-container {
    position: relative;
    width: 100%;
    height: 65vh;
    overflow: hidden;
    margin-top: 0;
    padding-top: 0;
}

.slider {
    display: flex;
    height: 100%;
    transition: transform 0.7s ease-in-out;
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

/* Overlay (karartma) */
.slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Slider Text */
.slide-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    max-width: 90%;
    z-index: 2;
}

.slide-text h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.slide-text p {
    font-size: 1.3rem;
}

/* Slider Buttons */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 8px;
    z-index: 5;
}

.prev { left: 20px; }
.next { right: 20px; }

.prev:hover, .next:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {
    .slider-container {
        height: 55vh;
    }

    .slide-text h2 {
        font-size: 2.2rem;
    }

    .slide-text p {
        font-size: 1rem;
    }
}


/* ================= HAMBURGER MENU ================= */

.hamburger {
    display: none;
    font-size: 28px;
    cursor: pointer;
}

/* Mobil */
@media (max-width: 768px) {
    .header-nav {
        position: absolute;
        top: 70px;
        right: 0;
        background: #2e7d32;
        flex-direction: column;
        width: 200px;
        padding: 15px;
        display: none;
    }

    .header-nav a {
        margin: 10px 0;
    }

    .header-nav.show {
        display: flex;
    }

    .hamburger {
        display: block;
        color: white;
    }
}

.cart button {
    padding: 3px 8px;
    border-radius: 5px;
    border: none;
    background: #2e7d32;
    color: white;
    cursor: pointer;
}

/* ================= KATEGORİ ================= */
.category-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.category-bar button {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #2e7d32;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: .3s;
}

.category-bar button:hover {
    background: #2e7d32;
    color: white;
}

.badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #2e7d32;
    color: white;
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 20px;
    text-transform: capitalize;
    font-weight: bold;
}

.category-bar button.active {
    background: #2e7d32;
    color: white;
}


.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.logo-area img {
    height: 90px;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: white;
    letter-spacing: 0.5px;
}

@media (max-width: 600px) {
    .logo-text {
        font-size: 16px;
    }
}

.about-section {
    background: #fff;
    padding: 80px 8%;
}

.about-container {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.4rem;
    margin-bottom: 15px;
    color: #2e7d32;
}

.about-slogan {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.about-list {
    margin-top: 20px;
    padding-left: 0;
    list-style: none;
}

.about-list li {
    margin-bottom: 8px;
}

.about-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-box {
    background: #f4f6f4;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    min-width: 150px;
}

.stat-box h3 {
    font-size: 2rem;
    color: #2e7d32;
}


/* Responsive */
@media (max-width: 900px) {
    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-list {
        text-align: left;
        display: inline-block;
    }
}

.contact-section {
    background: #f0f0f0;
    padding: 80px 8%;
}

.contact-section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #2e7d32;
    font-size: 32px;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
    align-items: center;
}

.contact-info {
    font-size: 16px;
    line-height: 2;
    color: #333;
}

.contact-map iframe {
    width: 100%;
    height: 300px;
    border: 0;
    border-radius: 12px;
}

/* Responsive */
@media (max-width: 900px) {
    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-map iframe {
        height: 250px;
    }
}




/* ===== Scroll Fade In ===== */
.fade-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-section.show {
    opacity: 1;
    transform: translateY(0);
}

.stat-box h3 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #2e7d32;
}


/* ================= CONTACT ================= */

.contact-section {
    padding: 80px 8%;
    background: #f6f8f6;
}

.section-title {
    text-align: center;
    font-size: 2.4rem;
    margin-bottom: 50px;
    color: #2e7d32;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: stretch;
}

.contact-card {
    background: white;
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.contact-card h3 {
    margin-bottom: 20px;
    color: #2e7d32;
}

.contact-card p {
    margin-bottom: 18px;
    font-size: 1.05rem;
}

.contact-card a {
    color: #2e7d32;
    text-decoration: none;
    font-weight: 600;
}

.contact-whatsapp {
    display: inline-block;
    margin-top: 20px;
    background: #25D366;
    color: white !important;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: bold;
    transition: 0.3s;
}

.contact-whatsapp:hover {
    background: #1ebc57;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 320px;
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

/* Mobil */
@media (max-width: 900px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}


#contactForm {
    margin-top: 20px;
}

#contactForm input,
#contactForm textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

#contactForm button {
    width: 100%;
    background: #25D366;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}

/* ================= FOOTER ================= */

.site-footer {
    background: #2e7d32;
    color: #fff;
    margin-top: 80px;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 40px;
    padding: 50px 8%;
}

.site-footer h3,
.site-footer h4 {
    margin-bottom: 15px;
}

.footer-about p {
    line-height: 1.6;
    opacity: 0.9;
}

.footer-links a {
    display: block;
    color: #fff;
    text-decoration: none;
    margin-bottom: 8px;
    opacity: 0.9;
    transition: 0.3s;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-contact p {
    margin-bottom: 8px;
}

.footer-bottom {
    text-align: center;
    padding: 15px;
    background: #1b5e20;
    font-size: 0.95rem;
}

/* Mobil */
@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}
