/* Product collection pages — shared with the current MOTOMA home/about UI. */
.product-collection-page {
  --catalog-red: #bf0008;
  --catalog-red-dark: #8f0006;
  --catalog-ink: #111315;
  --catalog-muted: #687075;
  --catalog-line: rgba(17, 19, 21, .12);
  --catalog-card: #fff;
  --catalog-surface: #f4f6f7;
  --catalog-sidebar-width: 258px;
  background: var(--catalog-surface);
}

.product-page-hero {
  position: relative;
  min-height: clamp(430px, 54vw, 650px);
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: #161b1e;
}
.product-page-hero-media,
.product-page-hero::before,
.product-page-hero::after { position: absolute; inset: 0; }
.product-page-hero-media {
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 54%;
  transform: scale(1.01);
}
.product-page-hero::before {
  content: "";
  z-index: -2;
  background: linear-gradient(180deg, rgba(7, 11, 13, .17), rgba(7, 11, 13, .43));
}
.product-page-hero::after {
  content: "";
  z-index: -1;
  background: radial-gradient(circle at 50% 48%, transparent 0 28%, rgba(4, 8, 10, .12) 72%, rgba(4, 8, 10, .22) 100%);
}
.product-page-hero-inner {
  position: relative;
  z-index: 2;
  min-height: inherit;
  display: grid;
  place-items: center;
  padding: calc(var(--nav-height) + 72px) 20px 116px;
  text-align: center;
}
.product-page-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(3.6rem, 8vw, 8.2rem);
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.07em;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 6px 28px rgba(0, 0, 0, .27);
}
.product-page-hero p {
  max-width: 680px;
  margin: 22px auto 0;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(.82rem, 1.2vw, 1rem);
}

.product-breadcrumb-wrap {
  position: relative;
  z-index: 15;
  padding: 86px 0 8px;
  background: var(--catalog-surface);
}
.product-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  color: #7b8488;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.product-breadcrumb a { transition: color .2s ease; }
.product-breadcrumb a:hover { color: var(--catalog-red); }
.product-breadcrumb [aria-current="page"] { color: var(--catalog-red); }
.product-breadcrumb-separator { color: #a9b0b3; }

.catalog-main { padding: 20px 0 110px; }
.catalog-switcher {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(520px, 100%);
  margin: 0 auto 36px;
  padding: 3px;
  border: 1px solid var(--catalog-red);
  border-radius: 999px;
  background: #fff;
}
.catalog-switcher a {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 8px 17px;
  color: #4e565a;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-align: center;
  text-transform: uppercase;
  transition: color .2s ease, background .2s ease;
}
.catalog-switcher a:hover,
.catalog-switcher a[aria-current="page"] { color: #fff; background: var(--catalog-red); }

.catalog-layout {
  display: grid;
  grid-template-columns: var(--catalog-sidebar-width) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  transition: grid-template-columns .24s ease;
}
.catalog-layout.is-sidebar-collapsed { grid-template-columns: 58px minmax(0, 1fr); }

.catalog-sidebar {
  position: sticky;
  z-index: 30;
  top: calc(var(--nav-height) + 20px);
  min-width: 0;
  max-height: calc(100dvh - var(--nav-height) - 40px);
  align-self: start;
}
.catalog-sidebar-shell {
  overflow: hidden;
  background: rgba(255, 255, 255, .96);
  border: 1px solid var(--catalog-line);
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(12, 19, 22, .09);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.catalog-sidebar-toggle {
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  color: #fff;
  border: 0;
  background: var(--catalog-red);
  cursor: pointer;
}
.catalog-sidebar-toggle span:first-child {
  overflow: hidden;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.catalog-sidebar-toggle-icon {
  position: relative;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
}
.catalog-sidebar-toggle-icon::before,
.catalog-sidebar-toggle-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform .2s ease;
}
.catalog-sidebar-toggle-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.catalog-sidebar.is-open .catalog-sidebar-toggle-icon::after { transform: translate(-50%, -50%) rotate(0); }
.catalog-sidebar-body {
  max-height: calc(100dvh - var(--nav-height) - 94px);
  overflow: auto;
  scrollbar-width: thin;
}
.catalog-sidebar details { border-bottom: 1px solid var(--catalog-line); }
.catalog-sidebar details:last-child { border-bottom: 0; }
.catalog-sidebar summary {
  position: relative;
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  color: #23292c;
  font-size: .72rem;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
}
.catalog-sidebar summary::-webkit-details-marker { display: none; }
.catalog-sidebar summary::after {
  content: "+";
  color: var(--catalog-red);
  font-size: 1rem;
  font-weight: 500;
}
.catalog-sidebar details[open] > summary { color: var(--catalog-red); background: #fff8f8; }
.catalog-sidebar details[open] > summary::after { content: "−"; }
.catalog-sidebar-list { margin: 0; padding: 0 10px 12px; list-style: none; }
.catalog-sidebar-list a {
  position: relative;
  display: block;
  padding: 8px 10px 8px 18px;
  color: #596166;
  border-radius: 8px;
  font-size: .66rem;
  line-height: 1.35;
  transition: color .18s ease, background .18s ease;
}
.catalog-sidebar-list a::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 6px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #c5cbce;
}
.catalog-sidebar-list a:hover,
.catalog-sidebar-list a.is-active { color: var(--catalog-red); background: #f7e7e8; }
.catalog-sidebar-list a.is-active::before { background: var(--catalog-red); }
.catalog-sidebar-meta {
  margin: 0;
  padding: 13px 16px;
  color: #838b8f;
  border-top: 1px solid var(--catalog-line);
  font-size: .58rem;
  line-height: 1.5;
}
.catalog-layout.is-sidebar-collapsed .catalog-sidebar-shell { border-radius: 14px; }
.catalog-layout.is-sidebar-collapsed .catalog-sidebar-toggle { min-height: 58px; padding: 0; justify-content: center; }
.catalog-layout.is-sidebar-collapsed .catalog-sidebar-toggle span:first-child,
.catalog-layout.is-sidebar-collapsed .catalog-sidebar-body,
.catalog-layout.is-sidebar-collapsed .catalog-sidebar-meta { display: none; }

.catalog-content { min-width: 0; }
.catalog-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .72fr);
  gap: 36px;
  align-items: end;
  margin-bottom: 38px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--catalog-line);
}
.catalog-kicker {
  margin: 0 0 8px;
  color: var(--catalog-red);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.catalog-intro h2,
.product-family-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.1rem);
  line-height: .95;
  letter-spacing: -.055em;
  text-transform: uppercase;
}
.catalog-intro > p:last-child {
  margin: 0;
  color: var(--catalog-muted);
  font-size: .88rem;
  line-height: 1.75;
}
.product-family-section {
  scroll-margin-top: calc(var(--nav-height) + 28px);
  margin-bottom: 76px;
}
.product-family-section:last-child { margin-bottom: 0; }
.product-family-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}
.product-family-heading h2 { font-size: clamp(1.7rem, 3vw, 3rem); }
.product-family-heading p { max-width: 530px; margin: 0; color: #bf0008; font-size: .78rem; }
.product-family-count { color: var(--catalog-red); font-size: .68rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }

.series-banner {
  position: relative;
  min-height: 190px;
  margin-bottom: 3px;
  overflow: hidden;
  color: #fff;
  background: #1d292e;
  border-radius: 18px 18px 0 0;
}
.series-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .72; }
.series-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 10, 12, .86), rgba(5, 10, 12, .24)); }
.series-banner-copy { position: relative; z-index: 2; max-width: 470px; padding: 40px; }
.series-banner-copy p { margin: 0 0 8px; color: rgba(255,255,255,.68); font-size: .64rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.series-banner-copy h3 { margin: 0 0 9px; color: #fff; font-size: clamp(1.8rem, 3vw, 3.2rem); line-height: 1; letter-spacing: -.05em; }
.series-banner-copy span { color: rgba(255,255,255,.74); font-size: .78rem; }

.product-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.product-card-grid.is-attached { gap: 1px; overflow: hidden; background: #e1e5e6; border-radius: 0 0 18px 18px; }
.catalog-product-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  background: var(--catalog-card);
  border: 1px solid var(--catalog-line);
  border-radius: 16px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.product-card-grid.is-attached .catalog-product-card { border: 0; border-radius: 0; }
.catalog-product-card:hover { z-index: 2; transform: translateY(-5px); border-color: rgba(191, 0, 8, .26); box-shadow: 0 18px 40px rgba(13, 21, 24, .13); }
.catalog-product-media {
  position: relative;
  aspect-ratio: 1.18 / 1;
  overflow: hidden;
  background: #fff;
}
.catalog-product-media img { width: 100%; height: 100%; object-fit: contain; padding: 10px; transition: transform .4s ease; }
.catalog-product-card:hover .catalog-product-media img { transform: scale(1.035); }
.catalog-product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 8px;
  color: var(--catalog-red);
  background: rgba(255,255,255,.9);
  border: 1px solid rgba(191,0,8,.16);
  border-radius: 999px;
  font-size: .55rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.catalog-product-copy { display: flex; flex: 1; flex-direction: column; padding: 17px 18px 19px; }
.catalog-product-copy > p:first-child { margin: 0 0 6px; color: var(--catalog-red); font-size: .58rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.catalog-product-copy h3 { margin: 0 0 8px; font-size: 1rem; line-height: 1.3; }
.catalog-product-copy > p:not(:first-child) { margin: 0 0 16px; color: var(--catalog-muted); font-size: .72rem; line-height: 1.55; }
.product-card-meta { display: flex; flex-wrap: wrap; gap: 5px; margin: auto 0 15px; }
.product-card-meta span { padding: 4px 7px; color: #667075; border: 1px solid #dde1e2; border-radius: 4px; font-size: .57rem; }
.catalog-product-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; color: #22282b; border-top: 1px solid var(--catalog-line); font-size: .66rem; font-weight: 900; text-transform: uppercase; }
.catalog-product-link span:last-child { color: var(--catalog-red); font-size: 1rem; }
.catalog-product-link:hover { color: var(--catalog-red); }

.catalog-pagination { display: flex; justify-content: flex-end; gap: 5px; margin-top: 28px; }
.catalog-pagination a,
.catalog-pagination span { display: grid; min-width: 32px; height: 32px; place-items: center; color: #fff; background: #242a2d; font-size: .66rem; font-weight: 800; }
.catalog-pagination [aria-current="page"] { background: var(--catalog-red); }
.catalog-pagination a:hover { background: var(--catalog-red-dark); }

.product-list-contact { margin-top: 84px; padding: 44px; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; color: #fff; background: #111719; border-radius: 24px; }
.product-list-contact h2 { margin: 0 0 7px; color: #fff; font-size: clamp(1.6rem, 3vw, 2.8rem); line-height: 1; }
.product-list-contact p { max-width: 680px; margin: 0; color: rgba(255,255,255,.66); font-size: .78rem; }

@media (max-width: 1040px) {
  .product-page-hero-inner { padding-top: 142px; }
  .catalog-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 28px; }
  .product-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-intro { grid-template-columns: 1fr; gap: 15px; }
}

@media (max-width: 760px) {
  .product-page-hero { min-height: 430px; }
  .product-page-hero h1 { font-size: clamp(3rem, 15vw, 5.7rem); }
  .product-breadcrumb-wrap { padding-top: 66px; }
  .catalog-main { padding-bottom: 78px; }
  .catalog-switcher { margin-bottom: 26px; }
  .catalog-layout,
  .catalog-layout.is-sidebar-collapsed { display: block; }
  .catalog-sidebar { position: sticky; top: calc(var(--nav-height) + 8px); z-index: 80; max-height: none; margin-bottom: 28px; }
  .catalog-sidebar-shell { border-radius: 14px; }
  .catalog-sidebar-body { display: none; max-height: min(58dvh, 480px); }
  .catalog-sidebar.is-open .catalog-sidebar-body { display: block; }
  .catalog-sidebar-meta { display: none; }
  .catalog-sidebar-toggle span:first-child { display: inline; }
  .product-family-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .series-banner-copy { padding: 30px 26px; }
  .product-list-contact { grid-template-columns: 1fr; padding: 32px 26px; }
}

@media (max-width: 520px) {
  .product-page-hero { min-height: 390px; }
  .product-page-hero-inner { padding: 126px 16px 92px; }
  .product-page-hero p { font-size: .78rem; }
  .product-breadcrumb-wrap { padding-top: 54px; }
  .product-breadcrumb { overflow-x: auto; white-space: nowrap; }
  .catalog-switcher a { padding-inline: 9px; font-size: .57rem; }
  .catalog-intro { margin-bottom: 28px; }
  .catalog-intro h2 { font-size: 2.35rem; }
  .product-card-grid { grid-template-columns: 1fr; }
  .catalog-product-card { display: grid; grid-template-columns: 42% minmax(0, 1fr); }
  .catalog-product-media { height: 100%; aspect-ratio: auto; min-height: 210px; }
  .catalog-product-copy { padding: 15px; }
  .product-card-grid.is-attached .catalog-product-card { display: block; }
  .product-card-grid.is-attached .catalog-product-media { min-height: 0; aspect-ratio: 1.18 / 1; }
  .series-banner { min-height: 165px; }
  .series-banner-copy { padding: 25px 22px; }
  .product-list-contact { margin-top: 58px; }
}

@media (prefers-reduced-motion: reduce) {
  .catalog-product-card,
  .catalog-product-media img,
  .catalog-layout { transition: none; }
}
