/* Landing uploaded images — placeholders had sizes, real <img> tags did not. */

/* Product photos (often JPG on white) — fixed white card so they don't clash on dark themes */
.landing-page .product__preview-frame:not(.media-placeholder),
.landing-page .gallery__item,
.landing-page .callback__media-frame:not(.media-placeholder),
.landing-page .hero-dense__media,
.landing-page .hero-dense__gallery-thumb {
  background: #ffffff;
}

.landing-page .landing-main img {
  max-width: 100%;
  height: auto;
}

/* Hero */
.landing-page .hero__media {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.landing-page .hero__media img,
.landing-page .hero__image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: min(70vh, 420px);
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
  border-radius: var(--radius-md);
}

@media screen and (min-width: 901px) {
  .landing-page .hero__media img,
  .landing-page .hero__image {
    max-height: 420px;
  }
}

/* Problems */
.landing-page .problem-card__media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
}

.landing-page .problem-card__media img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: center;
}

/* Product preview */
.landing-page .product__preview {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: var(--radius-md);
  width: 100%;
}

.landing-page .product__preview-frame {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  aspect-ratio: 1;
  min-height: 280px;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #ffffff;
  border: 1px solid var(--color-border);
}

.landing-page .product__preview-frame.media-placeholder {
  background: var(--color-surface-2);
  border: 1px dashed var(--color-border);
  color: var(--color-ink-faint);
  font-size: 13px;
  font-weight: 500;
}

.landing-page .product__preview img,
.landing-page .product__preview-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* Problems — slider on mobile, grid on desktop */
.landing-page .problems__slider:not(.slick-initialized) {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media screen and (min-width: 640px) {
  .landing-page .problems__slider:not(.slick-initialized) {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
  }

  .landing-page .problems__slider:not(.slick-initialized) .problems__slide {
    flex: 1 1 0;
    min-width: 0;
  }
}

.landing-page .problems__slide {
  padding: 0 4px;
  box-sizing: border-box;
  height: auto;
}

.landing-page .problems__slider .slick-list {
  margin: 0 -4px;
}

.landing-page .problems__slider .slick-dots {
  margin-top: 14px;
}

.landing-page .problems__slider .problem-card {
  height: 100%;
}

/* Gallery */
.landing-page .gallery__item {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  aspect-ratio: 4 / 3;
  min-height: 220px;
}

.landing-page .gallery__item img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

/* Callback */
.landing-page .callback__media {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0 auto;
}

.landing-page .callback__media-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 220px;
  min-height: 160px;
  max-height: 240px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.landing-page .callback__media img,
.landing-page .callback__image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 216px;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
}

@media screen and (min-width: 768px) {
  .landing-page .callback__media {
    flex: 0 0 160px;
    max-width: 160px;
    margin: 0;
  }

  .landing-page .callback__media-frame {
    max-width: 140px;
    min-height: 140px;
    max-height: 140px;
    padding: 8px;
  }

  .landing-page .callback__media img,
  .landing-page .callback__image {
    max-height: 124px;
  }
}

/* Slick slides — prevent overflow */
.landing-page .gallery__slide,
.landing-page .reviews__slide,
.landing-page .problems__slide {
  max-width: 100%;
}

.landing-page .slick-slide img {
  max-width: 100%;
}

/* Product discount prices */
.landing-page .product__price {
  width: 100%;
}

.landing-page .product__price-sale {
  display: flex;
  align-items: stretch;
  gap: 0;
  width: 100%;
}

.landing-page .product__price-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
}

.landing-page .product__price-divider {
  flex: 0 0 1px;
  width: 1px;
  margin: 0 16px;
  align-self: stretch;
  background: #d7dde5;
}

.landing-page .product__price-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 10px;
  box-sizing: border-box;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-ink-muted);
  line-height: 1.2;
}

.landing-page .product__price-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 5px 10px;
  box-sizing: border-box;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  background: #e31e24;
}

.landing-page .product__price-old,
.landing-page .product__price-current {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  min-height: clamp(1.75rem, 4.5vw + 0.35rem, 2.35rem);
  line-height: 1;
}

.landing-page .product__price-old .product__price-amount,
.landing-page .product__price-current .product__price-amount {
  font-size: clamp(1.75rem, 4.5vw + 0.35rem, 2.35rem);
  line-height: 1;
}

.landing-page .product__price-old .product__price-amount {
  font-weight: 700;
  color: var(--color-ink);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.landing-page .product__price-current .product__price-amount {
  font-weight: 800;
  color: var(--color-ink);
  letter-spacing: -0.02em;
}

.landing-page .product__price-currency {
  font-size: clamp(0.95rem, 2.5vw + 0.2rem, 1.15rem);
  font-weight: 500;
  color: var(--color-ink);
  line-height: 1.2;
  padding-bottom: 0.15em;
}

.landing-page .product__price-single .product__price-current .product__price-amount {
  font-size: clamp(1.85rem, 5vw + 0.35rem, 2.5rem);
  font-weight: 800;
}

.landing-page .modal__variant-price .product__price-old .product__price-amount,
.landing-page .modal__variant-price .product__price-current .product__price-amount {
  font-size: clamp(1.35rem, 3.5vw + 0.25rem, 1.75rem);
}

.landing-page .modal__variant-price .product__price-currency {
  font-size: clamp(0.8rem, 2vw + 0.15rem, 0.95rem);
}

.landing-page .modal__variant-price .product__price-label {
  min-height: 26px;
  padding: 4px 8px;
  font-size: 12px;
}

.landing-page .modal__variant-price .product__price-badge {
  min-height: 26px;
  padding: 4px 8px;
  font-size: 12px;
}

.landing-page .modal__variant-price .product__price-old,
.landing-page .modal__variant-price .product__price-current {
  min-height: clamp(1.35rem, 3.5vw + 0.25rem, 1.75rem);
}

.landing-page .modal__variant-price .product__price-divider {
  margin: 0 12px;
}

@media screen and (max-width: 767px) {
  .landing-page .product__preview-frame {
    min-height: 220px;
  }

  .landing-page .gallery__item {
    min-height: 180px;
  }

  .landing-page .callback__media-frame {
    min-height: 140px;
    max-height: 200px;
  }

  .landing-page .product__price-label,
  .landing-page .product__price-badge {
    min-height: 26px;
    padding: 4px 8px;
    font-size: 12px;
  }

  .landing-page .product__price-old,
  .landing-page .product__price-current {
    min-height: clamp(1.5rem, 4vw + 0.25rem, 2rem);
  }

  .landing-page .product__price-old .product__price-amount,
  .landing-page .product__price-current .product__price-amount {
    font-size: clamp(1.5rem, 4vw + 0.25rem, 2rem);
  }

  .landing-page .product__price-currency {
    font-size: clamp(0.85rem, 2.2vw + 0.15rem, 1rem);
  }

  .landing-page .modal__variant-price .product__price-old .product__price-amount,
  .landing-page .modal__variant-price .product__price-current .product__price-amount {
    font-size: clamp(1.2rem, 3.2vw + 0.2rem, 1.55rem);
  }
}
