/* Products listing only. Shared product, demo, support and admin styling remains untouched. */
html:has(> body.products-page) { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.products-page {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  /* Keep short Products pages at least as tall as the visible desktop/mobile viewport. */
  display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh;
}
/* Grow the page shell, not the product section: keep the title and card grouped near the top. */
.products-page > main { flex: 1 0 auto; }
.products-page > .site-footer { flex: 0 0 auto; margin-top: 0; }
.products-page .page-hero { padding: clamp(40px, 5vw, 72px) 0 clamp(20px, 3vw, 34px); }
.products-page .page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.4rem); max-width: 900px;
  margin: 12px 0 15px; line-height: 1.02;
}
.products-page .page-hero p { margin: 0; font-size: clamp(.99rem, 1.45vw, 1.14rem); line-height: 1.55; }
.products-page .section-tight { padding: 12px 0 clamp(32px, 5vw, 58px); }
.products-page .product-card {
  grid-template-columns: minmax(0, 1.15fr) minmax(270px, .85fr);
  align-items: center; gap: clamp(24px, 4vw, 60px);
  padding: clamp(27px, 4vw, 48px);
  background: radial-gradient(circle at 96% 9%, var(--accent-soft), transparent 50%),
              linear-gradient(140deg, var(--surface), var(--surface-solid));
}
.products-page .products-summary, .products-page .products-actions { min-width: 0; }
.products-page .products-summary .section-title {
  margin: 16px 0 13px; font-size: clamp(2.3rem, 4.1vw, 3.65rem); line-height: 1.05;
}
.products-page .products-summary .section-copy { margin: 0; font-size: 1rem; line-height: 1.65; }
.products-page .products-actions { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.products-page .products-primary { min-height: 50px; justify-content: center; text-align: center; }
.products-page .products-action-note {
  color: var(--muted); margin: 0; font-size: .84rem; line-height: 1.48;
}
.products-page .products-actions .store-platforms {
  display: grid; grid-template-columns: minmax(0, 175px) minmax(0, 1fr);
  align-items: center; gap: 10px; width: 100%; margin-top: 5px;
}
.products-page .products-actions .store-badge { width: 100%; height: auto; }
.products-page .products-actions .store-future { min-width: 0; padding: 7px 9px; }
.products-page .site-footer { margin-top: 0; }
/* Preserve side-by-side product details in phone desktop mode and smaller desktop windows. */
@media (max-width: 980px) {
  .products-page .product-card { grid-template-columns: minmax(0, 1.15fr) minmax(235px, .85fr); gap: clamp(18px, 2.5vw, 28px); }
  .products-page .products-actions { max-width: none; }
  .products-page .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 22px; }
  .products-page .footer-brand { grid-column: 1 / -1; }
  .products-page .footer-links { min-width: 0; font-size: .86rem; }
  .products-page .footer-links a { overflow-wrap: anywhere; }
  .products-page .header-inner { height: 62px; gap: 10px; }
  .products-page .brand { gap: .55rem; min-width: 0; }
  .products-page .brand-logo-wrap { width: 38px; height: 44px; flex-basis: 38px; }
  .products-page .brand-logo { max-width: 30px; max-height: 40px; }
  .products-page .brand > span:last-child { font-size: .94rem; white-space: nowrap; }
  .products-page .header-actions { gap: 8px; }
  .products-page .theme-toggle, .products-page .menu-toggle { width: 42px; height: 42px; }
  .products-page .nav { top: 62px; }
}
/* Actual tablet portrait and mobile widths keep the single-column, tap-friendly flow. */
@media (max-width: 740px) {
  .products-page .product-card { grid-template-columns: 1fr; gap: 22px; }
  .products-page .products-actions { max-width: 540px; }
}
@media (max-width: 640px) {
  .products-page .page-hero { padding: 32px 0 20px; }
  .products-page .page-hero h1 { font-size: clamp(2.2rem, 9vw, 3.15rem); margin: 11px 0 14px; }
  .products-page .page-hero p { font-size: .98rem; }
  .products-page .section-tight { padding: 10px 0 28px; }
  .products-page .product-card { padding: 23px; gap: 19px; border-radius: 22px; }
  .products-page .products-summary .section-title { font-size: 2.35rem; margin: 12px 0; }
  .products-page .products-summary .section-copy { font-size: .96rem; }
  .products-page .products-action-note { font-size: .8rem; }
  .products-page .products-actions { gap: 10px; }
  .products-page .products-actions .store-platforms { grid-template-columns: minmax(0, 160px) minmax(0, 1fr); gap: 8px; }
  .products-page .products-actions .store-future strong { font-size: .88rem; }
  .products-page .products-actions .store-future small { font-size: .72rem; }
  .products-page .site-footer { padding: 26px 0 22px; }
  .products-page .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
  .products-page .footer-brand { grid-column: 1 / -1; gap: 12px; align-items: center; }
  .products-page .footer-logo { width: 30px; height: 46px; flex-basis: 30px; }
  .products-page .footer-title { font-size: .98rem; }
  .products-page .footer-note { margin: 3px 0 0; font-size: .78rem; line-height: 1.5; }
  .products-page .footer-brand .footer-note:last-child { display: none; }
  .products-page .footer-links { gap: 6px; align-content: start; min-width: 0; font-size: .8rem; line-height: 1.4; }
  .products-page .footer-links strong { margin-bottom: 3px; font-size: .82rem; }
  .products-page .footer-links a { min-height: 40px; display: flex; align-items: center; overflow-wrap: break-word; }
  .products-page .footer-bottom { margin-top: 20px; padding-top: 16px; gap: 6px; font-size: .71rem; }
  .products-page .footer-bottom span:last-child { white-space: normal; }
}
@media (max-width: 355px) {
  .products-page .brand > span:last-child { font-size: .85rem; }
  .products-page .product-card { padding: 20px; }
  .products-page .products-actions .store-platforms { grid-template-columns: minmax(0, 136px) minmax(0, 1fr); }
  .products-page .products-actions .store-future { padding: 5px 7px; }
}
