/* Labees preview overrides — loaded LAST.
   The theme's carousels/sliders rely on Swiper.js at runtime to size slides.
   In this static preview there is no Swiper, so we force the intended CSS-grid
   layout and neutralize the flex/height rules that break without JS. */

/* --- Product carousels (featured-collection "highlights") --- */
.m-mixed-layout__wrapper.swiper-container,
.m-mixed-layout__wrapper { overflow: visible !important; }

.m-mixed-layout__inner.swiper-wrapper,
.m-featured-collection .swiper-wrapper {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  max-height: none !important;
  transform: none !important;
}
.m-featured-collection .swiper-slide,
.m-mixed-layout__inner .swiper-slide {
  width: auto !important;
  margin: 0 !important;
  height: auto !important;
  flex: initial !important;
}

/* product card media: consistent portrait ratio, cover-fit images */
.no-js responsive-image img,
responsive-image img {
  opacity: 1 !important;
  animation: none !important;
}
responsive-image {
  display: block;
  width: 100%;
}
.m-product-card__media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: rgb(var(--color-background-secondary));
}
.m-product-card__media img,
.m-product-card__main-image img,
.m-product-card__hover-image img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.m-product-card__content { padding-top: 14px; }
.m-product-card__name { font-size: 15px; font-weight: 500; margin: 0 0 4px; }
.m-product-card__price { font-size: 15px; color: rgb(var(--color-foreground)); }

/* --- Static image-card sections (the Shopify runtime normally sizes these) --- */
.m-image-card--content-below { height: auto; }
.m-image-card--content-below .m-image-card__media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}
.m-image-card--content-below .m-image-card__link,
.m-image-card--content-below responsive-image { height: 100%; }
.m-image-card--content-below img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.m-image-card--content-below .m-image-card__content {
  position: static !important;
  padding: 20px 0 0 !important;
  pointer-events: auto;
  display: block;
}
.m-image-card--content-below .m-richtext__title { margin: 0 0 8px; }
[data-section-type="custom-content"] .m-custom-content__wrapper {
  column-gap: 24px;
  row-gap: 24px;
}
.shopify-section-custom-content .m-custom-content__wrapper {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.shopify-section-custom-content .m-custom-content__block {
  width: auto !important;
  min-width: 0 !important;
}

/* Shop-the-look: editorial image plus a vertical product rail. */
[data-section-id="shop-this-look"] .m-custom-content__wrapper {
  display: grid !important;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 32px;
  align-items: start;
}
[data-section-id="shop-this-look"] #m-custom__block--look-image,
[data-section-id="shop-this-look"] #m-custom__block--look-products {
  width: auto !important;
}
[data-section-id="shop-this-look"] #m-custom__block--look-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}
[data-section-id="shop-this-look"] #m-custom__block--look-products .m-custom-content__block-inner {
  display: grid;
  gap: 28px;
}

/* --- Generic: any leftover swiper-wrapper (press, showcase, testimonials, blog) --- */
.m-brands .swiper-wrapper,
.m-brands-list .swiper-wrapper { display: flex !important; gap: 40px; align-items: center; justify-content: center; flex-wrap: wrap; max-height: none !important; }
.m-blog-grid__wrapper { display: block !important; max-height: none !important; transform: none !important; }
.m-blog-grid__wrapper .m-mixed-layout__inner {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
.m-blog-grid__wrapper .m\:column { width: auto !important; min-width: 0 !important; margin: 0 !important; }
.m-article-card__image { aspect-ratio: 3 / 4; }
.m-article-card__image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.m-blog-grid__button { text-align: center; margin-top: 36px; }
.m-testimonials__wrapper .swiper-wrapper { display: grid !important; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; max-height: none !important; transform: none !important; }
.m-testimonials__wrapper .swiper-slide { width: auto !important; margin: 0 !important; }

/* Countdown inherits white sale-theme text without Shopify's color-scheme
   variables. Keep it legible on the light neutral panel. */
.m-flashsale-countdown__digit,
.m-flashsale-countdown__label,
.m-flashsale-countdown__separator {
  color: rgb(var(--color-heading)) !important;
}

/* --- Header: stop stray inline content from underlapping the logo --- */
.m-header { position: sticky; top: 0; z-index: 50; background: rgb(var(--color-background)); border-bottom: 1px solid rgb(var(--color-border)); }
.m-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.m-header .m-logo__text { white-space: nowrap; }

/* --- Section rhythm: tame runaway spacing --- */
.m-section-my { margin-top: 0; margin-bottom: 0; }
.m-section-py { padding-top: var(--spacing-sections-desktop); padding-bottom: var(--spacing-sections-desktop); }

/* --- Collection image showcase: 3-up --- */
.m-collection-image-showcase__wrapper { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 20px; align-items: stretch; }
.m-collection-image-showcase__media { position: relative; aspect-ratio: 3/4; overflow: hidden; }
.m-collection-image-showcase__media img { width:100%; height:100%; object-fit: cover; }

/* --- Icon boxes: 3-up row --- */
.m-icon-box-section .m-icon-box, .m-icon-box .swiper-wrapper { display: grid !important; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 40px; max-height:none !important; transform:none !important; }
.m-icon-box .swiper-slide { width:auto !important; margin:0 !important; }

/* --- Newsletter form inline --- */
.m-newsletter-form { display: block; width: 100%; max-width: 480px; margin: 18px auto 0; }
.m-newsletter-form form,
.m-newsletter-form__wrapper { width: 100%; }
.m-newsletter-form__wrapper {
  display: flex !important;
  align-items: stretch;
  gap: 8px;
}
.m-newsletter-form__input-wrapper { flex: 1 1 auto; }
.m-newsletter-form input[type=email] {
  width: 100%;
  height: 48px;
  padding: 12px 16px;
  border: 1px solid rgb(var(--color-border));
}
.m-newsletter-form__button {
  position: static !important;
  inset: auto !important;
  flex: 0 0 auto;
  min-width: 120px;
  height: 48px;
  padding: 0 20px !important;
  border: 1px solid rgb(var(--color-foreground)) !important;
  background: rgb(var(--color-foreground)) !important;
  color: rgb(var(--color-background)) !important;
}

/* --- Lookbook: Liquid normally supplies the aspect-ratio helper styles --- */
.m-lookbook-card__image-inner {
  position: relative;
  width: 100%;
  aspect-ratio: var(--aspect-ratio, 2.333);
  overflow: hidden;
}
.m-lookbook-card__image-inner .m-media,
.m-lookbook-card__image-inner .m-media__wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.m-lookbook-card__image-inner .m-media__wrapper > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* container width */
.container, .container-fluid, .container-full { width: 100%; margin-inline: auto; }
.container { max-width: var(--container-width); padding-inline: var(--page-padding); }
.container-fluid { max-width: 1620px; padding-inline: 40px; }

*, *::before, *::after { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
img { max-width: 100%; height: auto; }

@media (max-width: 767px) {
  .container-fluid { padding-inline: 20px; }
  .m-section-py { padding-top: 56px; padding-bottom: 56px; }
  .m-header__desktop { display: block !important; }
  .m-header__center, .m-header__navigation, .m-header__account-text { display: none !important; }
  .m-header__inner { min-height: 60px; padding-inline: 16px; }
  .m-header__left, .m-header__right { display: flex !important; align-items: center; }
  .m-header__right { gap: 14px; }
  .m-header__wishlist { display: none !important; }
  .m-header .m-logo__text { font-size: 20px; }
  .labees-hero { height: 680px !important; min-height: 520px !important; max-height: 680px !important; }
  .labees-hero__inner { padding-inline: 20px; }
  .labees-hero .m-hero__subtitle,
  .labees-hero .m-hero__title { color: #fff !important; max-width: 100%; }
  .labees-hero .m-hero__subtitle {
    display: block;
    max-width: 330px;
    margin-inline: auto;
    font-size: 12px;
    line-height: 1.5;
    letter-spacing: .12em;
  }
  .labees-hero .m-hero__title {
    font-size: 36px !important;
    line-height: 1.08;
    letter-spacing: .035em;
    white-space: normal;
  }
  .m-promotion-countdown-timer__wrapper {
    flex-direction: column;
    gap: 28px;
  }
  .m-promotion-countdown-timer__text,
  .m-promotion-countdown-timer__countdown,
  .m-promotion-countdown-timer__button { width: 100%; }
  .m-flashsale-countdown__wrapper {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: start;
    justify-content: center;
    gap: 4px;
    width: 100%;
  }
  .m-flashsale-countdown__box { min-width: 0; text-align: center; }
  .m-flashsale-countdown__digit { font-size: 26px !important; line-height: 1.1; }
  .m-flashsale-countdown__label { display: block; font-size: 12px !important; line-height: 1.3; }
  .m-flashsale-countdown__separator { font-size: 22px !important; line-height: 1.1; }
  .m-rich-text .m-richtext { max-width: 100%; overflow-wrap: anywhere; }
  [data-section-type="custom-content"] .m-custom-content__wrapper,
  [data-section-id="shop-this-look"] .m-custom-content__wrapper {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 24px;
  }
  [data-section-type="custom-content"] .m-custom-content__block { width: 100% !important; }
  [data-section-id="shop-this-look"] #m-custom__block--look-products .m-custom-content__block-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .m-featured-collection .m-mixed-layout,
  .m-featured-collection .m-mixed-layout--mobile-scroll {
    width: 100% !important;
    margin: 0 !important;
    overflow: visible !important;
  }
  .m-featured-collection .swiper-wrapper,
  .m-featured-collection .m-mixed-layout__inner,
  .m-mixed-layout__inner.swiper-wrapper {
    grid: none !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
  }
  .m-featured-collection .m-mixed-layout__inner > *,
  .m-featured-collection .swiper-wrapper > * {
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
  }
  .m-testimonials__wrapper .swiper-wrapper,
  .m-blog-grid__wrapper .m-mixed-layout__inner {
    grid: none !important;
    grid-template-columns: 1fr !important;
    grid-auto-flow: row !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .m-testimonials, .m-testimonials__wrapper, .m-testimonial {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden;
  }
  .m-article-card { display: block !important; width: 100% !important; }
  .m-article-card__content { position: static !important; width: 100% !important; }

  .m-collection-image-showcase__wrapper {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 28px;
  }
  .m-collection-image-showcase__collections ul { padding: 0; margin: 0; }
  .m-collection-image-showcase__collections li { font-size: 30px !important; line-height: 1.25; }
  .m-collection-image-showcase__media { width: 100%; aspect-ratio: auto; overflow: visible; }
  .m-collection-image-showcase__images.active {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
  .m-collection-image-showcase__image,
  .m-collection-image-showcase__image-middle {
    position: static !important;
    width: auto !important;
    inset: auto !important;
    transform: none !important;
    animation: none !important;
  }
  .m-collection-image-showcase__image img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
  }

  .m-image-with-text__inner { display: grid !important; grid-template-columns: 1fr; gap: 28px; }
  .m-image-with-text__image,
  .m-image-with-text__content { width: 100% !important; min-width: 0 !important; }
  .m-image-with-text--multiple { display: grid !important; grid-template-columns: 1.35fr 1fr; gap: 12px; }
  .m-image-with-text--multiple > * { width: auto !important; padding: 0 !important; flex: none !important; }
  .m-image-with-text--multiple img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .m-newsletter-form__wrapper { flex-direction: column; }
  .m-newsletter-form__button { width: 100%; }
  .m-lookbook-card__image-inner { aspect-ratio: var(--aspect-ratio-mobile, 1); }
}
