/* Page banner (spec 5.1): breadcrumb, H1, lead + icon-tile illustration / free image / side meta. */
.page-banner {
  padding-block: var(--pb-pt, 48px) var(--pb-pb, 48px);
  font-family: var(--f-body);
}
.page-banner__inner {
  max-width: var(--container, 1440px);
  margin-inline: auto;
  padding-inline: var(--gutter, 64px);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.page-banner__text { flex: 1 1 auto; min-width: 0; max-width: 700px; }
.page-banner__crumbs { display: flex; align-items: center; gap: 6px; margin-bottom: 18px; font-size: 13px; font-weight: 500; color: var(--c-ink); }
.page-banner__crumbs a { color: var(--c-ink); text-decoration: none; }
.page-banner__crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.page-banner__crumbs [aria-current] { color: var(--c-ink); }
.page-banner__crumb-sep { flex-shrink: 0; color: var(--c-ink); }
.page-banner__title {
  margin: 0;
  font-family: var(--f-heading);
  font-weight: var(--w-heading);
  font-size: var(--pb-h1, 84px);
  line-height: 1.1;
  letter-spacing: 0;
  text-transform: none;
  color: inherit;
  overflow-wrap: anywhere;
}
html[dir="rtl"] .page-banner__title { font-family: var(--f-ar); line-height: 1.25; }
.page-banner__lead {
  margin: 20px 0 0;
  max-width: var(--pb-lead-w, 560px);
  font-size: var(--fs-lead, 19px);
  line-height: 1.58;
  color: inherit;
}

/* side meta (cart / wishlist count) */
.page-banner__meta {
  margin-inline-start: auto;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--c-ink);
  font-size: 14px; font-weight: 600;
  white-space: nowrap;
}
.page-banner__meta svg { width: 16px; height: 16px; }

/* illustration 380 x 260 */
.page-banner__art { position: relative; flex: 0 0 380px; width: 380px; height: 260px; }
.page-banner__circle {
  position: absolute; top: 5px; inset-inline-start: 65px;
  width: 250px; height: 250px; border-radius: 50%;
}
.page-banner__tile {
  position: absolute; top: 39px; inset-inline-start: 99px;
  width: 182px; height: 182px; border-radius: 24px;
  display: flex; align-items: center; justify-content: center;
  transform: rotate(5deg);
}
html[dir="rtl"] .page-banner__tile { transform: rotate(-5deg); }
.page-banner__tag {
  position: absolute;
  padding: 9px 18px; border-radius: 999px;
  font-size: 14px; font-weight: 600; line-height: 1.2; white-space: nowrap;
}
.page-banner__tag--1 { top: 22px; inset-inline-end: 2px; transform: rotate(-8deg); }
.page-banner__tag--2 { bottom: 24px; inset-inline-start: 6px; transform: rotate(5deg); }
html[dir="rtl"] .page-banner__tag--1 { transform: rotate(8deg); }
html[dir="rtl"] .page-banner__tag--2 { transform: rotate(-5deg); }
.page-banner__art--image { height: auto; max-height: 260px; display: flex; align-items: center; justify-content: center; }
.page-banner__art--image img { display: block; max-width: 100%; max-height: 260px; width: auto; height: auto; object-fit: contain; }

@media (max-width: 1099px) {
  .page-banner__art { flex-basis: 300px; width: 300px; transform: scale(.8); transform-origin: center; margin-inline: -30px; }
}
@media (max-width: 767px) {
  .page-banner__inner { flex-direction: column; align-items: flex-start; gap: 28px; }
  .page-banner__title { font-size: 30px; line-height: 1.15; }
  .page-banner__lead { font-size: 15px; }
  .page-banner__meta { margin-inline-start: 0; }
  .page-banner__art { display: none; }
  .page-banner { padding-block: 20px !important; }
  .page-banner__crumbs { margin-bottom: 10px; }
  .page-banner__lead { margin-top: 12px; }
  .page-banner__art { align-self: center; flex-basis: auto; transform: scale(.85); margin-inline: 0; margin-block: -20px; }
}

/* Entrance motion for the banner illustration (the drift while scrolling is in assets/scroll-motion.js). */
@keyframes pb-pop { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
.page-banner__circle { animation: pb-pop .8s cubic-bezier(.2,.7,.2,1) both; }
@media (prefers-reduced-motion: reduce) {
  .page-banner__circle { animation: none !important; }
}

/* Hover: the banner illustration comes alive — circle swells, tile spins a touch, tags pop. */
.page-banner__circle, .page-banner__tile, .page-banner__tag { transition: scale .45s cubic-bezier(.2,.7,.2,1), filter .4s ease; }
.page-banner__art:hover .page-banner__circle { scale: 1.04; }
.page-banner__art:hover .page-banner__tile { scale: 1.07; filter: drop-shadow(0 14px 22px rgba(14, 14, 14, .18)); }
.page-banner__art:hover .page-banner__tag--1 { scale: 1.1; }
.page-banner__art:hover .page-banner__tag--2 { scale: 1.1; }
.page-banner__art--image img { transition: scale .5s cubic-bezier(.2,.7,.2,1); }
.page-banner__art--image:hover img { scale: 1.04; }
@media (hover: none), (prefers-reduced-motion: reduce) {
  .page-banner__art:hover .page-banner__circle, .page-banner__art:hover .page-banner__tile,
  .page-banner__art:hover .page-banner__tag--1, .page-banner__art:hover .page-banner__tag--2, .page-banner__art--image:hover img { scale: 1; filter: none; }
}

/* Every part of the banner illustration rotates on its own: the scroll tilt (--sm-rot, from assets/scroll-motion.js)
   plus a light hover turn (--hv) — tile one way, tags opposite ways, the icon inside the tile the other way again. */
.page-banner__tile, .page-banner__tag--1, .page-banner__tag--2 { rotate: calc(var(--sm-rot, 0deg) + var(--hv, 0deg)); }
.page-banner__tile, .page-banner__tag { transition: scale .45s cubic-bezier(.2,.7,.2,1), rotate .3s ease-out, filter .4s ease; }
.page-banner__tile svg { transition: rotate .6s cubic-bezier(.2,.7,.2,1); }
.page-banner__art:hover .page-banner__tile { --hv: 7deg; }
.page-banner__art:hover .page-banner__tag--1 { --hv: -5deg; }
.page-banner__art:hover .page-banner__tag--2 { --hv: 5deg; }
.page-banner__art:hover .page-banner__tile svg { rotate: -12deg; }
@media (hover: none), (prefers-reduced-motion: reduce) {
  .page-banner__art:hover .page-banner__tile, .page-banner__art:hover .page-banner__tag--1, .page-banner__art:hover .page-banner__tag--2 { --hv: 0deg; }
  .page-banner__art:hover .page-banner__tile svg { rotate: 0deg; }
}
