/* Strona główna: hero jako slajdy, produkty obok doboru, poprawki wersji mobilnej. Ładowany po shop.css. */

/* ---------- slajdy ---------- */
body.techtru-shop-home .hp-hero-slider { transition: background-color .5s ease, color .5s ease; }
body.techtru-shop-home .hp-slides { position: relative; }
body.techtru-shop-home .hp-hero-slider:not(.js-slider) .hp-slide-custom { display: none; }
body.techtru-shop-home .hp-hero-slider.js-slider .hp-slide > .hp-hero-grid { width: 100%; }
body.techtru-shop-home .hp-hero-slider.js-slider .hp-slide { position: absolute; left: 0; right: 0; top: 0; bottom: 0; display: flex; align-items: center; opacity: 0; visibility: hidden; transform: translateX(18px); transition: opacity .45s ease, transform .45s ease, visibility 0s .45s; }
body.techtru-shop-home .hp-hero-slider.js-slider .hp-slide.on { opacity: 1; visibility: visible; transform: none; transition: opacity .45s ease .1s, transform .45s ease .1s, visibility 0s; }
body.techtru-shop-home .hp-hero-slider.has-nav { padding-bottom: 76px; }

/* nawigacja: strzałki i kropki */
body.techtru-shop-home .hp-slider-nav { position: absolute; left: 48px; bottom: 22px; z-index: 5; display: flex; align-items: center; gap: 14px; }
body.techtru-shop-home .hp-arrow { width: 40px; height: 40px; padding: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .24); background: transparent; color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
body.techtru-shop-home .hp-arrow:not(.next) svg { transform: scaleX(-1); }
body.techtru-shop-home .hp-arrow svg { width: 18px; height: 18px; }
body.techtru-shop-home .hp-arrow:hover { background: #f39200; border-color: #f39200; color: #20140a; }
body.techtru-shop-home .hp-dots { display: flex; align-items: center; gap: 8px; }
body.techtru-shop-home .hp-dot { position: relative; width: 28px; height: 28px; padding: 0; border: 0; background: transparent; cursor: pointer; }
body.techtru-shop-home .hp-dot i { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 6px; background: rgba(255, 255, 255, .32); transition: width .3s, margin .3s, background .3s; }
body.techtru-shop-home .hp-dot.on i { width: 28px; margin-left: -14px; background: #f39200; }
body.techtru-shop-home .hp-arrow:focus-visible, body.techtru-shop-home .hp-dot:focus-visible { outline: 2px solid #f39200; outline-offset: 2px; }

/* ---------- slajdy dodawane w panelu ---------- */
body.techtru-shop-home .hp-slide-custom:not(.has-media) .hp-hero-grid { grid-template-columns: minmax(0, 1fr); }
body.techtru-shop-home .hp-hero .hp-slide-h { margin: 12px 0 0; font-family: Sora, "Archivo", sans-serif; font-size: 46px; line-height: 1.06; font-weight: 700; letter-spacing: -.02em; color: #fff; text-wrap: balance; }
body.techtru-shop-home .hp-hero .hp-slide-h span { color: #f39200; }
body.techtru-shop-home .hp-slide-custom .hp-lede { margin: 18px 0 0; }
body.techtru-shop-home .hp-slide-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
body.techtru-shop-home .hp-slide-ctas .btn-line { border-color: rgba(255, 255, 255, .26); color: #fff; }
body.techtru-shop-home .hp-slide-ctas .btn-line:hover { border-color: #f39200; color: #f39200; }
body.techtru-shop-home .hp-slide-media { display: flex; align-items: center; justify-content: center; }
body.techtru-shop-home .hp-slide-media img { display: block; max-width: 100%; max-height: 360px; width: auto; height: auto; object-fit: contain; border-radius: 22px; filter: drop-shadow(0 26px 36px rgba(0, 0, 0, .4)); }

/* motyw pomarańczowy (promocje) */
body.techtru-shop-home .hp-hero-slider[data-theme="orange"] { background: #f39200; color: #20140a; }
body.techtru-shop-home .hp-hero-slider[data-theme="orange"] .hp-glow { background: radial-gradient(circle, rgba(255, 255, 255, .32), rgba(255, 255, 255, 0) 70%); }
body.techtru-shop-home .hp-hero-slider[data-theme="orange"] .hp-kick { color: #20140a; opacity: .75; }
body.techtru-shop-home .hp-hero-slider[data-theme="orange"] .hp-slide-h { color: #20140a; }
body.techtru-shop-home .hp-hero-slider[data-theme="orange"] .hp-slide-h span { color: #fff; }
body.techtru-shop-home .hp-hero-slider[data-theme="orange"] .hp-lede { color: rgba(32, 20, 10, .82); }
body.techtru-shop-home .hp-hero-slider[data-theme="orange"] .hp-slide-ctas .btn-primary { background: #181c22; color: #fff; border-color: #181c22; }
body.techtru-shop-home .hp-hero-slider[data-theme="orange"] .hp-slide-ctas .btn-line { border-color: rgba(32, 20, 10, .4); color: #20140a; }
body.techtru-shop-home .hp-hero-slider[data-theme="orange"] .hp-slide-media img { filter: drop-shadow(0 22px 30px rgba(120, 60, 0, .35)); }
body.techtru-shop-home .hp-hero-slider[data-theme="orange"] .hp-arrow { border-color: rgba(32, 20, 10, .35); color: #20140a; }
body.techtru-shop-home .hp-hero-slider[data-theme="orange"] .hp-arrow:hover { background: #181c22; border-color: #181c22; color: #fff; }
body.techtru-shop-home .hp-hero-slider[data-theme="orange"] .hp-dot i { background: rgba(32, 20, 10, .3); }
body.techtru-shop-home .hp-hero-slider[data-theme="orange"] .hp-dot.on i { background: #181c22; }

/* etykiety formularza doboru: Inter jest szerszy niż poprzednia czcionka, więc „Pojemność" potrzebuje więcej miejsca */
body.techtru-shop-home .hero-finder .hf-label { width: 100px; white-space: nowrap; font-size: 11.5px; }

/* ---------- produkty obok doboru: karuzela coverflow ---------- */
body.techtru-shop-home .hp-slide:not(.hp-slide-custom) > .hp-hero-grid { align-items: stretch; }
body.techtru-shop-home .hp-fan.cf { --cf-card: clamp(140px, 13vw, 200px); position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 0; align-self: stretch; justify-content: space-between; font-family: Inter, sans-serif; color: #fff; }
body.techtru-shop-home .cf [hidden] { display: none !important; }
body.techtru-shop-home .cf-head { display: flex; align-items: center; gap: 10px; font: 500 12px "IBM Plex Mono", monospace; letter-spacing: .1em; text-transform: uppercase; color: #aab1bb; }
body.techtru-shop-home .cf-head i { width: 8px; height: 8px; border-radius: 50%; background: #3ecf7a; box-shadow: 0 0 0 4px rgba(62, 207, 122, .18); flex: none; }
body.techtru-shop-home .cf-head b { margin-left: auto; padding: 4px 10px; border-radius: 99px; background: #f39200; color: #20140a; font-weight: 600; white-space: nowrap; }
body.techtru-shop-home .cf-frame { position: relative; overflow: hidden; flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; padding: 28px 0 14px; perspective: calc(var(--cf-card) * 3); touch-action: pan-y; cursor: grab; outline: none; transition: opacity .25s; }
body.techtru-shop-home .cf-frame:active { cursor: grabbing; }
body.techtru-shop-home .cf-frame:focus-visible { outline: 2px solid #f39200; outline-offset: -2px; border-radius: 14px; }
body.techtru-shop-home .cf.is-loading .cf-frame { opacity: .45; }
body.techtru-shop-home .cf-stage { position: relative; height: var(--cf-card); transform-style: preserve-3d; user-select: none; -webkit-user-select: none; }
body.techtru-shop-home .cf-card { position: absolute; left: 50%; top: 0; width: var(--cf-card); aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; border-radius: 20px; background: #f3f1ec; box-shadow: 0 24px 40px -16px rgba(0, 0, 0, .7); will-change: transform; }
body.techtru-shop-home .cf-card.is-active { cursor: pointer; }
body.techtru-shop-home .cf-card img { display: block; width: 92%; height: 92%; max-width: none; object-fit: contain; pointer-events: none; user-select: none; }
body.techtru-shop-home .cf-nav { position: absolute; top: calc(50% + 8px); z-index: 200; width: 38px; height: 38px; padding: 0 0 3px; transform: translateY(-50%); border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22); background: rgba(24, 28, 34, .72); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; backdrop-filter: blur(4px); transition: background .2s, color .2s, border-color .2s; }
body.techtru-shop-home .cf-nav:hover { background: #f39200; border-color: #f39200; color: #20140a; }
body.techtru-shop-home .cf-nav.prev { left: 2px; }
body.techtru-shop-home .cf-nav.next { right: 2px; }
body.techtru-shop-home .cf-cap { display: grid; justify-items: center; gap: 10px; padding: 0 6px; text-align: center; }
body.techtru-shop-home .cf-cap b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 380px; font: 600 15px/1.3 Sora, sans-serif; color: #fff; cursor: pointer; }
body.techtru-shop-home .cf-cap b:hover { color: #f39200; }
body.techtru-shop-home .cf-cap dl { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; margin: 0; }
body.techtru-shop-home .cf-cap dl div { display: grid; gap: 2px; }
body.techtru-shop-home .cf-cap dt { font: 500 10.5px "IBM Plex Mono", monospace; letter-spacing: .1em; text-transform: uppercase; color: #aab1bb; }
body.techtru-shop-home .cf-cap dd { margin: 0; font: 500 14px "IBM Plex Mono", monospace; color: #fff; }
body.techtru-shop-home .cf-cap dl div:first-child dd { color: #f39200; }
body.techtru-shop-home .cf-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
body.techtru-shop-home .cf-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: #fff; opacity: .3; cursor: pointer; transition: width .25s, opacity .25s, background .25s; }
body.techtru-shop-home .cf-dot.on { width: 22px; opacity: 1; background: #f39200; }
body.techtru-shop-home .cf-all { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 54px; margin-top: 4px; padding: 0 8px 0 22px; border-radius: 16px; background: #f39200; color: #20140a !important; font: 700 15px Sora, sans-serif; text-decoration: none; transition: background .2s; }
body.techtru-shop-home .cf-all:hover { background: #ffa51f; }
body.techtru-shop-home .cf-all em { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; background: #181c22; color: #fff; font-style: normal; }
body.techtru-shop-home .cf-empty { display: grid; place-items: center; min-height: 200px; padding: 24px; border-radius: 22px; border: 1px dashed rgba(255, 255, 255, .3); text-align: center; font-size: 15px; line-height: 1.5; color: #fff; }

/* ---------- wersja mobilna strony głównej ---------- */
@media (max-width: 900px) {
  body.techtru-shop-home .hp-hero-slider.has-nav { padding-bottom: 66px; }
  body.techtru-shop-home .hp-slider-nav { left: 18px; bottom: 14px; }
  body.techtru-shop-home .hp-arrow { display: none; }
  body.techtru-shop-home .hp-hero .hp-slide-h { font-size: 30px; }
  body.techtru-shop-home .hp-slide-custom .hp-hero-grid { min-height: 0; gap: 20px; }
  body.techtru-shop-home .hp-slide-media img { max-height: 220px; }
  body.techtru-shop-home .hp-slide-ctas .btn { flex: 1 1 100%; justify-content: center; }

  /* pasujące modele: karuzela pod formularzem */
  body.techtru-shop-home .hp-fan.cf { --cf-card: min(46vw, 190px); align-self: auto; }
  body.techtru-shop-home .cf-frame { flex: none; }
  body.techtru-shop-home .cf-nav { display: none; }
  body.techtru-shop-home .cf-cap dl { gap: 8px 20px; }

  body.techtru-shop-home .hp-sticky .hp-cta { white-space: nowrap; flex: none; }

  /* korzyści (wysyłka, dobór, gwarancja): cztery równe kafelki */
  body.techtru-shop-home .hp-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 0; margin-top: 14px; background: transparent; border: 0; border-radius: 0; }
  body.techtru-shop-home .hp-trust-item { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; background: #fff; border: 1px solid #e6e2da; border-radius: 16px; }
  body.techtru-shop-home .hp-trust-item > span { display: flex; width: 38px; height: 38px; border-radius: 12px; }
  body.techtru-shop-home .hp-trust-item > span svg { width: 20px; height: 20px; }
  body.techtru-shop-home .hp-trust-item b { font-size: 14px; line-height: 1.25; }
  body.techtru-shop-home .hp-trust-item b::before { content: none; }
  body.techtru-shop-home .hp-trust-item p { margin-top: 4px; font-size: 12.5px; line-height: 1.4; }

  /* kafle kategorii: każdy w swoim wierszu, bez nakładania */
  body.techtru-shop-home .hp-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: minmax(132px, auto); gap: 10px; }
  body.techtru-shop-home .hp-cat { min-height: 132px; height: auto; padding: 16px; overflow: hidden; }
  body.techtru-shop-home .hp-cat.big { grid-column: span 2; grid-row: auto; min-height: 168px; height: auto; }
  body.techtru-shop-home .hp-cat h3 { max-width: 100%; font-size: 16px; line-height: 1.2; overflow-wrap: anywhere; }
  body.techtru-shop-home .hp-cat.big h3 { font-size: 21px; }
  body.techtru-shop-home .hp-cat-ic { right: 12px; bottom: auto; top: 12px; opacity: .16; }
  body.techtru-shop-home .hp-cat-ic svg { width: 44px; height: 44px; }
  body.techtru-shop-home .hp-cat.big .hp-cat-ic svg { width: 64px; height: 64px; }
  body.techtru-shop-home .hp-cat-count { font-size: 12px; }
  body.techtru-shop-home .hp-bat { width: 64px; margin-top: 10px; }

  /* popularne produkty: zakładki w jednym przewijanym rzędzie, wskaźnik w skali tekstu */
  body.techtru-shop-home .hp-sec-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  body.techtru-shop-home .hp-tabs { display: flex; flex-wrap: nowrap; width: 100%; max-width: 100%; overflow-x: auto; }
  body.techtru-shop-home .hp-tabs .hp-tab { flex: none; height: 36px; padding: 0 12px; font-size: 13px; }
  body.techtru-shop-home .hp-tabs .hp-tab-ind { top: 5px; bottom: 5px; height: auto; }

  /* dobór po zastosowaniu: kafle z opisem, jeden pod drugim */
  body.techtru-shop-home .hp-apps { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  body.techtru-shop-home .hp-app { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; row-gap: 0; align-items: center; padding: 14px; }
  body.techtru-shop-home .hp-app .i { grid-row: 1 / span 2; width: 44px; height: 44px; }
  body.techtru-shop-home .hp-app h3 { font-size: 15px; }
  body.techtru-shop-home .hp-app p { display: block; margin: 2px 0 0; font-size: 12.5px; }
  body.techtru-shop-home .hp-app em { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  body.techtru-shop-home .hp-hero-slider, body.techtru-shop-home .hp-slides, body.techtru-shop-home .hp-slide { transition: none !important; }
}
