/* =====================================================
   CUSTOM WOO FILTERS v11 — Brand: #038CCA + YMM
   ===================================================== */
:root {
    --cwf-blue: #038CCA;
    --cwf-blue-light: #e8f4fb;
    --cwf-blue-hover: #026fa0;
    --cwf-text: #2d3748;
    --cwf-text-light: #718096;
    --cwf-border: #e2e8f0;
    --cwf-bg: #f7fafc;
    --cwf-white: #ffffff;
    --cwf-radius: 8px;
    --cwf-shadow: 0 1px 3px rgba(0,0,0,0.06);
    --cwf-transition: 0.2s ease;
}

/* Hide native WC pagination — our AJAX pagination handles it */
body.woocommerce nav.ct-pagination,
body.woocommerce-page nav.ct-pagination,
body.woocommerce nav.woocommerce-pagination,
body.woocommerce-page nav.woocommerce-pagination { display: none !important; }

.cwf-wrapper-desktop *, .cwf-mobile-wrapper * { box-sizing: border-box; }

@media (max-width: 782px) { .cwf-wrapper-desktop { display: none !important; } }
@media (min-width: 783px) { .cwf-mobile-wrapper { display: none !important; } }

/* ===================================
   SIDEBAR Desktop
   =================================== */
.cwf-sidebar {
    background: var(--cwf-white);
    border: 1px solid var(--cwf-border);
    border-radius: var(--cwf-radius);
    box-shadow: var(--cwf-shadow);
    min-width: 380px;
    max-width: 420px;
}
.cwf-sidebar-inner { padding: 20px 24px; }
.ct-container[data-sidebar="left"] > aside#sidebar,
.ct-container[data-sidebar="right"] > aside#sidebar {
    min-width: 400px !important;
    flex: 0 0 400px !important;
}

/* ===================================
   SIDEBAR Mobile
   =================================== */
.cwf-sidebar-mobile {
    position: fixed; top: 0; left: -100%;
    width: 92%; max-width: 400px;
    height: 100vh; height: 100dvh;
    z-index: 999999; overflow: hidden;
    transition: left 0.35s cubic-bezier(0.4,0,0.2,1);
    background: var(--cwf-white);
    box-shadow: 4px 0 24px rgba(0,0,0,0.15);
    display: flex; flex-direction: column;
}
.cwf-sidebar-mobile.cwf-open { left: 0; }
.cwf-mobile-top {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; border-bottom: 1px solid var(--cwf-border);
    position: sticky; top: 0; background: var(--cwf-white); z-index: 2;
}
.cwf-mobile-title { font-size: 17px; font-weight: 700; color: var(--cwf-text); }
.cwf-close-mobile {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%; border: none;
    background: var(--cwf-bg); font-size: 22px; color: var(--cwf-text-light);
    cursor: pointer; transition: var(--cwf-transition); line-height: 1;
}
.cwf-close-mobile:hover { background: #fee2e2; color: #dc2626; }
.cwf-sidebar-mobile .cwf-sidebar-inner {
    padding: 16px 20px 20px;
    flex: 1 1 0%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    min-height: 0;
}

/* Mobile bottom — "Pokaż wyniki" */
/* Mobile bottom — "Pokaż wyniki" */
.cwf-mobile-bottom {
    flex-shrink: 0;
    padding: 12px 20px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 20px));
    border-top: 1px solid var(--cwf-border);
    background: var(--cwf-white);
    box-shadow: 0 -4px 12px rgba(0,0,0,0.06);
}
.cwf-mobile-show-results {
    width: 100%; padding: 14px; border: none; border-radius: var(--cwf-radius);
    background: var(--cwf-blue); color: white; font-size: 15px; font-weight: 700;
    cursor: pointer; transition: var(--cwf-transition); font-family: inherit;
}
.cwf-mobile-show-results:active { transform: scale(0.98); background: var(--cwf-blue-hover); }

/* Overlay */
.cwf-overlay-mobile {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.4); z-index: 999998; backdrop-filter: blur(2px);
}
.cwf-overlay-mobile.cwf-active { display: block; }

/* ===================================
   MOBILE BUTTON + BADGE
   =================================== */
.cwf-mobile-filter-fixed { display: none; }
@media (max-width: 782px) {
    .cwf-mobile-filter-fixed {
        display: flex !important; align-items: center; gap: 8px;
        position: fixed; bottom: 20px; right: 16px;
        background: var(--cwf-blue); color: white;
        padding: 13px 24px; border-radius: 50px; border: none;
        font-size: 15px; font-weight: 600;
        box-shadow: 0 4px 16px rgba(3,140,202,0.35);
        z-index: 9999; cursor: pointer; transition: var(--cwf-transition); font-family: inherit;
    }
    .cwf-mobile-filter-fixed:active { transform: scale(0.96); }
}
.cwf-mobile-badge {
    background: #dc2626; color: white; font-size: 11px; font-weight: 800;
    min-width: 20px; height: 20px; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0 5px; margin-left: 2px;
    animation: cwf-badge-pop 0.3s ease;
}
@keyframes cwf-badge-pop {
    0% { transform: scale(0); }
    70% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* ===================================
   ★ MOBILE LOADING INDICATOR (nad overlayem!)
   =================================== */
.cwf-loading-mobile {
    position: fixed;
    bottom: 80px; left: 50%; transform: translateX(-50%);
    background: var(--cwf-white);
    padding: 10px 24px; border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    z-index: 1000001; /* nad mobile sidebar i overlay */
    display: none; align-items: center; gap: 10px;
    font-size: 14px; font-weight: 600; color: var(--cwf-text);
}
.cwf-loading-mobile.cwf-active { display: none; }
@media (max-width: 782px) { .cwf-loading-mobile.cwf-active { display: flex; } }
.cwf-spinner-small {
    width: 20px; height: 20px;
    border: 2.5px solid var(--cwf-border);
    border-top-color: var(--cwf-blue);
    border-radius: 50%;
    animation: cwf-spin 0.6s linear infinite;
}
@keyframes cwf-spin { to { transform: rotate(360deg); } }

/* ===================================
   ★ ACTIVE FILTER CHIPS
   =================================== */
.cwf-active-chips {
    display: flex; flex-wrap: wrap; gap: 6px;
    min-height: 0;
}
.cwf-active-chips:empty { display: none; }
.cwf-active-chips:not(:empty) { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--cwf-border); }
.cwf-chip {
    display: inline-flex; align-items: center; gap: 4px;
    background: var(--cwf-blue-light); color: var(--cwf-blue);
    font-size: 12px; font-weight: 600;
    padding: 4px 8px 4px 10px; border-radius: 20px;
    white-space: nowrap; transition: var(--cwf-transition);
    border: 1px solid rgba(3,140,202,0.2);
}
.cwf-chip:hover { background: rgba(3,140,202,0.15); }
.cwf-chip-x {
    display: inline-flex; align-items: center; justify-content: center;
    width: 16px; height: 16px; border-radius: 50%;
    border: none; background: rgba(3,140,202,0.2);
    color: var(--cwf-blue); font-size: 12px; line-height: 1;
    cursor: pointer; padding: 0; transition: var(--cwf-transition);
}
.cwf-chip-x:hover { background: var(--cwf-blue); color: white; }

/* ===================================
   ★ LOADING OVERLAY — products stay in place, dimmed with spinner
   =================================== */
#cwf-products-wrapper {
    position: relative;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 200px;
    flex: 1 1 0% !important;
    box-sizing: border-box;
}
/* No-results musi wypełnić cały wrapper */
#cwf-products-wrapper > .cwf-no-results {
    width: 100%;
    box-sizing: border-box;
}
#cwf-products-wrapper.cwf-loading > ul.products {
    opacity: 0.3;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
.cwf-loading-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex; align-items: flex-start; justify-content: center;
    padding-top: 120px;
    z-index: 10;
}
.cwf-spinner {
    width: 40px; height: 40px;
    border: 3px solid #e0e0e0;
    border-top-color: var(--cwf-blue);
    border-radius: 50%;
    animation: cwf-spin 0.7s linear infinite;
}
@keyframes cwf-spin {
    to { transform: rotate(360deg); }
}

/* ===================================
   SECTIONS
   =================================== */
.cwf-section { margin-bottom: 4px; border-bottom: 1px solid var(--cwf-border); padding-bottom: 4px; }
.cwf-section:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.cwf-section-title {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px;
    color: var(--cwf-text); margin: 0; padding: 14px 4px;
    cursor: pointer; user-select: none; transition: color var(--cwf-transition);
}
.cwf-section-title:hover { color: var(--cwf-blue); }
.cwf-section-title span { flex: 1; }
.cwf-section-chevron { transition: transform 0.25s ease; color: var(--cwf-text-light); flex-shrink: 0; }
.cwf-section-collapsed .cwf-section-chevron { transform: rotate(-90deg); }
.cwf-section-content {
    max-height: 0; overflow: hidden; opacity: 0;
    transition: max-height 0.3s ease, opacity 0.25s ease, padding 0.3s ease;
    padding: 0 4px;
}
.cwf-section-content.cwf-section-open { max-height: 800px; opacity: 1; padding: 0 4px 12px; }

/* ===================================
   KATEGORIE
   =================================== */
.cwf-category-list, .cwf-category-list ul { list-style: none; padding: 0; margin: 0; }
.cwf-cat-item { padding: 0; }
.cwf-cat-header { display: flex; align-items: center; gap: 2px; }
.cwf-cat-link {
    display: flex; align-items: center; flex: 1; text-decoration: none;
    color: var(--cwf-text); font-size: 13.5px; padding: 7px 8px; border-radius: 6px;
    transition: all var(--cwf-transition); gap: 6px; line-height: 1.3;
}
.cwf-cat-link:hover { background: var(--cwf-blue-light); color: var(--cwf-blue); }
.cwf-cat-link.active {
    background: var(--cwf-blue); color: var(--cwf-white); font-weight: 700;
    border-radius: 6px; box-shadow: 0 2px 6px rgba(3,140,202,0.25);
}
.cwf-cat-link.active .cwf-count { background: rgba(255,255,255,0.25); color: var(--cwf-white); }

/* Rodzic ze schowanym aktywnym dzieckiem */
.cwf-cat-item.cwf-has-active-child:not(.open) > .cwf-cat-header > .cwf-cat-link {
    color: var(--cwf-blue); font-weight: 700;
    background: var(--cwf-blue-light); border-left: 3px solid var(--cwf-blue); padding-left: 8px;
}
.cwf-cat-item.cwf-has-active-child:not(.open) > .cwf-cat-header > .cwf-cat-link::after {
    content: '●'; font-size: 10px; color: var(--cwf-white);
    background: var(--cwf-blue); width: 18px; height: 18px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0; margin-left: 4px;
    animation: cwf-dot-pulse 1.8s ease infinite;
    box-shadow: 0 0 0 3px rgba(3,140,202,0.2);
}
@keyframes cwf-dot-pulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(3,140,202,0.2); }
    50% { box-shadow: 0 0 0 6px rgba(3,140,202,0.1); }
}
.cwf-cat-item.cwf-has-active-child:not(.open) > .cwf-cat-header > .cwf-toggle-btn { color: var(--cwf-blue); }
.cwf-cat-name { flex: 1; }
.cwf-level-0 > .cwf-cat-header > .cwf-cat-link { font-weight: 600; }
.cwf-level-1 > .cwf-cat-header > .cwf-cat-link { font-size: 13px; }
.cwf-level-2 > .cwf-cat-header > .cwf-cat-link { font-size: 12.5px; }
.cwf-subcategory-list {
    padding: 0 0 0 14px; max-height: 0; overflow: hidden; opacity: 0;
    transition: max-height 0.35s ease, opacity 0.25s ease;
}
.cwf-cat-item.open > .cwf-subcategory-list { max-height: 2000px; opacity: 1; margin-top: 1px; }
.cwf-toggle-btn {
    display: flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border: none; background: transparent;
    border-radius: 6px; cursor: pointer; color: var(--cwf-text-light);
    transition: all var(--cwf-transition); flex-shrink: 0;
}
.cwf-toggle-btn:hover { background: var(--cwf-blue-light); color: var(--cwf-blue); }
.cwf-toggle-btn svg { transition: transform 0.25s ease; }
.cwf-cat-item.open > .cwf-cat-header .cwf-toggle-btn svg { transform: rotate(180deg); }
.cwf-cat-item.open > .cwf-cat-header .cwf-toggle-btn { color: var(--cwf-blue); }

/* ===================================
   COUNTS
   =================================== */
.cwf-count {
    margin-left: auto; color: #555; font-size: 13px;
    background: #edf2f7; padding: 3px 9px; border-radius: 10px;
    font-weight: 600; transition: all var(--cwf-transition); flex-shrink: 0; white-space: nowrap;
}
.cwf-cat-link:hover .cwf-count { background: rgba(3,140,202,0.1); color: var(--cwf-blue); }
.cwf-count-updated { animation: cwf-count-flash 0.4s ease; }
@keyframes cwf-count-flash {
    0% { background: var(--cwf-blue); color: white; transform: scale(1.1); }
    100% { background: #edf2f7; color: #555; transform: scale(1); }
}

/* ===================================
   CHECKBOXY
   =================================== */
.cwf-filter-list { list-style: none; padding: 0; margin: 0; }
.cwf-filter-list li { padding: 1px 0; }
.cwf-checkbox-label {
    display: flex; align-items: center; gap: 10px; cursor: pointer;
    font-size: 14px; color: var(--cwf-text); padding: 8px 8px;
    border-radius: 6px; transition: background var(--cwf-transition); user-select: none;
}
.cwf-checkbox-label:hover { background: var(--cwf-bg); }
.cwf-checkbox-label input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.cwf-check-box {
    width: 18px; height: 18px; border: 2px solid var(--cwf-border); border-radius: 4px;
    flex-shrink: 0; position: relative; transition: all var(--cwf-transition); background: var(--cwf-white);
}
.cwf-checkbox-label:hover .cwf-check-box { border-color: var(--cwf-blue); }
.cwf-checkbox-label input:checked + .cwf-check-box { background: var(--cwf-blue); border-color: var(--cwf-blue); }
.cwf-checkbox-label input:checked + .cwf-check-box::after {
    content: ''; position: absolute; left: 5px; top: 2px;
    width: 5px; height: 9px; border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.cwf-option-name { flex: 1; }
.cwf-filter-list .cwf-count { margin-left: 0; }

/* Attribute list — max height ze scrollem */
.cwf-attr-list { max-height: 220px; overflow-y: auto; }
.cwf-attr-list::-webkit-scrollbar { width: 4px; }
.cwf-attr-list::-webkit-scrollbar-thumb { background: var(--cwf-border); border-radius: 4px; }
.cwf-attr-list::-webkit-scrollbar-thumb:hover { background: var(--cwf-blue); }

/* ===================================
   PRICE SLIDER
   =================================== */
.cwf-price-wrapper { padding: 2px 0; }
.cwf-price-inputs { display: flex; align-items: flex-end; gap: 8px; }
.cwf-price-input-group { flex: 1; }
.cwf-price-input-group label {
    display: block; font-size: 11px; font-weight: 600; color: var(--cwf-text-light);
    text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 4px;
}
.cwf-input-wrap { position: relative; }
.cwf-price-input {
    width: 100%; padding: 8px 28px 8px 10px; border: 1.5px solid var(--cwf-border);
    border-radius: 6px; font-size: 13px; font-weight: 600; color: var(--cwf-text);
    background: var(--cwf-white); transition: border-color var(--cwf-transition), box-shadow var(--cwf-transition); font-family: inherit;
}
.cwf-price-input:focus { outline: none; border-color: var(--cwf-blue); box-shadow: 0 0 0 3px rgba(3,140,202,0.1); }
.cwf-price-input::-webkit-outer-spin-button, .cwf-price-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cwf-price-input[type=number] { -moz-appearance: textfield; }
.cwf-currency {
    position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
    font-size: 11px; color: var(--cwf-text-light); font-weight: 600; pointer-events: none;
}
.cwf-price-dash { color: var(--cwf-text-light); font-size: 14px; padding-bottom: 8px; flex-shrink: 0; }
.cwf-slider-container { position: relative; height: 36px; margin: 10px 0 4px; display: flex; align-items: center; }
.cwf-slider-track { position: absolute; left: 0; right: 0; height: 4px; background: var(--cwf-border); border-radius: 4px; z-index: 1; }
.cwf-slider-fill { position: absolute; height: 4px; background: var(--cwf-blue); border-radius: 4px; z-index: 2; pointer-events: none; transition: left 0.1s, width 0.1s; }
.cwf-price-slider {
    -webkit-appearance: none; appearance: none; width: 100%; height: 4px;
    background: transparent; outline: none; position: absolute; margin: 0; padding: 0; pointer-events: none; z-index: 3;
}
.cwf-price-slider::-webkit-slider-thumb {
    -webkit-appearance: none; width: 18px; height: 18px; background: var(--cwf-white);
    border: 2.5px solid var(--cwf-blue); border-radius: 50%; cursor: pointer; pointer-events: all;
    box-shadow: 0 1px 4px rgba(3,140,202,0.25); transition: transform 0.15s, box-shadow 0.15s;
}
.cwf-price-slider::-webkit-slider-thumb:hover { transform: scale(1.2); box-shadow: 0 2px 8px rgba(3,140,202,0.35); }
.cwf-price-slider::-moz-range-thumb { width: 18px; height: 18px; background: var(--cwf-white); border: 2.5px solid var(--cwf-blue); border-radius: 50%; cursor: pointer; }
.cwf-price-slider::-moz-range-track { background: transparent; border: none; }
#cwf-price-max, #cwf-price-max-mobile { z-index: 5; }

/* ===================================
   RESET
   =================================== */
.cwf-buttons { padding: 16px 4px 4px; }
.cwf-btn-reset {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    width: 100%; padding: 10px 16px; border-radius: 6px;
    border: 1.5px solid var(--cwf-border); background: var(--cwf-white);
    color: var(--cwf-text-light); font-size: 13px; font-weight: 600;
    cursor: pointer; transition: all var(--cwf-transition); font-family: inherit;
}
.cwf-btn-reset:hover { border-color: #dc2626; color: #dc2626; background: #fef2f2; }

/* ===================================
   NO RESULTS
   =================================== */
.cwf-no-results { text-align: center; padding: 48px 20px; background: var(--cwf-bg); border-radius: var(--cwf-radius); margin: 20px 0; width: 100%; box-sizing: border-box; }
.cwf-no-results-icon { font-size: 36px; margin-bottom: 12px; }
.cwf-no-results-title { font-size: 17px; font-weight: 700; color: var(--cwf-text); margin: 0 0 6px; }
.cwf-no-results-text { font-size: 14px; color: var(--cwf-text-light); margin: 0; }

/* ===================================
   PRODUCT GRID
   =================================== */
.woocommerce ul.products, .woocommerce-page ul.products, ul.products {
    display: grid !important; grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important; width: 100% !important; list-style: none !important;
    padding: 0 !important; margin: 0 0 30px 0 !important;
}
.woocommerce ul.products li.product, ul.products li.product {
    width: 100% !important; margin: 0 !important; float: none !important;
}
@media (max-width: 1200px) { .woocommerce ul.products, ul.products { grid-template-columns: repeat(3, 1fr) !important; } }
@media (max-width: 782px) { .woocommerce ul.products, ul.products { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; } }
@media (max-width: 480px) { .woocommerce ul.products, ul.products { grid-template-columns: 1fr !important; } }

/* ===================================
   PAGINACJA
   =================================== */
.cwf-pagination { margin: 28px 0 12px; text-align: center; }
.cwf-pagination ul { display: inline-flex; gap: 4px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; justify-content: center; }
.cwf-pagination li { display: inline-flex; }
.cwf-page-link {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 38px; height: 38px; padding: 0 10px; border-radius: 6px;
    font-size: 14px; font-weight: 600; text-decoration: none;
    color: var(--cwf-text); background: var(--cwf-white);
    border: 1.5px solid var(--cwf-border); transition: all var(--cwf-transition); cursor: pointer;
}
a.cwf-page-link:hover { background: var(--cwf-blue-light); border-color: var(--cwf-blue); color: var(--cwf-blue); }
.cwf-page-link.cwf-current {
    background: var(--cwf-blue); border-color: var(--cwf-blue); color: var(--cwf-white);
    cursor: default; box-shadow: 0 2px 6px rgba(3,140,202,0.25);
}
.cwf-page-link.cwf-dots { background: transparent; border-color: transparent; cursor: default; color: var(--cwf-text-light); }
.cwf-page-link.cwf-disabled { opacity: 0.35; cursor: default; }
.cwf-page-prev, .cwf-page-next { font-size: 18px; font-weight: 400; }
.cwf-page-info { margin-top: 10px; font-size: 13px; color: var(--cwf-text-light); }
.cwf-page-info strong { color: var(--cwf-text); font-weight: 700; }

body.cwf-no-scroll { overflow: hidden; }

/* ===================================
   YMM BANNER
   =================================== */
.cwf-ymm-banner {
    display: inline-flex; align-items: center; gap: 0;
    background: linear-gradient(135deg, #038CCA 0%, #026fa0 100%);
    border-radius: 50px; padding: 0; margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(3,140,202,0.2);
    overflow: hidden; max-width: 100%;
}
.cwf-ymm-banner-icon {
    width: 40px; height: 40px; background: rgba(255,255,255,0.15);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    color: #fff;
}
.cwf-ymm-banner-body {
    display: flex; align-items: baseline; gap: 5px;
    padding: 8px 6px 8px 10px; min-width: 0;
}
.cwf-ymm-banner-label {
    font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.7);
    white-space: nowrap;
}
.cwf-ymm-banner-vehicle {
    font-size: 14px; font-weight: 700; color: #fff;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cwf-ymm-clear {
    width: 36px; height: 40px; background: rgba(0,0,0,0.1);
    border: none; color: rgba(255,255,255,0.6); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.15s; flex-shrink: 0;
}
.cwf-ymm-clear:hover { background: rgba(220,38,38,0.8); color: #fff; }
@media (max-width: 782px) {
    .cwf-ymm-banner { border-radius: 8px; }
    .cwf-ymm-banner-body { padding: 6px 4px 6px 8px; }
    .cwf-ymm-banner-label { font-size: 11px; }
    .cwf-ymm-banner-vehicle { font-size: 13px; }
    .cwf-ymm-banner-icon { width: 34px; height: 34px; }
    .cwf-ymm-clear { width: 32px; height: 34px; }
}

/* ===================================
   SIZE AVAILABILITY BADGES
   =================================== */
/* Ukryj stary snippet badge — plugin renderuje własny .cwf-stock-badge */
.stock-list:not(.cwf-stock-badge) {
    display: none !important;
}

/* Fix: zapobiegaj zwężaniu kart produktów */
ul.products li.product,
.woocommerce ul.products li.product {
    min-width: 0 !important;
    overflow: hidden;
}

/* Size dots row - pod każdym produktem variable */
.cwf-sizes-row {
    text-align: center;
    width: 100%;
    height: 20px;
    margin-top: 6px;
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
}
.cwf-sizes-inner {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    line-height: 1;
}
.cwf-size-dot {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}
.cwf-size-dot-circle {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.cwf-size-dot-label {
    font-weight: 700;
    color: #374151;
    font-size: 11px;
    line-height: 1;
    white-space: nowrap;
}
/* Placeholder na produktach bez rozmiarów — żeby zachować tę samą wysokość */
.cwf-sizes-placeholder {
    width: 100%;
    height: 20px;
    margin-top: 6px;
}
