/*
 * GazeIQ Affiliate Products Styles
 * ----------------------------------
 * Inherits CSS variables from the host page's :root.
 * Works with the GazeIQ site's existing variable set:
 *   --bg, --bg-secondary, --text-primary, --text-secondary,
 *   --text-tertiary, --border, --border-hover,
 *   --border-radius-md, --border-radius-lg
 *
 * All classes are namespaced with "gazeiq-" to avoid collisions.
 */

.gazeiq-affiliate-section {
  margin-top: 2.5rem;
  padding-bottom: 2rem;
}

.gazeiq-affiliate-heading {
  font-family: 'Georgia', serif;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 0rem;
  text-align: center;
}

.gazeiq-affiliate-subheading {
  font-family: 'Georgia', serif;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 1.25rem;
  text-align: center;
}

.gazeiq-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.gazeiq-product-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border: 0.5px solid var(--border);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  background: var(--bg);
  transition: border-color 0.15s, transform 0.18s;
}

.gazeiq-product-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.gazeiq-product-img-wrap {
  width: 100%;
  aspect-ratio: 1;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 14px;
}

.gazeiq-product-img-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.25s;
}

.gazeiq-product-card:hover .gazeiq-product-img-wrap img {
  transform: scale(1.04);
}

.gazeiq-product-img-fallback {
  font-size: 32px;
  line-height: 1;
}

.gazeiq-product-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.gazeiq-product-name {
  font-family: 'Georgia', serif;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-primary);
}

.gazeiq-product-price {
  font-size: 12px;
  color: var(--text-secondary);
  font-family: 'Georgia', serif;
}

.gazeiq-product-cta {
  margin-top: auto;
  padding-top: 8px;
  font-size: 11px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  font-family: 'Georgia', serif;
}

.gazeiq-affiliate-disclosure {
  margin-top: 1.25rem;
  font-size: 11px;
  color: var(--text-tertiary);
  text-align: center;
  font-family: 'Georgia', serif;
  line-height: 1.6;
}

@media (max-width: 480px) {
  .gazeiq-product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .gazeiq-product-name {
    font-size: 12px;
  }
}
