/**
 * R-PAS 2026: motyw potomny rpas_child (plik rpas-child.css; nie custom.css, żeby nie przesłonić custom.css motywu rpas).
 * Jasny, minimalistyczny wygląd treści stron z ostrymi krawędziami. Nadpisuje style motywu rpas
 * (Classic, Bootstrap 4, megamenu ETS) bez zmiany jego plików.
 *
 * Fonty Barlow i Barlow Semi Condensed ładuje moduł rpasdesign.
 * Selektory spisane z r-pas.pl (październik 2026). Po zmianach w motywie rpas
 * sprawdź wygląd na kopii sklepu.
 */

/* Jedyne źródło tokenów dla motywu i modułu rpasdesign. Moduł ma tylko wartości zapasowe
   w :where(:root), które te poniższe zawsze nadpisują. */
:root {
  --rp-bg: #ffffff;
  --rp-surface: #ffffff;
  --rp-surface-2: #f4f5f6;
  --rp-plate: #f4f4f2;
  --rp-ink: #111316;
  --rp-ink-2: #555d67;
  --rp-line: #e2e5e8;
  --rp-line-strong: #111316;
  --rp-brand: #c8141c;
  --rp-brand-hover: #a80f16;
  --rp-ok: #1b7337;
  --rp-focus: #0b57d0;
  --rp-font: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --rp-font-display: "Barlow Semi Condensed", "Barlow", "Arial Narrow", Arial, sans-serif;
}

/* ---------- baza ---------- */
body {
  font-family: var(--rp-font);
  color: var(--rp-ink);
  background: var(--rp-bg);
  -webkit-font-smoothing: antialiased;
}
body h1, body h2, body h3, body .h1, body .h2, body .h3 {
  font-family: var(--rp-font-display);
  font-weight: 600;
  color: var(--rp-ink);
  text-transform: none;
  letter-spacing: -.01em;
}
body p, body li, body td, body label { color: inherit; }
/* Linki poza stopką: w czarnej stopce motywu rpas ciemny kolor linku byłby niewidoczny. */
body a:where(:not(#footer a)) { color: var(--rp-ink); }
body a:where(:not(#footer a)):hover { color: var(--rp-brand-hover); }
body :focus-visible { outline: 3px solid var(--rp-focus); outline-offset: 2px; }

/* ostre krawędzie w całym sklepie */
body .btn, body .btn-rpas, body .form-control, body input, body select, body textarea,
body .card, body .modal-content, body .dropdown-menu, body .alert, body .badge,
body .product-flag, body .tag, body .page-item .page-link, body .custom-checkbox span,
body .bootstrap-touchspin, body .input-group-btn-vertical .btn, body img {
  border-radius: 0 !important;
}

/* ---------- przyciski ---------- */
body .btn-rpas, body .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 20px;
  border: 1px solid transparent;
  background: var(--rp-brand);
  color: #fff;
  font: 600 1rem/1.2 var(--rp-font);
  letter-spacing: .01em;
  text-transform: none;
  box-shadow: none;
  transition: background-color .15s;
}
body .btn-rpas:hover, body .btn-primary:hover, body .btn-primary:focus { background: var(--rp-brand-hover); color: #fff; }
body .btn-secondary, body .btn-tertiary, body .btn-outline-primary {
  min-height: 44px;
  background: #fff;
  color: var(--rp-ink);
  border: 1px solid var(--rp-line);
  font-family: var(--rp-font);
  font-weight: 600;
  text-transform: none;
  box-shadow: none;
}
body .btn-secondary:hover, body .btn-tertiary:hover { border-color: var(--rp-line-strong); background: #fff; color: var(--rp-ink); }

body .form-control, body input[type="text"], body input[type="email"], body input[type="tel"],
body input[type="password"], body input[type="number"], body input[type="search"], body select {
  min-height: 44px;
  border: 1px solid var(--rp-line);
  background: #fff;
  color: var(--rp-ink);
  font-family: var(--rp-font);
  font-size: 1rem;
  box-shadow: none;
}
body .form-control:focus, body input:focus, body select:focus { border-color: var(--rp-line-strong); outline: 3px solid var(--rp-focus); outline-offset: 0; }

/* Nagłówek, menu główne, stopka i karta produktu: sekcja „jak w wizualizacji” na końcu pliku. */

/* ---------- okruszki ---------- */
.breadcrumb { background: transparent; padding: 16px 0 0; font-size: .875rem; }
.breadcrumb li a { color: var(--rp-ink-2); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb li:last-child { color: var(--rp-ink); font-weight: 600; }

/* ---------- listy produktów ---------- */
#js-product-list-top { align-items: center; margin-bottom: 16px; }
#left-column .block-categories { border: 0; border-top: 2px solid var(--rp-ink); padding: 16px 0 0; box-shadow: none; background: transparent; }
#left-column .block-categories a { color: var(--rp-ink); }
.block-category { border: 0; background: var(--rp-surface-2); padding: 24px; }

.products.row { row-gap: 16px; }
.rp-card { height: 100%; }
.rp-card .thumbnail-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  background: #fff;
  border: 1px solid var(--rp-line);
  box-shadow: none;
  transition: border-color .2s;
}
.rp-card:hover .thumbnail-container { border-color: var(--rp-line-strong); box-shadow: none; }
.rp-card__media { position: relative; background: var(--rp-plate); padding: 16px; }
.rp-card__media img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; }
.rp-card .product-flags { position: absolute; top: 12px; left: 12px; margin: 0; }
.rp-card .product-flag { margin: 0 0 4px; padding: 2px 7px; background: var(--rp-ink); color: #fff; font-size: 12px; font-weight: 600; text-transform: none; box-shadow: none; }
.rp-card .product-flag.discount, .rp-card .product-flag.on-sale { background: var(--rp-brand); }
.rp-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: transparent;
  text-align: left;
  position: static;
  height: auto;
}
.rp-card__title { margin: 0; font: 500 1rem/1.35 var(--rp-font); text-transform: none; }
.rp-card__title a { color: var(--rp-ink); text-decoration: none; }
.rp-card__title a:hover { text-decoration: underline; color: var(--rp-ink); }
.rp-card__specs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.rp-card__specs li { padding: 1px 6px; border: 1px solid var(--rp-line); color: var(--rp-ink-2); font-size: .8125rem; font-weight: 500; }
.rp-card__buy { display: grid; gap: 12px; margin-top: auto; padding-top: 8px; }
.rp-card .product-price-and-shipping { text-align: left; color: var(--rp-ink); }
.rp-card .product-price-and-shipping .price { font: 600 1.375rem/1 var(--rp-font-display); color: var(--rp-ink); }
.rp-card .regular-price { color: var(--rp-ink-2); font-size: .875rem; margin-right: 6px; }
.rp-card form { margin: 0; }
.rp-card__add { width: 100%; white-space: nowrap; font-size: 1rem; padding-inline: 12px; }

/* ---------- karta produktu ---------- */
.product-container h1, #main .product-container h1.h1 { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); margin: 16px 0 24px; }
.product-cover { background: var(--rp-plate); border: 0; }
.product-cover img { mix-blend-mode: multiply; }
.product-images > li.thumb-container .thumb { border: 1px solid var(--rp-line); background: var(--rp-plate); }
.product-images > li.thumb-container .thumb.selected, .product-images > li.thumb-container .thumb:hover { border-color: var(--rp-line-strong); }
.product-prices .current-price, .product-prices .current-price-value { font: 600 2.25rem/1.1 var(--rp-font-display); color: var(--rp-ink); }
.product-prices .tax-shipping-delivery-label { color: var(--rp-ink-2); font-size: .875rem; }
.product-variants > .product-variants-item select, .product-variants .form-control-select { min-height: 44px; border: 1px solid var(--rp-line); }
.product-variants .input-container .radio-label { border-radius: 0; box-shadow: none; border: 1px solid var(--rp-line); min-height: 44px; display: inline-flex; align-items: center; }
.product-variants .input-container input:checked + .radio-label { border-color: var(--rp-line-strong); box-shadow: inset 0 0 0 1px var(--rp-line-strong); }
.product-discounts .table-product-discounts { border: 1px solid var(--rp-line); }
.product-discounts .table-product-discounts thead th { background: var(--rp-surface-2); color: var(--rp-ink); }
.product-add-to-cart .add-to-cart { min-height: 52px; font-size: 1.125rem; padding-inline: 28px; }
.product-quantity .qty .input-group { height: 52px; }
.tabs { background: transparent; box-shadow: none; padding: 0; margin-top: 32px; border-top: 2px solid var(--rp-ink); }
.tabs .nav-tabs { border-bottom: 1px solid var(--rp-line); }
.tabs .nav-tabs .nav-link { border: 0; color: var(--rp-ink-2); font-weight: 600; }
.tabs .nav-tabs .nav-link.active { color: var(--rp-ink); border-bottom: 2px solid var(--rp-ink); background: transparent; }
.product-accessories, .featured-products { margin-top: 48px; }
.product-accessories .h5, .featured-products h2 { font: 600 1.625rem var(--rp-font-display); text-transform: none; }

/* ---------- koszyk i zamówienie ---------- */
.cart-grid-body .card, .cart-grid-right .card, .checkout-step { border: 1px solid var(--rp-line); box-shadow: none; }
.cart-summary-line .value, .cart-total .value { font-weight: 600; }


/* ---------- telefon ---------- */
@media (max-width: 767px) {
  body .h1, body h1 { font-size: 2rem; }

  /* dwie karty w rzędzie z równymi cenami */
  #js-product-list .products > .js-product { flex: 0 0 50%; max-width: 50%; padding-inline: 4px; }
  #js-product-list .products { margin-inline: -4px; }
  .rp-card__body { padding: 12px; }
  .rp-card__title { font-size: .875rem; }
  .rp-card__specs li:nth-child(n+3) { display: none; }
  .rp-card .product-price-and-shipping .price { font-size: 1.125rem; }
  .rp-card__add { font-size: .875rem; padding-inline: 8px; }

  /* karta produktu: duży przycisk zakupu, wygodne pola */
  .product-add-to-cart .add { flex: 1; }
  .product-add-to-cart .add-to-cart { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* opis ze sklepu na karcie produktu (2 linie) */
.rp-card__desc { margin: 0; font-size: .8125rem; line-height: 1.4; color: var(--rp-ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- nadpisania themes/rpas/assets/scss/rpas.css ----------
   Motyw rpas ustawia w rpas.css część stylów z !important (font Poppins na całej stronie,
   kolor przycisku koszyka, wyłączona ramka fokusu na .btn-rpas). Reguła z !important
   przegrywa tylko z inną regułą z !important o większej lub równej (i późniejszej) wadze,
   dlatego te selektory mają z przodu body. */
body, body #wrapper, body.font-montserrat #wrapper { font-family: var(--rp-font) !important; }
body .mm_menu_content_title, body .mm_menus_li:hover .mm_menu_content_title { font-family: var(--rp-font) !important; }
body .product-description :is(h1, h2, h3, h4, h5, h6, p, span, li, strong, b) { font-family: var(--rp-font) !important; }
body .rp-card .rp-card__title { font: 500 1rem/1.35 var(--rp-font) !important; color: var(--rp-ink) !important; }
body .rp-card .rp-card__desc { font-size: .8125rem !important; line-height: 1.4 !important; color: var(--rp-ink-2) !important; font-family: var(--rp-font) !important; }
body .product-container .product-container--rightcol .product-quantity .add button.add-to-cart { background: var(--rp-brand) !important; }
body .product-container .product-container--rightcol .product-quantity .add button.add-to-cart:hover { background: var(--rp-brand-hover) !important; }
body .btn-rpas:focus-visible, body .btn:focus-visible { outline: 3px solid var(--rp-focus) !important; outline-offset: 2px; }
@media (max-width: 767px) {
  body .rp-card .rp-card__title { font-size: .875rem !important; }
  /* rpas.css daje karcie w liście produktów 30 px marginesu wewnętrznego z każdej strony
     (.product .product-miniature .thumbnail-container). Przy dwóch kartach w rzędzie zostawało
     na telefonie ok. 80–100 px na treść i przycisk „Dodaj do koszyka” był ucinany. */
  .product .product-miniature.rp-card .thumbnail-container { padding: 10px; }
  .product .product-miniature.rp-card .rp-card__media { padding: 8px; }
  .product .product-miniature.rp-card .thumbnail-container .product-description .add-to-cart-or-refresh { margin-top: 0; }
  .product .product-miniature.rp-card .thumbnail-container .product-description .add-to-cart-or-refresh button.btn-rpas.rp-card__add {
    padding: 8px 6px;
    font-size: .8125rem;
    line-height: 1.2;
    white-space: normal;
  }
}
body .rp-card .rp-card__title a { font: inherit; color: inherit; }
/* Etykieta obniżki na karcie: rpas.css ustawia jej tło #ED1C24 z !important, a biały tekst 12 px
   ma na nim kontrast 4,4:1 (poniżej WCAG AA). Czerwień R-PAS z modułu daje 5,9:1. */
body .rp-card .product-flags li.product-flag.discount,
body .rp-card .product-flags li.product-flag.discount-percentage,
body .rp-card .product-flags li.product-flag.discount-amount,
body .rp-card .product-flags li.product-flag.on-sale { background: var(--rp-brand) !important; }

/* =====================================================================================
   Nagłówek, menu główne, stopka i karta produktu jak w wizualizacji (wersja 1.2.0).
   Reguły sprawdzone na stronach r-pas.pl w przeglądarce (komputer i telefon), z prawdziwym
   kodem nagłówka, megamenu ETS, stopki i karty produktu. Arkusz ładuje się jako ostatni
   (moduł wypisuje go w zaczepie displayHeader), więc wygrywa z rpas.css przy tej samej wadze.
   ===================================================================================== */

/* ---------- górny pasek: jasny, z ciemnym tekstem i ikonami ---------- */
#header .header-banner { background: var(--rp-surface-2); color: var(--rp-ink-2); padding: 7px 0; border-bottom: 1px solid var(--rp-line); }
#header .header-banner a,
#header .header-banner a strong,
#header .header-banner a span { color: var(--rp-ink); font-size: .8125rem; }
#header .header-banner a:hover { color: var(--rp-brand-hover); }
#header .header-banner svg path,
#header .header-banner svg rect,
#header .header-banner svg circle { fill: var(--rp-ink); }
#header .header-banner svg [stroke]:not([stroke="none"]) { stroke: var(--rp-ink); }
#header .header-banner .header-banner--leftcol .header-banner--leftcol--link2:before { background: var(--rp-line); }

/* ---------- wiersz z logo, wyszukiwarką i koszykiem ---------- */
#header { background: #fff; }
#header .header-top { background: #fff; }
#header #search_widget form { position: relative; padding: 0; }
#header #search_widget input[name="s"] {
  width: 100%;
  height: 50px;
  padding: 0 64px 0 16px;
  border: 1px solid var(--rp-ink);
  border-radius: 0 !important;
  background: #fff;
  box-shadow: none;
  color: var(--rp-ink);
  font-size: 1rem;
}
#header #search_widget input[name="s"]::placeholder { color: var(--rp-ink-2); opacity: 1; }
#header #search_widget form button {
  position: absolute;
  top: 4px;
  right: 4px;
  bottom: auto;
  width: 48px;
  height: 42px;
  margin: 0;
  border: 0;
  border-radius: 0 !important;
  background: var(--rp-brand);
}
#header #search_widget form button:hover { background: var(--rp-brand-hover); }
#header .header-top .header-top--rightcol .cart-products-count,
#header #_desktop_cart .cart-products-count { background: var(--rp-brand) !important; color: #fff !important; }
#header .header-top .header-top--rightcol a,
#header .header-top .header-top--rightcol span { color: var(--rp-ink); }

/* ---------- menu główne (megamenu ETS): biały wiersz, podkreślenie zamiast czerwonego tła ---------- */
#header .ets_mm_megamenu.layout_layout1 .ets_mm_megamenu_content { background: #fff !important; border-top: 1px solid var(--rp-line); border-bottom: 1px solid var(--rp-line); }
#header .ets_mm_megamenu.layout_layout1 .mm_menus_li,
#header .ets_mm_megamenu.layout_layout1 .mm_menus_li:hover,
#header .ets_mm_megamenu.layout_layout1 .mm_menus_li.menu_hover { background: transparent !important; }
#header .ets_mm_megamenu.layout_layout1 .mm_menus_li > a,
#header .ets_mm_megamenu.layout_layout1 .mm_menus_li:hover > a,
#header .ets_mm_megamenu.layout_layout1 .mm_menus_li.menu_hover > a,
#header .ets_mm_megamenu.layout_layout1 .mm_menus_li.active > a { background: transparent !important; color: var(--rp-ink) !important; }
#header .ets_mm_megamenu .mm_menus_li .mm_menu_content_title,
#header .ets_mm_megamenu .mm_menus_li:hover .mm_menu_content_title {
  color: var(--rp-ink) !important;
  font: 600 .9375rem/1.2 var(--rp-font) !important;
  text-transform: none !important;
  letter-spacing: 0;
}
@media (min-width: 768px) {
  #header .ets_mm_megamenu .mm_menus_li .mm_menu_content_title,
  #header .ets_mm_megamenu .mm_menus_li:hover .mm_menu_content_title { padding: 16px 18px; }
  #header .ets_mm_megamenu.layout_layout1 .mm_menus_li:hover > a,
  #header .ets_mm_megamenu.layout_layout1 .mm_menus_li.menu_hover > a,
  #header .ets_mm_megamenu.layout_layout1 .mm_menus_li.active > a { box-shadow: inset 0 -2px 0 var(--rp-ink); }
  #header .ets_mm_megamenu.layout_layout1 .mm_columns_ul { background: #fff !important; border: 1px solid var(--rp-line); border-top: 0; box-shadow: 0 12px 24px rgba(17, 19, 22, .08); }
}
#header .ets_mm_megamenu.layout_layout1 .mm_columns_ul a,
#header .ets_mm_megamenu.layout_layout1 .ets_mm_block_content a { color: var(--rp-ink) !important; font-family: var(--rp-font) !important; }
@media (min-width: 768px) {
  #header .ets_mm_megamenu.layout_layout1 .mm_columns_ul a { font-size: .875rem; text-transform: none; letter-spacing: 0; }
}
#header .ets_mm_megamenu.layout_layout1 .mm_columns_ul a:hover,
#header .ets_mm_megamenu.layout_layout1 .ets_mm_block_content a:hover { color: var(--rp-brand-hover) !important; }

/* ---------- stopka: jasna, z ciemnym tekstem ---------- */
#footer { padding-top: 0; }
#footer .footer-container { background: var(--rp-surface-2); border-top: 1px solid var(--rp-line); padding-top: 56px; color: var(--rp-ink-2); }
#footer .footer-container p.h3,
#footer .footer-container .links .h3,
#footer .footer-container .links .title .h3 { color: var(--rp-ink); font: 600 1rem/1.3 var(--rp-font-display); margin-bottom: 16px; }
#footer .footer-container .links ul li { margin-bottom: 8px; }
#footer .footer-container .links ul li a { color: var(--rp-ink-2); font-size: .875rem; }
#footer .footer-container .links ul li a:hover { color: var(--rp-ink); text-decoration: underline !important; }
#footer .footer-container .contactinfo .contactinfo--single .contactinfo--single--content,
#footer .footer-container .contactinfo .contactinfo--single .contactinfo--single--content a { color: var(--rp-ink-2); }
#footer .footer-container .contactinfo .contactinfo--single .contactinfo--single--content strong { color: var(--rp-ink); }
#footer .footer-container .contactinfo .contactinfo--single .contactinfo--single--content a:hover { color: var(--rp-ink); }
#footer .footer-container .links .title .material-icons,
#footer .footer-container .links .title .navbar-toggler { color: var(--rp-ink); }
#footer .footer-container .links .wrapper,
#footer .footer-container .links .title { border-color: var(--rp-line); }
#footer .footer-container .row-cp .col-md-12 { border-top: 1px solid var(--rp-line); color: var(--rp-ink-2); }
#footer .footer-container .row-cp .col-md-12 a { color: var(--rp-ink-2); }
#footer .footer-container .row-cp .col-md-12 a:hover { color: var(--rp-ink); }

/* ---------- karta produktu: galeria z lewej, nazwa i zakup z prawej ---------- */
#product #main .product-container h1.h1 { font: 600 clamp(1.625rem, 1.2rem + 1.2vw, 2.25rem)/1.12 var(--rp-font-display); color: var(--rp-ink); text-transform: none; margin: 0 0 16px; }
#product .product-container .product-cover { background: var(--rp-plate); margin-bottom: 12px; }
#product .product-container .product-cover img { mix-blend-mode: multiply; width: 100%; height: auto; }
#product .product-container .product-information .product-description,
#product .product-container .product-information .product-description p { color: var(--rp-ink-2); font-size: .9375rem !important; line-height: 1.5 !important; margin-bottom: 4px; }
#product .product-container .product-container--rightcol .product-prices,
#product .product-container .product-container--rightcol .product-prices .product-price,
#product .product-container .product-container--rightcol .product-prices .current-price { margin: 0; text-align: left !important; display: block; float: none; }
#product .product-container .product-container--rightcol .product-prices { margin: 20px 0 16px; }
#product .product-container .product-prices .current-price,
#product .product-container .product-prices .current-price span { font: 600 2.75rem/1 var(--rp-font-display); color: var(--rp-ink); }
#product .product-container .product-prices .tax-shipping-delivery-label { color: var(--rp-ink-2); font-size: .875rem; text-align: left; }
#product .product-container .product-container--rightcol .product-quantity {
  display: flex;
  flex-flow: row wrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
}
#product .product-container .product-container--rightcol .product-quantity .qty { flex: 0 0 auto; margin: 0; display: grid; gap: 4px; }
/* etykieta „Ilość” zostaje dla czytników ekranu; pole ma własny opis aria-label */
#product .product-container .product-container--rightcol .product-quantity .qty .control-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#product .product-container .product-container--rightcol .product-quantity .add { flex: 1 1 240px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 0; }
#product .product-container .product-container--rightcol .product-quantity .add button.add-to-cart { order: -1; width: 100%; min-height: 52px; margin: 0; font: 600 1.0625rem/1.2 var(--rp-font); text-transform: none; border-radius: 0; }
#product .product-container .product-container--rightcol .product-quantity .add #send_aap_button {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 52px;
  margin: 0;
  padding: 8px 18px;
  border: 1px solid var(--rp-line-strong);
  border-radius: 0;
  background: #fff !important;
  color: var(--rp-ink) !important;
  font: 600 1rem/1.2 var(--rp-font);
  text-transform: none;
}
#product .product-container .product-container--rightcol .product-quantity .add #send_aap_button:hover { background: var(--rp-ink) !important; color: #fff !important; }
#product .product-container .product-container--rightcol .product-quantity .wishlist-button { flex: 0 0 auto; align-self: flex-start; margin: 6px 0 0; }
#product .product-container .product-container--rightcol .product-quantity > .rp-pdp-extra { flex: 0 0 100%; width: 100%; max-width: 100%; margin-top: 8px; }
#product .product-container .product-container--bottomcol .tabs { margin-top: 40px; }

@media (min-width: 992px) {
  #product #main .product-container {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    column-gap: 56px;
    align-items: start;
    margin-inline: 0;
  }
  #product #main .product-container::before,
  #product #main .product-container::after { content: none; }
  #product #main .product-container > .container { grid-column: 2; grid-row: 1; width: auto; max-width: none; padding: 0; margin: 0; }
  #product #main .product-container > .product-container--leftcol { grid-column: 1; grid-row: 1 / span 2; width: auto; max-width: none; flex: none; padding: 0; float: none; }
  #product #main .product-container > .product-container--rightcol { grid-column: 2; grid-row: 2; width: auto; max-width: none; flex: none; padding: 0; float: none; }
  #product #main .product-container > .product-container--bottomcol { grid-column: 1 / -1; width: auto; max-width: none; flex: none; padding: 0; float: none; }

  /* miniatury w pionie po lewej stronie zdjęcia, jak w wizualizacji */
  #product .product-container .images-container { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; align-items: start; }
  #product .product-container .images-container .product-cover { grid-column: 2; grid-row: 1; margin: 0; }
  #product .product-container .images-container .js-qv-mask { grid-column: 1; grid-row: 1; width: 88px !important; max-height: 640px; overflow-x: hidden; overflow-y: auto; white-space: normal; scrollbar-width: thin; }
  #product .product-container .images-container .js-qv-mask ul.product-images { display: flex; flex-direction: column; gap: 8px; width: auto !important; position: static !important; left: auto !important; margin: 0; padding: 0; }
  #product .product-container .images-container .js-qv-mask ul.product-images > li.thumb-container { float: none; display: block; width: 88px; margin: 0; }
  #product .product-container .images-container .js-qv-mask ul.product-images > li.thumb-container .thumb { width: 88px; height: 88px; object-fit: contain; margin: 0; border: 1px solid var(--rp-line); background: var(--rp-plate); }
  #product .product-container .images-container .js-qv-mask ul.product-images > li.thumb-container .thumb.selected,
  #product .product-container .images-container .js-qv-mask ul.product-images > li.thumb-container .thumb:hover { border-color: var(--rp-line-strong); }
  #product .product-container .scroll-box-arrows { display: none !important; }
}

/* telefon: liczba sztuk i serce w pierwszym wierszu, przyciski na całą szerokość pod nimi */
@media (max-width: 575px) {
  #product .product-container .product-container--rightcol .product-quantity .wishlist-button { order: 1; margin-left: auto; }
  #product .product-container .product-container--rightcol .product-quantity .add { order: 2; flex: 0 0 100%; }
  #product .product-container .product-container--rightcol .product-quantity > .rp-pdp-extra { order: 3; }
}

/* =====================================================================================
   Wersja 1.2.1: drobne różnice względem wizualizacji (sprawdzone na stronach r-pas.pl).
   ===================================================================================== */

/* jedna ikona konta: szablon rpas wyświetla moduł logowania dwa razy (zaczepy displayNav1
   i displayNav2); zostaje ta za koszykiem */
#header .header-top--rightcol > #_desktop_user_info:not(#_desktop_cart ~ #_desktop_user_info) { display: none; }

/* odstęp między menu a treścią podstron (w rpas.css 115 px) */
@media (min-width: 992px) {
  #category #wrapper,
  #search #wrapper,
  #prices-drop #wrapper,
  #new-products #wrapper,
  #best-sales #wrapper,
  #product #wrapper { padding-top: 24px; }
}

/* lewa kolumna kategorii: prosty nagłówek zamiast czerwonej pigułki, zwykłe litery w linkach */
#left-column .block-categories { border-top: 0; padding-top: 0; }
.block-categories ul.category-top-menu li button.block-categories--open {
  padding: 0 0 12px;
  border-radius: 0;
  border-bottom: 2px solid var(--rp-ink);
  background: transparent;
  color: var(--rp-ink);
  font: 600 1.125rem/1.2 var(--rp-font-display);
  text-transform: none;
}
.block-categories ul.category-top-menu li button.block-categories--open:hover { background: transparent; color: var(--rp-brand-hover); }
.block-categories ul.category-top-menu li button.block-categories--open svg path { fill: var(--rp-ink); }
.block-categories ul.category-top-menu li ul.category-sub-menu { margin-top: 16px; padding-left: 0; }
.block-categories ul.category-top-menu li ul.category-sub-menu li[data-depth="0"] a { font: 500 1rem/1.4 var(--rp-font); text-transform: none; color: var(--rp-ink); }
.block-categories ul.category-top-menu li ul.category-sub-menu li[data-depth="0"] a:hover { color: var(--rp-brand-hover); }
#left-column .block-categories ul.category-sub-menu li.displaymytree > a { color: var(--rp-brand); font-weight: 700; }

/* pole sortowania: proste krawędzie */
.products-selection .products-selection--rightcol .sort-by-row .products-sort-order button.select-title {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--rp-line-strong);
  border-radius: 0;
}
.products-sort-order .select-list:hover { background: var(--rp-ink) !important; color: #fff !important; }

/* tekst „O R-pas.pl” na stronie głównej: nagłówki zwykłymi literami */
#custom-text h2,
#custom-text h2 strong { font: 600 1.5rem/1.2 var(--rp-font-display); color: var(--rp-ink); text-transform: none; }
