/*
 * Homepage hero — "split" layout (text panel + photo).
 *
 * Why: product photos are almost square and carry the La Vita logo and a code
 * label in the corners. A full-bleed 2.5:1 banner crops them badly and puts
 * the text on top of busy bedding. Here the copy sits on a calm cream panel
 * and the photo fills only its own area (desktop: right side, phone: top).
 *
 * Trick: the slide keeps its inline background-image (lazy loading and
 * media:// hydration in app.js are untouched). Padding reserves the text
 * area and background-origin/clip: content-box make `cover` fit the photo
 * to the remaining box only.
 *
 * Switch off by removing the `hero-layout-split` class in index.html.
 * Loaded last; heavy selector + !important beat the older hero layers.
 */
html body:not(#_hs1):not(#_hs2):not(#_hs3):not(#_hs4) #hero-section.hero-layout-split {
  --hs-panel: 42%;
  --hs-bg: #f7f1e8;
  --hs-ink: #3a2a1d;
  --hs-muted: #6d5a49;
  --hs-gold: #a8844f;
  --hs-line: rgba(168, 132, 79, 0.28);
  background: var(--hs-bg) !important;
  border-color: var(--hs-line) !important;
}
html[data-theme="dark"] body:not(#_hs1):not(#_hs2):not(#_hs3):not(#_hs4) #hero-section.hero-layout-split {
  --hs-bg: #1e1a16;
  --hs-ink: #f3eadc;
  --hs-muted: rgba(243, 234, 220, 0.72);
  --hs-gold: #c9a876;
  --hs-line: rgba(201, 168, 118, 0.25);
}

/* ── Slide: photo only in the right-hand box ── */
html body:not(#_hs1):not(#_hs2):not(#_hs3):not(#_hs4) #hero-section.hero-layout-split .hero-slide {
  padding: 0 0 0 var(--hs-panel) !important;
  background-color: transparent !important;
  background-size: cover !important;
  background-position: center 62% !important;
  background-repeat: no-repeat !important;
  background-origin: content-box !important;
  background-clip: content-box !important;
  display: block !important;
}
html[dir="rtl"] body:not(#_hs1):not(#_hs2):not(#_hs3):not(#_hs4) #hero-section.hero-layout-split .hero-slide,
html body[dir="rtl"]:not(#_hs1):not(#_hs2):not(#_hs3):not(#_hs4) #hero-section.hero-layout-split .hero-slide {
  padding: 0 var(--hs-panel) 0 0 !important;
}
html body:not(#_hs1):not(#_hs2):not(#_hs3):not(#_hs4) #hero-section.hero-layout-split .hero-slide::after {
  /* soft seam between panel and photo instead of a dark veil over the bed */
  inset: 0 auto 0 var(--hs-panel) !important;
  width: 90px !important;
  height: 100% !important;
  background: linear-gradient(90deg, var(--hs-bg) 0%, rgba(247, 241, 232, 0) 100%) !important;
  opacity: 0.55 !important;
}
html[data-theme="dark"] body:not(#_hs1):not(#_hs2):not(#_hs3):not(#_hs4) #hero-section.hero-layout-split .hero-slide::after {
  background: linear-gradient(90deg, var(--hs-bg) 0%, rgba(30, 26, 22, 0) 100%) !important;
}
html[dir="rtl"] body:not(#_hs1):not(#_hs2):not(#_hs3):not(#_hs4) #hero-section.hero-layout-split .hero-slide::after,
html body[dir="rtl"]:not(#_hs1):not(#_hs2):not(#_hs3):not(#_hs4) #hero-section.hero-layout-split .hero-slide::after {
  inset: 0 var(--hs-panel) 0 auto !important;
  background: linear-gradient(270deg, var(--hs-bg) 0%, rgba(247, 241, 232, 0) 100%) !important;
}

/* ── Text panel ── */
html body:not(#_hs1):not(#_hs2):not(#_hs3):not(#_hs4) #hero-section.hero-layout-split .hero-slide-content {
  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  right: auto !important;
  width: var(--hs-panel) !important;
  max-width: none !important;
  height: auto !important;
  margin: 0 !important;
  padding: 40px clamp(28px, 4vw, 72px) 64px !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-start !important;
  gap: 0 !important;
  text-align: left !important;
  text-shadow: none !important;
  color: var(--hs-ink) !important;
  background: var(--hs-bg) !important;
  overflow: hidden !important;
}
html[dir="rtl"] body:not(#_hs1):not(#_hs2):not(#_hs3):not(#_hs4) #hero-section.hero-layout-split .hero-slide-content,
html body[dir="rtl"]:not(#_hs1):not(#_hs2):not(#_hs3):not(#_hs4) #hero-section.hero-layout-split .hero-slide-content {
  left: auto !important;
  right: 0 !important;
  direction: rtl !important;
  align-items: flex-start !important;
  text-align: right !important;
}
html body:not(#_hs1):not(#_hs2):not(#_hs3):not(#_hs4) #hero-section.hero-layout-split .hero-slide-content > * {
  text-align: inherit !important;
  width: auto !important;
  max-width: 100% !important;
}

html body:not(#_hs1):not(#_hs2):not(#_hs3):not(#_hs4) #hero-section.hero-layout-split .hero-subtitle {
  font-family: var(--font-sans, Montserrat, sans-serif) !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
  color: var(--hs-gold) !important;
  margin: 0 0 18px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  -webkit-line-clamp: unset !important;
}
html body:not(#_hs1):not(#_hs2):not(#_hs3):not(#_hs4) #hero-section.hero-layout-split .hero-subtitle::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  flex: 0 0 auto;
}
html body:not(#_hs1):not(#_hs2):not(#_hs3):not(#_hs4) #hero-section.hero-layout-split .hero-title {
  font-family: var(--font-serif, 'Playfair Display', serif) !important;
  font-size: clamp(32px, 3.3vw, 54px) !important;
  font-weight: 400 !important;
  line-height: 1.2 !important; /* 1.1 + overflow:hidden cut the bottom of «g / p / y» */
  padding-bottom: 0.08em !important;
  letter-spacing: -0.005em !important;
  color: var(--hs-ink) !important;
  margin: 0 0 18px !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}
html body:not(#_hs1):not(#_hs2):not(#_hs3):not(#_hs4) #hero-section.hero-layout-split .hero-description {
  font-family: var(--font-sans, Montserrat, sans-serif) !important;
  font-size: 15px !important;
  line-height: 1.7 !important;
  color: var(--hs-muted) !important;
  max-width: 42ch !important;
  margin: 0 0 26px !important;
  opacity: 1 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

/* Welcome code: quiet outlined coupon on the cream panel */
html body:not(#_hs1):not(#_hs2):not(#_hs3):not(#_hs4) #hero-section.hero-layout-split .hero-code-chip {
  margin: 0 0 22px !important;
  padding: 9px 16px !important;
  font-size: 12px !important;
  letter-spacing: 0.08em !important;
  color: var(--hs-muted) !important;
  background: transparent !important;
  border: 1px dashed var(--hs-gold) !important;
  border-radius: 6px !important;
}
html body:not(#_hs1):not(#_hs2):not(#_hs3):not(#_hs4) #hero-section.hero-layout-split .hero-code-chip b {
  color: var(--hs-ink) !important;
  font-size: 15px !important;
}

/* CTA: solid ink button, gold on hover */
html body:not(#_hs1):not(#_hs2):not(#_hs3):not(#_hs4) #hero-section.hero-layout-split .hero-slide-cta.btn-luxury {
  align-self: flex-start !important;
  margin: 0 !important;
  min-height: 50px !important;
  padding: 0 34px !important;
  background: var(--hs-ink) !important;
  border: 1px solid var(--hs-ink) !important;
  color: var(--hs-bg) !important;
  border-radius: 2px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease !important;
}
html body:not(#_hs1):not(#_hs2):not(#_hs3):not(#_hs4) #hero-section.hero-layout-split .hero-slide-cta.btn-luxury:hover {
  background: var(--hs-gold) !important;
  border-color: var(--hs-gold) !important;
  color: #fff !important;
}

/* Dots under the copy, arrows as small cream discs */
html body:not(#_hs1):not(#_hs2):not(#_hs3):not(#_hs4) #hero-section.hero-layout-split .hero-slider-dots {
  left: clamp(28px, 4vw, 72px) !important;
  right: auto !important;
  bottom: 28px !important;
  transform: none !important;
  gap: 8px !important;
}
html[dir="rtl"] body:not(#_hs1):not(#_hs2):not(#_hs3):not(#_hs4) #hero-section.hero-layout-split .hero-slider-dots,
html body[dir="rtl"]:not(#_hs1):not(#_hs2):not(#_hs3):not(#_hs4) #hero-section.hero-layout-split .hero-slider-dots {
  left: auto !important;
  right: clamp(28px, 4vw, 72px) !important;
}
html body:not(#_hs1):not(#_hs2):not(#_hs3):not(#_hs4) #hero-section.hero-layout-split .slider-dot {
  width: 8px !important;
  height: 8px !important;
  background: var(--hs-line) !important;
  border: 0 !important;
  transform: none !important;
}
html body:not(#_hs1):not(#_hs2):not(#_hs3):not(#_hs4) #hero-section.hero-layout-split .slider-dot.active {
  width: 28px !important;
  border-radius: 4px !important;
  background: var(--hs-ink) !important;
}
html body:not(#_hs1):not(#_hs2):not(#_hs3):not(#_hs4) #hero-section.hero-layout-split .hero-slider-nav {
  width: 42px !important;
  height: 42px !important;
  background: rgba(255, 255, 255, 0.82) !important;
  border: 0 !important;
  color: #3a2a1d !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12) !important;
  backdrop-filter: none !important;
}
html body:not(#_hs1):not(#_hs2):not(#_hs3):not(#_hs4) #hero-section.hero-layout-split .hero-slider-nav svg {
  width: 18px !important;
  height: 18px !important;
}
/* ── Tablet ── */
@media (max-width: 1100px) {
  html body:not(#_hs1):not(#_hs2):not(#_hs3):not(#_hs4) #hero-section.hero-layout-split { --hs-panel: 46%; }
  html body:not(#_hs1):not(#_hs2):not(#_hs3):not(#_hs4) #hero-section.hero-layout-split .hero-description { font-size: 14px !important; margin-bottom: 20px !important; }
}

/* ── Phone: photo on top, copy below ── */
@media (max-width: 700px) {
  html body:not(#_hs1):not(#_hs2):not(#_hs3):not(#_hs4) #hero-section.hero-layout-split {
    --hs-photo: 250px;
    --hs-text: 270px;
  }
  html body:not(#_hs1):not(#_hs2):not(#_hs3):not(#_hs4) #hero-section.hero-layout-split,
  html body:not(#_hs1):not(#_hs2):not(#_hs3):not(#_hs4) #hero-section.hero-layout-split .hero-slider-container,
  html body:not(#_hs1):not(#_hs2):not(#_hs3):not(#_hs4) #hero-section.hero-layout-split .hero-slider-wrapper,
  html body:not(#_hs1):not(#_hs2):not(#_hs3):not(#_hs4) #hero-section.hero-layout-split .hero-slide {
    height: calc(var(--hs-photo) + var(--hs-text)) !important;
    min-height: calc(var(--hs-photo) + var(--hs-text)) !important;
    max-height: calc(var(--hs-photo) + var(--hs-text)) !important;
  }
  html body:not(#_hs1):not(#_hs2):not(#_hs3):not(#_hs4) #hero-section.hero-layout-split .hero-slide,
  html[dir="rtl"] body:not(#_hs1):not(#_hs2):not(#_hs3):not(#_hs4) #hero-section.hero-layout-split .hero-slide,
  html body[dir="rtl"]:not(#_hs1):not(#_hs2):not(#_hs3):not(#_hs4) #hero-section.hero-layout-split .hero-slide {
    padding: 0 0 var(--hs-text) 0 !important;
    background-position: center 60% !important;
  }
  html body:not(#_hs1):not(#_hs2):not(#_hs3):not(#_hs4) #hero-section.hero-layout-split .hero-slide::after {
    display: none !important;
  }
  html body:not(#_hs1):not(#_hs2):not(#_hs3):not(#_hs4) #hero-section.hero-layout-split .hero-slide-content,
  html[dir="rtl"] body:not(#_hs1):not(#_hs2):not(#_hs3):not(#_hs4) #hero-section.hero-layout-split .hero-slide-content,
  html body[dir="rtl"]:not(#_hs1):not(#_hs2):not(#_hs3):not(#_hs4) #hero-section.hero-layout-split .hero-slide-content {
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: var(--hs-text) !important;
    max-height: var(--hs-text) !important;
    padding: 20px 20px 18px !important;
    justify-content: flex-start !important;
    align-items: center !important;
    text-align: center !important;
  }
  html body:not(#_hs1):not(#_hs2):not(#_hs3):not(#_hs4) #hero-section.hero-layout-split .hero-subtitle {
    font-size: 10px !important;
    letter-spacing: 0.18em !important;
    margin: 0 0 8px !important;
    justify-content: center !important;
    display: flex !important;
  }
  html body:not(#_hs1):not(#_hs2):not(#_hs3):not(#_hs4) #hero-section.hero-layout-split .hero-subtitle::before { display: none; }
  html body:not(#_hs1):not(#_hs2):not(#_hs3):not(#_hs4) #hero-section.hero-layout-split .hero-title {
    font-size: 25px !important;
    line-height: 1.24 !important;
    margin: 0 0 8px !important;
    -webkit-line-clamp: 2 !important;
  }
  html body:not(#_hs1):not(#_hs2):not(#_hs3):not(#_hs4) #hero-section.hero-layout-split .hero-description {
    font-size: 13px !important;
    line-height: 1.5 !important;
    margin: 0 0 12px !important;
    -webkit-line-clamp: 2 !important;
  }
  html body:not(#_hs1):not(#_hs2):not(#_hs3):not(#_hs4) #hero-section.hero-layout-split .hero-code-chip {
    align-self: center !important;
    margin: 0 0 12px !important;
    padding: 6px 12px !important;
    font-size: 11px !important;
  }
  html body:not(#_hs1):not(#_hs2):not(#_hs3):not(#_hs4) #hero-section.hero-layout-split .hero-code-chip b { font-size: 13px !important; }
  html body:not(#_hs1):not(#_hs2):not(#_hs3):not(#_hs4) #hero-section.hero-layout-split .hero-slide-cta.btn-luxury {
    align-self: stretch !important;
    width: 100% !important;
    min-height: 46px !important;
    margin-top: auto !important;
    justify-content: center !important;
  }
  /* dots on the photo's bottom edge; arrows hidden (swipe works) */
  html body:not(#_hs1):not(#_hs2):not(#_hs3):not(#_hs4) #hero-section.hero-layout-split .hero-slider-dots,
  html[dir="rtl"] body:not(#_hs1):not(#_hs2):not(#_hs3):not(#_hs4) #hero-section.hero-layout-split .hero-slider-dots,
  html body[dir="rtl"]:not(#_hs1):not(#_hs2):not(#_hs3):not(#_hs4) #hero-section.hero-layout-split .hero-slider-dots {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    bottom: calc(var(--hs-text) + 12px) !important;
  }
  html body:not(#_hs1):not(#_hs2):not(#_hs3):not(#_hs4) #hero-section.hero-layout-split .slider-dot { background: rgba(255, 255, 255, 0.7) !important; }
  html body:not(#_hs1):not(#_hs2):not(#_hs3):not(#_hs4) #hero-section.hero-layout-split .slider-dot.active { background: #fff !important; }
  html body:not(#_hs1):not(#_hs2):not(#_hs3):not(#_hs4) #hero-section.hero-layout-split .hero-slider-nav { display: none !important; }
}

/* ── Designed banners (Banner Studio): whole picture, no text panel ──
 * A slide saved with no title / subtitle / description is a finished design.
 * Desktop picture 1920×770 (= 1345×540 box), phone picture 1080×1640 (= phone box). */
html body:not(#_hs1):not(#_hs2):not(#_hs3):not(#_hs4) #hero-section.hero-layout-split .hero-slide.hero-slide--full,
html[dir="rtl"] body:not(#_hs1):not(#_hs2):not(#_hs3):not(#_hs4) #hero-section.hero-layout-split .hero-slide.hero-slide--full,
html body[dir="rtl"]:not(#_hs1):not(#_hs2):not(#_hs3):not(#_hs4) #hero-section.hero-layout-split .hero-slide.hero-slide--full {
  padding: 0 !important;
  background-origin: border-box !important;
  background-clip: border-box !important;
  background-position: center center !important;
  background-color: #0b0b0d !important;
}
html body:not(#_hs1):not(#_hs2):not(#_hs3):not(#_hs4) #hero-section.hero-layout-split .hero-slide.hero-slide--full::after {
  display: none !important;
}
@media (max-width: 700px) {
  html body:not(#_hs1):not(#_hs2):not(#_hs3):not(#_hs4) #hero-section.hero-layout-split .hero-slide.hero-slide--full {
    padding: 0 !important;
    background-size: cover !important;
    background-position: center center !important;
  }
  html body:not(#_hs1):not(#_hs2):not(#_hs3):not(#_hs4) #hero-section.hero-layout-split .hero-slide.hero-slide--full:not(.hero-slide--no-mobile) {
    background-image: var(--hs-m-img) !important;
  }
  /* no phone picture uploaded: show the whole desktop design, centred */
  html body:not(#_hs1):not(#_hs2):not(#_hs3):not(#_hs4) #hero-section.hero-layout-split .hero-slide.hero-slide--full.hero-slide--no-mobile {
    background-size: contain !important;
  }
}
