﻿:root {
  color-scheme: light;
  --ink: #111418;
  --muted: #5d6672;
  --line: #dde3ea;
  --paper: #fbfcfd;
  --white: #ffffff;
  --red: #d71f2f;
  --red-dark: #a91421;
  --green: #0f7a5f;
  --blue: #1f5f9f;
  --gold: #b6791c;
  --shadow: 0 18px 44px rgba(26, 35, 48, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
select,
input {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto auto;
  gap: 22px;
  align-items: center;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--white);
  background: var(--ink);
  border-radius: 8px;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

nav a:hover {
  color: var(--ink);
}

.cart-chip,
.filter,
.primary-action,
.secondary-action {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.cart-chip {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  padding: 0 14px;
  background: #eef5f2;
  color: var(--green);
}

.cart-chip strong {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  color: var(--white);
  background: var(--green);
  border-radius: 50%;
}

main {
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(300px, 0.96fr);
  gap: clamp(28px, 5vw, 74px);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: clamp(42px, 7vw, 88px) clamp(18px, 5vw, 72px) 34px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.72)),
    url("./assets/products/biking-leisure-black-sky-riding-scaled.jpg") center / cover;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4.2vw, 4.1rem);
  line-height: 1;
  letter-spacing: 0;
}

.hero-copy p:not(.eyebrow),
.finder p,
.quote-panel p {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.65;
}

.hero-actions,
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  font-weight: 800;
}

.primary-action {
  color: var(--white);
  background: var(--red);
}

.primary-action:hover {
  background: var(--red-dark);
}

.secondary-action {
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
}

.hero-product {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 520px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-product img {
  width: min(100%, 610px);
  margin: auto;
  object-fit: contain;
  filter: drop-shadow(0 30px 30px rgba(17, 20, 24, 0.2));
}

.hero-product div {
  display: grid;
  gap: 3px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.hero-product span,
.hero-product small {
  color: var(--muted);
}

.hero-product strong {
  font-size: 1.4rem;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-strip div {
  display: grid;
  gap: 5px;
  min-height: 112px;
  align-content: center;
  padding: 18px clamp(18px, 3vw, 34px);
  background: var(--white);
}

.trust-strip span,
.product-card p,
.finder-result,
.experience-grid span,
footer {
  color: var(--muted);
}

.section-head,
.finder,
.experience-band,
.quote-panel,
.compare-panel {
  padding: clamp(52px, 8vw, 96px) clamp(18px, 5vw, 72px) 24px;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 22px;
  align-items: end;
}

.filters {
  justify-content: end;
}

.filter {
  padding: 0 14px;
  color: var(--muted);
  background: var(--white);
  border: 1px solid var(--line);
}

.filter.active,
.filter:hover {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

.catalogue-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 0 clamp(18px, 5vw, 72px) clamp(42px, 7vw, 84px);
}

.product-card {
  display: grid;
  grid-template-rows: 240px auto;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.product-media {
  display: grid;
  place-items: center;
  padding: 18px;
  background: #f1f4f7;
}

.product-media img {
  max-width: 100%;
  max-height: 210px;
  object-fit: contain;
}

.product-body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.product-body h3 {
  min-height: 48px;
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.25;
}

.product-card p {
  min-height: 44px;
  margin: 0;
  line-height: 1.45;
}

.price-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.price {
  font-size: 1.15rem;
  font-weight: 900;
}

.stock {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.add-button {
  min-height: 42px;
  color: var(--white);
  background: var(--blue);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.add-button:hover {
  background: #174775;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.compare-button {
  min-height: 42px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.compare-button.active,
.compare-button:hover {
  color: var(--white);
  background: var(--green);
  border-color: var(--green);
}

.compare-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(300px, 1.3fr);
  gap: 22px;
  align-items: start;
  padding-top: 0;
}

.compare-box {
  overflow-x: auto;
  padding: 18px;
  color: var(--muted);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.compare-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

.compare-table th,
.compare-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.compare-table th {
  color: var(--ink);
  background: #f1f4f7;
}

.finder {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(280px, 1.1fr);
  gap: 28px;
  align-items: start;
  background: var(--ink);
  color: var(--white);
}

.finder p {
  color: #c4ced9;
}

.finder-form,
.quote-box {
  display: grid;
  gap: 14px;
  padding: 20px;
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

select,
input {
  min-height: 48px;
  width: 100%;
  padding: 0 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.finder-result {
  padding: 16px;
  background: #eef5f2;
  border-left: 4px solid var(--green);
  border-radius: 8px;
  line-height: 1.55;
}

.experience-band {
  display: grid;
  gap: 28px;
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.experience-grid article {
  display: grid;
  gap: 8px;
  min-height: 146px;
  align-content: start;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.experience-grid strong {
  color: var(--gold);
  font-size: 1.1rem;
}

.quote-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(280px, 1.15fr);
  gap: 28px;
  align-items: start;
}

.cart-list {
  display: grid;
  gap: 10px;
  color: var(--ink);
}

.cart-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.cart-item button {
  color: var(--red);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-weight: 800;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(18px, 5vw, 72px);
  background: var(--white);
  border-top: 1px solid var(--line);
}

@media (max-width: 1120px) {
  .catalogue-grid,
  .experience-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  nav {
    grid-column: 1 / -1;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero,
  .section-head,
  .finder,
  .quote-panel,
  .compare-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .hero-product {
    min-height: 360px;
  }

  .trust-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .filters {
    justify-content: start;
  }
}

@media (max-width: 560px) {
  .catalogue-grid,
  .experience-grid,
  .trust-strip {
    grid-template-columns: 1fr;
  }

  .topbar {
    gap: 12px;
  }

  .cart-chip span {
    display: none;
  }

  h1 {
    font-size: 3rem;
  }
}

.empty-state {
  grid-column: 1 / -1;
  padding: 24px;
  color: var(--muted);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.catalogue-tools {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) minmax(180px, 0.6fr) minmax(180px, 0.6fr) auto;
  gap: 14px;
  align-items: end;
  padding: 0 clamp(18px, 5vw, 72px) 22px;
}

.result-count {
  align-self: center;
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

.category-label,
.badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 900;
}

.category-label {
  color: var(--blue);
  background: #edf5ff;
}

.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  color: var(--white);
  background: var(--red);
}

.product-media {
  position: relative;
}

.spec-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.spec-list div {
  padding: 8px;
  background: #f7f9fb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.spec-list dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.spec-list dd {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
}

.detail-button {
  grid-column: 1 / -1;
  min-height: 42px;
  color: var(--ink);
  background: #f7f9fb;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.detail-button:hover {
  color: var(--white);
  background: var(--ink);
}

.product-dialog {
  width: min(940px, calc(100vw - 28px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.product-dialog::backdrop {
  background: rgba(17, 20, 24, 0.58);
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  min-height: 36px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(280px, 1.1fr);
  gap: 24px;
  padding: 28px;
}

.detail-image {
  display: grid;
  place-items: center;
  min-height: 360px;
  background: #f1f4f7;
  border-radius: 8px;
}

.detail-image img {
  max-width: 100%;
  max-height: 330px;
  object-fit: contain;
}

.detail-copy {
  display: grid;
  gap: 14px;
  align-content: start;
}

.detail-copy h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.detail-price {
  font-size: 1.4rem;
}

.missing-specs {
  color: var(--red-dark);
  font-weight: 800;
}

@media (max-width: 820px) {
  .catalogue-tools,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .result-count {
    white-space: normal;
  }
}

.order-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  color: var(--ink);
  background: #f7f9fb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.order-summary div {
  display: grid;
  gap: 3px;
  min-height: 58px;
  align-content: center;
  padding: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.order-summary span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.order-summary strong {
  font-size: 0.98rem;
  word-break: break-word;
}

.quote-box .primary-action,
.quote-box .secondary-action {
  width: 100%;
}

@media (max-width: 560px) {
  .order-summary {
    grid-template-columns: 1fr;
  }
}


.service-category-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.service-category-band article {
  display: grid;
  grid-template-rows: 190px auto;
  background: var(--white);
}

.service-category-band img {
  width: 100%;
  height: 190px;
  object-fit: contain;
  padding: 18px;
  background: #f1f4f7;
}

.service-category-band div {
  display: grid;
  gap: 6px;
  min-height: 112px;
  align-content: start;
  padding: 18px;
}

.service-category-band strong {
  font-size: 1.1rem;
}

.service-category-band span {
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width: 1120px) {
  .service-category-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .service-category-band {
    grid-template-columns: 1fr;
  }
}

.category-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.category-band article {
  display: grid;
  grid-template-rows: 190px auto;
  background: var(--white);
}

.category-band img {
  width: 100%;
  height: 190px;
  object-fit: contain;
  padding: 18px;
  background: #f1f4f7;
}

.category-band strong,
.category-band span {
  display: block;
  padding-inline: 18px;
}

.category-band strong {
  padding-top: 18px;
  font-size: 1.1rem;
}

.category-band span {
  padding-top: 6px;
  padding-bottom: 18px;
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width: 1120px) {
  .category-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .category-band { grid-template-columns: 1fr; }
}
