/* Final cross-page refinements found during rendered mobile review. */
.brand {
  display: block;
  flex: 0 0 126px;
  width: 126px;
  height: 44px;
  min-height: 44px;
  overflow: hidden;
  background-color: #fff;
  background-image: url("assets/ansi-logo.jpg");
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: 210px 210px;
}

.brand > span {
  display: none !important;
}

.footer-brand {
  border: 1px solid rgba(255, 255, 255, .2);
}

.hero-product::after {
  content: "PART VIEW / 01\A SR04XL" !important;
}

.breadcrumbs a,
.contact-aside a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.quantity-stepper button:focus-visible,
.add-cart-reference:focus-visible,
.payment-button:focus-visible,
.shipping-select select:focus-visible {
  outline: 3px solid #0d8d92;
  outline-offset: 2px;
}

/* ANSI typography scale: clearer commerce hierarchy without changing content order. */
body {
  font-size: 15px;
  line-height: 1.65;
}

.notice {
  font-size: 10px;
}

.desktop-nav a {
  font-size: 13px;
}

.utility-link,
.cart-link,
.nav-cta {
  font-size: 12px;
}

.mobile-menu a {
  font-size: 14px;
}

.button,
.text-cta {
  font-size: 13px;
}

.eyebrow,
.section-kicker,
.stock-tag,
.gallery-index,
.client-value-mark,
.video-card-content > span,
.footer-label,
.footer-rail > span {
  font-size: 11px;
}

.hero-intro,
.section-intro,
.finder-copy > p:not(.eyebrow),
.quality-copy > p:not(.eyebrow),
.wholesale-side p,
.page-hero p:not(.breadcrumbs),
.section-lead,
.promise-head > p,
.video-copy > p:not(.eyebrow),
.detail-section-head > p {
  font-size: 15px;
  line-height: 1.72;
}

.hero-proof strong {
  font-size: 14px;
}

.hero-proof span {
  font-size: 12px;
  line-height: 1.5;
}

.trust-grid b {
  font-size: 15px;
}

.trust-grid p,
.evidence-item p,
.promise-card p,
.reviews-note,
.review-card blockquote,
.review-source strong,
.detail-section-head p,
.protection-item p,
.supply-list li,
.compat-empty,
.faq-list details p,
.info-aside p,
.info-panel p,
.info-panel li,
.region-card p,
.support-link-card p,
.footer-contact p {
  font-size: 13px;
  line-height: 1.7;
}

.category-link,
.product-meta a,
.support-link-card a {
  font-size: 13px;
}

.product-meta p,
.popular-searches > span,
.popular-searches button,
.review-source span,
.compat-tag,
.footer-socials span,
.footer-badges span,
.footer-bottom {
  font-size: 11px;
}

.product-meta h3 {
  font-size: 22px;
  line-height: 1.2;
}

.finder-note,
.form-status,
.video-status {
  font-size: 12px;
  line-height: 1.65;
}

.lookup-form label,
.form-field,
.quality dt,
.quality dd,
.contact-aside dd,
.filter-row a {
  font-size: 13px;
}

.form-field input,
.form-field textarea,
.form-field select,
.compat-search input {
  font-size: 14px;
}

.fitment-form p,
.contact-form p,
.info-card p,
.page-note {
  font-size: 14px;
  line-height: 1.7;
}

.finder-steps li,
.faq-list summary {
  font-size: 15px;
}

.footer-column a,
.footer-column .footer-static {
  font-size: 13px;
}

.purchase-price span,
.quantity-field,
.summary-note,
.checkout-progress span {
  font-size: 11px;
}

.purchase-note,
.purchase-message {
  font-size: 12px;
  line-height: 1.65;
}

.commerce-head p,
.confirmation-card p {
  font-size: 15px;
  line-height: 1.72;
}

.cart-item p,
.remove-item,
.summary-row,
.payment-option,
.demo-notice,
.empty-cart p {
  font-size: 13px;
}

.summary-row.total {
  font-size: 17px;
}

/* Professionally sourced image icons: local Lucide SVGs and official PayPal art. */
.ui-icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.menu-button {
  background-image: url("assets/icons/menu.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 24px 24px;
}

.menu-button span:not(.sr-only) {
  display: none !important;
}

.cart-link {
  min-height: 44px;
  padding-left: 27px;
  background-image: url("assets/icons/shopping-bag.svg");
  background-position: left center;
  background-repeat: no-repeat;
  background-size: 19px 19px;
}

.finder-note > .ui-icon {
  width: 21px;
  height: 21px;
  margin-top: 1px;
}

.play-mark img {
  width: 22px;
  height: 22px;
  filter: brightness(0) invert(1);
}

.confirmation-mark img {
  width: 32px;
  height: 32px;
  filter: invert(35%) sepia(42%) saturate(783%) hue-rotate(112deg) brightness(90%) contrast(92%);
}

.faq-list summary::after {
  content: "";
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  background: url("assets/icons/chevron-down.svg") center / contain no-repeat;
  transition: transform .2s ease;
}

.faq-list details[open] summary::after {
  content: "";
  transform: rotate(180deg);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 850px) {
  .detail-layout,
  .finder-page,
  .wholesale-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .reference-gallery {
    position: relative;
    top: auto;
  }
}

@media (max-width: 520px) {
  .cart-link {
    gap: 0;
    font-size: 0;
  }

  .cart-link::before {
    font-size: 10px;
  }

  .brand {
    flex-basis: 106px;
    width: 106px;
    background-size: 176px 176px;
  }

  .notice,
  .notice-inner {
    font-size: 10px;
  }

  .hero-intro,
  .section-intro,
  .page-hero p:not(.breadcrumbs),
  .section-lead {
    font-size: 15px;
  }

  .trust-grid p,
  .promise-card p,
  .detail-section-head > p,
  .protection-item p,
  .footer-contact p {
    font-size: 13px;
  }

  .product-meta h3 {
    font-size: 21px;
  }
}

@media (max-width: 360px) {
  .catalog-tools .filter-row {
    flex-wrap: wrap;
    overflow-x: visible;
    padding-bottom: 0;
  }

  .catalog-tools .filter-row a {
    flex: 1 1 calc(50% - 3px);
    justify-content: center;
  }

  .catalog-tools .filter-row a:last-child {
    flex-basis: 100%;
  }
}

/* Keep application equipment fully visible on inner application cards. */
.category {
  background: #eef3f1;
}

.category img {
  object-fit: contain;
  object-position: center;
  transform: none;
}

.category:hover img,
.category:focus-visible img {
  transform: none;
}

.category::after {
  inset: auto 0 0;
  height: 44%;
  background: linear-gradient(
    0deg,
    rgba(1, 28, 40, 0.9) 0%,
    rgba(1, 28, 40, 0.58) 54%,
    rgba(1, 28, 40, 0) 100%
  );
}

/*
 * The homepage application photographs are square packshots. Match the card
 * geometry to the source canvas so the image reaches every edge without
 * letterboxing or cutting off the product.
 */
#applications .category-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: auto;
}

#applications .category,
#applications .category-featured,
#applications .category-wide {
  grid-column: span 1;
  aspect-ratio: 1;
  background: #fff;
}

#applications .category img,
#applications .category:hover img,
#applications .category:focus-visible img {
  object-fit: cover;
  object-position: center;
  transform: scale(1.08);
}

#applications .category:nth-child(4) img,
#applications .category:nth-child(4):hover img,
#applications .category:nth-child(4):focus-visible img {
  transform: scale(1.1);
}

@media (min-width: 851px) and (max-width: 1100px) {
  #applications .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 850px) {
  #applications .category-grid .category,
  #applications .category-featured,
  #applications .category-wide {
    height: auto;
    min-width: 78vw;
    flex-basis: 78vw;
    aspect-ratio: 1;
  }
}
