
/* =========================================
   HOME PRODUCTS — ELARA CAROUSEL CLEAN
========================================= */

.lux-home-products {
  position: relative;
  padding: clamp(76px, 8vw, 128px) 0;
  background: #fff;
  color: #111;
  border-top: 1px solid rgba(0, 0, 0, .055);
  overflow: hidden;
}

.lux-home-products__inner {
  width: min(1380px, calc(100% - 72px));
  margin: 0 auto;
}

/* =========================================
   HEADER
========================================= */

.lux-home-products__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;

  margin-bottom: clamp(36px, 4vw, 56px);
}

.lux-home-products__head > div {
  max-width: 780px;
}

.lux-home-products__kicker {
  display: inline-block;
  margin-bottom: 10px;

  font-family: var(--lux-font-ui, Inter, system-ui, sans-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;

  color: rgba(0, 0, 0, .42);
}

.lux-home-products__head h2 {
  margin: 0;
  max-width: 680px;

  font-family: var(--lux-font-display, Georgia, serif);
  font-size: clamp(34px, 4vw, 62px);
  line-height: .98;
  font-weight: 400;
  letter-spacing: -.035em;

  color: #111;
}

.lux-home-products__head p {
  margin: 16px 0 0;
  max-width: 500px;

  font-family: var(--lux-font-body, Inter, system-ui, sans-serif);
  font-size: 15px;
  line-height: 1.65;
  font-weight: 400;

  color: rgba(0, 0, 0, .62);
}

/* =========================================
   CONTROLS
========================================= */

.lux-home-products__controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.lux-home-products__arrow {
  width: 44px;
  height: 44px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(17, 17, 17, .14);
  border-radius: 999px;
  background: #fff;
  color: #111;

  cursor: pointer;

  transition:
    color .22s ease,
    border-color .22s ease,
    background .22s ease,
    transform .22s ease,
    opacity .22s ease;
}

.lux-home-products__arrow svg {
  width: 24px;
  height: 24px;
}

.lux-home-products__arrow path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lux-home-products__arrow:hover {
  color: #fff;
  border-color: #111;
  background: #111;
  transform: translateY(-1px);
}

.lux-home-products__arrow:disabled {
  opacity: .28;
  pointer-events: none;
}

/* =========================================
   VIEWPORT / TRACK
========================================= */

.lux-home-products__viewport {
  position: relative;
  overflow: hidden;
}

.lux-home-products__grid {
  position: relative;
  width: 100%;
  overflow: visible;
}

/* Woo shortcode wrapper */
.lux-home-products__grid .woocommerce {
  width: 100%;
}

/* Product track */
.lux-home-products--carousel .lux-home-products__grid ul.products {
  list-style: none;

  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: stretch;

  gap: 24px !important;

  width: 100%;
  max-width: 100%;

  margin: 0 !important;
  padding: 0 !important;

  overflow-x: auto;
  overflow-y: hidden;

  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;

  scrollbar-width: none;
  -ms-overflow-style: none;
}

.lux-home-products--carousel .lux-home-products__grid ul.products::-webkit-scrollbar {
  display: none;
}

.lux-home-products--carousel .lux-home-products__grid ul.products::before,
.lux-home-products--carousel .lux-home-products__grid ul.products::after {
  content: none !important;
  display: none !important;
}

/* 4 cards visible desktop */
.lux-home-products--carousel .lux-home-products__grid ul.products li.product {
  flex: 0 0 calc((100% - 72px) / 4);

  width: auto !important;
  max-width: none !important;
  min-width: 0;

  margin: 0 !important;
  padding: 0 !important;

  float: none !important;
  clear: none !important;

  display: flex !important;
  flex-direction: column;

  scroll-snap-align: start;

  background: #fff;

  transition:
    transform .28s ease,
    box-shadow .28s ease;
}

.lux-home-products--carousel .lux-home-products__grid ul.products li.product:hover {
  transform: translateY(-4px);
}

/* Woo first/last reset */
.lux-home-products--carousel .lux-home-products__grid ul.products li.product.first,
.lux-home-products--carousel .lux-home-products__grid ul.products li.product.last {
  clear: none !important;
}

/* =========================================
   DOTS
========================================= */

.lux-home-products__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  margin-top: 28px;
}

.lux-home-products__dot {
  width: 7px;
  height: 7px;

  border: 0;
  border-radius: 999px;

  background: rgba(17, 17, 17, .22);

  cursor: pointer;

  transition:
    width .22s ease,
    background .22s ease,
    transform .22s ease;
}

.lux-home-products__dot.is-active {
  width: 24px;
  background: #111;
}

.lux-home-products__dot:hover {
  background: rgba(17, 17, 17, .55);
  transform: translateY(-1px);
}
