

/* Store product list filter/sort row */
.store-list-topbar{
    width:100% !important;
    margin:0 0 16px 0 !important;
    padding:0 0 10px 0 !important;
    border-bottom:2px solid #2563eb !important;
    box-sizing:border-box !important;
}

.store-list-topbar .store-category-breadcrumb,
.store-list-topbar .store-list-heading{
    margin:0 0 10px 0 !important;
    padding:0 !important;
    border-bottom:0 !important;
}

.store-product-filter-row{
    display:flex !important;
    align-items:end !important;
    gap:12px !important;
    flex-wrap:wrap !important;
    margin:0 !important;
    padding:0 !important;
}

.store-product-filter-row label{
    display:grid !important;
    gap:5px !important;
    font-size:13px !important;
    font-weight:700 !important;
    color:#334155 !important;
}

.store-product-filter-row select{
    height:38px !important;
    min-width:170px !important;
    border:1px solid #d8e1ec !important;
    border-radius:10px !important;
    padding:0 10px !important;
    background:#fff !important;
}

.store-product-filter-row .store-stock-check{
    display:flex !important;
    align-items:center !important;
    gap:8px !important;
    height:38px !important;
    padding:0 12px !important;
    border:1px solid #d8e1ec !important;
    border-radius:10px !important;
    background:#fff !important;
}

.store-product-filter-row .store-stock-check input{
    margin:0 !important;
}

.store-product-filter-row button{
    height:38px !important;
    border:0 !important;
    border-radius:10px !important;
    padding:0 16px !important;
    background:var(--yellow, #fbbf24) !important;
    color:var(--dark, #111827) !important;
    font-weight:800 !important;
    cursor:pointer !important;
}

.store-filter-clear{
    height:38px !important;
    display:inline-flex !important;
    align-items:center !important;
    color:#2563eb !important;
    text-decoration:none !important;
    font-weight:700 !important;
}

@media(max-width:700px){
    .store-product-filter-row{
        display:grid !important;
        grid-template-columns:1fr !important;
    }

    .store-product-filter-row select,
    .store-product-filter-row button,
    .store-filter-clear{
        width:100% !important;
    }
}

/* Store category sidebar restore and product filter row */
.products-layout-page,
.product-detail-with-sidebar{
    display:grid !important;
    grid-template-columns:260px minmax(0, 1fr) !important;
    gap:22px !important;
    align-items:start !important;
    width:100% !important;
    box-sizing:border-box !important;
}

.products-sidebar,
.product-detail-with-sidebar .products-sidebar{
    width:260px !important;
    min-width:260px !important;
    max-width:260px !important;
    box-sizing:border-box !important;
    margin:0 !important;
    padding:16px !important;
    background:#ffffff !important;
    border:1px solid #dbe3ed !important;
    border-radius:16px !important;
    box-shadow:0 2px 10px rgba(15,23,42,.04) !important;
}

.products-sidebar h3{
    margin:0 0 12px 0 !important;
    padding:0 !important;
    color:#0f172a !important;
    font-size:18px !important;
    line-height:1.25 !important;
    font-weight:800 !important;
}

.products-sidebar .sidebar-category{
    display:block !important;
    box-sizing:border-box !important;
    width:100% !important;
    margin:0 0 6px 0 !important;
    padding:10px 12px !important;
    border-radius:10px !important;
    color:#16243b !important;
    background:transparent !important;
    text-decoration:none !important;
    font-size:14px !important;
    line-height:1.35 !important;
    font-weight:700 !important;
    transition:background .15s ease, color .15s ease !important;
}

.products-sidebar .sidebar-category.child{
    padding-left:24px !important;
    font-size:13px !important;
    font-weight:600 !important;
    color:#334155 !important;
}

.products-sidebar .sidebar-category:hover,
.products-sidebar .sidebar-category.active{
    background:#fed7aa !important;
    color:#c2410c !important;
}

.products-sidebar .sidebar-category.child:hover,
.products-sidebar .sidebar-category.child.active{
    background:#fed7aa !important;
    color:#c2410c !important;
}

.products-main-area,
.product-detail-content{
    min-width:0 !important;
    width:100% !important;
    box-sizing:border-box !important;
}

.store-list-topbar{
    width:100% !important;
    margin:0 0 16px 0 !important;
    padding:0 0 10px 0 !important;
    border-bottom:2px solid #2563eb !important;
    box-sizing:border-box !important;
}

.store-list-topbar .store-category-breadcrumb,
.store-list-topbar .store-list-heading{
    margin:0 0 10px 0 !important;
    padding:0 !important;
    border-bottom:0 !important;
}

.store-category-breadcrumb{
    display:flex !important;
    align-items:center !important;
    flex-wrap:wrap !important;
    gap:7px !important;
    color:#2563eb !important;
    font-size:16px !important;
    line-height:1.35 !important;
}

.store-category-breadcrumb a{
    color:#2563eb !important;
    text-decoration:none !important;
    font-size:16px !important;
    line-height:1.35 !important;
    font-weight:500 !important;
}

.store-category-breadcrumb .breadcrumb-current{
    color:#2563eb !important;
    font-size:16px !important;
    line-height:1.35 !important;
    font-weight:500 !important;
}

.store-list-heading{
    color:#2563eb !important;
    font-size:16px !important;
    line-height:1.35 !important;
    font-weight:500 !important;
}

.store-product-filter-row{
    display:flex !important;
    align-items:end !important;
    gap:12px !important;
    flex-wrap:wrap !important;
    margin:0 !important;
    padding:0 !important;
}

.store-product-filter-row label{
    display:grid !important;
    gap:5px !important;
    font-size:13px !important;
    font-weight:700 !important;
    color:#334155 !important;
}

.store-product-filter-row select{
    height:38px !important;
    min-width:170px !important;
    border:1px solid #d8e1ec !important;
    border-radius:10px !important;
    padding:0 10px !important;
    background:#fff !important;
}

.store-product-filter-row .store-stock-check{
    display:flex !important;
    align-items:center !important;
    gap:8px !important;
    height:38px !important;
    padding:0 12px !important;
    border:1px solid #d8e1ec !important;
    border-radius:10px !important;
    background:#fff !important;
}

.store-product-filter-row .store-stock-check input{
    margin:0 !important;
}

.store-product-filter-row button{
    height:38px !important;
    border:0 !important;
    border-radius:10px !important;
    padding:0 16px !important;
    background:var(--yellow, #fbbf24) !important;
    color:var(--dark, #111827) !important;
    font-weight:800 !important;
    cursor:pointer !important;
}

.store-filter-clear{
    height:38px !important;
    display:inline-flex !important;
    align-items:center !important;
    color:#2563eb !important;
    text-decoration:none !important;
    font-weight:700 !important;
}

@media(max-width:900px){
    .products-layout-page,
    .product-detail-with-sidebar{
        grid-template-columns:1fr !important;
    }

    .products-sidebar,
    .product-detail-with-sidebar .products-sidebar{
        width:100% !important;
        min-width:0 !important;
        max-width:none !important;
    }
}

@media(max-width:700px){
    .store-product-filter-row{
        display:grid !important;
        grid-template-columns:1fr !important;
    }

    .store-product-filter-row select,
    .store-product-filter-row button,
    .store-filter-clear{
        width:100% !important;
    }
}

/* Store product filter auto submit controls */
.store-product-filter-row{
    align-items:end !important;
}

.store-product-filter-row select{
    cursor:pointer !important;
}

.store-product-filter-row .store-stock-check{
    cursor:pointer !important;
    user-select:none !important;
}

.store-product-filter-row .store-stock-check span{
    white-space:nowrap !important;
}

/* Unified storefront title weights */
.store-list-heading,
.store-category-breadcrumb a,
.store-category-breadcrumb .breadcrumb-current,
.store-category-breadcrumb .breadcrumb-separator{
    font-size:16px !important;
    line-height:1.35 !important;
    font-weight:500 !important;
}

.store-list-heading,
.store-category-breadcrumb a,
.store-category-breadcrumb .breadcrumb-current{
    color:#2563eb !important;
}


/* Store horizontal shift fix
   Home / cart gibi sayfalarda ekranın sağa kaymasını engeller.
*/
html,
body{
    width:100% !important;
    max-width:100% !important;
    overflow-x:hidden !important;
}

*,
*::before,
*::after{
    box-sizing:border-box !important;
}

.wrap{
    width:min(1180px, calc(100% - 32px)) !important;
    max-width:1180px !important;
    margin-left:auto !important;
    margin-right:auto !important;
    padding-left:0 !important;
    padding-right:0 !important;
    box-sizing:border-box !important;
}

/* Geniş görsel/hero/kart alanları viewport dışına taşmasın */
.main,
.hero,
.home-hero,
.home-showcase,
.store-hero,
.home-banner,
.product-grid,
.products-grid,
.cart-page,
.cart-layout,
.checkout-layout{
    max-width:100% !important;
    box-sizing:border-box !important;
}

/* Sepet tabloları küçük ekranlarda sayfayı sağa ittirmesin */
.cart-page table,
.cart-layout table,
.cart-table,
.admin-simple-table{
    max-width:100% !important;
}

.cart-page,
.cart-layout{
    overflow-x:auto !important;
}

/* Resimler ve medya taşıp sayfayı genişletmesin */
img,
svg,
video,
canvas{
    max-width:100% !important;
}

/* Header içindeki genişlikler mobil/orta ekranda sayfayı taşımasın */
.site-header,
.site-header .topbar,
.site-header .header-main{
    max-width:100% !important;
}

@media(max-width:1180px){
    .wrap{
        width:calc(100% - 28px) !important;
    }
}

@media(max-width:780px){
    .wrap{
        width:calc(100% - 20px) !important;
    }

    .main{
        padding-left:0 !important;
        padding-right:0 !important;
    }
}

/* Mobile category hamburger menu */
.store-mobile-category-toggle{
    display:none !important;
}

.store-mobile-category-panel{
    display:block !important;
}

@media(max-width:900px){
    .products-layout-page,
    .product-detail-with-sidebar{
        display:flex !important;
        flex-direction:column !important;
    }

    .products-main-area,
    .product-detail-content{
        order:1 !important;
    }

    .products-sidebar.store-mobile-category-menu,
    .product-detail-with-sidebar .products-sidebar.store-mobile-category-menu{
        order:2 !important;
        width:100% !important;
        min-width:0 !important;
        max-width:none !important;
        margin:12px 0 0 0 !important;
        padding:0 !important;
        border:0 !important;
        background:transparent !important;
        box-shadow:none !important;
    }

    .store-mobile-category-toggle{
        display:flex !important;
        width:100% !important;
        min-height:44px !important;
        align-items:center !important;
        justify-content:center !important;
        gap:10px !important;
        padding:10px 14px !important;
        border:1px solid #dbe3ed !important;
        border-radius:14px !important;
        background:#ffffff !important;
        color:#0f172a !important;
        font-size:15px !important;
        font-weight:800 !important;
        cursor:pointer !important;
        box-shadow:0 2px 10px rgba(15,23,42,.04) !important;
    }

    .store-mobile-category-icon{
        font-size:20px !important;
        line-height:1 !important;
    }

    .store-mobile-category-panel{
        display:none !important;
        margin-top:10px !important;
        padding:14px !important;
        border:1px solid #dbe3ed !important;
        border-radius:16px !important;
        background:#ffffff !important;
        box-shadow:0 2px 10px rgba(15,23,42,.04) !important;
    }

    .products-sidebar.store-mobile-category-menu.is-open .store-mobile-category-panel{
        display:block !important;
    }

    .products-sidebar.store-mobile-category-menu .store-mobile-category-panel h3{
        display:none !important;
    }
}
