.hardware-page {
  --hardware-border: var(--stp-line, #d5dde6);
  --hardware-surface: var(--stp-surface, #fff);
  --hardware-surface-soft: var(--stp-surface-soft, #f3f6f8);
  --hardware-muted: var(--stp-text-muted, #52606e);
}

.hardware-hero { padding: 8px 0 28px; }
.hardware-hero-grid { display: grid; grid-template-areas: "media summary" "media commerce"; grid-template-columns: minmax(0, 1.02fr) minmax(460px, .98fr); grid-template-rows: auto 1fr; gap: 18px 28px; align-items: stretch; }
.hardware-summary { grid-area: summary; min-width: 0; padding-top: 10px; text-align: left; }
.hardware-summary h1 { max-width: 790px; margin: 18px 0 14px; color: var(--stp-text, #15191d); font-size: 50px; font-weight: 900; line-height: 1.02; letter-spacing: 0; }
.hardware-summary > p { max-width: 760px; margin: 0; color: var(--hardware-muted); font-size: 19px; line-height: 1.48; }
.hardware-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 20px; }
.hardware-chips span { min-height: 62px; padding: 10px 13px; border: 1px solid var(--hardware-border); border-left: 3px solid var(--stp-accent, #ef2b11); border-radius: 6px; background: var(--hardware-surface); color: var(--stp-text, #15191d); font-weight: 750; }
.hardware-chips b { display: block; margin-bottom: 3px; color: var(--hardware-muted); font-size: 12px; font-weight: 850; text-transform: uppercase; }
.hardware-media { grid-area: media; min-width: 0; min-height: 640px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--hardware-border); border-radius: 8px; background: var(--hardware-surface); }
.hardware-media img { width: 100%; height: 100%; max-height: 680px; padding: 38px; object-fit: contain; }
.hardware-commerce { grid-area: commerce; align-self: stretch; }
.hardware-info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.hardware-compatibility-band { background: color-mix(in srgb, var(--hardware-surface-soft) 92%, var(--stp-accent, #ef2b11) 8%); }
.hardware-check-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.hardware-check-grid article { min-height: 188px; padding: 22px; border: 1px solid var(--hardware-border); border-radius: 7px; background: var(--hardware-surface); }
.hardware-check-grid i { display: block; margin-bottom: 18px; color: var(--stp-accent, #ef2b11); font-size: 31px; }
.hardware-check-grid h3 { margin: 0 0 9px; color: var(--stp-text, #15191d); font-size: 20px; }
.hardware-check-grid p { margin: 0; color: var(--hardware-muted); line-height: 1.5; }
.hardware-related { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.hardware-related a { min-height: 132px; display: flex; flex-direction: column; justify-content: center; padding: 18px; border: 1px solid var(--hardware-border); border-radius: 7px; background: var(--hardware-surface); color: var(--stp-text, #15191d); text-decoration: none; transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.hardware-related a:hover { border-color: var(--stp-accent, #ef2b11); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(14, 22, 30, .1); }
.hardware-related b { font-size: 18px; }
.hardware-related span { margin-top: 7px; color: var(--hardware-muted); font-size: 14px; line-height: 1.4; }

.hardware-category-page .hardware-category-visual.product-category-media { grid-template-rows: minmax(300px, 1fr) auto; align-content: stretch; }
.hardware-category-showcase { position: relative; width: 100%; min-height: 300px; align-self: stretch; justify-self: stretch; display: grid; place-items: center; margin: 0; overflow: hidden; border: 1px solid var(--hardware-border); border-radius: var(--site-radius-card); background: linear-gradient(rgba(119, 135, 151, .1) 1px, transparent 1px), linear-gradient(90deg, rgba(119, 135, 151, .1) 1px, transparent 1px), var(--hardware-surface-soft); background-size: 48px 48px; }
.hardware-category-showcase img { width: 100%; height: 100%; min-height: 300px; max-height: 410px; padding: 0; object-fit: cover; filter: saturate(.88) contrast(1.04); }
.hardware-category-showcase figcaption { position: absolute; right: 18px; bottom: 16px; left: 18px; max-width: 620px; padding: 11px 13px; border: 1px solid var(--hardware-border); border-radius: var(--site-radius-control); background: color-mix(in srgb, var(--hardware-surface) 92%, transparent); color: var(--hardware-muted); font-size: 13px; line-height: 1.4; backdrop-filter: blur(8px); }
.hardware-hero-links { width: 100%; align-self: stretch; justify-self: stretch; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--hardware-border); border-radius: var(--site-radius-card); background: var(--hardware-border); }
.hardware-hero-link { min-width: 0; min-height: 90px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 15px 16px; background: var(--hardware-surface); color: var(--stp-text, #15191d); text-decoration: none; transition: background-color .18s ease, color .18s ease; }
.hardware-hero-link span { min-width: 0; display: grid; gap: 4px; }
.hardware-hero-link b { color: var(--stp-text, #15191d); font-size: 15px; line-height: 1.2; }
.hardware-hero-link em { color: var(--hardware-muted); font-size: 12px; font-style: normal; line-height: 1.35; }
.hardware-hero-link strong { color: var(--stp-accent, #ef2b11); font-size: 18px; transition: transform .18s ease; }
.hardware-hero-link:hover, .hardware-hero-link:focus-visible { background: var(--stp-brick-soft, rgba(239, 44, 3, .08)); color: var(--stp-accent, #ef2b11); }
.hardware-hero-link:hover strong, .hardware-hero-link:focus-visible strong { transform: translateX(3px); }
.hardware-hero-link:focus-visible { position: relative; z-index: 1; outline: 2px solid var(--stp-accent, #ef2b11); outline-offset: -2px; }
.hardware-catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hardware-catalog-grid.is-two-up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hardware-catalog-grid.hardware-direction-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hardware-catalog-card { min-height: 200px; display: grid; grid-template-columns: 42% minmax(0, 1fr); align-items: stretch; overflow: hidden; border: 1px solid var(--hardware-border); border-radius: 7px; background: var(--hardware-surface); color: var(--stp-text, #15191d); text-decoration: none; transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.hardware-catalog-card:hover { border-color: var(--stp-accent, #ef2b11); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(14, 22, 30, .1); }
.hardware-catalog-card img { width: 100%; height: 100%; min-height: 198px; padding: 12px; border-right: 1px solid var(--hardware-border); background: var(--hardware-surface-soft); object-fit: contain; }
.hardware-catalog-card > span { min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: 18px; }
.hardware-catalog-card b { font-size: 20px; line-height: 1.15; }
.hardware-catalog-card em { margin-top: 8px; color: var(--hardware-muted); font-style: normal; line-height: 1.42; }
.hardware-catalog-card small { margin-top: 14px; color: var(--stp-accent, #ef2b11); font-size: 13px; font-weight: 850; text-transform: uppercase; }
.hardware-direction-card { min-height: 520px; }
.hardware-direction-card .category-card-figure { position: relative; height: 188px; overflow: hidden; }
.hardware-card-media img { width: 82%; max-height: 150px; transition: transform 260ms ease, filter 260ms ease; }
.hardware-card-media > span { position: absolute; inset: auto 12px 12px; display: flex; gap: 8px; align-items: center; justify-content: space-between; padding: 9px 11px; border: 1px solid color-mix(in srgb, var(--stp-accent, #ef2b11) 42%, var(--hardware-border)); border-radius: var(--site-radius-control); background: color-mix(in srgb, var(--hardware-surface) 92%, transparent); color: var(--stp-accent, #ef2b11); font-size: 12px; font-weight: 850; opacity: 0; transform: translateY(7px); transition: opacity 220ms ease, transform 220ms ease; backdrop-filter: blur(8px); }
.hardware-card-media:hover img, .hardware-card-media:focus-visible img { transform: scale(1.07); filter: drop-shadow(0 16px 22px rgba(14, 22, 30, .2)); }
.hardware-card-media:hover > span, .hardware-card-media:focus-visible > span { opacity: 1; transform: translateY(0); }
.hardware-card-media:focus-visible { outline: 3px solid color-mix(in srgb, var(--stp-accent, #ef2b11) 32%, transparent); outline-offset: -3px; }
.hardware-card-facts { display: grid; gap: 7px; margin: 16px 0 0; padding: 0; list-style: none; }
.hardware-card-facts li { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 8px; color: var(--stp-text, #15191d); font-size: 12px; font-weight: 750; line-height: 1.35; }
.hardware-card-facts li::before { content: ""; width: 5px; height: 5px; margin-top: 6px; border-radius: 50%; background: var(--stp-accent, #ef2b11); }
.hardware-direction-card .category-card-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }

.stp-theme-dark.hardware-page {
  --stp-text: #f1f4f6;
  --stp-text-muted: #b8c5d2;
  --hardware-border: #30404f;
  --hardware-surface: #151d26;
  --hardware-surface-soft: #111922;
  --hardware-muted: #b8c5d2;
}

@media (max-width: 1180px) {
  .hardware-hero-grid { grid-template-columns: minmax(0, .96fr) minmax(420px, 1.04fr); gap: 18px; }
  .hardware-summary h1 { font-size: 45px; }
  .hardware-media { min-height: 600px; }
  .hardware-catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hardware-catalog-grid.hardware-direction-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hardware-check-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .hardware-hero-grid { grid-template-areas: "summary" "media" "commerce"; grid-template-columns: minmax(0, 1fr); }
  .hardware-summary { padding-top: 0; }
  .hardware-summary h1 { font-size: 42px; }
  .hardware-media { min-height: 460px; }
  .hardware-info-grid { grid-template-columns: minmax(0, 1fr); }
  .hardware-related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .hardware-hero { padding-bottom: 18px; }
  .hardware-summary h1 { margin-top: 14px; font-size: 30px; line-height: 1.05; }
  .hardware-summary > p { font-size: 17px; }
  .hardware-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hardware-chips span { min-height: 72px; overflow-wrap: anywhere; }
  .hardware-media { min-height: 320px; }
  .hardware-media img { max-height: 380px; padding: 20px; }
  .hardware-check-grid, .hardware-related, .hardware-catalog-grid, .hardware-catalog-grid.is-two-up, .hardware-catalog-grid.hardware-direction-grid { grid-template-columns: minmax(0, 1fr); }
  .hardware-check-grid article { min-height: 0; }
  .hardware-category-page .hardware-category-visual.product-category-media { grid-template-rows: minmax(280px, auto) auto; }
  .hardware-category-showcase { min-height: 280px; }
  .hardware-category-showcase img { min-height: 280px; max-height: 330px; }
  .hardware-category-showcase figcaption { right: 12px; bottom: 12px; left: 12px; }
  .hardware-hero-links { grid-template-columns: minmax(0, 1fr); }
  .hardware-hero-link { min-height: 76px; }
  .hardware-catalog-card { min-height: 166px; grid-template-columns: 38% minmax(0, 1fr); }
  .hardware-catalog-card img { min-height: 164px; padding: 8px; }
  .hardware-catalog-card > span { padding: 14px; }
  .hardware-catalog-card b { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .hardware-related a, .hardware-catalog-card, .hardware-hero-link, .hardware-hero-link strong, .hardware-card-media img, .hardware-card-media > span { transition: none; }
}
