/* ŁapDeal Listing V24 — spójna typografia i obrazy kategorii z IconCatalog V2.
   Celowo bez zmiany działania filtrów i adresów URL. */
#ld2CategoryLevels .ld2-pretty-button,
#ld2CategoryLevels .ld2-pretty-choice,
#ld2CategoryLevels .ld2-category-root-choice,
#ld2CategoryLevels .ld2-category-child-choice,
#ld2CategoryLevels .ld2-category-all-choice,
#ld2CategoryLevels .ld2-category-branch-all,
#ld2CategoryLevels .ld2-category-expand,
#ld2CategoryLevels .ld2-category-branch-title {
  font-family: Arial, system-ui, sans-serif !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}
#ld2CategoryLevels .ld2-pretty-choice::first-letter,
#ld2CategoryLevels .ld2-category-root-choice::first-letter,
#ld2CategoryLevels .ld2-category-child-choice::first-letter {
  font-size: inherit !important;
  font-weight: inherit !important;
  line-height: inherit !important;
}
#ld2CategoryLevels .ld2-pretty-choice[aria-selected="true"],
#ld2CategoryLevels .ld2-category-root-row.is-current .ld2-category-root-choice,
#ld2CategoryLevels .ld2-category-child-choice[aria-current="true"] {
  color: #bf4b19 !important;
  font-weight: 600 !important;
}
#ld2CategoryLevels .ld2-pretty-choice:has(.ld2-category-inline-icon){
  display:flex;align-items:center;gap:10px;
}
#ld2CategoryLevels .ld2-category-inline-icon{width:23px;height:23px;object-fit:contain;flex:0 0 23px}
#ld2CategoryLevels .ld2-category-root-picker{z-index:10}
#ld2CategoryLevels .ld2-category-root-picker.open{z-index:800 !important}
#ld2CategoryLevels .ld2-category-root-picker .ld2-pretty-button{
  justify-content:flex-start;gap:9px;font-weight:600!important;
}
#ld2CategoryLevels .ld2-category-root-picker .ld2-pretty-button>span:last-child{margin-left:auto}
#ld2CategoryLevels .ld2-category-root-picker .ld2-pretty-button .ld2-category-trigger-icon{
  width:22px;height:22px;object-fit:contain;flex:0 0 22px;
}
#ld2SearchForm #ld2CategoryLevels .ld2-category-root-picker .ld2-category-root-popup {
  width:min(688px,calc(100vw - 48px));
  min-width:0;
  max-height:none!important;
  overflow:visible!important;
  padding:0!important;
  border:1px solid #dce3eb;
  border-radius:12px;
  box-shadow:0 16px 44px rgba(26,42,65,.18);
}
#ld2CategoryLevels .ld2-category-columns{
  display:grid;grid-template-columns:minmax(240px,.91fr) minmax(260px,1.09fr);
  background:#fff;border-radius:11px;overflow:hidden;
}
#ld2CategoryLevels .ld2-category-root-list{
  padding:9px 8px;max-height:470px;overflow-y:auto;overscroll-behavior:contain;
}
#ld2CategoryLevels .ld2-category-branch{
  padding:13px 12px;border-left:1px solid #e7ebf0;
  background:#fafbfc;max-height:470px;min-height:220px;
  overflow-y:auto;overscroll-behavior:contain;
  animation:ld2-category-slide .16s ease-out;
}
@keyframes ld2-category-slide{from{opacity:.6;transform:translateX(-5px)}to{opacity:1;transform:translateX(0)}}
#ld2CategoryLevels .ld2-category-root-row{display:flex;align-items:center;border-radius:8px;gap:0}
#ld2CategoryLevels .ld2-category-root-row:hover,
#ld2CategoryLevels .ld2-category-root-row.is-previewed {background:#fff2e9}
#ld2CategoryLevels .ld2-category-root-row.is-current{background:#fff7f2}
#ld2CategoryLevels .ld2-category-root-choice,
#ld2CategoryLevels .ld2-category-child-choice,
#ld2CategoryLevels .ld2-category-all-choice,
#ld2CategoryLevels .ld2-category-branch-all{
  appearance:none;border:0;background:transparent;text-align:left;
  cursor:pointer;color:#24354b;
}
#ld2CategoryLevels .ld2-category-root-choice{
  display:flex;align-items:center;gap:10px;flex:1;min-width:0;
  padding:9px 10px;
}
#ld2CategoryLevels .ld2-category-root-choice>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#ld2CategoryLevels .ld2-category-pictogram{width:25px;height:25px;flex:0 0 25px;object-fit:contain;vertical-align:middle}
#ld2CategoryLevels .ld2-category-expand{
  appearance:none;border:0;background:transparent;cursor:pointer;
  width:32px;height:38px;flex:0 0 32px;display:grid;place-items:center;
  color:#8994a3;font-size:21px!important;border-radius:7px;
}
#ld2CategoryLevels .ld2-category-expand:hover,#ld2CategoryLevels .ld2-category-expand:focus-visible{background:#ffe6d6;color:#bc4a1a}
#ld2CategoryLevels .ld2-category-all-choice{
  display:block;width:100%;padding:10px 11px;border-radius:8px;color:#5f6e81;font-weight:600!important;
}
#ld2CategoryLevels .ld2-category-all-choice:hover{background:#fff2e9;color:#bd4b19}
#ld2CategoryLevels .ld2-category-branch-title{display:flex;align-items:center;gap:10px;padding:3px 4px 12px}
#ld2CategoryLevels .ld2-category-branch-title strong{font-size:14px;font-weight:700}
#ld2CategoryLevels .ld2-category-branch-all{
  display:block;width:100%;background:#fff3ec;color:#a94518;border:1px solid #ffd8c1;
  font-weight:600!important;border-radius:8px;padding:10px 12px;margin-bottom:7px;
}
#ld2CategoryLevels .ld2-category-branch-all:hover{background:#ffe9dc}
#ld2CategoryLevels .ld2-category-branch-list{display:grid;grid-template-columns:1fr;gap:2px}
#ld2CategoryLevels .ld2-category-child-choice{
  display:flex;align-items:center;gap:10px;width:100%;padding:9px 10px;border-radius:8px;
  min-height:42px;
}
#ld2CategoryLevels .ld2-category-child-choice>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#ld2CategoryLevels .ld2-category-child-choice:hover,#ld2CategoryLevels .ld2-category-child-choice:focus-visible{background:#fff0e4;outline:none}
#ld2CategoryLevels .ld2-category-branch-empty{font:400 12px/1.55 Arial,system-ui,sans-serif;color:#6f7c8d;padding:14px 6px;margin:0}
#ld2CategoryLevels button:focus-visible{outline:2px solid #ff9c69;outline-offset:2px}
@media(max-width:900px){
  #ld2SearchForm #ld2CategoryLevels .ld2-category-root-picker .ld2-category-root-popup{
    width:min(620px,calc(100vw - 40px));
  }
}
@media(max-width:690px){
  #ld2SearchForm #ld2CategoryLevels .ld2-category-root-picker .ld2-category-root-popup{
    width:min(370px,calc(100vw - 32px));
    max-height:min(530px,75dvh)!important;
    overflow:hidden!important;
  }
  #ld2CategoryLevels .ld2-category-columns{display:flex;flex-direction:column}
  #ld2CategoryLevels .ld2-category-root-list{max-height:min(280px,37dvh);padding:6px;flex:0 1 auto}
  #ld2CategoryLevels .ld2-category-branch{border-left:0;border-top:1px solid #e7ebf0;max-height:min(240px,31dvh);min-height:70px;flex:0 1 auto;padding:10px}
  #ld2CategoryLevels .ld2-category-root-choice{padding:8px}
}
@media(prefers-reduced-motion:reduce){#ld2CategoryLevels .ld2-category-branch{animation:none}}

/* V25: mobilny wybór kategorii krok po kroku. Desktop bez zmian. */
#ld2CategoryLevels .ld2-category-mobile-top{display:none}
@media(max-width:690px){
  #ld2SearchForm #ld2CategoryLevels .ld2-category-root-picker .ld2-category-root-popup{
    width:min(370px,calc(100vw - 48px));
  }
  #ld2CategoryLevels .ld2-category-root-popup .ld2-category-columns{display:block}
  #ld2CategoryLevels .ld2-category-root-popup .ld2-category-root-list{
    max-height:min(530px,75dvh);overflow-y:auto;overscroll-behavior:contain;padding:8px;
  }
  /* Lista główna i lista podkategorii nigdy nie są widoczne równocześnie. */
  #ld2CategoryLevels .ld2-category-root-popup .ld2-category-branch{display:none}
  #ld2CategoryLevels .ld2-category-root-popup .ld2-category-columns.is-mobile-branch .ld2-category-root-list{display:none}
  #ld2CategoryLevels .ld2-category-root-popup .ld2-category-columns.is-mobile-branch .ld2-category-branch{
    display:block;box-sizing:border-box;max-height:min(530px,75dvh);min-height:0;
    overflow-y:auto;overscroll-behavior:contain;border:0;padding:8px;background:#fff;
  }
  #ld2CategoryLevels .ld2-category-root-popup .ld2-category-branch-title,
  #ld2CategoryLevels .ld2-category-root-popup .ld2-category-branch-all{display:none}
  #ld2CategoryLevels .ld2-category-root-popup .ld2-category-mobile-top{
    display:flex;align-items:stretch;gap:6px;margin-bottom:8px;padding:0 0 8px;
    border-bottom:1px solid #e7ebf0;
  }
  #ld2CategoryLevels .ld2-category-root-popup .ld2-category-mobile-all{
    appearance:none;flex:1;min-width:0;border:1px solid #ffd8c1;background:#fff3ec;
    color:#a94518;border-radius:8px;text-align:left;padding:11px 12px;cursor:pointer;
    font:600 13px/1.4 Arial,system-ui,sans-serif;overflow-wrap:anywhere;
  }
  #ld2CategoryLevels .ld2-category-root-popup .ld2-category-mobile-back{
    appearance:none;flex:0 0 42px;display:grid;place-items:center;
    border:1px solid #dce3eb;background:#f7f9fc;border-radius:8px;cursor:pointer;
    color:#33465d;font:600 23px/1 Arial,system-ui,sans-serif;
  }
  #ld2CategoryLevels .ld2-category-root-popup .ld2-category-mobile-back:hover,
  #ld2CategoryLevels .ld2-category-root-popup .ld2-category-mobile-back:focus-visible{
    background:#fff3ec;border-color:#ffc69f;color:#b84617;
  }
  #ld2CategoryLevels .ld2-category-root-popup .ld2-category-child-choice{min-height:44px}
}

/* V26: mobilny ekran kategorii na całej dostępnej przestrzeni poniżej nagłówka. */
#ld2CategoryLevels .ld2-category-mobile-heading,
#ld2CategoryLevels .ld2-category-mobile-next{display:none}
@media(max-width:690px){
  #ld2SearchForm #ld2CategoryLevels .ld2-category-root-picker .ld2-category-root-popup{
    position:fixed!important;
    inset:var(--ld2-category-mobile-top, 0px) 0 0 0!important;
    box-sizing:border-box;
    width:100vw!important;
    max-width:100vw!important;
    height:calc(100dvh - var(--ld2-category-mobile-top, 0px))!important;
    max-height:none!important;
    min-height:0;
    margin:0!important;
    padding:0!important;
    border-radius:16px 16px 0 0;
    border:1px solid #dce3eb;
    border-bottom:0;
    background:#fff;
    box-shadow:0 -8px 36px rgba(25,41,63,.17);
    overflow:hidden!important;
    z-index:1100;
  }
  #ld2CategoryLevels .ld2-category-root-popup .ld2-category-columns{
    display:flex!important;
    flex-direction:column;
    height:100%;
    min-height:0;
    border-radius:15px 15px 0 0;
  }
  #ld2CategoryLevels .ld2-category-root-popup .ld2-category-mobile-heading{
    box-sizing:border-box;
    display:flex;
    flex:0 0 auto;
    align-items:center;
    justify-content:space-between;
    padding:12px 16px 10px;
    min-height:60px;
    border-bottom:1px solid #e8edf2;
    background:#fff;
  }
  #ld2CategoryLevels .ld2-category-mobile-heading strong{
    font:700 15px/1.35 Arial,system-ui,sans-serif;
    color:#263951;
  }
  #ld2CategoryLevels .ld2-category-mobile-close{
    appearance:none;
    display:grid;
    place-items:center;
    width:35px;height:35px;
    border:1px solid #e4e9ef;
    border-radius:10px;
    background:#f8fafc;
    color:#596b80;
    font:400 25px/1 Arial,system-ui,sans-serif;
    cursor:pointer;
  }
  #ld2CategoryLevels .ld2-category-mobile-close:focus-visible{
    outline:2px solid #ff9c69;outline-offset:2px;
  }
  #ld2CategoryLevels .ld2-category-root-popup .ld2-category-root-list,
  #ld2CategoryLevels .ld2-category-root-popup .ld2-category-columns.is-mobile-branch .ld2-category-branch{
    box-sizing:border-box;
    flex:1 1 auto;
    width:100%;
    min-height:0;
    max-height:none;
    overflow-y:auto;
    overscroll-behavior:contain;
    padding:10px 12px calc(22px + env(safe-area-inset-bottom, 0px));
    background:#fff;
  }
  #ld2CategoryLevels .ld2-category-root-popup .ld2-category-mobile-top{
    display:flex;
    align-items:stretch;
    gap:10px;
    border-bottom:1px solid #e9edf3;
    margin:0 0 10px;
    padding:0 0 12px;
  }
  #ld2CategoryLevels .ld2-category-root-popup .ld2-category-mobile-back{
    flex:0 0 46px;
    display:grid;
    place-items:center;
    width:46px;
    height:auto;
    min-height:46px;
    border:1px solid #dbe3ec;
    border-radius:11px;
    background:#f7f9fc;
    color:#31465e;
    cursor:pointer;
    transition:background-color .15s ease,border-color .15s ease;
  }
  #ld2CategoryLevels .ld2-category-mobile-back svg{width:22px;height:22px;display:block}
  #ld2CategoryLevels .ld2-category-root-popup .ld2-category-mobile-all{
    display:flex;align-items:center;flex:1 1 auto;min-width:0;
    min-height:46px;padding:11px 12px;
    border-radius:11px;
    font:600 13px/1.45 Arial,system-ui,sans-serif;
  }
  #ld2CategoryLevels .ld2-category-root-popup .ld2-category-child-choice{
    min-height:48px;
    padding:10px 12px;
    gap:11px;
  }
  #ld2CategoryLevels .ld2-category-root-popup .ld2-category-root-choice{min-height:48px;padding:10px 12px}
  #ld2CategoryLevels .ld2-category-root-popup .ld2-category-mobile-next{
    width:19px;height:19px;
    margin-left:auto;
    flex:0 0 19px;
    display:block;
    color:#8390a0;
  }
  #ld2CategoryLevels .ld2-category-mobile-next.ld2-category-chevron-right{transform:rotate(180deg)}
  #ld2CategoryLevels .ld2-category-root-popup .ld2-category-branch-empty{display:none}
}
@media(prefers-reduced-motion:reduce){
  #ld2CategoryLevels .ld2-category-root-popup .ld2-category-mobile-back{transition:none}
}

/* V27 — desktop: dwie kolumny, prawa otwiera kolejne gałęzie (tak jak mobile).
   Pasek przewijania jest niewidoczny; przewijanie kołem i touchpadem działa nadal.
   Reguły ograniczone do PC — mobilna wersja V26 pozostaje bez zmian. */
@media (min-width:691px){
  #ld2CategoryLevels .ld2-category-root-popup .ld2-category-root-list,
  #ld2CategoryLevels .ld2-category-root-popup .ld2-category-branch{
    scrollbar-width:none;
    -ms-overflow-style:none;
  }
  #ld2CategoryLevels .ld2-category-root-popup .ld2-category-root-list::-webkit-scrollbar,
  #ld2CategoryLevels .ld2-category-root-popup .ld2-category-branch::-webkit-scrollbar{
    display:none;width:0;height:0;
  }
  /* Wspólny nagłówek nawigacyjny z bieżącą gałęzią i strzałką wstecz. */
  #ld2CategoryLevels .ld2-category-root-popup .ld2-category-branch-title,
  #ld2CategoryLevels .ld2-category-root-popup .ld2-category-branch-all{display:none}
  #ld2CategoryLevels .ld2-category-root-popup .ld2-category-mobile-top{
    display:flex;align-items:stretch;gap:8px;padding:0 0 12px;margin:0 0 9px;
    border-bottom:1px solid #e6ebf1;
  }
  #ld2CategoryLevels .ld2-category-root-popup .ld2-category-mobile-back{
    appearance:none;display:grid;place-items:center;flex:0 0 42px;width:42px;min-height:42px;
    padding:0;border:1px solid #dce4ee;border-radius:10px;background:#fff;
    color:#31465e;cursor:pointer;
    transition:background-color .15s ease,border-color .15s ease,color .15s ease;
  }
  #ld2CategoryLevels .ld2-category-root-popup .ld2-category-mobile-back svg{
    width:19px;height:19px;display:block;
  }
  #ld2CategoryLevels .ld2-category-root-popup .ld2-category-mobile-back:hover,
  #ld2CategoryLevels .ld2-category-root-popup .ld2-category-mobile-back:focus-visible{
    background:#fff3ec;border-color:#ffd0b2;color:#ba4d20;
  }
  #ld2CategoryLevels .ld2-category-root-popup .ld2-category-mobile-all{
    appearance:none;display:flex;align-items:center;flex:1 1 auto;min-width:0;min-height:42px;
    padding:9px 11px;border:1px solid #ffd8c1;border-radius:10px;background:#fff3ec;
    color:#a94518;text-align:left;overflow-wrap:anywhere;
    font:600 13px/1.4 Arial,system-ui,sans-serif;cursor:pointer;
  }
  #ld2CategoryLevels .ld2-category-root-popup .ld2-category-mobile-all:hover,
  #ld2CategoryLevels .ld2-category-root-popup .ld2-category-mobile-all:focus-visible{
    background:#ffe8da;border-color:#ffcbaa;
  }
  #ld2CategoryLevels .ld2-category-root-popup .ld2-category-child-choice.ld2-category-has-children{
    font-weight:600!important;
  }
  #ld2CategoryLevels .ld2-category-root-popup .ld2-category-mobile-next{
    display:block;width:18px;height:18px;flex:0 0 18px;margin-left:auto;color:#8292a2;
  }
  #ld2CategoryLevels .ld2-category-root-popup .ld2-category-chevron-right{transform:rotate(180deg)}
}
