/* Best4Shop — garment-world inspired storefront */
:root {
  --b4s-brand: #ea580c;
  --b4s-brand-dark: #c2410c;
  --b4s-pink: #be123c;
  --b4s-violet: #9f1239;
  --b4s-ink: #0f172a;
  --b4s-muted: #64748b;
  --b4s-line: #e2e8f0;
  --b4s-bg: #ffffff;
  --b4s-soft: #fff7ed;
  --b4s-radius: .9rem;
  --b4s-shadow: 0 8px 24px rgba(15, 23, 42, .06);
  --b4s-wrap: 74rem;
  --b4s-grad: linear-gradient(135deg, #ea580c 0%, #be123c 100%);
  --b4s-text-grad: linear-gradient(135deg, #ea580c, #be123c);
  --b4s-sale: #e11d48;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--b4s-ink);
  background: var(--b4s-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5rem; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }

.b4s-wrap { width: min(100% - 2rem, var(--b4s-wrap)); margin-inline: auto; }
.b4s-main { min-height: 50vh; }

.b4s-eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--b4s-brand);
  margin: 0 0 .75rem;
}
.b4s-link { font-weight: 600; color: var(--b4s-brand-dark); }
.b4s-link:hover { color: var(--b4s-pink); }

.b4s-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .85rem 1.35rem;
  border-radius: 999px;
  border: 0;
  background: var(--b4s-grad);
  color: #fff !important;
  font-weight: 700;
  font-size: .95rem;
  box-shadow: 0 8px 20px rgba(249, 115, 22, .28);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
  cursor: pointer;
}
.b4s-btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.b4s-btn--sm { padding: .55rem 1rem; font-size: .85rem; box-shadow: none; }
.b4s-btn--ghost {
  background: rgba(255,255,255,.16);
  backdrop-filter: blur(8px);
  box-shadow: none;
  border: 1px solid rgba(255,255,255,.35);
}
.b4s-btn--ghost-dark {
  background: #fff;
  color: var(--b4s-ink) !important;
  border: 1px solid #e5e7eb;
  box-shadow: none;
}
.b4s-btn--light {
  background: #fff;
  color: var(--b4s-brand-dark) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

/* Top bar + header */
.b4s-topbar {
  background: #111827;
  color: #d1d5db;
  font-size: .75rem;
}
.b4s-topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .45rem 0;
}
.b4s-topbar__links { display: flex; gap: 1rem; }
.b4s-topbar a:hover { color: #fff; }

.b4s-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: #fff;
  border-bottom: 1px solid var(--b4s-line);
}
.b4s-header__inner,
.b4s-header__row {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.25rem;
}
.b4s-logo {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  flex-shrink: 0;
}
.b4s-logo__mark { width: 2.35rem; height: 2.35rem; border-radius: .65rem; }
.b4s-logo__text {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.03em;
}
.b4s-logo__text span {
  background: var(--b4s-text-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.b4s-logo .custom-logo-link img { max-height: 2.5rem; width: auto; }

.b4s-search--header {
  flex: 1;
  max-width: 28rem;
  display: none;
  align-items: center;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: .15rem .15rem .15rem 1rem;
}
.b4s-search--header input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  font: inherit;
  min-width: 0;
}
.b4s-search--header button {
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  border-radius: 999px;
  background: var(--b4s-grad);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.b4s-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.b4s-nav__list {
  display: flex;
  gap: 1.1rem;
  align-items: center;
}
.b4s-nav__list a {
  font-weight: 600;
  font-size: .92rem;
  color: #374151;
}
.b4s-nav__list a:hover,
.b4s-nav__list .current-menu-item > a { color: var(--b4s-brand); }

.b4s-nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  margin-left: auto;
  flex-direction: column;
  justify-content: center;
  gap: .35rem;
  cursor: pointer;
}
.b4s-nav-toggle span {
  display: block;
  height: 2px;
  width: 1.35rem;
  background: var(--b4s-ink);
  border-radius: 2px;
  margin-inline: auto;
}

/* Hero */
.b4s-hero {
  background: var(--b4s-grad);
  color: #fff;
  overflow: hidden;
  position: relative;
}
.b4s-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% 40%;
  height: 80%;
  background: radial-gradient(circle, rgba(255,255,255,.18), transparent 60%);
  pointer-events: none;
}
.b4s-hero__inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 2rem;
  align-items: center;
  padding: 4.5rem 0 4rem;
  position: relative;
  z-index: 1;
}
.b4s-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 900;
  max-width: 14ch;
}
.b4s-hero .b4s-eyebrow { color: rgba(255,255,255,.85); }
.b4s-hero__sub {
  font-size: 1.05rem;
  opacity: .92;
  max-width: 36rem;
  margin-bottom: 1.5rem;
}
.b4s-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.b4s-hero__visual {
  position: relative;
  min-height: 18rem;
}
.b4s-hero-card {
  position: absolute;
  border-radius: 1.25rem;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(8px);
  box-shadow: 0 20px 40px rgba(0,0,0,.15);
  animation: b4s-float 4s ease-in-out infinite;
}
.b4s-hero-card--1 { width: 58%; aspect-ratio: 1; left: 8%; top: 8%; }
.b4s-hero-card--2 { width: 42%; aspect-ratio: 1; right: 4%; top: 28%; animation-delay: .6s; }
.b4s-hero-card--3 { width: 36%; aspect-ratio: 1.1; left: 28%; bottom: 0; animation-delay: 1.2s; }

@keyframes b4s-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Sections */
.b4s-section { padding: 4rem 0; }
.b4s-section--muted { background: linear-gradient(180deg, #fff7ed 0%, #faf5ff 100%); }
.b4s-section__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.b4s-section__head--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.b4s-section__head h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; }

.b4s-pagehead {
  background: linear-gradient(135deg, #fff7ed, #fdf2f8 55%, #f5f3ff);
  padding: 2.75rem 0 2rem;
  border-bottom: 1px solid var(--b4s-line);
}
.b4s-pagehead h1 { font-size: clamp(1.75rem, 3vw, 2.4rem); font-weight: 800; }

.b4s-grid { display: grid; gap: 1.25rem; }
.b4s-grid--products { grid-template-columns: repeat(4, 1fr); }
.b4s-grid--3 { grid-template-columns: repeat(3, 1fr); }
.b4s-grid--2 { grid-template-columns: repeat(2, 1fr); }

.b4s-card {
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 1.15rem;
  overflow: hidden;
  box-shadow: var(--b4s-shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.b4s-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(17,24,39,.12);
}
.b4s-card__media {
  display: block;
  aspect-ratio: 1;
  background: #f9fafb;
  overflow: hidden;
}
.b4s-card__media img { width: 100%; height: 100%; object-fit: cover; }
.b4s-card__media--wide { aspect-ratio: 16/9; }
.b4s-card__media--review { aspect-ratio: 16/10; margin-top: .85rem; border-radius: .75rem; overflow: hidden; }
.b4s-card__placeholder {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 10rem;
  background: var(--b4s-grad);
  opacity: .85;
}
.b4s-card__placeholder--blog { min-height: 8rem; }
.b4s-card__body { padding: 1rem 1.05rem 1.15rem; }
.b4s-card__title { font-size: 1rem; font-weight: 700; margin: 0 0 .5rem; }
.b4s-card__title a:hover { color: var(--b4s-brand); }
.b4s-card__meta { font-size: .78rem; color: var(--b4s-muted); font-weight: 600; }
.b4s-card__excerpt { color: #4b5563; font-size: .92rem; margin: 0; }
.b4s-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-top: .75rem;
}
.b4s-price {
  font-weight: 800;
  color: var(--b4s-brand-dark);
  font-size: 1.05rem;
}
.b4s-price__old {
  margin-left: .5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #9ca3af;
  text-decoration: line-through;
}
.b4s-params {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  gap: .35rem;
}
.b4s-params li {
  font-size: .95rem;
  color: #374151;
}
.b4s-product__content .b4s-params { margin-top: .5rem; }
.b4s-stars { color: #f59e0b; letter-spacing: .05em; font-size: .95rem; margin-bottom: .4rem; }
.b4s-stars--lg { font-size: 1.25rem; }

.b4s-pillar {
  background: #fff;
  border-radius: 1.15rem;
  padding: 1.5rem;
  border: 1px solid #f3f4f6;
  box-shadow: var(--b4s-shadow);
}
.b4s-pillar__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: .75rem;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  background: var(--b4s-grad);
  margin-bottom: 1rem;
}
.b4s-pillar h3 { font-size: 1.1rem; }
.b4s-pillar p { color: #4b5563; margin: 0; }

.b4s-cta {
  background: var(--b4s-grad);
  color: #fff;
  padding: 4rem 0;
}
.b4s-cta__inner {
  text-align: center;
  max-width: 40rem;
}
.b4s-cta h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
.b4s-cta p { opacity: .92; margin-bottom: 1.25rem; }

.b4s-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  background: #fff;
  border: 1px dashed #e5e7eb;
  border-radius: 1rem;
  color: var(--b4s-muted);
}

.b4s-product { padding: 2.5rem 0 4rem; }
.b4s-product__grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 2rem;
  align-items: start;
}
.b4s-product__media {
  border-radius: 1.25rem;
  overflow: hidden;
  background: #f9fafb;
  border: 1px solid var(--b4s-line);
}
.b4s-product__media img { width: 100%; }
.b4s-product__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.25rem 0 .75rem; }
.b4s-disclaimer { font-size: .8rem; color: var(--b4s-muted); }

.b4s-prose { max-width: 48rem; }
.b4s-prose--page { max-width: none; width: 100%; }
.b4s-prose h1 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; margin-bottom: 1rem; }
.b4s-prose--page .entry-content {
  max-width: none;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--b4s-ink);
}
.b4s-prose--page .entry-content p { margin: 0 0 1rem; max-width: none; }
.b4s-featured { margin: 1.25rem 0 1.5rem; border-radius: 1rem; overflow: hidden; }
.entry-content > *:last-child { margin-bottom: 0; }

.b4s-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.b4s-widget { margin-bottom: 1.25rem; padding: 1rem; background: #fff; border: 1px solid var(--b4s-line); border-radius: .9rem; }
.b4s-widget__title { font-size: 1rem; margin-bottom: .5rem; }

.b4s-pagination { margin-top: 2rem; display: flex; justify-content: center; }
.b4s-pagination .nav-links { display: flex; gap: .5rem; flex-wrap: wrap; }
.b4s-pagination a,
.b4s-pagination span {
  display: inline-flex;
  min-width: 2.4rem;
  height: 2.4rem;
  align-items: center;
  justify-content: center;
  border-radius: .65rem;
  border: 1px solid #e5e7eb;
  padding: 0 .65rem;
  font-weight: 600;
}
.b4s-pagination .current { background: var(--b4s-grad); color: #fff; border-color: transparent; }

/* Footer */
.b4s-footer {
  background: #111827;
  color: #d1d5db;
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}
.b4s-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #1f2937;
}
.b4s-footer .b4s-logo__text { color: #fff; }
.b4s-footer h3 { color: #fff; font-size: .95rem; margin-bottom: .85rem; }
.b4s-footer__menu { display: grid; gap: .45rem; }
.b4s-footer__menu a:hover { color: #fb923c; }
.b4s-footer__brand p { color: #9ca3af; max-width: 28rem; }
.b4s-footer__copy {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.25rem;
  font-size: .8rem;
  color: #9ca3af;
}

/* Responsive */
@media (min-width: 900px) {
  .b4s-search--header { display: flex; }
  .b4s-layout { grid-template-columns: 1fr 17rem; }
}

@media (max-width: 1100px) {
  .b4s-grid--products { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .b4s-topbar__links { display: none; }
  .b4s-hero__inner { grid-template-columns: 1fr; padding: 3rem 0 2.5rem; }
  .b4s-hero__visual { min-height: 12rem; max-width: 22rem; }
  .b4s-grid--products,
  .b4s-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .b4s-product__grid,
  .b4s-footer__grid { grid-template-columns: 1fr; }
  .b4s-nav-toggle { display: flex; }
  .b4s-nav {
    position: fixed;
    inset: 0 0 auto 0;
    top: 0;
    margin: 0;
    padding: 5.5rem 1.25rem 1.5rem;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    transform: translateY(-110%);
    transition: transform .25s ease;
    border-bottom: 1px solid var(--b4s-line);
    box-shadow: var(--b4s-shadow);
  }
  .b4s-nav.is-open { transform: translateY(0); }
  .b4s-nav__list { flex-direction: column; align-items: flex-start; gap: .85rem; }
  body.b4s-nav-open { overflow: hidden; }
}

@media (max-width: 560px) {
  .b4s-grid--products,
  .b4s-grid--3,
  .b4s-grid--2,
  .b4s-grid--tiles { grid-template-columns: 1fr; }
  .b4s-section__head { flex-direction: column; align-items: flex-start; }
  .b4s-logo__text { font-size: 1.1rem; }
  .b4s-pdp__cta { flex-direction: column; }
  .b4s-pdp__cta .b4s-btn { width: 100%; }
}

/* ——— Catalog tiles & PDP (commerce, not landing) ——— */
.b4s-logo__mark { display: grid; place-items: center; line-height: 0; }
.b4s-logo__mark svg { display: block; }

.b4s-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  align-items: center;
  font-size: .82rem;
  color: var(--b4s-muted);
  margin-bottom: 1rem;
}
.b4s-crumbs a:hover { color: var(--b4s-brand); }
.b4s-crumbs span:last-child {
  color: var(--b4s-ink);
  max-width: 40ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.b4s-badge {
  display: inline-flex;
  align-items: center;
  padding: .2rem .5rem;
  border-radius: .4rem;
  font-size: .75rem;
  font-weight: 800;
  line-height: 1.2;
}
.b4s-badge--sale {
  background: var(--b4s-sale);
  color: #fff;
}

.b4s-cathead {
  background: #f8fafc;
  border-bottom: 1px solid var(--b4s-line);
  padding: 1.75rem 0 1.5rem;
}
.b4s-cathead__inner {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: end;
  flex-wrap: wrap;
}
.b4s-cathead h1 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  margin: 0 0 .35rem;
}
.b4s-cathead p { margin: 0; color: var(--b4s-muted); max-width: 36rem; }
.b4s-search--cat {
  display: flex;
  gap: .5rem;
  background: #fff;
  border: 1px solid var(--b4s-line);
  border-radius: .75rem;
  padding: .35rem .35rem .35rem .9rem;
  min-width: min(100%, 22rem);
}
.b4s-search--cat input {
  flex: 1;
  border: 0;
  outline: none;
  font: inherit;
  min-width: 0;
}
.b4s-search--cat button {
  border: 0;
  border-radius: .55rem;
  background: var(--b4s-ink);
  color: #fff;
  font-weight: 700;
  padding: .65rem 1rem;
  cursor: pointer;
}
.b4s-chips-wrap {
  background: #fff;
  border-bottom: 1px solid var(--b4s-line);
  padding: .85rem 0;
  position: sticky;
  top: 4.25rem;
  z-index: 20;
}
.b4s-chips {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  padding-bottom: .15rem;
  scrollbar-width: thin;
}
.b4s-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .45rem .85rem;
  border-radius: 999px;
  border: 1px solid var(--b4s-line);
  background: #fff;
  font-size: .82rem;
  font-weight: 650;
  color: #334155;
  white-space: nowrap;
}
.b4s-chip span {
  font-size: .72rem;
  color: var(--b4s-muted);
  font-weight: 700;
}
.b4s-chip:hover,
.b4s-chip.is-active {
  border-color: var(--b4s-ink);
  background: var(--b4s-ink);
  color: #fff;
}
.b4s-chip.is-active span,
.b4s-chip:hover span { color: rgba(255,255,255,.75); }

.b4s-tile__cat {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--b4s-brand-dark);
}
.b4s-tile__cat:hover { text-decoration: underline; }

.b4s-param-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin: .15rem 0 .35rem;
}
.b4s-param-chips span {
  font-size: .72rem;
  background: #f1f5f9;
  color: #475569;
  border-radius: .45rem;
  padding: .2rem .45rem;
  line-height: 1.3;
}
.b4s-param-chips em {
  font-style: normal;
  color: #94a3b8;
  margin-right: .15rem;
}

.b4s-specs__pill {
  display: inline-flex;
  padding: .25rem .6rem;
  border-radius: .5rem;
  background: #f1f5f9;
  font-weight: 700;
}
.b4s-pdp__cats {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 0 0 1rem;
}

.b4s-grid--tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}

.b4s-tile {
  background: #fff;
  border: 1px solid var(--b4s-line);
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease;
}
.b4s-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--b4s-shadow);
}
.b4s-tile__media {
  position: relative;
  display: block;
  aspect-ratio: 3/4;
  background: #f1f5f9;
  overflow: hidden;
}
.b4s-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.b4s-tile__ph {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #e2e8f0, #f8fafc);
}
.b4s-tile__media .b4s-badge {
  position: absolute;
  top: .65rem;
  left: .65rem;
  z-index: 1;
}
.b4s-tile__body {
  padding: .85rem .9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  flex: 1;
}
.b4s-tile__brand {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--b4s-muted);
}
.b4s-tile__title {
  font-size: .95rem;
  font-weight: 650;
  margin: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
}
.b4s-tile__title a:hover { color: var(--b4s-brand-dark); }
.b4s-tile__row {
  margin-top: auto;
  padding-top: .55rem;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: .5rem;
}
.b4s-tile__prices { display: flex; flex-direction: column; gap: .1rem; }
.b4s-tile__price { font-weight: 800; font-size: 1.05rem; color: var(--b4s-ink); }
.b4s-tile__old {
  font-size: .8rem;
  color: #94a3b8;
  text-decoration: line-through;
}
.b4s-tile__buy {
  flex-shrink: 0;
  font-size: .8rem;
  font-weight: 700;
  color: #fff;
  background: var(--b4s-ink);
  padding: .45rem .7rem;
  border-radius: .55rem;
}
.b4s-tile__buy:hover { background: var(--b4s-brand-dark); }

.b4s-pdp { padding: 1.25rem 0 3.5rem; background: #fff; }
.b4s-pdp__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 2rem;
  align-items: start;
}
.b4s-pdp__stage {
  position: relative;
  background: #f8fafc;
  border: 1px solid var(--b4s-line);
  border-radius: 1.15rem;
  overflow: hidden;
  min-height: 28rem;
  display: grid;
  place-items: center;
}
.b4s-pdp__stage .b4s-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1;
}
.b4s-pdp__img {
  width: 100%;
  height: 100%;
  max-height: 36rem;
  object-fit: contain;
  background: #fff;
}
.b4s-pdp__empty {
  color: var(--b4s-muted);
  padding: 3rem 1.5rem;
  text-align: center;
}
.b4s-pdp__brand {
  margin: 0 0 .35rem;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--b4s-muted);
}
.b4s-pdp__title {
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  font-weight: 800;
  margin: 0 0 .4rem;
  letter-spacing: -.02em;
}
.b4s-pdp__sku {
  margin: 0 0 1.1rem;
  font-size: .85rem;
  color: var(--b4s-muted);
}
.b4s-pdp__pricebox {
  background: #f8fafc;
  border: 1px solid var(--b4s-line);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  margin-bottom: 1.25rem;
}
.b4s-pdp__prices {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .65rem;
}
.b4s-pdp__price {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -.03em;
}
.b4s-pdp__old {
  font-size: 1.1rem;
  color: #94a3b8;
  text-decoration: line-through;
}
.b4s-pdp__note {
  margin: .55rem 0 0;
  font-size: .82rem;
  color: var(--b4s-muted);
}
.b4s-pdp__specs h2,
.b4s-pdp__desc h2 {
  font-size: 1rem;
  font-weight: 800;
  margin: 0 0 .75rem;
}
.b4s-specs { margin: 0 0 1.25rem; }
.b4s-specs__row {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: .75rem;
  padding: .55rem 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: .92rem;
}
.b4s-specs__row dt { color: var(--b4s-muted); }
.b4s-specs__row dd { margin: 0; font-weight: 600; }
.b4s-pdp__cta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin: 1.25rem 0 .75rem;
}
.b4s-btn--buy {
  min-width: 14rem;
  background: #16a34a;
  box-shadow: 0 8px 20px rgba(22, 163, 74, .25);
}
.b4s-btn--buy:hover { filter: brightness(1.05); background: #15803d; }
.b4s-pdp__desc {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--b4s-line);
  max-width: 48rem;
}

@media (max-width: 1100px) {
  .b4s-grid--tiles { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .b4s-grid--tiles { grid-template-columns: repeat(2, 1fr); }
  .b4s-pdp__grid { grid-template-columns: 1fr; }
  .b4s-pdp__stage { min-height: 18rem; }
  .b4s-specs__row { grid-template-columns: 7rem 1fr; }
}

/* Advertisers + brands hierarchy */
.b4s-merchants-wrap,
.b4s-brands-wrap {
  background: #fff;
  border-bottom: 1px solid var(--b4s-line);
  padding: 1.25rem 0 1rem;
}
.b4s-merchants-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
}
.b4s-merchants-head p {
  margin: .2rem 0 .85rem;
  color: var(--b4s-muted);
  font-size: .88rem;
}
.b4s-merchants {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
  gap: .75rem;
}
.b4s-merchant-card {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .65rem .75rem;
  border: 1px solid var(--b4s-line);
  border-radius: .9rem;
  background: #f8fafc;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.b4s-merchant-card:hover,
.b4s-merchant-card.is-active {
  border-color: var(--b4s-ink);
  box-shadow: var(--b4s-shadow);
  background: #fff;
}
.b4s-merchant-card__logo {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: .65rem;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--b4s-line);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.b4s-merchant-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.b4s-merchant-card__fallback {
  font-weight: 800;
  color: var(--b4s-brand-dark);
}
.b4s-merchant-card__meta {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  min-width: 0;
}
.b4s-merchant-card__meta strong {
  font-size: .88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.b4s-merchant-card__meta em {
  font-style: normal;
  font-size: .72rem;
  color: var(--b4s-muted);
}
.b4s-brands {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.b4s-brand-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .7rem .4rem .4rem;
  border: 1px solid var(--b4s-line);
  border-radius: 999px;
  background: #f8fafc;
  font-size: .82rem;
}
.b4s-brand-chip img,
.b4s-brand-chip__fallback {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--b4s-line);
  display: grid;
  place-items: center;
  font-size: .7rem;
  font-weight: 800;
}
.b4s-brand-chip strong { font-weight: 700; }
.b4s-brand-chip em {
  font-style: normal;
  color: var(--b4s-muted);
  font-size: .72rem;
}
.b4s-brand-chip.is-active,
.b4s-brand-chip:hover {
  border-color: var(--b4s-ink);
  background: #fff;
}
.b4s-merchant-hero {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.b4s-merchant-hero__logo {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 1rem;
  border: 1px solid var(--b4s-line);
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}
.b4s-merchant-hero__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.b4s-tile__shop {
  position: absolute;
  top: .55rem;
  right: .55rem;
  z-index: 2;
  width: 2rem;
  height: 2rem;
  border-radius: .45rem;
  background: #fff;
  border: 1px solid rgba(15,23,42,.08);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(15,23,42,.08);
}
.b4s-tile__shop img { width: 100%; height: 100%; object-fit: contain; }
.b4s-tile__shop em { font-style: normal; font-size: .75rem; font-weight: 800; }
.b4s-tile__meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .65rem;
  align-items: center;
}
.b4s-tile__vendor {
  display: inline-block;
  font-size: .75rem;
  color: var(--b4s-muted);
  margin: 0 0 .35rem;
}
a.b4s-tile__vendor:hover { color: var(--b4s-brand-dark); }
.b4s-pdp__advertiser {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin: 0 0 .75rem;
  padding: .55rem .7rem;
  border: 1px solid var(--b4s-line);
  border-radius: .85rem;
  background: #f8fafc;
  max-width: 22rem;
}
.b4s-pdp__advertiser img {
  width: 2.4rem;
  height: 2.4rem;
  object-fit: contain;
  border-radius: .45rem;
  background: #fff;
}
.b4s-pdp__advertiser em {
  display: block;
  font-style: normal;
  font-size: .7rem;
  color: var(--b4s-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.b4s-pdp__advertiser strong { font-size: .95rem; }
.b4s-pdp__vendor {
  margin: 0 0 .5rem;
  font-size: .85rem;
  color: var(--b4s-muted);
}
.b4s-pdp__vendor-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin: 0 0 .65rem;
  font-size: .9rem;
  color: var(--b4s-ink);
  font-weight: 600;
}
.b4s-pdp__vendor-link img {
  width: 1.6rem;
  height: 1.6rem;
  object-fit: contain;
  border-radius: .35rem;
  border: 1px solid var(--b4s-line);
  background: #fff;
}
.b4s-pdp__vendor-link:hover { color: var(--b4s-brand-dark); }
.b4s-pdp__content {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--b4s-line);
  max-width: 48rem;
}

/* Catalog filters */
.b4s-catalog-layout {
  display: grid;
  grid-template-columns: 16.5rem minmax(0, 1fr);
  gap: 1.5rem 1.75rem;
  align-items: start;
}
.b4s-filters {
  position: sticky;
  top: 1rem;
  background: #fff;
  border: 1px solid var(--b4s-line);
  border-radius: 1rem;
  padding: .85rem 1rem 1rem;
  max-height: calc(100vh - 2rem);
  overflow: auto;
}
.b4s-filters__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .65rem;
}
.b4s-filters__head strong { font-size: .95rem; }
.b4s-filters__close {
  display: none;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--b4s-muted);
}
.b4s-filter {
  border-top: 1px solid #f1f5f9;
  padding: .55rem 0;
}
.b4s-filter summary {
  cursor: pointer;
  font-weight: 700;
  font-size: .88rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.b4s-filter summary::-webkit-details-marker { display: none; }
.b4s-filter summary::after {
  content: '+';
  color: var(--b4s-muted);
  font-weight: 500;
}
.b4s-filter[open] summary::after { content: '−'; }
.b4s-filter__body {
  margin-top: .55rem;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.b4s-filter__scroll {
  max-height: 11rem;
  overflow: auto;
  padding-right: .25rem;
}
.b4s-filter__price {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
}
.b4s-filter__price label {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  font-size: .75rem;
  color: var(--b4s-muted);
}
.b4s-filter__price input {
  width: 100%;
  border: 1px solid var(--b4s-line);
  border-radius: .55rem;
  padding: .45rem .55rem;
  font: inherit;
}
.b4s-check {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: .45rem;
  align-items: start;
  font-size: .84rem;
  cursor: pointer;
}
.b4s-check em {
  font-style: normal;
  color: var(--b4s-muted);
  font-size: .72rem;
}
.b4s-filters__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  align-items: center;
  margin-top: .85rem;
  padding-top: .75rem;
  border-top: 1px solid #f1f5f9;
}
.b4s-catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1rem;
  align-items: center;
  margin-bottom: 1rem;
}
.b4s-filters-toggle { display: none; position: relative; }
.b4s-filters-toggle__dot {
  position: absolute;
  top: .35rem;
  right: .35rem;
  width: .45rem;
  height: .45rem;
  border-radius: 999px;
  background: var(--b4s-brand);
}
.b4s-catalog-toolbar__count {
  margin: 0;
  color: var(--b4s-muted);
  font-size: .88rem;
  flex: 1;
}
.b4s-catalog-sort select {
  border: 1px solid var(--b4s-line);
  border-radius: .55rem;
  padding: .45rem .7rem;
  font: inherit;
  background: #fff;
}
.b4s-filters-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .4);
  z-index: 40;
}

@media (max-width: 980px) {
  .b4s-catalog-layout {
    grid-template-columns: 1fr;
  }
  .b4s-filters-toggle { display: inline-flex; }
  .b4s-filters {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(20rem, 92vw);
    z-index: 50;
    max-height: none;
    border-radius: 0;
    transform: translateX(-105%);
    transition: transform .2s ease;
  }
  .b4s-filters.is-open { transform: translateX(0); }
  .b4s-filters__close { display: inline-block; }
  body.b4s-filters-open { overflow: hidden; }
}


/* ===== v1.6 storefront: mega, subnav, sliders, zoom ===== */
.b4s-header__row {
  display: flex;
  align-items: center;
  gap: .85rem;
  min-height: 4.25rem;
}
@media (min-width: 900px) {
  .b4s-search--header { display: flex; }
}
.b4s-catalog-btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .65rem 1rem;
  border: 0;
  border-radius: .65rem;
  background: var(--b4s-grad);
  color: #fff;
  font-weight: 700;
  font-size: .92rem;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(234, 88, 12, .28);
}
.b4s-catalog-btn.is-open {
  background: #0f172a;
  box-shadow: none;
}
.b4s-catalog-btn__ico {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 1rem;
  position: relative;
}
.b4s-catalog-btn__ico span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.b4s-catalog-btn.is-open .b4s-catalog-btn__ico span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
.b4s-catalog-btn.is-open .b4s-catalog-btn__ico span:nth-child(2) {
  opacity: 0;
}
.b4s-catalog-btn.is-open .b4s-catalog-btn__ico span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.b4s-subnav {
  border-top: 1px solid var(--b4s-line);
  background: #fff;
}
.b4s-subnav__inner {
  display: flex;
  gap: .15rem 1.25rem;
  overflow-x: auto;
  padding: .55rem 0 .65rem;
  scrollbar-width: thin;
}
.b4s-subnav__item {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  white-space: nowrap;
  font-size: .84rem;
  font-weight: 700;
  color: #be123c;
}
.b4s-subnav__item:hover { color: var(--b4s-brand-dark); }
.b4s-subnav__ico {
  width: .95rem;
  height: .95rem;
  border-radius: .25rem;
  background: currentColor;
  opacity: .85;
  mask: linear-gradient(#000 0 0);
}
.b4s-subnav__item[data-icon="tag"] .b4s-subnav__ico { clip-path: polygon(20% 10%, 80% 10%, 100% 50%, 80% 90%, 20% 90%, 0 50%); }
.b4s-subnav__item[data-icon="sale"] .b4s-subnav__ico,
.b4s-subnav__item[data-icon="pct"] .b4s-subnav__ico,
.b4s-subnav__item[data-icon="new"] .b4s-subnav__ico,
.b4s-subnav__item[data-icon="fire"] .b4s-subnav__ico,
.b4s-subnav__item[data-icon="blog"] .b4s-subnav__ico,
.b4s-subnav__item[data-icon="star"] .b4s-subnav__ico {
  border-radius: 999px;
}

/* LeoMax-style mega under header */
.b4s-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: #fff;
}
.b4s-mega-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .28);
  z-index: 70;
}
.b4s-mega {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 90;
  background: #fff;
  border-top: 1px solid var(--b4s-line);
  box-shadow: 0 18px 40px rgba(15, 23, 42, .12);
}
.b4s-mega[hidden],
.b4s-mega-backdrop[hidden] {
  display: none !important;
}
.b4s-mega__inner { padding: 0; }
.b4s-mega__empty {
  padding: 1.25rem 0;
  color: var(--b4s-muted);
}
.b4s-mega__cols {
  display: grid;
  grid-template-columns: minmax(14rem, 17rem) minmax(14rem, 1fr) minmax(12rem, 16rem);
  min-height: 22rem;
  max-height: min(70vh, 32rem);
}
.b4s-mega__roots {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  padding: .75rem .5rem .9rem 0;
  border-right: 1px solid var(--b4s-line);
  overflow: auto;
}
.b4s-mega__root {
  display: flex;
  align-items: center;
  gap: .65rem;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: .7rem .75rem;
  border-radius: .55rem;
  color: var(--b4s-ink);
  font: inherit;
  font-weight: 600;
  font-size: .92rem;
  cursor: pointer;
  text-decoration: none;
}
.b4s-mega__root:hover,
.b4s-mega__root.is-active {
  background: #f1f5f9;
}
.b4s-mega__root-ico {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  border-radius: .3rem;
  background: linear-gradient(135deg, #fdba74, #fb7185);
  opacity: .9;
}
.b4s-mega__root-label { flex: 1; min-width: 0; }
.b4s-mega__chev {
  width: .45rem;
  height: .45rem;
  border-right: 2px solid #94a3b8;
  border-bottom: 2px solid #94a3b8;
  transform: rotate(-45deg);
  flex-shrink: 0;
}
.b4s-mega__root--sale {
  color: #e11d48;
  margin-top: .35rem;
}
.b4s-mega__root--sale .b4s-mega__root-ico {
  background: #e11d48;
}
.b4s-mega__all {
  display: block;
  margin-top: .5rem;
  padding: .55rem .75rem;
  font-size: .88rem;
  font-weight: 700;
  color: var(--b4s-brand-dark);
}
.b4s-mega__mid {
  overflow: auto;
  padding: .85rem 1.1rem 1rem;
  border-right: 1px solid var(--b4s-line);
}
.b4s-mega__panel[hidden] { display: none !important; }
.b4s-mega__panel-title {
  display: inline-block;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: .75rem;
  color: var(--b4s-ink);
}
.b4s-mega__panel-title:hover { color: var(--b4s-brand-dark); }
.b4s-mega__subs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .1rem;
}
.b4s-mega__subs > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .45rem .35rem;
  color: #334155;
  font-size: .92rem;
  border-radius: .4rem;
}
.b4s-mega__subs > li > a:hover {
  background: #f8fafc;
  color: var(--b4s-brand-dark);
}
.b4s-mega__grand {
  list-style: none;
  margin: 0 0 .35rem .85rem;
  padding: 0;
  display: none;
}
.b4s-mega__subs > li.has-kids:hover > .b4s-mega__grand,
.b4s-mega__subs > li.has-kids:focus-within > .b4s-mega__grand {
  display: block;
}
.b4s-mega__grand a {
  display: block;
  padding: .28rem .35rem;
  font-size: .86rem;
  color: #64748b;
}
.b4s-mega__grand a:hover { color: var(--b4s-brand-dark); }
.b4s-mega__aside {
  padding: .95rem 0 1rem 1.1rem;
  overflow: auto;
}
.b4s-mega__aside h3 {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--b4s-muted);
  margin: 0 0 .65rem;
}
.b4s-mega__brands {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.b4s-mega__brands a {
  display: block;
  padding: .35rem 0;
  color: #334155;
  font-size: .92rem;
}
.b4s-mega__brands a:hover { color: var(--b4s-brand-dark); }
.b4s-mega__aside-more {
  display: inline-block;
  margin-top: .85rem;
  font-size: .88rem;
  font-weight: 700;
  color: var(--b4s-brand-dark);
}
.b4s-mega__hint {
  margin: 0;
  color: var(--b4s-muted);
  font-size: .9rem;
}
body.b4s-mega-open { overflow: hidden; }

@media (max-width: 900px) {
  .b4s-mega__cols {
    grid-template-columns: 1fr;
    max-height: min(78vh, 36rem);
  }
  .b4s-mega__roots,
  .b4s-mega__mid {
    border-right: 0;
    border-bottom: 1px solid var(--b4s-line);
  }
  .b4s-mega__aside { padding-left: 0; }
}

.b4s-hero-slider { position: relative; overflow: hidden; }
.b4s-hero-slide {
  display: none;
  position: relative;
  background: var(--b4s-grad);
  color: #fff;
  min-height: 22rem;
  overflow: hidden;
}
.b4s-hero-slide.is-active { display: block; }
.b4s-hero-slide--sale { background: linear-gradient(135deg, #be123c, #9f1239); }
.b4s-hero-slide--fresh { background: linear-gradient(135deg, #ea580c, #c2410c 55%, #9a3412); }
.b4s-hero-slide.has-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(15, 23, 42, .78) 0%, rgba(15, 23, 42, .55) 42%, rgba(15, 23, 42, .22) 100%),
    var(--b4s-hero-photo) center / cover no-repeat;
  z-index: 0;
}
.b4s-hero-slide--sale.has-photo::before {
  background:
    linear-gradient(105deg, rgba(136, 19, 55, .82) 0%, rgba(190, 18, 60, .55) 45%, rgba(190, 18, 60, .2) 100%),
    var(--b4s-hero-photo) center / cover no-repeat;
}
.b4s-hero-slide--fresh.has-photo::before {
  background:
    linear-gradient(105deg, rgba(154, 52, 18, .82) 0%, rgba(234, 88, 12, .5) 45%, rgba(234, 88, 12, .18) 100%),
    var(--b4s-hero-photo) center / cover no-repeat;
}
.b4s-hero-slide__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 2rem;
  align-items: center;
  padding: 3.25rem 0 4.5rem;
}
.b4s-hero-slide h1 { font-size: clamp(1.8rem, 4vw, 2.75rem); max-width: 18ch; text-shadow: 0 2px 18px rgba(0,0,0,.25); }
.b4s-hero-slide .b4s-eyebrow { color: rgba(255,255,255,.92); }
.b4s-hero-slide .b4s-hero__sub { color: rgba(255,255,255,.92); max-width: 36rem; }
.b4s-hero-slide__visual {
  position: relative;
  min-height: 16rem;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(15, 23, 42, .28);
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.08);
  transform: rotate(-1.5deg);
}
.b4s-hero-slide__img {
  width: 100%;
  height: 100%;
  min-height: 16rem;
  object-fit: cover;
  display: block;
  transform: scale(1.03);
  transition: transform .6s ease;
}
.b4s-hero-slide.is-active .b4s-hero-slide__img {
  transform: scale(1);
}
.b4s-hero-slider__controls {
  position: absolute;
  left: 0; right: 0; bottom: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  pointer-events: none;
}
.b4s-hero-slider__controls > * { pointer-events: auto; }
.b4s-hero-dots { display: flex; gap: .4rem; }
.b4s-hero-dot {
  width: .55rem; height: .55rem; border-radius: 999px; border: 0;
  background: rgba(255,255,255,.45); cursor: pointer;
}
.b4s-hero-dot.is-active { background: #fff; width: 1.25rem; }
.b4s-slider-btn {
  width: 2.2rem; height: 2.2rem; border-radius: 999px;
  border: 1px solid var(--b4s-line); background: #fff;
  font-size: 1.25rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
}
.b4s-slider-btn--light {
  border-color: rgba(255,255,255,.45);
  background: rgba(255,255,255,.18);
  color: #fff;
}
.b4s-slider-btn:hover { border-color: var(--b4s-ink); }

.b4s-section__head--slider { align-items: flex-end; }
.b4s-section__head-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.b4s-slider-nav { display: flex; gap: .35rem; }
.b4s-product-slider { overflow: hidden; }
.b4s-product-slider__track {
  display: flex;
  gap: 1rem;
  transition: transform .35s ease;
  will-change: transform;
}
.b4s-product-slider__slide {
  flex: 0 0 calc((100% - (var(--b4s-popular-visible, 5) - 1) * 1rem) / var(--b4s-popular-visible, 5));
  min-width: 0;
}
.b4s-product-slider__slide .b4s-tile { height: 100%; }

@media (max-width: 1200px) {
  .b4s-section--popular { --b4s-popular-visible: 4; }
}
@media (max-width: 900px) {
  .b4s-hero-slide__inner { grid-template-columns: 1fr; padding: 2.5rem 0 4rem; }
  .b4s-hero-slide__visual {
    max-width: 22rem;
    margin-inline: auto;
    transform: none;
    min-height: 12rem;
  }
  .b4s-hero-slide__img { min-height: 12rem; }
  .b4s-section--popular { --b4s-popular-visible: 2; }
  .b4s-catalog-btn { padding: .55rem .75rem; font-size: .82rem; }
}
@media (max-width: 560px) {
  .b4s-section--popular { --b4s-popular-visible: 1.25; }
}

/* PDP zoom */
.b4s-pdp__gallery { position: relative; }
.b4s-zoom { cursor: crosshair; }
.b4s-zoom__lens {
  position: absolute; left: 0; top: 0;
  border: 2px solid rgba(255,255,255,.95);
  box-shadow: 0 0 0 1px rgba(15,23,42,.2), 0 8px 20px rgba(15,23,42,.18);
  background: rgba(255,255,255,.18);
  pointer-events: none;
  border-radius: .35rem;
  z-index: 3;
}
.b4s-zoom__hint {
  position: absolute; left: .75rem; bottom: .75rem;
  z-index: 2;
  font-size: .72rem; font-weight: 600;
  background: rgba(15,23,42,.65); color: #fff;
  padding: .3rem .55rem; border-radius: 999px;
}
.b4s-zoom__result {
  position: absolute;
  left: calc(100% + 1rem);
  top: 0;
  width: min(22rem, 40vw);
  height: 100%;
  min-height: 18rem;
  border-radius: 1rem;
  border: 1px solid var(--b4s-line);
  background-repeat: no-repeat;
  background-color: #fff;
  box-shadow: var(--b4s-shadow);
  z-index: 4;
}
@media (max-width: 1100px) {
  .b4s-zoom__result { display: none !important; }
  .b4s-zoom__lens { display: none !important; }
  .b4s-zoom__hint { display: none; }
}

.b4s-brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: .85rem;
}
.b4s-brand-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .45rem;
  padding: 1rem .75rem;
  border: 1px solid var(--b4s-line);
  border-radius: 1rem;
  text-align: center;
  background: #fff;
}
.b4s-brand-card:hover { border-color: var(--b4s-ink); box-shadow: var(--b4s-shadow); }
.b4s-brand-card__logo {
  width: 3.25rem; height: 3.25rem; border-radius: .75rem;
  border: 1px solid var(--b4s-line); display: grid; place-items: center;
  overflow: hidden; background: #f8fafc;
}
.b4s-brand-card__logo img { width: 100%; height: 100%; object-fit: contain; }
.b4s-brand-card__logo em { font-style: normal; font-weight: 800; color: var(--b4s-brand-dark); }
.b4s-brand-card strong { font-size: .88rem; }
.b4s-brand-card span { font-size: .75rem; color: var(--b4s-muted); }

.b4s-pagehead--offers {
  background: linear-gradient(180deg, #fff7ed, #fff);
  border-bottom: 1px solid var(--b4s-line);
  padding: 2rem 0 1.5rem;
}
.b4s-pagehead--offers h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
