/* Reserve the heading's real height as the cards gain their details. */
#Products { justify-content: flex-start; padding-top: 106px; padding-bottom: calc(120px + env(safe-area-inset-bottom)); scroll-margin-top: 0; }
#Products::before { display: none; }
#Products .section-title-block { position: static; }
#Products .product-grid { margin-top: 16px; }

/* Keep each image's existing dimensions; product details flow beneath it. */
#Products .product-card {
  height: auto;
  min-height: 0;
  aspect-ratio: auto !important;
  border-radius: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
}

#Products .image-wrapper {
  position: relative;
  inset: auto;
  height: clamp(420px, 58vh, 680px);
  flex-shrink: 0;
  border-radius: var(--radius-card, 24px);
  overflow: hidden;
}

#Products .wave-product-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 14px;
  text-align: left;
  font-family: 'Poppins', sans-serif;
}

#Products .wave-product-info h3 {
  position: static;
  width: auto;
  transform: none;
  opacity: 1;
  margin: 0;
  color: #fff;
  font-family: 'Anton', sans-serif;
  font-size: clamp(1.8rem, 2.5vw, 2.5rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: .03em;
  text-align: left;
}

#Products .wave-product-price {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, .9);
  font-size: .95rem;
  line-height: 1.5;
  font-weight: 500;
}

#Products .wave-product-description {
  margin: 8px 0 10px;
  max-width: 38ch;
  min-height: 3.3em;
  color: rgba(255, 255, 255, .68);
  font-size: .85rem;
  line-height: 1.65;
  font-weight: 400;
}

#Products .wave-discover {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 44px;
  margin-top: auto;
  color: #fff;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-decoration: none;
  text-underline-offset: 6px;
  transition: opacity .2s ease;
}

#Products .wave-discover:hover { opacity: .75; text-decoration: underline; }
#Products .wave-discover:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

@media (min-width: 1025px) {
  #Products .product-grid { width: min(84.6%, 2237.2px, calc(282svh - 1015.2px)); }
  #Products .image-wrapper { height: auto; aspect-ratio: 1 / 1; }
}

@media (min-width: 1601px) {
  #Products { padding-top: 111px; }
}

@media (min-width: 601px) and (max-width: 1024px) {
  #Products { padding-top: 101px; }
  #Products .image-wrapper { height: max(360px, 48vh); }
}

@media (max-width: 600px) {
  #Products { height: auto; overflow: visible; padding-top: 96px; }
  #Products .product-grid { flex: 0 0 auto; align-items: stretch; padding-bottom: 6px; }
  #Products .image-wrapper { height: auto; aspect-ratio: 4 / 5; border-radius: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  #Products .wave-discover { transition: none; }
}

/* Native links retain browser tap, keyboard and swipe-scroll behaviour. */
#Products a.image-wrapper {
  display: block;
  cursor: pointer;
}

#Products a.image-wrapper:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

#Products .product-card .image-wrapper img {
  transform: none;
  transition: transform 250ms ease;
}

@media (hover: hover) and (pointer: fine) {
  #Products a.image-wrapper:hover img { transform: scale(1.02); }
}

@media (prefers-reduced-motion: reduce) {
  #Products .product-card .image-wrapper img { transition: none; transform: none; }
}

/* Leave product details unobstructed while they pass the floating controls. */
#Social-Button-Container.wave-social-obscured {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
