/* Catalogue archives and product pages — loaded after main.css on WooCommerce views. */

/* Breadcrumb bar */
.bison-crumbs {
  background: #ececec;
  padding: 0.75rem 0;
}
.bison-crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  padding: 0;
  margin: 0;
  font-size: 0.75rem;
  font-weight: 300;
  color: #747474;
}
.bison-crumbs li { display: flex; align-items: center; }
.bison-crumbs li + li::before {
  content: "›";
  color: var(--red);
  font-size: 0.95rem;
  font-weight: 400;
  padding: 0 0.85rem;
  line-height: 1;
}
.bison-crumbs li:not(:last-child)::after { content: none; margin: 0; }
.bison-crumbs a { color: #747474; font-weight: 400; text-decoration: none; }
.bison-crumbs a:hover { color: var(--red); text-decoration: underline; }
.bison-crumbs span { color: var(--black); font-weight: 700; }
[hidden] { display: none !important; }

/* Group / category banner */
.cat-banner {
  background: #1a1a1a url("../images/intro-parallax.jpg") center 35% / cover no-repeat;
  color: var(--white);
  padding: 2.25rem 0;
  position: relative;
}
.cat-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
}
.cat-banner .wrap { position: relative; }
.cat-banner h1 {
  margin: 0;
  color: var(--white);
  font-size: clamp(1.4rem, 2.2vw, 1.7rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.cat-banner__intro { max-width: 58rem; }
.cat-banner__intro p {
  margin: 0.7rem 0 0;
  color: var(--white);
  text-transform: none;
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.55;
}

/* Archive layout */
.cat-archive { padding: 1.5rem 0 3rem; }
.cat-layout {
  display: grid;
  grid-template-columns: minmax(200px, 250px) minmax(0, 1fr);
  gap: 0 2rem;
  align-items: start;
}
.cat-main { border-left: 1px solid #e5e5e5; padding-left: 2rem; min-width: 0; }
.cat-main__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.cat-main__head h2 {
  margin: 0;
  font-size: 1.35rem;
  text-transform: uppercase;
}
.cat-help {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}
.cat-help .btn { min-width: 10rem; text-align: center; margin: 0; }

/* Sidebar */
.cat-nav h2,
.cat-feed h2 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  text-transform: uppercase;
}
.cat-nav ul,
.cat-feed ul { list-style: none; margin: 0; padding: 0; }
.cat-nav li { border-top: 1px solid #e5e5e5; }
.cat-nav li:first-child { border-top: 0; }
.cat-nav a {
  display: block;
  padding: 0.85rem 0.9rem 0.85rem 0.85rem;
  color: var(--ink);
  font-weight: 400;
  font-size: 0.9rem;
  text-decoration: none;
  border-left: 2px solid transparent;
}
.cat-nav a:hover { color: var(--red); }
.cat-nav li.is-active { border-left: 0; }
.cat-nav li.is-active a {
  border-left-color: var(--red);
  color: var(--red);
  font-weight: 700;
}
.cat-feed { margin-top: 2rem; }
.cat-feed li + li { margin-top: 0.9rem; padding-top: 0.9rem; border-top: 1px solid #e5e5e5; }
.cat-feed a {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0.2rem 0.9rem;
  color: inherit;
  text-decoration: none;
  align-items: start;
}
.cat-feed img,
.cat-feed__ph {
  width: 80px;
  height: 60px;
  object-fit: cover;
  background: var(--wash);
  border: 5px solid #e5e5e5;
  grid-row: 1 / span 2;
}
.cat-feed__title { font-size: 0.875rem; font-weight: 500; }
.cat-feed__more { font-size: 0.75rem; font-weight: 700; color: var(--red); }
.cat-feed a:hover .cat-feed__more { color: var(--ink); }

/* Category / series tiles */
.cat-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}
.cat-tile {
  position: relative;
  display: block;
  overflow: hidden;
  background: #111;
  aspect-ratio: 1 / 1;
  text-decoration: none;
  color: var(--white);
}
.cat-tile img,
.cat-tile__img,
.cat-tile__ph {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.cat-tile__ph { background: linear-gradient(145deg, #2a2a2a, #111); }
.cat-tile:hover img,
.cat-tile:hover .cat-tile__img,
.cat-tile:focus-within img { transform: scale(1.04); }
.cat-tile__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.9rem 1rem;
  background: rgba(0, 0, 0, 0.72);
  color: var(--white);
  transform: translateY(1.15rem);
  transition: transform 0.35s ease;
  min-height: 4.6rem;
}
.cat-tile:hover .cat-tile__caption,
.cat-tile:focus-within .cat-tile__caption { transform: translateY(0); }
.cat-tile__name {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.3;
}
.cat-tile__action {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  opacity: 0;
  transform: translateY(0.6rem);
  transition: opacity 0.25s ease 0.05s, transform 0.35s ease;
}
.cat-tile:hover .cat-tile__action,
.cat-tile:focus-within .cat-tile__action {
  opacity: 1;
  transform: translateY(0);
}
.cat-tile:hover,
.cat-tile:focus { text-decoration: none; color: var(--white); }

/* Series landing */
.cat-series { padding-bottom: 3rem; }
.cat-series__intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
  padding: 2.5rem 0 3rem;
}
.cat-series__copy h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  text-transform: uppercase;
}
.cat-series__summary {
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.cat-series__summary.is-collapsed { position: relative; }
.cat-series__summary.is-collapsed::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2.5rem;
  background: linear-gradient(transparent, var(--white));
}
.cat-series__summary p { margin: 0 0 0.8rem; }
.cat-series__copy .btn { margin: 0.8rem 0.6rem 0 0; }
.cat-series__media img { width: 100%; height: auto; display: block; background: var(--wash); }

.cat-video { padding: 3.5rem 0; background: var(--white); }
.cat-video__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.cat-video__frame,
.pdp-video__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #111;
}
.cat-video__frame iframe,
.pdp-video__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.cat-video__text h2 { margin-top: 0; }

.cat-split { background: #e8e8e8; padding: 3rem 0; }
.cat-split__copy { max-width: 46rem; }
.cat-split__copy h2 { margin-top: 0; }
.cat-split__copy ul { list-style: none; margin: 0; padding: 0; }
.cat-split__copy li,
.pdp-section__copy li {
  position: relative;
  padding-left: 1rem;
  margin: 0.45rem 0;
}
.cat-split__copy li::before,
.pdp-section__copy li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--red);
}

.cat-models { padding: 3rem 0 1rem; }
.cat-models h2 { text-align: center; margin: 0 0 0.4rem; font-size: 1.7rem; }
.cat-models__lead { text-align: center; margin: 0 0 1.8rem; color: var(--muted); }
.cat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.25rem;
}
.cat-enquire,
.pdp-enquire { padding: 1rem 0 3rem; }
.cat-enquire h2,
.pdp-enquire h2 { margin-bottom: 1rem; }

/* Product cards */
.cat-card {
  background: var(--white);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.cat-card:hover { border-color: var(--red); }
.cat-card__link { color: inherit; text-decoration: none; display: block; flex: 1; }
.cat-card__link:hover { text-decoration: none; color: inherit; }
.cat-card__img,
.cat-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--wash);
  display: block;
}
.cat-card__title {
  margin: 0;
  padding: 0.85rem 1rem 0.2rem;
  font-size: 0.95rem;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.3;
}
.cat-card__capacity,
.cat-card__sku {
  margin: 0;
  padding: 0 1rem;
  color: var(--grey);
  font-size: 0.8rem;
}
.cat-card__capacity { color: var(--red); font-weight: 600; padding-top: 0.2rem; }
.cat-card__actions { padding: 0.8rem 1rem 1rem; margin: 0; display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* Clearance cards */
.cat-clearance-list { display: flex; flex-direction: column; }
.cat-clearance {
  display: grid;
  grid-template-columns: minmax(200px, 320px) minmax(0, 1fr);
  gap: 1.5rem 2rem;
  padding: 2.2rem 0;
  border-top: 1px solid #efefef;
}
.cat-clearance:first-of-type { border-top: 0; padding-top: 0; }
.cat-clearance__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--wash);
  display: block;
}
.cat-clearance__actions {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin: 0.5rem 0 0;
  padding: 0;
}
.cat-clearance__actions .btn {
  width: 100%;
  text-align: center;
  padding: 0.7rem 0.6rem;
}
.cat-clearance__body h2 {
  margin: 0 0 0.8rem;
  text-transform: none;
  letter-spacing: 0;
  font-size: 1.15rem;
  line-height: 1.3;
}
.cat-clearance__body h2 a { color: inherit; text-decoration: none; }
.cat-clearance__body h2 a:hover { color: var(--red); }
.cat-clearance__body h2 small {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: none;
}
.cat-clearance__points { columns: 2; column-gap: 1.5rem; }
.cat-clearance__points ul { list-style: none; margin: 0; padding: 0; }
.cat-clearance__points li {
  position: relative;
  padding-left: 0.95rem;
  margin: 0.35rem 0;
  break-inside: avoid;
  font-size: 0.9rem;
}
.cat-clearance__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--red);
}
.cat-clearance__pdf { margin-top: 2rem; }

/* Product detail */
.pdp { padding-bottom: 2rem; }
.pdp-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  padding: 2.25rem 0 2rem;
  align-items: start;
}
.pdp-gallery__main {
  width: 100%;
  background: var(--wash);
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}
.pdp-gallery__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0.7rem 0 0;
}
.pdp-gallery__thumbs button {
  border: 2px solid var(--line);
  padding: 0;
  background: var(--white);
  cursor: pointer;
  line-height: 0;
}
.pdp-gallery__thumbs button[aria-pressed="true"],
.pdp-gallery__thumbs button:hover { border-color: var(--red); }
.pdp-gallery__thumbs img { width: 72px; height: 72px; object-fit: cover; display: block; }
.pdp-summary h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  text-transform: uppercase;
}
.pdp-code { margin: 0 0 1rem; color: var(--muted); font-weight: 600; font-size: 0.95rem; }
.pdp-intro p { margin: 0 0 0.8rem; }
.pdp-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1.2rem 0 0; }

.pdp-jump { background: #111; }
.pdp-jump ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding: 0;
}
.pdp-jump a {
  display: block;
  color: var(--white);
  text-decoration: none;
  padding: 0.85rem 1.1rem;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pdp-jump a:hover { color: var(--red); text-decoration: none; }

.pdp-section { background: #e8e8e8; padding: 3rem 0; }
.pdp-section--options { background: #f3f3f3; }
.pdp-section__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}
.pdp-section__grid--flip { direction: rtl; }
.pdp-section__grid--flip > * { direction: ltr; }
.pdp-section__copy h2 { margin-top: 0; font-size: 1.6rem; }
.pdp-section__copy ul { list-style: none; margin: 0; padding: 0; }
.pdp-section__media img {
  width: 100%;
  height: 100%;
  min-height: 16rem;
  object-fit: cover;
  display: block;
  background: #ddd;
}

.pdp-spec { padding: 3.5rem 0; background: var(--white); }
.pdp-spec h2 { text-align: center; margin: 0 0 1.8rem; font-size: 1.7rem; }
.pdp-spec__table { overflow-x: auto; }
.pdp-spec__table table { width: 100%; border-collapse: collapse; }
.pdp-spec__table td,
.pdp-spec__table th {
  padding: 0.7rem 0.8rem;
  border: 0;
  border-top: 1px solid #dadadc;
  text-align: left;
  vertical-align: top;
}
.pdp-spec__table tr:first-child td,
.pdp-spec__table tr:first-child th { font-weight: 700; border-top: 0; }
.pdp-spec__table td:first-child { font-weight: 500; }
.pdp-spec__table strong { color: var(--red); }

.pdp-downloads { padding: 1rem 0 2rem; }
.pdp-downloads ul { margin: 0; padding-left: 1.1rem; }
.pdp-video { padding: 1rem 0 2.5rem; }
.pdp-related { padding: 1rem 0 2.5rem; }
.pdp-related h2,
.pdp-video h2,
.pdp-downloads h2 { margin-bottom: 1.2rem; }

@media (max-width: 1024px) {
  .cat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .cat-layout { grid-template-columns: 1fr; }
  .cat-sidebar { order: 2; margin-top: 2.5rem; }
  .cat-main { order: 1; border-left: 0; padding-left: 0; }
  .cat-series__intro,
  .cat-video__grid,
  .pdp-hero,
  .pdp-section__grid,
  .pdp-section__grid--flip,
  .cat-clearance { grid-template-columns: 1fr; direction: ltr; }
  .cat-clearance__points { columns: 1; }
  .cat-banner { padding: 1.6rem 0; }
}

@media (max-width: 640px) {
  .cat-tiles { grid-template-columns: 1fr; }
  .cat-help { width: 100%; justify-content: space-between; }
  .pdp-actions .btn { flex: 1 1 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .cat-tile img,
  .cat-tile__caption,
  .cat-tile__action,
  .cat-series__summary { transition: none; }
}
