/* Product cutouts and footer layout shared by all pages. */
.product-card .card-media img,
.about-products-grid img,
.catalog-grid .catalog-card > img {
  object-fit: contain;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) auto minmax(130px, 1fr);
  align-items: center;
  gap: 36px;
}

.footer-main nav {
  align-items: center;
  justify-content: center;
}

.footer-links {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 9px;
}

.footer-links a {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: #667174;
  color: #fff;
  transition: background-color .2s, transform .2s;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  background: var(--teal);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
}

.footer-links svg {
  display: block;
  width: 20px;
  height: 20px;
}

.round-icon svg {
  display: block;
  width: 30px;
  height: 30px;
}

.footer-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) auto auto;
  align-items: center;
  column-gap: clamp(24px, 5vw, 90px);
}

.footer-address {
  justify-self: end;
}

.footer-bottom a {
  justify-self: end;
  white-space: nowrap;
}

@media (max-width: 820px) {
  .footer-main {
    grid-template-columns: 1fr auto;
    gap: 16px;
  }

  .footer-main nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: center;
  }

  .footer-bottom {
    grid-template-columns: 1fr auto;
    row-gap: 10px;
  }

  .footer-address {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
  }

  .footer-bottom a {
    grid-column: 2;
    grid-row: 2;
  }
}

@media (max-width: 560px) {
  .round-icon svg {
    width: 24px;
    height: 24px;
  }

  .footer-main {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .footer-main nav {
    justify-content: flex-start;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
  }

  .footer-address,
  .footer-bottom a {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }
}
