/* Controlled CMS storefront components — no editor-authored CSS */
body.sly-v2 .sly-cms-page {
  max-width: none;
  margin: 0;
  width: 100%;
  min-width: 0;
}

/* Constrain non-hero sections; hero / campaign / opening stay edge-to-edge. */
body.sly-v2 .sly-cms-page > *:not(.sly-cms-hero):not(.sly-cms-campaign):not(.sly-opening) {
  max-width: var(--sly-max, 1440px);
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

body.sly-v2 .sly-cms-page > .sly-cms-hero,
body.sly-v2 .sly-cms-page > .sly-cms-campaign,
body.sly-v2 .sly-cms-page > .sly-opening {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

body.sly-v2 .sly-cms-hero,
body.sly-v2 .sly-cms-campaign {
  position: relative;
  min-height: min(88vh, 52rem);
  display: grid;
  align-items: end;
  background: var(--sly-bg-soft, #18181b);
  overflow: hidden; /* crop media within hero frame only */
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

body.sly-v2 .sly-cms-hero__media {
  position: absolute;
  inset: 0;
  min-width: 0;
}

body.sly-v2 .sly-cms-hero__media img,
body.sly-v2 .sly-cms-hero__media video,
body.sly-v2 .sly-cms-campaign img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 0;
  max-width: 100%;
}

body.sly-v2 .sly-cms-hero__media img,
body.sly-v2 .sly-cms-hero__media video {
  position: absolute;
  inset: 0;
}

body.sly-v2 .sly-cms-hero__mobile { display: none; }
@media (max-width: 767px) {
  body.sly-v2 .sly-cms-hero__mobile { display: block; }
  body.sly-v2 .sly-cms-hero__desktop:not(:only-child) { display: none; }
}

/* Beat `.sly-cms-hero__media img { display:block }` so the inactive source stays out of layout. */
body.sly-v2 .sly-cms-hero__media img.sly-cms-hero__mobile,
body.sly-v2 .sly-cms-hero__media video.sly-cms-hero__mobile {
  display: none;
}
@media (max-width: 767px) {
  body.sly-v2 .sly-cms-hero__media img.sly-cms-hero__mobile,
  body.sly-v2 .sly-cms-hero__media video.sly-cms-hero__mobile {
    display: block;
  }
  body.sly-v2 .sly-cms-hero__media img.sly-cms-hero__desktop:not(:only-child),
  body.sly-v2 .sly-cms-hero__media video.sly-cms-hero__desktop:not(:only-child) {
    display: none;
  }
}

/*
 * Contain / plate composition: seamless #E8E8EA field (derived hero plate).
 * Desktop: copy + CTA left, complete glasses right.
 * Mobile: glasses above compact copy/CTA on the same grey field.
 * Dark readable text; no gradient.
 */
body.sly-v2 .sly-cms-hero--contain,
body.sly-v2 .sly-cms-hero--plate {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 0;
  overflow: visible;
  background: #e8e8ea;
  color: #111;
}

body.sly-v2 .sly-cms-hero--plate .sly-cms-hero__media,
body.sly-v2 .sly-cms-hero--contain.sly-cms-hero--plate .sly-cms-hero__media {
  position: relative;
  inset: auto;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 1.75rem) clamp(0.75rem, 4vw, 1.5rem) 0;
  min-height: 0;
  min-width: 0;
  max-width: 100%;
  background: #e8e8ea;
  box-sizing: border-box;
}

body.sly-v2 .sly-cms-hero--plate .sly-cms-hero__media img,
body.sly-v2 .sly-cms-hero--contain.sly-cms-hero--plate .sly-cms-hero__media img {
  position: relative;
  inset: auto;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: none;
  object-fit: contain;
  object-position: center;
  display: block;
}

body.sly-v2 .sly-cms-hero--plate .sly-cms-hero__content,
body.sly-v2 .sly-cms-hero--contain.sly-cms-hero--plate .sly-cms-hero__content,
body.sly-v2 .sly-cms-hero--plate.sly-cms-hero--soft .sly-cms-hero__content,
body.sly-v2 .sly-cms-hero--plate.sly-cms-hero--none .sly-cms-hero__content {
  position: relative;
  inset: auto;
  background: #e8e8ea;
  color: #111;
  padding: clamp(0.75rem, 3vw, 1.25rem) clamp(1rem, 4vw, 1.5rem) clamp(1.25rem, 4vw, 1.75rem);
}

body.sly-v2 .sly-cms-hero--plate .sly-cms-eyebrow {
  color: #555;
  margin: 0;
}

body.sly-v2 .sly-cms-hero--plate .sly-cms-hero__content h1 {
  font-size: clamp(1.375rem, 5vw, 2.25rem);
  line-height: 1.15;
  margin: 0.25rem 0 0.35rem;
  max-width: 18ch;
  color: #111;
}

body.sly-v2 .sly-cms-hero--plate .sly-cms-hero__content > p {
  margin: 0 0 0.75rem;
  color: #333;
  max-width: 36ch;
  font-size: var(--sly-fs-sm, 0.875rem);
}

body.sly-v2 .sly-cms-hero--plate .sly-cms-hero__content > p:last-child {
  margin-bottom: 0;
}

body.sly-v2 .sly-cms-hero--plate .sly-cms-cta {
  background: #111;
  color: #f2f2f2;
  border-color: #111;
}

@media (min-width: 768px) {
  body.sly-v2 .sly-cms-hero--plate {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    align-items: center;
    gap: clamp(1rem, 3vw, 2.5rem);
    padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 5vw, 4rem);
    min-height: min(52vh, 30rem);
  }
  body.sly-v2 .sly-cms-hero--plate .sly-cms-hero__media {
    order: 2;
    padding: 0;
    min-width: 0;
  }
  body.sly-v2 .sly-cms-hero--plate .sly-cms-hero__content,
  body.sly-v2 .sly-cms-hero--plate.sly-cms-hero--soft .sly-cms-hero__content,
  body.sly-v2 .sly-cms-hero--plate.sly-cms-hero--none .sly-cms-hero__content {
    order: 1;
    padding: 0;
    max-width: 28rem;
  }
  body.sly-v2 .sly-cms-hero--plate .sly-cms-hero__content h1 {
    font-size: clamp(2rem, 3.2vw, 3rem);
    margin: 0.4rem 0 0.55rem;
  }
  body.sly-v2 .sly-cms-hero--plate .sly-cms-hero__content > p {
    font-size: var(--sly-fs-md, 1rem);
    margin: 0 0 1.25rem;
  }
}

/* Tighten gap before Selected models after plate hero */
body.sly-v2 .sly-cms-hero--plate + .sly-cms-carousel {
  padding-top: var(--sly-space-5, 1.5rem);
}
body.sly-v2 .sly-cms-hero--plate + .sly-cms-carousel .sly-cms-products--cards {
  margin-top: var(--sly-space-4, 1rem);
}

body.sly-v2 .sly-cms-hero--soft .sly-cms-hero__content,
body.sly-v2 .sly-cms-campaign__content {
  background: linear-gradient(transparent, rgba(0,0,0,.72));
}

body.sly-v2 .sly-cms-hero__content,
body.sly-v2 .sly-cms-campaign__content {
  position: absolute;
  inset: auto 0 0;
  padding: var(--sly-space-7, 3rem) var(--sly-space-5, 1.5rem);
  color: var(--sly-fg, #f2f2f2);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

body.sly-v2 .sly-cms-align-center { text-align: center; }
body.sly-v2 .sly-cms-align-right { text-align: right; }

body.sly-v2 .sly-cms-split {
  display: grid;
  gap: var(--sly-space-5, 1.5rem);
  padding: var(--sly-space-7, 3rem) var(--sly-space-5, 1.5rem);
  min-width: 0;
}
@media (min-width: 768px) {
  body.sly-v2 .sly-cms-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
  body.sly-v2 .sly-cms-split--right .sly-cms-split__media { order: 2; }
}

body.sly-v2 .sly-cms-split__media img,
body.sly-v2 .sly-cms-split__media video {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--sly-bg-soft, #18181b);
}

body.sly-v2 .sly-cms-editorial,
body.sly-v2 .sly-cms-collection,
body.sly-v2 .sly-cms-carousel,
body.sly-v2 .sly-cms-grid,
body.sly-v2 .sly-cms-services,
body.sly-v2 .sly-cms-newsletter {
  padding: var(--sly-space-6, 2rem) var(--sly-space-4, 1rem);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
@media (min-width: 768px) {
  body.sly-v2 .sly-cms-editorial,
  body.sly-v2 .sly-cms-collection,
  body.sly-v2 .sly-cms-carousel,
  body.sly-v2 .sly-cms-grid,
  body.sly-v2 .sly-cms-services,
  body.sly-v2 .sly-cms-newsletter {
    padding: var(--sly-space-6, 2rem) var(--sly-space-5, 1.5rem);
  }
}

body.sly-v2 .sly-cms-eyebrow {
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sly-fg-muted, #b3b3b3);
  font-size: var(--sly-fs-xs, .75rem);
}

body.sly-v2 .sly-cms-cta {
  display: inline-flex;
  min-height: var(--sly-touch, 44px);
  align-items: center;
  padding: 0 var(--sly-space-5, 1.5rem);
  border: 1px solid var(--sly-fg, #f2f2f2);
  color: var(--sly-bg, #0b0b0c);
  background: var(--sly-fg, #f2f2f2);
  text-transform: uppercase;
  letter-spacing: .04em;
  text-decoration: none;
  max-width: 100%;
  box-sizing: border-box;
}

body.sly-v2 .sly-cms-products,
body.sly-v2 .sly-cms-grid__items {
  display: grid;
  gap: var(--sly-space-4, 1rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr));
  margin-top: var(--sly-space-5, 1.5rem);
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

body.sly-v2 .sly-cms-products--cards {
  display: grid;
  gap: var(--sly-space-3, 0.75rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: var(--sly-space-5, 1.5rem);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
@media (min-width: 900px) {
  body.sly-v2 .sly-cms-products--cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--sly-space-5, 1.5rem);
  }
}
body.sly-v2 .sly-cms-products--cards > * {
  min-width: 0;
  max-width: 100%;
}
body.sly-v2 .sly-cms-products--cards .sly-v2-card {
  margin: 0;
  min-width: 0;
  max-width: 100%;
}
body.sly-v2 .sly-cms-products--cards .sly-v2-card__media img {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
  background: var(--sly-bg-soft, #18181b);
}

body.sly-v2 .sly-cms-product,
body.sly-v2 .sly-cms-grid__item {
  border: 1px solid var(--sly-line, rgba(255,255,255,.12));
  padding: var(--sly-space-4, 1rem);
  color: inherit;
  text-decoration: none;
  min-height: var(--sly-touch, 44px);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: anywhere;
}

body.sly-v2 .sly-cms-empty-media {
  min-height: 50vh;
  display: grid;
  place-items: center;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--sly-fg-subtle, #7a7a7f);
  background: var(--sly-bg-soft, #18181b);
}

body.sly-v2 .sly-cms-spacer--sm { height: var(--sly-space-4, 1rem); }
body.sly-v2 .sly-cms-spacer--md { height: var(--sly-space-7, 3rem); }
body.sly-v2 .sly-cms-spacer--lg { height: var(--sly-space-8, 4rem); }

body.sly-v2 .sly-cms-note { color: var(--sly-fg-muted, #b3b3b3); font-size: var(--sly-fs-sm, .875rem); }
