/* „Bestsellery” z zakładkami Popularne | Promocje (makieta V7 10; 15.10.2026) — _partials/home/bestsellers-v2.tpl. Białe tło, poziome karty. */
.bs2 { background: #fff; color: #111; }
.bs2 *, .bs2 *::before, .bs2 *::after { box-sizing: border-box; }
.bs2-in { padding-top: 44px; padding-bottom: 44px; }
.bs2-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 18px; border-bottom: 1px solid #e3e3e3; }
.bs2-tabs { display: flex; gap: 28px; }
.bs2 .bs2-tab { position: relative; margin: 0; padding: 0 0 12px; border: 0; background: none; font: inherit; font-size: clamp(16px, 1.5vw, 22px); line-height: 1.15; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: #8a8a8a; cursor: pointer; }
.bs2 .bs2-tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: transparent; }
.bs2 .bs2-tab.is-active { color: #111; }
.bs2 .bs2-tab.is-active::after { background: var(--primary, #d50000); }
.bs2 .bs2-tab:hover { color: #111; }
.bs2 .bs2-all { display: inline-flex; align-items: center; gap: 8px; padding-bottom: 12px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--primary, #d50000); text-decoration: none; white-space: nowrap; }
.bs2 .bs2-all svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.bs2 .bs2-all:hover { color: #111; }
.bs2 .bs2-all:hover svg { transform: translateX(4px); }
.bs2 [hidden] { display: none !important; }
.bs2-slider { position: relative; }
.bs2-track { list-style: none; margin: 0; padding: 4px 2px 6px; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 56px) / 5); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.bs2-track::-webkit-scrollbar { display: none; }
.bs2-card { scroll-snap-align: start; display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding: 12px; border: 1px solid #e3e3e3; border-radius: 4px; background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.bs2-card:hover { border-color: var(--primary, #d50000); box-shadow: 0 8px 22px rgba(0, 0, 0, .08); }
.bs2 .bs2-img { display: grid; place-items: center; width: 112px; height: 112px; }
.bs2-img img { max-width: 100%; max-height: 112px; width: auto; height: auto; object-fit: contain; }
.bs2-txt { display: grid; grid-template-rows: auto auto 1fr; align-content: start; gap: 4px; min-width: 0; } /* stałe wiersze: nazwa (2 linie), cena, przycisk na dole — jednakowa wysokość kart we wszystkich zakładkach */
.bs2 .bs2-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: 2.6em; font-size: 11.5px; line-height: 1.3; font-weight: 600; color: #111; text-decoration: none; }
.bs2 .bs2-name:hover { color: var(--primary, #d50000); }
.bs2-price { position: relative; display: flex; flex-wrap: wrap; align-content: flex-start; align-items: center; gap: 2px 8px; height: 44px; font-size: 15px; } /* 2 linie: cena + przekreslona z ikonka (lamie sie w waskiej karcie) */
.bs2-price b { font-weight: 800; }
.bs2-price s { font-size: 12px; color: #8a8a8a; }
/* chmurka „najniższa cena z 30 dni” przy cenie */
.bs2 .bs2-info { position: relative; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #8a8a8a; color: #8a8a8a; font-size: 10px; font-weight: 800; font-style: normal; line-height: 1; cursor: help; }
.bs2 .bs2-info:hover, .bs2 .bs2-info:focus-visible { border-color: #111; color: #111; outline: none; }
.bs2-tip { position: absolute; left: 50%; bottom: calc(100% + 8px); z-index: 5; width: max-content; max-width: 220px; padding: 8px 10px; border-radius: 4px; background: #111; color: #fff; font-size: 11px; font-weight: 400; line-height: 1.35; text-align: left; transform: translateX(-50%); opacity: 0; visibility: hidden; transition: opacity .15s ease; pointer-events: none; }
.bs2-tip::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -5px; border: 5px solid transparent; border-top-color: #111; }
.bs2-tip b { color: #fff; }
.bs2 .bs2-info:hover .bs2-tip, .bs2 .bs2-info:focus-visible .bs2-tip { opacity: 1; visibility: visible; }
.bs2-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; align-self: end; }
.bs2 .bs2-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 10px; border: 1.5px solid #111; border-radius: 3px; background: #fff; font: inherit; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #111; text-decoration: none; cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.bs2 .bs2-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bs2 .bs2-btn--more:hover { background: #111; color: #fff; }
.bs2 .bs2-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; display: none; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--primary, #d50000); color: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); cursor: pointer; }
.bs2 .bs2-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.bs2 .bs2-arrow:hover { background: #e81919; }
.bs2 .bs2-arrow--prev { left: -16px; }
.bs2 .bs2-arrow--next { right: -16px; }
.bs2-slider.is-scrollable .bs2-arrow { display: grid; }
@media (max-width: 1399.98px) { .bs2-track { grid-auto-columns: calc((100% - 42px) / 4); } }
@media (max-width: 1199.98px) { .bs2-track { grid-auto-columns: calc((100% - 28px) / 3); } }
@media (max-width: 767.98px) {
  .bs2-in { padding-top: 32px; padding-bottom: 32px; }
  .bs2-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .bs2-tabs { gap: 18px; }
  .bs2 .bs2-all { padding-bottom: 10px; }
  .bs2-track { grid-auto-columns: 86%; }
  .bs2 .bs2-arrow { display: none !important; }
}
