/* Shared social links for the homepage and the four released product pages. */
.cn-shop-home .shop-footer,
.axis-home-footer.shop-footer {
  grid-template-columns: 1.25fr 0.48fr 0.48fr 1.15fr;
}

.cn-shop-home .shop-footer-social,
.axis-home-footer .shop-footer-social {
  align-content: start;
  display: grid;
  grid-template-columns: repeat(3, 148px);
  justify-content: space-between;
  gap: 28px;
}

.cn-shop-home .shop-footer-social > span,
.axis-home-footer .shop-footer-social > span {
  grid-column: 1 / -1;
  margin-bottom: 3px;
  font-size: 14px;
  letter-spacing: 0.12em;
  opacity: 0.45;
}

.cn-shop-home .shop-footer-social a,
.axis-home-footer .shop-footer-social a {
  display: grid;
  width: 100%;
  gap: 8px;
  grid-template-rows: minmax(24px, auto) auto;
  align-content: start;
  font-size: 14px;
  opacity: 0.7;
  transition: opacity 180ms ease;
  text-align: center;
}

.cn-shop-home .shop-footer-social a:hover,
.cn-shop-home .shop-footer-social a:focus-visible,
.axis-home-footer .shop-footer-social a:hover,
.axis-home-footer .shop-footer-social a:focus-visible {
  opacity: 1;
}

.cn-shop-home .shop-footer-social a:focus-visible,
.axis-home-footer .shop-footer-social a:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 5px;
}

.cn-shop-home .shop-social-qr,
.axis-home-footer .shop-social-qr {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  padding: 5px;
  background: #f4f0e8;
}

.cn-shop-home .shop-social-qr img,
.axis-home-footer .shop-social-qr img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cn-shop-home .shop-footer-icp {
  grid-column: 1 / -1;
  margin-top: -6px;
  text-align: center;
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: 0.06em;
}

.cn-shop-home .shop-footer-icp a {
  color: #f2efe7;
  font-weight: 600;
  transition: color 180ms ease;
}

.cn-shop-home .shop-footer-icp a:hover,
.cn-shop-home .shop-footer-icp a:focus-visible {
  color: #ffffff;
}

.cn-shop-home .shop-footer-icp a:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 5px;
}

@media (max-width: 1000px) {
  .cn-shop-home .shop-footer,
  .axis-home-footer.shop-footer {
    grid-template-columns: repeat(3, 1fr);
  }

  .cn-shop-home .shop-footer > div:first-child,
  .axis-home-footer.shop-footer > div:first-child {
    grid-column: 1 / -1;
  }

  .cn-shop-home .shop-footer-social,
  .axis-home-footer .shop-footer-social {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, 132px);
    margin-top: 24px;
    padding-top: 30px;
    border-top: 1px solid rgba(242, 239, 231, 0.12);
  }

}

@media (max-width: 620px) {
  .cn-shop-home .shop-footer,
  .axis-home-footer.shop-footer {
    grid-template-columns: 1fr;
  }

  .cn-shop-home .shop-footer > div:first-child,
  .axis-home-footer.shop-footer > div:first-child {
    grid-column: auto;
  }

  .cn-shop-home .shop-footer-social > span,
  .axis-home-footer .shop-footer-social > span {
    margin-top: 9px;
  }

  .cn-shop-home .shop-footer-social,
  .axis-home-footer .shop-footer-social {
    grid-template-columns: 148px;
    justify-content: start;
    gap: 34px;
  }
}

/* Keep footer navigation and copyright at 14px across viewport sizes.
   Specificity overrides the shared typography rules for nav links and small. */
.cn-shop-home .shop-footer > nav > a,
.axis-home-footer.shop-footer > nav > a,
.cn-shop-home .shop-footer > small,
.axis-home-footer.shop-footer > small {
  font-size: 14px !important;
}
