/* Estella – lista produktów na telefonie (2026-11-11): 2 kolumny, niższy nagłówek kategorii, przycisk filtrów.
   Działa tylko na ekranach do 767 px. Wyłączenie: usuń 2 linie "estella-listing-mobile" z themes/estella/templates/_partials/head.tpl */

.est-filter-fab { display: none; }

@media (max-width: 767px) {

  /* Nagłówek kategorii: zamiast całego ekranu ok. 160 px */
  .pxl-category-desc-container img.pxl-category-cover { min-height: 0 !important; height: 100% !important; object-fit: cover; }
  .pxl-category-desc-container .pxl-category-desc { padding: 18px 16px 16px !important; }
  .pxl-category-desc-container .pxl-category-desc h1 { font-size: 34px !important; line-height: 1.15 !important; margin: 0 0 6px !important; }
  .pxl-category-desc-container .pxl-category-desc p {
    font-size: 14px !important; line-height: 1.4 !important; margin: 0 !important;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .pxl-category-desc-container .pxl-category-desc p + p { display: none; }

  /* Lista produktów w 2 kolumnach */
  #js-product-list .products { margin-left: -5px !important; margin-right: -5px !important; }
  #js-product-list .products > .pxl-product-list-container {
    flex: 0 0 50% !important; max-width: 50% !important; width: 50% !important;
    padding: 0 5px !important; box-sizing: border-box;
  }
  #js-product-list .pxl-product-item-foto { padding: 0 !important; }
  #js-product-list .pxl-product-item-info { padding: 8px 2px 0 !important; }
  #js-product-list .pxl-product-item-name { font-size: 12px !important; line-height: 1.35 !important; letter-spacing: .02em !important; }
  #js-product-list .pxl-product-item-price, #js-product-list .pxl-product-item-price > span { font-size: 15px !important; }
  #js-product-list .pxl-product-item-price-old-save-amount { display: block; font-size: 11px !important; }
  #js-product-list .fmm_sticker_base_span { transform: scale(.5); transform-origin: left bottom; }

  /* Przyklejony przycisk filtrów */
  .est-filter-fab {
    display: inline-flex; align-items: center; gap: 8px;
    position: fixed; left: 12px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 1030;
    padding: 0 18px; height: 44px; border: 0; border-radius: 22px;
    background: #333; color: #fff; font-size: 14px; font-weight: 600; letter-spacing: .03em;
    box-shadow: 0 4px 14px rgba(0,0,0,.2); transition: transform .2s ease, opacity .2s ease;
  }
  .est-filter-fab.est-hidden { transform: translateY(80px); opacity: 0; pointer-events: none; }
  .est-filter-fab svg { width: 18px; height: 18px; }
}
