/* PaperHit — header + sekcja HERO (Breakdance → landing) */

/* Wspólny kontener headera / wyrównanie z logo */
.ph-site-wrap {
  width: min(100%, var(--ph-container));
  max-width: var(--ph-container);
  margin-inline: auto;
  padding-inline: var(--ph-section-px);
}

/* ── TOP BAR (flank | core kontener | granatowy flank) ── */
.ph-topbar {
  background: var(--ph-surface);
  overflow: visible;
  position: relative;
  z-index: 100;
}

.ph-topbar-shell {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  width: 100%;
}

/* Boczne flanki — Breakdance: lewy biały pasek 34px; prawy granat = wysokość nav */
.ph-topbar-flank {
  flex: 1 1 0;
  min-width: 0;
}

.ph-topbar-flank--left {
  background: var(--ph-surface);
  height: var(--ph-topbar-flank-left-h);
}

.ph-topbar-flank--right {
  background: var(--ph-brand);
  height: var(--ph-topbar-nav-min-h);
  min-height: var(--ph-topbar-nav-min-h);
}

/* Rdzeń: logo + nav — padding tylko od lewej (prawa krawędź = granat nav) */
.ph-topbar-core {
  flex: 0 1 var(--ph-container);
  width: 100%;
  max-width: var(--ph-container);
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 24px;
  padding-left: var(--ph-section-px);
  padding-right: 0;
  box-sizing: border-box;
}

.ph-topbar-brand {
  flex-shrink: 0;
  background: var(--ph-surface);
  position: relative;
  z-index: 210;
}

.ph-topbar-logo {
  display: flex;
  align-items: center;
  padding: 20px 0;
  background: transparent;
  text-decoration: none;
}

.ph-topbar-logo img {
  max-width: 140px;
  width: 100%;
  height: auto;
  display: block;
}

.ph-topbar-nav-wrap {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  height: var(--ph-topbar-nav-min-h);
  min-height: var(--ph-topbar-nav-min-h);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  align-self: flex-start;
  background: var(--ph-brand);
  border-bottom-left-radius: var(--ph-radius-pill);
  padding: var(--ph-topbar-nav-py) var(--ph-topbar-nav-px-right) var(--ph-topbar-nav-py) var(--ph-topbar-nav-px-left);
  margin-bottom: var(--ph-topbar-nav-gap);
  position: relative;
  z-index: 90;
}

.ph-topbar-trust {
  display: none;
  align-items: center;
  flex-wrap: nowrap;
  gap: 5px;
  margin: 0;
  color: var(--ph-text-inverse);
  font-family: var(--ph-font-body);
  font-size: clamp(11px, 1.4vw, 15px);
  font-weight: 400;
  line-height: var(--ph-topbar-nav-line-height);
  text-align: right;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
}

.ph-allegro-short { display: none; }
.ph-allegro-long  { display: inline; }

/* Odznaka Super Sprzedawcy Allegro — pomarańczowa tarcza z „S” */
.ph-allegro-badge {
  display: inline-flex;
  flex-shrink: 0;
}

.ph-allegro-badge svg {
  display: block;
  width: 18px;
  height: 18px;
}

.ph-topbar-trust a {
  color: var(--ph-text-inverse);
  font-weight: 700;
  text-decoration: none;
  transition: color var(--ph-btn-transition);
}

.ph-topbar-trust a:hover {
  color: var(--ph-accent);
}

/* Link do opinii Google — logo + 5 gwiazdek */
.ph-trust-google {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ph-google-logo {
  display: inline-flex;
  flex-shrink: 0;
}

.ph-google-logo svg {
  display: block;
  width: 17px;
  height: 17px;
}

.ph-trust-stars {
  color: #fbbc05;          /* żółty Google */
  font-size: 14px;
  letter-spacing: 1px;
  line-height: 1;
}

.ph-trust-google:hover .ph-trust-google-text {
  color: var(--ph-accent);
}

/* Separator między blokiem Google a Allegro */
.ph-trust-sep {
  opacity: .55;
  margin: 0 2px;
}

.ph-topbar-nav {
  display: none;
  align-items: center;
  gap: var(--ph-topbar-nav-links-gap);
}

.ph-topbar-nav a {
  color: var(--ph-text-inverse);
  font-family: var(--ph-font-body);
  font-size: var(--ph-topbar-nav-font-size);
  font-weight: 400;
  line-height: var(--ph-topbar-nav-line-height);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--ph-btn-transition);
}

.ph-topbar-nav a:hover {
  color: var(--ph-accent);
}

/* Topbar trust — zawsze widoczny na wszystkich szerokościach */
.ph-topbar-trust { display: flex; }
.ph-topbar-nav   { display: flex; }

/* Mobile: bardzo skrócona wersja — tylko ikona Allegro + "Opinie Allegro" */
.ph-allegro-long  { display: none; }
.ph-allegro-short { display: inline; }
/* Google: na bardzo wąskich ukryj tekst "Opinie Google", zostaw gwiazdki */
.ph-trust-google-text { display: none; }

@media (min-width: 480px) {
  .ph-trust-google-text { display: inline; }
}

@media (min-width: 940px) {
  .ph-allegro-long  { display: inline; }
  .ph-allegro-short { display: none; }
}

@media (max-width: 767px) {
  .ph-topbar-flank--left,
  .ph-topbar-flank--right { display: none; }

  /* Cały topbar — kolumna: logo → belka opinii */
  .ph-topbar-shell {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
  }

  .ph-topbar-core {
    flex: none;
    max-width: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
  }

  /* Rząd z logo — wycentrowany */
  .ph-topbar-brand {
    display: flex;
    justify-content: center;
    background: var(--ph-surface);
    padding: 10px var(--ph-section-px) 12px;
  }

  .ph-topbar-logo { justify-content: center; padding: 0; }

  /* Belka opinii — pełna szerokość, granat, bez zaokrągleń */
  .ph-topbar-nav-wrap {
    display: flex;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    justify-content: center;
    border-radius: 0;
    padding: 7px 12px;
    height: auto;
    min-height: 0;
  }

  .ph-topbar-trust {
    justify-content: center;
    font-size: clamp(10px, 3vw, 13px);
    white-space: nowrap;
    overflow: hidden;
  }
}

/* ── STICKY — pill kategorii (Breakdance: bde-header-builder-101-103 → bde-div-101-126 → bde-div-101-139) ── */
/* Pill filtrów — statycznie nad listą produktów (krok 1). Bez sticky, bez nachodzenia na inne sekcje. */
.ph-header,
.ph-header--static {
  position: relative;
  z-index: 200;
  margin: 0;
  padding: 0;
  background: transparent;
  overflow: visible;
}

/* Biały pas: header → hero (kolumna) → konfigurator — gradient z body */
.ph-main-surface {
  background: transparent;
}

.ph-header-sticky {
  position: relative;
  z-index: 300;
  display: flex;
  justify-content: center;
  width: 100%;
  background: transparent;
  overflow: visible;
}

/* Wrapper pod pill + szufladę wyszukiwania */
.ph-header-pill-wrap {
  position: relative;
  width: 100%;
  max-width: var(--ph-container);
  z-index: 3;
}

/* Breakdance: bde-div-101-139 — jasnoniebieski pill, cień tylko w dół */
.ph-header-pill {
  position: relative;
  z-index: 4;
  width: 100%;
  border-radius: var(--ph-radius-pill);
  overflow: hidden;
  background: linear-gradient(
    90deg,
    rgba(237, 244, 255, 1) 0%,
    var(--ph-surface-pill) 50%,
    var(--ph-surface-pill) 81%,
    rgba(237, 244, 255, 1) 100%
  );
  border: none;
  box-shadow:
    var(--ph-shadow),
    inset 0 0 0 1px rgba(0, 81, 148, 0.08);
}

.ph-header-pill-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: stretch;
  gap: 0;
  min-height: 0;
  padding: 0;
}

.ph-cat-nav {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  display: none;
}

.ph-cat-nav-list {
  display: flex;
  align-items: stretch;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 21px;
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.ph-cat-nav-list li {
  position: relative;
  flex-shrink: 0;
}

.ph-filter-list {
  gap: 0;
  justify-content: center;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 0;
  height: 100%;
}

.ph-filter-list::-webkit-scrollbar {
  display: none;
}

.ph-filter-list li {
  display: flex;
  align-items: stretch;
}

.ph-search-toggle {
  flex: 0 0 44px;
  align-self: center;
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 8px 0 0;
  border: none;
  border-radius: 50%;
  background: var(--ph-brand);
  color: var(--ph-text-inverse);
  cursor: pointer;
  transition: background var(--ph-btn-transition), color var(--ph-btn-transition);
}

.ph-search-toggle:hover,
.ph-search-toggle.is-active {
  background: var(--ph-accent);
  color: var(--ph-brand-dark);
}

.ph-search-toggle svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Szuflada — wysuwa się spod pilla (tuck), bez zewnętrznego gapu */
.ph-search-drawer {
  position: absolute;
  top: calc(100% - var(--ph-search-drawer-tuck));
  left: 0;
  right: 0;
  z-index: 1;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s ease;
  pointer-events: none;
}

.ph-search-drawer.is-open {
  grid-template-rows: 1fr;
  pointer-events: auto;
}

.ph-search-drawer-inner {
  min-height: 0;
  overflow: hidden;
  background: var(--ph-surface);
  border-radius: 0 0 10px 10px;
  padding: 0 16px;
  border: 1px solid rgba(0, 81, 148, 0.1);
  border-top: none;
  box-shadow: var(--ph-search-drawer-shadow);
  transition: padding 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
}

.ph-search-drawer:not(.is-open) .ph-search-drawer-inner {
  border-color: transparent;
  box-shadow: none;
}

.ph-search-drawer.is-open .ph-search-drawer-inner {
  padding: var(--ph-search-drawer-inner-pt) 16px 18px;
  border-top: 1px solid rgba(0, 81, 148, 0.1);
  border-radius: 10px;
  box-shadow: var(--ph-search-drawer-shadow);
}

.ph-search-drawer input {
  width: 100%;
  border: 2px solid var(--ph-border);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: var(--ph-font-body);
  font-size: 15px;
  outline: none;
  background: var(--ph-surface);
  color: var(--ph-heading);
}

.ph-search-drawer input::placeholder {
  color: var(--ph-text);
}

.ph-search-drawer input:focus {
  border-color: var(--ph-brand);
  box-shadow: 0 0 0 3px rgba(0, 81, 148, 0.12);
}

.ph-search-drawer #ph-search-results {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  max-height: 280px;
  overflow-y: auto;
}

.ph-search-drawer .ph-search-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 8px;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  border-radius: 8px;
  font-family: inherit;
}

.ph-search-drawer .ph-search-item:hover {
  background: var(--ph-bg);
}

.ph-search-drawer .ph-search-item-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ph-heading);
}

.ph-search-drawer .ph-search-item-meta {
  display: block;
  font-size: 11px;
  color: var(--ph-text);
  margin-top: 2px;
}

.ph-search-drawer .ph-search-empty {
  font-size: 13px;
  color: var(--ph-text);
  padding: 12px 8px;
}

.ph-search-drawer .ph-search-item-icon {
  font-size: 18px;
  flex-shrink: 0;
  width: 40px;
  text-align: center;
}

.ph-search-drawer .ph-search-item-thumb {
  flex-shrink: 0;
  width: 40px;
  height: 48px;
  border-radius: 6px;
  overflow: hidden;
  background: #d8e4f0;
  border: 1px solid rgba(0, 81, 148, 0.1);
  box-shadow: var(--ph-shadow);
}

.ph-search-drawer .ph-search-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.ph-search-drawer .ph-search-item-body {
  min-width: 0;
}

@media (min-width: 640px) {
  .ph-header-pill-inner {
    position: relative;
    justify-content: center;
  }

  .ph-cat-nav {
    display: flex;
    align-self: stretch;
    justify-content: center;
    width: 100%;
    padding-inline: 52px;
    box-sizing: border-box;
  }

  .ph-search-toggle {
    display: flex;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    z-index: 2;
  }
}

@media (max-width: 639px) {
  :root {
    --ph-header-pill-h: 52px;
  }

  .ph-header-pill-wrap,
  .ph-header-pill {
    width: 100%;
  }

  .ph-search-toggle { display: flex; }
  .ph-header-pill-inner { padding-left: 8px; }
  .ph-menu-toggle {
    width: auto;
    flex: 1;
    justify-content: flex-start;
    padding-left: 12px;
  }
}

/* Filtry w pillu — pełna wysokość, bez odstępów; active = żółte tło, hover = podkreślenie */
.ph-filter-list a {
  display: flex;
  align-items: center;
  color: var(--ph-brand);
  font-family: var(--ph-font-heading);
  font-size: var(--ph-cat-nav-font-size, 13px);
  font-weight: 600;
  text-decoration: none;
  padding: 20px 10px;
  position: relative;
  white-space: nowrap;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  transition: color var(--ph-btn-transition), background var(--ph-btn-transition);
}

.ph-filter-list a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--ph-accent);
  transform: scaleX(0);
  transform-origin: center bottom;
  transition: transform var(--ph-btn-transition);
  pointer-events: none;
}

.ph-filter-list a:hover,
.ph-filter-list a:focus-visible {
  color: var(--ph-brand-dark);
}

.ph-filter-list a:hover::after,
.ph-filter-list a:focus-visible::after {
  transform: scaleX(1);
}

/* Aktywny filtr — żółte tło (dedykowana klasa, bez kolizji z .is-active lupy) */
.ph-filter-list li.ph-filter--active > a,
.ph-filter-list a.ph-filter--active,
.ph-filter-list a[aria-current="true"] {
  background-color: var(--ph-accent);
  color: var(--ph-brand-dark);
}

.ph-filter-list li.ph-filter--active > a::after,
.ph-filter-list a.ph-filter--active::after,
.ph-filter-list a[aria-current="true"]::after {
  transform: scaleX(0);
}

.ph-filter-list li.ph-filter--active > a:hover,
.ph-filter-list li.ph-filter--active > a:focus-visible,
.ph-filter-list a.ph-filter--active:hover,
.ph-filter-list a.ph-filter--active:focus-visible,
.ph-filter-list a[aria-current="true"]:hover,
.ph-filter-list a[aria-current="true"]:focus-visible {
  background-color: var(--ph-accent-hover);
  color: var(--ph-brand-dark);
}

/* Legacy: linki kategorii bez .ph-filter-list (fallback) */
.ph-cat-nav-list:not(.ph-filter-list) a {
  display: flex;
  align-items: center;
  color: var(--ph-brand);
  font-family: var(--ph-font-heading);
  font-size: var(--ph-cat-nav-font-size);
  font-weight: 600;
  text-decoration: none;
  padding: 20px 0;
  position: relative;
  white-space: nowrap;
  transition: color var(--ph-btn-transition);
}

.ph-cat-nav-list:not(.ph-filter-list) a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--ph-accent);
  transform: scaleX(0);
  transform-origin: center bottom;
  transition: transform var(--ph-btn-transition);
  pointer-events: none;
}

.ph-cat-nav-list:not(.ph-filter-list) a:hover,
.ph-cat-nav-list:not(.ph-filter-list) a:focus-visible,
.ph-cat-nav-list:not(.ph-filter-list) li.is-active > a {
  color: var(--ph-brand-dark);
}

.ph-cat-nav-list:not(.ph-filter-list) a:hover::after,
.ph-cat-nav-list:not(.ph-filter-list) a:focus-visible::after,
.ph-cat-nav-list:not(.ph-filter-list) li.is-active > a::after {
  transform: scaleX(1);
}

.ph-menu-toggle {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--ph-font-heading);
  font-size: var(--ph-label-sm);
  font-weight: 600;
  color: var(--ph-brand);
  gap: 10px;
}

.ph-menu-toggle-icon {
  width: 22px;
  height: 16px;
  position: relative;
}

.ph-menu-toggle-icon::before,
.ph-menu-toggle-icon::after,
.ph-menu-toggle-icon span {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ph-brand);
  border-radius: 1px;
  transition: transform var(--ph-btn-transition), opacity var(--ph-btn-transition);
}

.ph-menu-toggle-icon::before { top: 0; }
.ph-menu-toggle-icon span { top: 7px; }
.ph-menu-toggle-icon::after { bottom: 0; }

.ph-header.is-open .ph-menu-toggle-icon::before {
  transform: translateY(7px) rotate(45deg);
}
.ph-header.is-open .ph-menu-toggle-icon span { opacity: 0; }
.ph-header.is-open .ph-menu-toggle-icon::after {
  transform: translateY(-7px) rotate(-45deg);
}

/* Szuflada kategorii — animacja grid-template-rows identyczna jak wyszukiwarka */
.ph-cat-drawer {
  position: absolute;
  top: calc(100% - var(--ph-search-drawer-tuck, 4px));
  left: 0;
  right: 0;
  z-index: 2;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
  pointer-events: none;
}

.ph-header.is-open .ph-cat-drawer {
  grid-template-rows: 1fr;
  pointer-events: auto;
}

.ph-cat-drawer-inner {
  min-height: 0;
  overflow: hidden;
  background: var(--ph-surface);
  border-radius: 0 0 10px 10px;
  border: 1px solid rgba(0, 81, 148, 0.1);
  border-top: none;
  box-shadow: var(--ph-search-drawer-shadow, 0 8px 24px rgba(0,81,148,.12));
}

.ph-header:not(.is-open) .ph-cat-drawer-inner {
  border-color: transparent;
  box-shadow: none;
}

.ph-header.is-open .ph-cat-drawer-inner {
  border-top: 1px solid rgba(0, 81, 148, 0.1);
  border-radius: 10px;
}

.ph-cat-drawer-items {
  display: flex;
  flex-direction: column;
  padding: 20px 12px 14px;
  gap: 2px;
}

.ph-cat-drawer a {
  color: var(--ph-brand);
  font-family: var(--ph-font-heading);
  font-size: var(--ph-label-sm);
  font-weight: 600;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: var(--ph-radius-pill);
  border: 1.5px solid transparent;
  transition: color var(--ph-btn-transition), background var(--ph-btn-transition), border-color var(--ph-btn-transition);
}

.ph-cat-drawer a.ph-filter--active {
  background: var(--ph-accent);
  border-color: var(--ph-accent);
  color: var(--ph-brand-dark);
}

.ph-cat-drawer a:hover,
.ph-cat-drawer a:focus-visible {
  color: var(--ph-brand-dark);
  border-color: rgba(0, 81, 148, 0.15);
  background: rgba(0, 81, 148, 0.05);
}

@media (min-width: 640px) {
  .ph-menu-toggle { display: none; }
  .ph-cat-nav { display: block; }
  .ph-cat-drawer { display: none !important; }
}

/* ── HERO ── */
.ph-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ph-hero {
  overflow: visible;
  position: relative;
  z-index: 1;
}

.ph-hero-grid {
  display: block;
  width: min(100%, var(--ph-container));
  max-width: var(--ph-container);
  margin: 0 auto;
  padding: var(--ph-hero-copy-pt) var(--ph-section-px) var(--ph-hero-copy-pb);
  box-sizing: border-box;
}

.ph-hero-cta {
  display: flex;
  justify-content: center;
  margin: var(--ph-hero-cta-mt) 0 0;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
}

.ph-hero-cta .ph-btn {
  align-self: center;
}

/* ── Hero — trzy kolumny zalet (pełna szerokość kontenera 1200px) ── */
.ph-hero-perks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 0;
  list-style: none;
  margin: 0;
  padding: 24px 0 16px;
  width: 100%;
  box-sizing: border-box;
}

.ph-hero-perk {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  gap: 12px;
  min-width: 0;
}

.ph-hero-perk-icon {
  align-self: center;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ph-surface-pill);
  color: var(--ph-brand);
  box-shadow: inset 0 0 0 1px rgba(0, 81, 148, 0.1);
}

.ph-hero-perk-icon svg {
  display: block;
  width: 28px;
  height: 28px;
}


.ph-hero-perk-title {
  display: block;
  width: 100%;
  font-family: var(--ph-font-heading);
  font-size: var(--ph-hero-perk-title);
  font-weight: 700;
  color: var(--ph-heading);
  line-height: 1.3;
}

.ph-hero-perk-desc {
  margin: 0;
  width: 100%;
  font-family: var(--ph-font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--ph-text);
  line-height: 1.55;
}

.ph-hero-perk-hl {
  color: var(--ph-brand);
  font-family: var(--ph-font-heading);
  font-weight: 900;
}

@media (min-width: 901px) {
  .ph-hero-perk + .ph-hero-perk {
    border-left: 1px solid var(--ph-border);
    padding-left: var(--ph-hero-perk-gap);
  }

  .ph-hero-perk:not(:last-child) {
    padding-right: var(--ph-hero-perk-gap);
  }
}

@media (max-width: 900px) {
  .ph-hero-perks {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .ph-hero-perk + .ph-hero-perk {
    border-top: 1px solid var(--ph-border);
    margin-top: 28px;
    padding-top: 28px;
  }
}

@media (max-width: 767px) {
  .ph-hero-perks {
    padding-top: 20px;
  }
}

/* ── Pasek wzorów — full width, marquee w prawo ── */
.ph-pattern-strip {
  width: 100vw;
  max-width: 100vw;
  margin: 0 calc(50% - 50vw);
  padding: var(--ph-shadow-bleed) var(--ph-section-px);
  overflow: hidden;
  box-sizing: border-box;
  background: transparent;
  position: relative;
  z-index: 4;
}

.ph-pattern-strip-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 14px;
  width: max-content;
  will-change: transform;
  padding: 2px 0;
  box-sizing: content-box;
}

.ph-pattern-strip-track--marquee {
  animation: ph-pattern-strip-marquee var(--ph-strip-duration, 48s) linear infinite;
}

.ph-pattern-strip:hover .ph-pattern-strip-track--marquee,
.ph-pattern-strip:focus-within .ph-pattern-strip-track--marquee {
  animation-play-state: paused;
}

@keyframes ph-pattern-strip-marquee {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .ph-pattern-strip-track--marquee {
    animation: none;
    transform: none;
    overflow-x: auto;
    max-width: 100%;
    padding-inline: var(--ph-section-px);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .ph-pattern-strip {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .ph-pattern-strip::-webkit-scrollbar,
  .ph-pattern-strip-track--marquee::-webkit-scrollbar {
    display: none;
  }
}

.ph-pattern-strip-tile {
  flex: 0 0 auto;
  width: clamp(112px, 31vw, 136px);
  aspect-ratio: 1;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--ph-radius-product);
  background: #fff;
  box-shadow: var(--ph-shadow);
  cursor: pointer;
  position: relative;
  overflow: visible;
  transition: box-shadow var(--ph-btn-transition), transform var(--ph-btn-transition), border-color var(--ph-btn-transition);
}

.ph-pattern-strip-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  border-radius: var(--ph-radius-product);
}

.ph-pattern-strip-tile:hover,
.ph-pattern-strip-tile.is-hovered {
  transform: translateY(-2px);
  box-shadow: var(--ph-shadow);
}

.ph-pattern-strip-tile:focus-visible {
  outline: 2px solid var(--ph-brand);
  outline-offset: 2px;
}
