/* Image-first ready-product cards, shared by the homepage and product catalog. */
.work-product-card { position: relative; }
.product-gallery-trigger { position: absolute; top: 12px; left: 12px; z-index: 2; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 7px 12px; border: 1px solid #ffffff60; border-radius: 10px; background: #171927e8; color: #fff; font-size: 11px; font-weight: 700; box-shadow: 0 4px 18px #0002; }
.product-gallery-trigger:hover { background: #302d52; color: #fff; }
.product-gallery-trigger:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.product-gallery-trigger svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.work-product-card--without-cover .product-gallery-trigger { position: static; margin: 0 16px 14px; background: var(--card-soft); border-color: var(--card-line); color: var(--card-ink); box-shadow: none; }
.work-products-grid { --card-surface: var(--work-card, var(--surface)); --card-line: var(--work-line, var(--line)); --card-ink: var(--work-ink, var(--text)); --card-muted: var(--work-muted, var(--muted)); --card-soft: var(--work-soft, var(--surface-2)); --card-accent: var(--work-accent, var(--primary)); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 18px; }
.work-product-card { min-width: 0; overflow: hidden; border: 1px solid color-mix(in srgb, var(--product-accent) 28%, var(--card-line)); border-radius: 18px; background: linear-gradient(145deg, color-mix(in srgb, var(--product-accent) 5%, var(--card-surface)), var(--card-surface) 75%); box-shadow: 0 8px 24px #17122508; transition: transform .2s, border-color .2s, box-shadow .2s; }
.work-product-link { position: relative; display: flex; flex-direction: column; height: 100%; border-radius: inherit; color: var(--card-ink); }
.work-product-link:focus-visible { outline: 3px solid var(--card-accent); outline-offset: -4px; }
.work-product-content { display: flex; flex-direction: column; flex: 1; min-width: 0; padding: 16px; }
.work-product-header { min-width: 0; }
.work-product-cover { position: relative; display: grid; place-items: center; flex: none; width: 100%; aspect-ratio: 16 / 9; border-bottom: 1px solid color-mix(in srgb, var(--product-accent) 18%, var(--card-line)); background: color-mix(in srgb, var(--product-accent) 5%, var(--card-surface)); overflow: hidden; }
.work-product-cover > svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; width: 54px; height: 54px; color: var(--card-accent); }
.work-product-cover.has-cover:not(.is-broken) > svg { visibility: hidden; }
.work-product-cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--card-surface); transition: transform .3s ease; }
.work-product-cover.is-broken > img { display: none; }
.work-product-card--without-cover .work-product-cover { position: absolute; inset-inline-start: 16px; top: 16px; width: 58px; height: 58px; aspect-ratio: auto; border: 1px solid color-mix(in srgb, var(--product-accent) 20%, var(--card-line)); border-radius: 12px; }
.work-product-card--without-cover .work-product-cover > svg { width: 34px; height: 34px; }
.work-product-card--without-cover .work-product-header { min-height: 58px; padding-inline-start: 72px; }
.work-product-copy { min-width: 0; }
.work-product-category { display: block; color: var(--card-muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
.work-product-copy h3 { margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; font-size: 18px; line-height: 1.65; font-weight: 800; }
.work-product-copy p { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; margin: 6px 0 0; font-size: 12px; line-height: 1.85; color: var(--card-muted); }
.work-product-features { display: flex; flex-wrap: wrap; align-content: start; gap: 4px; margin: 11px 0 0; padding: 0; list-style: none; }
.work-product-features > li { display: inline-flex; align-items: baseline; gap: 5px; max-width: 100%; padding: 3px 7px; border: 1px solid color-mix(in srgb, var(--product-accent) 18%, var(--card-line)); border-radius: 6px; background: color-mix(in srgb, var(--product-accent) 6%, var(--card-surface)); font-size: 11px; line-height: 1.6; }
.work-product-features > li::before { content: ""; width: 4px; height: 4px; flex: none; border-radius: 50%; align-self: center; background: var(--card-accent); }
.work-product-features li > span { min-width: 0; overflow-wrap: anywhere; }
.work-all-products { margin-top: 20px; padding-block: 12px; }
.work-product-badge { align-self: start; max-width: 100%; padding: 2px 7px; border-radius: 5px; margin-top: 10px; font-size: 9px; font-weight: 650; color: var(--card-muted); background: var(--card-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.work-product-footer { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--card-line); }
.work-product-price { min-width: 0; }
.work-product-price > small { display: block; color: var(--card-muted); font-size: 9px; }
.work-product-price > span { display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.work-product-price strong { font-size: 18px; font-weight: 800; line-height: 1.5; }
.work-product-price small { font-size: 9px; color: var(--card-muted); }
.work-product-price .work-product-quote { display: block; font-size: 12px; }
.work-product-cta { display: flex; align-items: center; justify-content: center; gap: 8px; flex: none; min-width: 0; max-width: 100%; min-height: 42px; padding: 7px 10px; border: 1px solid color-mix(in srgb, var(--product-accent) 28%, var(--card-line)); border-radius: 10px; background: var(--card-soft); color: var(--card-ink); font-size: 11px; font-weight: 750; overflow-wrap: anywhere; }
.work-product-cta > span { font-size: 17px; }
@media (hover: hover) {
  .work-product-card:hover { transform: translateY(-3px); border-color: var(--product-accent); box-shadow: 0 10px 24px color-mix(in srgb, var(--product-accent) 14%, transparent); }
  .work-product-card:hover .work-product-cover > img { transform: scale(1.015); }
}
@media (max-width: 1080px) { .work-products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) {
  .work-product-content { padding: 14px; }
  .work-product-card--without-cover .work-product-cover { inset-inline-start: 14px; top: 14px; }
  .work-product-copy h3 { font-size: 17px; }
  .work-product-features { gap: 4px; margin-top: 9px; }
  .work-product-features > li { font-size: 11px; padding: 2px 6px; gap: 4px; }
}
@media (max-width: 600px) { .work-products-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .work-product-card, .work-product-cover > img { transition: none; } }

.products-index-page .products-hero { padding: 40px 0 26px; }
.products-index-page .products-list-section { padding: 10px 0 36px; }
.products-index-page .product-filter-bar { margin-bottom: 20px; }
@media (max-width: 820px) {
  .products-index-page .products-hero { padding: 18px 0 12px; text-align: right; }
  .products-index-page .breadcrumbs { justify-content: flex-start; font-size: 10px; margin-bottom: 7px; }
  .products-index-page .products-hero .eyebrow, .products-index-page .products-hero p { display: none; }
  .products-index-page .products-hero h1 { margin-bottom: 0; font-size: 26px; line-height: 1.45; }
  .products-index-page .products-list-section > .container { width: calc(100% - 12px); }
  .products-index-page .product-filter-bar { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; gap: 6px; padding: 2px 6px 6px; margin-bottom: 10px; scrollbar-width: none; }
  .products-index-page .product-filter-bar button { flex: none; min-height: 36px; padding: 5px 11px; font-size: 11px; white-space: nowrap; }
}
