/* =========================================================================
 * Don Caruso — warstwa mobilna + PWA (2026)
 * -------------------------------------------------------------------------
 * ZASADA: wszystko poniżej działa WYŁĄCZNIE na urządzeniach <= 767 px.
 * Desktop (>= 768 px) zostaje dokładnie taki, jaki był — patrz blok
 * "@media (min-width:768px)", który ukrywa nowe komponenty.
 *
 * Sekcje: 1) zmienne + ochrona desktopu, 2) bazowe poprawki mobilne,
 * 3) dolna nawigacja + badge koszyka, 4) wyszukiwarka, 5) drawer filtrów,
 * 6) toast/install/update, 7) listing, 8) karta produktu, 9) koszyk,
 * 10) checkout, 11) konto, 12) dostępność.
 * ========================================================================= */

/* ---------- 1. zmienne + ochrona desktopu ---------- */
:root {
  --dc-gold: #cb9845;
  --dc-gold-dark: #b3852f;
  --dc-ink: #1c1a17;
  --dc-muted: #6b655d;
  --dc-line: #e7e1d8;
  --dc-nav-h: 58px;
  --dc-radius: 14px;
  --dc-shadow: 0 6px 24px rgba(28, 26, 23, .12);
}

/* Nowe komponenty wyłączone na desktopie i tablecie — desktop 1:1 jak dotychczas. */
.dc-bottomnav,
.dc-search,
.dc-toast,
.dc-install,
.dc-update,
.dc-stickyatc,
.dc-filtersbar,
.dc-sheet-backdrop,
.dc-drawer,
.dc-cartbar {
  display: none;
}

/* Baner "Zainstaluj aplikację Don Caruso" — WYŁĄCZONY decyzją z 2026-10-12.
   Reguła celowo POZA media query, żeby zadziałała również na starym HTML-u z cache
   (markup banera został usunięty z inc/pwa-mobile.php). */
.dc-install,
[data-dc-install],
.dc-install[hidden] {
  display: none !important;
}

@media (min-width: 768px) {
  .dc-bottomnav,
  .dc-search,
  .dc-toast,
  .dc-install,
  .dc-update,
  .dc-stickyatc,
  .dc-filtersbar,
  .dc-sheet-backdrop,
  .dc-drawer,
  .dc-cartbar {
    display: none !important;
  }
}

@media (max-width: 767px) {

  /* ---------- 1a. Elementor kit nie może stylować NASZYCH kontrolek ----------
   * Kit (`.elementor-kit-5279 button`) nadaje KAŻDEMU `<button>`: tło #131313
   * (`--e-global-color-primary`), promień 2em, padding .6em 1.2em, obramowanie 1px
   * i biały tekst — a w stanie `:hover`/`:focus` POMARAŃCZOWE tło #EF6F0C
   * (`--e-global-color-b9ac912`). Na telefonie dotknięcie zostawia stan :hover,
   * dlatego „×” zamykający menu stawał się czarną, a po dotknięciu pomarańczową
   * pigułką; tak samo „Szukaj”, „Filtry i sortowanie”, „−/+” i „Odśwież” były czarne.
   * `!important` jest konieczne: kit jest równie swoisty (0-1-1), tylko wcześniejszy
   * w kolejności arkuszy, a reguła hover na `background-color` nie ma `!important`.
   * Celujemy wyłącznie w znaczniki NASZYCH komponentów, więc np. przycisk „Filtruj”
   * z wtyczki filtrów WooCommerce zachowuje swoje style.
   */
  [data-dc-close],
  [data-dc-open],
  .dc-search__submit,
  .dc-filtersbar__btn,
  .dc-qty-btn,
  .dc-update__btn {
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-family: inherit !important;
    text-transform: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
  }

  /* Nasze kolory/promienie — jawnie, z `!important` (patrz sekcja 1a). */
  .dc-drawer__foot .dc-btn-clear {
    background-color: #f4f1ec !important;
    color: var(--dc-ink) !important;
    border-radius: 12px !important;
    padding: 0 16px !important;
  }

  .dc-drawer__foot .dc-btn-apply,
  .dc-search__submit,
  .dc-update__btn {
    background-color: var(--dc-gold) !important;
    color: #fff !important;
  }

  .dc-drawer__foot .dc-btn-apply,
  .dc-search__submit {
    border-radius: 12px !important;
  }

  .dc-search__submit {
    padding: 0 18px !important;
  }

  .dc-update__btn {
    border-radius: 9px !important;
    padding: 0 12px !important;
  }

  .dc-filtersbar__btn {
    background-color: #fff !important;
    /* Kolor MUSI być nadpisany: kit ustawia biały tekst (`--e-global-color-kadence9`),
       który na białej pigułce był niewidoczny (text i ikona `currentColor`). */
    color: var(--dc-ink) !important;
    border: 1px solid var(--dc-line) !important;
    border-radius: 999px !important;
    padding: 0 16px !important;
  }

  .dc-qty-btn {
    background-color: #f7f4ef !important;
    /* j.w. — „−/+” na jasnym tle z białym tekstem z kitu były niewidoczne. */
    color: var(--dc-ink) !important;
  }

  /*
   * „×” zamykający panele (menu, filtry, wyszukiwarka): kwadrat 44 px,
   * glif dokładnie w środku (grid + place-items), bez tła w każdym stanie.
   * Wcześniej kit dokładał padding .6em 1.22em, przez co glif był przesunięty
   * o +7 px w prawo i +6,6 px w dół, a przycisk urósł do 65×46 px.
   */
  .dc-drawer__close,
  .dc-search__close {
    display: grid !important;
    place-items: center !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background-color: transparent !important;
    box-shadow: none !important;
    color: var(--dc-ink) !important;
    font-size: 26px !important;
    line-height: 1 !important;
    font-weight: 400 !important;
    -webkit-tap-highlight-color: transparent;
  }

  /* Widoczny focus z klawiatury (iOS/Android: tylko nawigacja klawiaturą). */
  [data-dc-close]:focus-visible,
  .dc-bottomnav__item:focus-visible,
  .dc-filtersbar__btn:focus-visible {
    outline: 2px solid var(--dc-gold) !important;
    outline-offset: 2px !important;
  }

  /* ---------- 2. bazowe poprawki mobilne ---------- */
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  body {
    overflow-x: hidden;
    font-size: 16px;
    line-height: 1.55;
  }

  body:not(.woocommerce-cart):not(.woocommerce-checkout) {
    padding-bottom: calc(var(--dc-nav-h) + env(safe-area-inset-bottom, 0px));
  }

  img, video, iframe {
    max-width: 100%;
  }

  h1 { font-size: 27px !important; line-height: 1.2 !important; }
  h2 { font-size: 22px !important; line-height: 1.25 !important; }
  h3 { font-size: 19px !important; line-height: 1.3 !important; }
  p, li { font-size: 16px; }

  /* Pola: 16px = brak auto-zoom na iPhonie, 48px = wygodny tap-target. */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="url"],
  input[type="number"],
  input[type="password"],
  input[type="search"],
  input[type="date"],
  select,
  textarea,
  .select2-container .select2-selection--single,
  .select2-container .select2-selection--multiple {
    font-size: 16px !important;
    min-height: 48px !important;
    line-height: 1.3 !important;
    border-radius: 10px !important;
    padding: 10px 12px !important;
    border: 1px solid var(--dc-line) !important;
    background: #fff !important;
    width: 100%;
  }

  textarea {
    min-height: 110px !important;
  }

  select,
  .select2-container {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Tap-targety >= 44px (Apple HIG / Material). */
  .elementor-button,
  .button,
  .woocommerce-button,
  button,
  input[type="submit"],
  input[type="button"],
  .single_add_to_cart_button,
  .checkout-button,
  #place_order {
    min-height: 46px;
    font-size: 16px;
    border-radius: 12px;
  }

  .woocommerce-breadcrumb {
    font-size: 12px !important;
    line-height: 1.4;
    margin-bottom: 10px !important;
  }

  /* ---------- 2a. górna belka = SAMO LOGO (wyśrodkowane) ----------
     Decyzja 2026-10-12 (runda 3): na telefonie zostaje w belce wyłącznie logo
     Don Caruso, wyśrodkowane — brakowało marki nad treścią. Cała nawigacja żyje
     w dolnym pasku PWA (Menu / Szukaj / Koszyk / Konto), więc z belki wylatuje
     wszystko, co ten pasek dubluje:
       • mega-menu (Elementor i tak zwija je na telefonie do hamburgera) → „Menu”,
       • szukajka → pełnoekranowa nakładka z dolnego paska,
       • ikona konta i ikona koszyka → „Konto” i „Koszyk” (z badge),
       • pasek korzyści (rotacja „WYŁĄCZNIE Z ORGANICZNYCH UPRAW”,
         „100% WŁOSKIEGO POCHODZENIA”, „DARMOWA DOSTAWA JUŻ OD 199 ZŁ”).

     Kontener logo (`.don-nav-logo`) jest w oryginale żółtym kółkiem 96×96 z ujemnymi
     marginesami (nachodził 46 px na treść pod belką) i animacją swing + motion-fx;
     tutaj: bez tła, bez animacji, bez nachodzenia → belka ma 56 px (logo 69×44). */
  .elementor-location-header {
    display: block !important;
  }

  /*
   * Belka jest w normalnym przepływie strony, ale jej kontener ma z Elementora
   * `z-index: 99999` — przebijał nasze nakładki (arkusz menu 9000, filtry 9300/9350,
   * szukajka 9400, sticky CTA 9050), więc pole szukajki i „×” zamykający arkusz
   * lądowałyby POD białym paskiem z logo. Na telefonie belka tworzy więc własny
   * kontekst stosu o niskim priorytecie — nad nią jest tylko dolny pasek PWA.
   */
  .elementor-location-header {
    position: relative !important;
    z-index: 10 !important;
  }

  /* W belce zostaje tylko logo — resztę obsługuje dolny pasek PWA. */
  .elementor-location-header [data-widget_type="mega-menu.default"],
  .elementor-location-header .e-n-menu,
  .elementor-location-header .e-n-menu-toggle,
  .elementor-location-header [data-widget_type="smart_search.default"],
  .elementor-location-header [data-widget_type="icon.default"],
  .elementor-location-header [data-widget_type="shortcode.default"],
  .elementor-location-header .korzysci-sections,
  .elementor-location-header .korzysci {
    display: none !important;
  }

  /*
   * Same ukryte widgety nie wystarczą: ich KONTENERY nadal brały udział w layoucie
   * (Elementor nadaje im `--width`, np. 40%) i wypychały logo ze środka belki o ~19 px.
   * Chowamy więc wszystko w belce, co nie prowadzi do logo — zostaje sama gałąź logo.
   */
  .elementor-location-header .e-con-inner > *:not(:has(img.wp-image-3634)),
  .elementor-location-header .navbar > *:not(:has(img.wp-image-3634)),
  .elementor-location-header .nav-cont > *:not(:has(img.wp-image-3634)) {
    display: none !important;
  }

  /*
   * Logo: wyśrodkowane, bez „stickeru” i bez animacji.
   * Elementor nadaje kontenerowi aspect-ratio 1/1 + gradient 45deg (#FBE907 → biel)
   * oraz motion-fx (scale przy przewijaniu), a klasa `elementor-invisible` z animacji
   * wejścia trzyma go jako `visibility: hidden` do pierwszego przewinięcia — teraz
   * belka jest na górze KAŻDEJ podstrony, więc logo musi być widoczne od razu.
   */
  .elementor-location-header .don-nav-logo,
  .elementor-location-header .don-nav-logo.elementor-invisible {
    display: flex !important;
    visibility: visible !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    margin: 0 auto !important;
    padding: 5px 0 !important;
    background: none !important;
    background-image: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    animation: none !important;
    transform: none !important;
  }

  /*
   * Dekoracyjny „wzorek” Don Caruso (ornament sycylijski, `wp-image-5305`).
   * Na stronie głównej występuje 3× jako przerywnik i zajmuje ~96–208 px pionu
   * na wystąpienie: samo zdjęcie 32 px + marginesy 48–176 px, przez co pierwszy
   * ekran telefonu nie pokazywał ani produktów, ani kategorii.
   * Ukrywamy też cały widget (`:has`), bo pusty kontener dalej trzymał marginesy.
   * Desktop (>=768 px) zostaje bez zmian, a favicon (cropped-...wzorek2) działa.
   */
  img.wp-image-5305 {
    display: none !important;
  }

  .elementor-widget-image:has(img.wp-image-5305) {
    display: none !important;
  }

  /* Belka: delikatna linia oddzielająca od treści + logo 150×96 bez kadrowania. */
  .elementor-location-header {
    box-shadow: 0 1px 0 rgba(28, 26, 23, .08);
  }

  /*
   * Logo w proporcjach pliku (150×96). Bez tego Elementor nadaje obrazkowi
   * `width:100%; height:100%; object-fit: cover`, a kontener ma `aspect-ratio: 1/1` —
   * logo było kadrowane do kwadratu (ucinało „Don” i „Caruso”).
   */
  .elementor-location-header img {
    max-height: 44px;
    width: auto;
    height: auto;
    object-fit: contain;
  }

  /* Szukajkę w nagłówku zastępuje pełnoekranowa nakładka z dolnej nawigacji. */
  .elementor-location-header .smart-search-wrapper,
  .elementor-location-header .smart-search,
  .elementor-location-header .dgwt-wcas-search-wrapp,
  .elementor-location-header .aws-search-form,
  .elementor-location-header input[type="search"] {
    display: none !important;
  }

  .elementor-location-footer {
    content-visibility: auto;
    contain-intrinsic-size: 900px;
  }

  /* ---------- 3. dolna nawigacja aplikacyjna ----------
     Cztery pozycje: Menu (drzewo kategorii — zastępuje górną belkę i link
     do sklepu), Szukaj, Koszyk (z badge), Konto. Pozycji „Sklep” nie ma
     (decyzja 2026-10-12) — listing otwiera złoty przycisk „Wszystkie produkty”
     w stopce arkusza menu. */
  .dc-bottomnav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9000;
    background: rgba(255, 255, 255, .98);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    backdrop-filter: saturate(180%) blur(12px);
    border-top: 1px solid var(--dc-line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
    transition: transform .22s ease;
  }

  body.woocommerce-cart .dc-bottomnav,
  body.woocommerce-checkout .dc-bottomnav,
  body.dc-atc-active .dc-bottomnav {
    transform: translateY(120%);
    pointer-events: none;
  }

  .dc-bottomnav__item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 46px;
    padding: 2px 4px;
    /* Reset stylów Elementora dla pozycji paska (a i button wyglądają identycznie)
       — sekcja 1a. Tu tylko układ i kolor nieaktywnej pozycji. */
    color: var(--dc-muted) !important;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .1px;
    text-decoration: none !important;
    -webkit-tap-highlight-color: transparent;
  }

  .dc-bottomnav__item svg {
    width: 23px;
    height: 23px;
  }

  .dc-bottomnav__item.is-active {
    color: var(--dc-gold) !important;
  }

  .dc-bottomnav__badge {
    position: absolute;
    top: -2px;
    left: 50%;
    margin-left: 6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--dc-gold);
    color: #fff;
    font-size: 11px;
    line-height: 18px;
    font-weight: 700;
    text-align: center;
  }

  .dc-bottomnav__badge[hidden] {
    display: none;
  }

  /* ---------- 4. nakładka wyszukiwarki ---------- */
  .dc-search {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9400;
    background: #fff;
    padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 16px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .dc-search[hidden] {
    display: none;
  }

  /* „×” wyszukiwarki: wygląd/rozmiar/reset kitu — sekcja 1a. Tu tylko odstęp. */
  .dc-search__close {
    margin-left: -6px;
  }

  .dc-search__form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    margin-top: 4px;
  }

  .dc-search__input {
    height: 52px !important;
    min-height: 52px !important;
    font-size: 17px !important;
  }

  .dc-search__submit {
    height: 52px;
    padding: 0 18px;
    border: 0;
    border-radius: 12px;
    background: var(--dc-gold);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
  }

  .dc-search__popular {
    margin-top: 26px;
    border-top: 1px solid var(--dc-line);
    padding-top: 16px;
  }

  .dc-search__popular p {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    color: var(--dc-muted);
  }

  .dc-search__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .dc-chip {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 8px 14px;
    border: 1px solid var(--dc-line);
    border-radius: 999px;
    background: #faf8f5;
    color: var(--dc-ink) !important;
    font-size: 15px;
    text-decoration: none !important;
  }

  /* ---------- 5. drawer / arkusz filtrów ---------- */
  .dc-sheet-backdrop {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9300;
    background: rgba(24, 22, 20, .45);
    opacity: 0;
    transition: opacity .2s ease;
  }

  .dc-sheet-backdrop[hidden] {
    display: none;
  }

  .dc-sheet-backdrop.is-open {
    opacity: 1;
  }

  .dc-drawer {
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9350;
    max-height: 88vh;
    background: #fff;
    border-radius: 18px 18px 0 0;
    box-shadow: var(--dc-shadow);
    transform: translateY(101%);
    transition: transform .25s ease;
  }

  .dc-drawer.is-open {
    transform: translateY(0);
  }

  .dc-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--dc-line);
  }

  .dc-drawer__title {
    font-size: 17px;
    font-weight: 700;
  }

  /* „×” arkuszy (menu, filtry): wygląd i reset kitu — sekcja 1a. */

  .dc-drawer__body {
    padding: 8px 16px 16px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .dc-drawer__foot {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 10px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--dc-line);
    background: #fff;
  }

  .dc-drawer__foot .dc-btn-clear {
    background: #f4f1ec;
    color: var(--dc-ink);
    border: 0;
    border-radius: 12px;
    min-height: 48px;
    font-weight: 700;
  }

  .dc-drawer__foot .dc-btn-apply {
    background: var(--dc-gold);
    color: #fff;
    border: 0;
    border-radius: 12px;
    min-height: 48px;
    font-weight: 700;
    font-size: 16px;
  }

  /* Widgety filtrów (WooCommerce/Elementor) — czytelne i wygodne na palec. */
  .dc-drawer .widget {
    margin-bottom: 18px;
  }

  .dc-drawer .widget-title,
  .dc-drawer h3 {
    font-size: 15px !important;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: var(--dc-muted);
  }

  .dc-drawer ul li,
  .dc-drawer label {
    min-height: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
  }

  .dc-drawer input[type="checkbox"],
  .dc-drawer input[type="radio"] {
    width: 22px !important;
    height: 22px !important;
    min-height: 22px !important;
    padding: 0 !important;
    border-radius: 6px !important;
    accent-color: var(--dc-gold);
  }

  /* ---------- 5b. menu kategorii w dolnym pasku (zastępuje górną belkę) ---------- */
  .dc-menu {
    padding: 4px 14px 12px;
  }

  .dc-menu details {
    border-bottom: 1px solid var(--dc-line);
  }

  .dc-menu details:last-of-type {
    border-bottom: 0;
  }

  .dc-menu__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 52px;
    padding: 0 2px;
    list-style: none;
    cursor: pointer;
    color: var(--dc-ink);
    font-size: 17px;
    font-weight: 700;
    -webkit-tap-highlight-color: transparent;
  }

  .dc-menu__head::-webkit-details-marker {
    display: none;
  }

  .dc-menu__head::marker {
    content: '';
  }

  .dc-menu details[open] > .dc-menu__head {
    color: var(--dc-gold);
  }

  .dc-menu__chev {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    color: var(--dc-muted);
    transition: transform .2s ease;
  }

  .dc-menu details[open] .dc-menu__chev {
    transform: rotate(180deg);
  }

  .dc-menu__body {
    padding: 0 0 10px;
  }

  .dc-menu__caption {
    margin: 10px 0 2px;
    color: var(--dc-muted);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
  }

  /* Tap-targety 44 px — pozycje menu są wygodne „pod palcem”. */
  .dc-menu__link {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 2px;
    border-bottom: 1px solid #f4f1ec;
    color: var(--dc-ink) !important;
    font-size: 15px;
    text-decoration: none !important;
    -webkit-tap-highlight-color: transparent;
  }

  .dc-menu__link:last-child {
    border-bottom: 0;
  }

  .dc-menu__link--all {
    color: var(--dc-gold-dark) !important;
    font-weight: 700;
  }

  /* Grupa bez podkategorii (np. „Kawa dla firm”) — pełnowymiarowy wiersz. */
  .dc-menu__link--flat {
    min-height: 52px;
    border-top: 1px solid var(--dc-line);
    font-size: 17px;
    font-weight: 700;
  }

  /* Stopka menu: „Zamknij” + skrót do wszystkich produktów. */
  .dc-drawer--menu .dc-btn-apply {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
  }

  /* ---------- 6. toast / banner instalacji / pasek aktualizacji ---------- */
  .dc-toast {
    display: flex;
    align-items: center;
    gap: 12px;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(var(--dc-nav-h) + env(safe-area-inset-bottom, 0px) + 10px);
    z-index: 9500;
    padding: 12px 14px;
    border-radius: var(--dc-radius);
    background: #241f1a;
    color: #fff;
    box-shadow: var(--dc-shadow);
    transform: translateY(140%);
    transition: transform .25s ease;
    font-size: 15px;
  }

  .dc-toast[hidden] {
    display: none;
  }

  .dc-toast.is-open {
    transform: translateY(0);
  }

  .dc-toast__msg {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
  }

  .dc-toast__msg::before {
    content: "✓";
    color: var(--dc-gold);
    font-weight: 700;
  }

  .dc-toast__cta {
    flex: 0 0 auto;
    color: #241f1a !important;
    background: var(--dc-gold);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
  }

  .dc-install {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(var(--dc-nav-h) + env(safe-area-inset-bottom, 0px) + 10px);
    z-index: 9450;
    padding: 12px;
    border-radius: var(--dc-radius);
    background: #fff;
    border: 1px solid var(--dc-line);
    box-shadow: var(--dc-shadow);
  }

  .dc-install[hidden] {
    display: none;
  }

  .dc-install__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--dc-gold);
    color: #fff;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .dc-install__text {
    display: flex;
    flex-direction: column;
  }

  .dc-install__text strong {
    font-size: 15px;
  }

  .dc-install__text span {
    font-size: 13px;
    color: var(--dc-muted);
  }

  .dc-install__cta {
    min-height: 44px;
    padding: 0 14px;
    border: 0;
    border-radius: 12px;
    background: var(--dc-gold);
    color: #fff;
    font-weight: 700;
  }

  .dc-install__no {
    position: absolute;
    top: -10px;
    right: -6px;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid var(--dc-line);
    background: #fff;
    font-size: 20px;
    line-height: 1;
  }

  .dc-update {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: fixed;
    left: 12px;
    right: 12px;
    top: calc(8px + env(safe-area-inset-top, 0px));
    z-index: 9600;
    padding: 10px 12px;
    border-radius: 12px;
    background: #241f1a;
    color: #fff;
    font-size: 14px;
    box-shadow: var(--dc-shadow);
  }

  .dc-update[hidden] {
    display: none;
  }

  .dc-update__btn {
    min-height: 36px;
    padding: 0 12px;
    border: 0;
    border-radius: 9px;
    background: var(--dc-gold);
    color: #fff;
    font-weight: 700;
  }

  /* --------------------------------------------------------------------
   * KRYTYCZNA POPRAWKA CZYTELNOŚCI MOBILNEJ
   * Elementor nadał kafelkom produktów (Loop Item 5365) inline:
   *   --scale: 0.7; transform: scale(var(--scale));
   * Efekt na telefonie: cała treść kafelka (tytuł, cena, przycisk) była
   * renderowana 30% mniejsza — stąd wrażenie „nic nie da się przeczytać".
   * Neutralizujemy to WYŁĄCZNIE na mobile (desktop zachowuje swój wygląd).
   * ------------------------------------------------------------------ */
  .e-loop-item.product [style*="--scale"] {
    --scale: 1 !important;
  }

  .e-loop-item.product [style*="transform: scale"] {
    transform: none !important;
  }

  /* Elementor nadaje wnętrzu kafelka stałą szerokość w `em` — na wąskim ekranie
     liczy się pełna szerokość kolumny oraz naturalna wysokość. */
  .e-loop-item.product .e-con-full[style*="--width"] {
    --width: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .e-loop-item.product .e-con-full {
    --min-height: 0 !important;
    min-height: 0 !important;
  }

  /* Tytuł i cena w kafelku muszą być naprawdę czytelne (nie 10-11 px). */
  .e-loop-item.product .elementor-heading-title {
    font-size: 16px !important;
    line-height: 1.35 !important;
  }

  .e-loop-item.product .price,
  .e-loop-item.product .woocommerce-Price-amount {
    font-size: 18px !important;
  }

  /* --------------------------------------------------------------------
   * KOMPAKTOWANIE KAFELKA (mobile)
   * Pomiar produkcyjny: obraz 336 px + opis 312 px + paddingi 24 px w kolumnie
   * 161 px dawały kafelek wysoki na ~1095 px — czyli 1 produkt na ekran.
   * Poniżej: mniejsze odstępy, obraz ograniczony, opis skrócony do 2 linii.
   * ------------------------------------------------------------------ */
  .e-loop-item.product .e-con-full {
    padding: 10px !important;
    gap: 6px !important;
    row-gap: 6px !important;
  }

  .e-loop-item.product .e-con-full > * {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  .e-loop-item.product .elementor-widget-image,
  .e-loop-item.product .elementor-widget-theme-post-featured-image {
    height: 150px !important;
    overflow: hidden;
  }

  .e-loop-item.product .elementor-widget-image img,
  .e-loop-item.product .elementor-widget-theme-post-featured-image img,
  .e-loop-item.product img {
    height: 150px !important;
    width: 100% !important;
    max-height: 150px !important;
    object-fit: contain !important;
  }

  /* Opis w kafelku skracamy do 2 linii — resztę użytkownik zobaczy na karcie produktu. */
  .e-loop-item.product .elementor-widget-text-editor,
  .e-loop-item.product [class*="shottdes"],
  .e-loop-item.product [class*="shortdes"],
  .e-loop-item.product .woocommerce-product-details__short-description {
    display: -webkit-box !important;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
  }

  /* Ocena/status w kafelku — mniejsze, żeby nie dominowały. */
  .e-loop-item.product .star-rating,
  .e-loop-item.product .elementor-widget-woocommerce-product-rating {
    font-size: 12px !important;
  }

  /* ---------- 7. listing / kategoria: siatka 2-kolumnowa ---------- */
  .elementor-loop-container.elementor-grid,
  ul.products {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .elementor-loop-container.elementor-grid > .e-loop-item,
  .elementor-loop-container.elementor-grid > li {
    width: auto !important;
    margin: 0 !important;
  }

  /* Kafelek: jednolita wysokość, cena i przycisk zawsze widoczne. */
  .e-loop-item.product,
  .elementor-loop-container .e-loop-item,
  ul.products li.product {
    display: flex !important;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid var(--dc-line);
    border-radius: var(--dc-radius);
    overflow: hidden;
  }

  .e-loop-item.product img,
  ul.products li.product img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #fff;
  }

  .e-loop-item.product .elementor-heading-title {
    font-size: 15px !important;
    line-height: 1.3 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .e-loop-item.product .price,
  .e-loop-item.product .woocommerce-Price-amount {
    font-size: 17px !important;
    font-weight: 700 !important;
  }

  .e-loop-item.product a.add_to_cart_button,
  .e-loop-item.product a.button,
  ul.products li.product a.button {
    width: 100% !important;
    margin-top: auto !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 15px !important;
    border-radius: 10px !important;
  }

  /* Pasek narzędzi listy: sortowanie i kategorie (mobile.js przenosi go nad siatkę). */
  .dc-filtersbar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 10px 0 14px;
  }

  .dc-filtersbar[hidden] {
    display: none !important;
  }

  .dc-filtersbar__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 46px;
    padding: 0 16px;
    border: 1px solid var(--dc-line);
    border-radius: 999px;
    background: #fff;
    color: var(--dc-ink);
    font-size: 15px;
    font-weight: 600;
  }

  .dc-filtersbar__btn svg {
    width: 18px;
    height: 18px;
  }

  .dc-filtersbar__count {
    margin-left: auto;
    font-size: 13px;
    color: var(--dc-muted);
  }

  .dc-drawer__section {
    padding: 14px 0;
    border-bottom: 1px solid var(--dc-line);
  }

  .dc-drawer__section:last-child {
    border-bottom: 0;
  }

  .dc-drawer__label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    color: var(--dc-muted);
    margin-bottom: 8px;
  }

  .dc-opt {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 4px;
    color: var(--dc-ink) !important;
    font-size: 16px;
    text-decoration: none !important;
  }

  .dc-opt::before {
    content: "";
    width: 20px;
    height: 20px;
    border-radius: 999px;
    border: 2px solid var(--dc-line);
    flex: 0 0 auto;
  }

  .dc-opt.is-current {
    font-weight: 700;
  }

  .dc-opt.is-current::before {
    border-color: var(--dc-gold);
    background: radial-gradient(circle, var(--dc-gold) 0 45%, #fff 46% 100%);
  }

  /* ---------- 8. karta produktu ---------- */
  .single-product .woocommerce-product-gallery__wrapper img {
    width: 100%;
    height: auto;
  }

  .single-product .flex-control-thumbs {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .single-product .flex-control-thumbs li {
    flex: 0 0 62px;
    width: 62px !important;
    margin: 0 !important;
  }

  .single-product .woocommerce-product-details__short-description,
  .single-product .elementor-widget-woocommerce-product-content,
  .single-product .elementor-widget-woocommerce-product-short-description {
    font-size: 16px;
    line-height: 1.6;
  }

  .single-product .elementor-widget-woocommerce-product-title h1,
  .single-product .product_title {
    font-size: 24px !important;
    line-height: 1.25 !important;
  }

  .single-product .price,
  .single-product .price .woocommerce-Price-amount {
    font-size: 26px !important;
    line-height: 1.2;
  }

  /* Ilość z przyciskami +/- */
  .single-product form.cart .quantity,
  .single-product .elementor-widget-wc-add-to-cart .quantity {
    display: inline-flex !important;
    align-items: center;
    border: 1px solid var(--dc-line);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
  }

  .single-product .quantity input.qty {
    width: 64px !important;
    min-height: 46px !important;
    text-align: center;
    border: 0 !important;
    border-radius: 0 !important;
    font-weight: 700;
  }

  .dc-qty-btn {
    width: 46px;
    height: 46px;
    border: 0;
    background: #f7f4ef;
    color: var(--dc-ink);
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
  }

  .single-product .single_add_to_cart_button {
    width: 100% !important;
    min-height: 54px !important;
    font-size: 17px !important;
    font-weight: 700;
  }

  /* Pigułki zaufania (Paczkomat / płatności / leasing) */
  .dc-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 6px;
  }

  .dc-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 6px 12px;
    border: 1px solid var(--dc-line);
    border-radius: 999px;
    background: #faf8f5;
    color: var(--dc-muted);
    font-size: 13px;
  }

  /* Sticky pasek „dodaj do koszyka" (wchodzi na miejsce dolnej nawigacji) */
  .dc-stickyatc {
    display: flex;
    align-items: center;
    gap: 10px;
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    z-index: 9050;
    padding: 8px;
    background: #fff;
    border: 1px solid var(--dc-line);
    border-radius: var(--dc-radius);
    box-shadow: var(--dc-shadow);
    transform: translateY(160%);
    transition: transform .2s ease;
  }

  .dc-stickyatc[hidden] {
    display: none !important;
  }

  .dc-stickyatc.is-open {
    transform: translateY(0);
  }

  .dc-stickyatc__img {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--dc-line);
  }

  .dc-stickyatc__info {
    flex: 1 1 auto;
    min-width: 0;
  }

  .dc-stickyatc__name {
    font-size: 12px;
    color: var(--dc-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .dc-stickyatc__price {
    font-size: 16px;
    font-weight: 700;
    color: var(--dc-ink);
  }

  .dc-stickyatc__qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--dc-line);
    border-radius: 10px;
    overflow: hidden;
  }

  .dc-stickyatc__qty button {
    width: 38px;
    height: 42px;
    border: 0;
    background: #f7f4ef;
    font-size: 19px;
    font-weight: 700;
    line-height: 1;
  }

  .dc-stickyatc__qty span {
    min-width: 30px;
    text-align: center;
    font-weight: 700;
    font-size: 15px;
  }

  .dc-stickyatc__btn {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0 14px;
    border: 0;
    border-radius: 12px;
    background: var(--dc-gold);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
  }

  .dc-stickyatc__btn:disabled {
    background: #cfc8bd;
  }

  /* ---------- 9. koszyk: pozycje jako karty + sticky „Przejdź do kasy" ---------- */
  body.woocommerce-cart table.shop_table.cart,
  body.woocommerce-cart table.shop_table_responsive {
    border: 0 !important;
    border-collapse: separate;
  }

  body.woocommerce-cart table.shop_table.cart thead,
  body.woocommerce-cart .woocommerce-cart-form__contents thead {
    display: none !important;
  }

  body.woocommerce-cart tr.cart_item,
  body.woocommerce-cart .woocommerce-cart-form__cart-item {
    display: grid !important;
    grid-template-columns: 88px minmax(0, 1fr);
    grid-template-areas:
      "img name"
      "img price"
      "img qty"
      "img sub"
      "img remove";
    gap: 4px 12px;
    padding: 12px !important;
    margin-bottom: 10px;
    background: #fff;
    border: 1px solid var(--dc-line) !important;
    border-radius: var(--dc-radius);
  }

  body.woocommerce-cart tr.cart_item td {
    border: 0 !important;
    padding: 0 !important;
    display: block !important;
  }

  body.woocommerce-cart tr.cart_item td::before {
    display: none !important;
  }

  body.woocommerce-cart tr.cart_item .product-thumbnail {
    grid-area: img;
  }

  body.woocommerce-cart tr.cart_item .product-thumbnail img {
    width: 88px;
    height: 88px;
    object-fit: contain;
    border: 1px solid var(--dc-line);
    border-radius: 12px;
    background: #fff;
  }

  body.woocommerce-cart tr.cart_item .product-name {
    grid-area: name;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
  }

  body.woocommerce-cart tr.cart_item .product-price {
    grid-area: price;
    font-size: 14px;
    color: var(--dc-muted);
  }

  body.woocommerce-cart tr.cart_item .product-quantity {
    grid-area: qty;
  }

  body.woocommerce-cart tr.cart_item .product-subtotal {
    grid-area: sub;
    font-size: 17px;
    font-weight: 700;
  }

  body.woocommerce-cart tr.cart_item .product-remove {
    grid-area: remove;
    text-align: right;
  }

  body.woocommerce-cart tr.cart_item .product-remove a,
  body.woocommerce-cart tr.cart_item .product-remove a.remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: #faf8f5 !important;
    border: 1px solid var(--dc-line);
    color: #9b948a !important;
    font-size: 20px;
    text-decoration: none !important;
  }

  /* Caddy (cc_*) ma własny widget ilości — też go powiększamy. */
  body.woocommerce-cart .cc_item_quantity_update,
  body.woocommerce-cart .cc_item_quantity {
    min-width: 40px;
    min-height: 40px;
    line-height: 40px;
  }

  body.woocommerce-cart .cart_item .quantity input.qty {
    width: 62px !important;
    min-height: 42px !important;
  }

  body.woocommerce-cart .coupon {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
  }

  body.woocommerce-cart .coupon input[type="text"] {
    width: 100% !important;
  }

  body.woocommerce-cart .cart_totals {
    width: 100% !important;
    float: none !important;
  }

  /* Sticky CTA nad dolną krawędzią */
  body.woocommerce-cart .cart_totals .wc-proceed-to-checkout {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 9010;
    margin: 0 !important;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--dc-line);
    border-radius: var(--dc-radius);
    box-shadow: var(--dc-shadow);
  }

  body.woocommerce-cart .cart_totals .wc-proceed-to-checkout a.checkout-button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100% !important;
    min-height: 54px !important;
    font-size: 17px !important;
    font-weight: 700;
  }

  body.woocommerce-cart {
    padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* ---------- 10. checkout: jedna kolumna + sticky „Kupuję i płacę" ---------- */
  body.woocommerce-checkout .form-row,
  body.woocommerce-checkout .form-row-first,
  body.woocommerce-checkout .form-row-last,
  body.woocommerce-checkout .form-row-wide,
  body.woocommerce-checkout .col2-set .col-1,
  body.woocommerce-checkout .col2-set .col-2,
  body.woocommerce-checkout #customer_details,
  body.woocommerce-checkout #order_review,
  body.woocommerce-checkout .woocommerce-checkout-review-order {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
  }

  body.woocommerce-checkout .form-row {
    margin-bottom: 12px !important;
    padding: 0 !important;
  }

  body.woocommerce-checkout .woocommerce-shipping-fields,
  body.woocommerce-checkout #order_review {
    margin-top: 8px;
  }

  /* Metody wysyłki i płatności: duże, klikalne kafelki zamiast mikro-radio. */
  body.woocommerce-checkout .woocommerce-shipping-methods li,
  body.woocommerce-checkout #payment .wc_payment_method {
    list-style: none;
    margin: 0 0 8px !important;
  }

  body.woocommerce-checkout .woocommerce-shipping-methods label,
  body.woocommerce-checkout #payment .wc_payment_method label {
    display: flex !important;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 12px 14px;
    background: #fff;
    border: 1.5px solid var(--dc-line);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
  }

  body.woocommerce-checkout .woocommerce-shipping-methods input[type="radio"],
  body.woocommerce-checkout #payment .wc_payment_method input[type="radio"] {
    width: 22px !important;
    height: 22px !important;
    min-height: 22px !important;
    padding: 0 !important;
    accent-color: var(--dc-gold);
    flex: 0 0 auto;
  }

  body.woocommerce-checkout #payment .wc_payment_method label img {
    max-height: 26px;
    width: auto;
  }

  body.woocommerce-checkout #payment .payment_box {
    font-size: 14px;
    line-height: 1.5;
    background: #faf8f5;
    border-radius: 10px;
    padding: 10px 12px;
    margin: 0 0 10px;
  }

  /* Paczkomat (InPost geowidget) wygodny na telefonie */
  body.woocommerce-checkout .easyPack,
  body.woocommerce-checkout .easyPackModal,
  body.woocommerce-checkout [class*="geowidget"],
  body.woocommerce-checkout #paczkomat_select,
  body.woocommerce-checkout select[name*="paczkomat" i] {
    width: 100% !important;
    min-height: 56px !important;
    font-size: 16px !important;
  }

  /* Sticky przycisk finalizacji zamówienia */
  body.woocommerce-checkout .form-row.place-order {
    position: sticky;
    bottom: 0;
    z-index: 9010;
    margin: 14px 0 0 !important;
    padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px)) !important;
    background: #fff;
    border-top: 1px solid var(--dc-line);
  }

  body.woocommerce-checkout #place_order {
    width: 100% !important;
    min-height: 56px !important;
    font-size: 17px !important;
    font-weight: 700;
  }

  body.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
    font-size: 14px;
    margin-bottom: 8px;
  }

  /* Błędy walidacji widoczne natychmiast */
  body.woocommerce-checkout .woocommerce-invalid input,
  body.woocommerce-checkout .woocommerce-invalid select,
  body.woocommerce-checkout .woocommerce-invalid textarea {
    border-color: #cc000e !important;
    background: #fff7f7 !important;
  }

  body.woocommerce-checkout .woocommerce-error,
  body.woocommerce-checkout .woocommerce-NoticeGroup {
    font-size: 15px;
    border-radius: 12px;
  }

  body.woocommerce-checkout .woocommerce-checkout-review-order-table td,
  body.woocommerce-checkout .woocommerce-checkout-review-order-table th {
    font-size: 15px;
  }

  /* ---------- 11. konto: poziome pigułki nawigacji ---------- */
  body.woocommerce-account .woocommerce-MyAccount-navigation {
    width: 100% !important;
    float: none !important;
    margin-bottom: 16px;
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation ul {
    display: flex !important;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 2px 10px;
    margin: 0 !important;
    list-style: none !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation ul::-webkit-scrollbar {
    display: none;
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation ul li {
    flex: 0 0 auto;
    margin: 0 !important;
    border: 0 !important;
    padding: 0 !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--dc-line);
    border-radius: 999px;
    background: #faf8f5;
    color: var(--dc-ink) !important;
    font-size: 15px;
    white-space: nowrap;
    text-decoration: none !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
    background: var(--dc-gold);
    border-color: var(--dc-gold);
    color: #fff !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-content {
    width: 100% !important;
    float: none !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-content table.shop_table_responsive tr {
    display: block;
    border: 1px solid var(--dc-line);
    border-radius: 12px;
    margin-bottom: 10px;
    padding: 8px 10px;
  }

  body.woocommerce-account table.shop_table_responsive td {
    border: 0 !important;
    padding: 4px 0 !important;
  }

  .woocommerce-form-login,
  .woocommerce-form-register,
  .woocommerce-ResetPassword {
    max-width: 100% !important;
    padding: 18px !important;
  }

  /* ---------- 12. dostępność ---------- */
  a:focus-visible,
  button:focus-visible,
  input:focus-visible,
  select:focus-visible,
  textarea:focus-visible,
  [tabindex]:focus-visible {
    outline: 2px solid var(--dc-gold);
    outline-offset: 2px;
  }

  .screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
  }

  /* ---------- 13. stan magazynu w kartach (Elementor Loop Item) ---------- */
  /*
   * Widget Elementora "WooCommerce Product Stock" w szablonie Loop Item (elementor-5365)
   * jest ustawiony jako elementor-absolute (top:0; right:0), a szablon ma custom CSS:
   *   .out-of-stock { position:absolute; background:red; padding:1em; min-width:130px;
   *                   border-radius:22px; z-index:99; pointer-events:none }
   * Efekt na mobile: czerwona plakietka "Brak w magazynie" nachodziła na przycisk
   * dodawania do koszyka (pomiar przed poprawką: nakładanie 91x13 px).
   * Poniżej przywracamy układ w przepływie: plakietka ma pełną szerokość karty,
   * stoi NAD przyciskiem i nie zasłania go. Desktop (>=768px) bez zmian.
   */
  .e-loop-item.product .elementor-widget-woocommerce-product-stock {
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 8px 0 0 0 !important;
    z-index: 1 !important;
    pointer-events: none;
  }

  .e-loop-item.product .elementor-widget-woocommerce-product-stock .stock {
    position: static !important;
    right: auto !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 5px 8px !important;
    border-radius: 8px !important;
    text-align: center !important;
    font-size: 11px !important;
    line-height: 1.3 !important;
    font-weight: 600 !important;
    letter-spacing: .2px !important;
    background: #f2efe9 !important;
    color: #6b655d !important;
  }

  /* "Brak w magazynie" — czytelny czerwony badge (bez nachodzenia na CTA) */
  .e-loop-item.product .elementor-widget-woocommerce-product-stock .stock.out-of-stock {
    background: #c62828 !important;
    color: #fff !important;
    padding: 5px 8px !important;
    border-radius: 8px !important;
    box-shadow: none !important;
  }

  /* "Pozostało tylko: N" — subtelny tekst, nie konkuruje z przyciskiem */
  .e-loop-item.product .elementor-widget-woocommerce-product-stock .stock.in-stock {
    background: transparent !important;
    color: #8a8378 !important;
    padding: 0 !important;
    font-size: 11px !important;
  }

  /* ---------- 14. strona główna: hero bez akapitu intro + kafelki kategorii w karuzeli ----------
     Elementy pochodzą z hero strony głównej (szablon Elementora `elementor-5283`).
     Sprawdzone: nie występują na /sklep/, PDP ani na innych podstronach.

     14a. `.intro-text` / `.intro-paragraph` — wielki akapit hero z „avatarami”
          (3.25rem, na telefonie 2rem, do 479 px 1.6rem). Zjadał cały pierwszy
          ekran razem z logo → ukryty na mobile.
     14b. `.photoboxes` — oryginalnie grid 6 kolumn w kontenerze o `--width:260%`
          w rodzicu `--width:300%`: kafelek ≈ 43vw i ≈ 220 px wysokości, czyli
          ~2,3 kafelka na ekran i przewijanie „na ślepo”. Teraz: pozioma karuzela
          ze snapem — 3 pełne kafelki na ekran + kilkadziesiąt px „zajawki”
          czwartego (widać, że można przesunąć palcem).
          Kafelek ma `flex-basis: calc((100% - 16px) / 3.35)`; zmiana liczby
          kafelków na ekran = zmiana dzielnika (np. 3 = dokładnie 3 bez zajawki).

     Wszystko poniżej żyje w @media (max-width:767px) → desktop pozostaje bez zmian. */

  /* 14a — hero: ukrycie akapitu intro */
  .elementor-5283 .elementor-element-fc2b397.intro-text,
  .intro-text,
  .intro-paragraph {
    display: none !important;
  }

  /* 14b — rodzice kafelków: zdejmujemy wymuszone 300%/260% szerokości i cudzy scroll
          (sam karuzel przewija się na `.photoboxes`, nie na rodzicu) */
  .elementor-5283 .elementor-element-28eb0cdc,
  .elementor-5283 .elementor-element-7f71a976 {
    --width: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
  }

  /* 14c — karuzela kafelków kategorii (grid 6×43vw → poziomy flex ze snapem) */
  .elementor-5283 .elementor-element-33a5ccb8.photoboxes,
  .photoboxes {
    --display: flex !important;
    --width: 100% !important;
    --padding-top: 6px;
    --padding-bottom: 2px;
    --padding-left: 10px;
    --padding-right: 10px;
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: stretch !important;
    gap: 8px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 6px 10px 2px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 10px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .elementor-5283 .photoboxes::-webkit-scrollbar,
  .photoboxes::-webkit-scrollbar {
    display: none;
  }

  /* 14d — kafelek: 3 na szerokości ekranu (+ zajawka czwartego) */
  .elementor-5283 .photoboxes > a.photoboxmenu,
  .photoboxes > a.photoboxmenu {
    box-sizing: border-box !important;
    flex: 0 0 calc((100% - 16px) / 3.35) !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    scroll-snap-align: start;
    /* Elementor trzyma kafelki poza pierwszym ekranem jako `.elementor-invisible`
       (visibility:hidden) i odsłania je animacją zoomIn — w karuzeli kafelki 4-5
       byłyby ukryte do momentu przewinięcia. Na mobile pokazujemy je od razu. */
    visibility: visible !important;
    animation: none !important;
  }

  .elementor-5283 .photoboxes > a.photoboxmenu img,
  .photoboxes > a.photoboxmenu img {
    display: block;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
  }

  /* 14e — nagłówek na kafelku („Ziarnista”, „Mielona” …) proporcjonalnie mniejszy */
  .elementor-5283 .photoboxes .kategorie-heading .elementor-heading-title,
  .photoboxes .kategorie-heading .elementor-heading-title {
    font-size: 1.05rem !important;
    line-height: 1.1 !important;
    letter-spacing: .01em !important;
  }


  @media (prefers-reduced-motion: reduce) {
    .dc-bottomnav,
    .dc-toast,
    .dc-drawer,
    .dc-stickyatc,
    .dc-sheet-backdrop,
    .dc-search {
      transition: none !important;
    }

    .elementor-invisible,
    [class*="elementor-animation-"] {
      animation: none !important;
      opacity: 1 !important;
      transform: none !important;
    }
  }
} /* koniec @media (max-width: 767px) */







