/* Category pages: HTML blurbs */
.category-description {
  font-size: 0.975rem;
  line-height: 1.65;
  color: var(--t-muted);
}
.category-description h1,
.category-description h2,
.category-description h3,
.category-description h4 {
  font-family: inherit;
  font-weight: 700;
  color: var(--t-text);
  margin: 1rem 0 0.5rem;
  letter-spacing: 0.02em;
}
.category-description h2 {
  font-size: 1.25rem;
}
.category-description h3 {
  font-size: 1.1rem;
}
.category-description p {
  margin: 0.5rem 0;
}
.category-description ul,
.category-description ol {
  margin: 0.5rem 0 0.5rem 1.25rem;
  padding: 0;
}
.category-description a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.category-description a:hover {
  color: var(--brand-hover);
}

/* Category listing: AJAX sort + pagination (no sort in URL) */
.category-listing-root--loading .category-listing-grid-wrap,
.category-listing-root--loading .category-listing-pagination-wrap {
  opacity: 0.55;
  transition: opacity 0.15s ease;
  pointer-events: none;
}

.category-listing-sort:disabled {
  cursor: wait;
  opacity: 0.85;
}

.category-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.category-nav-list--nested {
  margin-top: 0.35rem;
  margin-left: 0.25rem;
  padding-left: 0.65rem;
  border-left: 2px solid var(--t-border);
}
.category-nav-link {
  display: block;
  padding: 0.35rem 0.35rem;
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--t-text);
  text-decoration: none;
  transition: background var(--t-quick) var(--ease), color var(--t-quick) var(--ease);
}
.category-nav-link:hover {
  color: var(--brand);
  background: var(--t-surface-2);
}
.category-nav-link--current {
  color: var(--brand);
  font-weight: 700;
  background: var(--brand-tint);
}

.category-nav-flyout-shell {
  background: var(--t-surface);
  border: 1px solid var(--t-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.65rem 0.75rem;
  max-height: min(70vh, 28rem);
  overflow-y: auto;
}
.category-nav-flyout-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.category-nav-flyout-list--nested {
  margin-top: 0.2rem;
  padding-left: 0.65rem;
  border-left: 1px solid var(--t-border);
}
.category-nav-flyout-link {
  display: block;
  padding: 0.3rem 0.25rem;
  border-radius: 6px;
  font-size: 0.8125rem;
  color: var(--t-text);
  text-decoration: none;
  transition: background var(--t-quick) var(--ease), color var(--t-quick) var(--ease);
}
.category-nav-flyout-link:hover {
  background: var(--t-surface-2);
  color: var(--brand);
}

/* Primary CTAs */
.cta-primary {
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  transition: transform var(--t) var(--ease-out), box-shadow var(--t) var(--ease-out), background var(--t) var(--ease);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(194, 65, 65, 0.32);
}

.cta-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.3), transparent 60%);
  opacity: 0;
  transition: opacity 0.28s var(--ease);
}

.cta-primary:hover {
  background: var(--brand-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(194, 65, 65, 0.4);
}

.cta-primary:hover::before {
  opacity: 0.2;
}

.cta-primary:active {
  transform: translateY(0);
  box-shadow: 0 6px 18px rgba(194, 65, 65, 0.32);
}

.cta-secondary {
  border: 1px solid var(--brand);
  color: var(--brand);
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  transition: background var(--t) var(--ease), color var(--t) var(--ease), box-shadow var(--t) var(--ease);
}

.cta-secondary:hover {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 28px rgba(194, 65, 65, 0.28);
}

.cta-card {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  transition: transform var(--t) var(--ease-out), box-shadow var(--t) var(--ease-out), background var(--t) var(--ease);
  margin-top: 0.75rem;
  box-shadow: 0 6px 18px rgba(194, 65, 65, 0.26);
}

.cta-card:hover {
  background: var(--brand-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(194, 65, 65, 0.34);
}

.link-accent {
  color: var(--brand);
  font-weight: 600;
  transition: color var(--t-quick) var(--ease), text-decoration-color var(--t-quick) var(--ease);
}

.link-accent:hover {
  text-decoration: underline;
  text-decoration-color: rgba(194, 65, 65, 0.45);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(17, 24, 39, 0.14);
  background: rgba(255, 255, 255, 0.65);
  transition: background var(--t-quick) var(--ease), border-color var(--t-quick) var(--ease), transform var(--t-quick) var(--ease);
}

.theme-toggle:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

html[data-theme="dark"] .theme-toggle {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
}

.theme-toggle .dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-pill);
  background: var(--t-accent);
  box-shadow: 0 0 0 4px var(--gold-faint);
}

.card-hover {
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.trust-feature {
  min-height: 12rem;
  border: 1px solid var(--brand-tint);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 0 1px rgba(194, 65, 65, 0.08), var(--shadow-md);
  transition: border-color var(--t) var(--ease), box-shadow var(--t) var(--ease), transform var(--t) var(--ease);
  background: var(--t-surface);
}

.trust-feature:hover {
  border-color: var(--brand);
  box-shadow: 0 12px 36px rgba(194, 65, 65, 0.12);
  transform: translateY(-2px);
}

.trust-icon {
  width: 4rem;
  height: 4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(194, 65, 65, 0.1);
  color: var(--brand);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 6px 18px rgba(194, 65, 65, 0.1);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
  border: 1px solid rgba(194, 65, 65, 0.12);
}

.trust-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(194, 65, 65, 0.16);
}

.product-card {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), 0 0 0 1px var(--line-soft);
}

.site-footer {
  background: #1a1d21;
  color: #e5e7eb;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer a {
  transition: color var(--t-quick) var(--ease);
}

.site-footer a:hover {
  color: #fff;
}
