.products-page, .product-page { background: #fafafa; color: #111; color-scheme: light; }
.products-page .site-header, .product-page .site-header { color: white; color-scheme: dark; }
.products-page, .product-page { display: flex; flex-direction: column; min-height: 100svh; }
.products-main, .product-main { flex: 1; padding-block: 48px 65px; }
.products-page a:focus-visible, .products-page button:focus-visible, .products-page input:focus-visible, .product-page a:focus-visible { outline-color: #669b17; }
.catalog-back { display: flex; align-items: center; gap: 10px; font-size: 12px; color: #777; }
.catalog-back { width: fit-content; }
.catalog-back:hover { color: #426e00; }
.catalog-heading h1 { font-size: clamp(43px, 5.2vw, 66px); font-weight: 600; line-height: 1.2; letter-spacing: -2px; margin-top: 30px; }
.catalog-heading h1 span { color: #83b82d; }
.catalog-heading > p { font-size: 15px; color: #6d6d6d; line-height: 1.8; margin-top: 15px; }
.catalog-tools { margin-top: 43px; padding-bottom: 29px; border-bottom: 1px solid #e2e2e2; scroll-margin-top: 95px; }
[hidden] { display: none !important; }
.catalog-search label { display: block; margin-bottom: 11px; font-size: 12px; font-weight: 600; }
.search-row { display: flex; align-items: stretch; gap: 12px; }
.search-field { display: flex; align-items: center; gap: 13px; flex: 1; min-width: 0; background: #fff; border: 1px solid #d6d6d6; border-radius: 8px; padding-inline: 18px 8px; transition: border-color .2s, box-shadow .2s; }
.search-field:focus-within { border-color: #73993f; box-shadow: 0 0 0 3px #a6ee2820; }
.search-field > svg { flex-shrink: 0; width: 19px; height: 19px; stroke: #7e7e7e; stroke-width: 1.5; }
.search-field input { flex: 1; min-width: 0; height: 53px; background: transparent; border: 0; color: #222; outline: none; font: inherit; font-size: 13px; padding: 10px 0; }
.search-field input::placeholder { color: #909090; }
.search-field input:focus-visible { outline: none; }
.search-field input::-webkit-search-cancel-button { display: none; }
.clear-search { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; background: transparent; width: 38px; height: 38px; font-size: 23px; color: #777; border-radius: 5px; }
.clear-search:hover { background: #f1f1f1; }
.search-row > .button { min-width: 133px; }
.filter-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 19px; margin-top: 21px; }
.filter-label { color: #777; font-size: 12px; }
.product-filters { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.filter-tag { display: inline-flex; align-items: center; border: 1px solid #dedede; background: #fff; padding: 7px 16px; min-height: 35px; border-radius: 22px; font-size: 11px; color: #555; overflow-wrap: anywhere; transition: background .2s, border-color .2s; }
.filter-tag:hover { border-color: #87ae4d; }
.filter-tag.is-selected { background: #e7f2d8; border-color: #bad296; color: #3a5d15; }
.tag-match-note { font-size: 10px; color: #7a7a7a; }
.catalog-notice { font-size: 13px; line-height: 1.8; padding: 18px 20px; background: #f0f2ec; border-left: 2px solid #91b765; margin-top: 35px; }
.results-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 27px 0 24px; font-size: 12px; color: #686868; }
.catalog-order { display: flex; align-items: center; gap: 8px; color: #818181; font-size: 11px; white-space: nowrap; }
.catalog-order svg { width: 17px; height: 17px; stroke: #7b7b7b; stroke-width: 1.3; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 27px; align-items: start; }
.product-card { min-width: 0; border: 1px solid #e4e4e4; background: #fff; border-radius: 10px; overflow: hidden; scroll-margin-top: 95px; transition: box-shadow .25s, border-color .25s; }
.product-card:hover { box-shadow: 0 9px 26px #11111107; border-color: #cbd2c1; }
.product-card-image { display: grid; place-items: center; aspect-ratio: 8 / 5; background: #ebeee5; overflow: hidden; }
.product-card-image img, .product-card-image video { display: block; width: 100%; height: 100%; object-fit: cover; }
.product-card-image img { transition: transform .35s; }
.product-card-image video { object-fit: contain; background: #111; }
.product-card-image:hover img { transform: scale(1.035); }
.product-image-fallback { color: #476521; font-size: 25px; padding: 25px; overflow-wrap: anywhere; }
.product-card-body { padding: 23px 24px 25px; }
.product-card-meta { color: #888; font-size: 10px; margin-bottom: 12px; }
.product-card h2 { font-size: 23px; line-height: 1.35; font-weight: 600; letter-spacing: -.6px; }
.product-card-title { overflow-wrap: anywhere; }
.product-card-title:hover { color: #648d25; }
.product-card-summary { color: #747474; font-size: 13px; line-height: 1.85; margin-top: 11px; overflow-wrap: anywhere; }
.product-card-tags { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 19px 0 0; gap: 7px; }
.product-card-tags a, .product-tags a { display: inline-flex; align-items: center; min-height: 26px; font-size: 10px; line-height: 1.6; padding: 4px 9px; border-radius: 4px; background: #f3f5ef; color: #62704f; overflow-wrap: anywhere; }
.product-card-tags a:hover, .product-tags a:hover { color: #365b0d; background: #e6efda; }
.product-card-publish { margin-top: 20px; padding-top: 12px; border-top: 1px solid #e4e4e4; }
.product-visibility-switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 44px; padding: 4px 0; border: 0; background: transparent; color: #626262; font: inherit; font-size: 12px; text-align: left; cursor: pointer; }
.product-visibility-switch:hover { color: #365b0d; }
.product-visibility-track { display: flex; align-items: center; flex-shrink: 0; width: 40px; height: 24px; padding: 3px; border-radius: 20px; background: #777; }
.product-visibility-track::before { content: ''; width: 18px; height: 18px; border-radius: 50%; background: #fff; }
.product-visibility-switch[aria-checked='true'] { color: #426016; }
.product-visibility-switch[aria-checked='true'] .product-visibility-track { justify-content: flex-end; background: #648d25; }
.catalog-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid #e3e3e3; margin-top: 40px; padding-top: 25px; }
.page-size-note { color: #888; font-size: 11px; white-space: nowrap; }
.pagination, .pagination-pages { display: flex; align-items: center; justify-content: center; gap: 6px; }
.pagination .page-control, .pagination > button, .pagination > a { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 38px; padding: 7px 13px; font-size: 11px; border: 1px solid #dedede; border-radius: 6px; background: #fff; color: #464646; }
.pagination button:disabled { color: #aeaeae; border-color: #e7e7e7; cursor: default; background: transparent; }
.page-number, .pagination-pages > a, .pagination-pages > span { display: inline-flex; align-items: center; justify-content: center; min-width: 37px; min-height: 38px; padding: 7px; font-size: 12px; border-radius: 6px; color: #777; }
.pagination [aria-current='page'] { background: #e3efcf; color: #426016; }
.pagination a:hover { color: #385618; border-color: #a3bd7e; background: #f0f5e8; }
.pagination-pages .pagination-gap { min-width: 18px; padding: 0; }
.products-empty { grid-column: 1 / -1; padding: 64px 20px 70px; text-align: center; background: #f5f5f2; border-radius: 10px; }
.empty-symbol { display: block; font-size: 48px; font-family: var(--mono); color: #a3af92; line-height: 1; margin-bottom: 18px; }
.products-empty h2 { font-size: 22px; font-weight: 600; letter-spacing: -.5px; }
.products-empty p { color: #777; font-size: 13px; line-height: 1.8; margin-top: 12px; }
.products-empty .button { margin-top: 25px; min-height: 46px; font-size: 12px; }

/* Shared presentation for the runtime PHP product templates. */
.product-hero { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 65px; }
.product-hero-image { border-radius: 12px; overflow: hidden; background: #eff1e9; }
.product-hero-image img, .product-hero-image video { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; }
.product-hero-image video { object-fit: contain; background: #111; }
.products-page video:focus-visible, .product-page video:focus-visible { outline: 2px solid #669b17; outline-offset: -2px; }
.product-intro .eyebrow { color: #759943; font-size: 11px; letter-spacing: 3px; }
.product-intro h1 { font-size: clamp(35px, 4.2vw, 56px); font-weight: 600; line-height: 1.2; letter-spacing: -1.8px; margin-top: 18px; overflow-wrap: anywhere; }
.product-summary { font-size: 16px; line-height: 1.8; color: #6b6b6b; margin-top: 19px; }
.product-tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.product-tags a { font-size: 11px; padding: 6px 11px; }
.product-date { color: #909090; font-size: 10px; margin-top: 23px; }
.product-body { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(240px, 1fr); gap: 85px; margin-top: 65px; padding-top: 42px; border-top: 1px solid #e1e1e1; }
.product-content section + section { margin-top: 37px; }
.product-content h2, .product-support h2 { font-size: 23px; line-height: 1.4; font-weight: 600; letter-spacing: -.6px; margin-bottom: 16px; }
.product-content p { font-size: 14px; line-height: 1.95; color: #626262; margin-top: 15px; }
.product-support { align-self: start; padding: 27px; background: #f0f3ea; border-radius: 10px; }
.product-support .eyebrow { color: #78964b; font-size: 9px; letter-spacing: 2px; margin-bottom: 14px; }
.product-support h2 { font-size: 19px; }
.product-support p { font-size: 12px; color: #6f7862; line-height: 1.8; margin-bottom: 18px; }
.product-links { display: flex; flex-direction: column; gap: 13px; }
.product-links a { font-size: 13px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #abbc94; }
.product-links a:hover { color: #4a7811; }
.product-links a.button { text-decoration: none; font-size: 12px; min-height: 46px; }
.product-body-wide { grid-template-columns: 1fr; }
.product-body-wide .product-content { max-width: 800px; }
.marketplace-links, .software-downloads { display: grid; gap: 12px; margin-bottom: 20px; }
.product-support .button { width: 100%; min-height: 46px; padding: 12px 15px; font-size: 12px; }
.product-privacy, .website-link { margin-bottom: 20px; }
.product-gallery { margin-top: 65px; }
.product-gallery h2 { font-size: 26px; font-weight: 600; letter-spacing: -.6px; margin-bottom: 24px; }
.screenshot-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.screenshot-grid figure { margin: 0; min-width: 0; }
.screenshot-grid a { display: block; border-radius: 10px; overflow: hidden; border: 1px solid #e0e3da; background: #f0f3ea; }
.screenshot-grid img { display: block; width: 100%; height: auto; }
.screenshot-grid figcaption { color: #737373; font-size: 12px; line-height: 1.8; margin-top: 11px; overflow-wrap: anywhere; }

@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-hero { gap: 35px; }
  .product-body { gap: 45px; }
}
@media (max-width: 800px) {
  .product-card-body { padding: 21px; }
  .product-intro h1 { font-size: 39px; }
  .product-summary { font-size: 14px; }
  .product-body { gap: 30px; grid-template-columns: minmax(0, 1.3fr) minmax(210px, 1fr); }
  .product-support { padding: 22px; }
}
@media (max-width: 650px) {
  .products-main, .product-main { padding-block: 30px 43px; }
  .catalog-heading h1 { margin-top: 26px; font-size: 44px; letter-spacing: -1.5px; }
  .catalog-heading > p { font-size: 13px; margin-top: 12px; }
  .catalog-tools { margin-top: 31px; padding-bottom: 23px; }
  .search-row { gap: 9px; }
  .search-field { padding-left: 12px; gap: 9px; }
  .search-field > svg { width: 17px; }
  .search-field input { font-size: 12px; height: 49px; }
  .search-field input::placeholder { font-size: 11px; }
  .search-row > .button { min-width: auto; padding: 12px 17px; }
  .search-row > .button span { display: none; }
  .clear-search { width: 28px; height: 35px; padding: 0; }
  .filter-row { gap: 10px 12px; align-items: flex-start; }
  .filter-label { padding-top: 8px; }
  .product-filters { flex: 1; gap: 6px; }
  .filter-tag { padding-inline: 12px; font-size: 10px; min-height: 33px; }
  .tag-match-note { width: 100%; padding-left: 38px; }
  .results-heading { font-size: 11px; margin-block: 23px 20px; }
  .catalog-order { font-size: 10px; }
  .product-grid { grid-template-columns: 1fr; gap: 25px; }
  .product-card-image { aspect-ratio: 8 / 5; }
  .product-card-body { padding: 22px; }
  .product-card-summary { font-size: 13px; }
  .catalog-bottom { flex-direction: column-reverse; gap: 17px; margin-top: 31px; padding-top: 23px; }
  .pagination, .pagination-pages { gap: 4px; }
  .pagination .page-control { min-width: 32px; padding-inline: 9px; }
  .page-control-label { display: none; }
  .page-number, .pagination-pages > a, .pagination-pages > span { min-width: 28px; min-height: 36px; padding: 6px; }
  .pagination-pages .pagination-gap { min-width: 14px; }
  .products-empty { padding-block: 45px; }
  .products-empty h2 { font-size: 20px; }
  .product-hero { grid-template-columns: 1fr; gap: 31px; }
  .product-intro h1 { font-size: 41px; }
  .product-summary { font-size: 14px; }
  .product-tags { margin-top: 20px; }
  .product-date { margin-top: 19px; }
  .product-body { grid-template-columns: 1fr; gap: 32px; margin-top: 35px; padding-top: 31px; }
  .product-gallery { margin-top: 35px; }
  .screenshot-grid { grid-template-columns: 1fr; gap: 22px; }
  .product-content h2 { font-size: 22px; }
  .product-content p { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .product-card-image img { transition: none; }
}
@media print {
  .catalog-tools, .catalog-bottom, .product-card-publish { display: none; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-body { display: block; }
  .product-support { margin-top: 30px; }
}
