/* Sub-page main content only. Header/footer/global styles come from osp-mockup-shared.css (same as osp-parts-services-mockup.html). */

/* ——— Layout ——— */

.page-main-sub {
  flex: 1 1 auto;
  min-width: 0;
}

.page-shell.breakdance {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* .section-inner — inherited from osp-mockup-shared.css */

/* ——— Breadcrumb ——— */

.breadcrumb {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  padding: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.breadcrumb a {
  color: var(--parent-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.breadcrumb a:hover {
  color: var(--text);
}

/* Part sub pages + csth-team: same generous band as Shop all (viewport + cap); short copy still fills the space */
/* ——— Hero ——— */

.page-hero {
  position: relative;
  min-height: clamp(28rem, 55vh, 48rem);
  display: flex;
  align-items: flex-end;
  margin-top: 0;
  background-color: #1e293b;
  background-size: cover;
  background-position: center;
  box-sizing: border-box;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(15, 23, 42, 0.92) 0%,
    rgba(15, 23, 42, 0.72) 22%,
    rgba(15, 23, 42, 0.38) 42%,
    rgba(15, 23, 42, 0.1) 55%,
    transparent 68%,
    transparent 100%
  );
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
  padding: clamp(1.5rem, 3.5vw, 2.4rem) 0 clamp(1.75rem, 4vw, 2.85rem);
  box-sizing: border-box;
}

.page-hero .eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  font-weight: 700;
  color: rgba(226, 232, 240, 0.92);
  margin-bottom: 0.5rem;
}

body.page-osp-team .team-page .page-hero .eyebrow {
  color: rgba(253, 224, 171, 0.95);
}

.page-hero h1 {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(1.7rem, 3.4vw, 2.9rem);
  line-height: 1.1;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.page-hero-lead {
  margin: 0.85rem 0 0;
  max-width: min(56ch, 100%);
  color: rgba(248, 250, 252, 0.92);
  font-size: clamp(0.92rem, 1.25vw, 1.06rem);
  line-height: 1.55;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.page-main-sub .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.1rem;
}

.page-main-sub .button,
.page-main-sub .button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 200ms ease, background 160ms ease, color 160ms ease, box-shadow 200ms ease;
}

.page-main-sub .button {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #181818;
  box-shadow: 0 10px 26px rgba(241, 165, 0, 0.28);
}

.page-main-sub .button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.page-main-sub .button:hover,
.page-main-sub .button-secondary:hover {
  transform: translateY(-2px);
}

.section {
  padding: clamp(2.75rem, 5vw, 4rem) 0;
}

.section-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--parent-soft);
  margin-bottom: 0.5rem;
}

.section h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  line-height: 1.12;
}

.prose {
  max-width: 70ch;
  color: var(--muted);
}

.prose p {
  margin: 0 0 1rem;
}

.prose strong {
  color: var(--text);
}

.split-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
}

.split-feature figure {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.split-feature figure img,
.page-main-sub figure img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.split-feature figcaption {
  font-size: 0.8rem;
  color: var(--muted);
  padding: 0.5rem 0 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

/* ——— Components ——— */

.link-card {
  display: flex;
  flex-direction: column;
  padding: 1.35rem 1.4rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 100%;
}

.link-card:hover {
  border-color: rgba(253, 184, 25, 0.55);
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.1);
}

.link-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  color: var(--text);
}

.link-card p {
  margin: 0 0 1rem;
  flex: 1;
  color: var(--muted);
  font-size: 0.95rem;
}

.link-card .more {
  font-weight: 700;
  color: #b45309;
  font-size: 0.9rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.team-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

.team-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.team-card .meta {
  padding: 1rem 1.1rem 1.15rem;
}

.team-card .name {
  font-weight: 700;
  font-size: 1.05rem;
  margin: 0 0 0.2rem;
}

.team-card .role {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.cta-band {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--parent) 0%, #1a252c 100%);
  color: var(--ink-invert);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.cta-band h2 {
  margin: 0 0 0.35rem;
  color: #fff;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}

.cta-band p {
  margin: 0;
  color: rgba(248, 250, 252, 0.85);
  max-width: 48ch;
}

.cta-band .hero-actions {
  margin-top: 0;
}

/* ——— One Source Parts “Our team” page: warmer, more welcoming presentation ——— */
.team-page .team-hero {
  align-items: center;
  min-height: clamp(30rem, 58vh, 52rem);
  background-position: center 28%;
}

.team-page .team-hero::after {
  background: linear-gradient(
    120deg,
    rgba(20, 24, 32, 0.9) 0%,
    rgba(15, 23, 42, 0.65) 28%,
    rgba(15, 23, 42, 0.28) 48%,
    transparent 66%,
    transparent 100%
  );
}

.team-page .team-hero .page-hero-inner {
  padding: clamp(2.25rem, 5vw, 3.25rem) 0;
}

.team-page .team-hero h1 {
  max-width: 20ch;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

body.page-osp-team .team-hero-kicker {
  margin: 0.35rem 0 0;
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  font-weight: 500;
  color: rgba(254, 243, 199, 0.98);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

.team-hero-kicker {
  margin: 0.35rem 0 0;
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  font-weight: 500;
  color: rgba(226, 232, 240, 0.96);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

.team-page .team-hero .page-hero-lead {
  max-width: min(52ch, 100%);
  line-height: 1.6;
  margin-top: 1.1rem;
}

body.page-osp-team .team-welcome {
  background: linear-gradient(180deg, #fffef9 0%, #f8fafc 55%, #fff 100%);
}

.team-welcome {
  position: relative;
  padding: clamp(2.25rem, 4vw, 3.25rem) 0;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 55%, #fff 100%);
}

.team-welcome-card {
  position: relative;
  padding: clamp(1.75rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2.25rem);
  border-radius: 1.1rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 4px 40px -8px rgba(15, 23, 42, 0.12);
}

body.page-osp-team .team-welcome-card::before {
  background: linear-gradient(180deg, var(--brand) 0%, #d97706 100%);
}

.team-welcome-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.1rem;
  bottom: 1.1rem;
  width: 4px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-deep) 100%);
  opacity: 0.9;
}

.team-roles h2 {
  max-width: 20ch;
}

.team-roles-lead {
  margin: 0 0 1.75rem;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 52ch;
}

.team-page .team-grid--people {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
}

.team-page .team-card {
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 1rem;
  box-shadow: 0 8px 30px -6px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s ease;
  overflow: hidden;
}

body.page-osp-team .team-page .team-card:hover {
  border-color: rgba(253, 184, 25, 0.4);
}

.team-page .team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 44px -10px rgba(15, 23, 42, 0.14);
  border-color: rgba(15, 23, 42, 0.12);
}

.team-page .team-card img {
  transition: transform 0.45s ease;
}

.team-page .team-card:hover img {
  transform: scale(1.04);
}

.team-page .team-card .meta {
  padding: 1.1rem 1.2rem 1.3rem;
  background: linear-gradient(180deg, #fff 0%, #fafbfc 100%);
}

.team-page .team-card .name {
  color: var(--text);
  line-height: 1.2;
}

.team-cta-wrap {
  padding: clamp(2.5rem, 5vw, 4rem) 0 3.5rem;
}

.cta-band--team {
  margin-top: 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1a2332 0%, #1e2a3d 40%, #24344a 100%);
  box-shadow: 0 20px 50px -20px rgba(15, 23, 42, 0.35);
}

body.page-osp-team .cta-band--team::before {
  background: radial-gradient(ellipse 90% 80% at 100% 0%, rgba(245, 158, 11, 0.09) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(99, 102, 241, 0.08) 0%, transparent 50%);
}

.cta-band--team::before {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
}

.cta-band--team h2,
.cta-band--team p,
.cta-band--team .hero-actions {
  position: relative;
  z-index: 1;
}

body.page-osp-team .cta-band--team .button {
  box-shadow: 0 6px 18px rgba(241, 165, 0, 0.12);
}

body.page-osp-team .team-cta-wrap .cta-band--team .button:hover {
  box-shadow: 0 7px 20px rgba(241, 165, 0, 0.16);
}

.team-page .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.team-locations {
  --team-locations-slate: #0f172a;
  background: var(--surface, #f8fafc);
  border-block: 1px solid var(--line, rgba(15, 23, 42, 0.1));
}

/* Map letterbox + heading band (slate); roster panel is white below */
.team-locations-directory-upper {
  --team-locations-slate: #0f172a;
  background: var(--team-locations-slate);
  color: #e2e8f0;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px -8px rgba(0, 0, 0, 0.35);
  padding: clamp(1.1rem, 2.2vw, 1.5rem) clamp(1.1rem, 2.2vw, 1.35rem) clamp(1.25rem, 2.5vw, 1.65rem);
}

body.page-osp-team .team-locations-directory-upper .section-label {
  color: rgba(253, 224, 171, 0.88);
}

.team-locations-directory-upper .section-label {
  color: rgba(226, 232, 240, 0.88);
}

.team-locations-directory-upper h2 {
  color: #f8fafc;
}

.team-locations-directory-upper .prose,
.team-locations-directory-upper .team-locations-intro {
  color: rgba(241, 245, 249, 0.96);
}

.team-locations-directory-upper .prose a {
  color: #a5d8ff;
  text-decoration-color: rgba(165, 216, 255, 0.5);
}

.team-locations-directory-upper .prose a:hover {
  color: #e0f2fe;
  text-decoration-color: rgba(224, 242, 254, 0.75);
}

.team-locations-directory-upper .prose strong,
.team-locations-directory-upper .team-locations-intro strong {
  color: #a5d8ff;
  font-weight: 700;
}

.team-locations-intro {
  max-width: none;
  width: 100%;
  margin: 0;
}

.team-locations-top-split {
  display: grid;
  /* Text column gets a larger min share; map a bit larger on the right */
  grid-template-columns: minmax(12.5rem, 1.25fr) minmax(0, min(30.5rem, 46%));
  gap: clamp(1.1rem, 2.2vw, 2rem);
  align-items: start;
}

.team-locations-top-split--intro-only {
  grid-template-columns: 1fr;
}

.team-locations-map-col {
  min-width: 0;
  justify-self: end;
  width: 100%;
  max-width: 30.5rem;
}

.team-locations-intro-col {
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.5rem;
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .team-locations-top-split {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .team-locations-map-col {
    justify-self: center;
    max-width: min(30.5rem, 100%);
  }

  .team-locations-map {
    margin-inline: auto;
  }
}

.team-locations-roster {
  margin-top: clamp(1.1rem, 2.2vw, 1.5rem);
  width: 100%;
  min-width: 0;
  background: #fff;
  color: var(--text);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.75rem;
  box-shadow: 0 2px 16px -2px rgba(15, 23, 42, 0.08);
  padding: clamp(1.1rem, 2.2vw, 1.4rem) clamp(1.1rem, 2.2vw, 1.35rem) clamp(1.25rem, 2.5vw, 1.75rem);
}

.team-locations-map-figure {
  margin: 0;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 40px -8px rgba(0, 0, 0, 0.45);
  background: var(--team-locations-slate, #0f172a);
}

.team-locations-map {
  display: block;
  width: 100%;
  max-width: 30.5rem;
  height: auto;
  margin-inline: auto 0;
  vertical-align: middle;
}

.team-locations-roster .team-tabs {
  margin-top: 0;
  min-width: 0;
}

.team-tablist-scroll {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.5rem;
  margin: 0 0 1.5rem;
  padding-bottom: 0.1rem;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}

.team-locations-roster .team-tablist-scroll {
  border-bottom-color: var(--line);
}

.team-tab {
  position: relative;
  flex: 0 0 auto;
  min-height: 2.6rem;
  padding: 0.45rem 1.1rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: 0.5rem 0.5rem 0 0;
  cursor: pointer;
  margin-bottom: -1px;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

body.page-osp-team .team-tab:hover {
  border-color: rgba(253, 184, 25, 0.4);
  background: #fffef7;
}

.team-tab:hover {
  color: var(--text);
  border-color: rgba(15, 23, 42, 0.2);
  background: #f8fafc;
}

.team-tab.is-active,
.team-tab[aria-selected="true"] {
  background: #fff;
  border-color: var(--line);
  border-bottom: 3px solid var(--accent);
  box-shadow: none;
  z-index: 1;
  color: var(--text);
  margin-bottom: -3px;
  padding-bottom: calc(0.45rem - 2px);
}

.team-tab-panels {
  min-height: 12rem;
  padding: 0.5rem 0 0;
}

.team-tabpanel[hidden] {
  display: none;
}

.roster-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: stretch;
}

@media (min-width: 600px) {
  .roster-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .team-page .roster-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.roster-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  height: 100%;
  min-height: 0;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.75rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 16px -2px rgba(15, 23, 42, 0.07);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
  max-width: 100%;
}

body.page-osp-team .roster-card:hover {
  border-color: rgba(253, 184, 25, 0.3);
}

.roster-card:hover {
  box-shadow: 0 14px 40px -8px rgba(15, 23, 42, 0.12);
  border-color: rgba(15, 23, 42, 0.14);
}

.roster-card__img {
  /* Fixed wide photo column; stretches with row so cards in a row match height */
  width: 158px;
  min-width: 158px;
  flex: 0 0 158px;
  align-self: stretch;
  min-height: 0;
  object-fit: cover;
  object-position: center 22%;
  background: #e2e8f0;
}

.roster-card__body {
  padding: 0.7rem 0.85rem 0.8rem;
  min-width: 0;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.roster-card__name {
  margin: 0 0 0.15rem;
  font-size: 1.02rem;
  line-height: 1.2;
  color: var(--text);
}

body.page-osp-team .roster-card__title {
  color: #b45309;
}

.roster-card__title {
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
  color: var(--brand-deep, #31464f);
  font-weight: 600;
  line-height: 1.35;
}

.roster-card__phones {
  margin: 0 0 0.3rem;
  padding: 0;
  list-style: none;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--muted);
}

.roster-card__key {
  display: inline-block;
  width: 1.1rem;
  font-weight: 800;
  font-size: 0.72rem;
  color: var(--text);
  opacity: 0.6;
  vertical-align: 0.05em;
}

.roster-card__phones a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.roster-card__phones a:hover {
  color: var(--brand);
}

.roster-card__email {
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
}

.roster-card__email a {
  color: #38bdf8;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(56, 189, 248, 0.45);
  transition: color 0.2s, border-color 0.2s;
}

.roster-card__email a:hover {
  color: #0ea5e9;
  border-bottom-color: rgba(14, 165, 233, 0.6);
}

.roster-card__bio {
  margin: 0.1rem 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text);
  flex: 1 1 auto;
  min-height: 0;
}

.roster-card__bio p {
  margin: 0 0 0.4rem;
}

body.page-osp-team .roster-card__fun {
  border-left-color: rgba(253, 184, 25, 0.5);
}

.roster-card__fun {
  color: var(--muted);
  font-size: 0.78rem;
  border-left: 2px solid rgba(15, 23, 42, 0.15);
  padding-left: 0.45rem;
  margin-top: 0.3rem;
}

@media (max-width: 420px) {
  .roster-card {
    flex-direction: column;
    height: auto;
  }

  .roster-card__img {
    width: 100%;
    min-width: 0;
    min-height: 0;
    flex: 0 0 auto;
    height: auto;
    aspect-ratio: 4 / 3;
    max-height: 200px;
    object-position: center 22%;
  }
}

.roster-open {
  grid-column: 1 / -1;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px dashed rgba(180, 83, 9, 0.45);
  background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 100%);
  text-align: center;
}

.roster-open__title {
  margin: 0 0 0.2rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #b45309;
  font-weight: 800;
}

.roster-open__role {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.roster-source-footer {
  margin: 1.5rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 56ch;
}

@media (max-width: 960px) {
  .split-feature {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .team-page .team-hero h1 {
    max-width: none;
  }

  .section-inner,
  .breadcrumb,
  .page-hero-inner {
    width: min(calc(100% - 1.2rem), var(--max));
  }
}

/* Category listing (mirrors One Source Parts hub layout: title row + product grid) */
.catalog-section {
  background: #fff;
  border-block: 1px solid var(--line);
}

/* ——— Catalog / shop ——— */

.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.catalog-toolbar h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  line-height: 1.15;
}

.catalog-meta {
  margin: 0;
  max-width: 38ch;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
  text-align: right;
}

.catalog-meta a {
  color: #b45309;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.catalog-meta a:hover {
  color: var(--text);
}

.product-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem 1.1rem;
}

.product-tile {
  display: block;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #f8fafc;
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.product-tile:hover {
  border-color: rgba(253, 184, 25, 0.55);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
}

.product-tile__media {
  display: block;
  aspect-ratio: 500 / 659;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.product-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 0.4rem;
  box-sizing: border-box;
}

.product-tile h3 {
  margin: 0;
  padding: 0.7rem 0.65rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text);
}

@media (max-width: 1400px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .catalog-meta {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

/* Dynamic line families: image cards (no live store links) */
.dynamic-hub {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.dynamic-hub-grid {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem 1.25rem;
  align-items: stretch;
}

@media (max-width: 1024px) {
  .dynamic-hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .dynamic-hub-grid {
    grid-template-columns: 1fr;
  }
}

.dynamic-hub-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  text-align: left;
  font: inherit;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  overflow: hidden;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.dynamic-hub-card:hover {
  border-color: rgba(253, 184, 25, 0.6);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.dynamic-hub-card:focus-visible {
  outline: 2px solid rgba(180, 83, 9, 0.5);
  outline-offset: 2px;
}

.dynamic-hub-card__media {
  display: block;
  aspect-ratio: 3 / 2;
  background: #e2e8f0;
  overflow: hidden;
}

.dynamic-hub-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.dynamic-hub-card__label {
  display: block;
  padding: 0.75rem 0.9rem 0.85rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-top: 1px solid var(--line);
  background: #fafafa;
}

.towing-line-details-trigger {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.towing-line-details-trigger:focus-visible {
  outline: 2px solid rgba(180, 83, 9, 0.45);
  outline-offset: 2px;
}

.towing-line-dialog.osp-part-dialog {
  width: min(100% - 2rem, 720px);
  max-height: min(92vh, 820px);
}

.towing-line-dialog .osp-part-dialog__inner {
  max-height: min(92vh, 820px);
}

.towing-line-dialog__head {
  align-items: center;
}

.towing-line-dialog__titles {
  min-width: 0;
}

.towing-line-dialog__subtitle {
  margin: 0.2rem 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.35;
}

.towing-line-dialog__body {
  overflow-y: auto;
  max-height: calc(92vh - 4.5rem);
}

.towing-line-dialog .osp-part-dialog__media img {
  max-height: min(38vh, 240px);
  object-fit: contain;
  padding: 0.35rem;
  background: #f1f5f9;
  box-sizing: border-box;
}

.towing-line-specs {
  margin-top: 0.85rem;
}

.towing-line-specs__intro {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.towing-line-specs__block {
  margin: 0 0 1rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface, #f8fafc);
}

.towing-line-specs__block:last-child {
  margin-bottom: 0;
}

.towing-line-specs__heading {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--parent-soft, #31464f);
}

.towing-line-specs__prose {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.towing-line-specs__list {
  margin: 0;
  padding: 0 0 0 1.1rem;
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.5;
}

.towing-line-specs__list li + li {
  margin-top: 0.3rem;
}

.towing-line-specs__group + .towing-line-specs__group {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

.towing-line-specs__group-title {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}

/* Shop all: filter chips + dialog */
.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
}

.catalog-filters .filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.catalog-filters .filter-chip:hover {
  border-color: rgba(253, 184, 25, 0.45);
}

.catalog-filters .filter-chip.is-active {
  border-color: rgba(180, 83, 9, 0.55);
  background: #fffbeb;
  box-shadow: 0 0 0 1px rgba(180, 83, 9, 0.12);
}

.product-tile--button {
  width: 100%;
  text-align: left;
  font: inherit;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.product-tile__chip {
  display: block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--parent-soft);
  padding: 0 0.65rem 0.75rem;
  margin-top: -0.15rem;
}

.osp-part-dialog {
  width: min(100% - 2rem, 520px);
  max-height: min(90vh, 700px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.2);
}

.osp-part-dialog::backdrop {
  background: rgba(15, 23, 42, 0.5);
}

.osp-part-dialog__inner {
  display: flex;
  flex-direction: column;
  max-height: min(90vh, 700px);
}

.osp-part-dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
}

.osp-part-dialog__head h2 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.3;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding-right: 0.5rem;
}

.osp-part-dialog__close {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.06);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text);
}

.osp-part-dialog__close:hover {
  background: rgba(15, 23, 42, 0.1);
}

.osp-part-dialog__body {
  overflow: auto;
  padding: 1rem 1rem 1.15rem;
  display: grid;
  gap: 0.9rem;
}

.osp-part-dialog__media {
  margin: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #f1f5f9;
  border: 1px solid var(--line);
}

.osp-part-dialog__media img {
  width: 100%;
  max-height: min(42vh, 280px);
  object-fit: contain;
  display: block;
  padding: 0.4rem;
  box-sizing: border-box;
}

.osp-part-dialog__cat {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #b45309;
}

.osp-part-dialog__desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.osp-part-dialog__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.osp-part-dialog__actions--split {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.osp-download-link {
  text-decoration: none;
}

.osp-downloads-panel {
  background: var(--surface, #f8fafc);
  border-block: 1px solid var(--line);
  padding: clamp(2.25rem, 4vw, 3.25rem) 0;
}

.osp-downloads-panel h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
}

.osp-downloads-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
}

.osp-downloads-list__link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.osp-downloads-list__link:hover {
  border-color: rgba(180, 83, 9, 0.45);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.osp-downloads-list__link::before {
  content: "PDF";
  flex-shrink: 0;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.08);
  color: var(--parent-soft, #31464f);
}

.osp-part-dialog__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.osp-btn-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--line);
  background: #f8fafc;
  color: var(--text);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.osp-btn-contact:hover {
  background: #fff7ed;
  border-color: rgba(180, 83, 9, 0.35);
}

.osp-btn-contact--primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #181818;
  border: 0;
  box-shadow: 0 4px 14px rgba(241, 165, 0, 0.2);
}

.osp-btn-contact--primary:hover {
  box-shadow: 0 6px 18px rgba(241, 165, 0, 0.3);
  filter: brightness(1.02);
}

.osp-part-hint {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}
