/*
 * Widok mobilny (PS 9): łatwiejsze zakupy na telefonie.
 * Ładowany po theme.css i custom.css (wpis w config/theme.yml, priorytet 1010).
 * Reguły są w @media – nie zmieniają wyglądu na komputerze. Wyjątki (wszystkie ekrany, decyzje
 * właściciela): licznik koszyka w nagłówku (zielone kółko) i menu konta klienta.
 * Kolory motywu: akcent #6dac23, tekst #2e2e2e, linie #eaeaea.
 */

/* ===== Menu konta klienta (wszystkie ekrany; szablon modules/ps_customersignin motywu) =====
   Karta z cieniem: nagłówek z inicjałem i powitaniem, lista linków, „Wyloguj” na dole.
   display: none / block ustawia theme.css i custom.js (slideDown / slideUp). */
#_desktop_user_info .tm-account-menu,
#_mobile_user_info .tm-account-menu {
  top: calc(100% + 10px);
  width: 280px;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
  text-align: left;
}
#_desktop_user_info > .tm-account-menu a,
#_mobile_user_info > .tm-account-menu a,
.tm-account-menu .tm-account-links a {
  float: none;
  clear: none;
  width: auto;
  margin: 0;
  color: #2e2e2e;
  font-size: 14px;
  text-transform: none;
}
#_desktop_user_info > .tm-account-menu .tm-account-head,
#_mobile_user_info > .tm-account-menu .tm-account-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #f4f9ee;
  border-bottom: 1px solid #eaeaea;
}
.tm-account-menu .tm-account-avatar {
  display: flex;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #6dac23;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}
.tm-account-menu .tm-account-avatar .material-icons {
  color: #fff;
  font-size: 22px;
}
.tm-account-menu .tm-account-hello {
  min-width: 0;
  line-height: 1.3;
}
.tm-account-menu .tm-account-hello strong {
  display: block;
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tm-account-menu .tm-account-hello small {
  color: #6dac23;
  font-size: 12px;
}
.tm-account-menu .tm-account-links {
  margin: 0;
  padding: 6px 0;
  list-style: none;
}
.tm-account-menu .head-wishlist {
  float: none;
  width: auto;
  line-height: normal;
}
#_desktop_user_info > .tm-account-menu .tm-account-links a,
#_mobile_user_info > .tm-account-menu .tm-account-links a,
#_desktop_user_info > .tm-account-menu .tm-account-logout,
#_mobile_user_info > .tm-account-menu .tm-account-logout {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 10px 16px;
  line-height: 1.3;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.tm-account-menu .tm-account-links .material-icons,
.tm-account-menu .tm-account-logout .material-icons {
  flex: 0 0 20px;
  color: #8a8a8a;
  font-size: 20px;
}
#_desktop_user_info > .tm-account-menu .tm-account-links a:hover,
#_mobile_user_info > .tm-account-menu .tm-account-links a:hover,
.tm-account-menu .tm-account-links a:focus-visible {
  background: #f5f5f5;
  color: #6dac23;
}
.tm-account-menu .tm-account-links a:hover .material-icons {
  color: #6dac23;
}
#_desktop_user_info > .tm-account-menu .tm-account-logout,
#_mobile_user_info > .tm-account-menu .tm-account-logout {
  border-top: 1px solid #eaeaea;
}
#_desktop_user_info > .tm-account-menu .tm-account-logout:hover,
#_mobile_user_info > .tm-account-menu .tm-account-logout:hover {
  background: #fdf1f0;
  color: #b3261e;
}
.tm-account-menu .tm-account-logout:hover .material-icons {
  color: #b3261e;
}
/* niezalogowany: „Zaloguj się” jako przycisk, pod nim link do rejestracji */
.tm-account-menu .tm-account-intro {
  margin: 0;
  padding: 16px 16px 10px;
  font-weight: 600;
}
#_desktop_user_info > .tm-account-menu .tm-account-login,
#_mobile_user_info > .tm-account-menu .tm-account-login {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% - 32px);
  min-height: 44px;
  margin: 0 16px;
  padding: 8px 16px;
  border-radius: 25px;
  background: #6dac23;
  color: #fff;
}
#_desktop_user_info > .tm-account-menu .tm-account-login:hover,
#_mobile_user_info > .tm-account-menu .tm-account-login:hover {
  background: #5a9419;
}
#_desktop_user_info > .tm-account-menu .tm-account-register,
#_mobile_user_info > .tm-account-menu .tm-account-register {
  display: block;
  padding: 10px 16px 6px;
  color: #6dac23;
  font-size: 13px;
  text-align: center;
}
.tm-account-menu .tm-account-register + .tm-account-links {
  margin-top: 6px;
  border-top: 1px solid #eaeaea;
}
@media (max-width: 991px) {
  /* telefon: karta na całą szerokość pod paskiem nagłówka (zamiast right: -175%) */
  #header #_mobile_user_info {
    position: static;
  }
  #header #_mobile_user_info .tm-account-menu {
    top: 100%;
    left: 10px;
    right: 10px;
    width: auto;
  }
  #header #_mobile_user_info > .tm-account-menu .tm-account-links a,
  #header #_mobile_user_info > .tm-account-menu .tm-account-logout {
    min-height: 48px;
    font-size: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tm-account-menu a {
    transition: none;
  }
}

/* ===== Nagłówek (wszystkie ekrany): liczba produktów w koszyku jako zielone kółko na ikonie ===== */
.blockcart-header .cart-img {
  position: relative;
}
.blockcart-header .cart-products-count,
.blockcart:hover .blockcart-header .cart-products-count {
  position: absolute;
  top: -4px;
  right: 2px;
  float: none;
  min-width: 20px;
  height: 20px;
  margin: 0;
  padding: 0 5px;
  border-radius: 10px;
  background: #6dac23;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 20px;
  text-align: center;
}
/* nawiasy „(3)” z szablonu ps_shoppingcart motywu */
.blockcart-header .cart-products-count .tm-count-paren {
  display: none;
}
.blockcart.inactive .blockcart-header .cart-products-count {
  display: none;
}
/* komputer: koszyk to białe owalne pole na zielonym pasku – kółko w środku pola, obok wózka
   (wystające poza pole zlewało się z zielonym tłem); białe pole szersze i wyższe */
#_desktop_cart .blockcart-header .cart-img {
  padding: 4px 14px;
}
#_desktop_cart .blockcart.active .blockcart-header .cart-img {
  padding-right: 30px;
}
/* kółko przy prawym górnym rogu wózka, lekko na niego zachodzi */
#_desktop_cart .blockcart-header .cart-products-count,
#_desktop_cart .blockcart:hover .blockcart-header .cart-products-count {
  top: 40%;
  right: 10px;
  min-width: 24px;
  height: 24px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 24px;
  transform: translateY(-50%);
}
/* telefon: kółko na rogu ikony, z białą obwódką oddzielającą je od tła */
#_mobile_cart .blockcart-header .cart-products-count {
  box-shadow: 0 0 0 2px #fff;
}

/* ===== Strona „Moje konto” (wszystkie ekrany; templates/customer/my-account.tpl) =====
   Karty: ikona w zielonym kółku, nazwa, strzałka. Te same klasy (.links a, .link-item) mają
   kafelki z modułów (hook displayCustomerAccount: lista życzeń, RODO), więc wyglądają tak samo. */
.page-my-account .tm-myaccount-hello {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 20px;
  padding: 16px;
  border-radius: 12px;
  background: #f4f9ee;
}
.page-my-account .tm-myaccount-hello p {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
}
.page-my-account .tm-myaccount-hello strong {
  font-weight: 600;
}
.page-my-account .tm-myaccount-avatar {
  display: flex;
  flex: 0 0 48px;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #6dac23;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  text-transform: uppercase;
}
.page-my-account .tm-myaccount-avatar .material-icons {
  color: #fff;
  font-size: 26px;
}
.page-my-account #content .row > .links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 0 15px;
}
.page-my-account #content .links a {
  float: none;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  font-size: 15px;
  text-align: left;
}
.page-my-account #content .links a span.link-item {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  min-height: 68px;
  padding: 12px 14px 12px 12px;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  background: #fff;
  font-weight: 500;
  line-height: 1.3;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.page-my-account #content .links a span.link-item::after {
  content: "\E315"; /* chevron_right */
  flex: 0 0 auto;
  margin-left: auto;
  color: #b5b5b5;
  font-family: "Material Icons";
  font-size: 22px;
  font-weight: normal;
  line-height: 1;
}
.page-my-account #content .links a i {
  display: flex;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  background: #f4f9ee;
  color: #6dac23;
  font-size: 24px;
}
.page-my-account #content .links a:hover,
.page-my-account #content .links a:focus-visible {
  color: #2e2e2e;
}
.page-my-account #content .links a:hover span.link-item,
.page-my-account #content .links a:focus-visible span.link-item {
  border-color: #6dac23;
  background: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}
.page-my-account #content .links a:hover i {
  background: #6dac23;
  color: #fff;
}
.page-my-account #content .links a:hover span.link-item::after {
  color: #6dac23;
}
@media (min-width: 544px) {
  .page-my-account #content .row > .links {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 992px) {
  .page-my-account #content .row > .links {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .page-my-account #content .links a:hover span.link-item {
    transform: translateY(-2px);
  }
}
/* „Wyloguj” pod kartami: obrys zamiast pełnego przycisku, czerwony po najechaniu */
.page-my-account .tm-myaccount-signout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 10px;
  padding: 8px 24px;
  border: 1px solid #eaeaea;
  border-radius: 25px;
  background: #fff;
  color: #2e2e2e;
  font-size: 15px;
}
.page-my-account .tm-myaccount-signout .material-icons {
  color: #8a8a8a;
  font-size: 20px;
}
.page-my-account .tm-myaccount-signout:hover,
.page-my-account .tm-myaccount-signout:focus-visible {
  border-color: #b3261e;
  background: #fdf1f0;
  color: #b3261e;
}
.page-my-account .tm-myaccount-signout:hover .material-icons {
  color: #b3261e;
}
@media (max-width: 543px) {
  .page-my-account .tm-myaccount-signout {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .page-my-account #content .links a span.link-item {
    transition: none;
  }
}

/* ===== Okno po dodaniu do koszyka (wszystkie ekrany; modules/ps_shoppingcart/modal.tpl) =====
   Kompaktowe okno 560 px: zielony znacznik i tytuł, produkt jako karta, podsumowanie z kwotami
   do prawej, „Przejdź do kasy” jako główny przycisk. Telefon: okno wysuwane od dołu ekranu. */
#blockcart-modal.tm-cartmodal .modal-dialog {
  width: auto;
  max-width: 560px;
  margin: 60px auto;
}
#blockcart-modal.tm-cartmodal .modal-content {
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}
#blockcart-modal.tm-cartmodal .modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid #eaeaea;
  background: #f4f9ee;
}
/* clearfix Bootstrapa 4 alpha w nagłówku i stopce – w układzie flex dodawałby puste odstępy */
#blockcart-modal.tm-cartmodal .modal-header::before,
#blockcart-modal.tm-cartmodal .modal-header::after,
#blockcart-modal.tm-cartmodal .modal-footer::before,
#blockcart-modal.tm-cartmodal .modal-footer::after {
  display: none;
}
#blockcart-modal.tm-cartmodal .tm-cartmodal__check {
  display: flex;
  flex: 0 0 32px;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #6dac23;
}
#blockcart-modal.tm-cartmodal .tm-cartmodal__check .material-icons {
  margin: 0;
  color: #fff;
  font-size: 20px;
}
#blockcart-modal.tm-cartmodal .modal-title {
  flex: 1 1 auto;
  margin: 0;
  color: #2e2e2e;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  text-align: left !important;
}
#blockcart-modal.tm-cartmodal .modal-header .close {
  position: static;
  display: flex;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: -6px -8px -6px 0;
  padding: 0;
  float: none;
  border-radius: 50%;
  color: #2e2e2e;
  opacity: 0.7;
}
#blockcart-modal.tm-cartmodal .modal-header .close:hover,
#blockcart-modal.tm-cartmodal .modal-header .close:focus-visible {
  background: rgba(0, 0, 0, 0.06);
  opacity: 1;
}
#blockcart-modal.tm-cartmodal .modal-body {
  padding: 20px;
}
#blockcart-modal.tm-cartmodal .tm-cartmodal__product {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 0 16px;
  border-bottom: 1px solid #eaeaea;
}
#blockcart-modal.tm-cartmodal .product-image {
  display: block;
  flex: 0 0 96px;
  width: 96px;
  max-width: none;
  height: 96px;
  margin: 0;
  object-fit: contain;
  border: 1px solid #eaeaea;
  border-radius: 10px;
  background: #fff;
}
#blockcart-modal.tm-cartmodal .tm-cartmodal__info {
  flex: 1 1 auto;
  min-width: 0;
}
#blockcart-modal.tm-cartmodal .product-name {
  margin: 0 0 6px;
  color: #2e2e2e;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}
#blockcart-modal.tm-cartmodal .tm-cartmodal__attr {
  margin: 0 0 4px;
  color: #666;
  font-size: 13px;
}
#blockcart-modal.tm-cartmodal .tm-cartmodal__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  margin: 0;
  color: #666;
  font-size: 14px;
}
#blockcart-modal.tm-cartmodal .tm-cartmodal__meta strong {
  color: #2e2e2e;
}
#blockcart-modal.tm-cartmodal .tm-cartmodal__price {
  color: #2e2e2e;
  font-weight: 600;
}
#blockcart-modal.tm-cartmodal .cart-content {
  padding: 16px 0 0;
}
#blockcart-modal.tm-cartmodal .cart-products-count {
  margin: 0 0 10px;
  color: #666;
  font-size: 14px;
}
#blockcart-modal.tm-cartmodal .tm-cartmodal__totals {
  margin: 0;
}
#blockcart-modal.tm-cartmodal .tm-cartmodal__totals > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 0;
  font-size: 14px;
}
#blockcart-modal.tm-cartmodal .tm-cartmodal__totals dt {
  font-weight: 400;
  color: #666;
}
#blockcart-modal.tm-cartmodal .tm-cartmodal__totals dd {
  margin: 0;
  color: #2e2e2e;
  text-align: right;
}
#blockcart-modal.tm-cartmodal .tm-cartmodal__tax {
  font-size: 13px;
}
#blockcart-modal.tm-cartmodal .tm-cartmodal__totals .tm-cartmodal__total {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid #eaeaea;
  font-size: 17px;
}
#blockcart-modal.tm-cartmodal .tm-cartmodal__total dt,
#blockcart-modal.tm-cartmodal .tm-cartmodal__total dd {
  color: #2e2e2e;
  font-weight: 700;
}
#blockcart-modal.tm-cartmodal .tm-cartmodal__total small {
  color: #666;
  font-size: 12px;
  font-weight: 400;
}
#blockcart-modal.tm-cartmodal .tm-cartmodal__actions {
  display: flex;
  gap: 10px;
  padding: 0 20px 20px;
  border: 0;
}
#blockcart-modal.tm-cartmodal .tm-cartmodal__actions .btn {
  display: inline-flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 48px;
  margin: 0;
  padding: 8px 16px;
  border: 0;
  border-radius: 25px;
  font-size: 15px;
  text-transform: none;
  white-space: normal;
}
#blockcart-modal.tm-cartmodal .tm-cartmodal__actions .btn-secondary {
  background: #f2f2f2;
  color: #2e2e2e;
}
#blockcart-modal.tm-cartmodal .tm-cartmodal__actions .btn-secondary:hover {
  background: #e6e6e6;
}
#blockcart-modal.tm-cartmodal .tm-cartmodal__actions .btn-primary {
  background: #6dac23;
  color: #fff;
  font-weight: 600;
}
#blockcart-modal.tm-cartmodal .tm-cartmodal__actions .btn-primary:hover,
#blockcart-modal.tm-cartmodal .tm-cartmodal__actions .btn-primary:focus-visible {
  background: #5a9419;
  color: #fff;
}
#blockcart-modal.tm-cartmodal .tm-cartmodal__actions .btn-primary .material-icons {
  font-size: 20px;
}
/* telefon: okno przy dolnej krawędzi, wysuwane od dołu; „Przejdź do kasy” nad „Kontynuuj” */
@media (max-width: 543px) {
  #blockcart-modal.tm-cartmodal .modal-dialog {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    max-width: none;
    margin: 0;
  }
  #blockcart-modal.tm-cartmodal.fade .modal-dialog {
    transform: translateY(100%);
    transition: transform 0.25s ease-out;
  }
  #blockcart-modal.tm-cartmodal.in .modal-dialog {
    transform: none;
  }
  #blockcart-modal.tm-cartmodal .modal-content {
    border-radius: 16px 16px 0 0;
  }
  #blockcart-modal.tm-cartmodal .modal-body {
    padding: 16px;
  }
  #blockcart-modal.tm-cartmodal .product-image {
    flex-basis: 72px;
    width: 72px;
    height: 72px;
  }
  #blockcart-modal.tm-cartmodal .tm-cartmodal__actions {
    flex-direction: column-reverse;
    padding: 0 16px calc(16px + env(safe-area-inset-bottom, 0px));
  }
  #blockcart-modal.tm-cartmodal .tm-cartmodal__actions .btn {
    flex: 0 0 auto;
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  #blockcart-modal.tm-cartmodal.fade .modal-dialog {
    transition: none;
  }
}

/* ===== Przycisk konta w nagłówku na komputerze: pigułka z inicjałem, imieniem i strzałką ===== */
/* szary pasek nad nagłówkiem ma 40 px: pigułka 30 px, wyśrodkowana w pionie */
#header .header-nav .right-nav {
  padding: 5px 0;
}
#_desktop_user_info .tm_userinfotitle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: auto;
  height: 30px;
  padding: 0 8px 0 3px;
  border: 1px solid #e2e2e2;
  border-radius: 25px;
  background: #fff;
  color: #2e2e2e;
  font-size: 13px;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
#_desktop_user_info .tm_userinfotitle:hover,
#_desktop_user_info .tm_userinfotitle:focus-visible,
#_desktop_user_info .tm_userinfotitle.active {
  border-color: #6dac23;
  color: #2e2e2e;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.tm_userinfotitle .tm-userinfo-avatar {
  display: inline-flex;
  flex: 0 0 24px;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #6dac23;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}
.tm_userinfotitle .tm-userinfo-avatar .material-icons {
  color: #fff;
  font-size: 16px;
}
#_desktop_user_info .tm_userinfotitle .tm-userinfo-chevron {
  font-size: 18px;
  transition: transform 0.15s ease;
}
#_desktop_user_info .tm_userinfotitle.active .tm-userinfo-chevron {
  transform: rotate(180deg);
}
/* telefon: zostaje sama ikona profilu z theme.css */
#_mobile_user_info .tm_userinfotitle .tm-userinfo-avatar,
#_mobile_user_info .tm_userinfotitle .tm-userinfo-label,
#_mobile_user_info .tm_userinfotitle .tm-userinfo-chevron {
  display: none;
}

/* ===== Strony konta klienta (wszystkie ekrany): adresy, dane osobowe, adres, korekty, kupony,
   zwroty itd. (body.page-customer-account). „Moje konto” ma własny układ kart – wyżej. ===== */
.page-customer-account #main .page-content {
  float: none; /* theme.css: float: left – linki „Powrót…” lądowały obok treści (telefon) */
}
.page-customer-account:not(.page-my-account) #main #content {
  padding: 24px;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  background: #fff;
}
.page-customer-account .page-footer {
  clear: both;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.page-customer-account .page-footer .account-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin: 0;
  padding: 8px 18px 8px 14px;
  border: 1px solid #eaeaea;
  border-radius: 25px;
  background: #fff;
  color: #2e2e2e;
  font-size: 14px;
  white-space: nowrap;
}
.page-customer-account .page-footer .account-link:hover,
.page-customer-account .page-footer .account-link:focus-visible {
  border-color: #6dac23;
  color: #6dac23;
}
.page-customer-account .page-footer .account-link i {
  font-size: 20px;
}

/* tabele (korekty, kupony, zwroty); historia i szczegóły zamówienia mają własne style w custom.css */
#order-slip #content .table,
#discount #content .table,
#order-follow #content .table {
  border: 1px solid #eaeaea;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 10px;
  overflow: hidden;
}
#order-slip #content .table th,
#order-slip #content .table td,
#discount #content .table th,
#discount #content .table td,
#order-follow #content .table th,
#order-follow #content .table td {
  padding: 12px 14px;
  border-left: 0;
  border-right: 0;
  vertical-align: middle;
}
#order-slip #content .table thead th,
#discount #content .table thead th,
#order-follow #content .table thead th {
  border-bottom: 1px solid #eaeaea;
  background: #f7f7f7;
  font-size: 13px;
  font-weight: 600;
  text-transform: none;
}

/* --- Adresy: siatka kart, „Utwórz nowy adres” jako karta z przerywaną ramką --- */
.page-addresses .tm-address-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.page-addresses .tm-address-grid .address {
  position: static;
  display: flex;
  flex-direction: column;
  float: none;
  width: auto;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  background: #fff;
}
.page-addresses .tm-address-grid .address::before {
  display: none; /* pinezka z theme.css – ikona jest teraz przy nazwie adresu */
}
.page-addresses .tm-address-grid .address-body {
  flex: 1 1 auto;
  padding: 16px 16px 12px;
}
.page-addresses .tm-address-grid .address-body h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 600;
}
.page-addresses .tm-address-grid .address-body h4::before {
  content: "\E0C8"; /* location_on */
  display: flex;
  flex: 0 0 32px;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f4f9ee;
  color: #6dac23;
  font-family: "Material Icons";
  font-size: 18px;
  font-weight: normal;
}
.page-addresses .tm-address-grid address {
  margin: 0;
  padding-left: 42px;
  color: #555;
  font-size: 14px;
  line-height: 1.6;
}
.page-addresses .tm-address-grid .address-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 12px 16px;
  border-top: 1px solid #eaeaea;
  background: #fafafa;
}
.page-addresses .tm-address-grid .address-footer a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 36px;
  margin: 0;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
}
.page-addresses .tm-address-grid .address-footer a i {
  font-size: 18px;
}
.page-addresses .tm-address-grid .tm-address-edit {
  border: 1px solid #dcdcdc;
  background: #fff;
  color: #2e2e2e;
}
.page-addresses .tm-address-grid .tm-address-edit:hover {
  border-color: #6dac23;
  color: #6dac23;
}
.page-addresses .tm-address-grid .tm-address-delete {
  margin-left: auto;
  color: #b3261e;
}
.page-addresses .tm-address-grid .tm-address-delete:hover {
  background: #fdf1f0;
}
.page-addresses .tm-address-grid .addresses-footer {
  margin: 0;
}
.page-addresses .tm-address-grid .tm-address-add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 100%;
  min-height: 160px;
  padding: 16px;
  border: 2px dashed #cfe3b7;
  border-radius: 12px;
  background: #fbfdf8;
  color: #6dac23;
  font-size: 15px;
  font-weight: 600;
}
.page-addresses .tm-address-grid .tm-address-add i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #6dac23;
  color: #fff;
  font-size: 24px;
}
.page-addresses .tm-address-grid .tm-address-add:hover {
  border-color: #6dac23;
  background: #f4f9ee;
}
@media (min-width: 544px) {
  .page-addresses .tm-address-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 992px) {
  .page-addresses .tm-address-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- Formularze (dane osobowe, adres, kontakt, zamówienie): etykieta nad polem, jedna kolumna, zaokrąglone pola --- */
:is(.page-customer-account, #contact, #checkout) #content .form-group.row {
  display: block;
  max-width: 560px;
  margin: 0 0 18px;
}
:is(.page-customer-account, #contact, #checkout) #content .form-group.row > [class*="col-md-"] {
  float: none;
  width: 100%;
  max-width: none;
  padding: 0;
}
:is(.page-customer-account, #contact, #checkout) #content .form-control-label {
  display: block;
  margin: 0 0 6px;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
}
:is(.page-customer-account, #contact, #checkout) #content .form-group.row > .form-control-comment,
:is(.page-customer-account, #contact, #checkout) #content .form-control-comment {
  display: block;
  margin-top: 4px;
  padding: 0;
  color: #8a8a8a;
  font-size: 12px;
  font-style: normal;
}
:is(.page-customer-account, #contact, #checkout) #content .form-control {
  height: 46px;
  padding: 10px 14px;
  border: 1px solid #dcdcdc;
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
  color: #2e2e2e;
  font-size: 15px;
}
:is(.page-customer-account, #contact, #checkout) #content textarea.form-control {
  height: auto;
}
:is(.page-customer-account, #contact, #checkout) #content .form-control:focus {
  border-color: #6dac23;
  box-shadow: 0 0 0 3px rgba(109, 172, 35, 0.18);
  outline: 0;
}
:is(.page-customer-account, #contact, #checkout) #content .has-error .form-control {
  border-color: #b3261e;
}
/* hasło z przyciskiem „Pokaż” w jednym polu */
:is(.page-customer-account, #contact, #checkout) #content .input-group {
  display: flex;
  width: 100%;
}
:is(.page-customer-account, #contact, #checkout) #content .input-group .form-control {
  flex: 1 1 auto;
  min-width: 0;
  border-right: 0;
  border-radius: 10px 0 0 10px;
}
:is(.page-customer-account, #contact, #checkout) #content .input-group-btn {
  display: flex;
  width: auto;
}
:is(.page-customer-account, #contact, #checkout) #content .input-group-btn .btn {
  height: 46px;
  min-height: 46px;
  margin: 0;
  padding: 0 16px;
  border: 1px solid #dcdcdc;
  border-left: 0;
  border-radius: 0 10px 10px 0;
  background: #f2f2f2;
  color: #2e2e2e;
  font-size: 13px;
  text-transform: none;
}
:is(.page-customer-account, #contact, #checkout) #content .input-group-btn .btn:hover {
  background: #e6e6e6;
}
:is(.page-customer-account, #contact, #checkout) #content .radio-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 18px 0 0;
  padding: 0;
}
:is(.page-customer-account, #contact, #checkout) #content .custom-checkbox label {
  font-size: 14px;
  line-height: 1.5;
}
:is(.page-customer-account, #contact, #checkout) #content .form-footer {
  max-width: 560px;
  margin-top: 8px;
  padding-top: 18px;
  border-top: 1px solid #eaeaea;
}
:is(.page-customer-account, #contact, #checkout) #content .form-footer .form-control-submit,
:is(.page-customer-account, #contact, #checkout) #content .form-footer .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  float: none !important;
  min-width: 200px;
  min-height: 48px;
  padding: 10px 28px;
  border: 0;
  border-radius: 25px;
  background: #6dac23;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-transform: none;
}
:is(.page-customer-account, #contact, #checkout) #content .form-footer .form-control-submit:hover,
:is(.page-customer-account, #contact, #checkout) #content .form-footer .btn-primary:hover {
  background: #5a9419;
}

@media (max-width: 767px) {
  .page-customer-account:not(.page-my-account) #main #content {
    padding: 16px;
  }
}
/* telefon i tablet: tytuł strony i okruszki z odstępem od nagłówka (theme.css: margin 5px) */
@media (max-width: 991px) {
  body.page-customer-account #breadcrumb_wrapper {
    margin-top: 20px;
    margin-bottom: 12px;
  }
}
@media (max-width: 543px) {
  .page-customer-account .page-footer .account-link {
    flex: 1 1 100%;
    justify-content: center;
  }
  :is(.page-customer-account, #contact, #checkout) #content .form-footer .form-control-submit,
  :is(.page-customer-account, #contact, #checkout) #content .form-footer .btn-primary {
    width: 100%;
  }
}

/* ===== Nasze sklepy (wszystkie ekrany; templates/cms/stores.tpl) =====
   Karta na sklep: zdjęcie | nazwa, adres, „Zadzwoń” / e-mail | godziny (dziś wyróżnione – mobile.js).
   Tablet: zdjęcie + dane obok, godziny pod spodem. Telefon: wszystko jedno pod drugim. */
#stores #main .tm-stores {
  display: grid;
  gap: 20px;
  float: none; /* theme.css: #main .page-content { float: left; padding: 30px } */
  width: 100%;
  margin: 0;
  padding: 0;
}
#stores .tm-stores .tm-store {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: start;
  margin: 0;
  padding: 20px;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  background: #fff;
}
#stores .tm-store__picture img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
}
#stores .tm-store__name {
  margin: 0 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eaeaea;
  color: #2e2e2e;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
#stores .tm-store__address {
  display: flex;
  gap: 10px;
  margin: 0 0 14px;
  color: #444;
  font-size: 15px;
  font-style: normal;
  line-height: 1.6;
}
#stores .tm-store__address .material-icons {
  flex: 0 0 auto;
  margin-top: 2px;
  color: #6dac23;
  font-size: 22px;
}
#stores .tm-store__note {
  margin: 0 0 14px;
  color: #666;
  font-size: 14px;
  line-height: 1.6;
}
#stores .tm-store__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
#stores .tm-store__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 18px 8px 14px;
  border: 1px solid #dcdcdc;
  border-radius: 25px;
  background: #fff;
  color: #2e2e2e;
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
#stores .tm-store__btn .material-icons {
  color: #6dac23;
  font-size: 20px;
}
#stores a.tm-store__btn:hover,
#stores a.tm-store__btn:focus-visible {
  border-color: #6dac23;
  background: #f4f9ee;
  color: #2e2e2e;
}
#stores .tm-store__btn--primary {
  border-color: #6dac23;
  background: #6dac23;
  color: #fff;
}
#stores .tm-store__btn--primary .material-icons {
  color: #fff;
}
#stores a.tm-store__btn--primary:hover,
#stores a.tm-store__btn--primary:focus-visible {
  background: #5a9419;
  color: #fff;
}
#stores .tm-store__btn--static {
  border-style: dashed;
  font-weight: 400;
}
#stores .tm-store__hours table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
#stores .tm-store__hours th,
#stores .tm-store__hours td {
  padding: 7px 10px;
  font-size: 14px;
  line-height: 1.3;
  vertical-align: top;
}
#stores .tm-store__hours th {
  padding-left: 12px;
  color: #555;
  font-weight: 600;
  text-align: left;
  border-radius: 8px 0 0 8px;
}
#stores .tm-store__hours td {
  color: #2e2e2e;
  text-align: right;
  white-space: nowrap;
  border-radius: 0 8px 8px 0;
}
#stores .tm-store__hours td span {
  display: block;
}
#stores .tm-store__hours tr + tr th,
#stores .tm-store__hours tr + tr td {
  border-top: 1px solid #f2f2f2;
}
#stores .tm-store__hours tr.is-today th,
#stores .tm-store__hours tr.is-today td {
  border-top-color: transparent;
  background: #f4f9ee;
  color: #4e8a12;
  font-weight: 700;
}
#stores .tm-store__hours tr.is-today + tr th,
#stores .tm-store__hours tr.is-today + tr td {
  border-top-color: transparent;
}
@media (max-width: 991px) {
  #stores .tm-stores .tm-store {
    grid-template-columns: 140px minmax(0, 1fr);
  }
  #stores .tm-store__hours {
    grid-column: 1 / -1;
    padding-top: 16px;
    border-top: 1px solid #eaeaea;
  }
}
@media (max-width: 543px) {
  #stores .tm-stores .tm-store {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
  }
  #stores .tm-store__picture img {
    aspect-ratio: 16 / 9;
    max-height: 220px;
  }
  #stores .tm-store__btn {
    flex: 1 1 100%;
    justify-content: center;
  }
}

/* ===== Strona kontaktowa (wszystkie ekrany; templates/contact.tpl, modules/contactform,
   modules/ps_contactinfo/ps_contactinfo-rich.tpl). Formularz w karcie (pola jak w formularzach
   konta – sekcja wyżej), dane sklepu jako karty z ikoną; telefon i e-mail klikalne. ===== */
#contact .contact-form {
  padding: 24px;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  background: #fff;
}
#contact .contact-form h3 {
  margin: 0 0 4px;
  color: #2e2e2e;
  font-size: 20px;
  font-weight: 600;
  text-transform: none;
}
#contact .contact-form [class*="col-md-offset-"],
#contact .contact-form [class*="offset-md-"] {
  margin-left: 0;
}
#contact .contact-form textarea.form-control {
  min-height: 140px;
}
#contact .contact-form .form-footer {
  text-align: left;
}
#contact .contact-form .alert {
  float: none;
  border-radius: 10px;
}
#contact .tm-contact-rich {
  float: none;
  margin: 0 0 20px;
  padding: 0;
  border: 0;
  background: none;
}
#contact .tm-contact-rich .block_title {
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  color: #2e2e2e;
  font-size: 16px;
  font-weight: 600;
  text-transform: none;
}
#contact .tm-contact-rich .block_title::before,
#contact .tm-contact-rich .block_title::after {
  display: none;
}
#contact .tm-contact-rich .block_content {
  display: grid;
  gap: 10px;
  padding: 0;
}
#contact .tm-contact-rich .contact_sub {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  background: #fff;
  color: #2e2e2e;
  text-decoration: none;
}
#contact .tm-contact-rich a.contact_sub:hover,
#contact .tm-contact-rich a.contact_sub:focus-visible {
  border-color: #6dac23;
  background: #fbfdf8;
}
#contact .tm-contact-rich .icon {
  display: flex;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  float: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f4f9ee;
  color: #6dac23;
}
#contact .tm-contact-rich .icon i {
  font-size: 22px;
}
#contact .tm-contact-rich .data {
  min-width: 0;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
#contact .tm-contact-rich .data small {
  display: block;
  color: #8a8a8a;
  font-size: 12px;
}
#contact .tm-contact-rich .data strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
}
@media (max-width: 767px) {
  #contact .contact-form {
    padding: 16px;
  }
}

/* ===== RODO – Dane osobowe (wszystkie ekrany; modules/psgdpr/views/templates/front/
   customerPersonalData.tpl w motywie). Dwie sekcje z ikoną, przyciski pobierania z obrysem.
   Nadpisuje szare bloki z CSS modułu psgdpr (.psgdprinfo17). ===== */
.tm-gdpr {
  display: grid;
  gap: 16px;
}
.tm-gdpr .psgdprinfo17.tm-gdpr-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  float: none;
  width: auto;
  margin: 0;
  padding: 20px;
  border: 0;
  border-radius: 12px;
  background: #f9faf7;
}
.tm-gdpr .tm-gdpr-icon {
  display: flex;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e9f3dc;
  color: #6dac23;
}
.tm-gdpr .tm-gdpr-icon .material-icons {
  font-size: 24px;
}
.tm-gdpr .tm-gdpr-body {
  flex: 1 1 auto;
  min-width: 0;
}
.tm-gdpr .psgdprinfo17 h2 {
  margin: 0 0 8px;
  color: #2e2e2e;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  text-transform: none;
}
.tm-gdpr .psgdprinfo17 p {
  margin: 0;
  color: #555;
  font-size: 14px;
  line-height: 1.6;
}
.tm-gdpr .psgdprinfo17 p a {
  color: #6dac23;
  text-decoration: underline;
}
.tm-gdpr .tm-gdpr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.tm-gdpr .tm-gdpr-actions .psgdprgetdatabtn17 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  margin: 0;
  padding: 8px 18px;
  border: 1px solid #dcdcdc;
  border-radius: 25px;
  background: #fff;
  color: #2e2e2e;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  white-space: normal;
}
.tm-gdpr .tm-gdpr-actions .psgdprgetdatabtn17 .material-icons {
  color: #6dac23;
  font-size: 20px;
}
.tm-gdpr .tm-gdpr-actions .psgdprgetdatabtn17:hover,
.tm-gdpr .tm-gdpr-actions .psgdprgetdatabtn17:focus-visible {
  border-color: #6dac23;
  background: #f4f9ee;
  color: #2e2e2e;
}
@media (max-width: 543px) {
  .tm-gdpr .psgdprinfo17.tm-gdpr-card {
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }
  .tm-gdpr .tm-gdpr-actions .psgdprgetdatabtn17 {
    flex: 1 1 100%;
  }
}

/* ===== Koszyk i zamówienie (wszystkie ekrany; templates/checkout/*) =====
   Karty z zaokrąglonymi rogami; produkt w koszyku jako siatka (zdjęcie | nazwa i cena | ilość,
   suma, kosz); kroki zamówienia z numerem w kółku i „Edytuj” jako pigułka; adresy, przewoźnicy
   i płatności jako karty z zaznaczeniem; podsumowanie z kwotami do prawej, zielone przyciski.
   Klasy z szablonów bez zmian – używają ich skrypty PrestaShop (ilość, usuwanie, kroki). */

/* --- Koszyk: karty --- */
#cart .cart-grid .card,
#checkout #js-checkout-summary,
#checkout .cart-summary {
  overflow: hidden;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}
#cart .cart-container .card-block h1 {
  margin: 0;
  font-size: 20px;
  text-transform: none;
}
#cart .cart-container > .separator {
  margin: 0;
  border-color: #eaeaea;
}
#cart .cart-overview {
  padding: 0 20px;
}
#cart .cart-items {
  margin: 0;
  padding: 0;
  list-style: none;
}
#cart .cart-items .cart-item {
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
}
#cart .cart-items .cart-item:last-child {
  border-bottom: 0;
}

/* --- Koszyk: wiersz produktu --- */
#cart .product-line-grid {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 18px;
}
#cart .product-line-grid > .clearfix,
#cart .product-line-grid-body > br {
  display: none;
}
#cart .product-line-grid > [class*="col-"] {
  float: none;
  width: auto;
  max-width: none;
  padding: 0;
}
#cart .product-line-grid-left .product-image img {
  display: block;
  width: 100%;
  height: auto;
  border: 0; /* bez obramówki (prośba właściciela 2026-11-13) */
  border-radius: 10px;
}
#cart .product-line-grid-body .product-line-info {
  margin: 0;
}
#cart .product-line-grid-body .label {
  display: block;
  margin-bottom: 4px;
  color: #2e2e2e;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  text-transform: none;
}
#cart .product-line-grid-body .label:hover {
  color: #6dac23;
}
#cart .product-line-grid-body .product-price {
  margin: 0;
  font-size: 14px;
}
#cart .product-line-grid-body .product-price .price {
  color: #666;
  font-weight: 600;
}
#cart .product-line-grid-body .unit-price-cart {
  color: #8a8a8a;
  font-size: 12px;
}
#cart .product-line-grid-body .product-line-info.product-line-info .value {
  color: #666;
  font-size: 13px;
}
/* ilość | suma | kosz w jednym rzędzie */
#cart .product-line-grid-right > .row,
#cart .product-line-grid-right > .row > [class*="col-"] > .row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
}
#cart .product-line-grid-right > .row::before,
#cart .product-line-grid-right > .row::after,
#cart .product-line-grid-right > .row > [class*="col-"] > .row::before,
#cart .product-line-grid-right > .row > [class*="col-"] > .row::after {
  display: none;
}
#cart .product-line-grid-right [class*="col-"] {
  float: none;
  width: auto;
  max-width: none;
  padding: 0;
}
#cart .product-line-grid-right .col-xs-4.hidden-md-up {
  display: none;
}
#cart .product-line-grid-right .price {
  min-width: 80px;
  text-align: right;
}
#cart .product-line-grid-right .product-price strong {
  color: #2e2e2e;
  font-size: 16px;
  font-weight: 700;
}
/* kosz: okrągły przycisk z obwódką, wyśrodkowany w rzędzie i odsunięty od sumy.
   Mocniejszy selektor – theme.css (margin-top, line-height 36 px) i reguła ≤ 767 px dla
   .cart-item .remove-from-cart (inline-block, line-height 44 px) podnosiły ikonę. */
#cart .product-line-grid-right .cart-line-product-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-left: 10px;
  line-height: 1;
}
#cart .product-line-grid-right .cart-line-product-actions .remove-from-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 40px;
  min-width: 0;
  height: 40px;
  min-height: 0;
  margin: 0;
  border: 1px solid #e3e3e3;
  border-radius: 50%;
  background: #fff;
  color: #8a8a8a;
  line-height: 1;
}
#cart .cart-line-product-actions .remove-from-cart .material-icons {
  float: none;
  margin: 0;
  font-size: 22px;
}
#cart .product-line-grid-right .cart-line-product-actions .remove-from-cart:hover,
#cart .product-line-grid-right .cart-line-product-actions .remove-from-cart:focus-visible {
  border-color: #f1c4c0;
  background: #fdf1f0;
  color: #b3261e;
}
/* ilość: „−” | pole | „+” jako jedna zaokrąglona kontrolka (zamiast strzałek ▲▼ obok pola).
   Przyciski TouchSpin leżą w .input-group-btn-vertical – display: contents robi z nich zwykłe
   elementy flex kontrolki, więc kolejność ustawia order (odejmowanie po lewej, dodawanie po prawej).
   Działanie bez zmian: to te same przyciski, które PS obsługuje w koszyku (AJAX z tokenem). */
#cart .product-line-grid-right .bootstrap-touchspin,
#checkout .bootstrap-touchspin {
  display: inline-flex;
  align-items: stretch;
  width: auto;
  overflow: hidden;
  border: 1px solid #dcdcdc;
  border-radius: 10px;
  background: #fff;
}
#cart .product-line-grid-right .bootstrap-touchspin > .input-group-btn-vertical {
  display: contents;
}
/* stała wysokość ramki; przyciski i pole rozciągnięte na całą wysokość (szare tło bez przerw) */
#cart .product-line-grid-right .bootstrap-touchspin.bootstrap-touchspin {
  box-sizing: border-box;
  height: 42px;
  margin: 0;
  padding: 0;
  vertical-align: middle;
}
#cart .product-line-grid-right .bootstrap-touchspin.bootstrap-touchspin > input.js-cart-line-product-quantity,
#cart .product-line-grid-right .bootstrap-touchspin.bootstrap-touchspin .input-group-btn-vertical > .btn {
  align-self: stretch;
  box-sizing: border-box;
  height: auto;
  margin: 0;
  top: 0;
}
#cart .product-line-grid-right .bootstrap-touchspin input.form-control,
#cart .product-line-grid-right .bootstrap-touchspin input.js-cart-line-product-quantity {
  order: 2;
  float: none;
  width: 44px;
  height: 40px;
  padding: 0;
  border: 0;
  text-align: center;
  font-size: 16px;
}
#cart .product-line-grid-right .bootstrap-touchspin .input-group-btn-vertical > .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  float: none;
  width: 40px;
  max-width: none;
  height: 40px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #f7f7f7;
  color: #2e2e2e;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}
#cart .product-line-grid-right .bootstrap-touchspin .input-group-btn-vertical > .bootstrap-touchspin-down {
  order: 1;
  border-right: 1px solid #eaeaea;
}
#cart .product-line-grid-right .bootstrap-touchspin .input-group-btn-vertical > .bootstrap-touchspin-up {
  order: 3;
  border-left: 1px solid #eaeaea;
}
#cart .product-line-grid-right .bootstrap-touchspin .input-group-btn-vertical > .btn i {
  display: none;
}
#cart .product-line-grid-right .bootstrap-touchspin .bootstrap-touchspin-down::before {
  content: "\2212"; /* − */
}
#cart .product-line-grid-right .bootstrap-touchspin .bootstrap-touchspin-up::before {
  content: "+";
}
#cart .product-line-grid-right .bootstrap-touchspin .input-group-btn-vertical > .btn:hover,
#cart .product-line-grid-right .bootstrap-touchspin .input-group-btn-vertical > .btn:focus-visible {
  background: #eef6e4;
  color: #6dac23;
}
/* wąski telefon: suma może zejść pod kontrolkę ilości zamiast wypychać kosz poza kartę */
#cart .product-line-grid-right > .row > [class*="col-"] > .row {
  flex-wrap: wrap;
}

/* --- Strona produktu (wszystkie szerokości): „−” | ilość | „+” i obok „Dodaj do koszyka” ---
   Te same przyciski TouchSpin co dotąd (display: contents + order), tylko inny układ. */
#product .product-add-to-cart .product-quantity {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}
#product .product-add-to-cart .product-quantity::before,
#product .product-add-to-cart .product-quantity::after {
  display: none; /* clearfix jako elementy flex psułby odstępy */
}
#product .product-add-to-cart .product-quantity .qty {
  float: none;
  flex: 0 0 auto;
  width: auto;
  margin: 0;
}
#product .product-add-to-cart .product-quantity .add {
  float: none;
  display: flex;
  flex: 1 1 200px;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  width: auto;
  margin: 0;
}
#product .product-add-to-cart .product-quantity .add .add-to-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  margin: 0;
}
#product .product-add-to-cart .product-quantity .add #product-availability {
  flex: 1 1 100%;
  margin: 0;
}
#product .product-add-to-cart .product-quantity .bootstrap-touchspin {
  display: inline-flex;
  align-items: stretch;
  width: auto;
  overflow: hidden;
  border: 1px solid #dcdcdc;
  border-radius: 10px;
  background: #fff;
}
#product .product-add-to-cart .product-quantity .bootstrap-touchspin > .input-group-btn-vertical {
  display: contents;
}
#product .product-add-to-cart .product-quantity .bootstrap-touchspin #quantity_wanted {
  order: 2;
  float: none;
  width: 48px;
  height: 44px;
  padding: 0;
  border: 0;
  text-align: center;
  font-size: 16px;
}
#product .product-add-to-cart .product-quantity .bootstrap-touchspin .input-group-btn-vertical > .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  float: none;
  width: 44px;
  max-width: none;
  height: 44px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #f7f7f7;
  color: #2e2e2e;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}
#product .product-add-to-cart .product-quantity .bootstrap-touchspin .input-group-btn-vertical > .bootstrap-touchspin-down {
  order: 1;
  border-right: 1px solid #eaeaea;
}
#product .product-add-to-cart .product-quantity .bootstrap-touchspin .input-group-btn-vertical > .bootstrap-touchspin-up {
  order: 3;
  border-left: 1px solid #eaeaea;
}
#product .product-add-to-cart .product-quantity .bootstrap-touchspin .input-group-btn-vertical > .btn i {
  display: none;
}
#product .product-add-to-cart .product-quantity .bootstrap-touchspin .bootstrap-touchspin-down::before {
  content: "\2212"; /* − */
}
#product .product-add-to-cart .product-quantity .bootstrap-touchspin .bootstrap-touchspin-up::before {
  content: "+";
}
/* pola ilości z naszymi „−/+”: bez wbudowanych strzałek przeglądarki (pokazują się po najechaniu) */
.bootstrap-touchspin input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}
.bootstrap-touchspin input[type="number"]::-webkit-outer-spin-button,
.bootstrap-touchspin input[type="number"]::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
}

/* ===== „Dodaj do koszyka” → „− ilość +” połączone z koszykiem (assets/js/cart-stepper.js) =====
   Element [data-tm-stepper] dostaje z JS klasę .tm-stepper-root; .is-in-cart, gdy produkt jest
   w koszyku (wtedy zamiast przycisku „Dodaj” widać „− ilość +”), .is-busy w trakcie zapisu. */
.tm-stepper {
  display: none;
  align-items: stretch;
  box-sizing: border-box;
  height: 40px;
  overflow: hidden;
  border: 1px solid #dcdcdc;
  border-radius: 10px;
  background: #fff;
}
.tm-stepper-root.is-in-cart > .tm-stepper {
  display: inline-flex;
}
.tm-stepper-root.is-in-cart [data-button-action="add-to-cart"],
.tm-stepper-root.is-in-cart [data-tm-add] {
  display: none !important; /* theme.css ustawia przyciskom display z wysoką specyficznością */
}
.tm-stepper-root .smallqty {
  display: none !important; /* pole ilości zbędne – pierwsze kliknięcie dodaje 1 szt. (albo minimum) */
}
.tm-stepper__btn {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 36px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #f7f7f7;
  color: #2e2e2e;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
}
.tm-stepper__down {
  border-right: 1px solid #eaeaea;
}
.tm-stepper__up {
  border-left: 1px solid #eaeaea;
}
.tm-stepper__btn:hover,
.tm-stepper__btn:focus-visible {
  background: #eef6e4;
  color: #6dac23;
}
.tm-stepper__btn:focus-visible {
  outline: 2px solid #6dac23;
  outline-offset: -2px;
}
.tm-stepper__qty {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  padding: 0 4px;
  color: #2e2e2e;
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.tm-stepper-root.is-busy .tm-stepper__qty {
  opacity: 0.55; /* zapisywanie – przyciski dalej działają, kliknięcia się sumują */
}
.tm-incart {
  margin: 4px 0 0;
  color: #4d8a14;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}
.tm-incart:empty {
  display: none;
}
.tm-incart.is-error {
  color: #b3261e;
  font-weight: 500;
}

/* lista produktów: stepper w miejscu okrągłego przycisku koszyka */
.products .product-miniature .product-actions-main .tm-stepper {
  vertical-align: middle;
}
.products .product-miniature .tm-incart {
  text-align: center;
}
/* produkt z wariantami: „Wybierz” prowadzi na stronę produktu */
.products .product-miniature .product-actions-main .tm-choose {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 25px;
  background: #f5f5f5; /* jak „Do koszyka” na liście */
  color: #2e2e2e;
  font-size: clamp(12px, 3.3vw, 13px);
  font-weight: 500;
  line-height: 1;
  text-transform: none;
  vertical-align: middle;
}
.products .product-miniature .product-actions-main .tm-choose:hover,
.products .product-miniature .product-actions-main .tm-choose:focus-visible {
  background: #6dac23;
  color: #fff;
}
.products .product-miniature .product-actions-main .tm-choose[aria-expanded="true"] {
  background: #6dac23;
  color: #fff;
}

/* „Wybierz” → panel wyboru wariantu na karcie (assets/js/cart-stepper.js, .tm-vpick).
   Karta (.product-miniature) ma position: relative w theme.css – panel zakrywa ją od dołu. */
.products .product-miniature .tm-vpick {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  max-height: 100%;
  padding: 12px;
  border: 1px solid #e3e3e3;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.12);
  text-align: left;
}
.tm-vpick__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.tm-vpick__title {
  color: #2e2e2e;
  font-size: 14px;
  font-weight: 600;
}
.products .product-miniature .tm-vpick .tm-vpick__close {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f5f5f5;
  color: #2e2e2e;
  font-size: 20px;
  line-height: 32px;
  cursor: pointer;
}
.products .product-miniature .tm-vpick .tm-vpick__close:hover,
.products .product-miniature .tm-vpick .tm-vpick__close:focus-visible {
  background: #eef6e4;
  color: #4d8a14;
}
.tm-vpick__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.tm-vpick.is-loading .tm-vpick__body,
.tm-vpick.is-loading .tm-vpick__price {
  opacity: 0.5;
}
.tm-vpick.is-loading .tm-vpick__body:empty {
  min-height: 40px;
  background: linear-gradient(90deg, #f3f3f3 25%, #e9e9e9 50%, #f3f3f3 75%) 0 0 / 200% 100%;
  border-radius: 8px;
}
.tm-vpick__group + .tm-vpick__group {
  margin-top: 10px;
}
.tm-vpick__label {
  display: block;
  margin-bottom: 6px;
  color: #6b6b6b;
  font-size: 12px;
  font-weight: 500;
}
.tm-vpick__opts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.products .product-miniature .tm-vpick .tm-vpick__opt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 5px 12px;
  border: 1px solid #dcdcdc;
  border-radius: 18px;
  background: #fff;
  color: #2e2e2e;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
}
.products .product-miniature .tm-vpick .tm-vpick__opt:hover {
  border-color: #6dac23;
}
.products .product-miniature .tm-vpick .tm-vpick__opt[aria-checked="true"] {
  border-color: #6dac23;
  background: #6dac23;
  color: #fff;
}
.products .product-miniature .tm-vpick .tm-vpick__opt:focus-visible {
  outline: 2px solid #3f7a10;
  outline-offset: 2px;
}
/* Bootstrap (button:focus) rysuje niebieski obrys także po kliknięciu myszką – w panelu tylko
   zielony obrys z klawiatury (:focus-visible) */
.products .product-miniature .tm-vpick button:focus:not(:focus-visible),
.products .product-miniature .product-actions-main .tm-choose:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}
.products .product-miniature .tm-vpick .tm-vpick__close:focus-visible,
.products .product-miniature .tm-vpick .tm-vpick__buy .add-to-cart:focus-visible {
  outline: 2px solid #3f7a10;
  outline-offset: 2px;
}
.tm-vpick__swatch {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 50%;
}
.tm-vpick__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #eee;
}
.tm-vpick__price {
  color: #2e2e2e;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}
.tm-vpick__buy {
  flex: 1 1 120px;
  max-width: 100%;
  text-align: right;
}
.products .product-miniature .tm-vpick .tm-vpick__buy .add-to-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 25px;
  background: #6dac23;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  text-transform: none;
}
.products .product-miniature .tm-vpick .tm-vpick__buy .add-to-cart::before,
.products .product-miniature .tm-vpick .tm-vpick__buy .add-to-cart::after {
  content: none;
}
.products .product-miniature .tm-vpick .tm-vpick__buy .add-to-cart:hover,
.products .product-miniature .tm-vpick .tm-vpick__buy .add-to-cart:focus-visible {
  background: #4d8a14;
}
.products .product-miniature .tm-vpick .tm-vpick__buy .add-to-cart:disabled {
  background: #e3e3e3;
  color: #8a8a8a;
  cursor: not-allowed;
}
.products .product-miniature .tm-vpick .tm-vpick__buy .tm-stepper {
  width: 100%;
}
.products .product-miniature .tm-vpick .tm-vpick__buy .tm-incart {
  text-align: right;
}
.tm-vpick__msg {
  margin: 6px 0 0;
  color: #b3261e;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
}
.tm-vpick__msg:empty {
  display: none;
}
@media (prefers-reduced-motion: no-preference) {
  .products .product-miniature .tm-vpick {
    animation: tm-vpick-in 0.16s ease-out;
  }
}
@keyframes tm-vpick-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* Koszyk: „Zmień wariant” przy pozycji (cart-detailed-product-line.tpl) i ten sam panel .tm-vpick,
   tu w treści pozycji (nie nakładka), ze „Zapisz” zamiast „Do koszyka” */
#cart .tm-cart-variant-edit {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 6px 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: #4d8a14;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
#cart .tm-cart-variant-edit:hover {
  color: #3f7a10;
}
#cart .tm-cart-variant-edit[aria-expanded="true"] {
  text-decoration: none;
}
#cart .tm-cart-variant-edit:focus:not(:focus-visible) {
  outline: none;
}
#cart .tm-cart-variant-edit:focus-visible {
  outline: 2px solid #3f7a10;
  outline-offset: 2px;
}
#cart .tm-vpick--cart {
  display: flex;
  flex-direction: column;
  max-width: 420px;
  margin: 10px 0 4px;
  padding: 12px;
  border: 1px solid #e3e3e3;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  text-align: left;
}
#cart .tm-vpick--cart .tm-vpick__body {
  max-height: 260px;
}
#cart .tm-vpick .tm-vpick__close {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f5f5f5;
  color: #2e2e2e;
  font-size: 20px;
  line-height: 32px;
  cursor: pointer;
}
#cart .tm-vpick .tm-vpick__close:hover {
  background: #eef6e4;
  color: #4d8a14;
}
#cart .tm-vpick .tm-vpick__opt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 5px 12px;
  border: 1px solid #dcdcdc;
  border-radius: 18px;
  background: #fff;
  color: #2e2e2e;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
}
#cart .tm-vpick .tm-vpick__opt:hover {
  border-color: #6dac23;
}
#cart .tm-vpick .tm-vpick__opt[aria-checked="true"] {
  border-color: #6dac23;
  background: #6dac23;
  color: #fff;
}
#cart .tm-vpick .tm-vpick__save {
  height: 40px;
  padding: 0 22px;
  border: 0;
  border-radius: 25px;
  background: #6dac23;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-transform: none;
}
#cart .tm-vpick .tm-vpick__save:hover {
  background: #4d8a14;
}
#cart .tm-vpick .tm-vpick__save:disabled {
  background: #e3e3e3;
  color: #8a8a8a;
  cursor: not-allowed;
}
#cart .tm-vpick button:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}
#cart .tm-vpick button:focus-visible {
  outline: 2px solid #3f7a10;
  outline-offset: 2px;
}
.tm-vpick__msg.is-info {
  color: #6b6b6b;
}
#cart .tm-cart-notice {
  margin: 0 0 12px;
  padding: 10px 14px;
  border: 1px solid #f1c5c2;
  border-radius: 10px;
  background: #fdf1f0;
  color: #b3261e;
  font-size: 13px;
  font-weight: 500;
}
@media (prefers-reduced-motion: no-preference) {
  #cart .tm-vpick--cart {
    animation: tm-vpick-in 0.16s ease-out;
  }
}

/* lista produktów: przycisk „Do koszyka” z napisem obok ikony (theme.css: okrągła ikona 40 px,
   napis schowany przez font-size: 0). Pełna nazwa „Dodaj do koszyka” w aria-label. */
.products .product_list .product-miniature .product-actions-main .add-to-cart,
.products .product-miniature .product-actions-main form .add-to-cart {
  width: auto;
  height: 40px;
  padding: 0 14px 0 38px;
  background-color: #f5f5f5;
  background-image: url("../img/megnor/cart.svg");
  background-repeat: no-repeat;
  background-position: 12px center;
  background-size: 20px;
  color: #2e2e2e;
  font-size: clamp(12px, 3.3vw, 13px);
  font-weight: 500;
  line-height: 40px;
  text-align: center;
  text-transform: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.products .product_list .product-miniature .product-actions-main .add-to-cart:hover,
.products .product_list .product-miniature .product-actions-main .add-to-cart:focus-visible,
.products .product-miniature .product-actions-main form .add-to-cart:hover,
.products .product-miniature .product-actions-main form .add-to-cart:focus-visible {
  background-color: #6dac23;
  background-image: url("../img/megnor/cart-hover.svg");
  color: #fff;
}

/* ===== Górny pasek na komputerze (≥ 992 px): linki „TM Top link block” i blok „Napisz do nas” =====
   Linki: tm_toplink (#links_block_top #tm_toplink – na telefonie to samo jest menu „⋮”),
   kontakt: tm_navcmsblock (treść z panelu – bez zmian, tylko wygląd). */
@media (min-width: 992px) {
  #header .header-top #links_block_top #tm_toplink {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
  }
  #header .header-top #links_block_top #tm_toplink::before,
  #header .header-top #links_block_top #tm_toplink::after {
    display: none; /* clearfix jako elementy flex */
  }
  #header .header-top #links_block_top #tm_toplink li {
    float: none;
    padding: 0;
  }
  #header .header-top #links_block_top #tm_toplink li a {
    display: inline-flex;
    align-items: center;
    padding: 9px 16px;
    border-radius: 20px;
    color: #2e2e2e;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2px;
    line-height: 20px;
    transition: background-color 0.15s ease, color 0.15s ease;
  }
  #header .header-top #links_block_top #tm_toplink li a:hover,
  #header .header-top #links_block_top #tm_toplink li a:focus-visible,
  #header .header-top #links_block_top #tm_toplink li a.is-current {
    background: #eef6e4;
    color: #4d8a14 !important; /* theme.css: #tm_toplink li a:hover { color … !important } */
  }
  #header .header-top #links_block_top #tm_toplink li a:focus-visible {
    outline: 2px solid #6dac23;
    outline-offset: 2px;
  }

  /* kontakt: ikona telefonu w kółku zamiast samej grafiki */
  #tmnavcmsblock::before {
    height: 40px;
    margin-top: 2px;
    background: #ececec;
  }
  #tmnavcmsblock .first-content,
  #tmnavcmsblock .first-content:hover {
    position: relative;
    min-height: 44px;
    padding-left: 56px;
    background: none;
  }
  #tmnavcmsblock .first-content::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #eef6e4 url("../img/megnor/call.svg") no-repeat center; /* sama słuchawka (zielona) */
    background-size: 20px;
    transform: translateY(-50%);
    transition: background-color 0.15s ease;
  }
  #tmnavcmsblock .first-content:hover::before {
    background-color: #dcefc6;
  }
  #tmnavcmsblock .text-contact {
    color: #2e2e2e;
    font-size: 15px;
    letter-spacing: 0.2px;
  }
  #tmnavcmsblock .contact-no,
  #tmnavcmsblock .contact-no a {
    color: #666;
    font-size: 13px;
    letter-spacing: 0.2px;
  }
  #tmnavcmsblock .contact-no a:hover {
    color: #6dac23;
  }
}
@media (min-width: 992px) and (prefers-reduced-motion: reduce) {
  #header .header-top #links_block_top #tm_toplink li a,
  #tmnavcmsblock .first-content::before {
    transition: none;
  }
}

/* ===== Wyszukiwarka w zielonym pasku na komputerze (≥ 992 px; moduł tmajaxsearch) =====
   Białe pole z lupą po lewej, przycisk jako zielone kółko w polu (jak na telefonie), podpowiedzi
   jako karta. Ikony: własne SVG w CSS (bez nowych plików). */
@media (min-width: 992px) {
  #header #tm_ajax_search {
    padding: 10px 0;
    border: 0;
  }
  #header #tm_ajax_search #searchbox {
    position: relative;
    border-radius: 24px;
  }
  #header #tm_ajax_search #ajax_search {
    box-sizing: border-box;
    height: 46px;
    padding: 0 56px 0 46px;
    border: 0;
    border-radius: 23px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8a8a' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.6-3.6'/%3E%3C/svg%3E") no-repeat 16px center;
    background-size: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    color: #2e2e2e;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.2px;
    transition: box-shadow 0.15s ease;
  }
  #header #tm_ajax_search #ajax_search::placeholder {
    color: #8a8a8a;
    font-size: 15px;
  }
  #header #tm_ajax_search #ajax_search:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.65), 0 2px 8px rgba(0, 0, 0, 0.16);
  }
  #header #tm_ajax_search #searchbox .button-search {
    top: 5px;
    right: 5px;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    background: #6dac23 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.6-3.6'/%3E%3C/svg%3E") no-repeat center;
    background-size: 18px;
    transition: background-color 0.15s ease;
  }
  #header #tm_ajax_search #searchbox .button-search:hover,
  #header #tm_ajax_search #searchbox .button-search:focus-visible {
    background-color: #4d8a14;
  }
  #header #tm_ajax_search #searchbox .button-search:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
  }

  /* podpowiedzi podczas pisania */
  #header #tm_ajax_search #tm_search_result {
    top: 62px;
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
    overflow: hidden;
  }
  #header #tm_ajax_search #tm_search_result .tm_result_div {
    padding: 6px;
  }
  #header #tm_ajax_search #tm_search_result .tm_result_div .results {
    margin: 0;
  }
  #header #tm_ajax_search #tm_search_result .tm_result_div .item {
    display: flex;
    align-items: center;
    gap: 12px;
    float: none;
    margin: 0;
    padding: 8px 10px;
    border: 0;
    border-radius: 10px;
  }
  #header #tm_ajax_search #tm_search_result .tm_result_div .item::before,
  #header #tm_ajax_search #tm_search_result .tm_result_div .item::after {
    display: none;
  }
  #header #tm_ajax_search #tm_search_result .tm_result_div .item:hover {
    background: #f6faf0;
  }
  #header #tm_ajax_search #tm_search_result .tm_result_div .item .left-img {
    flex: 0 0 48px;
    float: none;
    width: 48px;
    height: 48px;
    margin: 0;
    overflow: hidden;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fff;
  }
  #header #tm_ajax_search #tm_search_result .tm_result_div .item .left-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  #header #tm_ajax_search #tm_search_result .tm_result_div .right-info {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 2px;
    float: none;
    width: auto;
    min-width: 0;
  }
  #header #tm_ajax_search #tm_search_result .tm_result_div .right-info a {
    overflow: hidden;
    color: #2e2e2e;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  #header #tm_ajax_search #tm_search_result .tm_result_div .item:hover .right-info a {
    color: #4d8a14;
  }
  #header #tm_ajax_search #tm_search_result .tm_result_div .right-info .price {
    float: none;
    width: auto;
    color: #2e2e2e;
    font-size: 14px;
    font-weight: 600;
  }
}
@media (min-width: 992px) and (prefers-reduced-motion: reduce) {
  #header #tm_ajax_search #ajax_search,
  #header #tm_ajax_search #searchbox .button-search {
    transition: none;
  }
}

/* ===== Strona główna na komputerze: odstęp slidera i banerów od zielonego paska =====
   Jak w motywie przed zmianami (ok. 25 px). Menu kategorii (#left-column, theme.css: margin-top
   −58 px) zostaje przyklejone do paska – odstęp dotyczy tylko prawej części (#content-wrapper). */
@media (min-width: 992px) {
  #index #content-wrapper {
    padding-top: 25px;
  }
}

/* ===== Menu boczne kategorii na komputerze (≥ 992 px; moduł tm_verticalmenu) =====
   Nagłówek i lista jako karta z zaokrąglonymi rogami, wiersze z podświetleniem (bez przesuwania
   tekstu), delikatne strzałki, podkategorie jako karta z cieniem. Moduł (tm_verticalmenu.css) ustawia
   kolory z !important i granatowy kolor po najechaniu – stąd !important przy kolorach. */
@media (min-width: 992px) {
  #tm_vertical_menu_top .block-title .menu-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    /* Dół równo z zielonym paskiem: theme.css podciąga #left-column o 58 px, a pasek z wyszukiwarką
       ma 66 px (pole 46 px + 2 × 10 px, sekcja „Wyszukiwarka w zielonym pasku”), więc nagłówek zaczyna
       się 8 px poniżej górnej krawędzi paska i musi mieć 58 px. Przy zmianie wysokości wyszukiwarki
       zmienić też tę wartość. */
    height: 58px;
    padding: 0 18px;
    border-radius: 12px 12px 0 0;
    background: #88c53f; /* kolor nagłówka z motywu (jaśniejszy niż zielony pasek) */
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.2px;
  }
  #tm_vertical_menu_top .block-title .menu-title .material-icons {
    float: none;
    font-size: 22px;
  }
  #tm_vertical_menu_top #_desktop_top_menu {
    padding: 6px 0;
    border: 1px solid #eaeaea;
    border-top: 0;
    border-radius: 0 0 12px 12px;
    background: #fff;
  }
  #tm_vertical_menu_top #top-menu {
    background: transparent;
  }
  #tm_vertical_menu_top #top-menu > li {
    padding: 0 8px;
  }
  #tm_vertical_menu_top .top-menu > li > a[data-depth="0"],
  #tm_vertical_menu_top .top-menu > li:hover > a[data-depth="0"] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-bottom: 0;
    border-radius: 8px;
    color: #2e2e2e !important;
    font-size: 14px;
    line-height: 1.35;
    transition: background-color 0.15s ease, color 0.15s ease;
  }
  #tm_vertical_menu_top .top-menu > li:hover > a[data-depth="0"],
  #tm_vertical_menu_top .top-menu > li > a[data-depth="0"]:focus-visible {
    background: #f1f8e9;
    color: #4d8a14 !important;
  }
  #tm_vertical_menu_top .top-menu > li > a[data-depth="0"]:focus-visible {
    outline: 2px solid #6dac23;
    outline-offset: -2px;
  }
  /* strzałka stoi w HTML przed nazwą – order przenosi ją na koniec wiersza */
  #tm_vertical_menu_top .top-menu > li > a[data-depth="0"] .pull-xs-right {
    order: 2;
    float: none;
    flex: 0 0 auto;
    margin-left: auto;
    line-height: 1;
  }
  #tm_vertical_menu_top .top-menu > li > a[data-depth="0"] .pull-xs-right .material-icons.left {
    color: #b5b5b5;
    font-size: 18px;
    transition: color 0.15s ease;
  }
  #tm_vertical_menu_top .top-menu > li:hover > a[data-depth="0"] .pull-xs-right .material-icons.left {
    color: #6dac23;
  }

  /* podkategorie (wysuwane w prawo) */
  #tm_vertical_menu_top .vertical-menu .top-menu .sub-menu {
    padding: 8px 22px 18px;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  }
  #tm_vertical_menu_top .top-menu a.dropdown-item.dropdown-submenu[data-depth="1"] {
    margin-top: 14px;
    padding: 0 0 4px;
    border-bottom: 0 !important; /* bez kresek pod nazwami grup */
    font-size: 14px;
  }
  #tm_vertical_menu_top .vertical-menu .tm_sf-menu.top-menu[data-depth="2"] {
    padding-left: 0; /* moduł: 8 px – linki równo z nazwą grupy */
  }
  #tm_vertical_menu_top .vertical-menu .top-menu a[data-depth="2"] {
    padding: 4px 0;
    color: #555 !important;
    font-size: 13px;
  }
  #tm_vertical_menu_top .vertical-menu .top-menu a[data-depth="2"]:hover {
    color: #4d8a14 !important;
  }
}
@media (min-width: 992px) and (prefers-reduced-motion: reduce) {
  #tm_vertical_menu_top .top-menu > li > a[data-depth="0"],
  #tm_vertical_menu_top .top-menu > li > a[data-depth="0"] .pull-xs-right .material-icons.left {
    transition: none;
  }
}

/* ===== Blok linków „TM - Link block” w lewej kolumnie (≥ 992 px; moduł tm_blocklink) =====
   Jak karta filtrów: ramka z zaokrąglonymi rogami, nagłówek bez wersalików i bez zielonej kreski
   w stałym miejscu (theme.css: top: 52px – przy innej wysokości lądowała nad napisem), linki jako
   wiersze z podświetleniem. Szablon: modules/tm_blocklink/views/templates/hook/tm_blocklink.tpl. */
@media (min-width: 992px) {
  #left-column #links_block_left {
    float: none;
    clear: both;
    width: 100%;
    margin: 20px 0 25px !important; /* theme.css: margin-bottom … !important */
    padding: 14px 16px 8px;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    background: #fff;
    cursor: default;
  }
  #left-column #links_block_left .h3.title_block {
    margin: 0 0 6px;
    padding: 0;
    border: 0;
    color: #2e2e2e;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.2px;
    line-height: 1.3;
    text-transform: none !important; /* theme.css: uppercase !important */
  }
  #left-column #links_block_left .h3.title_block::before,
  #left-column #links_block_left .h3.title_block::after {
    display: none;
  }
  #left-column #links_block_left .h3.title_block a {
    color: inherit;
  }
  #left-column #links_block_left .h3.title_block a:hover {
    color: #4d8a14;
  }
  #left-column #links_block_left #tm_blocklink {
    float: none;
    margin: 0 -8px;
    padding: 0;
    background: transparent;
  }
  #left-column #links_block_left #tm_blocklink:empty {
    display: none;
  }
  #left-column #links_block_left #tm_blocklink li {
    padding: 0;
  }
  #left-column #links_block_left #tm_blocklink li a {
    display: block;
    padding: 7px 8px;
    border-radius: 8px;
    color: #2e2e2e;
    font-size: 14px;
    letter-spacing: 0.2px;
    line-height: 1.35;
    transition: background-color 0.15s ease, color 0.15s ease;
  }
  #left-column #links_block_left #tm_blocklink li a:hover,
  #left-column #links_block_left #tm_blocklink li a:focus-visible {
    background: #f6faf0;
    color: #4d8a14;
    text-decoration: none;
  }
  #left-column #links_block_left #tm_blocklink li a:focus-visible {
    outline: 2px solid #6dac23;
    outline-offset: -2px;
  }
}
@media (min-width: 992px) and (prefers-reduced-motion: reduce) {
  #left-column #links_block_left #tm_blocklink li a {
    transition: none;
  }
}

/* ===== Stopka na komputerze (≥ 992 px): pięć równych kolumn =====
   Kontakt (ps_contactinfo), bloki „Lista linków” (ps_linklist) i „Twoje konto”
   (ps_customeraccountlinks) w jednym rzędzie – wcześniej 5 bloków w 4 kolumnach (25 %) i „Twoje
   konto” spadało pod „Nasza firma”. Nagłówki zwykłymi literami z zieloną kreską, strzałki w osobnej
   kolumnie (zawinięty tekst stoi równo pod tekstem, nie pod strzałką). Telefon/tablet: sekcja ≤ 991 px. */
@media (min-width: 992px) {
  .footer-container .row.footer {
    position: relative; /* odniesienie dla ikon .block-social (position: absolute w theme.css) */
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) repeat(4, minmax(0, 1fr));
    gap: 0 32px;
    margin: 0 0 10px;
    padding: 0 15px;
  }
  .footer-container .row.footer::before,
  .footer-container .row.footer::after {
    display: none;
  }
  .footer-container .row.footer > *:not(#tmfootercmsblock):not(.block-social) {
    float: none;
    width: auto;
    max-width: none;
    margin: 0 0 30px;
    padding: 0;
  }
  /* blok z logo i tekstem (tm_footercmsblock) – cały pierwszy rząd, jak w motywie; ikony
     mediów społecznościowych (.block-social) zostają w nim po prawej */
  .footer-container .row.footer > #tmfootercmsblock {
    grid-column: 1 / -1;
    float: none;
    width: auto;
    margin: 40px 0 45px;
  }
  /* nagłówki kolumn */
  .footer-container .row.footer .links h3.h3,
  .footer-container .row.footer .myaccount-title,
  .footer-container .row.footer .tm-footer-title {
    position: relative;
    margin: 0 0 14px;
    padding: 0 0 10px;
    color: #2e2e2e;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.2px;
    line-height: 1.3;
    text-transform: none;
  }
  .footer-container .row.footer .myaccount-title a {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    text-transform: none;
  }
  .footer-container .row.footer .myaccount-title a:hover {
    color: #4d8a14;
  }
  .footer-container .row.footer .links h3.h3::after,
  .footer-container .row.footer .myaccount-title::after,
  .footer-container .row.footer .tm-footer-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 32px;
    height: 2px;
    border-radius: 2px;
    background: #6dac23;
  }
  /* linki: strzałka w osobnej kolumnie, równe odstępy */
  .footer-container .row.footer .links ul {
    margin: 0;
  }
  .footer-container .row.footer .links li {
    margin: 0 0 6px;
  }
  .footer-container .row.footer .links li a {
    display: inline-block;
    padding-left: 18px;
    color: #444;
    font-size: 14px;
    letter-spacing: 0.2px;
    line-height: 1.45;
    transition: color 0.15s ease;
  }
  .footer-container .row.footer .links li a::before {
    top: 2px;
    opacity: 0.6;
  }
  .footer-container .row.footer .links li a:hover {
    color: #4d8a14;
  }
  .footer-container .row.footer .links li a:hover::before {
    opacity: 1;
  }
}
@media (min-width: 992px) and (prefers-reduced-motion: reduce) {
  .footer-container .row.footer .links li a {
    transition: none;
  }
}

/* ===== Strona główna: „Pokaż więcej produktów” (moduły tm_* – .loadmore, custom.js loadMore) ===== */
.loadmore .gridcount.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 10px 0 0;
  padding: 10px 28px;
  border: 0;
  border-radius: 22px;
  background-color: #6dac23;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-transform: none;
  transition: background-color 0.15s ease;
}
.loadmore .gridcount.btn:hover,
.loadmore .gridcount.btn:focus-visible {
  background-color: #4d8a14;
  color: #fff;
}
.loadmore .gridcount.btn:focus-visible {
  outline: 2px solid #6dac23;
  outline-offset: 2px;
}
.loadmore .gridcount.btn::first-letter {
  text-transform: uppercase;
}

/* ===== Marki (moduł tm_brandlogo): kafelki; bez logo – kółko z pierwszą literą i nazwa ===== */
.brands .products .product_list li.item,
.brands .products .product_list li.product_item {
  padding: 14px;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.brands .products .product_list li.item:hover,
.brands .products .product_list li.product_item:hover {
  border-color: #6dac23;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}
.brands .brand-image a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
}
.brands .brand-image img {
  max-height: 80px;
  width: auto;
  object-fit: contain;
}
.brands .tm-brand-nologo a {
  flex-direction: column;
  gap: 10px;
  color: #2e2e2e;
  text-decoration: none;
}
.brands .tm-brand-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #eef6e4;
  color: #4d8a14;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}
.brands .tm-brand-name {
  max-width: 100%;
  overflow: hidden;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.brands .tm-brand-nologo a:hover .tm-brand-name {
  color: #4d8a14;
}

/* ===== Strona główna: „Odwiedź nasze sklepy stacjonarne” (moduł tm_cms3block, treść z panelu) =====
   Karta zamiast szarego tła i animowanych przerywanych ramek: ikona sklepu, tytuł zwykłymi literami,
   adres (pinezka) i godziny (zegar), przycisk „Zobacz sklepy” (dodany w szablonie modułu w motywie). */
#tmcms3_block {
  display: flex;
  align-items: center;
  gap: 16px 28px;
  margin-bottom: 40px;
  padding: 22px 26px;
  border: 1px solid #eaeaea;
  border-radius: 14px;
  background: #fff;
}
#tmcms3_block .tmcms3block {
  position: static;
  flex: 1 1 auto;
  min-width: 0;
}
#tmcms3_block .tmcms3block::before,
#tmcms3_block .tmcms3block::after,
#tmcms3_block .first-content.main-content::before,
#tmcms3_block .first-content.main-content::after {
  display: none; /* przerywane ramki z animacją z theme.css */
}
#tmcms3_block .first-content.main-content {
  margin: 0;
  padding: 0;
  background: none;
}
#tmcms3_block .cms-block {
  position: relative;
  padding-left: 76px;
  text-align: left;
}
#tmcms3_block .cms-block::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #eef6e4 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234d8a14' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l1.5-5h15L21 9'/%3E%3Cpath d='M3 9h18v1.5a3 3 0 0 1-6 0 3 3 0 0 1-6 0 3 3 0 0 1-6 0z'/%3E%3Cpath d='M5 13v7h14v-7'/%3E%3Cpath d='M10 20v-4h4v4'/%3E%3C/svg%3E") no-repeat center / 28px 28px;
  transform: translateY(-50%);
}
#tmcms3_block .cms_offer {
  margin: 0 0 8px;
  color: #2e2e2e;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.2px;
  line-height: 1.3;
  text-transform: none;
}
#tmcms3_block .cms_offer .cms3_color {
  color: #4d8a14;
}
#tmcms3_block .cms_offer1 {
  position: relative;
  margin: 2px 0 0 !important; /* w treści z panelu: style="margin-top:10px" */
  padding-left: 24px;
  color: #555;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.2px;
  line-height: 1.5;
  text-transform: none;
}
#tmcms3_block .cms_offer + .cms_offer1::before,
#tmcms3_block .cms_offer + .cms_offer1 + .cms_offer1::before {
  content: "";
  position: absolute;
  top: 50%; /* środek linii tekstu, niezależnie od kroju i wysokości linii */
  left: 0;
  width: 17px;
  height: 17px;
  transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236dac23' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5A7 7 0 0 1 19 9.5C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E") no-repeat center / contain;
}
#tmcms3_block .cms_offer + .cms_offer1 + .cms_offer1 {
  margin-top: 6px !important;
}
#tmcms3_block .cms_offer + .cms_offer1 + .cms_offer1::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236dac23' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7.5V12l3 2'/%3E%3C/svg%3E");
}
#tmcms3_block .tm-stores-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 24px;
  border-radius: 22px;
  background: #6dac23;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-decoration: none;
  transition: background-color 0.15s ease;
}
#tmcms3_block .tm-stores-link:hover,
#tmcms3_block .tm-stores-link:focus-visible {
  background: #4d8a14;
  color: #fff;
}
#tmcms3_block .tm-stores-link:focus-visible {
  outline: 2px solid #6dac23;
  outline-offset: 2px;
}
@media (max-width: 767px) {
  #tmcms3_block {
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
  }
  #tmcms3_block .cms-block {
    padding-left: 64px;
  }
  #tmcms3_block .cms-block::before {
    top: 0;
    width: 48px;
    height: 48px;
    background-size: 24px 24px;
    transform: none;
  }
  #tmcms3_block .cms_offer {
    font-size: 17px;
  }
  #tmcms3_block .tm-stores-link {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  #tmcms3_block .tm-stores-link {
    transition: none;
  }
}

/* ===== Strona główna: tekst o sklepie (moduł ps_customtext, #custom-text; treść z panelu) =====
   Karta z czytelnym tekstem, lista z zielonymi „ptaszkami”, zwijanie „Czytaj więcej” (mobile.js –
   cała treść zostaje w HTML). Widoczny też na telefonie: theme.css chował go do 991 px, a Google
   ocenia głównie wersję mobilną strony. */
#content #custom-text {
  display: block;
  float: none;
  clear: both;
  margin: 10px 0 0;
  padding: 24px 28px;
  border-radius: 14px;
  background: #f7f9f4;
  color: #555;
  letter-spacing: 0.2px;
}
#content #custom-text h2 {
  margin: 0 0 10px;
  color: #2e2e2e;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  text-transform: none;
}
#content #custom-text p {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.65;
}
#content #custom-text strong {
  color: #2e2e2e;
  font-weight: 600;
}
#content #custom-text ul {
  margin: 4px 0 0;
  padding: 0;
  list-style: none !important; /* w treści z panelu: style="list-style-type:disc" */
}
#content #custom-text li {
  position: relative;
  margin: 0 0 6px;
  padding-left: 28px;
  font-size: 15px;
  line-height: 1.5;
}
#content #custom-text li::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e3f0d3 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236dac23' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") no-repeat center / 13px 13px;
}
/* zwinięty: kilka linijek i łagodne wygaszenie */
#content #custom-text.tm-readmore {
  position: relative;
  max-height: 230px;
  overflow: hidden;
}
#content #custom-text.tm-readmore::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 80px;
  background: linear-gradient(rgba(247, 249, 244, 0), #f7f9f4 85%);
  pointer-events: none;
}
#content #custom-text.tm-readmore.is-open {
  max-height: none;
}
#content #custom-text.tm-readmore.is-open::after {
  display: none;
}
.tm-readmore-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 10px auto 40px;
  padding: 8px 20px;
  border: 1px solid #dcdcdc;
  border-radius: 20px;
  background: #fff;
  color: #2e2e2e;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.tm-readmore-btn::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}
.tm-readmore-btn[aria-expanded="true"]::after {
  margin-top: 3px;
  transform: rotate(-135deg);
}
.tm-readmore-btn:hover,
.tm-readmore-btn:focus-visible {
  border-color: #6dac23;
  color: #4d8a14;
}
.tm-readmore-btn:focus-visible {
  outline: 2px solid #6dac23;
  outline-offset: 2px;
}
@media (max-width: 767px) {
  #content #custom-text {
    padding: 18px;
  }
  #content #custom-text h2 {
    font-size: 18px;
  }
  #content #custom-text p,
  #content #custom-text li {
    font-size: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tm-readmore-btn {
    transition: none;
  }
}

/* ===== Newsletter (ps_emailsubscription) ===== */
/* stała wysokość z theme.css (.footer-before .container: 90 px) ucinała klauzulę – na każdym ekranie */
.footer-before .block_newsletter > .container {
  height: auto;
}
/* klauzula informacyjna pod polem (RODO) – na każdym ekranie */
.block_newsletter .news .tm-nl-conditions {
  margin: 0;
  padding: 8px 0 0;
  color: #fff;
  font-size: 12px;
  line-height: 1.45;
  opacity: 0.92;
}
.block_newsletter .news .tm-nl-conditions a {
  color: #fff;
  text-decoration: underline;
}
/* komputer i tablet: jeden kolor paska, pole i przycisk obok siebie */
@media (min-width: 768px) {
  .footer-before .block_newsletter > .container {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start; /* tytuł równo z polem e-mail, klauzula pod polem */
    justify-content: space-between;
    gap: 16px 32px;
    height: auto; /* theme.css: .footer-before .container { height: 90px } – ucinało klauzulę */
    padding-top: 22px;
    padding-bottom: 18px;
  }
  .block_newsletter > .container::before,
  .block_newsletter > .container::after {
    display: none;
  }
  .block_newsletter .title {
    float: none;
    margin: 8px 0 0; /* (46 px pola − 30 px linii) / 2 */
    padding: 0 0 0 76px;
    font-size: 22px;
    line-height: 30px;
    text-transform: none;
  }
  .block_newsletter .title::before {
    top: 0;
  }
  .block_newsletter .col-md-7.col-xs-12 {
    float: none;
    flex: 0 1 600px;
    width: auto;
    min-width: 0;
  }
  .block_newsletter form .col-xs-12 {
    display: flex;
    align-items: center;
    gap: 10px;
    float: none;
    width: 100%;
    height: auto;
    padding: 0;
    overflow: visible;
    background: transparent;
  }
  .block_newsletter form .col-xs-12 .clearfix {
    display: none;
  }
  .block_newsletter form .input-wrapper {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
  }
  .block_newsletter form input[type=email] {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    height: 46px;
    padding: 0 20px;
    border-radius: 23px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    font-size: 15px;
  }
  .block_newsletter form input[type=email]:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.65);
  }
  .block_newsletter form input.btn {
    float: none;
    flex: 0 0 auto;
    height: 46px;
    margin: 0;
    padding: 0 26px;
    border: 0;
    border-radius: 23px;
    background: #3f7a10;
    font-size: 14px;
    letter-spacing: 0.4px;
    transition: background-color 0.15s ease;
  }
  .block_newsletter form input.btn:hover,
  .block_newsletter form input.btn:focus-visible {
    background: #2f5e0b;
  }
  .block_newsletter form input.btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
  }
  .block_newsletter p.alert {
    position: static;
    margin: 8px 0 0;
    border-radius: 8px;
  }
}

/* ===== Dolny pasek stopki: „© rok TAGAT” po lewej, logo (tm_paymentcmsblock) po prawej ===== */
.row.footer-after .forecopyright {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 20px;
  padding: 12px 15px;
  text-align: left;
}
.row.footer-after .forecopyright::before,
.row.footer-after .forecopyright::after {
  display: none;
}
.row.footer-after .forecopyright .tm-copyright {
  margin: 0;
  color: #666;
  font-size: 13px;
  letter-spacing: 0.2px;
}
.row.footer-after .forecopyright .copyright {
  float: none;
  padding: 0;
}
.row.footer-after .forecopyright .copyright:empty {
  display: none;
}
.row.footer-after .forecopyright #tmpaymentcmsblock {
  float: none;
  margin: 0 0 0 auto;
}
@media (max-width: 543px) {
  .row.footer-after .forecopyright {
    justify-content: center;
    text-align: center;
  }
  .row.footer-after .forecopyright #tmpaymentcmsblock {
    margin: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .loadmore .gridcount.btn,
  .brands .products .product_list li.item,
  .brands .products .product_list li.product_item,
  .block_newsletter form input.btn {
    transition: none;
  }
}

/* ===== Subkategorie na stronie kategorii (templates/catalog/listing/category.tpl) =====
   Kafelki w siatce: cały kafelek jest linkiem, miniatura albo kółko z pierwszą literą, strzałka.
   Selektory z #subcategories – mocniejsze niż theme.css (#subcategories ul / ul li). */
#subcategories.tm-subcats {
  float: none;
  clear: both;
  width: 100%;
  margin: 0 0 24px;
  padding: 0;
  border-top: 0;
}
#subcategories.tm-subcats .subcategory-heading {
  margin: 0 0 12px;
  color: #2e2e2e;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}
#subcategories .tm-subcats__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
#subcategories .tm-subcats__list::before,
#subcategories .tm-subcats__list::after {
  display: none; /* clearfix jako elementy siatki */
}
#subcategories .tm-subcats__item {
  float: none;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  text-align: left;
}
#subcategories .tm-subcats__link {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  min-height: 60px;
  padding: 8px 14px 8px 8px;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  background: #fff;
  color: #2e2e2e;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}
#subcategories .tm-subcats__link:hover,
#subcategories .tm-subcats__link:focus-visible {
  border-color: #6dac23;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  color: #4d8a14;
}
#subcategories .tm-subcats__link:focus-visible {
  outline: 2px solid #6dac23;
  outline-offset: 2px;
}
#subcategories .tm-subcats__img,
#subcategories .tm-subcats__icon {
  display: flex;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  overflow: hidden;
}
#subcategories .tm-subcats__img {
  border-radius: 8px;
  background: #f7f7f7;
}
#subcategories .tm-subcats__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
#subcategories .tm-subcats__icon {
  border-radius: 50%;
  background: #eef6e4;
  color: #4d8a14;
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}
#subcategories .tm-subcats__name {
  display: -webkit-box;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}
#subcategories .tm-subcats__name::first-letter {
  text-transform: uppercase;
}
#subcategories .tm-subcats__arrow {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-top: 2px solid #b5b5b5;
  border-right: 2px solid #b5b5b5;
  transform: rotate(45deg);
  transition: border-color 0.15s ease;
}
#subcategories .tm-subcats__link:hover .tm-subcats__arrow,
#subcategories .tm-subcats__link:focus-visible .tm-subcats__arrow {
  border-color: #6dac23;
}
@media (max-width: 543px) {
  #subcategories .tm-subcats__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  #subcategories .tm-subcats__link {
    gap: 8px;
    min-height: 52px;
    padding: 6px 10px 6px 6px;
  }
  #subcategories .tm-subcats__img,
  #subcategories .tm-subcats__icon {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
  }
  #subcategories .tm-subcats__icon {
    font-size: 15px;
  }
  #subcategories .tm-subcats__name {
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #subcategories .tm-subcats__link,
  #subcategories .tm-subcats__arrow {
    transition: none;
  }
}

/* ===== Lista produktów na komputerze (≥ 992 px): pasek nad listą i filtry w lewej kolumnie =====
   Pasek: templates/catalog/_partials/products-top.tpl + sort-orders.tpl. Filtry: moduł ps_facetedsearch
   (HTML z modułu, theme.css: #search_filters …). Sam wygląd – bez zmian w działaniu. */
@media (min-width: 992px) {
  /* --- pasek: widok, liczba produktów, sortowanie --- */
  #js-product-list-top.products-selection {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 20px;
    padding: 8px 10px 8px 12px;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    background: #fff;
  }
  #js-product-list-top.products-selection::before,
  #js-product-list-top.products-selection::after,
  #js-product-list-top .products-selection_sort .row::before,
  #js-product-list-top .products-selection_sort .row::after {
    display: none;
  }
  #js-product-list-top .total-products {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: 14px;
    float: none;
    width: auto;
    max-width: none;
    padding: 0;
  }
  #js-product-list-top .total-products p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.3;
    letter-spacing: 0.2px;
  }
  #js-product-list-top .display {
    display: flex;
    gap: 4px;
    float: none;
    margin: 0;
  }
  #js-product-list-top .display li {
    float: none;
    padding: 3px;
    border-radius: 8px;
    transition: background-color 0.15s ease;
  }
  #js-product-list-top .display li:hover,
  #js-product-list-top .display li.selected {
    background: #eef6e4;
  }
  /* ikony siatka / lista: własne SVG (maska) zamiast sprite.png motywu; kolor z background-color */
  #js-product-list-top .display li {
    padding: 0;
  }
  #js-product-list-top .display li#grid a,
  #js-product-list-top .display li#list a {
    display: block;
    float: none;
    width: 36px;
    height: 36px;
    background: #9a9a9a;
    -webkit-mask: no-repeat center / 20px 20px;
    mask: no-repeat center / 20px 20px;
    transition: background-color 0.15s ease;
  }
  #js-product-list-top .display li#grid a {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='3' width='8' height='8' rx='2'/%3E%3Crect x='13' y='3' width='8' height='8' rx='2'/%3E%3Crect x='3' y='13' width='8' height='8' rx='2'/%3E%3Crect x='13' y='13' width='8' height='8' rx='2'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='3' width='8' height='8' rx='2'/%3E%3Crect x='13' y='3' width='8' height='8' rx='2'/%3E%3Crect x='3' y='13' width='8' height='8' rx='2'/%3E%3Crect x='13' y='13' width='8' height='8' rx='2'/%3E%3C/svg%3E");
  }
  #js-product-list-top .display li#list a {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='4' width='4' height='4' rx='1'/%3E%3Crect x='9' y='5' width='12' height='2' rx='1'/%3E%3Crect x='3' y='10' width='4' height='4' rx='1'/%3E%3Crect x='9' y='11' width='12' height='2' rx='1'/%3E%3Crect x='3' y='16' width='4' height='4' rx='1'/%3E%3Crect x='9' y='17' width='12' height='2' rx='1'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='3' y='4' width='4' height='4' rx='1'/%3E%3Crect x='9' y='5' width='12' height='2' rx='1'/%3E%3Crect x='3' y='10' width='4' height='4' rx='1'/%3E%3Crect x='9' y='11' width='12' height='2' rx='1'/%3E%3Crect x='3' y='16' width='4' height='4' rx='1'/%3E%3Crect x='9' y='17' width='12' height='2' rx='1'/%3E%3C/svg%3E");
  }
  #js-product-list-top .display li:hover a,
  #js-product-list-top .display li.selected a {
    background-color: #6dac23;
  }
  #js-product-list-top .products-selection_sort {
    flex: 0 0 auto;
    float: none;
    width: auto;
    max-width: none;
    padding: 0;
  }
  #js-product-list-top .products-selection_sort .row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
  }
  #js-product-list-top .products-selection_sort .sort-by {
    float: none;
    width: auto;
    max-width: none;
    padding: 0;
    color: #666;
    font-size: 14px;
  }
  #js-product-list-top .products-sort-order {
    float: none;
    width: auto;
    min-width: 210px;
    max-width: none;
    padding: 0;
  }
  #js-product-list-top .products-sort-order .select-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0;
    padding: 8px 12px 8px 16px;
    border: 1px solid #dcdcdc;
    border-radius: 20px;
    background: #fff;
    color: #2e2e2e;
    font-size: 14px;
    line-height: 20px;
    transition: border-color 0.15s ease;
  }
  #js-product-list-top .products-sort-order .select-title:hover,
  #js-product-list-top .products-sort-order.open .select-title {
    border-color: #6dac23;
  }
  #js-product-list-top .products-sort-order .select-title .material-icons {
    float: none;
    color: #6dac23;
    font-size: 22px;
    line-height: 1;
  }
  #js-product-list-top .products-sort-order .dropdown-menu {
    left: auto;
    right: 0;
    width: max-content; /* theme.css: width 100% (szerokość pola) – długie pozycje wychodziły poza ramkę */
    min-width: 100%;
    max-width: min(360px, 90vw);
    margin-top: 6px;
    padding: 6px;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
  }
  #js-product-list-top .products-sort-order .select-list {
    padding: 7px 12px;
    border-radius: 8px;
    color: #2e2e2e;
    font-size: 14px;
    line-height: 1.35;
    white-space: normal; /* bardzo długa nazwa – druga linijka zamiast wychodzenia poza kartę */
  }
  #js-product-list-top .products-sort-order .select-list:hover,
  #js-product-list-top .products-sort-order .select-list:focus-visible {
    background: #eef6e4;
    color: #4d8a14;
  }
  #js-product-list-top .products-sort-order .select-list.current {
    color: #4d8a14;
    font-weight: 600;
  }

  /* --- aktywne filtry nad listą jako „chipsy” --- */
  #js-active-search-filters.active_filters {
    margin: 0 0 16px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f7f9f4;
  }
  #js-active-search-filters .active-filter-title {
    display: inline-block;
    margin: 0 8px 0 0;
    color: #666;
    font-size: 13px;
  }
  #js-active-search-filters ul {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
  }
  #js-active-search-filters .filter-block {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 4px 6px 4px 12px;
    border: 1px solid #d6e9bf;
    border-radius: 16px;
    background: #fff;
    color: #2e2e2e;
    font-size: 13px;
    box-shadow: none;
  }
  #js-active-search-filters .filter-block .close {
    float: none;
    margin: 0;
    color: #8a8a8a;
    font-size: 16px;
    opacity: 1;
  }
  #js-active-search-filters .filter-block .close:hover {
    color: #b3261e;
  }

  /* --- filtry w lewej kolumnie --- */
  #left-column #search_filters_wrapper {
    margin-top: 20px;
    padding: 16px 16px 6px;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    background: #fff;
  }
  #left-column #search_filters_wrapper #search_filters {
    margin: 0;
    padding: 0;
    border: 0;
  }
  #left-column #search_filters > p.h6 {
    position: static;
    margin: 0 0 6px;
    padding: 0;
    border: 0;
    background: none;
    color: #2e2e2e;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.2px;
    line-height: 1.3;
    text-transform: none;
  }
  #left-column #search_filters > p.h6::before,
  #left-column #search_filters > p.h6::after {
    display: none; /* zielona kreska motywu w stałym miejscu (top: 52px) */
  }
  #left-column #search_filters .clear-all-wrapper {
    margin: 0 0 6px;
  }
  #left-column #search_filters .js-search-filters-clear-all {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: auto;
    padding: 4px 10px 4px 6px;
    border: 1px solid #eaeaea;
    border-radius: 14px;
    color: #666;
    font-size: 12px;
    text-transform: none;
  }
  #left-column #search_filters .js-search-filters-clear-all:hover {
    border-color: #6dac23;
    color: #4d8a14;
  }
  #left-column #search_filters .facet {
    margin: 0;
    padding: 12px 0;
    border-top: 1px solid #f0f0f0;
  }
  #left-column #search_filters .facet:first-of-type {
    border-top: 0;
  }
  #left-column #search_filters .facet .facet-title,
  #left-column .block #search_filters .h6.facet-title {
    margin: 0 0 6px;
    color: #2e2e2e;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2px;
    line-height: 1.3;
    text-transform: none;
  }
  /* długie listy (np. Marka): przewijanie w ramce zamiast bardzo długiej kolumny */
  #left-column #search_filters .facet ul:not(.faceted-slider) {
    max-height: 290px;
    margin: 0 -6px;
    padding: 0 4px 0 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cfcfcf transparent;
  }
  #left-column #search_filters .facet li {
    display: block;
    width: auto;
    margin: 0;
    line-height: normal;
  }
  #left-column #search_filters .facet .facet-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 5px 6px;
    border-radius: 8px;
    line-height: 1.35;
    cursor: pointer;
    transition: background-color 0.15s ease;
  }
  #left-column #search_filters .facet .facet-label:hover {
    background: #f6faf0;
  }
  #left-column #search_filters .facet .facet-label .custom-checkbox,
  #left-column #search_filters .facet .facet-label .custom-radio {
    top: 0 !important; /* theme.css: top: -9px !important */
    flex: 0 0 18px;
    margin: 0;
  }
  #left-column #search_filters .facet .custom-checkbox input[type="checkbox"] + span {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 18px;
    height: 18px;
    margin: 0;
    border: 1.5px solid #c4c4c4;
    border-radius: 5px;
    background: #fff;
    transition: background-color 0.15s ease, border-color 0.15s ease;
  }
  #left-column #search_filters .facet .facet-label:hover .custom-checkbox input[type="checkbox"] + span {
    border-color: #6dac23;
  }
  #left-column #search_filters .facet .custom-checkbox input[type="checkbox"]:checked + span {
    border-color: #6dac23;
    background: #6dac23;
  }
  #left-column #search_filters .facet .custom-checkbox input[type="checkbox"]:focus-visible + span {
    outline: 2px solid #6dac23;
    outline-offset: 2px;
  }
  #left-column #search_filters .facet .custom-checkbox input[type="checkbox"] + span .checkbox-checked {
    margin: 0;
    color: #fff;
    font-size: 14px;
    line-height: 1;
  }
  #left-column #search_filters .facet .facet-label a {
    display: flex;
    flex: 1 1 auto;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    margin: 0;
    padding: 0;
    color: #2e2e2e;
    font-size: 14px;
    letter-spacing: 0.2px;
    line-height: 1.35;
    text-decoration: none;
  }
  #left-column #search_filters .facet .facet-label.active a {
    color: #4d8a14;
    font-weight: 600;
  }
  #left-column #search_filters .facet .magnitude {
    float: none;
    flex: 0 0 auto;
    color: #9a9a9a;
    font-size: 12px;
    font-weight: 400;
  }
  /* suwak ceny (jQuery UI) */
  #left-column #search_filters .facet .faceted-slider li p {
    margin: 0 0 4px;
    color: #2e2e2e;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
  }
  #left-column #search_filters .ui-slider-horizontal {
    height: 4px;
    margin: 14px 9px 10px;
    border: 0;
    border-radius: 4px;
    background: #e5e5e5;
  }
  #left-column #search_filters .ui-slider-horizontal .ui-slider-range {
    border-radius: 4px;
    background: #6dac23;
  }
  #left-column #search_filters .ui-slider-horizontal .ui-slider-handle {
    top: -7px;
    width: 18px;
    height: 18px;
    margin-left: -9px;
    border: 2px solid #6dac23;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    cursor: grab;
  }
  #left-column #search_filters .ui-slider-horizontal .ui-slider-handle:focus-visible {
    outline: 2px solid #6dac23;
    outline-offset: 2px;
  }
}
@media (min-width: 992px) and (prefers-reduced-motion: reduce) {
  #js-product-list-top .display li,
  #js-product-list-top .products-sort-order .select-title,
  #left-column #search_filters .facet .facet-label,
  #left-column #search_filters .facet .custom-checkbox input[type="checkbox"] + span {
    transition: none;
  }
}

/* listy (wszystkie szerokości): nazwa zawsze na 3 linijki (dłuższa ucięta „…”), żeby cena
   i przyciski stały na tej samej wysokości we wszystkich kartach rzędu */
#wrapper .products .product-miniature .product-title {
  display: -webkit-box;
  height: 60px; /* 3 × line-height 20 px linku nazwy (theme.css) */
  min-height: 0;
  overflow: hidden;
  line-height: 20px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}
#wrapper .products .product-miniature .product-price-and-shipping {
  min-height: 1.6em;
}

/* komputer (≥ 768 px): przyciski na liście widoczne cały czas, pod ceną (telefon – sekcja ≤ 767 px).
   theme.css chowa je (opacity: 0, position: absolute, translateX(-150px)) i wysuwa po najechaniu,
   a cenę wtedy ukrywa – tu cena zostaje, a przyciski stoją na stałe w rzędzie pod nią. */
@media (min-width: 768px) {
  #wrapper .products .product_list li .product-miniature .product-actions-main,
  #wrapper .products .product_list li .product-miniature .product-actions,
  #wrapper .products .product_list li:hover .product-miniature .product-actions-main,
  #wrapper .products .product_list li:hover .product-miniature .product-actions {
    display: flex;
    position: static;
    flex-wrap: nowrap; /* „Do koszyka” i podgląd zawsze obok siebie */
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin: 10px 0 0;
    opacity: 1;
    transform: none;
    transition: none;
  }
  #wrapper .products .product_list li .product-miniature .product-actions-main form {
    display: inline-flex;
    flex: 0 1 auto;
    align-items: center;
    min-width: 0;
    margin: 0;
  }
  /* węższy przycisk – mieści się obok podglądu w wąskiej karcie (ok. 170 px) */
  #wrapper .products .product_list li .product-miniature .product-actions-main .add-to-cart {
    min-width: 0;
    max-width: 100%;
    padding: 0 12px 0 34px;
    background-position: 10px center;
    background-size: 18px;
  }
  #wrapper .products .product_list li .product-miniature .product-actions-main .quick-view {
    flex: 0 0 40px;
    margin: 0;
  }
  #wrapper .products .product_list li:hover .product-price-and-shipping {
    opacity: 1; /* theme.css chowa cenę po najechaniu, bo w jej miejscu wysuwał przyciski */
  }
}

/* ===== Strona produktu (i szybki podgląd): tytuł, cena, opis, warianty, udostępnianie =====
   templates/catalog/product.tpl (.pro_detail), product-prices.tpl, product-variants.tpl,
   modules/ps_sharebuttons. Theme.css: etykieta wariantu float: left na 100 px (napis się łamał). */
#product .pro_detail .productpage_title,
.quickview h1.h1 {
  margin: 0 0 14px;
  color: #2e2e2e;
  font-size: clamp(19px, 1.9vw, 25px);
  font-weight: 600;
  letter-spacing: 0.2px;
  line-height: 1.25;
}
#product .pro_detail .product-prices,
.quickview .product-prices {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin: 4px 0 14px;
}
#product .pro_detail .product-prices > div,
.quickview .product-prices > div {
  margin: 0;
}
#product .pro_detail .product-prices .current-price,
.quickview .product-prices .current-price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
#product .pro_detail .product-prices .current-price-value,
.quickview .product-prices .current-price-value {
  color: #2e2e2e;
  font-size: clamp(21px, 2.1vw, 25px);
  font-weight: 700;
  letter-spacing: 0.2px;
}
#product .pro_detail .product-prices .product-discount .regular-price,
.quickview .product-prices .product-discount .regular-price {
  color: #9a9a9a;
  font-size: 16px;
}
#product .pro_detail .product-prices .discount,
.quickview .product-prices .discount {
  padding: 3px 10px;
  border-radius: 12px;
  background: #fdecea;
  color: #b3261e;
  font-size: 13px;
  font-weight: 600;
}
#product .pro_detail .product-prices .tax-shipping-delivery-label,
.quickview .product-prices .tax-shipping-delivery-label {
  color: #8a8a8a;
  font-size: 13px;
  font-weight: 400;
}

/* krótki opis */
#product .pro_detail .product-information > [id^="product-description-short"] {
  margin: 0 0 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid #f0f0f0;
  color: #555;
  font-size: 15px;
  line-height: 1.6;
}
#product .pro_detail .product-information > [id^="product-description-short"] p {
  margin: 0 0 6px;
}
#product .pro_detail .product-information > [id^="product-description-short"] p:last-child {
  margin-bottom: 0;
}

/* warianty: etykieta nad opcjami, opcje jako pigułki */
#product .product-actions .product-variants > .product-variants-item,
.quickview .product-variants > .product-variants-item {
  margin: 0 0 18px;
}
#product .product-actions .product-variants > .product-variants-item > .control-label,
.quickview .product-variants > .product-variants-item > .control-label {
  display: block;
  float: none;
  width: auto;
  margin: 0 0 8px;
  color: #2e2e2e;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}
#product .product-actions .product-variants > .product-variants-item ul,
.quickview .product-variants > .product-variants-item ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}
#product .product-actions .product-variants > .product-variants-item ul li,
.quickview .product-variants > .product-variants-item ul li {
  float: none;
  margin: 0;
  line-height: normal;
}
#product .product-actions .product-variants .radio-label,
.quickview .product-variants .radio-label {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 16px;
  border: 1.5px solid #dcdcdc;
  border-radius: 20px;
  background: #fff;
  box-shadow: none;
  color: #2e2e2e;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
#product .product-actions .product-variants .input-radio:hover + .radio-label,
.quickview .product-variants .input-radio:hover + .radio-label {
  border: 1.5px solid #6dac23;
}
#product .product-actions .product-variants .input-radio:checked + .radio-label,
.quickview .product-variants .input-radio:checked + .radio-label {
  border: 1.5px solid #6dac23;
  background: #eef6e4;
  color: #4d8a14;
  font-weight: 600;
}
#product .product-actions .product-variants .input-radio:focus-visible + .radio-label,
.quickview .product-variants .input-radio:focus-visible + .radio-label {
  outline: 2px solid #6dac23;
  outline-offset: 2px;
}
#product .product-actions .product-variants select.form-control-select,
.quickview .product-variants select.form-control-select {
  height: 42px;
  min-width: 160px;
  padding: 0 36px 0 14px;
  border: 1.5px solid #dcdcdc;
  border-radius: 10px;
  font-size: 14px;
}
#product .product-actions .product-variants select.form-control-select:focus,
.quickview .product-variants select.form-control-select:focus {
  border-color: #6dac23;
  outline: none;
}
#product .product-actions .product-variants > .product-variants-item .color,
.quickview .product-variants > .product-variants-item .color {
  width: 28px;
  height: 28px;
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #dcdcdc;
}
#product .product-actions .product-variants > .product-variants-item .input-color:checked + span,
.quickview .product-variants > .product-variants-item .input-color:checked + span {
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #6dac23;
}

/* udostępnianie: podpis i mniejsze kółka */
#product .social-sharing {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}
#product .social-sharing > span {
  display: inline;
  color: #8a8a8a;
  font-size: 13px;
}
#product .social-sharing ul {
  display: flex;
  gap: 6px;
}
#product .social-sharing li {
  float: none;
  width: 36px;
  height: 36px;
  margin: 0;
  border-color: #eaeaea;
  background-position: center;
  background-size: 18px 18px;
  transition: background-color 0.15s ease;
}

/* strona produktu: bez pola ilości i napisu „Ilość” – stepper zamiast przycisku po dodaniu */
.product-add-to-cart.tm-stepper-page > .control-label,
.product-add-to-cart.tm-stepper-page .product-quantity .qty {
  display: none !important;
}
#product .product-add-to-cart.tm-stepper-page .product-quantity .add .tm-stepper,
.quickview .product-add-to-cart.tm-stepper-page .product-quantity .add .tm-stepper {
  height: 44px;
}
#product .product-add-to-cart.tm-stepper-page .tm-stepper__btn,
.quickview .product-add-to-cart.tm-stepper-page .tm-stepper__btn {
  width: 44px;
  font-size: 22px;
}
#product .product-add-to-cart.tm-stepper-page .tm-stepper__qty,
.quickview .product-add-to-cart.tm-stepper-page .tm-stepper__qty {
  min-width: 48px;
  font-size: 17px;
}
.product-add-to-cart.tm-stepper-page .product-quantity .add .tm-incart {
  flex: 1 1 100%;
  margin: 0;
  font-size: 13px;
}

/* komputer: mniejsze „−” / „+” (na telefonie zostają większe pola dotyku) */
@media (min-width: 768px) {
  #product .product-add-to-cart .product-quantity .bootstrap-touchspin .input-group-btn-vertical > .btn {
    width: 36px;
    height: 40px;
    font-size: 17px;
  }
  #product .product-add-to-cart .product-quantity .bootstrap-touchspin #quantity_wanted {
    width: 44px;
    height: 40px;
    font-size: 15px;
  }
}
#product .product-add-to-cart .product-quantity .bootstrap-touchspin .input-group-btn-vertical > .btn:hover,
#product .product-add-to-cart .product-quantity .bootstrap-touchspin .input-group-btn-vertical > .btn:focus-visible {
  background: #eef6e4;
  color: #6dac23;
}

/* „Kontynuuj zakupy” pod listą */
#cart .cart-grid-body > a.label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  margin: 14px 0;
  padding: 8px 18px 8px 10px;
  border: 1px solid #eaeaea;
  border-radius: 25px;
  background: #fff;
  color: #2e2e2e;
  font-size: 14px;
}
#cart .cart-grid-body > a.label:hover {
  border-color: #6dac23;
  color: #6dac23;
}

/* --- Podsumowanie (koszyk i prawa kolumna zamówienia) --- */
#cart .cart-summary .card-block,
#checkout #js-checkout-summary .card-block {
  padding: 14px 20px;
}
.cart-summary-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 6px;
}
.cart-summary-line::after,
.cart-summary-line::before {
  display: none;
}
.cart-summary-line .label,
.cart-summary-line .value {
  float: none;
  color: #555;
  font-size: 14px;
  font-weight: 400;
}
.cart-summary-line .value {
  color: #2e2e2e;
  text-align: right;
}
.cart-summary-line.cart-total {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid #eaeaea;
}
.cart-summary-line.cart-total .label,
.cart-summary-line.cart-total .value {
  color: #2e2e2e;
  font-size: 17px;
  font-weight: 700;
}
#cart .cart-summary hr.separator,
#checkout #js-checkout-summary hr.separator {
  margin: 0;
  border-color: #eaeaea;
}
/* kod rabatowy */
.block-promo .promo-code-button > a,
.block-promo .collapse-button {
  color: #6dac23;
  font-size: 14px;
  font-weight: 600;
}
.block-promo .promo-code form {
  display: flex;
  gap: 8px;
}
.block-promo .promo-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #dcdcdc;
  border-radius: 10px;
}
.block-promo .promo-code .btn {
  min-height: 44px;
  border-radius: 10px;
}
/* „Przejdź do realizacji zamówienia” */
#cart .cart-detailed-actions {
  padding: 4px 20px 20px;
}
#cart .cart-detailed-actions .btn-primary,
#checkout .cart-detailed-actions .btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 25px;
  background: #6dac23;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-transform: none;
}
#cart .cart-detailed-actions .btn-primary:hover {
  background: #5a9419;
  color: #fff;
}
/* zamówienie, prawa kolumna: „pokaż szczegóły” i lista produktów */
#checkout #js-checkout-summary .cart-summary-products p {
  margin: 0 0 6px;
}
#checkout #js-checkout-summary .cart-summary-products a {
  color: #6dac23;
  font-weight: 600;
}
#checkout #js-checkout-summary .media-list .media {
  display: flex;
  gap: 10px;
  margin: 0 0 10px;
}
#checkout #js-checkout-summary .media-list .media-left img {
  width: 48px;
  height: auto;
  border: 1px solid #eaeaea;
  border-radius: 8px;
}

/* --- Kroki zamówienia --- */
body#checkout #content {
  padding-top: 6px; /* pierwszy krok nie przy samej krawędzi nagłówka */
}
/* telefon i tablet: treść zamówienia pod pływającymi okruszkami (#breadcrumb_wrapper, float).
   Bez clear nagłówek pierwszego kroku (flex) omijał ten float i spadał niżej – pusty pas
   u góry karty „Dane osobowe”. Na komputerze kolumny zostają bez zmian. */
@media (max-width: 991px) {
  body#checkout #content-wrapper {
    clear: both;
  }
}
body#checkout section.checkout-step {
  margin: 0 0 14px;
  padding: 18px 20px;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  background: #fff;
  scroll-margin-top: 90px; /* przewinięcie do kroku – nie pod przyklejony nagłówek */
}
body#checkout section.checkout-step.-current {
  border-color: #cfe3b7;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}
body#checkout section.checkout-step .step-title {
  display: flex;
  align-items: center;
  flex-wrap: nowrap; /* tytuł zawsze obok numeru; długi tytuł łamie się w swojej kolumnie */
  gap: 12px;
  float: none;
  width: 100%; /* pełna szerokość – „Edytuj” (margin-left: auto) przy prawej krawędzi */
  min-height: 36px;
  margin: 0;
  color: #2e2e2e;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
/* kształt numeru i znacznika ✓; to, który z nich widać, ustala theme.css (stan kroku) –
   tu display tylko w selektorach o tej samej lub mniejszej sile niż reguły motywu */
body#checkout section.checkout-step .step-number,
body#checkout section.checkout-step.-reachable.-complete h1 .done {
  display: inline-flex;
}
body#checkout section.checkout-step .step-number,
body#checkout section.checkout-step .done {
  flex: 0 0 32px;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  background: #f2f2f2;
  color: #8a8a8a;
  font-size: 15px;
  font-weight: 700;
  line-height: 32px; /* wyśrodkowanie także przy display: inline-block z theme.css */
  text-align: center;
}
body#checkout section.checkout-step.-current .step-number {
  background: #6dac23;
  color: #fff;
}
body#checkout section.checkout-step .done {
  background: #f4f9ee;
  color: #6dac23;
  font-size: 20px;
}
body#checkout section.checkout-step.-reachable.-complete h1 .step-edit {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  float: none;
  flex: 0 0 auto;
  margin: 0 0 0 auto !important; /* theme.css (≤ 767 px): margin-left 1.25rem */
  padding: 6px 14px;
  border: 1px solid #dcdcdc;
  border-radius: 20px;
  color: #2e2e2e !important;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
body#checkout section.checkout-step.-reachable.-complete h1 .step-edit:hover {
  border-color: #6dac23;
  color: #6dac23 !important;
}
body#checkout section.checkout-step.-current .content,
body#checkout section.checkout-step.-current.-reachable.-complete .content {
  margin-top: 16px;
  padding: 0 0 0 44px; /* wyrównanie z tytułem kroku (kółko 32 px + odstęp) */
}
body#checkout section.checkout-step .continue,
body#checkout #payment-confirmation .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  min-height: 48px;
  padding: 10px 28px;
  border: 0;
  border-radius: 25px;
  background: #6dac23;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-transform: none;
}
body#checkout section.checkout-step .continue:hover,
body#checkout #payment-confirmation .btn:hover {
  background: #5a9419;
  color: #fff;
}
body#checkout #payment-confirmation .btn.disabled,
body#checkout #payment-confirmation .btn:disabled {
  background: #cfcfcf;
  color: #fff;
}
/* logowanie / zamówienie jako gość: zakładki */
body#checkout .nav-inline .nav-link,
body#checkout #checkout-personal-information-step .nav .nav-link {
  border-radius: 20px;
  font-weight: 600;
}
body#checkout #checkout-personal-information-step .nav .nav-link.active {
  background: #f4f9ee;
  color: #6dac23;
}

/* --- Adresy w zamówieniu: karty z zaznaczeniem --- */
body#checkout .address-selector {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
  gap: 12px;
}
body#checkout section.checkout-step .address-item .address::before {
  display: none;
}
body#checkout section.checkout-step .address-item {
  flex: none;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  background: #fff;
}
body#checkout section.checkout-step .address-item.selected {
  border-color: #6dac23;
  box-shadow: 0 0 0 1px #6dac23;
  background: #fbfdf8;
}
body#checkout section.checkout-step .address-item header {
  padding: 14px 16px 8px;
}
body#checkout section.checkout-step .address-item .address-alias {
  font-size: 15px;
  font-weight: 600;
}
/* .address to też klasa bloku kontaktu w stopce – theme.css (≤ 991 px) daje jej float, width: 100 %,
   wcięcie i pinezkę (::before), przez co karta wychodziła poza ekran */
body#checkout section.checkout-step .address-item .address {
  position: static;
  float: none;
  width: auto;
  margin: 6px 0 0 28px;
  padding: 0;
  color: #555;
  font-size: 14px;
  line-height: 1.55;
}
body#checkout section.checkout-step .address-item .address-footer {
  display: flex;
  gap: 14px;
  margin: 0;
  padding: 10px 16px;
  border-top: 1px solid #eaeaea;
}
body#checkout section.checkout-step .address-item .address-footer a {
  font-size: 13px;
}
body#checkout section.checkout-step .add-address a {
  color: #6dac23;
  font-weight: 600;
}

/* --- Płatności: każda opcja jako karta --- */
body#checkout .payment-options .payment-option {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  padding: 14px 16px;
  border: 1px solid #eaeaea;
  border-radius: 12px;
  background: #fff;
}
body#checkout .payment-options .payment-option:has(input:checked) {
  border-color: #6dac23;
  box-shadow: 0 0 0 1px #6dac23;
  background: #fbfdf8;
}
body#checkout .payment-options .payment-option label {
  margin: 0;
  cursor: pointer;
}
body#checkout .payment-options .additional-information {
  margin: -4px 0 12px;
  padding: 12px 16px;
  border-radius: 10px;
  background: #f9faf7;
  font-size: 14px;
}
body#checkout #conditions-to-approve {
  margin: 16px 0;
  padding: 12px 16px;
  border-radius: 10px;
  background: #f9faf7;
}

@media (max-width: 767px) {
  #cart .cart-overview {
    padding: 0 14px;
  }
  /* telefon: zdjęcie po lewej, obok nazwa i cena, pod nimi ilość, suma i kosz */
  #cart .product-line-grid {
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: start;
    gap: 10px 14px;
  }
  #cart .product-line-grid-left {
    grid-row: 1 / span 2;
  }
  #cart .product-line-grid-right {
    grid-column: 2;
  }
  #cart .product-line-grid-right > .row > [class*="col-"]:first-of-type {
    flex: 1 1 auto;
  }
  #cart .product-line-grid-right > .row > [class*="col-"] > .row {
    justify-content: space-between;
  }
  #cart .product-line-grid-right .price {
    min-width: 0;
  }
  #cart .cart-detailed-actions {
    padding: 4px 14px 16px;
  }
  body#checkout section.checkout-step {
    padding: 14px 14px;
  }
  body#checkout section.checkout-step.-current .content,
  body#checkout section.checkout-step.-current.-reachable.-complete .content {
    padding: 0;
  }
  body#checkout section.checkout-step .continue,
  body#checkout #payment-confirmation .btn {
    width: 100%;
  }
}

/* ===== Wyszukiwarka w treści strony (wszystkie ekrany): „Strona nie znaleziona” i „Brak produktów”
   (templates/errors/not-found.tpl, hook displaySearch → tmajaxsearch). Moduł przy ≤ 991 px
   przesuwa rozwijane pole nagłówka (transform: translate(-60%, 94%), szerokość 300 px) – w treści
   strony to samo przesunięcie wypychało pole poza ramkę. ===== */
#content-wrapper .page-not-found #tm_ajax_search {
  position: relative;
  float: none;
  width: 100%;
  margin: 20px 0 0;
  padding: 0;
  border: 1px solid #e6e6e6;
  border-radius: 25px;
}
#content-wrapper .page-not-found #tm_ajax_search .searchtoggle {
  position: static;
  width: 100%;
  padding: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}
#content-wrapper .page-not-found #tm_ajax_search #searchbox {
  display: flex;
  float: none;
  width: 100%;
}
#content-wrapper .page-not-found #tm_ajax_search #ajax_search {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  height: 44px;
  padding: 0 64px 0 18px;
  border: 0;
  border-radius: 25px;
  font-size: 16px; /* iOS bez powiększania strony */
}
#content-wrapper .page-not-found #tm_ajax_search #searchbox .button-search {
  top: 0;
  right: 0;
  width: 56px;
  height: 44px;
  min-height: 44px;
  padding: 0;
}
#content-wrapper .page-not-found #tm_ajax_search #tm_search_result {
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  width: auto;
  max-height: 60vh;
  overflow-y: auto;
}

/* ===== Tablety i telefony (≤ 991 px, układ z menu „hamburger”) ===== */
@media (max-width: 991px) {

  #_mobile_cart .blockcart-header .cart-products-count {
    right: -8px;
  }

  /* --- Nagłówek obejmuje swój pasek (float) – treść zaczyna się pod nim. Wcześniej treść wchodziła
     pod pasek, a theme.css przesuwał ją o 15% / 35% szerokości ekranu, co nie pasowało do wysokości
     nagłówka (np. zasłonięta górna ramka pierwszego kroku zamówienia). --- */
  #header {
    display: flow-root;
  }
  #wrapper,
  #product #wrapper {
    padding-top: 0;
  }
  /* przyklejony pasek: bez logo (przykleja się dopiero po przewinięciu logo – custom.js)
     i bez animacji wjazdu z góry */
  #header .header-nav.fixed .top-logo {
    display: none;
  }
  #header .header-nav.fixed {
    animation: none;
    -webkit-animation: none;
  }

  /* --- Strona główna: szare tło tylko za pierwszym sliderem (tm_imageslider, .flexslider).
     theme.css daje je całemu .slider_background na sztywno 540 px – tło wchodziło pod kolejny
     baner; background-attachment: fixed nie działa też poprawnie na iPhone. Tło jest teraz
     pseudo-elementem slidera na całą szerokość ekranu (z-index: 0 trzyma je za zdjęciami). --- */
  #index .slider_background {
    height: auto;
    background: none;
  }
  #index #content .flexslider {
    position: relative;
    z-index: 0;
    overflow: visible; /* flexslider.css: hidden – przycinałby tło; przycina teraz .slides */
  }
  #index #content .flexslider .slides {
    overflow: hidden;
  }
  #index #content .flexslider::before {
    content: "";
    position: absolute;
    top: 0;        /* wyżej nachodziło na pasek ikon nagłówka (rysowane po nagłówku) */
    bottom: -20px; /* do końca odstępu pod sliderem (flexslider.css: margin-bottom 20 px) */
    left: 50%;
    z-index: -1;
    width: 100vw;
    transform: translateX(-50%);
    background: url("../img/megnor/banner-bg.jpg") repeat 0 0;
    pointer-events: none;
  }

  /* --- Ikony nagłówka: większe pole dotyku (min. 44 × 44 px) --- */
  #header .header-nav .menu-icon .cat-title,
  #_mobile_user_info .tm_userinfotitle,
  #tm_ajax_search .search_button {
    position: relative;
  }
  #header .header-nav .menu-icon .cat-title::after,
  #_mobile_user_info .tm_userinfotitle::after,
  #tm_ajax_search .search_button::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    transform: translate(-50%, -50%);
  }

  /* --- Ikona menu kategorii: mały podpis „Produkty” pod ikoną --- */
  #header .header-nav .menu-icon .cat-title {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  #header .header-nav .menu-icon .cat-title .tm-menu-label {
    display: block;
    margin-top: -3px;
    color: #2e2e2e;
    font-size: 10px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0.2px;
    white-space: nowrap;
  }
  #header .header-nav .menu-icon .cat-title:hover .tm-menu-label {
    color: #6dac23;
  }

  /* --- Wyszukiwarka: rozwijany pasek na całą szerokość pod nagłówkiem --- */
  #header .header-nav #tm_ajax_search {
    position: static;
  }
  #header .header-nav #tm_ajax_search .searchtoggle {
    left: 0;
    right: 0;
    top: 100%;
    width: auto;
    padding: 10px 15px;
    background: #fff;
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.12);
    transform: none;
  }
  /* pole: pigułka z ramką, zielona obwódka po dotknięciu; lupa jako zielone kółko w polu
     (ikona z modułu tmajaxsearch – zmieniany tylko kolor tła) */
  #header .header-nav #tm_ajax_search #searchbox {
    position: relative;
    float: none;
  }
  #header .header-nav #ajax_search {
    width: 100%;
    height: 46px;
    padding: 0 56px 0 18px;
    border: 1px solid #dcdcdc;
    border-radius: 23px;
    background: #fff;
    color: #2e2e2e;
    font-size: 16px; /* < 16 px: iOS powiększa stronę po dotknięciu pola */
    letter-spacing: 0;
    box-shadow: none;
  }
  #header .header-nav #ajax_search::placeholder {
    color: #8a8a8a;
    font-size: 15px;
  }
  #header .header-nav #ajax_search:focus {
    border-color: #6dac23;
    box-shadow: 0 0 0 3px rgba(109, 172, 35, 0.18);
    outline: 0;
  }
  #header .header-nav #searchbox .button-search {
    top: 5px;
    right: 5px;
    width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0;
    border-radius: 50%;
    background-color: #6dac23;
    background-size: 18px;
  }
  #header .header-nav #searchbox .button-search:hover,
  #header .header-nav #searchbox .button-search:focus-visible {
    background-color: #5a9419;
  }
  #header .header-nav #tm_search_result {
    top: calc(100% + 64px);
    left: 15px;
    right: 15px;
    width: auto;
    max-height: 70vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  #header .header-nav #tm_search_result .tm_result_div .item .left-img {
    width: 56px;
  }
  #header .header-nav #tm_search_result .tm_result_div .right-info {
    width: calc(100% - 70px);
    white-space: normal;
  }

  /* --- Menu boczne (hamburger): przyciemnione tło, nagłówek z zamykaniem, duże pozycje
     z kreskami, strzałka rozwijania podkategorii jako osobny przycisk 48 × 48 px.
     Zamykanie dotknięciem tła i klawiszem Esc: mobile.js. --- */
  #mobile_top_menu_wrapper::before {
    content: "";
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9998;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }
  #mobile_top_menu_wrapper.slide::before {
    opacity: 1;
    visibility: visible;
  }
  #mobile_top_menu_wrapper .mobile-menu-inner {
    display: flex;
    flex-direction: column;
    width: 86vw;
    max-width: 340px;
    padding: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    box-shadow: 8px 0 24px rgba(0, 0, 0, 0.18);
  }
  /* nagłówek menu: przycisk zamykania po prawej */
  #mobile_top_menu_wrapper .mobile-menu-inner > .menu-icon {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    justify-content: flex-end;
    min-height: 56px;
    padding: 6px 8px;
    border-bottom: 1px solid #eaeaea;
    background: #fff;
  }
  #header .header-top #mobile_top_menu_wrapper .menu-icon .cat-title.title2 {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
  }
  #header .header-top #mobile_top_menu_wrapper .menu-icon .cat-title.title2:hover {
    background: #f2f2f2;
  }
  #mobile_top_menu_wrapper #_mobile_top_menu {
    float: none;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  #mobile_top_menu_wrapper #top-menu {
    margin: 0;
    padding: 0;
  }
  #mobile_top_menu_wrapper .top-menu li {
    position: relative;
    float: none;
    width: 100%;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #f0f0f0;
  }
  #mobile_top_menu_wrapper .top-menu a,
  #mobile_top_menu_wrapper .top-menu .sub-menu li > a {
    display: flex;
    flex-direction: row-reverse; /* strzałka (pierwsza w <a>) ląduje po prawej */
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-height: 48px;
    padding: 12px 16px;
    color: #2e2e2e;
    font-size: 15px;
    line-height: 1.3;
    text-transform: none;
  }
  #mobile_top_menu_wrapper .top-menu a[data-depth="0"] {
    padding: 12px 16px;
    font-weight: 600;
  }
  #mobile_top_menu_wrapper .top-menu a > .pull-xs-right {
    float: none;
    margin-left: auto;
  }
  #mobile_top_menu_wrapper .top-menu .navbar-toggler,
  #mobile_top_menu_wrapper .top-menu .collapse-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: -12px -16px -12px 0;
    padding: 0;
    border-left: 1px solid #f0f0f0;
    color: #8a8a8a;
  }
  #mobile_top_menu_wrapper .top-menu .collapse-icons .material-icons {
    font-size: 24px;
  }
  #mobile_top_menu_wrapper .top-menu .collapse-icons[aria-expanded="true"] {
    color: #6dac23;
  }
  /* podkategorie: jaśniejsze tło i wcięcie */
  #mobile_top_menu_wrapper .top-menu .sub-menu,
  #mobile_top_menu_wrapper .top-menu .collapse.in {
    background: #f9faf7;
  }
  #mobile_top_menu_wrapper .top-menu .sub-menu ul[data-depth="0"] > li,
  #mobile_top_menu_wrapper .top-menu .sub-menu ul[data-depth="1"] > li {
    margin: 0;
    border-bottom: 1px solid #eef0ea;
  }
  #mobile_top_menu_wrapper .top-menu .sub-menu li > a,
  #mobile_top_menu_wrapper .top-menu .sub-menu ul[data-depth="1"] > li a {
    padding-left: 28px;
    color: #2e2e2e !important; /* theme.css: !important */
    font-weight: 400;
  }
  #mobile_top_menu_wrapper .top-menu .sub-menu ul[data-depth="2"] li a {
    padding-left: 40px;
    font-size: 14px;
  }
  #mobile_top_menu_wrapper .top-menu .sub-menu .menu-banners {
    display: none;
  }
  #mobile_top_menu_wrapper .top-menu a:hover,
  #mobile_top_menu_wrapper .top-menu .current > a {
    color: #6dac23 !important;
  }
  /* dół menu: waluta, język, kontakt */
  #mobile_top_menu_wrapper .js-top-menu-bottom {
    float: none;
    margin: auto 0 0;
    padding: 12px 16px 24px;
  }
  #mobile_top_menu_wrapper .js-top-menu-bottom a {
    display: block;
    min-height: 44px;
    padding-top: 12px;
    padding-bottom: 12px;
    line-height: 20px;
  }
  @media (prefers-reduced-motion: reduce) {
    #mobile_top_menu_wrapper::before {
      transition: none;
    }
  }

  /* --- Menu „⋮” (tm_toplink: Kategorie, Polecane, Zestawy…): karta na całą szerokość pod
     nagłówkiem zamiast wąskiej listy przesuniętej o right: 150% / 100% (wychodziła poza ekran).
     Otwieranie: custom.js (slideToggle), zamykanie także dotknięciem obok i Esc. --- */
  #header .header-nav #links_block_top {
    position: static;
  }
  #header .header-nav #links_block_top .title_block {
    position: relative;
  }
  #header .header-nav #links_block_top .title_block::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    transform: translate(-50%, -50%);
  }
  #header .header-nav #tm_toplink {
    top: 100%;
    left: 10px;
    right: 10px;
    z-index: 9997;
    width: auto;
    margin: 0;
    padding: 6px 0;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
    text-align: left;
  }
  #header .header-nav #tm_toplink li {
    float: none;
    width: 100%;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #f0f0f0;
  }
  #header .header-nav #tm_toplink li:last-child {
    border-bottom: 0;
  }
  #header .header-nav #tm_toplink li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding: 12px 16px;
    color: #2e2e2e;
    font-size: 15px;
    font-weight: 600;
  }
  #header .header-nav #tm_toplink li a::after {
    content: "\E315"; /* chevron_right */
    color: #b5b5b5;
    font-family: "Material Icons";
    font-size: 22px;
    font-weight: normal;
    line-height: 1;
  }
  #header .header-nav #tm_toplink li a:hover::after {
    color: #6dac23;
  }

  /* --- Filtry na liście produktów: po „Filtr” panel zamiast listy (klasa z mobile.js).
     Panel ma w motywie hidden-md-down (display: none !important), stąd !important. --- */
  body.tm-filters-open #search_filters_wrapper.hidden-md-down {
    display: block !important;
  }
  body.tm-filters-open #content-wrapper,
  body.tm-filters-open #footer {
    display: none !important;
  }
  body.tm-filters-open #search_filters_wrapper {
    margin: 0 0 20px;
    padding: 0 0 16px;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    background: #fff;
  }
  #search_filters_wrapper #search_filter_controls {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    gap: 10px;
    margin: 0 0 8px;
    padding: 12px 16px;
    border-bottom: 1px solid #eaeaea;
    border-radius: 12px 12px 0 0;
    background: #fff;
  }
  #search_filters_wrapper #search_filter_controls {
    justify-content: flex-end;
    align-items: center;
  }
  #search_filters_wrapper #search_filter_controls .btn,
  #search_filters_wrapper #search_filter_controls button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: auto;
    min-height: 36px;
    margin: 0;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    text-transform: none;
  }
  #search_filters_wrapper #search_filter_controls .btn .material-icons {
    font-size: 18px;
  }
  #search_filters_wrapper #search_filter_controls .ok {
    border: 0;
    background: #6dac23;
    color: #fff;
    font-weight: 600;
  }
  #search_filters_wrapper #search_filter_controls #_mobile_search_filters_clear_all {
    margin-right: auto; /* „Wyczyść” po lewej, „Zapisz” po prawej */
  }
  #search_filters_wrapper #search_filter_controls #_mobile_search_filters_clear_all:empty {
    display: none;
  }
  /* większe marginesy przy nazwach filtrów i wartościach */
  #left-column #search_filters_wrapper #search_filters {
    padding: 0 24px;
  }
  #left-column #search_filters_wrapper #search_filters .facet .title,
  #left-column #search_filters_wrapper #search_filters .facet .facet-title {
    padding-left: 4px;
    padding-right: 4px;
  }
  #left-column #search_filters_wrapper #search_filters .facet ul li {
    padding-left: 12px;
    padding-right: 4px;
  }

  /* --- Stopka: rozwijane sekcje z wygodnym polem dotyku --- */
  .footer-container .links .title,
  #left-column .block .block_title,
  #right-column .block .block_title {
    min-height: 44px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  /* sekcje oddzielone kreską, nagłówek sekcji z wyrównaną strzałką rozwijania */
  .footer-container .links {
    border-bottom: 1px solid #eaeaea;
  }
  .footer-container .links .title {
    display: flex !important; /* theme.css: .title.hidden-md-up { display: block !important } */
    align-items: center;
    justify-content: space-between;
  }
  /* clearfix (::before / ::after) w układzie flex to puste elementy – przesuwały strzałkę
     do środka („Informacja o sklepie”, „Twoje konto”) */
  .footer-container .links .title::before,
  .footer-container .links .title::after {
    display: none;
  }
  .footer-container .links .title {
    min-height: 56px;
    margin: 0;
    padding: 12px 0;
  }
  .footer-container .links .title .h3,
  .footer-container .links .title > span:first-child {
    margin: 0;
    line-height: 1.3;
  }
  .footer-container .links .title .pull-xs-right {
    display: flex;
    flex: 0 0 auto;
    float: none;
    margin-left: 12px;
  }
  .footer-container .links .title .navbar-toggler {
    display: flex;
    align-items: center;
    padding: 0;
  }
  .footer-container .links .title .collapse-icons .material-icons {
    line-height: 1;
  }
  /* linki: strzałka motywu jako element wiersza (nie absolute nad tekstem), wiersz 44 px */
  .footer-container .links ul > li {
    margin: 0;
  }
  .footer-container .links ul > li a {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 10px 0;
    line-height: 1.4;
  }
  .footer-container .links ul > li a::before {
    position: static;
    flex: 0 0 20px;
    align-self: center;
  }
  .footer-container .links ul {
    padding-bottom: 8px;
  }
  /* kontakt w stopce: większe pola dotyku dla telefonu i e-maila */
  #footer #block-contact_list .tm-contact-item {
    align-items: center;
    margin: 0;
    padding: 6px 0;
  }
  #footer #block-contact_list .tm-contact-text a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0;
  }
}

/* stopka, blok kontaktu: bez strzałki motywu przy telefonie / e-mailu (mają własne ikony) */
.footer-container #block-contact_list li a::before {
  display: none;
}
.footer-container #block-contact_list li a {
  padding-left: 0;
}

/* ===== Telefony i małe tablety (≤ 767 px) ===== */
@media (max-width: 767px) {

  /* --- „Strona nie znaleziona” / „Brak produktów”: mniejsze marginesy ramki --- */
  #products .page-not-found,
  #pagenotfound .page-not-found {
    padding: 20px 16px;
  }

  /* --- Pola formularzy 16 px: iOS nie powiększa strony po dotknięciu pola --- */
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="tel"],
  input[type="number"],
  input[type="search"],
  input[type="date"],
  select,
  textarea,
  .form-control {
    font-size: 16px;
  }
  .form-control,
  select.form-control:not([size]):not([multiple]) {
    min-height: 44px;
  }

  /* --- Przyciski: min. 44 px wysokości, napis wyśrodkowany w pionie i poziomie --- */
  .btn,
  .btn-primary,
  .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    text-align: center;
  }

  /* --- Ilość (TouchSpin): większe strzałki „+ / −” --- */
  .bootstrap-touchspin .input-group-btn-vertical > .btn {
    width: 36px;
    min-height: 0;
    height: 50%;
  }
  .bootstrap-touchspin .input-group-btn-vertical {
    height: 44px;
  }
  .bootstrap-touchspin input.form-control,
  .bootstrap-touchspin input.input-group {
    height: 44px;
  }

  /* --- Lista produktów: w jednym rzędzie ilość, „Do koszyka” (reszta szerokości) i podgląd --- */
  /* zawsze widoczne pod ceną: theme.css chowa ten blok (opacity: 0, position: absolute,
     translateX(-150px)) i pokazuje dopiero po najechaniu / dotknięciu karty */
  #wrapper .products .product_list li .product-miniature .product-actions-main,
  #wrapper .products .product_list li .product-miniature .product-actions,
  .products .product-miniature .product-actions-main,
  .products .product-miniature .product-actions {
    display: flex; /* theme.css ma tu display: contents (≤ 959 px) – podgląd spadał pod spód */
    position: static;
    align-items: center;
    width: 100%;
    margin-top: 8px;
    opacity: 1;
    transform: none;
    transition: none;
  }
  .products .product-miniature .product-actions-main form,
  .products .product-miniature .product-actions form {
    display: flex;
    flex: 1 1 auto;
    align-items: stretch;
    min-width: 0;
  }
  .products .product_list .product-miniature .quick-view {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    margin: 0 0 0 6px;
  }
  .products .product-miniature .product-actions-main .smallqty {
    flex: 0 0 46px;
    float: none;
    height: 40px;
    padding-right: 6px;
  }
  .products .product-miniature .product-actions-main .smallqty .input-group {
    width: 100%;
    height: 100%;
    margin-top: 0;
    font-size: 16px;
  }
  /* stepper „− ilość +” i „Wybierz” (warianty) zajmują miejsce przycisku – reszta rzędu */
  .products .product-miniature .product-actions-main form .tm-stepper {
    flex: 1 1 auto;
    min-width: 0;
  }
  .products .product-miniature .product-actions-main .tm-choose {
    flex: 1 1 auto;
    min-width: 0;
  }
  .products .product-miniature .product-actions-main .add-to-cart,
  .products .product-miniature .product-actions .add-to-cart {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    height: 40px;
    min-height: 40px;
    padding: 0;
  }
  .products .product-miniature .product-title {
    display: block;
    min-height: 2.6em; /* równa wysokość kart w rzędzie */
    line-height: 1.3;
  }
  .products .product-miniature .price {
    font-size: 16px;
    font-weight: 600;
  }

  /* --- Sortowanie i filtry na liście kategorii: duże przyciski obok siebie --- */
  #products .products-selection .filter-button .btn,
  #search_filter_toggler {
    width: 100%;
    min-height: 44px;
  }
  #search_filters .facet ul li {
    padding-top: 6px;
    padding-bottom: 6px;
  }
  #search_filters .facet .facet-label {
    display: block;
    min-height: 32px;
  }

  /* --- Strona produktu --- */
  #product .productpage_title {
    font-size: 20px;
    line-height: 1.3;
  }
  #product .product-prices .current-price-value {
    font-size: 24px;
  }
  /* ilość i przycisk w jednym rzędzie (reguły ogólne w sekcji koszyka); przycisk na resztę szerokości.
     Napis „Ilość” ma w theme.css float: left (100 px) – wiersz flex zwężał się obok niego i przycisk
     spadał pod ilość. Na telefonie napis stoi nad kontrolką, tuż nad nią. */
  #product .product-add-to-cart > .control-label {
    display: block;
    float: none;
    width: auto;
    margin: 0 0 6px;
  }
  /* ikony z modułów (schowek, porównanie) w osobnym rzędzie pod przyciskiem */
  #product .product-add-to-cart .product-quantity > :not(.qty):not(.add) {
    flex: 1 1 100%;
  }
  #product .product-add-to-cart .product-quantity {
    justify-content: flex-start;
    gap: 10px;
    margin-top: 0;
    text-align: left;
  }
  #product .product-add-to-cart .product-quantity .add {
    flex: 1 1 auto;
    flex-wrap: wrap;
    min-width: 0;
  }
  #product .product-add-to-cart .product-quantity .add .add-to-cart {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 44px;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.2;
    white-space: normal; /* bardzo wąski ekran: napis w dwóch linijkach zamiast spadać pod ilość */
  }
  #product .product-add-to-cart .product-quantity .bootstrap-touchspin .input-group-btn-vertical > .btn {
    width: 38px;
  }
  #product .product-add-to-cart .product-quantity .bootstrap-touchspin #quantity_wanted {
    width: 40px;
  }

  /* --- Koszyk --- */
  #cart .cart-detailed-actions .btn,
  #checkout .cart-detailed-actions .btn {
    display: flex;
    width: 100%;
    min-height: 48px;
    font-size: 16px;
  }
  #cart .cart-item .remove-from-cart,
  #cart .product-line-actions .remove-from-cart {
    display: inline-block;
    min-width: 44px;
    min-height: 44px;
    line-height: 44px;
    text-align: center;
  }

  /* --- Zamówienie: sposób dostawy jako karty, cała karta reaguje na dotknięcie --- */
  body#checkout section.checkout-step .delivery-option {
    align-items: flex-start;
    margin: 0 0 10px;
    padding: 12px 12px 12px 20px;
    border: 1px solid #eaeaea;
    border-radius: 12px;
  }
  body#checkout section.checkout-step .delivery-option:has(input:checked) {
    border-color: #6dac23;
    box-shadow: 0 0 0 1px #6dac23;
  }
  /* kropka wyboru wyśrodkowana w pionie względem karty */
  body#checkout section.checkout-step .delivery-option > .col-sm-1 {
    display: flex;
    flex: 0 0 36px;
    align-self: center;
    align-items: center;
    width: 36px;
    padding: 0;
  }
  body#checkout section.checkout-step .delivery-option > .col-sm-1 .custom-radio {
    float: none;
    margin: 0; /* theme.css: margin-top 12px – kropka nie była na środku */
  }
  /* mniejsze logo przewoźnika (40 px) obok nazwy */
  body#checkout section.checkout-step .delivery-option .carrier {
    display: flex;
    align-items: center;
    margin: 0;
  }
  body#checkout section.checkout-step .delivery-option .carrier-logo {
    flex: 0 0 40px;
    width: 40px;
    padding: 0;
    margin-right: 10px;
  }
  body#checkout section.checkout-step .delivery-option .carrier-logo img {
    max-width: 40px;
  }
  body#checkout section.checkout-step .delivery-option .carriere-name-container {
    flex: 1 1 auto;
    width: auto;
    padding: 0;
  }
  body#checkout section.checkout-step .delivery-option > label.delivery-option-2 {
    flex: 1 1 auto;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    cursor: pointer;
  }
  /* nazwa, opis i cena jedna pod drugą (przy 544–767 px były w trzech wąskich kolumnach
     i nazwa łamała się po literze: „osobist / y”) */
  body#checkout section.checkout-step .delivery-option-2 > .row > [class*="col-sm-"] {
    float: none;
    width: 100%;
  }
  body#checkout section.checkout-step .delivery-option .carrier-name {
    word-break: normal;
    overflow-wrap: normal;
    hyphens: manual;
  }
  body#checkout section.checkout-step .delivery-option .carrier-delay {
    display: block;
    margin-top: 4px;
    font-size: 14px;
    color: #666;
  }
  body#checkout section.checkout-step .delivery-option .carrier-price {
    display: block;
    margin-top: 4px;
    font-weight: 600;
  }
  /* „Dalej”, „Zamawiam z obowiązkiem zapłaty” itp. – na całą szerokość */
  body#checkout section.checkout-step .continue,
  body#checkout #payment-confirmation .btn {
    display: flex;
    float: none !important;
    width: 100%;
    min-height: 48px;
    font-size: 16px;
  }
  body#checkout section.checkout-step .step-title {
    min-height: 44px;
  }
  body#checkout .custom-radio,
  body#checkout .custom-checkbox input[type="checkbox"] + span {
    flex-shrink: 0;
  }
  body#checkout .payment-option label,
  body#checkout .condition-label label {
    display: inline;
    padding: 6px 0;
  }
  body#checkout .payment-option {
    padding: 8px 0;
  }

  /* --- Przycisk „do góry” nad paskiem zakupowym --- */
  body.tm-has-buybar .top_button {
    bottom: 80px;
  }
}

/* ===== Banery tm_cms1block (displayHomeBanner; treść z panelu:
   .tmcms1block > .main-content > .cms_content > a > img width="236" height="222") =====
   theme.css daje kartom stały rozmiar (238 × 224 px, mniejszy przy węższych ekranach), a obrazki
   mają szerokość i wysokość w atrybutach. Teraz obrazki dopasowują się do kolumny:
   komputer – kolumna obok slidera (26 %), banery jeden pod drugim na całą jej szerokość;
   telefon i tablet – dwa obok siebie, każdy na pół szerokości. */
#tmcms1block .cms_content {
  display: block;
  width: 100%;
  height: auto;
  overflow: hidden;
  border-radius: 10px;
}
#tmcms1block .cms_content a {
  display: block;
}
#tmcms1block .cms_content img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
}
#tmcms1block .main-content {
  float: none;
  width: 100%;
  margin: 0;
}
@media (min-width: 992px) {
  #tmcms1block .tmcms1block {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
}
@media (max-width: 991px) {
  #tmcms1block {
    float: none;
    width: 100%;
    margin: 0 0 20px;
    overflow: visible;
  }
  #tmcms1block .tmcms1block {
    display: flex;
    gap: 12px;
    float: none;
    width: 100%;
  }
  #tmcms1block .main-content,
  #tmcms1block .first-content.main-content {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
  }
}

/* ===== Strona główna, telefon (≤ 767 px): zakładki Polecane / Nowości / Bestsellery =====
   theme.css ustawia każdą zakładkę na całą szerokość (wyglądały jak pionowe menu).
   Teraz rząd pigułek pod tytułem, aktywna zielona. Pigułka nigdy nie jest węższa niż napis;
   gdy trzy się nie mieszczą, ostatnia przechodzi do drugiego rzędu (nic nie jest obcinane). */
@media (max-width: 767px) {
  .tm-hometabcontent .tab-main-title {
    margin-bottom: 20px; /* odstęp pigułek od listy produktów (theme.css ≤ 480 px: 0) */
    border-bottom: 0;
    text-align: center;
  }
  .tm-hometabcontent .tab-main-title .tabs {
    float: none;
    right: 0;
    width: 100%;
  }
  .tm-hometabcontent #home-page-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 12px 0 4px;
    padding: 2px 0 6px;
    overflow: visible;
  }
  .tm-hometabcontent #home-page-tabs::before,
  .tm-hometabcontent #home-page-tabs::after {
    display: none; /* clearfix – w układzie flex dodawałby odstęp */
  }
  .tm-hometabcontent .tabs .nav-tabs .nav-item {
    flex: 0 1 auto;
    float: none;
    width: auto;
    min-width: 0;
    max-width: none;
    margin: 0;
  }
  .tm-hometabcontent .tabs .nav-tabs .nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 38px;
    padding: 8px clamp(10px, 3.5vw, 16px);
    border: 1px solid #dcdcdc;
    border-radius: 20px;
    background: #fff;
    color: #2e2e2e;
    font-size: clamp(11px, 3.3vw, 13px); /* 375 px → 12,4 px, 320 px → 11 px */
    font-weight: 600;
    letter-spacing: 0;
    white-space: nowrap;
  }
  .tm-hometabcontent .tabs .nav-tabs .nav-link::before,
  .tm-hometabcontent .tabs .nav-tabs .nav-link::after {
    display: none;
  }
  .tm-hometabcontent .tabs .nav-tabs .nav-link.active,
  .tm-hometabcontent .tabs .nav-tabs .nav-link.active:hover,
  .tm-hometabcontent .tabs .nav-tabs .nav-link.active:focus {
    border-color: #6dac23;
    background: #6dac23;
    color: #fff;
  }
}

/* ===== Strona główna, komputer i tablet (≥ 768 px): zakładki Polecane / Nowości / Bestsellery =====
   Jak na telefonie: pigułki (wybrana zielona) obok tytułu „Produkty”, zamiast „kart” z ramką
   i wersalikami; cieńsza linia pod nagłówkiem. */
@media (min-width: 768px) {
  .tm-hometabcontent .tab-main-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #ececec;
  }
  .tm-hometabcontent .tab-main-title::before,
  .tm-hometabcontent .tab-main-title::after {
    display: none;
  }
  /* tytuł „Produkty”: zwykły element rzędu (theme.css: position absolute), zielona kreska na linii */
  .tm-hometabcontent .tab-main-title .products-section-title {
    position: relative;
    bottom: auto;
    float: none;
    margin: 0;
    padding: 0;
  }
  .tm-hometabcontent .tab-main-title .products-section-title::before {
    bottom: -13px; /* padding-bottom 12 px + linia 1 px */
    height: 2px;
  }
  .tm-hometabcontent .tab-main-title .tabs {
    float: none;
    right: 0;
    width: auto;
    margin-left: auto;
  }
  .tm-hometabcontent #home-page-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: auto;
    margin: 0;
  }
  .tm-hometabcontent #home-page-tabs::before,
  .tm-hometabcontent #home-page-tabs::after {
    display: none;
  }
  .tm-hometabcontent .tabs .nav-tabs .nav-item {
    float: none;
    margin: 0;
  }
  .tm-hometabcontent .tabs .nav-tabs .nav-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    border: 1px solid #dcdcdc;
    border-radius: 20px;
    background: #fff;
    color: #2e2e2e;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2px;
    line-height: 20px;
    text-transform: none;
    transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
  }
  .tm-hometabcontent .tabs .nav-tabs .nav-link::before,
  .tm-hometabcontent .tabs .nav-tabs .nav-link::after {
    display: none;
  }
  .tm-hometabcontent .tabs .nav-tabs .nav-link:hover,
  .tm-hometabcontent .tabs .nav-tabs .nav-link:focus-visible {
    border-color: #6dac23;
    color: #4d8a14;
  }
  .tm-hometabcontent .tabs .nav-tabs .nav-link.active,
  .tm-hometabcontent .tabs .nav-tabs .nav-link.active:hover,
  .tm-hometabcontent .tabs .nav-tabs .nav-link.active:focus {
    border-color: #6dac23;
    background: #6dac23;
    color: #fff;
  }
  .tm-hometabcontent .tabs .nav-tabs .nav-link:focus-visible {
    outline: 2px solid #6dac23;
    outline-offset: 2px;
  }
}
@media (min-width: 768px) and (prefers-reduced-motion: reduce) {
  .tm-hometabcontent .tabs .nav-tabs .nav-link {
    transition: none;
  }
}

/* ===== Lista produktów 481–543 px: dwie kolumny jak na węższych telefonach (było jedna) ===== */
@media (min-width: 481px) and (max-width: 543px) {
  .products .product_list.grid li.product_item.col-sm-6 {
    width: 50%;
  }
}

/* ===== Pasek zakupowy na dole ekranu (assets/js/mobile.js) ===== */
.tm-buybar {
  display: none;
}
@media (max-width: 767px) {
  .tm-buybar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 990; /* pod oknami (1040+) i menu bocznym (9999) */
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    background: #fff;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.12);
    transform: translateY(110%);
    transition: transform 0.2s ease;
  }
  .tm-buybar.is-visible {
    transform: translateY(0);
  }
  .tm-buybar[hidden] {
    display: none;
  }
  .tm-buybar__info {
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.2;
  }
  .tm-buybar__label {
    display: block;
    font-size: 12px;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .tm-buybar__price {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #2e2e2e;
  }
  .tm-buybar__btn {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 20px;
    font-size: 16px;
    line-height: 1.2;
    text-align: center;
  }
  /* strona produktu: mniejszy przycisk obok ilości */
  .tm-buybar--product {
    gap: 10px;
  }
  .tm-buybar--product .tm-buybar__btn {
    gap: 6px;
    min-height: 44px;
    padding: 0 14px;
    font-size: 14px;
  }
  /* ta sama grafika koszyka co na przyciskach miniatur */
  .tm-buybar--product .tm-buybar__btn::before {
    content: "";
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    background: url("../img/megnor/cart.svg") no-repeat center;
    background-size: 20px;
  }
  /* przycisk albo „− ilość +” (assets/js/cart-stepper.js, gdy produkt jest w koszyku) */
  .tm-buybar__actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
  }
  .tm-buybar__actions .tm-stepper {
    height: 46px;
  }
  .tm-buybar__actions .tm-stepper__btn {
    width: 44px;
  }
  .tm-buybar__actions .tm-stepper__qty {
    min-width: 40px;
    font-size: 17px;
  }
}
/* wąski telefon: przycisk tylko z ikoną koszyka (napis zostaje w aria-label) */
@media (max-width: 479px) {
  .tm-buybar--product .tm-buybar__btn {
    width: 48px;
    padding: 0;
  }
  .tm-buybar--product .tm-buybar__btn::before {
    flex-basis: 22px;
    width: 22px;
    height: 22px;
    background-size: 22px;
  }
  .tm-buybar--product .tm-buybar__btn-text {
    display: none;
  }
}
@media (max-width: 767px) {
  body.tm-has-buybar {
    padding-bottom: 76px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tm-buybar {
    transition: none;
  }
}

/* ===== Strona produktu: zakładki Opis / Szczegóły / Opinie / Przepisy (wszystkie szerokości) =====
   theme.css: wielkie litery, ramka 2 px wokół aktywnej zakładki i treści przesuniętej o -7 px,
   cechy produktu jako zielono-szare kafelki z cieniem. Tu: pigułki jak zakładki na stronie głównej
   (na telefonie przewijane w poziomie), treść jako karta, cechy jako tabela w dwóch kolumnach. */
#product .product-tabcontent .tabs .nav-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  width: 100%;
  margin: 0 0 14px;
  padding: 2px 2px 4px;
  overflow-x: auto;
  border: 0;
  text-align: left;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
#product .product-tabcontent .tabs .nav-tabs .nav-item {
  float: none;
  flex: 0 0 auto;
  width: auto;
  margin: 0;
}
#product .product-tabcontent .tabs .nav-tabs .nav-link {
  display: block;
  padding: 10px 20px;
  border: 1px solid #e3e3e3;
  border-radius: 999px;
  background: #fff;
  color: #2e2e2e;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: none;
  white-space: nowrap;
}
#product .product-tabcontent .tabs .nav-tabs .nav-link:hover {
  border-color: #6dac23;
  color: #4d8a14;
}
#product .product-tabcontent .tabs .nav-tabs .nav-link.active,
#product .product-tabcontent .tabs .nav-tabs .nav-link.active:hover,
#product .product-tabcontent .tabs .nav-tabs .nav-link.active:focus {
  border-color: #6dac23;
  background: #6dac23;
  color: #fff;
}
#product .product-tabcontent .tabs .nav-tabs .nav-link:focus:not(:focus-visible) {
  outline: none;
}
#product .product-tabcontent .tabs .nav-tabs .nav-link:focus-visible {
  outline: 2px solid #3f7a10;
  outline-offset: 2px;
}
#product .product-tabcontent #tab-content {
  float: none;
  margin: 0;
  padding: 26px 30px;
  border: 1px solid #ececec;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
#product .product-tabcontent .product-description {
  color: #444;
  font-size: 15px;
  line-height: 1.7;
}
#product .product-tabcontent .product-description p {
  margin: 0 0 10px;
}
#product .product-tabcontent .product-description p:last-child {
  margin-bottom: 0;
}
#product .product-tabcontent .product-description img {
  max-width: 100%;
  height: auto;
  vertical-align: middle; /* np. flaga obok „Produkt wyprodukowany w Polsce” */
}
#product .product-tabcontent .product-description ul,
#product .product-tabcontent .product-description ol {
  margin: 0 0 10px;
  padding-left: 20px;
}
/* Szczegóły produktu: indeks, stan, cechy */
#product #product-details .label {
  margin: 0 8px 0 0;
  padding: 0;
  color: #6b6b6b;
  font-size: 14px;
  font-weight: 500;
}
#product #product-details .product-reference,
#product #product-details .product-quantities,
#product #product-details .product-manufacturer,
#product #product-details .product-availability-date {
  margin-bottom: 10px;
  color: #2e2e2e;
  font-size: 14px;
}
#product .product-tabcontent .product-features {
  margin: 16px 0 0;
}
#product .product-tabcontent .product-features h3 {
  margin: 0 0 10px;
  color: #2e2e2e;
  font-size: 15px;
  font-weight: 600;
  text-transform: none;
}
/* cechy produktu (dl.data-sheet): tabela w dwóch kolumnach zamiast zielono-szarych kafelków
   z theme.css (właściciel wybrał tę wersję 2026-11-13) */
#product .product-tabcontent .product-features > dl.data-sheet {
  display: grid;
  grid-template-columns: minmax(120px, 38%) 1fr;
  margin: 0;
  overflow: hidden;
  border: 1px solid #ececec;
  border-radius: 12px;
}
#product .product-tabcontent .product-features > dl.data-sheet dt.name,
#product .product-tabcontent .product-features > dl.data-sheet dd.value {
  display: block;
  width: auto;
  min-height: 0;
  margin: 0;
  padding: 10px 14px;
  border-top: 1px solid #ececec;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  font-size: 14px;
  line-height: 1.5;
  word-break: normal;
  overflow-wrap: anywhere;
}
#product .product-tabcontent .product-features > dl.data-sheet dt.name:first-of-type,
#product .product-tabcontent .product-features > dl.data-sheet dd.value:first-of-type {
  border-top: 0;
}
#product .product-tabcontent .product-features > dl.data-sheet dt.name {
  background: #f7f9f4;
  color: #4a4a4a;
  font-weight: 500;
}
#product .product-tabcontent .product-features > dl.data-sheet dd.value {
  color: #2e2e2e;
}
@media (max-width: 767px) {
  #product .product-tabcontent {
    margin-top: 28px;
  }
  #product .product-tabcontent .tabs .nav-tabs .nav-link {
    padding: 9px 16px;
    font-size: 13px;
  }
  #product .product-tabcontent #tab-content {
    padding: 18px 16px;
    border-radius: 14px;
  }
  #product .product-tabcontent .product-description {
    font-size: 14px;
  }
}
