/* Concept 02 "Trade catalogue": fixed sidebar navigation with list-view products. */
:root {
  --ink: #14263c;
  --muted: #5b6a7c;
  --navy: #14549c;
  --navy-dark: #0e1f36;
  --navy-soft: #e8eff8;
  --paper: #f4f6f9;
  --line: #d9e0e8;
  --gold: #ffc72c;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Keep anchor targets clear of the fixed review bar */
[id] {
  scroll-margin-top: 64px;
}

body {
  margin: 0;
  padding-top: 52px;
  color: var(--ink);
  background: var(--paper);
  font-family: "Inter", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

img {
  display: block;
  max-width: 100%;
}

figure {
  margin: 0;
}

h1,
h2 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border: 1px solid var(--navy);
  border-radius: 4px;
  color: #ffffff;
  background: var(--navy);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 160ms ease;
}

.button:hover {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
}

.button--small {
  min-height: 38px;
  padding: 8px 16px;
}

.badge {
  display: inline-block;
  margin-bottom: 7px;
  padding: 4px 8px;
  border-radius: 3px;
  color: #ffffff;
  background: var(--navy);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.badge--gold {
  color: var(--ink);
  background: var(--gold);
}

/* Two-pane layout */
.layout {
  display: grid;
  min-height: calc(100vh - 52px);
  grid-template-columns: 290px 1fr;
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 52px;
  display: flex;
  height: calc(100vh - 52px);
  flex-direction: column;
  gap: 26px;
  padding: 34px 28px;
  border-right: 1px solid var(--line);
  background: #ffffff;
  overflow-y: auto;
}

.sidebar__brand img {
  width: 140px;
}

.sidebar__tag {
  margin: -14px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.sidebar__search input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 4px;
  outline: 0;
  font: inherit;
  font-size: 0.84rem;
}

.sidebar__search input:focus {
  border-color: var(--navy);
}

.sidebar__nav {
  display: flex;
  flex-direction: column;
}

.sidebar__nav strong {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sidebar__nav a {
  display: flex;
  justify-content: space-between;
  padding: 11px 10px;
  border-radius: 4px;
  font-size: 0.86rem;
  font-weight: 600;
}

.sidebar__nav a:hover {
  color: var(--navy);
  background: var(--navy-soft);
}

.sidebar__nav span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 500;
}

.sidebar__contact {
  margin-top: auto;
  padding: 20px;
  border-radius: 6px;
  background: var(--navy-dark);
  color: #c7d2e0;
  font-size: 0.78rem;
  line-height: 1.6;
}

.sidebar__contact strong {
  display: block;
  color: #ffffff;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sidebar__phone {
  display: block;
  margin: 8px 0 4px;
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 800;
}

.sidebar__contact .button {
  width: 100%;
  margin-top: 14px;
  border-color: var(--gold);
  color: var(--navy-dark);
  background: var(--gold);
}

.sidebar__contact .button:hover {
  border-color: #ffffff;
  background: #ffffff;
}

/* Main pane */
.main {
  padding: 0 clamp(24px, 4vw, 56px) 40px;
}

.main__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 calc(clamp(24px, 4vw, 56px) * -1);
  padding: 14px clamp(24px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.main__top p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.intro {
  max-width: 720px;
  padding: 46px 0 30px;
}

.intro h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
}

.intro > p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.intro__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.intro__meta span {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--navy-soft);
  color: var(--navy);
  font-size: 0.74rem;
  font-weight: 700;
}

.filters {
  display: flex;
  gap: 22px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}

.filters a {
  padding: 12px 2px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}

.filters a:hover,
.filters a.is-active {
  border-color: var(--navy);
  color: var(--navy);
}

/* Product list rows */
.list article {
  display: grid;
  grid-template-columns: 96px 1fr 130px 90px auto;
  align-items: center;
  gap: clamp(16px, 2.5vw, 32px);
  margin-bottom: 12px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.list article:hover {
  border-color: var(--navy);
  box-shadow: 0 10px 26px rgb(15 35 60 / 8%);
}

.list figure {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.list figure img {
  max-height: 100%;
  object-fit: contain;
}

.list h2 {
  font-size: 1rem;
  font-weight: 700;
}

.list__info p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

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

.list__price {
  font-size: 1.05rem;
  font-weight: 800;
  text-align: right;
}

/* Banner + footer */
.banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-top: 34px;
  padding: 34px clamp(24px, 4vw, 44px);
  border-radius: 8px;
  color: #ffffff;
  background: var(--navy);
}

.banner h2 {
  font-size: 1.4rem;
}

.banner p {
  margin: 8px 0 0;
  color: #c7d2e0;
  font-size: 0.86rem;
}

.banner .button {
  flex: 0 0 auto;
  border-color: #ffffff;
  color: var(--navy);
  background: #ffffff;
}

.banner .button:hover {
  border-color: var(--gold);
  background: var(--gold);
}

.footer p {
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  text-align: center;
}

@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    gap: 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  /* Collapse the range list into chips so products appear sooner */
  .sidebar__nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .sidebar__nav strong {
    width: 100%;
  }

  .sidebar__nav a {
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.8rem;
  }

  /* Phone and address repeat in the top bar, banner and footer */
  .sidebar__contact {
    display: none;
  }

  .list article {
    grid-template-columns: 72px 1fr auto;
    grid-template-areas:
      "image info info"
      "image unit price"
      "image button button";
    row-gap: 8px;
  }

  .list figure {
    grid-area: image;
    width: 72px;
    height: 72px;
  }

  .list__info {
    grid-area: info;
  }

  .list__unit {
    grid-area: unit;
  }

  .list__price {
    grid-area: price;
  }

  .list article .button {
    grid-area: button;
    justify-self: start;
  }

  .banner {
    flex-direction: column;
    align-items: flex-start;
  }
}
