/*
Theme Name: Astra Child
Template: astra
Version: 4.0
*/
@import url('../astra/style.css');

/* Logo - tekrar goster */
.ast-site-identity .site-title { display: block !important; }
.ast-site-identity .site-title a { 
    color: #fff !important; 
    font-size: 22px !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
    text-transform: uppercase !important;
}

/* Footer - sadece custom bar */
.site-below-footer-wrap,
.site-primary-footer-wrap,
.ast-footer-copyright { display: none !important; }
#cly-footer-bar { display: flex !important; }

/* HEADER */
#masthead,.main-header-bar{background:#0f172a!important}

/* HERO TAM GENİŞLİK */
.home #primary,.home .ast-article-single,.home .entry-content{padding:0!important;margin:0!important;max-width:100%!important}
.home .ast-container{max-width:100%!important;padding:0!important}
.home .entry-content>.wp-block-html{margin-left:0!important;margin-right:0!important;width:100%!important;max-width:100%!important}

/* FOOTER */
.site-below-footer-wrap,.site-primary-footer-wrap,.ast-footer-copyright{display:none!important}
#cly-footer-bar{display:flex!important}

/* HERO TAM GENISLIK - beyaz kenar kapat */
.home #content,
.home .site-content,
.home #primary,
.home .ast-article-single,
.home .entry-content,
.home .hentry,
.home .ast-woocommerce-container {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
}
.home .ast-container,
.home .site-content > .ast-container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* URUN KARTLARI */
.woocommerce ul.products { display:grid!important; grid-template-columns:repeat(4,1fr)!important; gap:14px!important; margin:0!important }
.woocommerce ul.products li.product { background:#fff!important; border-radius:12px!important; border:1px solid #e2e8f0!important; overflow:hidden!important; padding:0!important; margin:0!important; float:none!important; width:auto!important; transition:transform .2s,box-shadow .2s!important }
.woocommerce ul.products li.product:hover { transform:translateY(-3px)!important; box-shadow:0 8px 24px rgba(0,0,0,.1)!important; border-color:#bfdbfe!important }
.woocommerce ul.products li.product a img { width:100%!important; height:180px!important; object-fit:contain!important; background:#f8fafc!important; padding:12px!important; margin:0!important; display:block!important }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size:13px!important; font-weight:600!important; color:#0f172a!important; padding:10px 12px 4px!important; margin:0!important; height:46px!important; overflow:hidden!important; display:-webkit-box!important; -webkit-line-clamp:2!important; -webkit-box-orient:vertical!important }
.woocommerce ul.products li.product .price { font-size:16px!important; font-weight:800!important; color:#0f172a!important; padding:4px 12px 8px!important; display:block!important; margin:0!important }
.woocommerce ul.products li.product .button { display:block!important; margin:0 12px 12px!important; padding:10px!important; background:#3b82f6!important; color:#fff!important; border:none!important; border-radius:8px!important; font-size:13px!important; font-weight:700!important; text-align:center!important; width:calc(100% - 24px)!important }
.woocommerce ul.products li.product .button:hover { background:#2563eb!important; color:#fff!important }

/* SIDEBAR */
#secondary,.widget-area { background:#fff!important; border-radius:12px!important; border:1px solid #e2e8f0!important; padding:20px!important }
.widget-title,.widgettitle { font-size:12px!important; font-weight:700!important; color:#0f172a!important; text-transform:uppercase!important; letter-spacing:.5px!important; margin-bottom:14px!important; padding-bottom:10px!important; border-bottom:2px solid #3b82f6!important }

/* RESPONSIVE */
@media(max-width:1024px){.woocommerce ul.products{grid-template-columns:repeat(3,1fr)!important}}
@media(max-width:768px){.woocommerce ul.products{grid-template-columns:repeat(2,1fr)!important;gap:10px!important}}

/* Hero beyaz kenar kapat */
.home #primary,
.home #content,
.home .site-content,
.home .hentry,
.home .ast-article-single,
.home .entry-content,
.home .ast-woocommerce-container {
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}
.home .ast-container,
.home .site-content > .ast-container {
    max-width: 100% !important;
    padding: 0 !important;
}

/* Scroll to top - WhatsApp'in soluna */
#ast-scroll-top {
    bottom: 24px !important;
    right: 86px !important;
    z-index: 9988 !important;
}
/* WhatsApp sabit saga */
#cly-wa-btn {
    bottom: 24px !important;
    right: 24px !important;
    z-index: 9990 !important;
}

/* MAGAZA SIDEBAR */
#secondary .widget, .widget-area .widget {
    background: #fff !important;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    padding: 0 !important;
    margin-bottom: 12px !important;
    overflow: hidden !important;
}
#secondary .widget-title, .widget-area .widgettitle {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #64748b !important;
    text-transform: uppercase !important;
    letter-spacing: .6px !important;
    padding: 13px 16px 10px !important;
    margin: 0 !important;
    border-bottom: 1px solid #f1f5f9 !important;
    background: #f8fafc !important;
}
.product-categories {
    max-height: 300px !important;
    overflow-y: auto !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 6px 0 !important;
    scrollbar-width: thin !important;
    scrollbar-color: #e2e8f0 transparent !important;
}
.product-categories::-webkit-scrollbar { width: 3px !important; }
.product-categories::-webkit-scrollbar-thumb { background: #cbd5e1 !important; border-radius: 3px !important; }
.product-categories li a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 7px 16px !important;
    font-size: 13px !important;
    color: #334155 !important;
    text-decoration: none !important;
    transition: all .15s !important;
}
.product-categories li a:hover {
    background: #eff6ff !important;
    color: #3b82f6 !important;
    padding-left: 20px !important;
}
.product-categories .current-cat > a {
    background: #eff6ff !important;
    color: #3b82f6 !important;
    font-weight: 700 !important;
    border-left: 3px solid #3b82f6 !important;
}
.product-categories .count {
    background: #f1f5f9 !important;
    color: #94a3b8 !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    padding: 1px 6px !important;
    border-radius: 8px !important;
}
.widget_price_filter { padding: 14px 16px !important; }
.price_slider_wrapper .button {
    background: #3b82f6 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    width: 100% !important;
    padding: 9px !important;
    font-weight: 700 !important;
    font-size: 12px !important;
    margin-top: 10px !important;
    cursor: pointer !important;
}

























/* Kurumsal Dropdown - cly-dropdown */
.main-header-menu .menu-item-has-children > a::after {
    content: ' ▾';
    font-size: 10px;
    opacity: .6;
}
.main-header-menu .sub-menu {
    background: #0f172a !important;
    border: 1px solid rgba(255,255,255,.1) !important;
    border-radius: 10px !important;
    padding: 6px !important;
    min-width: 160px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.3) !important;
}
.main-header-menu .sub-menu .menu-item a {
    color: rgba(255,255,255,.8) !important;
    font-size: 13px !important;
    padding: 9px 14px !important;
    border-radius: 7px !important;
    transition: all .15s !important;
    display: block !important;
}
.main-header-menu .sub-menu .menu-item a:hover {
    background: rgba(59,130,246,.15) !important;
    color: #3b82f6 !important;
}

/* Urun Yorumlar Bolumu - cly-reviews */
.woocommerce-Reviews {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 2px solid #f1f5f9;
}
.woocommerce-Reviews-title {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin-bottom: 24px !important;
}
#review_form .comment-form-rating label,
#review_form .comment-form-comment label {
    font-weight: 600 !important;
    color: #374151 !important;
    font-size: 13px !important;
}
#review_form #comment {
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
#review_form #submit {
    background: #3b82f6 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 11px 24px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    cursor: pointer !important;
}
.comment-text .description {
    background: #f8fafc !important;
    border-radius: 10px !important;
    padding: 16px !important;
    border: 1px solid #e2e8f0 !important;
}
.woocommerce-noreviews {
    background: #f8fafc;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

/* ===== MOBİL ===== */
@media (max-width: 921px) {
    /* Sayfa taşmasını önle */
    html, body { overflow-x: hidden !important; max-width: 100vw !important; }
    
    /* Mobil header - koyu */
    #ast-mobile-header .ast-primary-header-bar,
    #ast-mobile-header .main-header-bar,
    .ast-header-break-point .main-header-bar {
        background: #0f172a !important;
        border-bottom: 1px solid rgba(255,255,255,.08) !important;
        width: 100% !important;
        max-width: 100vw !important;
        overflow: hidden !important;
    }

    /* Logo */
    #ast-mobile-header .site-title a {
        color: #fff !important;
        font-size: 16px !important;
        font-weight: 900 !important;
        white-space: nowrap !important;
        writing-mode: horizontal-tb !important;
        -webkit-writing-mode: horizontal-tb !important;
    }
    #ast-mobile-header .site-title a::after {
        content: "." !important;
        color: #3b82f6 !important;
    }

    /* Menü - tüm öğeler yatay, sağda */
    #ast-mobile-header .ast-builder-menu-1,
    #ast-mobile-header nav,
    #ast-mobile-header .main-navigation {
        background: transparent !important;
    }
    #ast-mobile-header .main-header-menu {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        background: transparent !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    #ast-mobile-header .main-header-menu .menu-item {
        background: transparent !important;
        display: inline-flex !important;
        align-items: center !important;
    }
    #ast-mobile-header .main-header-menu .menu-item a,
    #ast-mobile-header .main-header-menu .menu-item .menu-link {
        writing-mode: horizontal-tb !important;
        -webkit-writing-mode: horizontal-tb !important;
        text-orientation: mixed !important;
        white-space: nowrap !important;
        color: rgba(255,255,255,.85) !important;
        font-size: 12px !important;
        padding: 8px 8px !important;
        background: transparent !important;
        display: inline-flex !important;
        align-items: center !important;
        line-height: 1 !important;
    }

    /* Dropdown gizle */
    /* sub-menu mobilde aktif */
    /* ast-menu-toggle mobilde aktif */
    #ast-mobile-header .ast-header-search { display: none !important; }
    #ast-mobile-header .menu-item a[href*="hakkimizda"] { display: none !important; }

    /* Sepet butonu */
    #cly-cart-trigger,
    .cly-cart-btn {
        padding: 7px 12px !important;
        font-size: 12px !important;
        border-radius: 16px !important;
        white-space: nowrap !important;
        writing-mode: horizontal-tb !important;
        -webkit-writing-mode: horizontal-tb !important;
    }

    /* Hero tam genişlik */
    .cly-hero, .cly-slider-wrap {
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        overflow: hidden !important;
    }

    /* İçerik taşmasını önle */
    .ast-container,
    #primary,
    .site-content,
    .entry-content {
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    /* Ürün grid 2 kolon */
    .woocommerce ul.products {
        grid-template-columns: repeat(2,1fr) !important;
        gap: 10px !important;
    }
    .woocommerce ul.products li.product a img {
        height: 140px !important;
    }
}

/* MOBİL DROPDOWN */
@media (max-width: 921px) {
    #ast-mobile-header .sub-menu {
        background: #1e293b !important;
        border: 1px solid rgba(255,255,255,.1) !important;
        border-radius: 8px !important;
        padding: 4px !important;
        min-width: 160px !important;
        z-index: 9999 !important;
    }
    #ast-mobile-header .sub-menu .menu-item a,
    #ast-mobile-header .sub-menu .menu-item .menu-link {
        color: rgba(255,255,255,.8) !important;
        font-size: 12px !important;
        padding: 8px 12px !important;
        display: block !important;
        writing-mode: horizontal-tb !important;
        -webkit-writing-mode: horizontal-tb !important;
    }
    #ast-mobile-header .sub-menu .menu-item a:hover {
        color: #3b82f6 !important;
        background: rgba(59,130,246,.1) !important;
        border-radius: 6px !important;
    }
    #ast-mobile-header .ast-menu-toggle {
        color: rgba(255,255,255,.6) !important;
        background: transparent !important;
        border: none !important;
    }
}

/* ASTRA SEPET İKONU */
.ast-site-header-cart .count,
.ast-header-woo-cart .count {
    background: #3b82f6 !important;
    color: #fff !important;
}
.ast-site-header-cart a,
.ast-header-woo-cart a {
    color: #fff !important;
}
@media (max-width: 921px) {
    .ast-site-header-cart,
    .ast-header-woo-cart {
        display: flex !important;
        align-items: center !important;
    }
    .ast-site-header-cart .count,
    .ast-header-woo-cart .count {
        background: #3b82f6 !important;
        color: #fff !important;
        font-size: 10px !important;
    }
}

/* MOBİL SEPET */
@media (max-width: 921px) {
    .ast-header-break-point .ast-site-header-cart { display:flex!important; align-items:center!important; }
    .ast-header-break-point .ast-site-header-cart a { color:#fff!important; writing-mode:horizontal-tb!important; -webkit-writing-mode:horizontal-tb!important; }
    .ast-header-break-point .ast-site-header-cart .count { background:#3b82f6!important; color:#fff!important; font-size:10px!important; }
    #ast-mobile-header .site-title a { font-size:13px!important; letter-spacing:-0.5px!important; }
}

/* MOBIL MAGAZA - Filtre Drawer */
@media(max-width:768px){
    /* Sidebar gizle, drawer ile aç */
    #secondary,.widget-area{display:none!important;}
    
    /* Ürün grid 2 kolon */
    .woocommerce ul.products{grid-template-columns:repeat(2,1fr)!important;gap:8px!important;}
    .woocommerce ul.products li.product a img{height:140px!important;}
    .woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:12px!important;height:40px!important;padding:8px 10px 2px!important;}
    .woocommerce ul.products li.product .price{font-size:14px!important;padding:2px 10px 6px!important;}
    .woocommerce ul.products li.product .button{font-size:12px!important;padding:8px!important;margin:0 8px 8px!important;width:calc(100% - 16px)!important;}
    
    /* Üst filtre bar */
    .cly-shop-topbar{display:flex!important;}
    
    /* Filtre drawer overlay */
    #cly-filter-overlay{display:block;}
    #cly-filter-drawer{display:flex;}
}

/* Filtre topbar - mobilde görünür */
.cly-shop-topbar{
    display:none;
    align-items:center;
    justify-content:space-between;
    padding:10px 16px;
    background:#fff;
    border-bottom:1px solid #e5e7eb;
    position:sticky;
    top:0;
    z-index:100;
    margin-bottom:12px;
}
.cly-filter-btn{
    display:flex;
    align-items:center;
    gap:8px;
    background:#0f172a;
    color:#fff;
    border:none;
    border-radius:20px;
    padding:9px 18px;
    font-size:13px;
    font-weight:700;
    cursor:pointer;
}
.cly-sort-select{
    border:1px solid #e5e7eb;
    border-radius:20px;
    padding:8px 14px;
    font-size:13px;
    color:#0f172a;
    background:#fff;
    outline:none;
}
.cly-result-count{
    font-size:12px;
    color:#6b7280;
}

/* Filtre Drawer */
#cly-filter-overlay{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.5);
    z-index:9998;
}
#cly-filter-drawer{
    display:none;
    position:fixed;
    top:0;
    left:-100%;
    width:80%;
    max-width:300px;
    height:100vh;
    background:#fff;
    z-index:9999;
    flex-direction:column;
    transition:left .3s ease;
    overflow-y:auto;
}
#cly-filter-drawer.open{left:0;}
.cly-drawer-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:16px 20px;
    border-bottom:1px solid #e5e7eb;
    position:sticky;
    top:0;
    background:#fff;
    z-index:1;
}
.cly-drawer-head h3{font-size:16px;font-weight:700;color:#0f172a;margin:0;}
.cly-drawer-close{background:none;border:none;font-size:22px;cursor:pointer;color:#6b7280;padding:0;}
.cly-drawer-body{padding:16px 20px;flex:1;}
.cly-drawer-body .widget{margin-bottom:24px;}
.cly-drawer-body .widget-title,.cly-drawer-body .widgettitle{font-size:11px!important;font-weight:700!important;color:#0f172a!important;text-transform:uppercase!important;letter-spacing:.5px!important;margin-bottom:12px!important;padding-bottom:8px!important;border-bottom:2px solid #3b82f6!important;}
.cly-drawer-apply{
    padding:16px 20px;
    border-top:1px solid #e5e7eb;
    position:sticky;
    bottom:0;
    background:#fff;
}
.cly-drawer-apply button{
    width:100%;
    padding:13px;
    background:#3b82f6;
    color:#fff;
    border:none;
    border-radius:10px;
    font-size:15px;
    font-weight:700;
    cursor:pointer;
}

/* Mağaza başlığı ve breadcrumb gizle */
.woocommerce-breadcrumb,
.woocommerce .woocommerce-breadcrumb,
.woocommerce-page .woocommerce-breadcrumb { display:none!important; }
.woocommerce-products-header,
.woocommerce-products-header__title,
.page-title { display:none!important; }
.ast-woo-shop-archive-description { display:none!important; }

/* Filtre drawer düzeltme */
#cly-filter-drawer {
    left:-320px!important;
    transition:left .3s ease!important;
}
#cly-filter-drawer.open {
    left:0!important;
}
#cly-filter-overlay {
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.5);
    z-index:9998;
}

@media(max-width:768px) {
    /* Breadcrumb ve başlık gizle */
    nav.woocommerce-breadcrumb { display:none!important; }
    h1.woocommerce-products-header__title { display:none!important; }
    .ast-shop-summary-wrap { display:none!important; }
    
    /* Topbar düzelt */
    .cly-shop-topbar {
        display:flex!important;
        gap:8px;
        padding:10px 12px;
        background:#fff;
        border-bottom:1px solid #e5e7eb;
        position:sticky;
        top:60px;
        z-index:99;
    }
    .cly-filter-btn {
        flex-shrink:0;
        display:flex;
        align-items:center;
        gap:6px;
        background:#0f172a;
        color:#fff;
        border:none;
        border-radius:20px;
        padding:9px 16px;
        font-size:13px;
        font-weight:700;
        cursor:pointer;
    }
    .cly-sort-select {
        flex:1;
        border:1px solid #e5e7eb;
        border-radius:20px;
        padding:8px 12px;
        font-size:13px;
        color:#0f172a;
        background:#fff;
        outline:none;
    }
    .cly-result-count { display:none; }
    
    /* WC kendi sıralama dropdown'ını gizle */
    .woocommerce-ordering { display:none!important; }
    .woocommerce-result-count { display:none!important; }
}
