/* SkinTherx brand overlay — layout/tokens from captured theme preserved */

/* Missing from captured theme.css build (only .font-400/.font-700 were emitted) */
.font-200 {
  font-weight: 200;
}

:root {
  --skintherx-primary: #4d6385;
  --skintherx-secondary: #e99183;
  --skintherx-mist: #eef0f4;
  --skintherx-slate: #29384a;
  --skintherx-sage: #a8bda8;
}

/* Rebuilt collection detail pages */
.stx-collection-page {
  width: 100%;
  padding: clamp(96px, 12vw, 150px) clamp(16px, 4vw, 40px) clamp(48px, 8vw, 96px);
  color: var(--skintherx-slate);
}

.stx-collection-page__header {
  max-width: 760px;
  margin-bottom: clamp(28px, 5vw, 56px);
}

.stx-collection-page__eyebrow {
  margin: 0 0 12px;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--skintherx-primary);
}

.stx-collection-page__header h1 {
  margin: 0;
  font-size: clamp(2.5rem, 8vw, 6rem);
  line-height: 0.95;
  font-weight: 300;
}

.stx-collection-page__header p:last-child {
  max-width: 560px;
  margin: 18px 0 0;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.45;
}

.stx-collection-page__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 36px);
}

.stx-collection-card a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.stx-collection-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #f7f7f7;
}

.stx-collection-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0 4px;
  background: #fff;
}

.stx-collection-card__meta h2,
.stx-collection-card__meta p {
  margin: 0;
  font-size: clamp(0.95rem, 1.5vw, 1.125rem);
  line-height: 1.25;
  font-weight: 300;
}

@media (min-width: 768px) {
  .stx-collection-page__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .stx-collection-page__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.site-header__logo-img {
  display: block;
  width: 176px;
  max-width: 100%;
  height: auto;
  max-height: 28px;
  object-fit: contain;
  object-position: left center;
}

.mobile-nav__header-logo .site-header__logo-img {
  max-height: 24px;
}

/* PLP / collection grid — hover image fills card (not a corner thumbnail) */
.product-card__image {
  display: block;
  overflow: hidden;
}

.product-card__image-featured,
.product-card__image-secondary {
  transition: opacity 0.5s ease;
}

.product-card__image-secondary {
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.product-card__image-secondary .lazypicture,
.product-card__image-secondary picture {
  display: block;
  width: 100%;
  height: 100%;
}

.product-card__image-secondary img,
.product-card__image-secondary video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card.group:hover .product-card__image-featured {
  opacity: 0;
}

.product-card.group:hover .product-card__image-secondary {
  opacity: 1;
}

/* Primary pill CTAs: dusty blue accent without changing structure */
.cta-pill {
  --cta-border: var(--skintherx-primary);
}

@media (hover: hover) and (min-width: 1024px) {
  body main .cta-pill:hover {
    --cta-hover-bg: var(--skintherx-primary);
    --cta-hover-text: #ffffff;
    --cta-hover-border: var(--skintherx-primary);
  }
}

/* Newsletter / subtle surfaces only where theme uses mist-like backgrounds */
.site-footer {
  --footer-accent: var(--skintherx-slate);
}

/* Non-homepage: solid header once page is scrolled (mobile + desktop) */
body.header-is-sticky:not(.template-index) .site-header [js-header-container] {
  background-color: #ffffff !important;
  --header-color: #29384a;
}

body.header-is-sticky:not(.template-index) .site-header__logo-img {
  filter: none;
}

/* Mobile drawer: solid white panel (collections, PDPs, etc.) */
body.js-drawer-center-open #MobileNavDrawer.mobile-nav,
body.js-drawer-center-open #MobileNavDrawer .mobile-nav__body,
body.js-drawer-center-open #MobileNavDrawer .mobile-nav__nav,
body.js-drawer-center-open #MobileNavDrawer .accordion-item-header,
body.js-drawer-center-open #MobileNavDrawer .accordion-content,
body.js-drawer-center-open #MobileNavDrawer .accordion-content__container,
body.js-drawer-center-open #MobileNavDrawer .mobile-nav__footer {
  background-color: #ffffff !important;
}

@media (max-width: 1023px) {
  body.js-drawer-center-open s-drawer#MobileNavDrawer.open {
    background-color: #ffffff !important;
    min-height: 100vh;
    min-height: 100dvh;
  }
}

/* Desktop mega-menu hover: match homepage (white header bar, slate links, blue logo) */
body:not(.template-index):has(s-drawer-megamenu.open) .site-header [js-header-container],
body:not(.template-index):has(.desktop-nav__parent-item[aria-expanded="true"]) .site-header [js-header-container],
body:not(.template-index).js-drawer-child-menu-open .site-header [js-header-container] {
  background-color: #ffffff !important;
  --header-color: #29384a;
}

body:not(.template-index):has(s-drawer-megamenu.open) .site-header .site-header__logo .site-header__logo-img,
body:not(.template-index):has(.desktop-nav__parent-item[aria-expanded="true"]) .site-header .site-header__logo .site-header__logo-img,
body:not(.template-index).js-drawer-child-menu-open .site-header .site-header__logo .site-header__logo-img {
  filter: none !important;
}

/* Desktop mega-menu: solid white panel on inner pages */
body:not(.template-index):has(s-drawer-megamenu.open) s-drawer-megamenu.open,
body:not(.template-index):has(s-drawer-megamenu.open) s-drawer-megamenu.open .mega-menu-drawer__menu,
body:not(.template-index):has(s-drawer-megamenu.open) s-drawer-megamenu.open .site-header-nav__child-menu-wrapper,
body:not(.template-index):has(s-drawer-megamenu.open) s-drawer-megamenu.open #product-panel-wrapper,
body:not(.template-index):has(s-drawer-megamenu.open) s-drawer-megamenu.open .child-menu-products,
body:not(.template-index):has(s-drawer-megamenu.open) s-drawer-megamenu.open .child-menu-products__content,
body:not(.template-index):has(s-drawer-megamenu.open) s-drawer-megamenu.open .child-menu__nav-container,
body:not(.template-index).js-drawer-child-menu-open s-drawer-megamenu.open,
body:not(.template-index).js-drawer-child-menu-open s-drawer-megamenu.open .mega-menu-drawer__menu,
body:not(.template-index).js-drawer-child-menu-open s-drawer-megamenu.open .site-header-nav__child-menu-wrapper,
body:not(.template-index).js-drawer-child-menu-open s-drawer-megamenu.open #product-panel-wrapper,
body:not(.template-index).js-drawer-child-menu-open s-drawer-megamenu.open .child-menu-products,
body:not(.template-index).js-drawer-child-menu-open s-drawer-megamenu.open .child-menu-products__content,
body:not(.template-index).js-drawer-child-menu-open s-drawer-megamenu.open .child-menu__nav-container {
  background-color: #ffffff !important;
  background-image: none !important;
}

/* Homepage Our Mission — keep section above footer, borders intact */
#shopify-section-template--19990313042119__section_tabbed_content_bDcrcP {
  clear: both;
  position: relative;
  z-index: 0;
}

#tabbed-content-template--19990313042119__section_tabbed_content_bDcrcP .tabbed-content__inner {
  border-top: var(--border-subtle);
  border-bottom: var(--border-subtle);
}

#tabbed-content-template--19990313042119__section_tabbed_content_bDcrcP .tabbed-content__inner.tabbed-content__inner--no-bottom-border {
  border-bottom: var(--border-subtle);
}

/* Before & Afters — full width within section */
.skintherx-before-after-module {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/* Firm Fill Lift promo banner — copy + product art (HiSmile-style flexible block) */
.skintherx-promo-banner {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-top: clamp(1.25rem, 5vw, 3.5rem);
  margin-bottom: clamp(0.5rem, 2vw, 1.5rem);
  padding-inline: var(--section-padding-inline, 1.25rem);
  box-sizing: border-box;
  color: var(--skintherx-slate, #29384a);
}

.skintherx-promo-banner__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(1.25rem, 3vw, 2rem);
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  border-radius: clamp(14px, 2vw, 24px);
  overflow: hidden;
  box-sizing: border-box;
  background: linear-gradient(165deg, #f4f6f9 0%, #e8edf3 48%, #dce4ec 100%);
}

.skintherx-promo-banner__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    105deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(255, 255, 255, 0.72) 24%,
    rgba(255, 255, 255, 0.28) 48%,
    rgba(255, 255, 255, 0) 68%
  );
}

.skintherx-promo-banner__copy,
.skintherx-promo-banner__visual {
  position: relative;
  z-index: 1;
}

.skintherx-promo-banner__copy {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(0.75rem, 2vw, 1.25rem);
  justify-content: center;
}

.skintherx-promo-banner__title {
  margin: 0;
  font-family: var(--section-title-display-font);
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  font-weight: var(--section-title-display-weight);
  line-height: var(--section-title-display-line-height);
  letter-spacing: var(--section-title-display-tracking);
  color: var(--skintherx-slate, #29384a);
}

.skintherx-promo-banner__body {
  margin: 0;
  max-width: 36ch;
  font-family: var(--font-family-base);
  font-size: clamp(0.9375rem, 2.2vw, 1.125rem);
  line-height: var(--line-height-body, 1.5);
  color: var(--skintherx-slate, #29384a);
}

.skintherx-promo-banner__cta {
  align-self: flex-start;
  margin-top: 0.25rem;
}

.skintherx-promo-banner__benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1rem;
  margin-top: 0.25rem;
  width: 100%;
  max-width: 420px;
}

.skintherx-promo-banner__benefits .benefit-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.skintherx-promo-banner__benefits .benefit-item img {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
}

.skintherx-promo-banner__benefits .benefit-item span {
  font-family: var(--font-family-base);
  font-size: clamp(0.75rem, 1.8vw, 0.875rem);
  font-weight: var(--font-weight-semibold, 600);
  line-height: 1.25;
  color: var(--skintherx-slate, #29384a);
}

.skintherx-promo-banner__tagline {
  margin: 0.25rem 0 0;
  font-family: var(--font-family-base);
  font-size: clamp(0.6875rem, 1.6vw, 0.8125rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(41, 56, 74, 0.72);
}

.skintherx-promo-banner__tagline strong {
  font-weight: var(--font-weight-semibold, 600);
  color: var(--skintherx-slate, #29384a);
}

.skintherx-promo-banner__visual {
  flex: 0 0 auto;
  min-width: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.skintherx-promo-banner__visual img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: clamp(220px, 52vw, 480px);
  object-fit: contain;
  object-position: bottom center;
}

/* Tablet + desktop: copy left, products right (HiSmile row) */
@media (min-width: 768px) {
  .skintherx-promo-banner__inner {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: clamp(1.5rem, 3.5vw, 3.5rem);
    padding: clamp(2rem, 3.5vw, 3rem) clamp(2rem, 4vw, 3.5rem);
    min-height: clamp(340px, 36vw, 480px);
  }

  .skintherx-promo-banner__copy {
    flex: 0 1 44%;
    max-width: 480px;
    align-self: center;
  }

  .skintherx-promo-banner__visual {
    flex: 1 1 56%;
    align-self: flex-end;
    justify-content: flex-end;
    padding-left: clamp(0.5rem, 2vw, 1.5rem);
  }

  .skintherx-promo-banner__visual img {
    width: auto;
    max-width: 100%;
    max-height: clamp(280px, 34vw, 440px);
    margin-left: auto;
  }

  .skintherx-promo-banner__body {
    max-width: 32ch;
  }
}

@media (min-width: 1024px) {
  .skintherx-promo-banner {
    padding-inline: var(--section-padding-inline, 2rem);
  }

  .skintherx-promo-banner__inner {
    gap: clamp(2rem, 4vw, 4.5rem);
    min-height: clamp(380px, 32vw, 500px);
  }

  .skintherx-promo-banner__copy {
    flex: 0 1 42%;
    max-width: 520px;
  }

  .skintherx-promo-banner__visual {
    flex: 1 1 58%;
  }

  .skintherx-promo-banner__visual img {
    max-height: clamp(320px, 30vw, 460px);
  }

  .skintherx-promo-banner__title {
    font-size: clamp(2.5rem, 3.2vw, 3.25rem);
  }
}

/* Homepage — mobile layout: contain width, scale media, prevent horizontal bleed */
@media (max-width: 1023px) {
  body.template-index {
    overflow-x: clip;
  }

  body.template-index #MainContent {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
  }

  body.template-index #MainContent .shopify-section {
    max-width: 100%;
    min-width: 0;
  }

  body.template-index #MainContent img,
  body.template-index #MainContent video,
  body.template-index #MainContent picture,
  body.template-index #MainContent svg {
    max-width: 100%;
    height: auto;
  }

  body.template-index .section__title--display,
  body.template-index .split-content-hero__title,
  body.template-index .split-content-banner__title,
  body.template-index .tabbed-collections__title {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  body.template-index .key-selling-points__headline {
    flex-wrap: wrap;
  }

  body.template-index .skintherx-promo-banner__inner::before {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(255, 255, 255, 0.82) 18%,
      rgba(255, 255, 255, 0.35) 42%,
      rgba(255, 255, 255, 0) 68%
    );
  }

  body.template-index .skintherx-promo-banner {
    padding-inline: clamp(12px, 4vw, var(--section-padding-inline, 20px));
  }

  body.template-index .skintherx-promo-banner__inner {
    padding: clamp(1.25rem, 5vw, 1.75rem);
  }

  body.template-index .skintherx-promo-banner__visual img {
    width: 100%;
    max-width: 100%;
    max-height: min(56vw, 300px);
    object-fit: contain;
  }

  body.template-index .section__tabbed-collections {
    overflow-x: clip;
    max-width: 100%;
  }

  body.template-index .section__tabbed-collections .tabbed-collections__panels,
  body.template-index .section__tabbed-collections .tabbed-collections__carousel,
  body.template-index .section__tabbed-collections .tabbed-collections__swiper {
    max-width: 100%;
    min-width: 0;
  }

  body.template-index .skintherx-before-after-module,
  body.template-index .skintherx-before-after-module .ba-wrap,
  body.template-index .skintherx-before-after-module .ba-inner {
    max-width: 100%;
    min-width: 0;
  }
}
