/* ==========================================================================
   BH WooArchive v4.1 — Frontend Styles
   ========================================================================== */

/* ------------------------------------------------------------------
   PRODUCT ARCHIVE — WRAPPER
------------------------------------------------------------------ */
.waw-product-archive { position: relative; }

/* ------------------------------------------------------------------
   GRID
------------------------------------------------------------------ */
.waw-products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.waw-layout--list    .waw-products-grid { grid-template-columns: 1fr; }
.waw-layout--list    .waw-product-card  { display: grid; grid-template-columns: 280px 1fr; }
.waw-layout--list    .waw-product-card__image-wrap { height: 100% !important; min-height: 200px; }
.waw-layout--masonry .waw-products-grid { display: block; column-gap: 24px; }
.waw-layout--masonry .waw-product-card  { break-inside: avoid; margin-bottom: 24px; }

/* Equal height */
.waw--equal-height .waw-products-grid           { align-items: stretch; }
.waw--equal-height .waw-product-card            { display: flex; flex-direction: column; }
.waw--equal-height .waw-product-card__body      { flex: 1; display: flex; flex-direction: column; }
/* FIX 2.3: przestrzeń wypełnia miejsce PRZED ceną (nie nad przyciskiem) */
.waw--equal-height .waw-product-card__price     { margin-top: auto; }
.waw--equal-height .waw-product-card__body .waw-btn-wrapper { margin-top: 0; }
/* Fallback gdy cena ukryta — przycisk na dole */
.waw--equal-height .waw-product-card__body .waw-btn-wrapper:first-child { margin-top: auto; }

/* ------------------------------------------------------------------
   SLIDER
------------------------------------------------------------------ */
.waw-slider-wrapper     { position: relative; overflow: hidden; }
.waw-slider-track       { display: grid; scroll-snap-type: x mandatory; overflow-x: auto; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.waw-slider-track::-webkit-scrollbar { display: none; }
.waw-slider-track .waw-product-card  { scroll-snap-align: start; }
.waw-slider-prev,
.waw-slider-next        { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.9); border: 1px solid #e2e2e2; border-radius: 50%; width: 40px; height: 40px; font-size: 1.4rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 10; transition: background 0.2s, box-shadow 0.2s; box-shadow: 0 2px 8px rgba(0,0,0,0.12); }
.waw-slider-prev        { left: -20px; }
.waw-slider-next        { right: -20px; }
.waw-slider-prev:hover,
.waw-slider-next:hover  { background: #fff; box-shadow: 0 4px 16px rgba(0,0,0,0.18); }

/* ------------------------------------------------------------------
   PRODUCT CARD
------------------------------------------------------------------ */
.waw-product-card       { background: #fff; border-radius: 12px; overflow: hidden; transition: box-shadow 0.25s ease, transform 0.25s ease; }
/* Unoszenie karty generowane dynamicznie przez PHP widget (card_lift_enable / card_lift_offset). */

/* Image wrap */
.waw-product-card__image-wrap { position: relative; overflow: hidden; height: 260px; box-sizing: border-box; }
.waw-product-card__image      { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease, opacity 0.35s ease; }
.waw-product-card__image--main  { position: absolute; inset: 0; object-fit: cover; }
.waw-product-card__image--hover {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    opacity: 0; transition: opacity 0.35s ease;
}
/* Efekty hover na obrazku — tylko urządzenia z precyzyjną myszą.
   Na dotyku przeglądarka symuluje hover po tapnięciu i nie usuwa go — efekt "przyklejony". */
@media (hover: hover) and (pointer: fine) {
    .waw-product-card:hover .waw-image-effect--hover-swap .waw-product-card__image--main  { opacity: 0; }
    .waw-product-card:hover .waw-image-effect--hover-swap .waw-product-card__image--hover { opacity: 1; }
}

/* Hover effects (single image) */
.waw-image-effect--zoom .waw-product-card__image--main { transition: transform 0.4s cubic-bezier(0.25,0.46,0.45,0.94); }
@media (hover: hover) and (pointer: fine) {
    .waw-image-effect--zoom:hover .waw-product-card__image--main  { transform: scale(1.07); }
    .waw-image-effect--fade:hover .waw-product-card__image--main  { opacity: 0.75; }
    .waw-image-effect--slide:hover .waw-product-card__image--main { transform: translateY(-8px); }
}

/* ------------------------------------------------------------------
   BADGES
------------------------------------------------------------------ */
.waw-product-card__badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 4px; z-index: 3; pointer-events: none; }
.waw-sale-badge,
.waw-new-badge,
.waw-custom-badge {
    display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
    padding: 4px 10px; border-radius: 4px; line-height: 1.4; white-space: nowrap;
}
.waw-sale-badge   { background: #e44d4d; color: #fff; }
.waw-new-badge    { background: #2ecc71; color: #fff; }
.waw-custom-badge { background: #9b59b6; color: #fff; }

/* ------------------------------------------------------------------
   ACTION BUTTONS OVERLAY (Wishlist + Quick View)
------------------------------------------------------------------ */
.waw-product-card__actions {
    position: absolute; top: 10px; right: 10px;
    display: flex; flex-direction: column; gap: 6px;
    z-index: 4;
    /* Na dotyku przyciski zawsze widoczne — nie ma hover który by je pokazał */
    opacity: 1;
    transition: opacity 0.25s ease;
}
/* Na desktopie z myszą: przyciski ukryte, pojawiają się przy hover */
@media (hover: hover) and (pointer: fine) {
    .waw-product-card__actions { opacity: 0; }
    .waw-product-card:hover .waw-product-card__actions { opacity: 1; }
}
.waw-product-card__actions--body {
    position: static; opacity: 1; flex-direction: row; margin-top: 10px;
}

.waw-wishlist-btn,
.waw-quick-view-btn {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,0.95); border: 1px solid #e2e2e2;
    cursor: pointer; transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); color: #555; padding: 0; font-size: 1rem;
}
.waw-wishlist-btn:hover,
.waw-quick-view-btn:hover  { background: #fff; transform: scale(1.1); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.waw-wishlist-btn.is-active { color: #e44d4d; border-color: #e44d4d; background: #fff0f0; }
.waw-wishlist-btn svg,
.waw-quick-view-btn svg { pointer-events: none; }
.waw-btn--qv { font-size: 0.8rem; padding: 7px 14px; }

/* ------------------------------------------------------------------
   CARD BODY
------------------------------------------------------------------ */
.waw-product-card__body   { padding: 16px; }
.waw-product-card__title  { margin: 0 0 8px; font-size: 1rem; font-weight: 600; line-height: 1.35; }
.waw-product-card__title a { color: inherit; text-decoration: none; transition: color 0.2s; }
.waw-product-card__title a:hover { color: #7c6eef; }

/* Rating */
.waw-product-card__rating { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.waw-product-card__rating .star-rating { font-size: 0.9em; }
.waw-rating-count { font-size: 0.8em; color: #888; }

/* Price */
.waw-product-card__price     { margin-bottom: 14px; font-size: 0.95rem; }
.waw-product-card__price .price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.waw-product-card__price .price del { opacity: 0.55; font-size: 0.875em; }

/* Excerpt */
.waw-product-card__excerpt { font-size: 0.85rem; color: #666; margin-bottom: 12px; line-height: 1.5; }

/* ------------------------------------------------------------------
   BUTTONS
------------------------------------------------------------------ */
.waw-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    padding: 12px 24px; background: #7c6eef; color: #fff;
    font-size: 0.875rem; font-weight: 600; border-radius: 6px; border: none;
    cursor: pointer; text-decoration: none;
    transition: background 0.22s ease, color 0.22s ease, transform 0.15s ease, box-shadow 0.22s ease;
    line-height: 1;
}
.waw-btn--full  { width: 100% !important; }
.waw-btn:hover  { background: #6354d8; color: #fff; text-decoration: none; }
.waw-btn svg, .waw-btn i { font-size: 1em; flex-shrink: 0; }
.waw-btn.loading .waw-btn__text { opacity: 0.6; }
.waw-btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.waw-no-products { grid-column: 1 / -1; text-align: center; padding: 40px; color: #888; }

/* ------------------------------------------------------------------
   SKELETON LOADING
------------------------------------------------------------------ */
@keyframes wawSkeletonShimmer {
    0%   { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}
.waw-skeleton-card { background: #f0f0f0; border-radius: 12px; overflow: hidden; }
.waw-skeleton-card .waw-skeleton-image {
    height: 260px; width: 100%;
    background: linear-gradient(90deg, #ececec 25%, #f5f5f5 50%, #ececec 75%);
    background-size: 800px 100%;
    animation: wawSkeletonShimmer 1.4s ease-in-out infinite;
}
.waw-skeleton-card .waw-skeleton-body { padding: 16px; }
.waw-skeleton-card .waw-skeleton-line {
    height: 14px; border-radius: 4px; margin-bottom: 10px;
    background: linear-gradient(90deg, #ececec 25%, #f5f5f5 50%, #ececec 75%);
    background-size: 800px 100%;
    animation: wawSkeletonShimmer 1.4s ease-in-out infinite;
}
.waw-skeleton-card .waw-skeleton-line--short { width: 60%; }
.waw-skeleton-card .waw-skeleton-line--btn   { height: 40px; border-radius: 6px; margin-top: 14px; }

/* ------------------------------------------------------------------
   FILTER BAR
------------------------------------------------------------------ */
.waw-filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; justify-content: center; }
.waw-filter-bar__item {
    display: inline-flex; align-items: center;
    padding: 8px 20px; border: 1px solid #e2e2e2;
    background: transparent; border-radius: 50px; cursor: pointer;
    font-size: 0.875rem; font-weight: 500; color: #555;
    transition: background 0.2s, color 0.2s, border-color 0.2s; line-height: 1;
}
.waw-filter-bar__item:hover,
.waw-filter-bar__item.is-active { background: #7c6eef; color: #fff; border-color: #7c6eef; }

/* ------------------------------------------------------------------
   SORT BAR
------------------------------------------------------------------ */
.waw-sort-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; justify-content: flex-end; }
.waw-sort-bar__label { font-size: 0.875rem; color: #555; white-space: nowrap; }
.waw-sort-select {
    padding: 8px 12px; border: 1px solid #d4d4d4; border-radius: 6px;
    font-size: 0.875rem; background: #fff; cursor: pointer;
    transition: border-color 0.2s; outline: none;
}
.waw-sort-select:focus { border-color: #7c6eef; }

/* ------------------------------------------------------------------
   BREADCRUMBS
------------------------------------------------------------------ */
.waw-breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; font-size: 0.875rem; color: #888; }
.waw-breadcrumbs__link { color: #7c6eef; text-decoration: none; transition: color 0.2s; }
.waw-breadcrumbs__link:hover { color: #5a4ad8; text-decoration: underline; }
.waw-breadcrumbs__current { color: #333; font-weight: 500; }
.waw-breadcrumbs__sep { color: #ccc; }

/* ------------------------------------------------------------------
   PAGINATION
------------------------------------------------------------------ */
.waw-pagination-wrap { margin-top: 40px; display: flex; justify-content: center; }
.waw-pagination { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.waw-pagination .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 6px;
    font-size: 0.875rem; font-weight: 600; background: #f5f5f5;
    color: #444; text-decoration: none; transition: background 0.2s, color 0.2s;
}
.waw-pagination .page-numbers:hover,
.waw-pagination .page-numbers.current { background: #7c6eef; color: #fff; }
.waw-pagination .prev, .waw-pagination .next { width: auto; padding: 0 14px; }
.waw-load-more-wrap  { display: flex; justify-content: center; }
.waw-load-more-btn   { min-width: 180px; }
.waw-load-more-btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.waw-infinite-scroll { display: flex; justify-content: center; padding: 20px; min-height: 40px; }
.waw-infinite-scroll__loader { display: none; width: 32px; height: 32px; border: 3px solid #e2e2e2; border-top-color: #7c6eef; border-radius: 50%; animation: wawSpin 0.75s linear infinite; }
.waw-infinite-scroll.is-loading .waw-infinite-scroll__loader { display: block; }
@keyframes wawSpin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------
   QUICK VIEW MODAL
------------------------------------------------------------------ */
.waw-quick-view-modal {
    position: fixed; inset: 0; z-index: 999999;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.waw-quick-view-modal[hidden] { display: none !important; }
.waw-quick-view-modal__overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(3px);
    cursor: pointer;
}
.waw-quick-view-modal__container {
    position: relative; background: #fff; border-radius: 16px;
    max-width: 860px; width: 100%; max-height: 90vh; overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    animation: wawQVIn 0.25s ease;
}
@keyframes wawQVIn { from { opacity: 0; transform: scale(0.95) translateY(10px); } to { opacity: 1; transform: none; } }
.waw-quick-view-modal__close {
    position: absolute; top: 14px; right: 14px;
    width: 34px; height: 34px; border-radius: 50%;
    background: #f5f5f5; border: none; cursor: pointer;
    font-size: 1.25rem; line-height: 1; display: flex; align-items: center; justify-content: center;
    transition: background 0.2s; z-index: 2;
}
.waw-quick-view-modal__close:hover { background: #e2e2e2; }
.waw-quick-view-modal__content { padding: 32px; }

/* Quick view inner layout */
.waw-qv-inner    { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.waw-qv-image    { border-radius: 12px; overflow: hidden; }
.waw-qv-img      { width: 100%; height: auto; display: block; }
.waw-qv-title    { font-size: 1.3rem; font-weight: 700; margin: 0 0 10px; color: #1a1a1a; }
.waw-qv-rating   { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; font-size: 0.85rem; color: #888; }
.waw-qv-price    { font-size: 1.15rem; margin-bottom: 14px; }
.waw-qv-excerpt  { font-size: 0.9rem; line-height: 1.6; color: #555; margin-bottom: 20px; }
.waw-qv-actions  { display: flex; flex-direction: column; gap: 10px; }
.waw-qv-atc      { width: 100%; }
.waw-qv-permalink { font-size: 0.85rem; color: #7c6eef; text-decoration: none; text-align: center; }
.waw-qv-permalink:hover { text-decoration: underline; }
.waw-qv-outofstock { font-size: 0.9rem; color: #e44d4d; font-weight: 600; }
.waw-qv-loading  { display: flex; justify-content: center; align-items: center; padding: 60px; }
.waw-qv-spinner  { width: 36px; height: 36px; border: 3px solid #e2e2e2; border-top-color: #7c6eef; border-radius: 50%; animation: wawSpin 0.75s linear infinite; display: block; }

/* ------------------------------------------------------------------
   CATEGORY LIST WIDGET
------------------------------------------------------------------ */
.bh-cat-widget { }

/* Mobile toggle button */
.bh-cat-toggle-btn {
    display: none; width: 100%; padding: 12px 16px;
    background: #f5f5f5; border: 1px solid #e2e2e2; border-radius: 8px;
    text-align: left; cursor: pointer; font-weight: 600; font-size: 0.95rem;
    justify-content: space-between; align-items: center;
    transition: background 0.2s;
    /* Usuwa systemowe podświetlenie tap (iOS Safari, Chrome Android) */
    -webkit-tap-highlight-color: transparent;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    /* Chrome Android ignoruje -webkit-tap-highlight-color gdy jest domyślny outline */
    outline: none;
    /* Zapobiega opóźnieniu 300ms i double-tap zoom */
    touch-action: manipulation;
    /* Resetuje systemowy wygląd przycisku */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    /* Blokuje zaznaczanie tekstu przy tapnięciu */
    user-select: none;
    -webkit-user-select: none;
    /* Izoluje kontekst malowania — zapobiega dziedziczeniu highlight od rodzica */
    isolation: isolate;
    color: inherit;
}
/* Chrome Android wywołuje :focus natychmiast przy tapnięciu — jawne tło blokuje skok koloru */
.bh-cat-toggle-btn:focus,
.bh-cat-toggle-btn:focus-within {
    outline: none;
    background: #f5f5f5;
}
.bh-cat-toggle-btn:active {
    background: #e8e8e8;
    outline: none;
}
/* :focus-visible odpala się tylko przy nawigacji klawiaturą, nie przy tapnięciu */
.bh-cat-toggle-btn:focus-visible {
    outline: 2px solid #7c6eef;
    outline-offset: 2px;
}
.bh-cat-toggle-btn:hover { background: #eee; }
.bh-cat-toggle-arrow { transition: transform 0.25s; -webkit-tap-highlight-color: transparent; pointer-events: none; }
.bh-cat-toggle-btn[aria-expanded="true"] .bh-cat-toggle-arrow { transform: rotate(180deg); }

/* LIST */
.bh-category-list ul { list-style: none; padding: 0; margin: 0; }
.bh-category-list.layout-vertical  > ul { display: flex; flex-direction: column; gap: 4px; }
.bh-category-list.layout-vertical ul ul  { margin-top: 4px; display: flex; flex-direction: column; gap: 4px; }
.bh-category-list.layout-horizontal > ul { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; }
.bh-category-list a {
    text-decoration: none; transition: color 0.2s, background-color 0.2s; display: block; box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* Active branch only */
.bh-active-branch-only ul ul { display: none; }
.bh-active-branch-only li.is-active   > ul,
.bh-active-branch-only li.is-ancestor > ul { display: flex; }

/* ------------------------------------------------------------------
   INTERACTIVE SUBCATEGORY LIST (v4.1 — accordion w trybie lista)
   Kliknięcie kategorii głównej rozwija podkategorie. Kliknięcie innej
   kategorii głównej zwija poprzednie i rozwija bieżące.
------------------------------------------------------------------ */

/* Wiersz: link + przycisk toggle */
.bh-cat-item-row {
    display: flex;
    align-items: center;
    gap: 0;
}
.bh-cat-item-row > a {
    flex: 1;
    min-width: 0; /* zapobiega przepełnieniu flexbox */
}

/* Przycisk strzałki toggle */
.bh-subcat-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 4px;
    color: #888;
    transition: background 0.15s ease, color 0.15s ease;
    line-height: 1;
}
.bh-subcat-toggle:hover {
    background: rgba(124, 110, 239, 0.08);
    color: #7c6eef;
}
.bh-subcat-toggle:focus-visible {
    outline: 2px solid #7c6eef;
    outline-offset: 1px;
}
.bh-subcat-toggle svg {
    pointer-events: none;
    transition: transform 0.22s ease;
    display: block;
}

/* Obrót strzałki gdy otwarte */
li.has-children.is-subcat-open > .bh-cat-item-row > .bh-subcat-toggle svg {
    transform: rotate(180deg);
}

/* Domyślnie chowaj podkategorie w trybie interaktywnym */
.bh-cat-list--interactive li.has-children > ul {
    display: none;
    flex-direction: column;
    gap: 4px;
    margin-top: 4px;
}

/* [hidden] – dodatkowe zabezpieczenie */
.bh-cat-list--interactive li.has-children > ul[hidden] {
    display: none !important;
}

/* Otwarte podkategorie */
.bh-cat-list--interactive li.has-children.is-subcat-open > ul {
    display: flex !important;
    animation: wawAccordionIn 0.2s ease;
}

/* Wcięcie podkategorii w trybie interaktywnym */
.bh-cat-list--interactive ul ul {
    padding-left: 16px;
}

/* ------------------------------------------------------------------
   CATEGORY GRID
------------------------------------------------------------------ */
.bh-cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bh-cat-card { border-radius: 12px; overflow: hidden; transition: box-shadow 0.2s, transform 0.2s; }
@media (hover: hover) and (pointer: fine) {
    .bh-cat-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
    .bh-cat-card:hover .bh-cat-card__img { transform: scale(1.06); }
    .bh-cat-card:hover .bh-cat-card__overlay { background: rgba(0,0,0,0.45); }
}
.bh-cat-card.is-active { box-shadow: 0 0 0 2px #7c6eef; }
.bh-cat-card__link { text-decoration: none; color: inherit; display: block; }
.bh-cat-card__image-wrap { position: relative; overflow: hidden; height: 160px; }
.bh-cat-card__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.bh-cat-card__overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.35); transition: background 0.3s; }
.bh-cat-card__body {
    padding: 12px; display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.bh-cat-card__body--overlay {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    padding: 12px; text-align: center;
}
.bh-cat-card__body--below { text-align: center; }
.bh-cat-card__name { font-weight: 700; font-size: 0.95rem; color: #fff; text-align: center; line-height: 1.2; }
.bh-cat-card__body--below .bh-cat-card__name { color: #1a1a1a; }

/* ------------------------------------------------------------------
   ACCORDION
------------------------------------------------------------------ */
.bh-cat-accordion { display: flex; flex-direction: column; gap: 0; }
.bh-cat-accordion__item { border: 1px solid #e8e8e8; border-radius: 8px; overflow: hidden; margin-bottom: 6px; }
.bh-cat-accordion__header {
    display: flex; align-items: center; gap: 8px;
    padding: 12px 16px; background: #fafafa; cursor: pointer;
    transition: background 0.2s; user-select: none;
}
.bh-cat-accordion__header:hover { background: #f0f0f0; }
.bh-cat-accordion__item.is-active .bh-cat-accordion__header,
.bh-cat-accordion__item.is-open .bh-cat-accordion__header { background: #f0edff; }
.bh-cat-accordion__link { text-decoration: none; color: inherit; font-weight: 500; flex: 1; transition: color 0.2s; }
.bh-cat-accordion__link:hover { color: #7c6eef; }
.bh-cat-accordion__arrow { color: #888; font-size: 0.75em; flex-shrink: 0; width: 16px; }
.bh-cat-accordion__body {
    padding: 8px 16px 12px 32px;
    display: flex; flex-direction: column; gap: 4px;
    background: #fff;
    animation: wawAccordionIn 0.2s ease;
}
@keyframes wawAccordionIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.bh-cat-accordion__body[hidden] { display: none !important; }
.bh-cat-accordion__sub-item { padding: 4px 0; }
.bh-cat-accordion__sub-link { text-decoration: none; color: #555; font-size: 0.9rem; display: block; padding: 4px 8px; border-radius: 4px; transition: background 0.15s, color 0.15s; }
.bh-cat-accordion__sub-link:hover { background: #f0edff; color: #7c6eef; }
.bh-cat-accordion__sub-item.is-active .bh-cat-accordion__sub-link { color: #7c6eef; font-weight: 600; }

/* ------------------------------------------------------------------
   DROPDOWN
------------------------------------------------------------------ */
select.bh-category-dropdown {
    transition: border-color 0.2s, background-color 0.2s, color 0.2s;
    box-sizing: border-box; cursor: pointer; outline: none;
    border: 1px solid #d4d4d4; border-radius: 6px;
    padding: 10px 36px 10px 14px; width: 100%;
    /* FIX 1.2: background-color zamiast background (shorthand nadpisywał Elementor) */
    background-color: #fff;
    /* FIX 1.1: niestandardowa strzałka SVG + usunięcie systemowego wyglądu */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px 8px;
    -webkit-appearance: none; -moz-appearance: none; appearance: none;
    /* FIX 1.1: usuń systemowe niebieskie podświetlenie przy dotyku */
    -webkit-tap-highlight-color: transparent;
    font-size: 0.9rem; color: #333;
}
select.bh-category-dropdown:focus { border-color: #7c6eef; outline: none; }
select.bh-category-dropdown:hover { border-color: #9b8ef5; }

/* ------------------------------------------------------------------
   COUNT BADGE
------------------------------------------------------------------ */
.bh-cat-count { font-size: 0.8em; }
.bh-cat-count--paren { color: #888; }
.bh-cat-count--text  { color: #888; }
.bh-cat-count--badge {
    display: inline-block; background: #7c6eef; color: #fff;
    font-size: 0.7em; font-weight: 700; padding: 2px 7px;
    border-radius: 20px; vertical-align: middle; line-height: 1.4;
}
.bh-cat-count--bubble {
    display: inline-flex; align-items: center; justify-content: center;
    width: 20px; height: 20px; border-radius: 50%;
    background: #7c6eef; color: #fff; font-size: 0.7em; font-weight: 700;
    vertical-align: middle;
}

/* Category description */
.bh-cat-desc { font-size: 0.8rem; color: #888; margin: 4px 0 0; line-height: 1.4; }

/* ------------------------------------------------------------------
   RESPONSIVE
------------------------------------------------------------------ */
@media (max-width: 1024px) {
    .waw-products-grid { grid-template-columns: repeat(2, 1fr); }
    .bh-cat-grid { grid-template-columns: repeat(2, 1fr); }
    .waw-qv-inner { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .waw-slider-prev { left: 0; }
    .waw-slider-next { right: 0; }

    /* Mobile toggle */
    .bh-cat-mobile-toggle .bh-cat-toggle-btn { display: flex; }
    .bh-cat-mobile-toggle .bh-cat-body       { display: none; margin-top: 10px; }
    .bh-cat-mobile-toggle .bh-cat-body.is-open { display: block; }
}

@media (max-width: 640px) {
    .waw-products-grid { grid-template-columns: 1fr; }
    .waw-layout--list .waw-product-card { grid-template-columns: 1fr; }
    .bh-cat-grid { grid-template-columns: repeat(2, 1fr); }
    .waw-quick-view-modal__content { padding: 20px; }
    .waw-qv-actions { flex-direction: column; }
}

@media (max-width: 480px) {
    .bh-cat-grid { grid-template-columns: 1fr 1fr; }
}


/* ==========================================================================
   BH ARCHIVE TITLE v1.0 — Style (scalone z bh-archive-title)
   ========================================================================== */

/* Wrapper widżetu */
.bh-archive-title {
    display: block;
}

.bh-archive-title__wrap {
    display: inline-block;
    width: 100%;
}

/* Linia dekoracyjna pod tytułem */
.bh-archive-title__wrap--underline {
    display: flex;
    flex-direction: column;
}

.bh-archive-title__wrap--underline::after {
    content: '';
    display: block;
    background-color: currentColor;
    width: 40px;
    height: 3px;
    margin-top: 8px;
    border-radius: 2px;
}

/* Tytuł – element tekstowy */
.bh-archive-title__text {
    margin: 0;
    padding: 0;
    line-height: 1.2;
    transition: color 0.2s ease;
    will-change: opacity, transform;
}

/* Prefiks i sufiks */
.bh-archive-title__prefix,
.bh-archive-title__suffix {
    display: inline;
}

/* Licznik produktów */
.bh-archive-title__count {
    display: inline;
    margin-left: 0.3em;
    opacity: 0.7;
}

/* Stan w trakcie animacji zmiany */
.bh-archive-title__text.is-updating {
    /* Kolor definiowany przez Elementor control */
}

/* Responsywność */
@media ( max-width: 767px ) {
    .bh-archive-title__wrap--underline::after {
        width: 30px;
    }
}
