/* ==========================================================================
   9. Dopracowana Responsywność Mobilna (Mobile-First Polish)
   ========================================================================== */

/* Optymalizacja dotyku dla urządzeń mobilnych */
@media (hover: none) and (pointer: coarse) {
  .item-card:hover {
    transform: none;
    box-shadow: none; /* P10 E7 */
  }
  .item-card:active {
    transform: scale(0.975);
    border-color: var(--border-strong);
    transition: transform 0.1s ease;
  }
  .cat-pill:hover,
  .subcat-chip:hover,
  .dmg-chip:hover {
    transform: none;
  }
  .cat-pill:active,
  .subcat-chip:active,
  .dmg-chip:active {
    transform: scale(0.96);
  }
}

/* 1. Laptopy / Tablety poziome (<= 1024px) */
@media (max-width: 1024px) {
  .modal-grid-body {
    grid-template-columns: 1fr;
  }
  .modal-left-chart-col {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    padding: 18px;
  }
  .modal-right-sellers-col {
    padding: 18px;
  }
  .recent-sellers-list {
    min-height: 260px;
    max-height: 320px;
  }
  .modal-metrics-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
}

/* 2. Tablety pionowe & Smartfony (<= 768px) */
@media (max-width: 768px) {
  :root {
  }

  /* Sticky Topbar & Mobilny nagłówek */
  .app-header {
    position: sticky;
    top: 0;
    padding-top: max(4px, env(safe-area-inset-top));
  }

  /* Kompaktowy naglowek: [brand | KPI+Discord] / [wyszukiwarka] */
  .header-inner {
    padding: 8px 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand actions"
      "search search";
    align-items: center;
    gap: 8px 10px;
  }

  /* Ukryj stare górne zakładki w nagłówku na telefonach - oszczędność cennego miejsca */
  nav.app-nav-tabs {
    display: none; /* wyzsza specyficznosc niz .app-nav-tabs w base.css */
  }

  /* Mobilny Bottom Navigation Bar — styl Apple Glass / Raycast */
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: var(--z-bottom-nav);
    height: calc(58px + env(safe-area-inset-bottom, 0px));
    padding: 5px 12px max(6px, env(safe-area-inset-bottom, 0px)) 12px;
    /* Bez backdrop-filter: przyklejony pasek nad przewijana siatka = rozmycie liczone w kazdej klatce scrolla.
       Krycie 0.97 zamiast blura daje ten sam wyglad. */
    background: var(--bg-base); /* audyt 18.11 W21: pelne krycie, tresc nie przeswituje */
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.6);
    justify-content: space-around;
    align-items: center;
    gap: 6px;
  }

  .mobile-nav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    background: transparent;
    border: none;
    padding: 4px 6px;
    border-radius: var(--radius-lg);
    cursor: pointer;
    color: var(--slate-500);
    transition: color 0.18s ease, transform 0.12s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    position: relative;
  }

  .mobile-nav-btn:active {
    transform: scale(0.92);
  }

  .mobile-nav-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 28px;
    border-radius: var(--radius-md);
    transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    transition-property: var(--tr-props);
  }

  .mobile-nav-btn svg {
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), stroke 0.2s ease, fill 0.2s ease;
  }

  .mobile-nav-label {
    font-family: var(--font-sans);
    font-size: var(--fs-xs); /* audyt 18.11 W2/W4: 12 px zamiast 10,9 px */
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: color 0.18s ease;
  }

  /* Aktywna zakładka mobilna */
  .mobile-nav-btn.active {
    color: var(--accent);
  }

  .mobile-nav-btn.active .mobile-nav-icon-wrap {
    background: var(--bg-sky-14);
  }

  .mobile-nav-btn.active svg {
    color: var(--accent);
    transform: translateY(-1px) scale(1.06);
  }

  .mobile-nav-btn.active .mobile-nav-label {
    color: var(--color-white);
    font-weight: 700;
  }

  .mobile-nav-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    width: 14px;
    height: 2.5px;
    border-radius: var(--radius-2xs);
  background: var(--accent); /* P10 E7: jeden akcent, bez poswiaty */
  box-shadow: none;
  }

  /* Wiersz 1: Brand & Kompaktowe KPI */
  .brand-group {
    grid-area: brand;
    min-width: 0;
  }

  .header-right-actions {
    grid-area: actions;
    gap: 6px;
  }

  .nav-discord-btn {
    width: 32px;
    height: 32px;
  }

  /* Wiersz 2: Wyszukiwarka na całą szerokość */
  .search-terminal-wrap {
    grid-area: search;
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .search-input-box {
    height: 40px;
    border-radius: var(--radius-card);
    background-color: var(--bg-base);
    padding: 0 10px;
  }

  .search-input-box input {
    font-size: var(--fs-lg); /* Zapobiega auto-zoomowi w iOS Safari */
  }

  .kbd-shortcut {
    display: none; /* Zbędny na ekranach dotykowych */
  }

  /* Główny kontener terminala */
  .terminal-main {
    padding: 12px 10px calc(76px + env(safe-area-inset-bottom, 0px)) 10px;
  }

  /* body .app-footer: wygrywa z .app-footer w modal.css i z regula <=480px nizej (:666) */
  body .app-footer {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }

  body .scroll-top-btn {
    bottom: calc(68px + env(safe-area-inset-bottom, 0px));
    right: 6px; /* audyt 18.11 W21: blizej krawedzi i przygaszony, mniej zaslania ostatnia kolumne tabel */
    opacity: 0.8;
  }

  /* Pasek Narzędzi i Pigułki Kategorii */
  .market-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 12px;
  }

  .category-tabs {
    display: flex;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 6px;
    padding: 2px 2px 4px 2px;
    width: 100%;
    scroll-snap-type: x mandatory;
  }

  .category-tabs::-webkit-scrollbar {
    display: none;
  }

  .cat-pill {
    padding: 7px 12px;
    font-size: var(--fs-xs);
    flex-shrink: 0;
    border-radius: var(--radius-md);
    scroll-snap-align: start;
    -webkit-tap-highlight-color: transparent;
  }

  .cat-icon-img {
    width: 18px;
    height: 18px;
  }

  /* Kontrolki: Licznik & Sortowanie */
  .toolbar-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
  }

  .items-count-indicator {
    font-size: var(--fs-xs);
    white-space: nowrap;
  }

  .sort-dropdown-wrap {
    flex: 1;
    min-width: 0;
    max-width: 220px;
  }

  .sort-dropdown-btn {
    height: 34px;
    padding: 0 8px;
    border-radius: var(--radius-md);
    width: 100%;
    min-width: 0;
    justify-content: space-between;
  }

  .sort-prefix {
    font-size: var(--fs-2xs);
    flex-shrink: 0;
  }
  /* Audyt #18: bez prefiksu "Sortuj:" (zostaje ikona), zeby nazwa sortowania sie miescila */
  .sort-dropdown-btn .sort-prefix { display: none; }
  /* Audyt #2 na mobile: mniejsza rezerwa szerokosci licznika */
  .items-count-indicator { min-width: 6.5em; }

  .sort-selected-text {
    font-size: var(--fs-xs);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sort-dropdown-menu {
    min-width: 215px;
    right: 0;
  }

  /* Pasek Podkategorii — Płynne przewijanie dotykowe w 1 rzędzie */
  .subcategory-bar {
    margin-top: -4px;
    margin-bottom: 12px;
    padding: 8px 10px;
    border-radius: var(--radius-card);
  }

  .subcategory-inner {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .subcategory-inner::-webkit-scrollbar {
    display: none;
  }

  .subcat-prefix {
    display: none; /* Oszczędność miejsca na telefonach */
  }

  .subcategory-chips {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
  }

  .subcat-chip {
    padding: 5px 10px;
    font-size: var(--fs-xs);
    flex-shrink: 0;
    border-radius: var(--radius-sm);
  }

  /* Pasek Filtra % DMG dla Mieczy — Płynne przewijanie dotykowe */
  .dmg-filter-bar {
    padding: 6px 10px;
    margin-bottom: 12px;
    border-radius: var(--radius-md);
  }

  .dmg-filter-inner {
    gap: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .dmg-filter-inner::-webkit-scrollbar {
    display: none;
  }

  .dmg-filter-prefix {
    font-size: var(--fs-2xs);
    flex-shrink: 0;
  }

  .dmg-filter-chips {
    flex-wrap: nowrap;
    gap: 5px;
  }

  .dmg-chip {
    padding: 4px 8px;
    font-size: var(--fs-2xs);
    flex-shrink: 0;
  }

  /* Siatka Kart Giełdowych — Profesjonalny 2-kolumnowy mobilny Grid */
  .grid-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .item-card {
    padding: 10px 9px 8px 9px;
    border-radius: var(--radius-card);
  }

  .card-image-hero {
    height: 92px;
    border-radius: var(--radius-card);
    margin-bottom: 8px;
  }

  .mc-slot-box img {
    width: 50px;
    height: 50px;
  }

  .card-time-badge {
    font-size: var(--fs-2xs);
    padding: 1px 5px;
    top: 5px;
    right: 5px;
  }

  .item-badge-tag {
    font-size: var(--fs-2xs);
    padding: 1px 5px;
  }

  .trend-badge {
    font-size: var(--fs-2xs);
    padding: 1px 5px;
  }

  .card-item-title,
  .card-item-title.title-sm {
    font-size: var(--fs-base);
    line-height: 1.22;
  }

  .card-item-title.title-xs {
    font-size: var(--fs-sm);
  }

  .card-hero-tags {
    left: 5px;
    right: 5px;
    bottom: 5px;
  }

  .card-dmg-badge {
    font-size: var(--fs-2xs);
    padding: 1px 5px;
  }

  .card-pricing-block {
    padding: 2px 0; /* P10 E7: blok ceny bez ramki */
    border-radius: 0;
    margin-bottom: 7px;
    gap: 2px;
  }

  .pricing-row-1h.is-primary .pricing-val {
    font-size: var(--fs-xl);
  }

  .pricing-row-base .pricing-val {
    font-size: var(--fs-sm);
  }

  .pricing-tag {
    font-size: var(--fs-2xs);
    padding: 1px 4px;
  }

  .card-footer-row {
    font-size: var(--fs-2xs);
    padding-top: 5px;
  }

  /* Modal Analityczny — Ergonomiczny Bottom-Sheet na telefonach */
  .market-modal-backdrop {
    padding: 0;
    align-items: flex-end;
  }

  .market-modal-panel {
    width: 100%;
    max-width: 100%;
    height: 94vh;
    max-height: 94vh;
    height: 94dvh;
    max-height: 94dvh;
    border-radius: 18px 18px 0 0;
    border-bottom: none;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.85);
  }

  .modal-topbar {
    padding: 10px 14px;
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    background-color: var(--bg-base);
  }

  .modal-item-identity {
    gap: 10px;
  }

  .modal-item-icon-box {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
  }

  .modal-item-icon-box img {
    width: 34px;
    height: 34px;
  }

  .modal-item-name {
    font-size: var(--fs-lg);
    line-height: 1.2;
  }

  .modal-item-key {
    font-size: var(--fs-2xs);
  }

  .modal-top-pricing {
    gap: 10px;
  }

  .modal-price-label {
    font-size: var(--fs-2xs);
  }

  .modal-price-val {
    font-size: var(--fs-2xl);
  }

  .modal-close-btn {
    width: 38px;
    height: 38px;
    font-size: var(--fs-3xl);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    flex-shrink: 0;
    padding: 0;
  }

  .modal-grid-body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: block;
  }

  .modal-left-chart-col {
    padding: 14px;
  }

  .chart-controls-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-bottom: 10px;
  }

  .chart-timeframe-group {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: flex-start;
    padding: 3px;
    gap: 3px;
  }

  .chart-timeframe-group::-webkit-scrollbar {
    display: none;
  }

  .btn-timeframe {
    padding: 4px 10px;
    font-size: var(--fs-xs);
    flex-shrink: 0;
    min-height: 30px;
  }

  .chart-legend-pills {
    flex-wrap: wrap;
    gap: 8px;
    font-size: var(--fs-2xs);
    justify-content: space-between;
  }

  .chart-canvas-wrapper {
    height: 200px;
    margin-bottom: 12px;
  }

  .modal-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .modal-metrics-grid .metric-card,
  .modal-metrics-grid .metric-card:nth-child(n+4) {
    /* PN-06: n+4 z modal.css (padding 6px 0) wygrywal i dolny wiersz tracil boczny odstep */
    padding: 6px 8px;
  }

  .modal-metrics-grid .metric-card small {
    font-size: var(--fs-2xs);
  }

  .modal-metrics-grid .metric-card strong {
    font-size: var(--fs-base);
  }

  .mc-tooltip-box {
    font-size: var(--fs-xs);
    padding: 8px 10px;
    max-width: 100%;
  }

  .recent-sellers-list {
    max-height: 220px;
  }

  .seller-row {
    font-size: var(--fs-xs);
  }

  .seller-row-name {
    max-width: 95px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Toast Powiadomienia wycentrowany na telefonach */
  .market-toast {
    left: 14px;
    right: 14px;
    bottom: calc(70px + env(safe-area-inset-bottom, 0px));
    width: auto;
    justify-content: center;
    font-size: var(--fs-sm);
    padding: 10px 14px;
    border-radius: var(--radius-card);
  }

  /* Stopka */
  .app-footer {
    padding: 12px 14px max(14px, env(safe-area-inset-bottom)) 14px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 6px;
    padding: 4px 0;
  }
}

/* 3. Wąskie Smartfony (<= 480px, np. iPhone 12/13/14 mini, SE) */
@media (max-width: 480px) {
  .header-inner {
    padding: 6px 10px;
  }

  .logo-box {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
  }

  .brand-icon {
    width: 18px;
    height: 18px;
  }

  .brand-name {
    font-size: var(--fs-lg);
  }


  .grid-container {
    gap: 8px;
  }

  .item-card {
    padding: 8px 7px 7px 7px;
    border-radius: var(--radius-card);
  }

  .card-image-hero {
    height: 80px;
    margin-bottom: 6px;
  }

  .mc-slot-box img {
    width: 44px;
    height: 44px;
  }

  /* Waska siatka 2-kolumnowa: tytul do 2 linii zamiast ucinania */
  .card-item-title,
  .card-item-title.title-sm,
  .card-item-title.title-xs {
    font-size: var(--fs-sm);
    line-height: 1.22;
    height: 2.44em;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .pricing-row-1h.is-primary .pricing-val {
    font-size: var(--fs-lg);
  }

  .pricing-row-base .pricing-val {
    font-size: var(--fs-xs);
  }

  .card-footer-row {
    font-size: var(--fs-2xs);
  }

  .modal-topbar {
    padding: 9px 10px;
  }

  .modal-item-name {
    font-size: var(--fs-md);
  }

  .modal-price-val {
    font-size: var(--fs-xl);
  }

  .chart-canvas-wrapper {
    height: 180px;
  }
}

/* 4. Skrajnie Wąskie Ekrany (<= 350px, np. Galaxy Fold złożony) */
@media (max-width: 350px) {
  .grid-container {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .modal-metrics-grid {
    grid-template-columns: 1fr;
  }
}

/* Telefon: lore przeniesione do wnetrza panelu modalu (modal.js), bez przewijania tla */
@media (max-width: 768px) {
  .modal-grid-body .modal-lore-popout {
    width: auto;
    min-width: 0;
    max-width: none;
    max-height: none;
    margin: 0 14px 14px;
    box-shadow: none;
    animation: none;
    align-self: stretch;
  }

  .calc-picker-filter-chips {
    padding-right: 32px;
  }
}

/* Waskie telefony (<= 380px): prefiks sortowania zabiera miejsce licznikowi */
@media (max-width: 380px) {
  .sort-prefix {
    display: none;
  }
  .items-count-indicator {
    font-size: var(--fs-2xs);
  }
}

/* Z-010: pozycja Konto w dolnej nawigacji mobilnej */
.mobile-nav-account { text-decoration: none; }
/* Kontrola 18.11: przy 320 px piec przyciskow mialo 346 px (konto poza ekranem); szerokosc wg tresci i min-width 0 mieszcza pasek */
@media (max-width: 360px) { .mobile-nav-btn { flex: 1 1 auto; min-width: 0; } }
/* G28: logowanie jest w dolnym pasku od 768px w dol - bez duplikatu w naglowku */
@media (max-width: 768px) { .nav-login-btn { display: none; } }
.mobile-nav-account .nav-mobile-avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; display: block; }

/* G25: kompaktowy hero i karta na telefonie - wiecej przedmiotow na pierwszym ekranie */
@media (max-width: 640px) {
  .market-hero { padding: 8px 0 8px; gap: 8px; }
  .market-hero-title { font-size: var(--fs-xl); }
  .market-hero-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px 10px; }
  .market-hero-stats dd { font-size: var(--fs-base); }
  .market-hero-stats dt { font-size: var(--fs-2xs); }
  /* Audyt #17: liczby w jednej linii, gdy etykieta lamie sie na 2 wiersze (column-reverse -> flex-end = gora) */
  .market-hero-stats > div { justify-content: flex-end; }
  .card-image-hero { height: 64px; margin-bottom: 5px; }
  .mc-slot-box img { width: 38px; height: 38px; }
  .card-pricing-block { margin-bottom: 4px; }
}

/* Hit-targety 44 px na ekranach dotykowych (WCAG 2.5.5); desktop bez zmian */
@media (pointer: coarse) {
  .calc-item-remove-btn,
  .calc-stepper-btn,
  .calc-chip,
  .btn-quick-qty,
  .sort-dropdown-btn,
  .nav-user-btn,
  .nav-discord-btn,
  .footer-discord-btn,
  .modal-close-btn,
  .search-clear-btn,
  .stale-banner-close,
  .scroll-top-btn,
  .dmg-chip,
  .quick-chip,
  .player-sort-chip,
  .cat-pill,
  .btn-timeframe,
  .subcat-chip,
  /* Audyt 14.11 (niskie): pozostale cele 28-30 px */
  .btn-copy-nick,
  .drops-chart-close,
  .calc-picker-add-action,
  .btn-calc-picker-done,
  .calc-item-dmg-select {
    min-height: 44px;
    min-width: 44px;
  }
  /* Audyt 18.11 W3: wiersze ofert i linki nickow w dropach (tylko wysokosc, szerokosc bez zmian) */
  .seller-row { min-height: 44px; }
  .drops-player { display: inline-flex; align-items: center; min-height: 44px; }
  /* Audyt 20.11: dropy - przyciski okresu (36 px), "Pokaz wiecej" (34 px) i etykieta pola wyboru (20 px) */
  .seg-btn, .drops-more { min-height: 44px; }
  label:has(> #dropsEmpty) { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
  #searchInput, #dropsItem, #dropsPlayer, #playersSearchInput, #playerListingsFilter, #calcPickerSearchInput { min-height: 44px; }
  /* AUD-1411: calc.css ustawia x pozycji na 20x24 px selektorem mocniejszym niz lista powyzej; pole 44 px wysrodkowane na tej samej ikonie */
  .calc-main .calc-item-card > button.calc-item-remove-btn { width: 44px; height: 44px; right: 2px; }
  /* PRZ-1611 pkt 5: calc.css zeruje min-width listy obrazen selektorem mocniejszym niz lista powyzej (bylo 32x44 px) */
  .calc-main select.calc-item-dmg-select { min-width: 44px; }
  /* Wiekszy przycisk kopiowania nie moze lamac ceny w naglowku modala ("3.39M" / "$"); miejsce oddaje nazwa */
  .modal-price-val { white-space: nowrap; }
}

/* Audyt UI 12.11 K6: modal przedmiotu bez wyjscia poza ekran, metryki w 2 kolumnach */
@media (max-width: 768px) {
  .market-modal-panel { max-width: 100vw; overflow-x: hidden; }
  .modal-grid-body { grid-template-columns: minmax(0, 1fr); }
  .modal-metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Audyt 18.11 W2: dolna granica rozmiaru tekstu na wszystkich szerokosciach - tresc 12 px, etykiety pomocnicze 11 px.
   Widok kompaktowy ma wlasne, wieksze rozmiary (cards.css) i jest pominiety. */
#valueGrid:not(.view-compact) .item-card .card-footer-row,
#valueGrid:not(.view-compact) .item-card .card-footer-row > *,
#valueGrid:not(.view-compact) .item-card .card-footer-row .card-volume-box,
#valueGrid:not(.view-compact) .item-card .card-footer-row .card-time-badge,
#valueGrid:not(.view-compact) .item-card .trend-badge,
#valueGrid:not(.view-compact) .item-card .card-head-text .item-badge-tag,
#chartModal .seller-row-count,
#chartModal .seller-row-time { font-size: var(--fs-xs); }
#valueGrid:not(.view-compact) .item-card .pricing-tag,
#valueGrid:not(.view-compact) .item-card .card-dmg-badge,
#chartModal .seller-deal-badge,
#chartModal .modal-price-label,
#chartModal .modal-metrics-grid .metric-card small { font-size: var(--fs-2xs); }
/* Audyt 18.11 W20: ciasniejsze odstepy nad lista na telefonie (pierwsza karta wyzej, bez zmiany ukladu blokow) */
@media (max-width: 768px) {
  body .market-hero { margin-bottom: 8px; padding-top: 4px; padding-bottom: 4px; }
  body .market-toolbar { gap: 6px; margin-bottom: 6px; }
  body #viewModeToggle { margin-bottom: 6px; }
}

/* STR-64: przy wpisanej frazie na telefonie bez naglowka ze statystykami */
@media (max-width: 768px) { body.is-searching .market-hero { display: none; } }

/* STR-66: w kategorii na telefonie bez naglowka ze statystykami - naglowek z filtrami zajmowal 64% ekranu */
@media (max-width: 768px) { body.is-category .market-hero { display: none; } }
