/* home-v2 launch styles (see home-v2.js) */
/* product photos inside the arch shapes */
.v2-arch.is-photo, #v2-hero-arch { overflow: hidden !important; }
/* from first paint: EMS photos are room photos, so the arch is always a photo frame (no square cut-out flash) */
.v2-arch.is-photo img, .v2-arch.is-photo img.swap, .v2-arch.is-photo img.out, #v2-hero-arch img { position: absolute; inset: 0; left: 0; bottom: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; transform: none !important; filter: none; animation: none; }
.v2-arch.is-photo img.out, #v2-hero-arch img.out { opacity: 0; transition: opacity .35s ease; }
.v2-arch.is-photo img { transition: opacity .5s ease; }
.v2-hero-thumbs button.is-photo { overflow: hidden; }
.v2-hero-thumbs button.is-photo img { object-fit: cover; }
.v2-feature-arch.is-photo { display: block; overflow: hidden; background: #E9E1D2; }
.v2-feature-arch.is-photo img { inset: 0; left: 0; width: 100%; height: 100%; transform: none; object-fit: cover; filter: none; animation: none !important; }
.v2-list .th.is-photo { overflow: hidden; }
.v2-list .th.is-photo img { inset: 0; left: 0; bottom: 0; width: 100%; height: 100%; transform: none !important; object-fit: cover; }
#v2-list { max-height: 560px; overflow-y: auto; scrollbar-width: thin; }
.v2-pills button small { opacity: .6; font-size: .8em; margin-left: 2px; }

/* Evara story under the film */
/* caption over the film: heading and button share one left edge */
.v2-film-cap { text-align: left !important; }
.v2-film-cap .v2-btn { margin-left: 0; }
.v2-film-more, .v2-film-more * { text-align: left; }
.v2-film-more { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 4vw, 64px); max-width: 1180px; margin: 36px auto 56px; padding: 0 clamp(20px, 4vw, 48px); align-items: start; }
.v2-film-more h3 { font-weight: 400; font-size: clamp(22px, 2.2vw, 30px); margin: 6px 0 14px; color: var(--brown, #664331); }
.v2-film-more p { font-size: 15.5px; line-height: 1.7; color: var(--ink-soft, #4A3F35); margin: 0 0 12px; }
.v2-film-more .fm-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 18px; }
.v2-film-more .fm-price s { color: var(--muted, #8B7E72); margin-right: 6px; font-size: 14px; }
.v2-film-more .fm-price strong { font-size: 18px; color: var(--ink, #2A2117); }
.v2-film-more .fm-specs { margin: 0; display: grid; gap: 14px; }
.v2-film-more .fm-specs div { border-top: 1px solid var(--line, rgba(102,67,49,.12)); padding-top: 12px; }
.v2-film-more .fm-specs dt { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--taupe, #937867); margin-bottom: 4px; }
.v2-film-more .fm-specs dd { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-soft, #4A3F35); }
@media (max-width: 800px) { .v2-film-more { grid-template-columns: 1fr; } }

/* comfort */
.v2-sofa .cush { transition: height .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1), background .4s ease; }
.v2-sofa.sink .cush { transform: translateY(var(--sink, 0)); }
.v2-sofa.dressed .cush, .v2-sofa.dressed .back { background-image: var(--fabric); background-size: 120px; background-position: center; }
.v2-feel { display: flex; align-items: center; gap: 10px; justify-content: center; margin-top: 16px; font-size: 13px; color: var(--ink-soft, #4A3F35); }
.v2-feel .bar { width: 160px; height: 6px; border-radius: 99px; background: rgba(102,67,49,.12); overflow: hidden; }
.v2-feel .bar i { display: block; height: 100%; background: var(--terracotta, #B57454); border-radius: 99px; transition: width .6s cubic-bezier(.16,1,.3,1); }
.v2-comfort-card { background: rgba(255,255,255,.6); border: 1px solid var(--line, rgba(102,67,49,.12)); border-radius: 16px; padding: 16px 18px; margin-bottom: 14px; animation: v2In .45s ease both; }
.v2-comfort-card strong { display: block; color: var(--brown, #664331); margin-bottom: 4px; }
.v2-comfort-card p { margin: 0 !important; }

/* fabric ranges (text cards) */
.v2-tier-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 10px; }
.v2-tier-card { background: rgba(255,255,255,.6); border: 1px solid var(--line, rgba(102,67,49,.12)); border-radius: 14px; padding: 14px 16px; text-align: left; }
.v2-tier-card strong { display: block; color: var(--brown, #664331); font-size: 15px; }
.v2-tier-card span { display: block; font-size: 12px; color: var(--taupe, #937867); margin: 2px 0 6px; letter-spacing: .04em; }
.v2-tier-card p { margin: 0 !important; font-size: 13.5px !important; line-height: 1.5; }
.v2-tier-cards > .v2-link { grid-column: 1 / -1; margin-top: 4px; }
@media (max-width: 480px) { .v2-tier-cards { grid-template-columns: 1fr; } }
/* fabric swatches (retired) */
.v2-sw-blurb { font-size: 14px !important; margin: 0 0 10px !important; } .v2-sw-blurb span { color: var(--muted, #8B7E72); }
.v2-sw-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-bottom: 12px; }
.v2-sw-grid button, .sb-grid button { aspect-ratio: 1; border: 0; border-radius: 6px; background-size: cover; background-position: center; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); transition: transform .3s cubic-bezier(.16,1,.3,1), box-shadow .3s; }
.v2-sw-grid button:hover, .sb-grid button:hover { transform: scale(1.08); box-shadow: 0 8px 16px -4px rgba(0,0,0,.2); position: relative; z-index: 1; }
.v2-sw-note { font-size: 13.5px !important; }
.v2-swatch-box { position: fixed; inset: 0; z-index: 400; background: rgba(28,25,22,.55); display: flex; align-items: center; justify-content: center; padding: 20px; animation: v2In .3s ease both; }
.v2-swatch-box[hidden] { display: none; }
.sb-in { position: relative; background: #FAF8F2; border-radius: 22px; width: min(980px, 100%); max-height: 92vh; overflow: auto; display: grid; grid-template-columns: 1fr 1fr; }
.sb-img { min-height: 420px; background-size: cover; background-position: center; border-radius: 22px 0 0 22px; }
.sb-side { padding: 28px; } .sb-side h3 { font-size: 26px; font-weight: 400; margin: 4px 0 10px; color: var(--brown, #664331); }
.sb-side p { font-size: 14.5px; line-height: 1.6; color: var(--ink-soft, #4A3F35); }
.sb-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin: 16px 0 20px; }
.sb-grid button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--brown, #664331); }
.sb-cta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.sb-x { position: absolute; top: 12px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); font-size: 22px; cursor: pointer; z-index: 2; }
html.sb-open { overflow: hidden; }
@media (max-width: 760px) { .sb-in { grid-template-columns: 1fr; } .sb-img { min-height: 260px; border-radius: 22px 22px 0 0; } .v2-sw-grid { grid-template-columns: repeat(4, 1fr); } .sb-grid { grid-template-columns: repeat(5, 1fr); } }

/* full-width bands */
.estre-band { position: relative; height: min(78vh, 56vw); min-height: 420px; overflow: hidden; color: #F6F1E8; isolation: isolate; margin: 0; }
.estre-band .eb-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.estre-band .eb-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(18,14,11,.66) 0%, rgba(18,14,11,.25) 42%, rgba(18,14,11,0) 65%); }
.estre-band.al-right .eb-shade { background: linear-gradient(270deg, rgba(18,14,11,.66) 0%, rgba(18,14,11,.25) 42%, rgba(18,14,11,0) 65%); }
.estre-band .eb-copy { position: absolute; left: clamp(20px, 6vw, 96px); bottom: clamp(36px, 8vh, 90px); max-width: 500px; }
.estre-band.al-right .eb-copy { left: auto; right: clamp(20px, 6vw, 96px); text-align: right; }
.estre-band .eb-eyebrow { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: #D6B485; margin: 0 0 14px; }
.estre-band h2 { font-family: 'Manrope', var(--sans), sans-serif; font-weight: 300; font-size: clamp(32px, 4.2vw, 62px); line-height: 1.02; margin: 0 0 16px; color: #F6F1E8; }
.estre-band h2 em { font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-weight: 500; color: #E9D3B0; }
.estre-band p { font-size: 16px; line-height: 1.6; color: rgba(246,241,232,.88); margin: 0 0 24px; }
@media (max-width: 700px) {
  /* phones: picture/film on top at 16:10 (whole piece visible), words underneath on dark — never over the image */
  .estre-band { height: auto; min-height: 0; max-height: none; display: flex; flex-direction: column; background: #1C1916; }
  .estre-band .eb-media { position: relative; inset: auto; height: auto; aspect-ratio: 16 / 10; z-index: 0; }
  .estre-band .eb-shade { display: none; }
  .estre-band .eb-copy, .estre-band.al-right .eb-copy { position: static; padding: 22px 20px 36px; max-width: none; text-align: left; }
  .estre-band h2 { font-size: 30px; margin-bottom: 10px; }
  .estre-band p { font-size: 15px; margin-bottom: 18px; }
}

/* split band (EMS bands[].layout = 'split'): the whole photo stays visible, words beside it — for pictures that must not be covered (the ET award) */
@media (min-width: 701px) {
  .estre-band.is-split { height: auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: center; background: #1C1916; }
  .estre-band.is-split .eb-media { position: relative; inset: auto; height: auto; aspect-ratio: 16 / 9; z-index: 0; }
  .estre-band.is-split .eb-shade { display: none; }
  .estre-band.is-split .eb-copy { position: static; padding: clamp(28px, 4vw, 64px); max-width: 520px; }
  .estre-band.is-split h2 { font-size: clamp(30px, 3.2vw, 48px); }
}
.estre-band.is-split .eb-media { object-fit: contain; background: #E8DFD2; }

/* festive banner */
.festive-banner { display: block; margin: 0 0 32px; border-radius: 18px; overflow: hidden; } .festive-banner img { width: 100%; height: auto; display: block; }

/* floating WhatsApp */
.estre-wa-fab { position: fixed; left: 18px; bottom: 18px; z-index: 300; display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px 12px 12px; border-radius: 999px; background: #1F7A4D; color: #fff; text-decoration: none; font-size: 14px; font-weight: 600; box-shadow: 0 10px 30px rgba(20,60,40,.35); transition: transform .25s ease; }
.estre-wa-fab:hover { transform: translateY(-2px); }
/* phones: the old two-button bar repeated the header search + hero buttons and sat under the chat and WhatsApp buttons */
.mobile-action-bar { display: none !important; }
@media (max-width: 700px) { .estre-wa-fab { bottom: 16px; left: 14px; padding: 12px; } .estre-wa-fab span { display: none; } .hero-film-piece { display: none !important; } }

/* launch: no configurator link, no certificate download (not available yet) */
.studios-online { display: none !important; }
a[href$="limited-warranty-certificate.pdf"] { display: none !important; }

/* grid children may shrink below their content (the 10-photo thumbnail strip and spec cards widened phones to ~750 px) */
.pd-grid > *, .pd-specs-grid > *, .pd-info, .pd-gallery, .cat-grid > *, .products-grid > *, .v2-coll-grid > * { min-width: 0; }
.pd-gallery-thumbs { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; max-width: 100%; }
.pd-gallery-thumbs > * { flex: 0 0 auto; }
.pd-specs-grid { overflow-wrap: anywhere; }
@media (max-width: 700px) { .pd-grid, .pd-specs-grid { grid-template-columns: minmax(0, 1fr) !important; } }
.v2-measure-body > * { min-width: 0; }
.v2-stage { overflow: hidden; }
@media (max-width: 480px) { .v2-sofa { transform: scale(.78); transform-origin: center bottom; } .v2-stage { padding-left: 12px; padding-right: 12px; } }

.qs-piece-image.qs-photo { overflow: hidden; position: relative; }
.qs-piece-image.qs-photo img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 4/3; }
.qs-piece-image.qs-photo .qs-pill { position: absolute; z-index: 1; }

/* phones: the Evara film plays in a plain 16:10 frame (no scroll-zoom that cropped it to the table); caption underneath */
@media (max-width: 700px) {
  .v2-film { height: auto !important; }
  .v2-film-pin { position: relative !important; height: auto !important; padding: 56px 0 8px !important; display: block !important; }
  .v2-film-head { position: static !important; opacity: 1 !important; transform: none !important; margin: 0 20px 22px; }
  .v2-film-head .v2-h2 { font-size: 30px; line-height: 1.1; }
  .v2-film-frame { --p: 0 !important; width: 100% !important; height: auto !important; aspect-ratio: 16 / 10; margin: 0 !important; border-radius: 0 !important; position: relative; }
  .v2-film-frame::after { display: none; }
  .v2-film-breathe { animation: none !important; inset: 0 !important; }
  .v2-film-light, .v2-film-hint { display: none !important; }
  .v2-film-cap { display: none !important; } /* the Evara block right below carries the name and button */
  .v2-film-btn { right: 12px !important; bottom: 12px !important; width: 38px !important; height: 38px !important; }
  .v2-film-more { margin-top: 8px; }
}
