:root {
  --paper: #faf8f1;
  --surface: #ffffff;
  --surface-muted: #f4f1e6;
  --ink: #191714;
  --muted: #6d6961;
  --line: #dedbd2;
  --accent: #c9a33d;
  --accent-dark: #8f6b1d;
  --green: #1f3f39;
  --gold: #c9a33d;
  --black-gold: #11100d;
  --shadow: 0 18px 50px rgba(25, 23, 20, 0.12);
  --radius: 8px;
}

* {
  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;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 18px;
  align-items: center;
  min-height: 70px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(250, 248, 241, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

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

.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(25, 23, 20, 0.16);
}

.nav-links {
  display: inline-flex;
  gap: 22px;
  color: var(--muted);
  font-weight: 650;
}

.nav-links a:hover {
  color: var(--accent-dark);
}

main {
  overflow: clip;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 42vw);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  min-height: calc(100vh - 70px);
  padding: clamp(34px, 6vw, 84px) clamp(18px, 5vw, 72px) 34px;
  background:
    linear-gradient(90deg, rgba(250, 248, 241, 0.97) 0%, rgba(250, 248, 241, 0.9) 52%, rgba(17, 16, 13, 0.06) 100%),
    radial-gradient(circle at 74% 28%, rgba(201, 163, 61, 0.16), transparent 32%);
  border-bottom: 1px solid var(--line);
}

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

.hero-logo {
  width: clamp(110px, 18vw, 170px);
  height: auto;
  margin-bottom: 22px;
  border-radius: 50%;
  box-shadow: 0 16px 38px rgba(25, 23, 20, 0.16);
}

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

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

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 9vw, 7.25rem);
  font-weight: 500;
  line-height: 0.95;
}

h2 {
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-weight: 500;
}

h3 {
  margin-bottom: 8px;
}

.hero-text {
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.6;
}

.hero-actions,
.card-actions,
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #fff;
  background: var(--black-gold);
  border-color: var(--black-gold);
}

.button-primary:hover {
  background: var(--accent-dark);
}

.button-secondary {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line);
}

.button-secondary:hover,
.button-quiet:hover {
  border-color: var(--accent);
}

.button-quiet {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}

.stats-strip {
  display: grid;
  max-width: 620px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 34px 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.stats-strip div {
  padding: 18px;
  background: var(--surface);
}

.stats-strip dt {
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  font-weight: 850;
}

.stats-strip dd {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 700;
}

.hero-gallery {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(6, minmax(54px, 1fr));
  min-height: min(620px, 72vh);
}

.hero-gallery img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: linear-gradient(180deg, #fff 0%, #f8f5eb 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-gallery img:nth-child(1) {
  grid-column: 1 / 6;
  grid-row: 1 / 5;
  padding: 32px;
}

.hero-gallery img:nth-child(2) {
  grid-column: 4 / 9;
  grid-row: 3 / 7;
  padding: 28px;
}

.hero-gallery img:nth-child(3) {
  grid-column: 6 / 9;
  grid-row: 1 / 4;
  padding: 24px;
}

.catalogue-header {
  display: flex;
  gap: 20px;
  align-items: end;
  justify-content: space-between;
  padding: 44px clamp(18px, 5vw, 72px) 18px;
}

.result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  color: var(--muted);
  font-weight: 750;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(150px, 1fr));
  gap: 12px;
  align-items: end;
  padding: 0 clamp(18px, 5vw, 72px) 16px;
}

.filter-panel label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.filter-panel input[type="search"],
.filter-panel select,
.filter-panel input[type="range"] {
  width: 100%;
}

.filter-panel input[type="search"],
.filter-panel select {
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
}

.filter-panel input[type="search"]:focus,
.filter-panel select:focus {
  border-color: var(--accent);
}

.range-field span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.range-field strong {
  color: var(--ink);
}

.toggle-field {
  min-height: 44px;
  align-self: end;
  display: flex !important;
  grid-template-columns: auto 1fr;
  gap: 9px !important;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  color: var(--ink) !important;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.toggle-field input {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
}

.note-strip {
  display: flex;
  gap: 8px;
  align-items: center;
  overflow-x: auto;
  padding: 0 clamp(18px, 5vw, 72px) 26px;
  scrollbar-width: thin;
}

.note-chip {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 13px;
  color: var(--green);
  background: var(--surface-muted);
  border: 1px solid #d4ddd6;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}

.note-chip.is-active {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
}

.catalogue-shell {
  padding: 0 clamp(18px, 5vw, 72px) 58px;
}

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

.product-card {
  display: grid;
  min-width: 0;
  overflow: clip;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(25, 23, 20, 0.06);
}

.product-media {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 1 / 1.12;
  place-items: center;
  padding: 18px;
  background: #f8f8f5;
  border: 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

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

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 8px;
  color: #fff;
  background: var(--accent-dark);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 850;
}

.product-info {
  display: grid;
  gap: 12px;
  padding: 15px;
}

.brand-name {
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.product-name {
  min-height: 44px;
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.product-type {
  min-height: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.price-row {
  display: flex;
  min-height: 30px;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
}

.price {
  color: var(--accent-dark);
  font-size: 1.25rem;
  font-weight: 900;
}

.rrp {
  color: var(--muted);
  text-decoration: line-through;
}

.variant-line {
  color: var(--muted);
  font-size: 0.86rem;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 2px;
}

.card-actions .button {
  min-width: 0;
  padding: 0 12px;
  border-radius: 7px;
}

.card-actions .button-primary {
  border-color: #2b281f;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.load-more {
  width: min(100%, 320px);
  margin: 28px auto 0;
}

.empty-state {
  padding: 48px 20px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.empty-state p {
  color: var(--muted);
}

.contact-band {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding: clamp(34px, 6vw, 70px) clamp(18px, 5vw, 72px);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(17, 16, 13, 0.98), rgba(31, 63, 57, 0.96)),
    var(--green);
}

.contact-band .eyebrow,
.contact-band p {
  color: rgba(255, 255, 255, 0.78);
}

.contact-band h2 {
  max-width: 700px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 17, 15, 0.58);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  max-height: min(860px, 92vh);
  overflow: auto;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.close-button {
  position: sticky;
  top: 12px;
  right: 12px;
  z-index: 2;
  float: right;
  display: grid;
  width: 42px;
  height: 42px;
  margin: 12px 12px 0 0;
  place-items: center;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.modal-product {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  gap: 28px;
  padding: 34px;
}

.modal-image {
  display: grid;
  min-height: 440px;
  place-items: center;
  padding: 30px;
  background: #f8f8f5;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.modal-image img {
  max-height: 520px;
  object-fit: contain;
}

.modal-detail {
  min-width: 0;
}

.modal-detail h2 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.03;
}

.detail-text {
  color: var(--muted);
  line-height: 1.65;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 18px;
}

.pill {
  padding: 6px 9px;
  color: var(--green);
  background: var(--surface-muted);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.variant-list {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.variant-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.variant-item strong {
  font-size: 1.02rem;
}

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

.stock-text.is-out {
  color: var(--accent-dark);
}

.notes-block {
  display: grid;
  gap: 8px;
  margin: 20px 0;
  color: var(--muted);
}

.notes-block strong {
  color: var(--ink);
}

details {
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
}

summary {
  cursor: pointer;
  font-weight: 850;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  max-width: min(420px, calc(100vw - 36px));
  padding: 14px 16px;
  color: #fff;
  background: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-weight: 750;
}

.toast[hidden] {
  display: none;
}

@media (max-width: 1120px) {
  .filter-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

  .nav-links {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 30px;
  }

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

  .catalogue-header,
  .contact-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .filter-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .modal-product {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .modal-image {
    min-height: 300px;
    padding: 20px;
  }
}

@media (max-width: 560px) {
  .topbar {
    gap: 10px;
    padding: 9px 12px;
  }

  .brand-link span:last-child {
    display: none;
  }

  .brand-logo {
    width: 44px;
    height: 44px;
  }

  .topbar .button {
    min-height: 40px;
    padding-inline: 14px;
  }

  .hero,
  .catalogue-header,
  .filter-panel,
  .note-strip,
  .catalogue-shell,
  .contact-band {
    padding-inline: 14px;
  }

  .hero {
    gap: 22px;
    padding-top: 24px;
    padding-bottom: 24px;
    text-align: center;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-logo {
    width: 108px;
    margin-inline: auto;
    margin-bottom: 16px;
  }

  h1 {
    margin-bottom: 12px;
    font-size: 2.85rem;
    line-height: 0.98;
  }

  h2 {
    font-size: 2.15rem;
    line-height: 1.04;
  }

  .hero-text {
    max-width: 24rem;
    margin-inline: auto;
    font-size: 1rem;
    line-height: 1.5;
  }

  .hero-actions,
  .contact-band .button,
  .card-actions,
  .variant-item {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .button,
  .contact-band .button,
  .card-actions .button {
    width: 100%;
  }

  .stats-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 22px;
  }

  .stats-strip div {
    padding: 11px 8px;
  }

  .stats-strip dt {
    font-size: 1.16rem;
  }

  .stats-strip dd {
    font-size: 0.76rem;
  }

  .hero-gallery {
    min-height: 245px;
    grid-template-rows: repeat(4, minmax(42px, 1fr));
  }

  .hero-gallery img {
    padding: 16px;
  }

  .hero-gallery img:nth-child(1) {
    grid-column: 1 / 5;
    grid-row: 1 / 4;
  }

  .hero-gallery img:nth-child(2) {
    grid-column: 4 / 9;
    grid-row: 2 / 5;
  }

  .hero-gallery img:nth-child(3) {
    grid-column: 6 / 9;
    grid-row: 1 / 3;
  }

  .catalogue-header {
    gap: 12px;
    padding-top: 30px;
  }

  .result-meta {
    width: 100%;
    justify-content: space-between;
  }

  .filter-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding-bottom: 12px;
  }

  .filter-panel .search-field,
  .filter-panel .range-field {
    grid-column: 1 / -1;
  }

  .filter-panel label {
    font-size: 0.7rem;
  }

  .filter-panel input[type="search"],
  .filter-panel select,
  .toggle-field {
    min-height: 42px;
  }

  .note-strip {
    padding-bottom: 18px;
  }

  .note-chip {
    min-height: 34px;
    padding-inline: 12px;
    font-size: 0.82rem;
  }

  .catalogue-shell {
    padding-bottom: 40px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .product-media {
    aspect-ratio: 1 / 1.04;
    padding: 12px;
  }

  .badge {
    top: 7px;
    left: 7px;
    padding: 4px 7px;
    font-size: 0.68rem;
  }

  .product-info {
    gap: 8px;
    padding: 12px 12px 14px;
  }

  .brand-name {
    font-size: 0.68rem;
  }

  .product-name {
    min-height: 48px;
    font-size: 0.86rem;
    line-height: 1.3;
  }

  .product-type,
  .variant-line {
    font-size: 0.76rem;
  }

  .price-row {
    min-height: 24px;
    gap: 5px;
  }

  .price {
    font-size: 1.04rem;
  }

  .rrp {
    font-size: 0.78rem;
  }

  .card-actions {
    gap: 8px;
    margin-top: 2px;
    padding: 0;
    overflow: hidden;
  }

  .card-actions .button {
    min-height: 42px;
    padding-inline: 10px;
    border-radius: 8px;
    font-size: 0.8rem;
  }

  .modal {
    padding: 8px;
  }

  .modal-panel {
    max-height: 94vh;
  }

  .close-button {
    width: 38px;
    height: 38px;
  }

  .modal-product {
    padding: 18px 14px;
  }

  .modal-image {
    min-height: 240px;
    padding: 16px;
  }

  .modal-image img {
    max-height: 290px;
  }

  .modal-detail h2 {
    font-size: 1.72rem;
  }

  .detail-text {
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .variant-item {
    gap: 9px;
    padding: 10px;
  }

  .variant-item .button {
    width: 100%;
  }

  .contact-band {
    padding-top: 34px;
    padding-bottom: 34px;
  }
}

@media (max-width: 430px) {
  h1 {
    font-size: 2.45rem;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    grid-template-columns: minmax(118px, 0.82fr) minmax(0, 1fr);
  }

  .product-media {
    height: 100%;
    min-height: 188px;
    aspect-ratio: auto;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .product-name {
    min-height: auto;
  }

  .product-info {
    padding: 11px 11px 13px;
  }

  .card-actions {
    margin-inline: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .card-actions .button {
    min-height: 38px;
    padding-inline: 6px;
    font-size: clamp(0.68rem, 2.7vw, 0.76rem);
    white-space: nowrap;
  }

  .stats-strip dd {
    font-size: 0.7rem;
  }
}

@media (max-width: 340px) {
  .card-actions {
    grid-template-columns: 1fr;
  }
}
