.catalog-filter-options { display: flex; flex-direction: column; gap: 2px; }
.catalog-filter-options label { display: flex; align-items: center; gap: 10px; min-height: 30px; padding: 3px 8px; margin: 0 -8px; border-radius: 6px; cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.catalog-filter-options label:hover { background: #f3f8f3; color: #087d25; }
.catalog-filter-options input[type="checkbox"] { appearance: none; position: relative; opacity: 1; width: 19px; height: 19px; margin: 0; flex: 0 0 19px; border: 1px solid #c9cec9; border-radius: 4px; background: #fff; cursor: pointer; transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease; }
.catalog-filter-options input[type="checkbox"]:hover { border-color: #078b2f; }
.catalog-filter-options input[type="checkbox"]:checked { border-color: #078b2f; background: #078b2f; box-shadow: 0 0 0 2px rgba(7,139,47,.12); }
.catalog-filter-options input[type="checkbox"]:checked::after { content: ""; position: absolute; left: 50%; top: 50%; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: translate(-50%,-58%) rotate(45deg); }
.catalog-filter-options input[type="checkbox"]:focus-visible { outline: 2px solid rgba(7,139,47,.35); outline-offset: 2px; }
.catalog-filter-options small { color: #828782; font-size: 12px; }
.catalog-filter-price { padding: 2px 2px 12px; }
.catalog-filter-price-values { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; color: #7b807b; }
.catalog-filter-price-values output { min-width: 78px; padding: 7px 10px; border: 1px solid #e0e4e0; border-radius: 6px; background: #fafbfa; color: #242824; font-weight: 600; text-align: center; }
.catalog-filter-slider { position: relative; height: 22px; }
.catalog-filter-slider-track { position: absolute; top: 9px; left: 0; right: 0; height: 4px; border-radius: 4px; background: linear-gradient(to right, #dde1dd var(--price-left, 0%), #078b2f var(--price-left, 0%), #078b2f var(--price-right, 100%), #dde1dd var(--price-right, 100%)); }
.catalog-filter-slider input[type="range"] { appearance: none; position: absolute; inset: 0; width: 100%; height: 22px; margin: 0; padding: 0; border: 0; background: transparent; pointer-events: none; }
.catalog-filter-slider input[type="range"]::-webkit-slider-runnable-track { height: 4px; background: transparent; }
.catalog-filter-slider input[type="range"]::-webkit-slider-thumb { appearance: none; width: 18px; height: 18px; margin-top: -7px; border: 3px solid #fff; border-radius: 50%; background: #078b2f; box-shadow: 0 1px 5px rgba(0,0,0,.28); cursor: grab; pointer-events: auto; }
.catalog-filter-slider input[type="range"]::-moz-range-track { height: 4px; background: transparent; }
.catalog-filter-slider input[type="range"]::-moz-range-thumb { width: 13px; height: 13px; border: 3px solid #fff; border-radius: 50%; background: #078b2f; box-shadow: 0 1px 5px rgba(0,0,0,.28); cursor: grab; pointer-events: auto; }
.catalog-filter-slider input[type="range"]:focus-visible::-webkit-slider-thumb { outline: 2px solid rgba(7,139,47,.35); outline-offset: 2px; }
.catalog-filter-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 4px 0 24px; }
.catalog-filter-actions button, .catalog-filter-actions a { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 9px 14px; border: 1px solid #078b2f; border-radius: 6px; font-size: 13px; font-weight: 700; line-height: 1; text-decoration: none; text-transform: uppercase; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.catalog-filter-actions button { background: #078b2f; color: #fff; cursor: pointer; }
.catalog-filter-actions button:hover { border-color: #066f27; background: #066f27; }
.catalog-filter-actions a { background: #fff; color: #078b2f; }
.catalog-filter-actions a:hover { background: #f0f8f2; color: #066f27; }
.catalog-sort { display: flex; align-items: center; gap: 9px; margin: 0; color: #777; font-size: 13px; }
.catalog-sort select { min-width: 205px; height: 40px; padding: 0 36px 0 13px; border: 1px solid #dfe3df; border-radius: 6px; background-color: #fff; color: #252825; font: inherit; font-weight: 600; cursor: pointer; outline: none; }
.catalog-sort select:hover, .catalog-sort select:focus { border-color: #078b2f; box-shadow: 0 0 0 2px rgba(7,139,47,.1); }
@media (max-width: 767px) {
    .catalog-sort span { display: none; }
    .catalog-sort select { min-width: 180px; max-width: 58vw; }
}
.page-container.catalog-filter-loading { opacity: .55; pointer-events: none; transition: opacity .15s ease; }

/* Mobil sürətli filtrlər */
.mobile-quick-filter-shell { display: none; }
@media (max-width: 767px) {
    .mobile-quick-filter-shell { display: block; position: relative; width: 100%; margin: 0 0 10px; }
    .mobile-quick-filters {
        display: flex; align-items: center; gap: 8px; width: 100%; margin: 0;
        padding: 2px 28px 8px 0; overflow-x: auto; overscroll-behavior-inline: contain;
        scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    }
    .mobile-quick-filters::-webkit-scrollbar { display: none; }
    .mobile-quick-filters button {
        appearance: none; display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px;
        min-height: 40px; padding: 0 13px; border: 1px solid #dfe3e8; border-radius: 999px;
        background: #fff; color: #344054; font: inherit; font-size: 13px; font-weight: 650;
        white-space: nowrap; cursor: pointer; scroll-snap-align: start;
    }
    .mobile-quick-filters button:focus-visible { outline: 2px solid rgba(7,139,47,.3); outline-offset: 2px; }
    .mobile-quick-filters .mqf-all { display: block; flex: 0 0 auto; position: static; z-index: 2; margin: 0; box-shadow: none; scroll-snap-align: start; }
    .mobile-quick-filters .mqf-all a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 13px; border: 1px solid #078b2f; border-radius: 999px !important; background: #078b2f; color: #fff; font-size: 13px !important; font-weight: 650; white-space: nowrap; }
    .mobile-quick-filters .mqf-all a:hover { border-color: #078b2f; background: #078b2f; color: #fff; }
    .mqf-group-button.is-active,.mqf-group-button.is-open { border-color: #078b2f; background: #eff9f2; color: #087728; }
    .mqf-chevron { width: 7px; height: 7px; margin: -3px 1px 0 2px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .16s ease; }
    .mqf-group-button.is-open .mqf-chevron { margin-top: 3px; transform: rotate(225deg); }
    .mqf-scroll-hint { appearance: none; position: absolute; z-index: 3; top: 2px; right: 0; width: 34px; height: 40px; padding: 0; border: 0; border-radius: 0; cursor: pointer; background: linear-gradient(to right,rgba(255,255,255,0),#fff 58%); }
    .mqf-scroll-hint::after { content: ''; position: absolute; right: 4px; top: 15px; width: 7px; height: 7px; border-top: 2px solid #667085; border-right: 2px solid #667085; transform: rotate(45deg); }
    .mqf-menu { position: absolute; z-index: 12; top: 48px; left: 0; right: 0; display: flex; flex-direction: column; gap: 2px; max-height: 280px; padding: 8px; overflow-y: auto; border: 1px solid #dfe3e8; border-radius: 12px; background: #fff; box-shadow: 0 12px 30px rgba(16,24,40,.16); }
    .mqf-menu[hidden] { display: none; }
    .mqf-menu-title { padding: 5px 8px 7px; border-bottom: 1px solid #eef0f3; margin-bottom: 3px; color: #101828; font-size: 13.5px; font-weight: 700; }
    .mqf-menu .mqf-option { display: flex !important; align-items: center; justify-content: flex-start; gap: 10px; width: 100%; min-height: 40px; padding: 7px 8px; border: 0; border-radius: 8px; background: #fff !important; color: #344054 !important; font-size: 13.5px; font-weight: 500; text-align: left; white-space: normal; box-shadow: none; }
    .mqf-menu .mqf-option:hover { background: #f6f8f7 !important; }
    .mqf-check { position: relative; display: block !important; flex: 0 0 19px; width: 19px !important; height: 19px !important; box-sizing: border-box; border: 1.5px solid #c9cec9; border-radius: 5px; background: #fff; }
    .mqf-option.is-active { background: #f2fbf5 !important; color: #12772e !important; }
    .mqf-option.is-active .mqf-check { border-color: #078b2f; background: #078b2f; }
    .mqf-option.is-active .mqf-check::after { content: ''; position: absolute; left: 50%; top: 50%; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: translate(-50%,-58%) rotate(45deg); }
    #left-sidebar .sidebar-header { width: calc(100% + 32px); min-height: 48px; margin: -16px -16px 10px; padding: 0 !important; }
    #left-sidebar .sidebar-header .close { position: relative !important; inset: auto !important; display: flex !important; align-items: center; justify-content: center; gap: 10px; width: 100% !important; max-width: none !important; height: 46px !important; margin: 0 !important; padding: 0 14px; box-sizing: border-box; border: 1px solid #078b2f; border-radius: 7px; background: #078b2f; color: #fff; font-size: 13.5px; font-weight: 700; cursor: pointer; transition: background-color .15s ease,border-color .15s ease; }
    #left-sidebar .sidebar-header .close:hover { border-color: #066f27; background: #066f27; }
    #left-sidebar .sidebar-header .close::before,#left-sidebar .sidebar-header .close::after { content: none !important; display: none !important; }
    #left-sidebar .sidebar-header .close-icon { font-size: 22px; font-weight: 400; line-height: 1; }

    .page-container.show_breadcrumb_v1 #main-content,
    .page-container.show_breadcrumb_v1 #primary,
    .page-container.show_breadcrumb_v1 .woocommerce.main-products { width: 100% !important; max-width: 100% !important; min-width: 0 !important; }
    .page-container.show_breadcrumb_v1 .woocommerce.main-products .products { display: grid !important; width: 100% !important; max-width: 100% !important; min-width: 0 !important; grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 10px !important; }
    .page-container.show_breadcrumb_v1 .woocommerce.main-products .products > .product { width: auto !important; max-width: 100% !important; min-width: 0 !important; margin: 0 !important; }
    .page-container.show_breadcrumb_v1 .products .product-wrapper,
    .page-container.show_breadcrumb_v1 .products .product img { max-width: 100%; box-sizing: border-box; }
}

/* Kateqoriya nəticələri: filtr sütununa görə maksimum 4 məhsul. */
.page-container.show_breadcrumb_v1 #main-content,
.page-container.show_breadcrumb_v1 #primary,
.page-container.show_breadcrumb_v1 .woocommerce.main-products,
.page-container.show_breadcrumb_v1 .woocommerce.main-products .products{
    max-width:100% !important;
    min-width:0 !important;
}
.page-container.show_breadcrumb_v1 .woocommerce.main-products .products{
    display:grid !important;
    width:100% !important;
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    gap:16px !important;
}
.page-container.show_breadcrumb_v1 .woocommerce.main-products .products > .product{
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    margin:0 !important;
}
@media (max-width:1279px){
    .page-container.show_breadcrumb_v1 .woocommerce.main-products .products{
        grid-template-columns:repeat(4,minmax(0,1fr)) !important;
        gap:14px !important;
    }
}
@media (max-width:991px){
    .page-container.show_breadcrumb_v1 .woocommerce.main-products .products{
        grid-template-columns:repeat(3,minmax(0,1fr)) !important;
        gap:12px !important;
    }
}
@media (max-width:767px){
    .page-container.show_breadcrumb_v1 .woocommerce.main-products .products{
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
        gap:10px !important;
    }
}

/* Kateqoriya görünüş dəyişdiricisi: list rejimi grid qaydalarını üstələyir. */
.page-container.show_breadcrumb_v1 .woocommerce.main-products.list .products{
    display:flex !important;
    flex-direction:column;
    flex-wrap:nowrap;
    grid-template-columns:none !important;
    gap:0 !important;
}
.page-container.show_breadcrumb_v1 .woocommerce.main-products.list .products > .product{
    width:100% !important;
    max-width:100% !important;
    margin:0 !important;
}
.page-container.show_breadcrumb_v1 .woocommerce.main-products.list .products > .product:not(:last-child){
    margin-bottom:32px !important;
    padding-bottom:32px;
}

/* Teq səhifəsində filtr paneli gizlidir: ana səhifə kimi 5 → 4 → 3 → 2. */
body.tag-page .page-container.show_breadcrumb_v1 .woocommerce.main-products .products{
    grid-template-columns:repeat(5,minmax(0,1fr)) !important;
}
@media (max-width:1159px){
    body.tag-page .page-container.show_breadcrumb_v1 .woocommerce.main-products .products{
        grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    }
}
@media (max-width:859px){
    body.tag-page .page-container.show_breadcrumb_v1 .woocommerce.main-products .products{
        grid-template-columns:repeat(3,minmax(0,1fr)) !important;
    }
}
@media (max-width:559px){
    body.tag-page .page-container.show_breadcrumb_v1 .woocommerce.main-products .products{
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    }
}

/* «Stokda olmayanları göstərmə» keçidi */
.catalog-instock{
	display:inline-flex;align-items:center;gap:9px;cursor:pointer;
	padding:7px 13px 7px 11px;border:1px solid #d9dee6;border-radius:999px;
	background:#fff;font-size:13.5px;font-weight:600;color:#4b5563;
	white-space:nowrap;user-select:none;
	transition:border-color .16s ease,background-color .16s ease,color .16s ease;
}
.catalog-instock:hover{border-color:#9fbfe4;color:#1c2430}
.catalog-instock input[type="checkbox"]{
	appearance:none;position:relative;flex:0 0 18px;width:18px;height:18px;margin:0;
	border:1.5px solid #c9cec9;border-radius:5px;background:#fff;cursor:pointer;
	transition:border-color .15s ease,background-color .15s ease;
}
.catalog-instock input[type="checkbox"]:checked{border-color:#078b2f;background:#078b2f}
.catalog-instock input[type="checkbox"]:checked::after{
	content:"";position:absolute;left:5px;top:1.5px;width:5px;height:9px;
	border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg);
}
.catalog-instock input[type="checkbox"]:focus-visible{outline:2px solid rgba(7,139,47,.35);outline-offset:2px}
.catalog-instock.is-on{border-color:#a7e0ba;background:#f2fbf5;color:#12772e}
@media (max-width:560px){
	.catalog-instock{padding:6px 11px 6px 9px;font-size:12.5px}
}
/* İstifadəçi elanları: tema grid-i xarici sarğıya tətbiq etməsin */
.user-news-page .user-news-grid,
.user-news-page .user-news-grid .column-content,
.user-news-page .user-news-grid .column-products{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    flex:0 0 100% !important;
}
#user-news-products{
    display:grid !important;
    width:100% !important;
    max-width:100% !important;
    min-width:0 !important;
    grid-template-columns:repeat(5,minmax(0,1fr)) !important;
    gap:16px !important;
}
@media(max-width:1199px){#user-news-products{grid-template-columns:repeat(4,minmax(0,1fr)) !important}}
@media(max-width:899px){#user-news-products{grid-template-columns:repeat(3,minmax(0,1fr)) !important}}
@media(max-width:767px){#user-news-products{grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:10px !important}}
