/*
Theme Name: Kadence Child
Theme URI: https://www.kadencewp.com/
Version: 1.1.1
Description: Child theme for Kadence - Gök Tarım Özel Sürüm (Refactored)
Author: Kadence WP & Gök Tarım Dev
Template: kadence
*/

/* ==========================================================================
   İÇİNDEKİLER
   1.  DEĞİŞKENLER (Variables)
   2.  RESET & TEMEL AYARLAR
   3.  LAYOUT & CONTAINER
   4.  TOP BAR
   5.  ANA HEADER & ARAMA
   6.  MASAÜSTÜ NAVİGASYON & MEGA MENÜ
   7.  MOBİL MENÜ & DRAWER
   8.  YAN SEPET (SIDE CART)
   9.  HERO SLIDER (FLICKITY)
   10. APP LAYOUT (SIDEBAR)
   11. FOOTER
   ========================================================================== */

/* ==========================================================================
   1. DEĞİŞKENLER (Variables)
   ========================================================================== */
:root {
    /* Renk Paleti */
    --gt-green: #1b4d3e;
    --gt-green-dark: #143a2f;
    --gt-gold: #daa520; /* Başak sarısı */
    --gt-dark: #333333;
    --gt-light: #f9f9f9;
    --gt-white: #ffffff;
    --gt-border: #e1e1e1;
    --gt-hover: var(--gt-gold);

    /* Geri Uyumluluk (PHP Inline CSS Desteği) */
    --basak-sarisi: var(--gt-gold);
    --topbar-bg: var(--gt-green);
    --footer-bg-color: var(--gt-green);
    
    /* Tipografi */
    --gt-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --gt-size-top: 13px;
    --gt-size-menu: 14px;

    /* Layout & Spacing */
    --gt-container: 1280px; /* Standartlaştırılmış genişlik */
    --gt-radius: 50px;
    --gt-spacing-sm: 10px;
    --gt-spacing-md: 20px;
    --gt-spacing-lg: 30px;

    /* Efektler */
    --gt-transition: 0.3s ease; /* Standart süre */

    /* Z-Index Hiyerarşisi (Katman Yönetimi) */
    --z-back: -1;
    --z-normal: 1;
    --z-header: 100;
    --z-topbar: 101;
    --z-dropdown: 200;
    --z-overlay: 900;
    --z-drawer: 1000;
    --z-modal: 2000;
}

/* ==========================================================================
   2. RESET & TEMEL AYARLAR
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
    font-family: var(--gt-font-family);
    color: var(--gt-dark);
    margin: 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--gt-transition), background-color var(--gt-transition);
}

/* Erişilebilirlik (Focus Yönetimi) */
:focus-visible {
    outline: 2px solid var(--gt-gold);
    outline-offset: 2px;
}

/* ==========================================================================
   3. LAYOUT & CONTAINER
   ========================================================================== */
/* Tüm site için tek ve güçlü container tanımı */
.gok-container,
.container,
.content-container,
.site-container,
.alignwide {
    max-width: var(--gt-container) !important;
    width: 100%;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: var(--gt-spacing-md);
    padding-right: var(--gt-spacing-md);
}

/* Hero Slider İçin Özel Kapsayıcı */
.hero-slider .inner .gok-container {
    max-width: var(--gt-container);
    padding: 0 var(--gt-spacing-md);
}

/* ==========================================================================
   4. TOP BAR
   ========================================================================== */
.gok-top-bar {
    background-color: #ffffff !important;
    color: var(--gt-white);
    font-size: var(--gt-size-top);
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: var(--z-topbar);
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-right {
    display: flex;
    align-items: center;
    gap: var(--gt-spacing-md);
}

.top-right i {
    color: var(--gt-gold);
    margin-right: 5px;
}

/* ==========================================================================
   5. ANA HEADER & ARAMA
   ========================================================================== */
.gok-main-header {
    background: var(--gt-white);
    padding: 15px 0;
    position: relative;
    z-index: var(--z-header);
    width: 100%;
    transition: transform var(--gt-transition);
}

/* Sticky Header - JS ile .sticky class'ı eklendiğinde çalışır */
.gok-main-header.sticky {
    position: fixed;
    top: 0;
    left: 0;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: nowrap;
}

/* Logo */
.header-logo {
    flex-shrink: 0;
    z-index: 2;
}

.header-logo img {
    max-height: 60px;
    width: auto;
    display: block;
}

/* Arama Grubu */
.header-search {
    flex-grow: 1;
    max-width: 600px;
}

.search-group {
    display: flex;
    border: 2px solid var(--gt-border);
    border-radius: var(--gt-radius);
    overflow: hidden;
    background: var(--gt-light);
    transition: border-color var(--gt-transition), box-shadow var(--gt-transition);
}

.search-group:focus-within {
    border-color: var(--gt-gold);
    background: var(--gt-white);
    box-shadow: 0 0 0 3px rgba(218, 165, 32, 0.1);
}

.search-field {
    border: none;
    padding: 12px 20px;
    width: 100%;
    outline: none;
    background: transparent;
    font-size: 15px;
    color: var(--gt-dark);
}

.search-submit {
    background: var(--gt-green);
    border: none;
    width: 50px;
    color: var(--gt-white);
    font-size: 18px;
    cursor: pointer;
    transition: background-color var(--gt-transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-submit:hover {
    background: var(--gt-gold);
}

.search-submit:focus-visible {
    outline: 2px solid var(--gt-dark);
    outline-offset: -2px;
}

/* Sağ Aksiyonlar */
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

/* Giriş Butonu */
.login-btn {
    display: flex;
    align-items: center; /* align_items hatası düzeltildi */
    gap: 8px;
    background: var(--gt-green);
    color: var(--gt-white) !important;
    padding: 10px 25px;
    border-radius: var(--gt-radius);
    font-weight: 600;
    font-size: 14px;
    /* will-change kaldırıldı (gereksiz yük) */
}

.login-btn:hover {
    background: var(--gt-gold);
    transform: translateY(-2px);
}

/* İkon Butonlar */
.icon-btn {
    font-size: 22px;
    color: var(--gt-dark);
    position: relative;
    padding: 5px;
}

.icon-btn:hover {
    color: var(--gt-gold);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -8px;
    background: var(--gt-gold);
    color: var(--gt-white);
    font-size: 11px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid var(--gt-white);
}

/* ==========================================================================
   6. MASAÜSTÜ NAVİGASYON & MEGA MENÜ
   ========================================================================== */
.gok-navbar-desktop {
    background: var(--gt-white);
    border-top: 1px solid rgba(0,0,0,0.05);
    position: relative;
    z-index: 90; /* Header'ın altında */
}

.gok-navbar-desktop .gok-container {
    position: relative;
}

.gok-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
}

.gok-menu > li > a {
    color: var(--gt-dark);
    font-weight: 600;
    text-transform: uppercase;
    padding: 15px 0;
    display: block;
    font-size: var(--gt-size-menu);
    position: relative;
}

.gok-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gt-gold);
    transition: width 0.3s ease;
}

.gok-menu > li:hover > a::after {
    width: 100%;
}

/* --- MEGA MENÜ --- */
.gok-menu > li.mega-menu {
    position: static;
}

.gok-menu > li ul.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-width: var(--gt-container); /* Genişlik taşması engellendi */
    left: 50%;
    transform: translateX(-50%) translateY(10px); /* Ortala ve efekt başlangıcı */
    background: var(--gt-white);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    z-index: var(--z-dropdown);
    padding: 0;
    border-top: 3px solid var(--gt-gold);
    display: flex;
}

.gok-menu li:hover > ul.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Mega Menü İçerik Yapısı */
.mega-menu-links {
    flex: 3;
    padding: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-content: flex-start; /* align-content düzeltildi */
}

.mega-menu-links li {
    width: 45%;
    list-style: none;
}

.mega-menu-links a {
    font-weight: bold;
    color: var(--gt-green);
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
    display: block;
    margin-bottom: 5px;
}

.mega-menu-links a:hover {
    color: var(--gt-gold);
}

/* Mega Menü Önizleme (Sağ Taraf) */
.mega-menu-preview {
    flex: 1;
    background: #f4f4f4;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center; /* justify-content düzeltildi */
    border-left: 1px solid #eee;
    min-height: 300px;
}

.mega-menu-preview img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.mega-menu-preview img.visible {
    opacity: 1;
}

/* ==========================================================================
   7. MOBİL MENÜ & DRAWER
   ========================================================================== */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gt-dark);
    padding: 5px;
}

/* Mobil Drawer (Çekmece) */
.mobile-drawer {
    position: fixed;
    top: 0;
    left: -320px;
    width: 300px;
    height: 100vh;
    background: var(--gt-white);
    z-index: var(--z-drawer);
    box-shadow: 5px 0 15px rgba(0,0,0,0.1);
    transition: transform 0.3s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
}

.mobile-drawer.active {
    transform: translateX(320px);
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: var(--z-overlay);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobil Arama */
.mobile-search-box {
    padding: 15px 20px;
    background: var(--gt-light);
    border-bottom: 1px solid var(--gt-border);
    flex-shrink: 0;
}

.mobile-search-form {
    display: flex;
    position: relative;
}

.mobile-search-input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.mobile-search-btn {
    position: absolute;
    right: 5px;
    top: 5px;
    background: var(--gt-green);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobil Menü Listesi */
.mobile-menu-scroll-area {
    flex-grow: 1;
    overflow-y: auto;
    padding-bottom: 20px;
}

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-list li {
    border-bottom: 1px solid #f1f1f1;
    position: relative;
}

.mobile-nav-list > li > a {
    padding: 15px 20px;
    display: block;
    color: var(--gt-dark);
    font-weight: 500;
}

/* Mobil Alt Menü */
.mobile-nav-list .sub-menu {
    display: none;
    background: #fafafa;
    padding: 0;
    list-style: none;
    border-top: 1px solid #eee;
}

.mobile-nav-list li.submenu-open > .sub-menu {
    display: block;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.mobile-nav-list .sub-menu a {
    padding: 12px 20px 12px 40px;
    font-size: 14px;
    color: #555;
}

/* Mobil Expand (Açma) Butonu */
.mobile-expand-btn {
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 50px; /* Sabit yükseklik */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-left: 1px solid #f5f5f5;
    color: var(--gt-green);
    z-index: 2;
}

.mobile-nav-list li.submenu-open > a + .mobile-expand-btn i {
    transform: rotate(180deg);
}

/* Mobil İletişim Footer */
.mobile-contact-info {
    flex-shrink: 0;
    padding: 20px;
    background: var(--gt-light);
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.m-contact-item {
    flex: 1;
    text-align: center;
    padding: 10px 5px;
    background: var(--gt-green);
    color: #fff !important;
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* --- RESPONSIVE HEADER DÜZENİ --- */
@media (max-width: 991px) {
    .gok-navbar-desktop { display: none; }
    
    .top-bar-inner {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    .top-right { justify-content: center; }

    .header-inner {
        flex-wrap: wrap;
        gap: 15px;
    }

    .mobile-toggle {
        display: block;
        order: 1;
        flex: 0 0 auto;
    }

    .header-logo {
        order: 2;
        flex: 1;
        text-align: center;
        display: flex;
        justify-content: center;
    }
    .header-logo img { max-height: 40px; }

    .header-actions {
        order: 3;
        flex: 0 0 auto;
    }
    
    .login-btn span { display: none; }
    .login-btn { padding: 8px; border-radius: 50%; }

    /* Mobilde Header içindeki arama çubuğunu gizle (Drawer'dakini kullanacağız) */
    .gok-main-header .header-search {
        display: none; 
    }
}

@media (min-width: 992px) {
    .mobile-drawer, .mobile-overlay { display: none; }
}

/* ==========================================================================
   8. YAN SEPET (SIDE CART)
   ========================================================================== */
.side-cart-drawer {
    position: fixed;
    top: 0;
    right: -350px;
    width: 320px;
    height: 100%;
    background: var(--gt-white);
    z-index: var(--z-drawer); /* Drawer ile aynı seviye */
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: transform 0.3s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
}

.side-cart-drawer.active {
    transform: translateX(-350px);
}

.side-cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: var(--z-overlay);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.side-cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.side-cart-header {
    background: var(--gt-green);
    color: var(--gt-white);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
}

.side-cart-close-btn {
    background: none;
    border: none;
    color: var(--gt-white);
    font-size: 20px;
    cursor: pointer;
}

.side-cart-content {
    padding: 20px;
    overflow-y: auto;
    height: 100%;
}

/* WooCommerce Widget Styles */
.widget_shopping_cart_content ul.cart_list li {
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.widget_shopping_cart_content img {
    width: 60px;
    height: auto;
    border-radius: 5px;
}
.widget_shopping_cart_content .total {
    border-top: 2px solid #eee;
    padding: 15px 0;
    font-weight: bold;
    color: var(--gt-green);
    display: flex; 
    justify-content: space-between;
}
.widget_shopping_cart_content .buttons a {
    display: block;
    text-align: center;
    margin-bottom: 10px;
    padding: 12px;
    border-radius: 30px;
    font-weight: bold;
}
.widget_shopping_cart_content .buttons .checkout {
    background: var(--gt-green);
    color: #fff !important;
}
.widget_shopping_cart_content .buttons .checkout:hover {
    background: var(--gt-gold);
}

/* ==========================================================================
   9. HERO SLIDER (FLICKITY)
   ========================================================================== */
.hero-slider {
    width: 100%;
    height: 100vh;
    min-height: 430px;
    max-height: 530px; /* Çok büyük ekranlarda sınırlama */
    overflow: hidden;
    position: relative;
    background: #000;
}

.carousel-cell {
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.carousel-cell .overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient( to bottom, rgba(27, 77, 62, 0.3), rgba(0, 0, 0, 0.7) );
    z-index: 1;
}

.carousel-cell .inner {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    z-index: 2;
    padding: 0 20px;
}

.carousel-cell .subtitle {
    font-family: var(--gt-font-family);
    font-size: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--gt-gold);
    margin-bottom: 15px;
    display: block;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.carousel-cell .title {
    font-family: var(--gt-font-family);
    font-size: 4rem;
    line-height: 1.1em;
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.carousel-cell .desc {
    font-size: 1.1rem;
    max-width: 600px;
    margin-bottom: 35px;
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
    display: inline-block;
}

.btn-hero {
    border: 2px solid var(--gt-gold);
    background: var(--gt-gold);
    padding: 15px 35px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
    color: #fff;
    border-radius: 50px;
    display: inline-block;
    transition: all .3s ease;
}

.btn-hero:hover {
    background: transparent;
    color: var(--gt-gold);
}

/* Flickity Navigasyon */
.flickity-prev-next-button {
    width: 70px;
    height: 70px;
    background: rgba(253, 251, 247, 0.9);
    border: 2px solid #fff;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    z-index: 10;
}

.flickity-prev-next-button.previous { left: 40px; }
.flickity-prev-next-button.next { right: 40px; }

.flickity-prev-next-button .arrow {
    fill: var(--gt-green);
    width: 24px;
    height: 24px;
}

.flickity-prev-next-button:hover {
    background: #fff;
    border-color: var(--gt-gold);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 25px rgba(218, 165, 32, 0.4);
}

.flickity-prev-next-button:hover .arrow {
    fill: var(--gt-gold);
}

.flickity-page-dots {
    bottom: 30px;
}
.flickity-page-dots .dot {
    width: 12px;
    height: 12px;
    opacity: 1;
    background: rgba(255,255,255,0.3);
    margin: 0 8px;
    transition: 0.3s;
}
.flickity-page-dots .dot.is-selected {
    background: var(--gt-gold);
    transform: scale(1.3);
}

@media (max-width: 768px) {
    .carousel-cell .title { font-size: 2.5rem; }
    .hero-slider { height: 600px; }
    .flickity-prev-next-button { width: 50px; height: 50px; }
    .flickity-prev-next-button.previous { left: 10px; }
    .flickity-prev-next-button.next { right: 10px; }
}

/* ==========================================================================
   10. APP LAYOUT (SIDEBAR)
   ========================================================================== */
.gok-app-layout {
    display: flex;
    width: 100%;
    min-height: 100vh;
    background-color: #ffffff !important;
    background: #ffffff !important;

}

.gok-sidebar {
    width: 90px;
    height: 100vh;
    position: sticky;
    top: 0;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    z-index: 100;
    flex-shrink: 0;
border-right: none !important; /* O ince dikey çizgiyi kaldırır */
    box-shadow: none !important;   /* O gri bulanık gölgeyi kaldırır */
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
    margin-top: 20px;
    overflow-y: auto;
}

.sidebar-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 15px 5px;
    transition: 0.2s;
    border-left: 3px solid transparent;
}

.sidebar-link:hover {
    background: #fff8e1;
    border-left-color: var(--gt-gold);
}

.sidebar-link .s-icon {
    font-size: 24px;
    color: #333;
    margin-bottom: 5px;
    transition: 0.2s;
}

.sidebar-link .s-label {
    font-size: 11px;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    text-align: center;
}

.sidebar-link:hover .s-icon {
    color: var(--gt-gold);
    transform: translateY(-2px);
}

.sidebar-bottom { margin-top: auto; }

.mini-home-btn {
    width: 50px; height: 50px;
    background: var(--gt-gold);
    color: #fff;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(218, 165, 32, 0.4);
}

.gok-main-panel {
    flex: 1; /* Esnek alan */
    width: 100%; /* Mevcut alanın tamamını kapla */
    max-width: 1600px; /* EN ÖNEMLİ KISIM: Genişliği 1600px ile sınırla */
    margin: 0 auto; /* Eğer ekran çok genişse paneli ortala */
    display: flex;
    flex-direction: column;
    position: relative;
    background: #fff; /* İçerik zemini beyaz olsun */
}

.gok-main-panel > header,
.gok-main-panel > .hero-slider,
.gok-main-panel > #wrapper,
.gok-main-panel > footer {
    width: 100%;
}

@media (max-width: 991px) {
    .gok-sidebar { display: none; }
    .gok-main-panel { width: 100%; }
}

/* ==========================================================================
   11. FOOTER
   ========================================================================== */
.site-footer {
    padding: 70px 0 0 0;
    font-size: 15px;
    line-height: 1.6;
    position: relative;
    background: linear-gradient(115deg, #ffffff 50%, var(--footer-bg-color) 50.1%);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 60px;
}

.footer-widget h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer-widget h3::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 40px; height: 3px;
}

/* Sol Taraf (Beyaz Zemin) */
.footer-widget.brand-widget,
.footer-widget.links-widget {
    color: #444; 
}

.footer-widget.brand-widget h3,
.footer-widget.links-widget h3 {
    color: var(--gt-green); 
}
.footer-widget.brand-widget h3::after,
.footer-widget.links-widget h3::after {
    background: var(--gt-green); 
}

.footer-logo {
    max-height: 50px;
    margin-bottom: 20px;
}

.footer-socials {
    display: flex; gap: 15px;
}
.footer-socials a {
    width: 36px; height: 36px;
    background: #f0f0f0;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
    color: var(--gt-green);
}
.footer-socials a:hover {
    background: var(--gt-gold);
    color: #fff;
    transform: translateY(-3px);
}

.links-widget ul {
    list-style: none; padding: 0; margin: 0;
}
.links-widget li {
    margin-bottom: 12px;
}
.links-widget a:hover {
    color: var(--gt-gold);
    padding-left: 5px;
}

/* Sağ Taraf (Yeşil Zemin) */
.footer-widget.contact-widget,
.footer-widget.newsletter-widget {
    color: #fff;
}

.footer-widget.contact-widget h3,
.footer-widget.newsletter-widget h3 {
    color: #fff;
}
.footer-widget.contact-widget h3::after,
.footer-widget.newsletter-widget h3::after {
    background: var(--gt-gold);
}

.contact-list {
    list-style: none; padding: 0; margin: 0;
}
.contact-list li {
    display: flex; gap: 15px;
    margin-bottom: 15px;
    opacity: 0.9;
    color: #fff;
}
.contact-list i {
    color: var(--gt-gold);
    margin-top: 5px;
}

/* Bülten Formu */
.footer-newsletter-form {
    display: flex;
    background: rgba(255,255,255,0.1);
    padding: 5px;
    border-radius: 50px;
    margin-top: 20px;
    border: 1px solid rgba(255,255,255,0.2);
}
.footer-newsletter-form input {
    background: transparent;
    border: none;
    color: #fff;
    padding: 10px 15px;
    width: 100%;
    outline: none;
}
.footer-newsletter-form input::placeholder {
    color: rgba(255,255,255,0.7);
}
.footer-newsletter-form button {
    background: var(--gt-gold);
    border: none;
    width: 40px; height: 40px;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
}
.footer-newsletter-form button:hover {
    background: #fff; color: var(--gt-green);
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    background: rgba(0,0,0,0.2);
    color: rgba(255,255,255,0.7);
}

/* Footer Responsive */
@media (max-width: 991px) {
    .site-footer {
        background: linear-gradient(180deg, #ffffff 40%, var(--footer-bg-color) 40.1%);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 576px) {
    .site-footer {
        background: linear-gradient(180deg, #ffffff 35%, var(--footer-bg-color) 35.1%);
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-widget h3::after {
        left: 0;
    }
}
.gok-sidebar {
    /* 1. Sağdaki gri çizgiyi tamamen kaldırıyoruz ki sadece ışık kalsın */
    border-right: none !important;

    /* 2. Başak Sarısı (Gold) Efekt
       Mantık: 10px sağa kaydır, 0px yukarı/aşağı, 40px bulanıklaştır (yumuşak geçiş)
       Renk: Altın sarısı (#daa520) ama %25 opaklıkta (rgba) ki gözü yormasın.
    */
    box-shadow: 10px 0 40px rgba(218, 165, 32, 0.25) !important;
    
    /* 3. Z-index ayarı: Gölgenin içeriğin (beyaz alanın) üzerine düşmesi için */
    z-index: 1000; 
    position: sticky; /* Zaten vardı ama emin olmak için */
}

/* Opsiyonel: Sidebar içindeki linklerin üzerine gelince de hafif sarı parlasın */
.sidebar-link:hover {
    background: linear-gradient(to right, rgba(218, 165, 32, 0.1), transparent);
    border-left-color: var(--gt-gold);
}
/* ==========================================================================
   SIDEBAR MENÜ DİKEY ORTALAMA
   ========================================================================== */

/* 1. Sidebar Ana Yapısı */
.gok-sidebar {
    display: flex;
    flex-direction: column;
    height: 100vh;
    /* justify-content ayarını sıfırlıyoruz ki elemanlar serbest kalsın */
    justify-content: normal !important; 
}

/* 2. Menü Listesi (Navigasyon) - ORTALAMA İŞLEMİ BURADA */
.sidebar-nav {
    /* Sihirli Dokunuş: Hem üstten hem alttan "auto" margin verirsen 
       Flexbox bu öğeyi dikey eksende tam ortaya iter. */
    margin-top: auto !important;
    margin-bottom: auto !important;

    /* Diğer ayarlar */
    flex-grow: 0; /* Gereksiz yere uzamasın, içeriği kadar yer kaplasın */
    width: 100%;
    
    /* Eğer menü çok uzarsa ekranın dışına taşmasın, kaydırma çubuğu çıksın */
    max-height: calc(100vh - 160px); /* Üst logo ve alt buton için pay bıraktık */
    overflow-y: auto;
    
    /* Scrollbar'ı gizleyelim (şık dursun) */
    scrollbar-width: none; /* Firefox */
}
.sidebar-nav::-webkit-scrollbar { 
    display: none; /* Chrome/Safari */
}

/* 3. Alt Kısım (Sidebar Bottom) Sabitleme */
.sidebar-bottom {
    /* Daha önceki margin-top: auto ayarını sıfırlıyoruz */
    margin-top: 0 !important;
    padding-bottom: 30px; /* En alta yapışmasın, biraz boşluk */
    flex-shrink: 0; /* Asla küçülmesin */
}

/* 4. Üst Kısım (Sidebar Top / Logo) Sabitleme */
.sidebar-top {
    padding-top: 30px; /* En üste yapışmasın */
    flex-shrink: 0;
}
/* ==========================================================================
   MOBİL SIDEBAR: FIXED (KESİN YAPIŞKAN) & BOŞLUKSUZ
   ========================================================================== */

@media (max-width: 991px) {
    
    /* 1. App Layout Yapısı */
    .gok-app-layout {
        display: block !important; /* Flex yerine blok yapalım ki fixed çalışsın */
        padding-top: 60px !important; /* Sidebar yüksekliği kadar üstten boşluk bırak */
    }

    /* 2. Sidebar (Mobilde Üst Menü) - FIXED YAPIYORUZ */
    .gok-sidebar {
        /* Sticky yerine Fixed kullanıyoruz - %100 Çalışır */
        position: fixed !important; 
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 60px !important;
        z-index: 99999 !important; /* En üstte */
        
        /* Görünüm */
        background: #ffffff !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center;
        justify-content: space-between;
        padding: 0 10px !important;
        
        /* Boşlukları ve Çizgileri Sıfırla */
        margin-bottom: 0 !important;
        border-right: none !important;
        border-bottom: 1px solid rgba(0,0,0,0.05) !important; /* İnce ayırıcı çizgi */
        box-shadow: 0 2px 10px rgba(0,0,0,0.03) !important; /* Hafif gölge */
    }

    /* 3. Eski Top Bar'ı Gizle (Boşluk Yaratmasın) */
    .gok-top-bar {
        display: none !important;
    }

    /* 4. Ana Header (Logo ve Burger Menü) */
    .gok-main-header {
        margin-top: 0 !important; /* Yukarıdaki boşluğu sil */
        padding-top: 15px !important;
        position: relative !important;
        background: #ffffff !important;
        z-index: 999 !important;
        /* Sidebar'ın hemen altına yapışsın */
    }

    /* 5. Menü İtemleri (Yatay) */
    .sidebar-nav {
        flex-direction: row !important;
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        gap: 0 !important;
        justify-content: space-around !important;
        align-items: center;
        overflow: hidden;
    }

    /* 6. Link Tasarımı */
    .sidebar-link {
        flex-direction: column !important;
        justify-content: center !important;
        height: 100% !important;
        padding: 0 5px !important;
        background: transparent !important;
        border: none !important;
        border-bottom: 3px solid transparent !important; /* Hover çizgisi */
        border-radius: 0 !important;
    }

    .sidebar-link:active {
        background-color: rgba(0,0,0,0.02) !important;
    }

    .sidebar-link .s-icon {
        font-size: 20px !important;
        margin-bottom: 3px !important;
        color: var(--gt-green);
    }
    
    .sidebar-link .s-label {
        font-size: 9px !important;
        font-weight: 600;
        display: block !important;
        line-height: 1;
        color: #333;
    }

    /* Gereksizleri Gizle */
    .sidebar-top, 
    .sidebar-bottom {
        display: none !important;
    }

    /* İçerik Paneli */
    .gok-main-panel {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        border: none !important;
        box-shadow: none !important;
    }
    
    /* Eğer Admin Bar varsa (WordPress giriş yaptıysan) Sidebar'ı aşağı it */
    body.admin-bar .gok-sidebar {
        top: 32px !important;
    }
    body.admin-bar .gok-app-layout {
        padding-top: 92px !important; /* 60px sidebar + 32px admin bar */
    }
}

/* ================= GÜVEN BANDI (TRUST BANNER) TASARIMI ================= */

.gok-trust-band {
    background-color: #ffffff;
    padding: 40px 0;
    border-bottom: 1px solid #e0e0e0;
    width: 100%;
    clear: both;
}

/* Izgara Düzeni (Zorunlu Flexbox ile Yan Yana) */
.trust-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    gap: 20px !important;
}

/* Her Bir Güven Maddesi (4'e böl) */
.trust-item {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    padding: 15px !important;
    border-radius: 8px !important;
    background: transparent;
    transition: 0.3s ease;
    flex: 1 1 calc(25% - 20px) !important; /* Ekranı 4 eşit parçaya böler */
    min-width: 220px !important; /* Çok küçülmesini engeller */
}

.trust-item:hover {
    background-color: #f9f9f9 !important;
}

/* İkonlar */
.trust-item .t-icon {
    font-size: 38px !important;
    color: var(--gt-gold, #daa520) !important;
    transition: 0.3s ease;
    flex-shrink: 0 !important; /* İkonun ezilmesini önler */
}

.trust-item:hover .t-icon {
    transform: scale(1.15) rotate(-5deg);
    color: var(--gt-green, #1b4d3e) !important;
}

/* Metinler */
.trust-item .t-text {
    display: flex !important;
    flex-direction: column !important;
}

.trust-item .t-text h4 {
    font-size: 15px !important;
    font-weight: 800 !important;
    color: var(--gt-dark, #333) !important;
    margin: 0 0 5px 0 !important;
    text-transform: uppercase;
    line-height: 1.2 !important;
}

.trust-item .t-text p {
    font-size: 13px !important;
    color: #666 !important;
    margin: 0 !important;
    line-height: 1.4 !important;
}

/* --- MOBİL UYUMLULUK --- */
@media (max-width: 991px) {
    /* Tablette 2 Sütun */
    .trust-item {
        flex: 1 1 calc(50% - 20px) !important;
    }
}

@media (max-width: 576px) {
    /* Telefondan girilince Alt Alta Tek Sütun */
    .gok-trust-band {
        padding: 25px 0 !important;
    }
    .trust-item {
        flex: 1 1 100% !important;
        padding: 10px !important;
    }
}

/* ================= ANASAYFA KATEGORİLER ================= */
.gkt-home-categories {
    padding: 70px 0;
    background-color: #f4f6f5; /* Hafif kirli/endüstriyel beyaz arka plan */
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--gt-green);
    margin: 0 0 10px 0;
    text-transform: uppercase;
}

.section-title p {
    color: #666;
    font-size: 15px;
    margin: 0;
}

.gkt-category-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* 3 tane varsa ekranın tam ortasına alır */
    gap: 30px;
}

/* Kart Tasarımı */
.gkt-cat-card {
    flex: 1 1 calc(25% - 30px); /* 4 sütun genişliğinde esnemesini sağlar */
    max-width: 320px; /* 3 resim olduğunda devasa büyümesini engeller */
    min-width: 260px; /* Mobilden önce kartın çok daralmasını engeller */
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: all var(--gt-transition);
    display: flex;
    flex-direction: column;
}

.gkt-cat-card:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    transform: translateY(-5px);
    border-color: var(--gt-gold);
}

.gkt-cat-image {
    width: 100%;
    height: 220px; /* Görselleri aynı hizada tutmak için sabit yükseklik */
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gkt-cat-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #fcfcfc; /* Resim yoksa arkası hafif gri dursun */
    display: flex;
    align-items: center;
    justify-content: center;
}

.gkt-cat-card:hover .gkt-cat-image img {
    transform: scale(1.08); /* Yumuşak zoom efekti */
}

/* Kategori Bilgi Paneli (Alt Kısım) */
.gkt-cat-content {
    padding: 20px;
    background: var(--gt-green); /* Temamızın ana yeşili */
    text-align: center;
    position: relative;
    transition: background var(--gt-transition);
}

/* Üzerine gelince Altın Sarısı olsun */
.gkt-cat-card:hover .gkt-cat-content {
    background: var(--gt-gold);
}

.gkt-cat-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px 0 !important;
    color: #fff !important;
    transition: color var(--gt-transition);
}

.gkt-cat-count {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: color var(--gt-transition);
}

/* Hover durumunda yazıları okunabilir kılmak için koyult */
.gkt-cat-card:hover .gkt-cat-title,
.gkt-cat-card:hover .gkt-cat-count {
    color: var(--gt-dark) !important;
}

/* Mobil Uyumluluk */
@media (max-width: 991px) {
    .gkt-category-grid {
        grid-template-columns: repeat(2, 1fr); /* Tablette 2'li */
    }
}

@media (max-width: 576px) {
    .gkt-category-grid {
        grid-template-columns: 1fr; /* Telefonda alt alta tekli */
    }
    .gkt-cat-image {
        height: 180px; /* Telefonda resmi biraz daralt */
    }
}
/* ================= ÖNE ÇIKAN ÜRÜNLER (MODERN YATAY SLIDER) ================= */

/* 1. Mobil Varsayılan & Taşıyıcılar (Önce bu) */
.gkt-featured-products {
    padding: 50px 0;
    background-color: #ffffff;
    overflow: hidden; /* Sayfanın sağa sola taşmasını engeller */
}

/* Kaydırma İpucu (Animasyonlu) */
.gkt-swipe-hint {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gt-gold);
    margin-bottom: 15px;
    animation: swipePulse 2s infinite;
}

@keyframes swipePulse {
    0% { opacity: 0.6; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(-5px); } /* Hafif sola hareket efekti */
    100% { opacity: 0.6; transform: translateX(0); }
}

/* 2. WooCommerce Ürün Izgarasını Mobilde Slider'a Çevirme (Sihir Burada) */
@media (max-width: 991px) {
    .gkt-products-wrapper ul.products {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        scroll-snap-type: x mandatory; /* Kartların ortalanarak durmasını sağlar */
        gap: 15px !important;
        margin: 0 -20px !important; /* Konteyner dışına taşır ki ekranın tam kenarına değsin */
        padding: 0 20px 20px 20px !important; /* Gölge payı ve ilk/son eleman boşluğu */
        -webkit-overflow-scrolling: touch; /* iOS'ta akıcı kaydırma (momentum) */
        scrollbar-width: none; /* Firefox için scrollbar gizleme */
    }
    
    /* Chrome/Safari için çirkin scrollbar'ı gizle */
    .gkt-products-wrapper ul.products::-webkit-scrollbar {
        display: none;
    }

    /* Ürün Kartı Genişliği - %75 yaparak yandaki kartın ucunu gösteririz */
    .gkt-products-wrapper ul.products li.product {
        flex: 0 0 75% !important; 
        max-width: 280px !important;
        scroll-snap-align: center; /* Kaydırma bitince kartı ekranın ortasına mıknatısla */
        margin: 0 !important; /* Normal WooCommerce boşluklarını ezer */
    }
}

/* 3. Buton Stilleri (Mobile-First) */
.gkt-all-products-btn {
    text-align: center;
    margin-top: 20px;
}

.gkt-all-products-btn .btn-hero {
    display: block; 
    width: 100%;
    background-color: transparent;
    color: var(--gt-green);
    border-color: var(--gt-green);
}

.gkt-all-products-btn .btn-hero:hover {
    background-color: var(--gt-green);
    color: #ffffff !important;
}

/* 4. Masaüstü Genişletmesi (Sonra bu) */
@media (min-width: 992px) {
    .gkt-featured-products {
        padding: 80px 0;
    }
    
    /* Masaüstünde zaten 4'lü grid olduğu için kaydırma uyarısına gerek yok */
    .gkt-swipe-hint {
        display: none; 
    }
    
    .gkt-all-products-btn .btn-hero {
        display: inline-block; 
        width: auto;
    }
}
/* ================= TEKNİK SERVİS CTA BÖLÜMÜ ================= */

/* Mobil Varsayılan (Önce bu - Alt Alta) */
.gkt-service-cta {
    background-color: var(--gt-green);
    padding: 50px 0;
    color: #ffffff;
    text-align: center; /* Mobilde yazılar ve buton ortada dursun */
}

.cta-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.cta-text h2 {
    color: #ffffff !important; /* Temanın başlık rengini ezmek için */
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 12px 0;
}

.cta-text p {
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    opacity: 0.9;
}

/* Buton Mobilde Tam Genişlik */
.cta-btn {
    width: 100%;
}

.cta-btn .btn-hero {
    background-color: var(--gt-gold);
    border-color: var(--gt-gold);
    color: #ffffff;
    display: block;
    width: 100%;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15); /* Butonu arka plandan koparıp öne çıkarır */
}

.cta-btn .btn-hero i {
    margin-left: 8px;
}

.cta-btn .btn-hero:hover {
    background-color: #ffffff;
    color: var(--gt-green) !important;
    border-color: #ffffff;
    transform: translateY(-3px);
}

/* Masaüstü Genişletmesi (Sonra bu - Yan Yana) */
@media (min-width: 768px) {
    .gkt-service-cta {
        padding: 70px 0;
        text-align: left; /* Masaüstünde sola yasla */
    }

    .cta-inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .cta-text {
        flex: 1; /* Yazı alanı bulabildiği kadar yeri kaplasın */
        padding-right: 40px; /* Butonla arasına mesafe koy */
    }

    .cta-text h2 {
        font-size: 32px;
    }

    /* Buton Masaüstünde Küçülsün */
    .cta-btn {
        width: auto;
        flex-shrink: 0; /* Buton daralmasın, kendi boyutunda kalsın */
    }

    .cta-btn .btn-hero {
        display: inline-block;
        width: auto;
        padding: 18px 40px;
        font-size: 16px;
    }
}
/* ================= NEDEN BİZ? (AVANTAJLAR) BÖLÜMÜ ================= */

/* Mobil Varsayılan (Önce bu) */
.gkt-why-us {
    padding: 60px 0;
    background-color: #f9fbf9; /* CTA yeşili ile Footer arasında yumuşak bir geçiş zemini */
}

.why-us-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.why-us-card {
    background: #ffffff;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    transition: transform var(--gt-transition), box-shadow var(--gt-transition);
}

.why-us-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(27, 77, 62, 0.1); /* Ana yeşilin çok hafif gölgesi */
}

.wu-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(218, 165, 32, 0.1); /* Sarının çok şeffaf hali */
    color: var(--gt-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 20px auto;
    transition: all var(--gt-transition);
}

.why-us-card:hover .wu-icon {
    background-color: var(--gt-green);
    color: #ffffff;
}

.wu-content h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gt-dark);
    margin: 0 0 10px 0;
}

.wu-content p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin: 0;
}

/* Tablet Genişletmesi (2 Sütun) */
@media (min-width: 768px) {
    .why-us-grid {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .why-us-card {
        flex: 1 1 calc(50% - 30px);
    }
}

/* Masaüstü Genişletmesi (4 Sütun) */
@media (min-width: 992px) {
    .gkt-why-us {
        padding: 90px 0;
    }

    .why-us-card {
        flex: 1 1 calc(25% - 30px);
    }
}
/* ================= İNDİRİMLİ ÜRÜNLER BÖLÜMÜ ================= */

/* Mobil Varsayılan (Önce bu) */
.gkt-sale-products {
    padding: 50px 0;
    background-color: #fffdf5; /* İndirim hissiyatı veren çok uçuk sıcak sarı/krem zemin */
    border-top: 1px solid rgba(218, 165, 32, 0.2);
    border-bottom: 1px solid rgba(218, 165, 32, 0.2);
    overflow: hidden;
}

/* İndirim Bölümü Başlık Özel Rengi */
.gkt-sale-products .section-title h2 {
    color: #D32F2F; /* Tehlike/Aciliyet hissi veren kırmızı */
}

/* İndirim Butonu Özel Tasarımı */
.btn-hero.btn-sale {
    border-color: #D32F2F;
    color: #D32F2F;
}

.btn-hero.btn-sale:hover {
    background-color: #D32F2F;
    color: #ffffff !important;
    border-color: #D32F2F !important;
}

/* Masaüstü Genişletmesi (Sonra bu) */
@media (min-width: 992px) {
    .gkt-sale-products {
        padding: 80px 0;
    }
}