
/* Shop the Look: pulsing hotspots + "Shop this item" popup
   Page: /shop-the-look-page/ (post 86769). Works with the existing Elementor structure:
   .sdl-item > .sdl-image > absolute button widgets linking to #item-N,
   and .product-item.item-N cards inside the same .sdl-item. */

.sdl-image { position: relative; }

/* Responsive look image: the Elementor settings give it a fixed 1320px height,
   taller than a laptop screen, which pushes the product cards out of view.
   The look photos are wide 16:9 images: use the full content width (same as the
   product row) and keep 16:9, capped so the whole image fits the screen height.
   A matching aspect ratio keeps the hotspot % positions exact. */
.sdl-item .sdl-image {
  --min-height: 0px !important;
  min-height: 0 !important;
  height: auto !important;
  aspect-ratio: 1920 / 1072; /* exact ratio of the wide look images */
  width: min(100%, calc(88vh * 1920 / 1072)) !important;
  max-width: 100%;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0 !important;
  background-size: cover !important;
  background-position: center !important;
}

/* Hotspot: replace the static icon with a pulsing white dot */
.sdl-image .elementor-widget-button.elementor-absolute { z-index: 5; }
.sdl-image .elementor-widget-button.elementor-absolute .elementor-button {
  position: relative;
  width: 28px;
  height: 28px;
  padding: 0 !important;
  border-radius: 50%;
  background: transparent !important;
  transform: translate(-50%, -50%);
  cursor: pointer;
}
.sdl-image .elementor-widget-button.elementor-absolute .elementor-button-content-wrapper { display: none; }
.sdl-image .elementor-widget-button.elementor-absolute .elementor-button::before,
.sdl-image .elementor-widget-button.elementor-absolute .elementor-button::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}
/* solid centre dot with a permanent dark ring, so it stays visible on light
   backgrounds (mirrors, white tiles) as well as dark ones */
.sdl-image .elementor-widget-button.elementor-absolute .elementor-button::before {
  inset: 7px;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, .55), 0 2px 8px rgba(0, 0, 0, .45);
  z-index: 1;
}
/* expanding ring: white with a thin dark edge */
.sdl-image .elementor-widget-button.elementor-absolute .elementor-button::after {
  inset: 0;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(0, 0, 0, .35);
  animation: stl-pulse 1.8s ease-out infinite;
}
.sdl-image .elementor-widget-button.elementor-absolute .elementor-button:hover::before,
.sdl-image .elementor-widget-button.elementor-absolute .elementor-button.stl-active::before { inset: 5px; }
@keyframes stl-pulse {
  0%   { transform: scale(.6); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .sdl-image .elementor-widget-button.elementor-absolute .elementor-button::after { animation: none; transform: scale(1.2); }
}

/* Popup */
.stl-popup {
  position: absolute;
  z-index: 20;
  width: 300px;
  max-width: calc(100% - 20px);
  background: #fff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .18);
  font-family: inherit;
  color: #222;
  animation: stl-pop .18s ease-out;
}
@keyframes stl-pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.stl-popup__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid #e5e5e5;
  font-style: italic;
  font-size: 14px;
}
.stl-popup__close {
  border: 0;
  background: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #222;
  padding: 0 2px;
}
.stl-popup__body { display: flex; gap: 12px; padding: 12px 14px 14px; }
.stl-popup__img {
  flex: 0 0 110px;
  height: 110px;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stl-popup__img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.stl-popup__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.stl-popup__brand { font-size: 10px; letter-spacing: .08em; color: #8a7a3c; text-transform: uppercase; }
.stl-popup__name { font-size: 13px; font-weight: 600; line-height: 1.3; margin: 0; }
.stl-popup__price { font-size: 12px; color: #777; }
.stl-popup__btn {
  display: block;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 7px 8px;
  border: 1px solid #222;
  text-decoration: none;
  color: #222;
  background: #fff;
}
.stl-popup__btn--dark { background: #3a3a3a; border-color: #3a3a3a; color: #fff; }
.stl-popup__btn:hover { opacity: .85; }

/* Product row arrows (added by the script only when cards overflow the row) */
.stl-row-host { position: relative; }
/* the row must be no wider than the page so extra cards overflow (and scroll) */
.sdl-item .sdl-products {
  --width: 100% !important;
  width: 100% !important;
  max-width: 100%;
  flex-wrap: nowrap !important;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.sdl-item .sdl-products::-webkit-scrollbar { display: none; }
/* desktop: all cards of a look on one row, same width as the look image */
@media (min-width: 1025px) {
  .sdl-item .sdl-wrapper {
    width: min(100%, calc(88vh * 1920 / 1072)) !important;
    max-width: 100%;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .sdl-item .sdl-products {
    --gap: 16px !important; --column-gap: 16px !important; column-gap: 16px !important;
    --padding-left: 0px !important; --padding-right: 0px !important;
    padding-left: 0 !important; padding-right: 0 !important;
  }
  .sdl-item .sdl-products > .e-con {
    --width: calc((100% - (var(--stl-n, 3) - 1) * 16px) / var(--stl-n, 3)) !important;
    width: calc((100% - (var(--stl-n, 3) - 1) * 16px) / var(--stl-n, 3)) !important;
    flex: 0 0 calc((100% - (var(--stl-n, 3) - 1) * 16px) / var(--stl-n, 3)) !important;
    min-width: 0 !important;
  }
  .sdl-item .sdl-wrapper { overflow: visible !important; }
  .stl-nav--prev { left: -24px; }
  .stl-nav--next { right: -24px; }
}
.stl-nav {
  position: absolute;
  top: 30%;
  z-index: 6;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .65);
  color: #fff;
  font-size: 30px;
  line-height: 44px;
  text-align: center;
  cursor: pointer;
  padding: 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
}
.stl-nav--prev { left: 8px; }
.stl-nav--next { right: 8px; }
.stl-nav:hover { background: rgba(0, 0, 0, .8); }
.stl-nav[disabled] { opacity: .3; cursor: default; }
.stl-nav[hidden] { display: none; }

/* Product card photos: show the whole product, never crop it */
.sdl-item .sdl-products .elementor-widget-image img {
  width: 100% !important;
  aspect-ratio: 1 / 1;
  height: auto !important;
  object-fit: contain !important;
  background: #fff;
}

/* Product cards: reserve two lines for the product name so price, swatches and
   buttons line up across cards whether the name takes one or two lines */
.sdl-products > .e-con > .e-con > .elementor-widget-heading:first-of-type .elementor-heading-title {
  min-height: 3em;            /* 2 lines at the card title's 1.5em line-height */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== Hero: full-bleed slideshow of the looks ===== */
/* original hero content stays in the page for SEO/screen readers, but is visually hidden */
.stl-hero-host > *:not(.stl-hero) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}
.stl-hero-host { position: relative; }
.stl-hero-host, .stl-hero-host > .e-con-inner { padding: 0 !important; max-width: none !important; }
.stl-hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: min(88vh, 860px);
  min-height: 520px;
  overflow: hidden;
  background: #111;
  color: #fff;
}
.stl-hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.4s ease, transform 7s ease-out;
}
.stl-hero__slide.is-on { opacity: 1; transform: scale(1); }
.stl-hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 10, 10, .78) 0%, rgba(10, 10, 10, .45) 45%, rgba(10, 10, 10, .05) 80%),
    linear-gradient(0deg, rgba(10, 10, 10, .55) 0%, rgba(10, 10, 10, 0) 35%);
}
.stl-hero__content {
  position: absolute;
  left: max(24px, 7vw);
  top: 50%;
  transform: translateY(-50%);
  max-width: 640px;
  z-index: 2;
}
.stl-hero__eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: #e9d9a8;
  border-bottom: 1px solid rgba(233, 217, 168, .6);
  padding-bottom: 8px;
  margin-bottom: 22px;
}
.stl-hero__title {
  margin: 0 0 18px;
  font-family: inherit;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(46px, 7.2vw, 112px);
  line-height: .95;
  letter-spacing: -.01em;
  color: #fff;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .35);
}
.stl-hero__lead { font-size: clamp(15px, 1.25vw, 19px); line-height: 1.6; color: rgba(255, 255, 255, .88); margin: 0 0 26px; max-width: 520px; }
.stl-hero__brands { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 0 0 34px; }
.stl-hero__brands li { font-size: 12px; letter-spacing: .22em; color: rgba(255, 255, 255, .8); }
.stl-hero__brands li + li::before { content: "•"; margin-right: 22px; color: #e9d9a8; }
.stl-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 30px;
  background: #fff;
  color: #111 !important;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.stl-hero__cta:hover { background: #e9d9a8; }
.stl-hero__nav {
  position: absolute;
  right: max(16px, 4vw);
  bottom: 32px;
  z-index: 2;
  display: flex;
  gap: 10px;
}
.stl-hero__dot { position: relative; display: block; width: 34px; height: 3px; background: rgba(255, 255, 255, .4); }
.stl-hero__dot.is-on { background: #fff; }
.stl-hero__dot span {
  position: absolute; bottom: 12px; right: 0; white-space: nowrap; font-size: 11px; letter-spacing: .08em;
  color: #fff; opacity: 0; transition: opacity .2s; pointer-events: none;
}
.stl-hero__dot:hover span { opacity: 1; }
@media (max-width: 767px) {
  .stl-hero { height: 78vh; min-height: 480px; }
  .stl-hero__shade { background: linear-gradient(0deg, rgba(10, 10, 10, .85) 0%, rgba(10, 10, 10, .35) 60%, rgba(10, 10, 10, .15) 100%); }
  .stl-hero__content { top: auto; bottom: 64px; transform: none; right: 20px; }
  .stl-hero__nav { left: 20px; right: auto; bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) { .stl-hero__slide { transition: opacity .01s; transform: none; } }

/* Small screens: popup becomes a bottom sheet */
@media (max-width: 767px) {
  .sdl-image .elementor-widget-button.elementor-absolute .elementor-button { width: 22px; height: 22px; }
  .sdl-image .elementor-widget-button.elementor-absolute .elementor-button::before { inset: 6px; }
  .stl-popup {
    position: fixed;
    left: 0 !important;
    right: 0;
    bottom: 0;
    top: auto !important;
    width: 100%;
    max-width: 100%;
  }
}

/* "Custom finishes" note after the swatches on mirror and seating cards (matches mi-barbara.com) */
.stl-finish-note {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  font-size: 10px;
  line-height: 1;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #8a8a8a;
  white-space: nowrap;
  align-self: center;
}

/* Native ZIM adapter. The network's dots, popup, hero and arrows above are shared. */
.mi-shop-the-look { background:#f6f0df;color:#252729;overflow:clip; }
.mi-shop-the-look .stl-hero { width:100%;margin:0; }
.mi-shop-the-look .stl-hero__slide img { display:block;width:100%;height:100%;object-fit:cover; }
.mi-shop-the-look .stl-hero__title { color:#fff;font-style:italic;font-weight:400; }
.mi-shop-the-look .stl-hero__cta { scroll-margin-top:150px; }
.mi-look-intro,.mi-look-closing { max-width:1000px;margin:auto;padding:75px 25px;text-align:center; }
.mi-look-intro h2,.mi-look-closing h2 { font-size:clamp(26px,3vw,42px);font-weight:500;line-height:1.2;margin:0 0 22px; }
.mi-look-intro p,.mi-look-closing p { max-width:750px;margin:0 auto 20px;line-height:1.65; }
.mi-look-brand-list { font-size:12px;letter-spacing:.15em; }
.mi-shop-the-look .sdl-item { padding:30px 25px 65px;scroll-margin-top:145px; }
.mi-look-room-heading { max-width:1320px;margin:0 auto 30px;text-align:center; }
.mi-look-room-heading h2 { font-size:clamp(26px,3vw,45px);font-weight:500;margin:0 0 12px;line-height:1.2; }
.mi-look-room-heading p { max-width:850px;margin:auto;line-height:1.65;font-size:17px; }
.mi-shop-the-look .sdl-image { max-width:1320px; }
.mi-look-room-photo { position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover; }
.mi-shop-the-look .elementor-absolute { position:absolute; }
.mi-shop-the-look .sdl-image .elementor-button { display:block;border:0;box-shadow:none; }
.mi-shop-the-look .sdl-image .elementor-button:focus-visible { outline:2px solid #fff;outline-offset:10px; }
.mi-shop-the-look .sdl-wrapper { max-width:1320px;margin:20px auto 0; }
.mi-shop-the-look .sdl-products { display:flex;gap:16px;align-items:stretch;direction:ltr;padding-bottom:8px; }
.mi-shop-the-look .sdl-products > .product-item { display:flex;flex-direction:column;flex:0 0 calc((100% - 32px)/3);min-width:0;scroll-snap-align:start; }
.mi-shop-the-look .stl-card-body { display:flex;flex-direction:column;flex:1;padding:18px 8px 10px;text-align:center; }
.mi-shop-the-look .stl-card-body h3.elementor-heading-title { font-size:17px;font-weight:500;line-height:1.5;display:flex;flex-direction:column;margin:0 0 8px;min-height:5.5em;overflow:visible; }
.stl-card-body h3 a { color:inherit;text-decoration:none;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden; }
.mi-shop-the-look .stl-brand { display:block;font-size:10px;font-weight:400;letter-spacing:.12em;color:#8a7a3c;margin-bottom:7px; }
.mi-shop-the-look .stl-card-price { font-size:18px;font-weight:500;margin:0 0 12px;min-height:27px; }
.stl-card-finish { min-height:30px;margin-bottom:12px; }
.mi-shop-the-look .stl-finish-note { margin:0; }
.mi-shop-the-look .sdl-buttons { display:flex;gap:10px;margin-top:auto; }
.mi-shop-the-look .sdl-buttons .elementor-button { flex:1;border:1px solid #252729;padding:12px 8px;color:#252729;font-size:11px;letter-spacing:.06em;text-transform:uppercase;text-decoration:none;text-align:center; }
.mi-shop-the-look .sdl-buttons .elementor-button:last-child { color:white;background:#3a3a3a; }
.mi-shop-the-look .sdl-buttons .elementor-button:hover { color:white;background:#252729; }
.mi-shop-the-look .stl-popup { text-align:start;z-index:30; }
.mi-shop-the-look .stl-popup__close { min-width:30px;min-height:30px; }
.mi-shop-the-look .stl-popup__btn:focus-visible { outline:2px solid #a6843c;outline-offset:2px; }
.mi-look-closing { padding-bottom:90px; }
.mi-look-closing > div { display:flex;justify-content:center;gap:15px;flex-wrap:wrap; }
@media(max-width:1024px) {
 .mi-shop-the-look .sdl-products > .product-item { flex-basis:calc((100% - 16px)/2); }
 .mi-shop-the-look .sdl-products { scroll-snap-type:x proximity; }
}
@media(max-width:767px) {
 .mi-shop-the-look .sdl-item { padding:25px 20px 40px;scroll-margin-top:115px; }
 .mi-look-intro,.mi-look-closing { padding:45px 20px; }
 .mi-shop-the-look .sdl-products > .product-item { flex-basis:80%; }
 .mi-shop-the-look .sdl-image .elementor-widget-button.elementor-absolute .elementor-button { width:32px;height:32px; }
 .mi-shop-the-look .stl-popup { z-index:10000;padding-bottom:env(safe-area-inset-bottom);max-height:80dvh;overflow:auto; }
 .mi-look-room-heading p { font-size:15px; }
}
@media(prefers-reduced-motion:reduce) {
 .mi-shop-the-look .sdl-products { scroll-behavior:auto; }
 .mi-shop-the-look .stl-popup { animation:none; }
}

.mi-shop-the-look .stl-card-finish { display:flex;align-items:center;justify-content:center;gap:7px;flex-wrap:wrap; }
.mi-shop-the-look .stl-swatch { display:inline-block;width:18px;height:18px;border-radius:50%;border:1px solid #0002;flex-shrink:0; }

/* Brand spelling is never converted to capitals. */
.stl-brand,.stl-popup__brand,.mi-look-brand-list,.mi-look-promo__brands{text-transform:none!important}

.stl-hero__title,.mi-look-promo h2{text-transform:none!important}

/* Shared button and typography fallbacks do not depend on an Illuma stylesheet. */
.mi-shop-the-look{font-family:inherit}.mi-shop-the-look a.mi-pill{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:12px 24px;border-radius:32px;border:1px solid #252729;color:#252729;text-decoration:none;font-size:14px;line-height:1.4}.mi-shop-the-look a.mi-pill:focus-visible{outline:3px solid #a6843c;outline-offset:4px}.mi-shop-the-look .mi-eyebrow{font-size:12px;letter-spacing:.12em}

.mi-shop-the-look .sdl-image>.elementor-absolute{position:absolute}.mi-shop-the-look .sdl-image>.elementor-absolute .elementor-button{box-sizing:border-box}

/* The legacy row uses an important flex shorthand; keep mobile cards readable and scrollable. */
@media(max-width:767px){.mi-shop-the-look .sdl-products>.product-item{flex:0 0 80%!important}}
