@media (min-width: 941px) {
  .core-category-page .category-hero {
    min-height: 0;
    padding: 112px clamp(28px, 5vw, 72px) 48px;
    align-items: center;
  }

  .core-category-page .category-hero-inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
    gap: clamp(32px, 4vw, 52px);
    align-items: center;
  }

  .core-category-page .category-hero h1 {
    max-width: 760px;
    font-size: clamp(46px, 4.4vw, 62px);
    line-height: 1.01;
  }

  .core-category-page .category-hero p {
    max-width: 720px;
    font-size: 17px;
    line-height: 1.58;
  }

  .core-category-page .category-hero .page-links {
    margin: 20px 0;
  }

  .core-category-page .category-hero .category-visual {
    align-self: center;
  }

  .core-category-page .category-hero .category-visual img {
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: #f4f2ed;
  }
}

@media (max-width: 940px) {
  .core-category-page .category-hero {
    min-height: 0;
    padding: 96px 20px 44px;
    align-items: start;
  }

  .core-category-page .category-hero-inner {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
  }

  .core-category-page .category-hero-inner > div:first-child {
    display: contents;
  }

  .core-category-page .category-hero .section-kicker {
    order: 1;
  }

  .core-category-page .category-hero h1 {
    order: 2;
    font-size: 42px;
    line-height: 1.02;
  }

  .core-category-page .category-hero .category-visual {
    order: 3;
    margin-bottom: 22px;
  }

  .core-category-page .category-hero .category-visual img {
    aspect-ratio: 16 / 10;
    object-fit: contain;
    background: #f4f2ed;
  }

  .core-category-page .category-hero .page-links {
    order: 4;
  }

  .core-category-page .category-hero-inner > div:first-child > p:not(.section-kicker) {
    order: 5;
  }

  .core-category-page .category-hero-inner > div:first-child > .microcopy {
    order: 6;
  }
}

/* Product-first wholesale categories: the HTML places model collections immediately after this compact introduction. */
html body.commerce-category-page { background:#edf0f3; }
html body.commerce-category-page main { max-width:1440px; margin:0 auto; padding:18px 24px 36px; }
html body.commerce-category-page .category-hero {
  display:block; min-height:0; margin:0 0 18px; padding:24px 28px;
  background:#fff; color:#18242e; border:1px solid #d8dfe5; border-radius:6px;
}
html body.commerce-category-page .category-hero-inner {
  display:grid; width:100%; max-width:none; grid-template-columns:minmax(0,1fr) 180px;
  align-items:center; gap:28px;
}
html body.commerce-category-page .category-hero-inner > div:first-child { display:block; min-width:0; }
html body.commerce-category-page .category-hero h1 { max-width:980px; margin:0; font-size:30px; line-height:1.18; color:#18242e; }
html body.commerce-category-page .category-hero :is(.section-kicker,.eyebrow) { margin:0 0 8px; font-size:11px; line-height:1.45; font-weight:700; color:#176b86; }
html body.commerce-category-page .category-hero p { max-width:1000px; margin:12px 0 0; font-size:14px; line-height:1.55; color:#53616d; }
html body.commerce-category-page .category-hero .page-links { margin:16px 0 0; display:flex; flex-wrap:wrap; gap:8px; }
html body.commerce-category-page .category-hero .page-links .button { min-height:44px; padding:10px 14px; font-size:12px; line-height:1.4; border-radius:5px; }
html body.commerce-category-page .category-hero .category-visual { align-self:center; width:180px; margin:0; padding:10px; border:0; border-radius:5px; background:#f6f8fa; box-shadow:none; }
html body.commerce-category-page .category-hero .category-visual img { width:100%; height:170px; aspect-ratio:auto; object-fit:contain; transform:none; background:#f6f8fa; }
html body.commerce-category-page main > .section { margin:16px 0; padding:26px; background:#fff; color:#18242e; border:1px solid #d8dfe5; border-radius:6px; }
html body.commerce-category-page main > .section h2 { font-size:26px; line-height:1.25; margin-top:0; }
html body.commerce-category-page main > .section > p { font-size:14px; line-height:1.6; color:#53616d; }
html body.commerce-category-page .section-head { max-width:none; width:100%; margin:0 0 20px; }
html body.commerce-category-page .section-head h2 { margin-bottom:0; }
html body.commerce-category-page .product-grid,
html body.commerce-category-page .app-range-grid,
html body.commerce-category-page .pc-model-grid { max-width:none; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
html body.commerce-category-page .product-card > img,
html body.commerce-category-page .product-card > a > img,
html body.commerce-category-page .app-range-card img { width:100%; height:220px; aspect-ratio:auto; padding:16px; object-fit:contain; object-position:center; transform:none; background:#fff; }
html body.commerce-category-page .product-body { padding:16px; }
html body.commerce-category-page .product-body h3,
html body.commerce-category-page .app-range-card h3 { font-size:16px; line-height:1.35; }
html body.commerce-category-page .product-body .spec-list { gap:5px; margin-top:12px; }
html body.commerce-category-page .product-body .spec-list li { font-size:12px; line-height:1.5; }
html body.commerce-category-page .product-actions { gap:7px; }
html body.commerce-category-page .product-actions a { font-size:12px; min-height:44px; }
html body.commerce-category-page .app-range-card { padding:16px; }
html body.commerce-category-page .app-range-card img { padding:0 0 12px; }
html body.commerce-category-page .app-range-card p { font-size:13px; line-height:1.55; }
html body.commerce-category-page .app-range-card .page-links { gap:8px; }
html body.commerce-category-page .app-range-card .button { font-size:12px; padding:10px 12px; }
@media(max-width:1180px) {
  html body.commerce-category-page .product-grid,
  html body.commerce-category-page .app-range-grid,
  html body.commerce-category-page .pc-model-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media(max-width:940px) {
  html body.commerce-category-page main { padding:14px 16px 24px; }
  html body.commerce-category-page .category-hero { padding:22px; }
  html body.commerce-category-page .category-hero-inner { grid-template-columns:minmax(0,1fr) 140px; gap:18px; }
  html body.commerce-category-page .category-hero h1 { font-size:27px; }
  html body.commerce-category-page .category-hero .category-visual { width:140px; padding:8px; }
  html body.commerce-category-page .category-hero .category-visual img { height:140px; }
  html body.commerce-category-page .product-grid,
  html body.commerce-category-page .app-range-grid,
  html body.commerce-category-page .pc-model-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
  html body.commerce-category-page main > .section { padding:22px; }
  html body.commerce-category-page .product-body h3 { font-size:17px; }
}
@media(max-width:600px) {
  html body.commerce-category-page main { padding:12px 12px 20px; }
  html body.commerce-category-page .category-hero { position:relative; padding:20px 16px; }
  html body.commerce-category-page .category-hero-inner { display:block; }
  html body.commerce-category-page .category-hero h1 { padding-right:76px; font-size:24px; line-height:1.2; }
  html body.commerce-category-page .category-hero :is(.section-kicker,.eyebrow) { padding-right:76px; font-size:10px; }
  html body.commerce-category-page .category-hero p { font-size:13px; line-height:1.55; }
  html body.commerce-category-page .category-hero .category-visual { position:absolute; top:20px; right:14px; width:70px; padding:4px; }
  html body.commerce-category-page .category-hero .category-visual img { height:74px; }
  html body.commerce-category-page .category-hero .page-links { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  html body.commerce-category-page .category-hero .page-links .button { font-size:11px; min-height:44px; padding:8px; white-space:normal; text-align:center; }
  html body.commerce-category-page main > .section { padding:18px 14px; }
  html body.commerce-category-page main > .section h2 { font-size:22px; }
  html body.commerce-category-page .product-grid,
  html body.commerce-category-page .app-range-grid,
  html body.commerce-category-page .pc-model-grid { grid-template-columns:minmax(0,1fr); }
  html body.commerce-category-page .product-card > img,
  html body.commerce-category-page .product-card > a > img,
  html body.commerce-category-page .app-range-card img { height:240px; }
  html body.commerce-category-page .product-body { padding:18px; }
  html body.commerce-category-page .product-body h3 { font-size:18px; }
  html body.commerce-category-page .product-body .spec-list li { font-size:13px; }
}
