/* Page-specific layout extracted from the static theme. */

@media screen and (max-width: 1023px) {
      #new-and-popular,
      #tops-rail,
      #bottoms-rail,
      #color-rail,
      #featured-collections,
      .home-product-rail {
        --pt: 24px;
        --pb: 28px;
      }

      #featured-collections {
        --pt: 20px;
        --pb: 28px;
      }
    }
    @media screen and (min-width: 1024px) {
      #home-hero .slides-container::before {
        padding-bottom: min(49.30555555555556%, 90vh);
        content: '';
        display: block;
        width: 0;
        flex: 0 0 0;
        pointer-events: none;
        scroll-snap-align: none;
      }

      #new-and-popular,
      #tops-rail,
      #bottoms-rail,
      #color-rail,
      #featured-collections,
      .home-product-rail {
        --pt: calc(72px * .75);
        --pb: calc(100px * .75);
      }

      #featured-collections {
        --pt: calc(36px * .75);
        --pb: calc(100px * .75);
      }
    }

  #home-hero .slides-container {
    max-height: 90vh;
    cursor: grab;
    -webkit-user-select: none;
    user-select: none;
    touch-action: pan-y;
  }

  /* Cap hero media at 90vh without taking images out of flow (absolute broke height). */
  #home-hero .slide-item {
    max-height: 90vh;
    overflow: hidden;
  }

  #home-hero .slide-item img {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: cover;
    display: block;
  }

  /* Mobile: fixed short hero — must follow base img rules so height:auto cannot win */
  @media screen and (max-width: 1023px) {
    #home-hero .slides-container::before {
      content: none;
      display: none !important;
      padding-bottom: 0 !important;
    }

    #home-hero .slides-container {
      height: 40vh;
      max-height: 40vh;
      align-items: stretch;
    }

    #home-hero .slide-item {
      height: 100%;
      max-height: none;
      align-self: stretch;
    }

    #home-hero .slide-item > a {
      display: block;
      position: relative;
      height: 100%;
    }

    #home-hero .slide-item picture {
      display: block;
      height: 100%;
    }

    #home-hero .slide-item img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100% !important;
      max-height: none !important;
      object-fit: cover;
    }
  }

  #home-hero .slides-container.is-dragging,
  #home-hero .slides-container.is-dragging * {
    cursor: grabbing !important;
  }

  #home-hero .slides-container.is-dragging {
    scroll-snap-type: none;
  }

  #home-hero .slides-container a,
  #home-hero .slides-container img {
    -webkit-user-drag: none;
    user-drag: none;
    -webkit-user-select: none;
    user-select: none;
  }

  /* Hide scrollbar for different browsers */
  .scrollbar-none {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Edge/IE */
  }
  .scrollbar-none::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Opera */
  }

  /* Pagination dots */
  #home-hero .pagination-dot {
    display: block;
    min-width: 2rem;
    max-width: 5rem;
    width: 100%;
    height: 0.25rem;
    margin: 0 0.25rem;
    background-color: rgb(209 213 219);
  }

  #home-hero .pagination-dot.active {
    background-color: #000;
  }

  /* Product slider slide widths - show 1.5, 2.5, 3.5, 4.5 slides at different breakpoints */
  .home-product-rail .product-slider__slide,
  #new-and-popular .product-slider__slide,
  #featured-collections .product-slider__slide {
    flex: 0 0 calc(100% / 1.5);
    min-width: 0;
  }

  @media (min-width: 768px) {
    .home-product-rail .product-slider__slide,
    #new-and-popular .product-slider__slide,
    #featured-collections .product-slider__slide {
      flex: 0 0 calc((100% - 12px) / 2.5);
    }
  }

  @media (min-width: 1024px) {
    .home-product-rail .product-slider__slide,
    #new-and-popular .product-slider__slide,
    #featured-collections .product-slider__slide {
      flex: 0 0 calc((100% - 24px) / 3.5);
    }
  }

  @media (min-width: 1280px) {
    .home-product-rail .product-slider__slide,
    #new-and-popular .product-slider__slide,
    #featured-collections .product-slider__slide {
      flex: 0 0 calc((100% - 36px) / 4.5);
    }
  }

  .home-product-rail [data-slider-container],
  #new-and-popular [data-slider-container],
  #featured-collections [data-slider-container] {
    cursor: grab;
    -webkit-user-select: none;
    user-select: none;
    touch-action: pan-y;
    scroll-behavior: auto;
  }

  .home-product-rail [data-slider-container].is-dragging {
    cursor: grabbing !important;
    scroll-snap-type: none !important;
  }

  .home-product-rail [data-slider-container].is-dragging * {
    cursor: grabbing !important;
  }

  .home-product-rail [data-slider-container] a,
  .home-product-rail [data-slider-container] img {
    -webkit-user-drag: none;
    user-drag: none;
    -webkit-user-select: none;
    user-select: none;
  }

  .home-product-rail [data-slider-container] a.col-start-1 {
    cursor: inherit;
  }

  .color-rail-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
  }

  .color-rail-swatch {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid #e5e7eb;
    background: #fff;
    padding: 0.35rem 0.65rem;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
  }

  .color-rail-swatch.is-active {
    border-color: #111;
    box-shadow: inset 0 0 0 1px #111;
  }

  .color-rail-swatch__chip {
    width: 1.25rem;
    height: 1.25rem;
    border: 1px solid rgba(0, 0, 0, 0.15);
    flex: 0 0 auto;
    overflow: hidden;
    background-repeat: no-repeat;
    background-size: cover;
  }

  .color-rail-swatch__label {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
  }

  @media (min-width: 768px) {
    #featured-collections scroll-hint > div {
      justify-content:justify-start
    }
  }

#home-editorial {
    --pt: calc(0px * .75);
    --pb: calc(0px * .75);
      --aspect-ratio: 1/1;
  }
