/* Homepage top (2026-10-27 redesign): hero, trust bar, shop by category, offers banner. */

/* ---------- Hero */
.hx { --hx-duration: 6s; position: relative; height: clamp(520px, 78vh, 720px); overflow: hidden; background: #111827; color: #fff; }
.hx__slides { position: absolute; inset: 0; }
.hx__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility 0s linear .8s; }
.hx__slide.is-active { opacity: 1; visibility: visible; transition: opacity .8s ease, visibility 0s; z-index: 1; }
.hx__media, .hx__img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.hx__img { transform: scale(1.04); }
.hx__slide.is-active .hx__img { animation: hx-zoom calc(var(--hx-duration) + 1.5s) ease-out forwards; }
@keyframes hx-zoom { from { transform: scale(1.04); } to { transform: scale(1.1); } }
.hx__slide--no-image { background: linear-gradient(120deg, #1f2937, #111827); }
.hx__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 14, 24, .78) 0%, rgba(10, 14, 24, .5) 38%, rgba(10, 14, 24, .08) 68%, rgba(10, 14, 24, 0) 100%); }
.hx__content { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; height: 100%; padding-top: 0; padding-bottom: 70px; }
.hx__content > * { max-width: 560px; }
.hx__eyebrow { margin: 0 0 14px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); backdrop-filter: blur(6px); font-family: var(--f-display); font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.hx__title { margin: 0 0 16px; font-family: var(--f-display); font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.75rem); font-weight: 700; line-height: 1.02; letter-spacing: -.025em; color: #fff; text-wrap: balance; }
.hx__text { margin: 0 0 28px; font-size: clamp(1rem, .95rem + .3vw, 1.2rem); line-height: 1.55; color: rgba(255, 255, 255, .88); }
.hx__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hx__btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; font-family: var(--f-display); font-size: 16px; font-weight: 600; text-decoration: none; transition: background-color .2s, color .2s, border-color .2s, transform .2s; }
.hx__btn svg { width: 18px; height: 18px; transition: transform .2s; }
.hx__btn--primary { background: var(--c-primary-bright-aa); color: #fff; }
.hx__btn--primary:hover { background: #fff; color: var(--c-heading-dark); }
.hx__btn--primary:hover svg { transform: translateX(3px); }
.hx__btn--ghost { border: 1.5px solid rgba(255, 255, 255, .7); color: #fff; }
.hx__btn--ghost:hover { border-color: #fff; background: #fff; color: var(--c-heading-dark); }
.hx__btn:focus-visible, .hx__round:focus-visible, .hx__step:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
/* Content rises in with the slide. */
.hx.is-ready .hx__slide .hx__content > * { opacity: 0; transform: translateY(14px); }
.hx.is-ready .hx__slide.is-active .hx__content > * { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }
.hx.is-ready .hx__slide.is-active .hx__content > :nth-child(2) { transition-delay: .08s; }
.hx.is-ready .hx__slide.is-active .hx__content > :nth-child(3) { transition-delay: .16s; }
.hx.is-ready .hx__slide.is-active .hx__content > :nth-child(4) { transition-delay: .24s; }

/* Controls: progress bars left, pause + arrows right. */
.hx__controls { position: absolute; left: 0; right: 0; bottom: 28px; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 auto; }
.hx__progress { display: flex; gap: 8px; }
.hx__step { display: block; width: 56px; padding: 10px 0; border: 0; background: none; cursor: pointer; }
.hx__bar { position: relative; display: block; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .35); overflow: hidden; }
.hx__bar span { position: absolute; inset: 0; transform: scaleX(0); transform-origin: left; background: #fff; }
.hx__step.is-done .hx__bar span { transform: scaleX(1); }
.hx__step.is-active .hx__bar span { animation: hx-progress var(--hx-duration) linear forwards; }
@keyframes hx-progress { to { transform: scaleX(1); } }
.hx.is-paused .hx__step.is-active .hx__bar span, .hx.is-paused .hx__slide.is-active .hx__img { animation-play-state: paused; }
.hx__nav { display: flex; gap: 8px; }
.hx__round { display: grid; place-items: center; width: 44px; height: 44px; border: 1.5px solid rgba(255, 255, 255, .55); border-radius: 50%; background: rgba(17, 24, 39, .25); color: #fff; cursor: pointer; transition: background-color .2s, color .2s; backdrop-filter: blur(4px); }
.hx__round:hover { background: #fff; color: var(--c-heading-dark); }
.hx__round svg { width: 18px; height: 18px; }
.hx__icon-play, .hx.is-user-paused .hx__icon-pause { display: none; }
.hx.is-user-paused .hx__icon-play { display: block; }
html:not(.nexo-js) .hx__controls { display: none; }

@media (max-width: 767px) {
  .hx { height: clamp(520px, 135vw, 640px); }
  .hx__shade { background: linear-gradient(0deg, rgba(10, 14, 24, .88) 0%, rgba(10, 14, 24, .55) 45%, rgba(10, 14, 24, .05) 75%); }
  .hx__content { justify-content: flex-end; padding-bottom: 96px; }
  .hx__eyebrow { margin-bottom: 10px; font-size: 12px; }
  .hx__text { margin-bottom: 20px; }
  .hx__ctas { width: 100%; }
  .hx__btn { flex: 1 1 auto; justify-content: center; min-height: 50px; padding: 0 18px; font-size: 15px; }
  .hx__controls { bottom: 24px; }
  .hx__step { width: 36px; }
  .hx__round { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .hx__slide, .hx__slide.is-active, .hx.is-ready .hx__slide.is-active .hx__content > * { transition: none; }
  .hx__slide.is-active .hx__img { animation: none; }
}

/* ---------- Trust bar */
.trust { border-bottom: 1px solid var(--c-border-light); background: #fff; }
.trust__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 0; margin: 0 auto; padding-top: 0; padding-bottom: 0; list-style: none; }
.trust__item { display: flex; align-items: center; gap: 14px; padding: 22px 20px; }
.trust__item + .trust__item { border-left: 1px solid var(--c-border-light); }
.trust__icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: #fff4ed; color: var(--c-primary-aa); }
.trust__icon svg { width: 22px; height: 22px; }
.trust__text { display: grid; gap: 2px; min-width: 0; font-size: 14px; line-height: 1.35; }
.trust__text strong { font-family: var(--f-display); font-size: 15px; font-weight: 600; color: var(--c-heading-dark); }
.trust__text span, .trust__text a { color: #6b7280; }
.trust__text a { text-decoration: underline; text-underline-offset: 3px; }
.trust__text a:hover { color: var(--c-primary-aa); }
@media (max-width: 1024px) {
  .trust__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust__item:nth-child(odd) { border-left: 0; }
  .trust__item:nth-child(n+3) { border-top: 1px solid var(--c-border-light); }
}
@media (max-width: 559px) {
  .trust__item { flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px 12px; }
  .trust__icon { width: 38px; height: 38px; }
  .trust__text strong { font-size: 14px; }
  .trust__text { font-size: 13px; }
}

/* ---------- Shop by category */
.cats { padding: 72px 0 24px; }
.cats__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 0 0 24px; }
.cats__title { margin: 0; font-family: var(--f-display); font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem); font-weight: 700; letter-spacing: -.02em; color: var(--c-heading-dark); }
.cats__all { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-display); font-weight: 600; color: var(--c-heading-dark); white-space: nowrap; }
.cats__all svg { width: 16px; height: 16px; transition: transform .2s; }
.cats__all:hover { color: var(--c-primary-aa); }
.cats__all:hover svg { transform: translateX(3px); }
.cats__grid { display: grid; grid-template-columns: repeat(var(--cats, 5), minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.cat-card a { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 14px; background: #e5e7eb; color: #fff; text-decoration: none; }
.cat-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.cat-card a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 14, 24, .75) 0%, rgba(10, 14, 24, .15) 45%, rgba(10, 14, 24, 0) 70%); }
.cat-card__label { position: absolute; left: 18px; right: 60px; bottom: 16px; z-index: 1; display: grid; gap: 2px; }
.cat-card__name { font-family: var(--f-display); font-size: 22px; font-weight: 700; line-height: 1.1; }
.cat-card__count { font-size: 13px; color: rgba(255, 255, 255, .85); }
.cat-card__arrow { position: absolute; right: 14px; bottom: 16px; z-index: 1; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--c-heading-dark); transition: background-color .2s, color .2s, transform .2s; }
.cat-card__arrow svg { width: 18px; height: 18px; }
.cat-card a:hover img { transform: scale(1.06); }
.cat-card a:hover .cat-card__arrow { background: var(--c-primary-bright-aa); color: #fff; transform: translateX(2px); }
.cat-card a:focus-visible { outline: 3px solid var(--c-primary-aa); outline-offset: 3px; }
@media (max-width: 1024px) {
  .cats { padding-top: 56px; }
  .cats__grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 34%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
  .cats__grid::-webkit-scrollbar { display: none; }
  .cat-card { scroll-snap-align: start; }
}
@media (max-width: 559px) {
  .cats { padding-top: 44px; }
  .cats__grid { grid-auto-columns: 62%; gap: 12px; }
  .cats__all { font-size: 14px; }
  .cat-card__name { font-size: 20px; }
}

/* ---------- Offers banner */
.offer { padding: 48px 0 24px; }
.offer__card { position: relative; display: flex; align-items: center; min-height: 360px; overflow: hidden; border-radius: 18px; background: linear-gradient(120deg, #1f2937, #0f172a); color: #fff; }
.offer__img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.offer__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 14, 24, .85) 0%, rgba(10, 14, 24, .55) 45%, rgba(10, 14, 24, .1) 80%); }
.offer__content { position: relative; z-index: 1; max-width: 560px; padding: 48px clamp(24px, 5vw, 64px); }
.offer__eyebrow { display: inline-block; margin: 0 0 14px; padding: 6px 12px; border-radius: 999px; background: var(--c-primary-bright-aa); font-family: var(--f-display); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.offer__title { margin: 0 0 10px; font-family: var(--f-display); font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.75rem); font-weight: 800; line-height: 1.02; letter-spacing: -.025em; color: #fff; }
.offer__text { margin: 0 0 26px; font-size: 17px; color: rgba(255, 255, 255, .88); }
@media (max-width: 767px) {
  .offer__card { align-items: flex-end; min-height: 420px; border-radius: 14px; }
  .offer__shade { background: linear-gradient(0deg, rgba(10, 14, 24, .9) 0%, rgba(10, 14, 24, .5) 55%, rgba(10, 14, 24, .1) 100%); }
  .offer__content { padding: 28px 22px; }
}

/* Side padding (.container itself has none). */
.hx__content, .hx__controls, .trust__list, .cats > .container, .offer > .container { padding-left: max(var(--gutter), 24px); padding-right: max(var(--gutter), 24px); }
@media (max-width: 559px) { .hx__content, .hx__controls, .trust__list, .cats > .container, .offer > .container { padding-left: 16px; padding-right: 16px; } }

/* ---------- Product rows (same language as Shop by category) */
.pc { padding: 64px 0 8px; }
.pc > .container { padding-left: max(var(--gutter), 24px); padding-right: max(var(--gutter), 24px); }
.pc__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 0 0 24px; }
.pc__title { margin: 0; font-family: var(--f-display); font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; color: var(--c-heading-dark); }
.pc__intro { max-width: 560px; margin: 8px 0 0; font-size: 16px; line-height: 1.55; color: #6b7280; }
.pc .product-grid { padding: 0; }
.pc + .offer, .cats + .pc { padding-top: 56px; }
.pc:last-child { padding-bottom: 80px; }
@media (max-width: 767px) {
  .pc { padding-top: 48px; }
  .pc__head { flex-wrap: wrap; align-items: flex-start; margin-bottom: 18px; }
  .pc__intro { font-size: 15px; }
}
@media (max-width: 559px) { .pc > .container { padding-left: 16px; padding-right: 16px; } }
/* The current slide's bar is always distinguishable, even at 0% or while paused (e.g. mouse over the hero). */
.hx__step { transition: width .3s ease; }
.hx__step.is-active { width: 88px; }
.hx__step.is-active .hx__bar { height: 4px; background: rgba(255, 255, 255, .55); }
.hx__step.is-done .hx__bar span { background: rgba(255, 255, 255, .85); }
@media (max-width: 767px) { .hx__step.is-active { width: 56px; } }
