/**
 * Amour Parfum Signature 6.0.9 — Related / Footer Spacing Recovery
 * Loaded last. Adds deliberate breathing room between related/upsell merchandising
 * and the footer while preserving the 6.0.8 equal-height card system.
 */

/* The related/upsell cards must never visually sit on the footer edge. */
body.single-product .amour-commerce-shell--single > div.product > :is(.related.products, .upsells.products),
body.single-product :is(.related.products, .upsells.products) {
  margin-bottom: clamp(58px, 6vw, 86px) !important;
}

/* Keep the CTA baseline equalised but leave a small internal finish below it. */
body.single-product :is(.related.products, .upsells.products) ul.products {
  padding-bottom: 4px !important;
}

/* Ensure the footer itself never pulls upward through inherited negative spacing. */
body.single-product .amour-footer,
body.single-product .ap60-footer {
  clear: both !important;
  margin-top: 0 !important;
}

@media (max-width: 860px) {
  body.single-product .amour-commerce-shell--single > div.product > :is(.related.products, .upsells.products),
  body.single-product :is(.related.products, .upsells.products) {
    margin-bottom: 52px !important;
  }
}

@media (max-width: 560px) {
  body.single-product .amour-commerce-shell--single > div.product > :is(.related.products, .upsells.products),
  body.single-product :is(.related.products, .upsells.products) {
    margin-bottom: 38px !important;
  }
}
