/* Products horizontal gallery — layout Lumora (2 colunas) */

.products-gallery {
  position: relative;
  background-color: var(--color-dawn-50, #faf6f1);
}

.products-gallery__stage {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  overflow: hidden;
  padding-top: clamp(3.5rem, 8vw, 6rem);
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
  box-sizing: border-box;
}

.products-gallery__header {
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.products-gallery__header .cta-pill {
  margin-bottom: 0;
}

.products-gallery__header h2 {
  font-size: clamp(2.5rem, 4vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 500;
  color: #1a1d24;
  margin: 0;
  max-width: 18ch;
}

.products-gallery__header p {
  font-size: clamp(1rem, 1.35vw, 1.125rem);
  line-height: 1.65;
  color: rgba(74, 69, 64, 0.72);
  margin: 0;
  max-width: 42rem;
}

.products-gallery__viewport {
  width: 100%;
  overflow: hidden;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  min-height: clamp(480px, 58vh, 580px);
}

.products-gallery__track {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 1.25rem;
  width: max-content;
  will-change: transform;
}

@media (min-width: 768px) {
  .products-gallery__track {
    gap: 1.5rem;
  }
}

.products-gallery__card {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr 2.4fr;
  align-items: stretch;
  gap: clamp(1rem, 2vw, 1.75rem);
  width: clamp(42rem, 90vw, 61rem);
  height: clamp(480px, 52vh, 548px);
  padding: clamp(1.25rem, 2.2vw, 2rem);
  text-decoration: none;
  color: inherit;
  border-radius: 16px;
  overflow: hidden;
  background-color: var(--color-dawn-50, #faf6f1);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow:
    0 4px 20px rgba(26, 29, 36, 0.05),
    0 1px 3px rgba(26, 29, 36, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

.products-gallery__card:nth-child(4n + 1) {
  background-color: #faf6f1;
}

.products-gallery__card:nth-child(4n + 2) {
  background-color: #f5efe8;
}

.products-gallery__card:nth-child(4n + 3) {
  background-color: #f3f0eb;
}

.products-gallery__card:nth-child(4n + 4) {
  background-color: #f7f3ee;
}

@media (hover: hover) {
  .products-gallery__card:hover {
    transform: scale(1.015);
    box-shadow:
      0 24px 56px rgba(26, 29, 36, 0.1),
      0 8px 20px rgba(26, 29, 36, 0.05);
  }
}

.products-gallery__content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  min-height: 0;
  padding-block: 0.25rem;
}

.products-gallery__index {
  font-family: inherit;
  font-size: clamp(2.75rem, 4.5vw, 4rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
  color: rgba(26, 29, 36, 0.1);
  user-select: none;
}

.products-gallery__copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.875rem;
  padding-block: 1rem;
  min-height: 0;
}

.products-gallery__title {
  font-family: inherit;
  font-size: clamp(1.625rem, 2.4vw, 2.125rem);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #1a1d24;
  margin: 0;
}

.products-gallery__desc {
  font-size: clamp(0.875rem, 1.1vw, 0.9375rem);
  line-height: 1.65;
  color: rgba(74, 69, 64, 0.82);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.products-gallery__price {
  font-size: clamp(0.9375rem, 1.2vw, 1.0625rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #1a1d24;
  margin: 0;
}

.products-gallery__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  align-self: flex-start;
  padding: 0.6875rem 0.6875rem 0.6875rem 1.375rem;
  border: 1px solid rgba(26, 29, 36, 0.82);
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.45);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.products-gallery__cta-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #1a1d24;
  white-space: nowrap;
}

.products-gallery__cta-icon {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #1a1d24;
  color: #faf6f1;
  font-size: 0.875rem;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

@media (hover: hover) {
  .products-gallery__card:hover .products-gallery__cta {
    background: rgba(255, 255, 255, 0.72);
  }

  .products-gallery__card:hover .products-gallery__cta-icon {
    transform: translate(1px, -1px);
  }
}

.products-gallery__media {
  position: relative;
  min-width: 0;
  min-height: 0;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(145deg, #f0ebe4, #d9d2cb);
}

.products-gallery__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 12px;
  transition: transform 0.45s ease;
}

@media (hover: hover) {
  .products-gallery__card:hover .products-gallery__media img {
    transform: scale(1.03);
  }
}

.products-gallery__tags {
  position: absolute;
  inset-inline: 0.875rem;
  bottom: 0.875rem;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.products-gallery__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem 0.5rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #1a1d24;
  background: rgba(255, 250, 247, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 2px 10px rgba(26, 29, 36, 0.08);
  white-space: nowrap;
}

.products-gallery__tag::before {
  content: '✓';
  display: grid;
  place-items: center;
  width: 1.375rem;
  height: 1.375rem;
  border-radius: 50%;
  background: #1a1d24;
  color: #faf6f1;
  font-size: 0.625rem;
  font-weight: 700;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .products-gallery__card {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(220px, 1fr);
    width: clamp(20rem, 88vw, 26rem);
    height: clamp(520px, 78vh, 580px);
    gap: 1rem;
  }

  .products-gallery__content {
    gap: 0.75rem;
  }

  .products-gallery__copy {
    padding-block: 0.5rem;
  }

  .products-gallery__desc {
    -webkit-line-clamp: 3;
  }

  .products-gallery__index {
    font-size: 2.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .products-gallery__stage {
    min-height: 0;
    padding-block: 4rem 2rem;
  }

  .products-gallery__viewport {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding-bottom: 1rem;
    min-height: 0;
  }

  .products-gallery__track {
    transform: none !important;
  }

  .products-gallery__card {
    scroll-snap-align: start;
    transform: none;
  }

  .products-gallery__card:hover {
    transform: none;
  }
}
