/* Staging refinement R16: header, homepage rhythm, gallery navigation, footer. */

.aj-site-polish-r16 .header-search-button {
  display: none !important;
}

.aj-site-polish-r16 .site-nav {
  gap: clamp(22px, 2.7vw, 42px);
}

/* The hidden search tool must not remain as a third flex item on desktop. */
@media (width > 760px) {
  .aj-site-polish-r16 .site-header {
    justify-content: flex-start;
  }

  .aj-site-polish-r16 .site-header .site-nav {
    margin-left: auto;
  }

  .aj-site-polish-r16 .site-header .header-tools {
    display: none;
  }
}

.aj-site-polish-r16 .site-header .aj-header-whatsapp {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  margin: 0;
  border: 1px solid #128c4b;
  border-radius: 50%;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: #fff;
  font-size: 0;
  line-height: 0;
  box-shadow: 0 6px 18px rgba(18, 140, 75, .18);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.aj-site-polish-r16 .site-header .aj-header-whatsapp:hover,
.aj-site-polish-r16 .site-header .aj-header-whatsapp:focus-visible {
  border-color: #0d703b;
  background: #1fbd5a;
  color: #fff;
  transform: translateY(-1px);
}

.aj-site-polish-r16 .site-header .aj-header-whatsapp svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* Remove the enquiry-price line only from the rotating homepage cards. */
.aj-site-polish-r16 .aj-rotating-products .price-enquiry {
  display: none !important;
}

.aj-site-polish-r16 .aj-rotating-products .product-actions {
  margin-top: 9px;
  padding-top: 9px;
}

/* Fill every rotating homepage frame; other catalogue and product imagery stays uncropped. */
.aj-site-polish-r16 .aj-rotating-products .product-image img {
  object-fit: cover;
  object-position: center;
}

/* Reduce the marked Devotional Edit whitespace by approximately 30%. */
.aj-site-polish-r16 .intro-grid.aj-intro-compact {
  gap: clamp(22px, 2.8vw, 36px);
  padding-block: clamp(20px, 1.6vw, 22px);
}

.aj-site-polish-r16 .intro-grid.aj-intro-compact > div p {
  margin-top: 13px;
}

.aj-site-polish-r16 .intro-grid.aj-intro-compact .circle-link {
  width: 56px;
  height: 56px;
}

/* Tighten the transition after the six featured products by 30%. */
.aj-site-polish-r16 .aj-home-gateway {
  margin-top: clamp(36px, 4.2vw, 60px);
}

/* Make the existing full-screen previous/next controls unmistakable. */
.aj-site-polish-r16 .product-viewer-dialog[data-aj-gallery-navigation="r16"]
  .product-viewer-dialog-media > button {
  min-width: 128px;
  min-height: 48px;
  border-color: rgba(225, 193, 140, .72);
  border-radius: 999px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #fff8eb;
  font-size: 18px;
}

.aj-site-polish-r16 .product-viewer-dialog[data-aj-gallery-navigation="r16"]
  .product-viewer-dialog-media > button::after {
  color: #e1c18c;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .13em;
  line-height: 1;
  text-transform: uppercase;
}

.aj-site-polish-r16 .product-viewer-dialog[data-aj-gallery-navigation="r16"]
  .product-viewer-dialog-media > button[aria-label="Previous image"]::after {
  content: "Previous photo";
}

.aj-site-polish-r16 .product-viewer-dialog[data-aj-gallery-navigation="r16"]
  .product-viewer-dialog-media > button[aria-label="Next image"]::after {
  content: "Next photo";
}

/* Four equal visual columns: Brand, Visit, Explore, Follow. */
.aj-site-polish-r16 .site-footer.aj-footer-r16 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: clamp(24px, 3vw, 46px);
  row-gap: clamp(22px, 2vw, 28px);
}

.aj-site-polish-r16 .site-footer .aj-footer-explore {
  grid-column: span 2;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: row;
  align-content: start;
  align-items: start;
  column-gap: clamp(24px, 3vw, 46px);
  row-gap: 8px;
  display: grid !important;
}

.aj-site-polish-r16 .aj-footer-explore > h2,
.aj-site-polish-r16 .aj-footer-explore > a:not([hidden]) {
  grid-column: 1;
}

.aj-site-polish-r16 .aj-footer-explore > a[hidden] {
  display: none !important;
}

.aj-site-polish-r16 .footer-follow {
  grid-column: 2;
  grid-row: 1 / span 7;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.aj-site-polish-r16 .site-footer > .footer-bottom {
  margin-top: 0;
}

.aj-site-polish-r16 .footer-follow .footer-whatsapp {
  width: 100%;
  min-height: 44px;
  border-top: 1px solid rgba(225, 193, 140, .34);
  border-bottom: 1px solid rgba(225, 193, 140, .34);
  padding: 11px 0;
  display: flex;
  align-items: center;
  color: #fff8eb;
  font-size: 13px;
  line-height: 1.45;
}

.aj-site-polish-r16 .footer-social-links {
  width: 100%;
  margin-top: 13px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.aj-site-polish-r16 .footer-social-links a {
  min-height: 44px;
  border: 1px solid rgba(225, 193, 140, .34);
  padding: 9px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #d8cec4;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .08em;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.aj-site-polish-r16 .footer-social-links a:hover,
.aj-site-polish-r16 .footer-social-links a:focus-visible {
  border-color: #e1c18c;
  background: rgba(225, 193, 140, .08);
  color: #fff;
}

@media (width <= 1024px) {
  .aj-site-polish-r16 .intro-grid.aj-intro-compact {
    padding-block: 28px;
  }

  .aj-site-polish-r16 .site-footer.aj-footer-r16 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .aj-site-polish-r16 .site-footer .aj-footer-explore {
    grid-column: 1 / -1;
  }
}

@media (width <= 760px) {
  .aj-site-polish-r16 .site-nav .aj-header-whatsapp {
    margin-top: 12px;
  }

  .aj-site-polish-r16 .intro-grid.aj-intro-compact {
    gap: 18px;
    padding-block: 31px;
  }

  .aj-site-polish-r16 .product-viewer-dialog[data-aj-gallery-navigation="r16"]
    .product-viewer-dialog-media > button {
    width: 48px;
    min-width: 48px;
    height: 48px;
    padding: 0;
  }

  .aj-site-polish-r16 .product-viewer-dialog[data-aj-gallery-navigation="r16"]
    .product-viewer-dialog-media > button::after {
    display: none;
  }

  .aj-site-polish-r16 .site-footer.aj-footer-r16 {
    grid-template-columns: minmax(0, 1fr);
  }

  .aj-site-polish-r16 .site-footer .aj-footer-explore {
    grid-column: 1;
    grid-template-columns: minmax(0, 1fr);
    row-gap: 8px;
  }

  .aj-site-polish-r16 .footer-follow {
    grid-column: 1;
    grid-row: auto;
    margin-top: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aj-site-polish-r16 .site-header .aj-header-whatsapp,
  .aj-site-polish-r16 .footer-social-links a {
    transition: none;
  }
}
