/* Theme Name: Storefront Child
   Template: storefront
   Version: Vansira MASTER FINAL (Optimized & Cleaned)
*/

/* ============================================================
   1. GENEL AYARLAR & RENKLER
   ============================================================ */
:root {
    --v-green: #00d68f;
    --v-black: #000000;
    --v-white: #ffffff;
    --v-bg: #f4f6f8;
}

body {
    background-color: var(--v-bg) !important;
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
    color: #333 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important; /* Sağa sola kaymayı engelle */
    width: 100% !important;
}

a { text-decoration: none !important; color: inherit !important; transition: 0.2s; }
ul, li { list-style: none !important; padding: 0 !important; margin: 0 !important; }

/* ============================================================
   2. İSKELET & DÜZEN (LAYOUT FIXES)
   ============================================================ */
/* Ana sayfa genişlik kilidini kırma ve nükleer boşluk temizliği */
body.home #masthead.site-header { margin-bottom: 0 !important; padding-bottom: 0 !important; border-bottom: none !important; }
body.home .site-branding, body.home .site-header-cart, body.home .site-search { margin-bottom: 0 !important; padding-bottom: 10px !important; }
body.home #content, body.home .site-content, body.home .col-full, body.home #primary, body.home #main { max-width: 100% !important; width: 100% !important; margin: 0 !important; padding: 0 !important; }
body.home .storefront-breadcrumb { display: none !important; }

.vansira-full-width-container { width: 100% !important; margin: 0 !important; left: auto !important; right: auto !important; position: relative !important; overflow: hidden !important; background: transparent !important; border: none !important; }
.vansira-wrapper { width: 100% !important; max-width: 1600px !important; margin: 0 auto !important; padding: 20px 20px 0 !important; box-sizing: border-box !important; }

/* ============================================================
   3. HEADER & MENÜ TASARIMI
   ============================================================ */
.site-header { background: var(--v-white) !important; border-bottom: 1px solid #f1f1f1; padding: 0 !important; position: relative; z-index: 9999; }
.vansira-header-grid { max-width: 1400px; margin: 0 auto; padding: 10px 15px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 15px; }

.header-col-logo a { color: var(--v-black) !important; font-size: 26px !important; font-weight: 900 !important; text-transform: uppercase; line-height: 1; white-space: nowrap !important; display: block; }
.site-description { display: none !important; }

button.menu-toggle { background: transparent !important; border: none !important; padding: 5px !important; display: flex; flex-direction: column; gap: 6px; width: 40px; cursor: pointer; outline: none !important; }
.v-hamburger-line { display: block; width: 100%; height: 3px; background-color: var(--v-black); border-radius: 4px; transition: 0.3s; }
button.menu-toggle::before, button.menu-toggle::after { display: none !important; }
button.menu-toggle.active .v-hamburger-line:nth-child(2) { opacity: 0; } 

.header-col-icons { display: flex; align-items: center; gap: 15px; }
.v-icon-btn { color: var(--v-black) !important; display: flex; align-items: center; justify-content: center; }
.site-header-cart { margin: 0 !important; width: auto !important; }
.site-header-cart .cart-contents { background: transparent !important; padding: 0 !important; display: flex !important; align-items: center; }
.site-header-cart .cart-contents::after { content: "\f291"; font-family: "FontAwesome"; font-size: 22px; color: var(--v-black); }
.site-header-cart .amount, .site-header-cart .count { display: none !important; }

.header-col-search { flex-grow: 1; margin: 0 20px; }
.v-search-box form { display: flex; align-items: center; background: #f5f5f5 !important; border-radius: 50px; padding: 5px 15px; border: 1px solid transparent; }
.v-search-box input { width: 100%; padding: 10px 0; border: none !important; background: transparent !important; color: #333 !important; outline: none !important; font-size: 14px; }
.v-search-box button { background: transparent !important; border: none !important; font-size: 18px; cursor: pointer; color: var(--v-green) !important; }

/* Masaüstü Menü */
.v-desktop-navigation { display: none; background: #232f3e; padding: 12px 0; }
.v-desktop-menu-list { display: flex; justify-content: center; gap: 30px; }
.v-desktop-menu-list li a { color: #fff !important; font-weight: 700; font-size: 14px; text-transform: uppercase; }

/* Mobil Menü (Hamburger) */
#site-navigation { display: none; background: var(--v-white); width: 100%; border-top: 1px solid #eee; padding: 0; position: absolute; top: 100%; left: 0; z-index: 9998; box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
#site-navigation.toggled, .main-navigation.toggled { display: block !important; }
.primary-navigation ul { display: flex; flex-direction: column; padding: 20px !important; }
.primary-navigation ul li { border-bottom: 1px solid #f5f5f5; }
.primary-navigation ul li a { display: block; padding: 15px 0; font-weight: 600; color: var(--v-black) !important; }

/* --- HEADER MOBİL UYUM (Birleştirildi) --- */
@media (max-width: 768px) {
    .site-content, .col-full { padding: 0 !important; margin: 0 !important; width: 100% !important; max-width: 100% !important; }
    .vansira-header-grid { grid-template-columns: 40px 1fr auto; display: grid; flex-wrap: nowrap; }
    .header-col-logo { order: 2; text-align: center; }
    .header-col-icons { order: 3; justify-content: flex-end; }
    .v-header-left, .v-mobile-menu-trigger { order: 1; }
    .header-col-search { order: 4; grid-column: 1 / -1; margin: 10px 0 0 0; width: 100%; }
    .v-search-box form { background: #fff !important; border: 2px solid var(--v-green) !important; box-shadow: 0 5px 15px rgba(0, 214, 143, 0.15); }
    .site-header .col-full { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; }
    .site-branding { width: auto !important; margin-right: auto; margin-bottom: 10px; }
    .site-header-cart, .site-header-account { width: auto !important; }
    .site-search { width: 100% !important; clear: both; order: 99; margin-top: 5px; }
    .site-search form { width: 100%; display: flex; }
    .site-search .widget_product_search form input[type=search], .site-search .widget_product_search form input[type=text] { width: 100% !important; border-radius: 50px !important; }
}
@media (min-width: 769px) { .v-desktop-navigation { display: block !important; } .v-mobile-menu-trigger { display: none !important; } .vansira-header-grid { flex-wrap: nowrap; } }


/* ============================================================
   4. HERO SLIDER & SWIPER KATEGORİ MENÜSÜ (BİRLEŞTİRİLDİ)
   ============================================================ */
/* Hero Görseli & Okunabilirlik (V3.1 & V3.2) */
.section-hero-slider { background: transparent !important; height: auto !important; margin-bottom: 0 !important; padding: 0 !important; border: none !important; }
.hero-slide { width: 100% !important; height: 550px !important; background-size: cover !important; background-position: center top !important; background-repeat: no-repeat !important; display: flex !important; align-items: center !important; justify-content: flex-start !important; position: relative !important; z-index: 1; }
.hero-slide::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 100%) !important; z-index: -1; }
.hero-content { position: relative; z-index: 10; padding-left: 8% !important; max-width: 700px; text-align: left; }
.hero-content h2 { color: #fff !important; font-size: 56px !important; font-weight: 900 !important; text-shadow: 0 5px 20px rgba(0,0,0,0.9); line-height: 1.1 !important; margin-bottom: 20px !important; letter-spacing: -2px; }
.hero-content p { color: #f0f0f0 !important; font-size: 18px !important; font-weight: 500; text-shadow: 0 2px 10px rgba(0,0,0,0.8); margin-bottom: 30px !important; opacity: 0.9; }

/* Hero Butonları */
.hero-btn { background: #fff !important; color: #000 !important; padding: 15px 45px !important; font-size: 16px !important; font-weight: 800 !important; text-transform: uppercase; border-radius: 50px !important; border: 2px solid #fff !important; box-shadow: 0 10px 25px rgba(0,0,0,0.5) !important; transition: all 0.3s ease !important; display: inline-block; }
.hero-btn:hover { background: #00d68f !important; border-color: #00d68f !important; color: #000 !important; transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0, 214, 143, 0.4) !important; }
.hero-btn.btn-black { background: #00d68f !important; color: #000 !important; border-color: #00d68f !important; }

/* Swiper Kategori Butonları (Ray Sistemi) */
.v-category-rail-wrapper { width: 100%; background: #fff; padding: 15px 0; border-bottom: 1px solid #f5f5f5; margin-bottom: 20px; display: flex; justify-content: center; }
.vansiraMenuSwiper { width: 100% !important; max-width: 1400px !important; margin: 0 auto !important; overflow: visible !important; }
.v-cat-pill { display: inline-flex; align-items: center; justify-content: center; padding: 10px 24px; border-radius: 50px; background: #00d68f !important; color: #000 !important; border: 1px solid #00d68f !important; box-shadow: 0 4px 10px rgba(0, 214, 143, 0.3) !important; font-size: 14px; font-weight: 700; text-decoration: none !important; transition: all 0.3s ease; opacity: 1 !important; }
.v-cat-pill:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(0, 214, 143, 0.5) !important; background: #00c080 !important; }

/* Swiper Okları (Masaüstü) */
.v-menu-next, .v-menu-prev { display: flex !important; align-items: center; justify-content: center; width: 45px !important; height: 45px !important; background-color: #000 !important; border-radius: 50% !important; box-shadow: 0 5px 15px rgba(0,0,0,0.2) !important; z-index: 999 !important; transition: all 0.3s ease !important; cursor: pointer; position: absolute !important; top: 50% !important; transform: translateY(-50%) !important; }
.v-menu-next::after, .v-menu-prev::after { color: #00d68f !important; font-size: 18px !important; font-weight: 900 !important; }
.v-menu-next { right: 10px !important; } .v-menu-prev { left: 10px !important; }
.v-menu-next:hover, .v-menu-prev:hover { background-color: #00d68f !important; transform: translateY(-50%) scale(1.1) !important; box-shadow: 0 0 20px rgba(0, 214, 143, 0.6) !important; }
.v-menu-next:hover::after, .v-menu-prev:hover::after { color: #000 !important; }

/* Hero & Swiper Mobil Uyumu */
@media (min-width: 769px) { .vansiraMenuSwiper .swiper-wrapper { display: flex !important; justify-content: center !important; width: 100% !important; } }
@media (max-width: 768px) {
    .hero-slide { height: 50vh !important; background-position: center center !important; justify-content: center !important; align-items: flex-end !important; padding-bottom: 60px !important; }
    .hero-slide::before { background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0) 100%) !important; }
    .hero-content { padding-left: 20px !important; padding-right: 20px !important; text-align: center !important; }
    .hero-content h2 { font-size: 32px !important; }
    .vansiraMenuSwiper .swiper-wrapper { justify-content: flex-start !important; }
    .v-menu-next, .v-menu-prev { display: none !important; }
    .v-menu-btn { padding: 10px 20px !important; font-size: 13px !important; }
}

/* ============================================================
   5. WOOCOMMERCE KARTLARI & DİĞER BÖLÜMLER
   ============================================================ */
/* Ürün Grid */
.woocommerce ul.products, .site-main ul.products { display: grid !important; gap: 15px !important; margin: 30px 0 !important; width: 100% !important; float: none !important; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }

/* Kart Tasarımı */
.woocommerce ul.products li.product { float: none !important; width: 100% !important; margin: 0 !important; background: var(--v-white) !important; border: 1px solid #eee !important; border-radius: 12px !important; padding: 15px !important; box-sizing: border-box !important; display: flex !important; flex-direction: column; align-items: center; text-align: center; min-height: 360px !important; }
.woocommerce ul.products li.product img { width: 100% !important; height: 180px !important; object-fit: contain !important; margin-bottom: 15px !important; background: transparent !important; }
.woocommerce ul.products li.product h2 { font-size: 14px !important; font-weight: 700 !important; color: #333 !important; line-height: 1.4 !important; min-height: 40px !important; margin-bottom: 10px !important; }
.woocommerce ul.products li.product .price { font-size: 16px !important; font-weight: 900 !important; color: var(--v-black) !important; display: block !important; margin-bottom: 15px !important; }
.woocommerce ul.products li.product .button { width: 100% !important; background: var(--v-black) !important; color: var(--v-white) !important; padding: 10px !important; border-radius: 8px !important; font-weight: 600 !important; margin-top: auto !important; white-space: nowrap !important; }

@media (max-width: 768px) { .woocommerce ul.products { grid-template-columns: repeat(2, 1fr) !important; } }
@media (min-width: 769px) { .woocommerce ul.products { grid-template-columns: repeat(4, 1fr) !important; } }

/* Diğer Ana Sayfa Blokları */
.section-wide-banner { margin: 40px 0; }
.banner-inner { width: 100%; height: 250px; border-radius: 20px; background-size: cover; background-position: center; background-attachment: fixed; display: flex; align-items: center; justify-content: flex-end; padding-right: 60px; position: relative; overflow: hidden; }
.banner-text { background: rgba(255,255,255,0.95); padding: 30px; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); max-width: 400px; }
.banner-text h3 { font-size: 24px; font-weight: 900; margin-bottom: 10px; color: #000; }
.banner-text a { color: #00d68f; font-weight: 800; text-transform: uppercase; font-size: 14px; }
@media (max-width: 768px) { .banner-inner { background-attachment: scroll; padding: 20px; align-items: center; justify-content: center; height: auto; } .banner-text { width: 100%; text-align: center; } }

/* Blog */
.section-blog { margin: 60px 0; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; border-bottom: 2px solid #f0f0f0; padding-bottom: 15px; }
.section-header h3 { font-size: 22px; font-weight: 800; text-transform: uppercase; margin: 0; }
.view-all { font-size: 14px; font-weight: 600; color: #666; text-decoration: underline !important; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.blog-card { background: #fff; border-radius: 15px; overflow: hidden; border: 1px solid #eee; transition: 0.3s; display: flex; flex-direction: column; }
.blog-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.05); border-color: #00d68f; }
.blog-img { height: 200px; overflow: hidden; display: block; }
.blog-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.blog-card:hover .blog-img img { transform: scale(1.1); }
.blog-info { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.blog-date { font-size: 12px; color: #999; font-weight: 600; margin-bottom: 10px; display: block; }
.blog-info h4 { font-size: 18px; font-weight: 700; margin-bottom: 10px; line-height: 1.4; }
.blog-info p { font-size: 14px; color: #666; margin-bottom: 0; line-height: 1.6; }
@media (max-width: 992px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: #0d0d0e; color: #fff; padding: 60px 0 20px; margin-top: 50px; }
.vansira-footer-inner { max-width: 1400px; margin: 0 auto; padding: 0 15px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }
.v-footer-heading { color: #fff; font-size: 14px; font-weight: 800; margin-bottom: 20px; }
.v-footer-links a { color: #aaa; font-size: 13px; line-height: 2; display: block; }

/* ============================================================
   6. SIDEBAR TEMİZLİĞİ & KATEGORİ ÖZEL DÜZELTMELER
   ============================================================ */
/* Genel Widget/Sidebar Temizliği */
#secondary .widget .widget-title, #secondary .widget h3, .widget-area .widget-title, .widget-area h3, .widget_themify_wc_product_filter .widget-title, #shopSidebar .widget-title { border: none !important; border-left: none !important; border-bottom: none !important; background: transparent !important; padding-left: 0 !important; margin-left: 0 !important; box-shadow: none !important; }
.widget-title::before, .widget-title::after, .widget h3::before { display: none !important; content: none !important; width: 0 !important; height: 0 !important; }
.themify_wc_product_filter_title, .widget_themify_wc_product_filter h4 { font-family: 'Inter', sans-serif !important; font-weight: 900 !important; font-size: 16px !important; color: #000 !important; text-transform: uppercase; margin-bottom: 15px !important; padding-bottom: 0 !important; }
.ui-slider .ui-slider-range { background-color: #00d68f !important; }
.ui-slider .ui-slider-handle { border: 2px solid #fff !important; background: #000 !important; }

/* 🔥 YENİLENMİŞ BİLGİSAYARLAR KATEGORİSİ - SİDEBAR KATİLİ 🔥 */
body.term-yenilenmis-oyun-bilgisayarlari #secondary,
body.term-yenilenmis-oyun-bilgisayarlari .widget-area,
body.term-yenilenmis-oyun-bilgisayarlari .wcpf-sidebar,
body.term-yenilenmis-oyun-bilgisayarlari aside { display: none !important; }

body.term-yenilenmis-oyun-bilgisayarlari #primary,
body.term-yenilenmis-oyun-bilgisayarlari .site-main { width: 100% !important; float: none !important; max-width: 100% !important; padding: 0 !important; }

body.term-yenilenmis-oyun-bilgisayarlari header.woocommerce-products-header { background: transparent !important; border: none !important; padding: 0 !important; margin-bottom: 0 !important; }
body.term-yenilenmis-oyun-bilgisayarlari h1.woocommerce-products-header__title.page-title { display: none !important; }