/* --- Google Fonts (Outfit & Lexend) --- */
@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #10B981;
    /* Canlı Zümrüt Yeşili */
    --primary-dark: #047857;
    /* Koyu Yeşil */
    --accent: #F59E0B;
    /* Vurucu Turuncu/Sarı */
    --text-dark: #1F2937;
    /* Koyu Gri Metin */
    --text-light: #6B7280;
    /* Açık Gri Metin */
    --bg-light: #F9FAFB;
    /* Sayfa Arkaplanı */
    --white: #ffffff;
    --border: #E5E7EB;

    --font-main: 'Outfit', sans-serif;
    --font-heading: 'Lexend', sans-serif;
    --container-max: 1600px;
}

/* --- Genel Ayarlar --- */
body {
    font-family: var(--font-main);
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Duyuru Barı --- */
.top-bar {
    background-color: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 8px 0;
    font-size: 13px;
    font-weight: 500;
}

.top-bar a {
    color: var(--white);
    text-decoration: underline;
}

/* --- Header (Masaüstü Düzeni) --- */
.main-header {
    background: var(--white);
    padding: 20px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 100;
}

.header-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    /* Sol - Orta - Sağ */
    align-items: center;
    gap: 20px;
}

/* Logo */
.site-logo {
    display: flex;
    justify-content: center;
}

.site-logo img {
    max-height: 70px;
}

/* Logo boyutu */
.site-logo-text {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

/* Arama Çubuğu */
.search-wrapper {
    position: relative;
    max-width: 400px;
}

.search-input {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid var(--border);
    border-radius: 50px;
    /* Oval modern görünüm */
    background: var(--bg-light);
    font-family: var(--font-main);
    padding-right: 50px;
}

.search-input:focus {
    border-color: var(--primary);
    outline: none;
    background: var(--white);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: var(--white);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* İkonlar Alanı */
.header-actions {
    display: flex;
    justify-content: flex-end;
    gap: 25px;
}

.icon-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    color: var(--text-light);
    position: relative;
    /* Dropdown için */
}

.icon-box i {
    font-size: 20px;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.icon-box:hover i,
.icon-box:hover span {
    color: var(--primary);
}

/* Sepet Rozeti */
.cart-count {
    position: absolute;
    top: -5px;
    right: 5px;
    background: var(--accent);
    color: var(--white);
    font-size: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* --- Üyelik Dropdown --- */
.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    background: var(--white);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.3s ease;
    z-index: 101;
}

.icon-box:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown a {
    display: block;
    padding: 10px;
    border-radius: 5px;
    color: var(--text-dark);
    font-weight: 500;
    text-align: left;
}

.user-dropdown a:hover {
    background: var(--bg-light);
    color: var(--primary);
}

/* --- Navigasyon (Kategoriler) --- */
.main-nav {
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.nav-list {
    display: flex;
    justify-content: center;
    gap: 30px;
    position: relative;
}

.nav-item {
    padding: 15px 0;
    position: relative;
}

/* Dropdown konumu için */
.nav-link {
    font-weight: 600;
    text-transform: none;
    font-size: 14px;
    letter-spacing: 0.5px;
    padding: 10px 0;
}

.nav-item:hover .nav-link {
    color: var(--primary);
}

/* --- Mega Dropdown --- */
.mega-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 600px;
    /* Geniş menü */
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 20px;
    border-radius: 0 0 8px 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: 0.3s;
    z-index: 99;
    border-top: 3px solid var(--primary);
}

/* Eğer ekran sağından taşarsa diye basit bir düzeltme */
.nav-item:nth-child(n+5) .mega-dropdown {
    left: auto;
    right: 0;
}

.nav-item:hover .mega-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 Sütunlu yapı */
    gap: 10px;
}

.mega-item {
    font-size: 14px;
    color: var(--text-light);
    padding: 5px 0;
}

.mega-item:hover {
    color: var(--primary);
    padding-left: 5px;
}

.see-all-btn {
    grid-column: span 2;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    font-weight: 700;
    color: var(--primary);
}

/* --- Mobil Uyumluluk --- */
/* Masaüstünde mobil elemanları gizle */
.mobile-header-row,
.mobile-search-area,
.mobile-menu-overlay,
.mobile-menu-container {
    display: none;
}

@media (max-width: 992px) {

    /* Masaüstü elemanlarını gizle */
    .header-grid {
        display: none;
    }

    .main-nav {
        display: none;
    }

    /* Mobil Grid */
    .mobile-header-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 0;
    }

    /* Mobil Arama */
    .mobile-search-area {
        display: block;
        padding-bottom: 15px;
    }

    /* Hamburger & İkonlar */
    .mobile-btn {
        font-size: 22px;
        cursor: pointer;
        color: var(--text-dark);
    }

    .mobile-logo img {
        max-height: 50px;
    }

    /* --- Mobil Menü İç Yapısı --- */
    /* Menü stil ayarları (Pozisyonlamayı en alttaki kodlar yönetecek) */
    .mobile-menu-container {
        display: block;
        /* Mobilde aktif olması için */
        padding: 20px;
        overflow-y: auto;
    }

    /* LİSTE YAPISI */
    .mm-list {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mm-list li {
        border-bottom: 1px solid #eee;
    }

    .mm-list>li>div {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .mm-list a {
        display: block;
        padding: 12px 0;
        color: #333;
        font-size: 15px;
        font-weight: 500;
        text-decoration: none;
    }

    /* --- KRİTİK NOKTA: ALT MENÜLER --- */
    .mm-sub {
        display: none;
        /* VARSAYILAN OLARAK GİZLİ */
        list-style: none;
        padding: 0;
        margin: 0;
        background-color: #f9fafb;
        /* Hafif gri arka plan */
        padding-left: 15px;
        border-top: 1px solid #eee;
    }

    .mm-sub li a {
        font-size: 14px;
        color: #666;
        padding: 10px 0;
    }

    /* JavaScript 'active' sınıfını eklediğinde görünür yap */
    .mm-sub {
        display: none;
    }

    .has-sub.active .toggle-sub {
        transform: rotate(180deg);
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(-5px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Ok İkonu */
    .toggle-sub {
        width: 40px;
        height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: #10B981;
        /* Yeşil renk */
        transition: transform 0.3s;
    }

    /* Menü açıkken ok dönsün */
    .has-sub.active .toggle-sub {
        transform: rotate(180deg);
    }
}

/* =========================================
   EKLEMELER (FOOTER & MOBİL MENÜ FİNAL DÜZELTMELERİ)
   ========================================= */

/* --- Main Footer --- */
.main-footer {
    background-color: var(--text-dark);
    /* Koyu Arkaplan */
    color: #9CA3AF;
    /* Gri metin rengi */
    padding-top: 60px;
    margin-top: 50px;
    font-size: 14px;
}

.main-footer a {
    color: #D1D5DB;
    transition: 0.3s;
}

.main-footer a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.widget-title {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

/* Başlık altı çizgi efekti */
.widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 3px;
}

.footer-links li {
    margin-bottom: 12px;
}

/* --- Sosyal Medya Kutuları --- */
.social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.social-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 12px;
    border-radius: 6px;
    color: var(--white) !important;
    font-size: 13px;
    transition: 0.3s;
}

.social-box i {
    font-size: 16px;
}

/* Marka Renkleri */
.social-box.instagram:hover {
    background: #d62976;
}

.social-box.facebook:hover {
    background: #3b5998;
}

.social-box.tiktok:hover {
    background: #000000;
    border: 1px solid #333;
}

.social-box.youtube:hover {
    background: #FF0000;
}

.social-box.x-twitter:hover {
    background: #1da1f2;
}

.social-box.pinterest:hover {
    background: #bd081c;
}

/* --- Footer İletişim --- */
.contact-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    color: #D1D5DB;
}

.contact-info-list i {
    color: var(--primary);
    font-size: 18px;
    margin-top: 3px;
}

.footer-logo-area img {
    max-height: 110px;
    /* Logo boyutu artırıldı */
    width: auto;
    margin-bottom: 15px;
}

/* --- Footer Bottom --- */
.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    margin-top: 40px;
    font-size: 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- Whatsapp Float Button --- */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    left: 25px;
    /* Sol alt köşe */
    background-color: #25D366;
    color: #FFF;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    color: #fff;
    transform: scale(1.1);
}

/* --- KRİTİK MOBİL MENÜ DÜZELTMESİ (SON VE GÜNCEL HALİ) --- */

/* 1. Overlay (Perde) */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
}

/* 2. Menü Kutusu */
.mobile-menu-container {
    position: fixed;
    top: 0;
    left: -320px;
    /* Genişlik kadar dışarıda */
    width: 300px;
    height: 100%;
    background: #fff;
    z-index: 1050;
    /* Overlay'den üstte */
    transition: left 0.3s ease;
    /* Sadece left değeri animasyonlu */
    overflow-y: auto;
    padding: 20px;
    box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
}

/* 3. Aktif Durumlar (Body'e class eklendiğinde) */
body.mobile-menu-active {
    overflow: hidden;
}

/* Arka planı kilitle */

body.mobile-menu-active .mobile-menu-overlay {
    opacity: 1;
    visibility: visible;
}

body.mobile-menu-active .mobile-menu-container {
    left: 0;
    /* İçeri kaydır */
}

/* 4. Menü Linkleri ve Liste */
.mm-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mm-list li {
    border-bottom: 1px solid #f3f4f6;
}

.mm-list a {
    display: block;
    padding: 14px 0;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 15px;
    text-decoration: none;
}

/* Flex yapısı: Link ve Ok ikonu aynı satırda */
.mm-list .d-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 5. Alt Menü (Sub Menu) */
.mm-sub {
    display: none;
    /* jQuery slideToggle bunu yönetecek */
    list-style: none;
    padding: 0;
    background-color: #f9fafb;
    border-radius: 8px;
    margin-bottom: 10px;
}

.mm-sub li {
    border-bottom: 1px solid #eee;
}

.mm-sub li:last-child {
    border-bottom: none;
}

.mm-sub li a {
    padding: 10px 15px;
    font-size: 14px;
    color: #666;
}

.mm-sub li a:hover {
    color: var(--primary);
    padding-left: 20px;
}

/* 6. Ok İkonu ve Animasyonu */
.toggle-sub {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--primary);
    transition: transform 0.3s ease;
    /* Dönme animasyonu */
}

/* Sadece ok işaretini döndür, menü görünürlüğüne karışma! */
.has-sub.active .toggle-sub {
    transform: rotate(180deg);
}

/* Masaüstünde (993px üstü) bu menüyü kesinlikle gizle */
@media (min-width: 993px) {

    .mobile-menu-container,
    .mobile-menu-overlay {
        display: none !important;
    }
}

/* Menü Aktifken Çalışacak Kodlar (JS ile tetiklenir) */
body.mobile-menu-active {
    overflow: hidden;
}

body.mobile-menu-active .mobile-menu-overlay {
    opacity: 1;
    visibility: visible;
    display: block;
}

body.mobile-menu-active .mobile-menu-container {
    left: 0;
}

/* --- Mobil Boşluk Düzeltme --- */
@media (max-width: 768px) {

    /* Ana kapsayıcının üst boşluğunu azalt */
    .container.py-4 {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }

    /* Arama alanının altındaki boşluğu daralt */
    .mobile-search-area {
        padding-bottom: 5px !important;
    }

    /* Gönderim Bölgesi kutusunun etrafındaki boşluklar */
    .top-split-section {
        margin-top: 0 !important;
    }

    .top-split-section .row.g-4 {
        --bs-gutter-y: 1rem;
        /* Bootstrap dikey boşluğunu azalt */
    }

    /* Gönderim Bölgesi başlık alanı */
    .top-split-section .mb-3 {
        margin-bottom: 10px !important;
    }

    /* Hikayeler (Stories) altındaki boşluk */
    .stories-container.mb-4 {
        margin-bottom: 15px !important;
    }

    /* "Saksı Çiçekleri" gibi başlıkların üst boşluğu */
    .seo-headline {
        margin-bottom: 20px !important;
    }

    /* Kartlar arası dikey boşlukları optimize et */
    .row.g-3 {
        --bs-gutter-y: 10px;
    }
}

/* --- Global Mobil Boşluk Düzeltmeleri --- */
@media (max-width: 768px) {

    /* Header ve Arama alanı boşlukları */
    .mobile-search-area {
        padding-bottom: 5px !important;
    }

    /* Bölge kutusu üst boşluğu */
    .top-split-section {
        margin-top: 0 !important;
        padding: 15px !important;
    }

    /* Ürün kartları arası dikey boşluk */
    .row.g-3 {
        --bs-gutter-y: 10px;
    }
}