/* ==========================================================================
   ELORIA SECRETS — home.css (homepage only) · v3 minimal luxury
   ========================================================================== */

/* ---------- Header over the hero ---------- */
body[data-page="home"] .site-header.is-over-hero { background: linear-gradient(180deg, rgba(255,250,251,.72) 0%, rgba(255,250,251,0) 100%); backdrop-filter: none; border-color: transparent; box-shadow: none; transition: background-color var(--t-med) var(--ease), border-color var(--t-med) var(--ease); }
/* Any interaction (hover, keyboard focus, open mega menu) turns the header solid so links never sit on the photo */
body[data-page="home"] .site-header.is-over-hero:hover,
body[data-page="home"] .site-header.is-over-hero:focus-within,
body[data-page="home"] .site-header.is-over-hero:has(.nav-item.is-open) { background: rgba(255,250,251,.97); border-color: var(--c-line); }
body[data-page="home"] .site-header.is-over-hero.is-dark .logo,
body[data-page="home"] .site-header.is-over-hero.is-dark .nav-link,
body[data-page="home"] .site-header.is-over-hero.is-dark .icon-btn { color: #fff; }
body[data-page="home"] .site-header.is-over-hero.is-dark .nav-link::after { background: #fff; }
body[data-page="home"] .site-header.is-over-hero .nav-item.is-open > .nav-link { color: inherit; }
.site-header .logo, .site-header .nav-link, .site-header .icon-btn { transition: color .4s var(--ease); }

/* Shared section head on the homepage */
.home-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: clamp(1.75rem, 1.2rem + 1.8vw, 3rem); }
.home-head--stack { flex-direction: column; align-items: center; text-align: center; gap: .85rem; }
.home-head--stack p:last-child { max-width: 46ch; }

/* ---------- 01 Hero slider ---------- */
.hero4 { position: relative; margin-top: calc(var(--header-h) * -1); height: clamp(600px, calc(100svh - var(--ann-h)), 940px); overflow: hidden; background: var(--c-cream); color: var(--c-ink); }
.hero4__slides { position: absolute; inset: 0; }
.hero4__slide { position: absolute; inset: 0; visibility: hidden; opacity: 0; transition: opacity 1.1s var(--ease), visibility 0s linear 1.1s; }
.hero4__slide.is-active { visibility: visible; opacity: 1; z-index: 1; transition-delay: 0s; }
.no-js .hero4__slide:first-child { visibility: visible; opacity: 1; }
.hero4__media, .hero4__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero4__media img { object-fit: cover; object-position: var(--pos, 50% 50%); transform: scale(1.07); transition: transform 7.5s cubic-bezier(.2,.6,.3,1); }
.hero4__slide.is-active .hero4__media img { transform: scale(1); }
.hero4__slide[data-align="left"] .hero4__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,250,251,.86) 0%, rgba(255,250,251,.62) 30%, rgba(255,250,251,0) 52%); }
.hero4__slide[data-align="right"] .hero4__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(270deg, rgba(255,250,251,.86) 0%, rgba(255,250,251,.62) 30%, rgba(255,250,251,0) 52%); }
.hero4__content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 1.1rem; padding-top: var(--header-h); padding-bottom: 5rem; }
.hero4__slide[data-align="right"] .hero4__content { align-items: flex-end; text-align: right; }
.hero4__slide[data-align="right"] .hero4__ctas { justify-content: flex-end; }
.hero4__content > * { max-width: min(34rem, 42vw); }
.hero4__title { max-width: min(40rem, 46vw) !important; font-size: var(--fs-display); line-height: var(--lh-tight); }
.hero4__text { font-size: var(--fs-lead); color: var(--c-ink-2); }
.hero4__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: .6rem; }
/* staggered text entrance, CSS only so it never depends on a script */
.hero4__content > * { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.hero4__slide.is-active .hero4__content > * { opacity: 1; transform: none; }
.hero4__slide.is-active .hero4__content > :nth-child(1) { transition-delay: .25s; }
.hero4__slide.is-active .hero4__content > :nth-child(2) { transition-delay: .35s; }
.hero4__slide.is-active .hero4__content > :nth-child(3) { transition-delay: .48s; }
.hero4__slide.is-active .hero4__content > :nth-child(4) { transition-delay: .6s; }
.no-js .hero4__content > * { opacity: 1; transform: none; }

.hero4__ui { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding-bottom: clamp(1.25rem, 1rem + 1vw, 2.25rem); }
.hero4__ui-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; }
.hero4__tabs { display: flex; gap: clamp(.9rem, 2.5vw, 2.25rem); }
.hero4__tab { display: grid; grid-template-columns: auto 1fr; column-gap: .55rem; row-gap: .6rem; align-items: baseline; min-width: clamp(84px, 10vw, 150px); min-height: 44px; text-align: left; color: var(--c-ink); opacity: .55; transition: opacity .3s var(--ease); }
.hero4__tab:hover, .hero4__tab[aria-selected="true"] { opacity: 1; }
.hero4__tab-n { font-family: var(--f-serif); font-size: 1rem; }
.hero4__tab-l { font-size: .6875rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.hero4__bar { grid-column: 1 / -1; position: relative; height: 2px; background: rgba(31,26,28,.14); overflow: hidden; border-radius: 2px; }
.hero4__bar span { position: absolute; inset: 0; background: var(--c-deep); transform: scaleX(0); transform-origin: left; }
.hero4__tab[aria-selected="true"] .hero4__bar span.is-run { transform: scaleX(1); transition: transform var(--hero-dur, 6.5s) linear; }
.hero4__tab[aria-selected="true"] .hero4__bar span.is-full { transform: scaleX(1); }
.hero4__ctrl { display: flex; gap: .4rem; }
.hero4__btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(31,26,28,.25); background: rgba(255,250,251,.7); color: var(--c-ink); transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease); }
.hero4__btn:hover { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }
.hero4__btn svg { width: 16px; height: 16px; }

@media (max-width: 767px) {
  .hero4 { height: auto; background: var(--c-warm); }
  .hero4__slides { position: relative; inset: auto; display: grid; }
  .hero4__slide { position: relative; inset: auto; grid-area: 1 / 1; display: flex; flex-direction: column; }
  .hero4__media { position: relative; inset: auto; height: auto; aspect-ratio: 4 / 5; max-height: 72svh; overflow: hidden; background: var(--c-cream); }
  .hero4__media img { object-position: var(--mpos, 50% 50%); }
  .hero4__media::after { display: none !important; }
  .hero4__content, .hero4__slide[data-align="right"] .hero4__content { height: auto; align-items: flex-start; text-align: left; justify-content: flex-start; padding: 1.5rem var(--gutter) 5.5rem; gap: .7rem; }
  .hero4__slide[data-align="right"] .hero4__ctas { justify-content: flex-start; }
  .hero4__content > *, .hero4__title { max-width: none !important; }
  .hero4__title { font-size: clamp(2.1rem, 1.5rem + 4vw, 2.75rem); }
  .hero4__title br { display: none; }
  .hero4__text { font-size: .9375rem; }
  .hero4__ctas { width: 100%; }
  .hero4__ctas .btn { flex: 1 1 100%; }
  .hero4__ui { padding-bottom: 1.4rem; }
  .hero4__tab { min-width: 0; width: 56px; }
  .hero4__tab-l { display: none; }
  .hero4__tabs { gap: .6rem; }
  .hero4__btn { width: 40px; height: 40px; }
  .hero4__ctrl [data-hero-prev], .hero4__ctrl [data-hero-next] { display: none; }
}

/* ---------- 02 Categories ---------- */
.cats3__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.75rem, .4rem + 1vw, 1.25rem); }
.cat3 { display: grid; gap: .9rem; }
.cat3__media { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--c-cream); }
.cat3__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
@media (hover: hover) { .cat3:hover .cat3__media img { transform: scale(1.04); } .cat3:hover .cat3__name { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; } }
.cat3__label { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.cat3__name { font-size: var(--fs-sm); font-weight: 500; letter-spacing: var(--ls-ui); text-transform: uppercase; }
.cat3__count { font-size: var(--fs-xs); color: var(--c-muted); }
@media (max-width: 767px) { .cats3__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.5rem; } .cat3 { gap: .7rem; } .cat3__label { flex-direction: column; gap: .15rem; } .cat3__name { font-size: .8125rem; } }

/* ---------- 04 Most loved ---------- */
.loved__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem 3rem; flex-wrap: wrap; margin-bottom: clamp(1.75rem, 1.2rem + 2vw, 3rem); }
.loved__tabs { border-bottom: 0; gap: .4rem; }
.loved__tabs .tab { padding: 0 .1rem; min-height: 44px; margin-right: 1.4rem; border: 0; border-bottom: 1px solid transparent; border-radius: 0; color: var(--c-muted); font-size: var(--fs-xs); letter-spacing: var(--ls-ui); text-transform: uppercase; transition: color .25s var(--ease), border-color .25s var(--ease); }
.loved__tabs .tab:hover { color: var(--c-ink); }
.loved__tabs .tab[aria-selected="true"] { color: var(--c-ink); border-bottom-color: var(--c-ink); }
.loved__tabs .tab[aria-selected="true"]::after { display: none; }
.loved__tabs .tab sup { font-size: .6rem; margin-left: .25rem; opacity: .7; }
.loved__grid { transition: opacity .3s var(--ease); }
.loved__grid.is-leaving { opacity: 0; }
.loved__grid .card { animation: cardIn .6s var(--ease-out) backwards; }
.loved__grid .card:nth-child(2) { animation-delay: .05s; } .loved__grid .card:nth-child(3) { animation-delay: .1s; } .loved__grid .card:nth-child(4) { animation-delay: .15s; }
.loved__grid .card:nth-child(5) { animation-delay: .2s; } .loved__grid .card:nth-child(6) { animation-delay: .25s; } .loved__grid .card:nth-child(7) { animation-delay: .3s; } .loved__grid .card:nth-child(8) { animation-delay: .35s; }
@keyframes cardIn { from { opacity: 0; transform: translateY(16px); } }
.loved__foot { display: flex; justify-content: center; margin-top: clamp(2.5rem, 2rem + 2vw, 3.75rem); }
@media (max-width: 767px) { .loved__tabs { flex-wrap: nowrap; overflow-x: auto; width: calc(100% + var(--gutter)); margin-right: calc(var(--gutter) * -1); padding-right: var(--gutter); } .loved__tabs .tab { flex: none; } }

/* ---------- 05 Shop the look ---------- */
.look__list { list-style: none; margin: .5rem 0 0; padding: 0; border-top: 1px solid var(--c-line-strong); }
.look__list li { border-bottom: 1px solid var(--c-line-strong); }
.look__list button { width: 100%; display: grid; grid-template-columns: 2rem 1fr auto; gap: .75rem; align-items: center; min-height: 64px; text-align: left; transition: color .2s; }
.look__list button:hover, .look__list button[aria-expanded="true"] { color: var(--c-deep); }
.look__list .n { font-size: var(--fs-xs); letter-spacing: .12em; color: var(--c-muted); }
.look__list .nm { font-size: 1rem; line-height: 1.3; }
.look__list .pr { font-size: .875rem; font-variant-numeric: tabular-nums; }
.hotspot { position: absolute; left: var(--x); top: var(--y); z-index: 3; width: 44px; height: 44px; margin: -22px 0 0 -22px; display: grid; place-items: center; border-radius: 50%; }
.hotspot span { position: relative; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,250,251,.95); box-shadow: 0 4px 14px -4px rgba(23,21,21,.45); transition: transform .3s var(--ease-out); }
.hotspot span::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--c-ink); transition: transform .3s var(--ease-out); }
.hotspot::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 1px solid rgba(255,255,255,.9); animation: ping 3s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.7); opacity: .9; } 80%, 100% { transform: scale(1.6); opacity: 0; } }
.hotspot:hover span, .hotspot[aria-expanded="true"] span { transform: scale(1.15); }
.hotspot[aria-expanded="true"] span::after { transform: scale(1.3); }
.look__pop { position: absolute; z-index: 10; width: 300px; background: var(--c-warm); box-shadow: 0 30px 70px -30px rgba(23,21,21,.45); padding: 1rem; display: grid; gap: .8rem; animation: popIn .35s var(--ease-out); }
@keyframes popIn { from { opacity: 0; transform: translateY(8px); } }
.look__pop-top { display: grid; grid-template-columns: 76px 1fr; gap: .85rem; align-items: center; }
.look__pop-top .media { aspect-ratio: 4 / 5; }
.look__pop h3 { font-size: 1.3rem; line-height: 1.15; }
.look__pop .size-opt span { min-width: 42px; height: 38px; font-size: .75rem; }
.look__pop .opt-group legend { font-size: .625rem; }
.look__pop-actions { display: grid; grid-template-columns: 1fr auto; gap: .5rem; }
.look__pop-close { position: absolute; top: .25rem; right: .25rem; width: 36px; height: 36px; display: grid; place-items: center; }
.look__pop-close svg { width: 15px; height: 15px; }
.look__pop .field-error { font-size: .75rem; }
@media (max-width: 767px) {
  .look__pop { position: fixed; left: 0; right: 0; bottom: 0; top: auto !important; width: auto; z-index: var(--z-modal); padding: 1.25rem var(--gutter) calc(1.25rem + env(safe-area-inset-bottom)); animation: sheetIn .45s var(--ease-out); box-shadow: 0 -20px 60px -20px rgba(23,21,21,.4); }
  .look__pop::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--c-line-strong); margin: -.5rem auto .25rem; }
}
@keyframes sheetIn { from { transform: translateY(100%); } }

.look3__board { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.75rem, .4rem + 1vw, 1.25rem); max-width: 1100px; margin-inline: auto; }
.look3__shot { position: relative; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--c-warm); }
.look3__shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.look3__list { max-width: 1100px; margin: 1.5rem auto 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(.75rem, .4rem + 1vw, 1.25rem); border-top: 0; }
.look3__list li { border-top: 1px solid var(--c-line-strong); }
@media (max-width: 599px) { .look3__list { grid-template-columns: 1fr; } }
@media (max-width: 359px) { .look3__board { grid-template-columns: 1fr; } }
/* ---------- 07 Campaign band ---------- */
.story3 { position: relative; min-height: clamp(460px, 70vh, 720px); display: flex; align-items: center; overflow: hidden; background: var(--c-cream); }
.story3__media { position: absolute; inset: 0; }
.story3__media img { width: 100%; height: 100%; object-fit: cover; }
.story3__media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 55% at 50% 50%, rgba(255,250,251,.72) 0%, rgba(255,250,251,.35) 55%, rgba(255,250,251,0) 100%); }
.story3__inner { position: relative; z-index: 1; display: grid; justify-items: center; text-align: center; gap: 1.1rem; max-width: 40rem; padding-block: var(--section); }
.story3__title { font-size: var(--fs-display); line-height: var(--lh-tight); }
.story3__inner p { color: var(--c-ink-2); font-size: var(--fs-lead); max-width: 44ch; }

/* ---------- 08 New arrivals lookbook ---------- */
.arrivals__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(1.5rem, 1rem + 2.5vw, 4rem); align-items: stretch; }
.arrivals__feature { position: relative; }
.feature-card { position: relative; height: 100%; min-height: 640px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; background: var(--c-cream); color: #fff; }
.feature-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease-out); }
.feature-card:hover .feature-card__img { transform: scale(1.04); }
.feature-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(23,21,21,.72) 0%, rgba(23,21,21,.25) 45%, rgba(23,21,21,0) 70%); }
.feature-card__body { position: relative; z-index: 2; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); display: grid; gap: .6rem; justify-items: start; }
.feature-card__tag { font-size: var(--fs-eyebrow); font-weight: 500; letter-spacing: var(--ls-eyebrow); text-transform: uppercase; background: var(--c-warm); color: var(--c-ink); padding: .35rem .6rem; }
.feature-card__name { font-family: var(--f-serif); font-size: clamp(2rem, 1.5rem + 1.6vw, 3rem); line-height: 1; color: #fff; }
.feature-card__name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.feature-card__price { font-size: 1rem; }
.feature-card__actions { position: relative; z-index: 3; display: flex; gap: .5rem; margin-top: .5rem; }
.feature-card .card__wish { color: #fff; }
.arrivals__side { display: flex; flex-direction: column; gap: 1.5rem; min-width: 0; }
.arrivals__head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: .9rem 1rem; }
.arrivals__head .eyebrow { grid-column: 1 / -1; }
/* Swiper core (own CSS so only the JS is loaded) + fallback when Swiper is absent */
.swiper { position: relative; overflow: hidden; min-width: 0; }
.swiper-wrapper { display: flex; box-sizing: content-box; transition-property: transform; }
.swiper-slide { flex-shrink: 0; width: 46%; margin-right: 1.25rem; }
.swiper:not(.swiper-initialized) .swiper-wrapper { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.swiper:not(.swiper-initialized) .swiper-wrapper::-webkit-scrollbar { display: none; }
.swiper:not(.swiper-initialized) .swiper-slide { scroll-snap-align: start; }
.swiper-button-disabled { opacity: .35; cursor: default; }
.arrivals__progress { height: 1px; background: var(--c-line); position: relative; overflow: hidden; }
.arrivals__progress span { position: absolute; left: 0; top: 0; bottom: 0; width: 30%; background: var(--c-ink); transition: transform .4s var(--ease-out), width .3s; }
.arrivals__side > .link-line { align-self: flex-start; }
@media (max-width: 1023px) { .arrivals__grid { grid-template-columns: 1fr; } .feature-card { min-height: 520px; } }
@media (max-width: 767px) { .swiper-slide { width: 72%; margin-right: .85rem; } .feature-card { min-height: 460px; } }

/* ---------- 10 Assurances ---------- */
.assure { border-block: 1px solid var(--c-line); }
.assure__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.assure__row p { display: flex; align-items: center; gap: .85rem; padding: 1.4rem 1rem; font-size: var(--fs-sm); color: var(--c-ink-2); border-left: 1px solid var(--c-line); }
.assure__row p:first-child { border-left: 0; padding-left: 0; }
.assure__row svg { width: 22px; height: 22px; color: var(--c-ink); flex: none; stroke-width: 1.1; }
.assure__row strong { color: var(--c-ink); font-weight: 500; }
@media (max-width: 899px) { .assure__row { grid-template-columns: 1fr 1fr; } .assure__row p:nth-child(3) { border-left: 0; padding-left: 0; } .assure__row p { border-top: 1px solid var(--c-line); } .assure__row p:nth-child(-n+2) { border-top: 0; } }
@media (max-width: 479px) { .assure__row { grid-template-columns: 1fr; } .assure__row p { border-left: 0; padding-left: 0; } .assure__row p:nth-child(2) { border-top: 1px solid var(--c-line); } }

/* ---------- 11 Newsletter ---------- */
body[data-page="home"] .footer__news { display: none; }
.news3__card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); background: var(--c-cream); border: 1px solid var(--c-line); overflow: hidden; }
.news3__media { position: relative; margin: 0; min-height: 360px; background: var(--c-blush); }
.news3__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.news3__body { display: grid; align-content: center; justify-items: start; gap: 1rem; padding: clamp(2rem, 1.2rem + 3.5vw, 4.5rem); }
.news3__body h2 { font-size: var(--fs-h2); }
.news3__lead { color: var(--c-ink-2); max-width: 44ch; }
.news3__perks { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: .25rem 0 .5rem; }
.news3__perks li { display: inline-flex; align-items: center; gap: .45rem; font-size: var(--fs-sm); color: var(--c-ink-2); }
.news3__perks svg { width: 16px; height: 16px; color: var(--c-deep); flex: none; }
.news3__form { width: 100%; max-width: 30rem; }
.news3__form .news-form { background: var(--c-white); }
.news3__consent { font-size: var(--fs-xs); color: var(--c-muted); margin-top: .75rem; padding-left: 1.25rem; }
.news3__form .form-status { margin-top: 1rem; }
@media (max-width: 767px) {
  .news3__card { grid-template-columns: 1fr; }
  .news3__media { min-height: 0; aspect-ratio: 16 / 9; }
  .news3__body { padding: 1.75rem 1.25rem 2rem; }
  .news3__consent { padding-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero4__media img, .cat3 img { transform: none !important; transition: none; }
  .hero4__slide, .hero4__content > * { transition: none !important; }
  .hotspot::before { animation: none; display: none; }
}
