/**
 * Site-wide link styling: no underlines (matches main header navigation).
 * Prefer color / weight changes on hover. Load after Bootstrap so Reboot does not force underlined links.
 * Explicit Tailwind utilities such as .underline or .hover\:underline keep higher specificity when needed.
 */
body a,
body a:link,
body a:visited {
  text-decoration: none;
}

body a:hover,
body a:focus,
body a:active {
  text-decoration: none;
}

/* Footer brand logo — one compact size sitewide (includes product & index) */
a.tn-site-footer-brand img.tn-site-footer-logo {
  display: block;
  height: 1.375rem;
  max-height: 1.375rem;
  width: auto;
  max-width: 6.25rem;
  object-fit: contain;
  object-position: left center;
}

@media (min-width: 640px) {
  a.tn-site-footer-brand img.tn-site-footer-logo {
    height: 1.5rem;
    max-height: 1.5rem;
    max-width: 7rem;
  }
}

/* Sponsored listing — high-visibility, consistent across grids & search */
.tn-sponsored-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  line-height: 1;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  padding: 0.4rem 0.65rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 45%, #0369a1 100%);
  box-shadow:
    0 6px 16px rgba(91, 33, 182, 0.4),
    0 2px 6px rgba(3, 105, 161, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.28);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}

@media (min-width: 640px) {
  .tn-sponsored-badge {
    font-size: 0.6875rem;
    padding: 0.45rem 0.75rem;
    gap: 0.35rem;
  }
}

.tn-sponsored-badge .tn-sponsored-badge__ic {
  width: 0.75rem;
  height: 0.75rem;
  flex-shrink: 0;
  opacity: 0.95;
}

@media (min-width: 640px) {
  .tn-sponsored-badge .tn-sponsored-badge__ic {
    width: 0.8125rem;
    height: 0.8125rem;
  }
}

html.dark .tn-sponsored-badge {
  box-shadow:
    0 6px 20px rgba(124, 58, 237, 0.45),
    0 2px 8px rgba(3, 105, 161, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

/* Product title in narrow cards: normal word breaks; pretty wrap where supported. */
.tn-home-latest-card__title {
  word-break: normal;
  overflow-wrap: break-word;
  text-wrap: pretty;
}

/* Homepage “Latest products” — larger frame, full image visible (not tight square crop) */
.tn-home-latest-card .tn-home-latest-card__media {
  aspect-ratio: 4 / 3;
  min-height: 12.5rem;
  background: linear-gradient(180deg, rgb(244 244 245) 0%, rgb(228 228 231) 100%);
}

html.dark .tn-home-latest-card .tn-home-latest-card__media {
  background: linear-gradient(180deg, rgb(24 24 27) 0%, rgb(39 39 42) 100%);
}

@media (min-width: 640px) {
  .tn-home-latest-card .tn-home-latest-card__media {
    min-height: 14rem;
  }
}

@media (min-width: 1024px) {
  .tn-home-latest-card .tn-home-latest-card__media {
    min-height: 15.5rem;
  }
}

/* Astro / front homepage latest row */
.tn-home-latest-landing-card .tn-home-latest-landing-card__figure {
  aspect-ratio: 4 / 3;
  min-height: 11rem;
  max-height: 16rem;
}

@media (min-width: 640px) {
  .tn-home-latest-landing-card .tn-home-latest-landing-card__figure {
    width: 13rem;
    min-height: 11rem;
    max-height: none;
    aspect-ratio: 1 / 1;
  }
}

@media (min-width: 1024px) {
  .tn-home-latest-landing-card .tn-home-latest-landing-card__figure {
    width: 14.5rem;
    min-height: 12rem;
  }
}
