/* Product and campaign scale follows the available screen space. Keep Andeza's artwork. */
@media (min-width: 1100px) {
  .container { width: min(calc(100% - 72px), 1760px); }
  .products-section .product-grid,
  .related-products .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .product-image { height: 280px; padding: 18px; }
  .related-products .product-image { height: 220px; }
  .product-card h3 { font-size: 17px; line-height: 1.35; }
  .product-price strong { font-size: 23px; }
}

@media (min-width: 1700px) {
  .products-section .product-grid,
  .related-products .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
  .product-image { height: 300px; padding: 20px; }
  .related-products .product-image { height: 240px; }
}

@media (min-width: 768px) and (max-width: 1099px) {
  .products-section .product-grid,
  .related-products .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .product-image { height: 260px; padding: 18px; }
  .related-products .product-image { height: 210px; }
  .product-card h3 { font-size: 16px; }
  .product-price strong { font-size: 22px; }
}

@media (max-width: 767px) {
  /* At narrow widths the whole source artwork is scaled 1.2x. All five
     campaigns keep their text and price inside the center 83% of the image. */
  .campaign-carousel { margin-inline: -18px; }
  .campaign-slides { aspect-ratio: 2.7; }
  .campaign-art img { object-fit: cover; }
  .products-section .product-grid,
  .related-products .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-image { height: clamp(178px, 48vw, 215px); padding: 8px; }
  .related-products .product-image { height: clamp(160px, 44vw, 198px); padding: 8px; }
  .product-card-copy { padding: 8px 13px 15px; }
  .product-card h3 { font-size: 14px; line-height: 1.36; min-height: 0; }
  .product-price { margin-top: 12px; margin-bottom: 13px; min-height: 0; }
  .product-price strong { font-size: 19px; }
  .product-detail-link { font-size: 12px; }
  .category-card { padding: 10px 10px 14px; }
  .category-card > img { height: 118px; margin-bottom: 10px; }
  .category-caption strong { font-size: 13px; line-height: 1.3; font-weight: 600; }
}

@media (max-width: 520px) {
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-card { padding: 12px 10px 15px; }
  .category-card > img { height: clamp(112px, 35vw, 150px); margin-bottom: 10px; }
  .category-caption { min-height: 40px; }
  .category-caption strong { font-size: clamp(13px, 3.2vw, 15px); line-height: 1.3; font-weight: 600; }
  .category-card:nth-child(3) { border-right: 1px solid #e8eaed; }
  .category-card:nth-child(2n) { border-right: 0; }
  .category-card:nth-child(-n + 4) { border-bottom: 1px solid #e8eaed; }
}

@media (max-width: 380px) {
  .products-section .product-grid,
  .related-products .product-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .product-image { height: 245px; padding: 12px; }
  .related-products .product-image { height: 220px; }
  .product-card-copy { padding: 12px 16px 17px; }
  .product-card h3 { font-size: 16px; }
  .product-price strong { font-size: 21px; }
}

/* Legal strip: one line where it fits, with social links and Dyoxys at right. */
.site-footer-v4 .footer-legal-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 12px clamp(12px, 1.7vw, 27px);
  align-items: center;
  padding-block: 14px;
}
.site-footer-v4 .footer-legal-inner > p { grid-column: 1; grid-row: 1; }
.site-footer-v4 .footer-legal-links {
  grid-column: 2; grid-row: 1; justify-content: center;
  flex-wrap: nowrap; gap: clamp(8px, 1vw, 17px);
}
.site-footer-v4 .footer-social-icons { grid-column: 3; grid-row: 1; justify-self: end; }
.site-footer-v4 .footer-powered { grid-column: 4; grid-row: 1; justify-self: end; }

/* Keep the fixed contact icon clear of footer copy at every scroll position. */
.whatsapp-float { bottom: calc(32px + env(safe-area-inset-bottom, 0px)); }
.whatsapp-float-label { display: none; }

/* Reserve a narrow right lane when the page gutters cannot hold the icon. */
@media (min-width: 1200px) and (max-width: 1911px) {
  .site-footer-v4 .footer-legal-inner { padding-inline-end: 80px; }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .site-footer-v4 .footer-legal-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding-inline-end: 80px;
  }
  .site-footer-v4 .footer-legal-links { grid-column: 2 / 4; grid-row: 1; justify-content: end; flex-wrap: wrap; }
  .site-footer-v4 .footer-social-icons { grid-column: 2; grid-row: 2; justify-self: end; }
  .site-footer-v4 .footer-powered { grid-column: 3; grid-row: 2; }
}

@media (max-width: 767px) {
  .whatsapp-float { bottom: calc(25px + env(safe-area-inset-bottom, 0px)); }
  .site-footer-v4 .footer-legal-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding-inline-end: 76px;
    padding-block: 15px 19px;
  }
  .site-footer-v4 .footer-legal-inner > p { grid-column: 1; grid-row: 1; }
  .site-footer-v4 .footer-legal-links {
    grid-column: 1; grid-row: 2; justify-content: flex-start;
    flex-wrap: wrap; gap: 0 14px;
  }
  .site-footer-v4 .footer-social-icons { grid-column: 1; grid-row: 3; justify-self: end; }
  .site-footer-v4 .footer-powered { grid-column: 1; grid-row: 4; justify-self: end; }
}

@media (max-width: 380px) {
  .site-footer-v4 .footer-social-icons { gap: 7px; }
  .site-footer-v4 .footer-social-icons > a { width: 24px; min-height: 32px; }
}
