/*
Theme Name: Hobis E-Ticaret
Description: Yüksek performanslı, minimalist ve özel WooCommerce teması.
Author: Ercan Serdar Arslan
Version: 1.0.0
Text Domain: hobis
*/

/* --- TASARIM SİSTEMİ (Değişkenler) --- */
:root {
    --bg-color: #ffffff;
    --text-main: #1f2937;
    --text-light: #6b7280;
    --border-color: #e5e7eb;
    --primary-color: #ef4444; 
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

/* --- TEMEL SIFIRLAMA (Reset) --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    background-color: var(--bg-color); 
    color: var(--text-main); 
    font-family: var(--font-main); 
    line-height: 1.6; 
    -webkit-font-smoothing: antialiased; 
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* ==========================================================
   HEADER (ÜST KISIM) MİMARİSİ 
   ========================================================== */

/* Ortak Kapsayıcı */
.header-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* --- 1. KATMAN: ÜST GÜVEN BANDI --- */
.hobis-topbar {
    background-color: #006e26;
    color: #ffffff;
    font-size: 13px;
    padding: 10px 0;
}
.topbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}
.topbar-container span { display: flex; align-items: center; gap: 8px; opacity: 0.9; }
.topbar-container strong { font-weight: 600; opacity: 1; }

/* --- YAPIŞKAN BAŞLIK (STICKY HEADER) --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000; 
    background-color: #fff;
    transition: box-shadow 0.3s ease;
}
.site-header.is-sticky {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* --- 2. KATMAN: LOGO, ARAMA VE SEPET SATIRI --- */
.main-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px; 
    gap: 40px;
    background-color: #fff;
}
.header-logo { flex: 0 0 auto; }

/* Geniş ve Ortalanmış Arama Çubuğu */
.center-search {
    flex: 1;
    max-width: 600px;
    position: relative;
}
.search-wrapper { position: relative; width: 100%; }
.center-search input {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-size: 15px;
    background-color: #f9fafb;
    outline: none;
    transition: all 0.3s ease;
}
.center-search input:focus {
    background-color: #fff;
    border-color: #006e26;
    box-shadow: 0 0 0 4px rgba(0, 110, 38, 0.1);
}

/* Canlı Arama Sonuçları (Dropdown) */
.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    z-index: 100;
    display: none;
    overflow: hidden;
}
.search-result-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #f3f4f6;
    color: var(--text-main);
}
.search-result-item:hover { background: #f9fafb; }
.search-result-image img { width: 50px; height: 50px; object-fit: cover; margin-right: 15px; border-radius: 4px; }
.search-result-info { display: flex; flex-direction: column; }
.search-result-title { font-size: 14px; font-weight: 500; }
.search-result-price { font-size: 13px; color: var(--primary-color); font-weight: 600; }
.no-result { padding: 15px; text-align: center; color: var(--text-light); }

/* Sağ Taraf - Modern Sepet Görünümü */
.right-actions { flex: 0 0 auto; }
.cart-link { display: flex; align-items: center; gap: 15px; }
.cart-icon-wrapper { position: relative; }
.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    height: 20px;
    min-width: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border: 2px solid #fff;
}
.cart-text { display: flex; flex-direction: column; line-height: 1.2; }
.cart-title { font-size: 13px; color: var(--text-light); }
.cart-total { font-size: 16px; font-weight: 700; color: var(--text-main); }

/* --- 3. KATMAN: ALT YATAY MENÜ --- */
.header-bottom-nav {
    background-color: #ffffff;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px -6px rgba(0,0,0,0.1);
}
.header-bottom-nav .main-navigation { display: flex; justify-content: center; }
.header-bottom-nav .nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 50px;
}
.header-bottom-nav .nav-links li a {
    display: block;
    padding: 16px 0;
    color: var(--text-main);
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}
.header-bottom-nav .nav-links li a:hover { color: #006e26; }
.header-bottom-nav .nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #006e26;
    transition: width 0.3s ease;
}
.header-bottom-nav .nav-links li a:hover::after { width: 100%; }

/* ==========================================================
   GÖRSEL KATEGORİ GRID (AKORDİYON)
   ========================================================== */
.visual-categories { padding: 60px 0; background: #fff; }
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; transition: all 0.5s ease; }
.category-card {
    position: relative;
    aspect-ratio: 1 / 1; 
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}
.category-card:hover { transform: scale(1.03); }
.cat-img { width: 100%; height: 100%; object-fit: cover; }
.cat-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,110,38,0.9));
    padding: 15px;
    color: #fff;
    text-align: center;
    font-weight: 700;
}
.sub-category-panel {
    grid-column: 1 / -1; 
    height: 0;
    overflow: hidden;
    background: #f4f9f5;
    border-radius: 15px;
    margin-top: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.sub-category-panel.active { height: auto; padding: 40px; margin-top: 30px; border: 1px solid #d4e9d9; }
.sub-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 25px; margin-top: 20px; }
.sub-cat-item { text-align: center; text-decoration: none; }
.sub-cat-item img {
    width: 100px; height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 3px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.sub-cat-item span { display: block; font-weight: 600; color: #333; font-size: 14px; }
.close-panel {
    float: right;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-light);
}

/* ==========================================================
   ÜRÜN SEKMELERİ (TABS) & YENİ GELENLER 
   ========================================================== */
.home-product-tabs-section { padding: 40px 20px; }
.section-title { text-align: center; font-size: 24px; color: var(--text-main); margin-bottom: 30px; }
.product-tabs-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 30px; }
.tab-btn {
    padding: 10px 20px; background: transparent; border: 1px solid var(--border-color);
    border-radius: 30px; color: var(--text-main); font-size: 15px; cursor: pointer; transition: all 0.3s ease;
}
.tab-btn:hover { border-color: var(--primary-color); color: var(--primary-color); }
.tab-btn.active { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.product-card {
    background: #fff; border: 1px solid var(--border-color); border-radius: 8px;
    padding: 15px; text-align: center; transition: box-shadow 0.3s ease;
}
.product-card:hover { box-shadow: 0 5px 15px rgba(0,0,0,0.08); }
.product-image img { width: 100%; height: auto; border-radius: 4px; margin-bottom: 15px; }
.product-title {
    font-size: 14px;
    color: var(--text-main);
    margin-bottom: 10px;
    height: 40px; 
    overflow: hidden;
    font-weight: 600; 
    display: -webkit-box;
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical;
}
.product-price { color: var(--primary-color); font-weight: 600; font-size: 16px; margin-bottom: 15px; }
.add_to_cart_button {
    display: block; width: 100%; padding: 10px; background: var(--text-main);
    color: #fff; border-radius: 4px; font-size: 14px; transition: background 0.3s ease;
}
.add_to_cart_button:hover { background: var(--primary-color); }

/* ==========================================================
   SEO İÇERİK ALANI 
   ========================================================== */
.seo-content-area { padding: 60px 20px; background-color: var(--bg-color); border-top: 1px solid var(--border-color); }
.seo-content-area .container { max-width: 1200px; margin: 0 auto; }
.seo-title { text-align: center; color: #006e26; font-size: 28px; margin-bottom: 20px; }
.seo-intro, .seo-text { font-size: 16px; color: var(--text-light); margin-bottom: 30px; text-align: center; max-width: 900px; margin: 0 auto 30px; }
.seo-subtitle { text-align: center; font-size: 22px; color: var(--text-main); margin-bottom: 15px; }
.seo-grid { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 40px; margin-bottom: 40px; }
.seo-card {
    flex: 1; min-width: 250px; background: #fff; padding: 25px;
    border: 1px solid var(--border-color); border-radius: 8px; transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.seo-card:hover { transform: translateY(-5px); box-shadow: 0 10px 15px rgba(0,0,0,0.05); }
.seo-card h4 { color: var(--text-main); font-size: 18px; margin-bottom: 15px; display: flex; align-items: center; gap: 8px; }
.seo-card p { font-size: 15px; color: var(--text-light); }
.seo-card a { color: var(--primary-color); font-weight: 600; }
.seo-footer-note { font-size: 14px; text-align: center; color: var(--text-light); border-top: 1px dashed var(--border-color); padding-top: 20px; }

/* ==========================================================
   ÜRÜN DETAY SAYFASI (SINGLE PRODUCT) 
   ========================================================== */
/* WooCommerce'in varsayılan %48'lik genişliğini ve kaydırmasını (float) iptal et */
.product-gallery-area .woocommerce-product-gallery {
    width: 100% !important;
    float: none !important;
    max-width: none !important;
}

/* Ana resmi konteynıra tam oturt ve şık bir görünüm ver */
.product-gallery-area .woocommerce-product-gallery__image img {
    width: 100% !important;
    height: auto !important;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08); /* Resmin arkasına zarif bir derinlik katar */
    object-fit: cover;
}

/* Ürünün Alt Küçük Resimleri (Thumbnails) Varsa Onları da Hizalayalım */
.product-gallery-area .flex-control-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
    padding: 0;
    list-style: none;
}

.product-gallery-area .flex-control-thumbs li {
    width: calc(25% - 11.25px) !important; /* Küçük resimleri 4'lü yan yana dizer */
    float: none !important;
}

.product-gallery-area .flex-control-thumbs li img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Seçili olan küçük resmin etrafını marka rengimizle belirginleştir */
.product-gallery-area .flex-control-thumbs li img.flex-active,
.product-gallery-area .flex-control-thumbs li img:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}
.hobis-single-product { max-width: 1200px; margin: 40px auto; padding: 0 20px; }
.product-top-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin-bottom: 60px; }
@media (max-width: 768px) { .product-top-grid { grid-template-columns: 1fr; gap: 30px; } }
.product-summary-area h1.product_title { font-size: 28px; color: var(--text-main); margin-bottom: 15px; font-weight: 700; }
.product-summary-area .price { font-size: 24px; color: var(--primary-color); font-weight: 700; margin-bottom: 25px; display: block; }
.product-summary-area .woocommerce-product-details__short-description {
    font-size: 15px; color: var(--text-light); margin-bottom: 30px; border-bottom: 1px solid var(--border-color); padding-bottom: 20px;
}
.woocommerce form.cart { display: flex; flex-wrap: wrap; gap: 15px; margin-bottom: 30px; align-items: center; }
.woocommerce form.cart .quantity input.qty { width: 70px; height: 50px; text-align: center; border: 1px solid var(--border-color); border-radius: 4px; font-size: 16px; }
.woocommerce form.cart button.button {
    flex: 1; height: 50px; background-color: var(--primary-color); color: #fff;
    border: none; border-radius: 4px; font-size: 18px; font-weight: 600; cursor: pointer; transition: background-color 0.3s ease;
}
.woocommerce form.cart button.button:hover { background-color: #dc2626; }
.product_meta { font-size: 14px; color: var(--text-light); border-top: 1px solid var(--border-color); padding-top: 20px; }
.product_meta span { display: block; margin-bottom: 5px; }
.product_meta span.sku_wrapper { color: var(--text-main); font-weight: 600; }
.woocommerce-tabs ul.tabs { list-style: none; display: flex; gap: 20px; border-bottom: 1px solid var(--border-color); margin-bottom: 30px; }
.woocommerce-tabs ul.tabs li a { display: block; padding: 10px 0; font-size: 16px; color: var(--text-light); font-weight: 600; border-bottom: 3px solid transparent; }
.woocommerce-tabs ul.tabs li.active a { color: var(--text-main); border-bottom-color: var(--primary-color); }
.woocommerce-Tabs-panel { color: var(--text-light); font-size: 15px; line-height: 1.8; }

//* ==========================================================
   OFF-CANVAS MİNİ SEPET (KURŞUN GEÇİRMEZ)
   ========================================================== */
.hobis-cart-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background-color: rgba(0, 0, 0, 0.5); z-index: 9998; opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.hobis-cart-overlay.show { opacity: 1; visibility: visible; }
.hobis-offcanvas-cart {
    position: fixed; top: 0; right: 0; width: 380px; max-width: 100%; height: 100vh;
    background-color: #fff; z-index: 9999; box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex; flex-direction: column;
}
.hobis-offcanvas-cart.open { transform: translateX(0); }
.offcanvas-header { padding: 20px; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; background-color: #f9fafb; }
.offcanvas-header h3 { font-size: 18px; color: var(--text-main); margin: 0; }
.close-cart { background: none; border: none; font-size: 28px; line-height: 1; color: var(--text-light); cursor: pointer; transition: color 0.2s; }
.close-cart:hover { color: var(--primary-color); }
.offcanvas-body { padding: 20px; flex: 1; overflow-y: auto; }

/* WOOCOMMERCE VARSAYILAN SEPET CSS'İNİ EZME (ALT SAYFALAR İÇİN) */
.hobis-offcanvas-cart .widget_shopping_cart_content ul.cart_list { 
    list-style: none !important; 
    padding: 0 !important; 
    margin: 0 !important; 
}

.hobis-offcanvas-cart .widget_shopping_cart_content ul.cart_list li.mini_cart_item { 
    display: flex !important; 
    align-items: center !important; 
    padding: 15px 0 !important; 
    margin: 0 0 15px 0 !important; 
    border-bottom: 1px solid #f3f4f6 !important;
    position: relative !important;
    background: transparent !important;
}

/* Çıkarma (X) Butonu */
.hobis-offcanvas-cart .widget_shopping_cart_content ul.cart_list li.mini_cart_item a.remove {
    position: static !important; 
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    background: #fef2f2 !important;
    color: #ef4444 !important;
    font-size: 16px !important;
    font-weight: bold !important;
    line-height: 1 !important;
    margin-right: 15px !important;
    flex-shrink: 0 !important;
    text-decoration: none !important;
}
.hobis-offcanvas-cart .widget_shopping_cart_content ul.cart_list li.mini_cart_item a.remove:hover {
    background: #ef4444 !important;
    color: #fff !important;
}

/* Ürün İsmi ve Resmi Taşıyıcısı */
.hobis-offcanvas-cart .widget_shopping_cart_content ul.cart_list li.mini_cart_item > a:not(.remove) {
    display: flex !important;
    align-items: center !important;
    flex: 1 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    color: var(--text-main) !important;
    text-decoration: none !important;
    padding: 0 !important;
}

/* Ürün Resmi */
.hobis-offcanvas-cart .widget_shopping_cart_content ul.cart_list li.mini_cart_item img {
    position: static !important; 
    width: 55px !important;
    height: 55px !important;
    object-fit: cover !important;
    border-radius: 6px !important;
    margin: 0 15px 0 0 !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05) !important;
    float: none !important;
}

/* Miktar ve Fiyat */
.hobis-offcanvas-cart .widget_shopping_cart_content ul.cart_list li.mini_cart_item .quantity {
    font-weight: 700 !important;
    color: var(--primary-color) !important;
    font-size: 14px !important;
    flex-shrink: 0 !important;
    margin-left: 10px !important;
}

/* Alt Toplam ve Butonlar */
.woocommerce-mini-cart__total { border-top: 2px solid var(--border-color); padding-top: 15px; font-size: 18px; text-align: center; }
.woocommerce-mini-cart__buttons { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.woocommerce-mini-cart__buttons a { display: block; text-align: center; padding: 12px; border-radius: 4px; font-weight: 600; margin: 0 !important; }
.woocommerce-mini-cart__buttons a.button:not(.checkout) { background-color: #f3f4f6; color: var(--text-main); }
.woocommerce-mini-cart__buttons a.checkout { background-color: var(--primary-color); color: #fff; }

/* ==========================================================
   ÖDEME SAYFASI (CHECKOUT) - KUSURSUZ İKİ SÜTUN
   ========================================================== */
.woocommerce-checkout .header-search, .woocommerce-checkout .header-cart, .woocommerce-checkout .footer-widgets { display: none !important; }
.woocommerce-checkout .header-container { justify-content: center; padding: 20px 0; }

/* CSS Grid ile Elemanları Ekrana Çiviliyoruz */
form.woocommerce-checkout { 
    display: grid !important; 
    grid-template-columns: 1fr 450px !important; /* Sol form esnek, Sağ özet 450px sabit */
    gap: 0 50px !important; 
    max-width: 1100px !important; 
    margin: 40px auto !important; 
    align-items: start !important; /* Sağdaki özetin yukarı yapışabilmesi için şart */
}

/* Sol Sütun: Fatura ve Kargo Bilgileri */
#customer_details { 
    grid-column: 1 / 2 !important; 
    grid-row: 1 / 3 !important; /* Sol tarafı boydan boya kaplar */
    width: 100% !important; 
    float: none !important;
}

/* Sağ Sütun Üst: Siparişiniz Başlığı */
#order_review_heading { 
    grid-column: 2 / 3 !important; 
    grid-row: 1 / 2 !important; 
    margin-top: 0 !important;
    float: none !important;
    width: 100% !important;
    font-size: 22px;
}

/* Sağ Sütun Alt: Sipariş Özeti ve Ödeme Kutusu (Yapışkan) */
#order_review {
    grid-column: 2 / 3 !important; 
    grid-row: 2 / 3 !important; 
    background: #f9fafb !important; 
    padding: 30px !important; 
    border-radius: 8px !important; 
    border: 1px solid var(--border-color) !important;
    position: sticky !important; 
    top: 20px !important; /* Sayfa kaydıkça üstten 20px boşlukla aşağı iner */
    float: none !important;
    width: 100% !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.03) !important;
}

/* Form Alanlarının Tasarımı */
.woocommerce-checkout .form-row { margin-bottom: 20px; }
.woocommerce-checkout .form-row label { display: block; font-size: 14px; font-weight: 600; color: var(--text-main); margin-bottom: 8px; }
.woocommerce-checkout .form-row input.input-text, .woocommerce-checkout .form-row select, .woocommerce-checkout .form-row textarea {
    width: 100%; padding: 14px 15px; border: 1px solid var(--border-color); border-radius: 6px; font-size: 15px; background: #fff; transition: border-color 0.3s ease;
}
.woocommerce-checkout .form-row input.input-text:focus, .woocommerce-checkout .form-row select:focus, .woocommerce-checkout .form-row textarea:focus {
    border-color: var(--primary-color); outline: none; box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Siparişi Onayla Butonu */
#place_order {
    width: 100%; padding: 18px; background-color: var(--primary-color); color: #fff; font-size: 18px;
    font-weight: 700; border: none; border-radius: 6px; cursor: pointer; transition: background 0.3s ease; margin-top: 20px;
}
#place_order:hover { background-color: #dc2626; }
.wc_payment_methods { list-style: none; padding: 0; border-bottom: 1px solid var(--border-color); margin-bottom: 20px; }
.wc_payment_methods li { padding: 15px 0; border-top: 1px solid var(--border-color); }

/* Mobil Uyumluluk: Ekrana Sığmayan Yerde Alt Alta Al */
@media (max-width: 992px) {
    form.woocommerce-checkout { 
        grid-template-columns: 1fr !important; /* Mobilde tek sütun */
        gap: 30px 0 !important;
    }
    #customer_details, #order_review_heading, #order_review {
        grid-column: 1 / 2 !important; 
        grid-row: auto !important;
        position: static !important; /* Mobilde yapışmayı iptal et */
    }
}

/* ==========================================================
   KATEGORİ SAYFASI (ARCHIVE) 
   ========================================================== */
.hobis-shop-container { max-width: 1200px; margin: 40px auto; padding: 0 20px; display: grid; grid-template-columns: 260px 1fr; gap: 40px; }
@media (max-width: 992px) { .hobis-shop-container { grid-template-columns: 1fr; } }
.shop-sidebar { background: #fff; border-right: 1px solid var(--border-color); padding-right: 20px; }
.filter-widget { margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid #f3f4f6; }
.filter-title { font-size: 16px; color: var(--text-main); margin-bottom: 15px; font-weight: 600; }
.filter-widget ul { list-style: none; padding: 0; }
.filter-widget ul li { margin-bottom: 10px; font-size: 14px; color: var(--text-light); }
.filter-widget ul li a { color: inherit; transition: color 0.2s; }
.filter-widget ul li a:hover { color: var(--primary-color); }
/* ==========================================================
   ÖZEL ALT KATEGORİ VİTRİNİ (Kategori Sayfası Üst Kısmı)
   ========================================================== */
.custom-subcategories-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 10px;
}

.custom-subcat-card {
    flex: 0 0 auto;
    width: 130px;
    text-align: center;
    background: #f9fafb;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.custom-subcat-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.custom-subcat-card img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 50%; /* Resimleri şık bir şekilde yuvarlak yapar */
    margin-bottom: 12px;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.custom-subcat-card span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.3;
}

/* 3. SAĞ ALAN: Sıralama ve Stok Kontrol Çubuğu (Kesin Çözüm) */
.shop-main-content {
    display: flex;
    flex-direction: column; 
}

.shop-control-bar {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    background: #f9fafb;
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    width: 100% !important; 
    clear: both !important; 
    order: -1; 
}

.shop-control-bar .woocommerce-result-count {
    margin: 0 auto 0 0 !important; 
    float: none !important;
    color: var(--text-light);
    font-size: 14px;
}

.shop-control-bar .hobis-stock-toggle {
    margin: 0 20px 0 0 !important; 
    float: none !important;
}

.hobis-stock-toggle .switch-label { display: flex; align-items: center; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--text-main); }
.hobis-stock-toggle input[type="checkbox"] { margin-right: 10px; width: 18px; height: 18px; cursor: pointer; accent-color: var(--primary-color); }

.shop-control-bar .woocommerce-ordering {
    margin: 0 !important;
    float: none !important;
}

.woocommerce-ordering select {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: #fff;
    outline: none;
    cursor: pointer;
    font-size: 14px;
}

.shop-sidebar .woocommerce-ordering,
.shop-sidebar .woocommerce-result-count,
.shop-sidebar .hobis-stock-toggle {
    display: none !important;
}

@media (max-width: 768px) {
    .shop-control-bar {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 15px;
    }
    .shop-control-bar .hobis-stock-toggle {
        margin: 0 !important;
    }
}
/* ==========================================================
   KATEGORİ SAYFASI DİZİLİM KİLİDİ (Kurşun Geçirmez Hiyerarşi)
   ========================================================== */
.shop-main-content {
    display: flex !important;
    flex-direction: column !important;
}

/* 1. Başlık En Üstte */
.shop-main-content > .woocommerce-products-header { 
    order: 1 !important; 
    margin-bottom: 25px; 
}

/* 2. Resimli Alt Kategoriler Başlığın Altında */
.shop-main-content > .custom-subcategories-grid { 
    order: 2 !important; 
}

/* 3. Filtre / Sıralama Çubuğu Ürünlerin Üstünde */
.shop-main-content > .shop-control-bar { 
    order: 3 !important; 
    width: 100% !important;
}

/* 4. Ürün Listesi */
.shop-main-content > ul.products { 
    order: 4 !important; 
}

/* 5. Sayfalama (1,2,3..) En Altta */
.shop-main-content > .woocommerce-pagination { 
    order: 5 !important; 
    margin-top: 30px; 
}
/* ==========================================================
   SONSUZ KAYDIRMA (INFINITE SCROLL) TASARIMI
   ========================================================== */
/* Varsayılan WooCommerce Sayfalamasını Gizle */
.shop-main-content > .woocommerce-pagination {
    display: none !important;
}

/* Yükleniyor Animasyonu */
.infinite-spinner {
    width: 100%;
    text-align: center;
    padding: 30px 0;
    margin-top: 20px;
    font-weight: 600;
    color: var(--primary-color);
    order: 5 !important; /* Flex hiyerarşisinde en altta dursun */
}

/* Noktalı yanıp sönme efekti */
.infinite-spinner span::after {
    content: '.';
    animation: dots 1.5s steps(5, end) infinite;
}

@keyframes dots {
    0%, 20% { color: rgba(0,0,0,0); text-shadow: .25em 0 0 rgba(0,0,0,0), .5em 0 0 rgba(0,0,0,0); }
    40% { color: var(--primary-color); text-shadow: .25em 0 0 rgba(0,0,0,0), .5em 0 0 rgba(0,0,0,0); }
    60% { text-shadow: .25em 0 0 var(--primary-color), .5em 0 0 rgba(0,0,0,0); }
    80%, 100% { text-shadow: .25em 0 0 var(--primary-color), .5em 0 0 var(--primary-color); }
}
/* ==========================================================
   ÜRÜN DETAY SAYFASI EKSTRALARI (GÜVEN KUTULARI & ROZETLER)
   ========================================================== */

/* Sayfa Yolu (Breadcrumb) */
.woocommerce-breadcrumb {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}
.woocommerce-breadcrumb a { color: var(--text-main); font-weight: 500; transition: color 0.2s; }
.woocommerce-breadcrumb a:hover { color: var(--primary-color); }

/* Marka Logosu (PWB Eklentisi) */
.product-brand-logo { margin-bottom: 15px; }
.product-brand-logo img { max-height: 40px; width: auto; object-fit: contain; }

/* Stok Durumu (Örn: Sadece 2 adet kaldı) */
.product-summary-area .stock.in-stock {
    color: #eab308; /* Dikkat çekici sarı/turuncu */
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 15px;
}
.product-summary-area .stock.out-of-stock { color: var(--primary-color); font-weight: 700; }

/* Satın Alma Sonrası Güven/Avantaj Kutuları */
.hobis-info-boxes {
    display: grid;
    grid-template-columns: 1fr 1fr; /* PC'de yan yana 2 sütun */
    gap: 12px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.hobis-info-boxes .info-box {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-main);
    font-weight: 600;
    background: #f9fafb;
    text-decoration: none;
    transition: all 0.2s ease;
}

.hobis-info-boxes .info-box:hover {
    border-color: #006e26;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0, 110, 38, 0.05);
}

.hobis-info-boxes .whatsapp-box {
    background-color: #f0fdf4;
    border-color: #22c55e;
    color: #166534;
}
.hobis-info-boxes .whatsapp-box:hover { background-color: #dcfce7; border-color: #16a34a; }

@media (max-width: 600px) {
    .hobis-info-boxes { grid-template-columns: 1fr; /* Mobilde alt alta tek sütun */ }
}

/* Ürün Rozetleri (Tükendi / İndirim) */
.product-gallery-area { position: relative; }
.hobis-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 99;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 800;
    border-radius: 4px;
    color: #fff;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.badge-out-of-stock { background-color: #dc2626; }
.badge-sale { background-color: #006e26; }
/* ==========================================================
   FOMO BİLDİRİMİ (SATIŞ ARTIRICI POP-UP)
   ========================================================== */
#hobis-fomo-notification {
    position: fixed;
    bottom: 30px;
    left: 20px;
    width: 340px;
    max-width: calc(100vw - 40px);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 99999;
    border-left: 4px solid var(--primary-color);
    padding: 15px;
    transform: translateX(-120%); /* Başlangıçta ekranın solunda gizli */
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

#hobis-fomo-notification.show {
    transform: translateX(0); /* Ekrana kayarak girer */
    opacity: 1;
}

.fomo-close-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    line-height: 22px;
    text-align: center;
    cursor: pointer;
    color: var(--text-light);
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.2s;
}

.fomo-close-btn:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.fomo-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fomo-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.fomo-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.fomo-title {
    font-size: 13px;
    line-height: 1.3;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Başlığı en fazla 2 satırda keser */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fomo-stats {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.5;
}

.fomo-stat-row { display: block; }
.fomo-bold { color: #000; font-weight: 800; }

/* Kırmızı Canlı Nokta (Nefes Alma Animasyonu) */
.fomo-live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    margin-right: 5px;
    animation: fomoPulse 1.5s infinite;
}

@keyframes fomoPulse {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Mobilde alttan yukarı doğru açılsın */
@media (max-width: 600px) {
    #hobis-fomo-notification {
        bottom: 20px;
        left: 50%;
        transform: translate(-50%, 150%);
        width: calc(100vw - 40px);
    }
    #hobis-fomo-notification.show {
        transform: translate(-50%, 0);
    }
}
/* ==========================================================
   MODERN SEPET (CART) SAYFASI TASARIMI
   ========================================================== */

/* 1. Sepet Ana Taşıyıcısı (İki Sütunlu Flex Mimari) */
.woocommerce-cart .woocommerce {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: 40px auto;
}

/* 2. Sol Taraf: Ürünler Tablosu */
.woocommerce-cart form.woocommerce-cart-form {
    flex: 1; /* Sol taraf esnek, kalan tüm alanı kaplar */
    min-width: 60%;
}

.woocommerce-cart-form__contents {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

/* Tablo Başlıkları */
.woocommerce-cart-form__contents th {
    background-color: #f9fafb;
    padding: 15px;
    font-size: 14px;
    color: var(--text-light);
    border-bottom: 2px solid var(--border-color);
    border-top: 1px solid var(--border-color);
}

.woocommerce-cart-form__contents th:first-child { border-top-left-radius: 8px; border-left: 1px solid var(--border-color); }
.woocommerce-cart-form__contents th:last-child { border-top-right-radius: 8px; border-right: 1px solid var(--border-color); }

/* Ürün Satırları */
.woocommerce-cart-form__contents td {
    padding: 20px 15px;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
    background-color: #fff;
}

.woocommerce-cart-form__contents tr:last-child td { border-bottom: 2px solid var(--border-color); }
.woocommerce-cart-form__contents tr td:first-child { border-left: 1px solid var(--border-color); }
.woocommerce-cart-form__contents tr td:last-child { border-right: 1px solid var(--border-color); }

/* Ürün Resmi ve İsmi */
.woocommerce-cart-form__contents .product-thumbnail img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #f3f4f6;
}
.woocommerce-cart-form__contents .product-name a {
    font-weight: 600;
    color: var(--text-main);
    font-size: 15px;
    transition: color 0.2s;
}
.woocommerce-cart-form__contents .product-name a:hover { color: var(--primary-color); }

/* Çıkarma Butonu (X) */
.woocommerce-cart-form__contents a.remove {
    color: #ef4444 !important;
    font-weight: bold;
    font-size: 20px;
    background: #fef2f2 !important;
    width: 30px;
    height: 30px;
    line-height: 28px;
    border-radius: 50%;
    display: inline-block;
    transition: all 0.3s;
}
.woocommerce-cart-form__contents a.remove:hover { background: #ef4444 !important; color: #fff !important; }

/* Kupon Kodu Alanı */
.woocommerce-cart .actions {
    background-color: #f9fafb;
    padding: 20px !important;
    border-radius: 0 0 8px 8px;
}
.woocommerce-cart .coupon { display: flex; gap: 10px; }
.woocommerce-cart .coupon input.input-text {
    width: 200px;
    padding: 12px 15px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}
.woocommerce-cart .coupon button.button {
    background-color: var(--text-main);
    padding: 12px 20px;
    border-radius: 6px;
}

/* 3. Sağ Taraf: Yapışkan Sepet Özeti Kutusu (Sticky Totals) */
.cart-collaterals {
    width: 380px; /* Sağ taraf sabit genişlik */
    flex-shrink: 0;
}

.cart_totals {
    background-color: #fff;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    position: sticky;
    top: 100px; /* Ekranı kaydırdıkça üstten 100px boşlukla beraber gelir */
    box-shadow: 0 10px 25px rgba(0,0,0,0.03);
}

.cart_totals h2 {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
}

.cart_totals table { width: 100%; border: none; }
.cart_totals th, .cart_totals td {
    padding: 15px 0;
    background: transparent;
    border-bottom: 1px solid #f3f4f6;
}
.cart_totals th { font-weight: 500; color: var(--text-light); }
.cart_totals td { text-align: right; font-weight: 600; color: var(--text-main); }

/* Genel Toplam Fiyat */
.cart_totals .order-total th, .cart_totals .order-total td {
    border-bottom: none;
    font-size: 18px;
    padding-top: 20px;
}
.cart_totals .order-total td strong { color: var(--primary-color); font-size: 24px; }

/* Ödeme Adımına Git Butonu */
.wc-proceed-to-checkout { margin-top: 20px; }
.wc-proceed-to-checkout a.checkout-button {
    display: block;
    width: 100%;
    text-align: center;
    padding: 18px !important;
    font-size: 18px;
    border-radius: 8px;
    background-color: #006e26 !important; /* Marka yeşilin */
    color: #fff !important;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 110, 38, 0.2);
    transition: all 0.3s ease;
}
.wc-proceed-to-checkout a.checkout-button:hover { background-color: #00521c !important; transform: translateY(-2px); }

/* 4. Mobil Uyumluluk */
@media (max-width: 992px) {
    .woocommerce-cart .woocommerce { flex-direction: column; gap: 20px; }
    .cart-collaterals { width: 100%; position: static; }
    .woocommerce-cart .coupon { flex-direction: column; }
    .woocommerce-cart .coupon input.input-text { width: 100%; }
}
/* ==========================================================
   FOOTER (SİTE ALT BİLGİSİ) TASARIMI
   ========================================================== */
.site-footer {
    background-color: #f9fafb; /* Çok hafif, modern bir gri */
    border-top: 1px solid var(--border-color);
    padding-top: 60px;
    color: var(--text-main);
    font-size: 14px;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-widget .widget-title {
    font-size: 16px;
    font-weight: 700;
    color: #006e26; /* Marka yeşili */
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.brand-widget p { color: var(--text-light); margin-bottom: 20px; line-height: 1.6; }

.footer-links, .footer-contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li, .footer-contact-info li { margin-bottom: 12px; color: var(--text-light); }

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #006e26;
    transform: translateX(5px); /* Üzerine gelince hafif sağa kayar */
}

/* Sosyal Medya İkonları */
.footer-socials { display: flex; gap: 15px; margin-top: 20px; }
.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
}
.social-icon:hover {
    background-color: #006e26;
    border-color: #006e26;
    transform: translateY(-3px);
}

/* En Alt Telif Hakkı Alanı */
.footer-bottom {
    background-color: #fff;
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
    text-align: center;
    color: var(--text-light);
    font-size: 13px;
}
/* Footer Sütun İçi Bileşen Boşlukları */
.footer-column .footer-widget {
    margin-bottom: 25px;
}
.footer-column .footer-widget:last-child {
    margin-bottom: 0;
}
/* ==========================================================
   MARKA RENGİ GÜNCELLEMESİ (HOBİS YEŞİLİ)
   ========================================================== */
/* Ana rengi Hobis yeşili ile değiştiriyoruz */
:root {
    --primary-color: #006e26 !important; 
}

/* Butonların üzerine gelindiğinde (Hover) daha koyu bir yeşil olsun */
.woocommerce form.cart button.button:hover,
#place_order:hover,
.add_to_cart_button:hover { 
    background-color: #004d1b !important; 
}

/* Yeni Gelenler / Ürün Sekmelerinin üzerine gelindiğinde */
.tab-btn:hover {
    border-color: #006e26 !important; 
    color: #006e26 !important;
}

/* Ödeme sayfasında form kutularına tıklandığında çıkan dış ışıma efekti */
.woocommerce-checkout .form-row input.input-text:focus, 
.woocommerce-checkout .form-row select:focus, 
.woocommerce-checkout .form-row textarea:focus {
    box-shadow: 0 0 0 3px rgba(0, 110, 38, 0.15) !important;
}

/* Fiyatların Rengi (Yeşil olarak vurgulamak istersen, siyah kalsın dersen bu satırı silebilirsin) */
.product-price, 
.product-summary-area .price,
.hobis-offcanvas-cart .widget_shopping_cart_content ul.cart_list li.mini_cart_item .quantity {
    color: #006e26 !important;
}
/* ==========================================================
   MOBİL OPTİMİZASYON (APP GÖRÜNÜMÜ)
   ========================================================== */
@media (max-width: 768px) {
    
    /* 1. TOPBAR: Mobilde gereksiz alan kaplamaması için tamamen gizliyoruz */
    .hobis-topbar { 
        display: none !important; 
    }

    /* 2. HEADER MİMARİSİ: Arama kutusunu tam genişlikte alta alıyoruz */
    .main-header-row {
        flex-wrap: wrap !important; /* Elemanların alt satıra geçmesine izin ver */
        padding: 10px 15px !important;
        gap: 15px !important;
    }
    
    .header-logo { 
        flex: 1 !important; /* Logoyu sola yasla */
        text-align: left !important;
    }
    .header-logo img { max-width: 150px !important; height: auto !important; }

    .right-actions { 
        flex: 0 0 auto !important; 
    }
    
    .cart-text { 
        display: none !important; /* Mobilde 'Sepetim' yazısına gerek yok, ikon yeterli */
    }

    .center-search {
        flex: 0 0 100% !important; /* Arama kutusu %100 genişlikte alt satıra geçer */
        order: 3 !important; /* Sıralamada en sona (alta) iter */
        max-width: 100% !important;
    }
    
    .center-search input {
        padding: 12px 20px !important;
        font-size: 14px !important;
    }

    /* 3. MENÜ LİNKLERİ: Mobilde daha kibar dizilim */
    .header-bottom-nav .nav-links {
        gap: 15px !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
    .header-bottom-nav .nav-links li a {
        font-size: 13px !important;
        padding: 10px 0 !important;
    }

    /* 4. GÖRSEL KATEGORİLER: Ekranda devasa durmaması için 2'li ızgara (Grid) yapıyoruz */
    .category-grid {
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 10px !important;
    }
    .visual-categories { padding: 30px 0 !important; }

    /* 5. SEKMELER (TABS): Alt alta dizilip ekranı kaplamaması için YATAY KAYDIRMALI (Swipe) yapıyoruz */
    .product-tabs-nav {
        flex-wrap: nowrap !important; /* Alt satıra inmeyi engelle */
        overflow-x: auto !important; /* Yatayda kaydırmaya izin ver */
        justify-content: flex-start !important;
        padding-bottom: 15px !important;
        -webkit-overflow-scrolling: touch !important; /* Akıcı kaydırma (iOS) */
        gap: 8px !important;
    }
    /* Yatay kaydırma çubuğunu (Scrollbar) çirkin durmaması için gizle */
    .product-tabs-nav::-webkit-scrollbar { display: none !important; }
    
    .tab-btn { 
        flex: 0 0 auto !important; 
        white-space: nowrap !important; /* Buton içi yazının kırılmasını engelle */
        font-size: 13px !important;
        padding: 8px 15px !important;
    }

    /* 6. ÜRÜNLER VİTRİNİ: Mobilde yan yana 2 ürün gösterecek şekilde daraltıyoruz */
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .product-card {
        padding: 10px !important;
    }
    .product-title {
        font-size: 12px !important;
        height: 36px !important;
    }
    .product-price { font-size: 14px !important; margin-bottom: 10px !important; }
    
    .add_to_cart_button {
        padding: 8px !important;
        font-size: 12px !important;
    }

    /* Başlıkların Boyutlarını Mobilde Küçültme */
    h1.product_title { font-size: 22px !important; }
    .seo-title, .section-title { font-size: 20px !important; margin-bottom: 15px !important; }
}
/* ==========================================================
   MOBİL: ALT KATEGORİ PANELİ (AKORDİYON) DÜZELTMESİ
   ========================================================== */
@media (max-width: 768px) {
    /* Açılır panelin devasa iç boşluklarını (padding) daraltıyoruz */
    .sub-category-panel.active {
        padding: 20px 15px !important;
        margin-top: 15px !important;
    }

    /* Alt kategorileri mobilde yan yana 2'li ızgaraya (Grid) sokuyoruz */
    .sub-cat-grid {
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 15px !important;
        margin-top: 15px !important;
    }

    /* Yuvarlak resimlerin boyutunu mobile uygun şekilde küçültüyoruz */
    .sub-cat-item img {
        width: 70px !important;
        height: 70px !important;
        margin-bottom: 8px !important;
        border-width: 2px !important;
    }

    /* Alt kategori isimlerinin font boyutunu ve satır aralığını küçültüyoruz */
    .sub-cat-item span {
        font-size: 12px !important;
        line-height: 1.3 !important;
    }
    
    /* Çarpı (Kapatma) butonunu hizalama */
    .close-panel {
        font-size: 20px !important;
        margin-bottom: 10px !important;
    }
}
/* ==========================================================
   MOBİL: YATAY KAYDIRMA ÇUBUĞU (KULLANICI DENEYİMİ İPUCU)
   ========================================================== */
@media (max-width: 768px) {
    
    /* Sekmelerin altına çubuk için biraz nefes alma boşluğu ekleyelim */
    .product-tabs-nav {
        padding-bottom: 12px !important; 
    }

    /* Gizlediğimiz çubuğu şık ve ince bir şekilde geri getiriyoruz */
    .product-tabs-nav::-webkit-scrollbar { 
        display: block !important; 
        height: 4px !important; /* 4 piksellik çok ince ve zarif bir kalınlık */
    }
    
    /* Çubuğun arka plan yolu (Açık gri) */
    .product-tabs-nav::-webkit-scrollbar-track { 
        background: #f3f4f6 !important; 
        border-radius: 10px !important; 
    }
    
    /* Hareket eden tutamaç kısmı (Daha belirgin gri) */
    .product-tabs-nav::-webkit-scrollbar-thumb { 
        background: #d1d5db !important; 
        border-radius: 10px !important; 
    }
    
    /* Müşteri parmağıyla dokunduğunda / kaydırdığında marka yeşiline dönsün */
    .product-tabs-nav::-webkit-scrollbar-thumb:active { 
        background: var(--primary-color) !important; 
    }
}
/* ==========================================================
   GENİŞ EKRANLAR İÇİN ÜRÜN VİTRİNİ HİZALAMASI (1920px)
   ========================================================== */
@media (min-width: 1200px) {
    /* Ürün listesi taşıyıcısını merkeze al ve tam genişliğe yay */
    .woocommerce ul.products, 
    .woocommerce-page ul.products {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
        gap: 20px !important;
        justify-content: center !important;
        align-items: stretch !important;
        margin: 0 auto !important;
        width: 100% !important;
    }

    /* Eski WooCommerce boşluklarını ve kaydırmalarını (float) iptal et */
    .woocommerce ul.products li.product, 
    .woocommerce-page ul.products li.product {
        width: 100% !important;
        margin: 0 !important;
        float: none !important;
    }
}
/* ==========================================================
   GENİŞ EKRANLAR İÇİN YENİ GELENLER (SEKMELER) HİZALAMASI
   ========================================================== */
@media (min-width: 1200px) {
    /* Özel yazdığımız sekme içerisindeki ızgarayı (grid) hedefliyoruz */
    .home-product-tabs-section .product-grid {
        display: grid !important;
        /* Ekranı 6 eşit parçaya böler ve ürünleri sağa/sola tam yaslar */
        grid-template-columns: repeat(6, 1fr) !important; 
        gap: 20px !important;
        width: 100% !important;
        justify-content: space-between !important;
    }
    
    /* Eğer içerideki ürünler (kartlar) tam genişliğe esnemiyorsa zorla esnet */
    .home-product-tabs-section .product-card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
    }
}