/* Hide legacy Wix collection carousel (Collection 01 / 02 / 03) */
@import url("https://fonts.googleapis.com/css2?family=Jost:wght@300&display=swap");
#comp-mmp1hupx {
  display: none !important;
}

/* Use the original Wix COLLECTIONS title placement */
#comp-mmq66nkt {
  display: block !important;
}

/* Hide the custom title section (it was injected above the hero) */
.jj-product-carousel--title {
  display: none !important;
}

/* Style the Wix COLLECTIONS heading with Jost */
#comp-mmq66nkt h2 {
  font-family: "Jost", sans-serif !important;
  font-weight: 300 !important;
  letter-spacing: 0.07em !important;
  text-transform: uppercase !important;
}

.jj-product-carousel {
  background: #fff;
}

.jj-product-carousel--title {
  padding: 32px 0 8px;
}

.jj-product-carousel--track {
  padding: 24px 0 64px;
}

.jj-product-carousel__inner {
  max-width: 1536px;
  margin: 0 auto;
  padding: 0 32px;
  box-sizing: border-box;
}

.jj-product-carousel__header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  min-height: 48px;
}

.jj-product-carousel--title .jj-product-carousel__header {
  margin-bottom: 0;
}

.jj-product-carousel__header--track {
  justify-content: flex-end;
  margin-bottom: 24px;
  min-height: 36px;
}

.jj-product-carousel__title {
  margin: 0;
  text-align: center;
  font-size: clamp(1.6rem, 5vw, 2.75rem);
  line-height: 1;
  color: #000;
}

.collections-heading {
  font-family: "Jost", sans-serif;
  font-weight: 300;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.jj-product-carousel__nav {
  display: none;
  gap: 12px;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.jj-product-carousel__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #1f1c18;
  border-radius: 999px;
  background: transparent;
  color: #1f1c18;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.jj-product-carousel__arrow:hover {
  background: #1f1c18;
  color: #fff;
}

.jj-product-carousel__track {
  --jj-gap: 16px;
  --jj-per-view: 1;
  --jj-card-ratio: 3 / 4;
  display: flex;
  align-items: stretch;
  gap: var(--jj-gap);
  overflow-x: auto;
  padding-bottom: 24px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.jj-product-carousel__track.is-continuous {
  scroll-snap-type: none;
  scroll-behavior: auto;
}

.jj-product-carousel__track::-webkit-scrollbar {
  display: none;
}

.jj-product-card {
  /* Equal widths: flex-basis + min-width:0 so image intrinsics cannot stretch cards */
  --jj-card-w: calc(
    (100% - (var(--jj-per-view) - 1) * var(--jj-gap)) / var(--jj-per-view)
  );
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  flex: 0 0 var(--jj-card-w);
  width: var(--jj-card-w);
  max-width: var(--jj-card-w);
  min-width: 0;
  scroll-snap-align: start;
  text-decoration: none;
  color: inherit;
}

.jj-product-carousel__track.is-continuous .jj-product-card {
  scroll-snap-align: none;
}

.jj-product-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  flex: 0 0 auto;
  margin-bottom: 12px;
  overflow: hidden;
  background: #ede8df;
}

/* aspect-ratio owns the frame — do not also use padding-top or heights stack */
.jj-product-card__media::before {
  content: none;
  display: none;
}

.jj-product-card__media .jj-image-frame__fill,
.jj-product-card__media img {
  position: absolute !important;
  inset: 0 !important;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center;
}

.jj-product-card__media img[data-jj-focus-hidden] {
  /* Keep out of flex min-content sizing (visibility:hidden still can contribute) */
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  overflow: hidden !important;
}

.jj-product-card__meta {
  flex: 0 0 auto;
  min-height: 2.75em;
}

.jj-product-card__name {
  margin: 0 0 4px;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #1f1c18;
}

.jj-product-card__price {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 14px;
  color: #5c5248;
}

/* Cards per view — chosen so a whole number of cards always fits,
   never leaving a half-image visible at the edge. */
.jj-product-carousel__track {
  --jj-per-view: 2;
  --jj-gap: 12px;
}

@media (min-width: 560px) {
  .jj-product-carousel__track {
    --jj-per-view: 2;
    --jj-gap: 16px;
  }
}

@media (min-width: 768px) {
  .jj-product-carousel__nav {
    display: flex;
  }

  .jj-product-carousel__track {
    --jj-per-view: 3;
    --jj-gap: 20px;
  }
}

@media (min-width: 1200px) {
  .jj-product-carousel__track {
    --jj-per-view: 4;
  }
}

@media (max-width: 767px) {
  .jj-product-carousel--title {
    padding-top: 24px;
    padding-bottom: 4px;
  }

  .jj-product-carousel--track {
    padding-top: 16px;
    padding-bottom: 48px;
  }

  .jj-product-carousel__inner {
    padding: 0 20px;
  }
}
