@font-face {
  font-family: Inter;
  src: url("assets/inter-400.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("assets/inter-700.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("assets/inter-900.ttf") format("truetype");
  font-weight: 900;
  font-display: swap;
}

:root {
  --page: #e9e4e0;
  --ink: #493329;
  --accent: #f17e27;
  --surface: #fbf8f4;
  --line: #d7ccc5;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-underline-offset: 0.15em;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.purchase-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 16px 2.5vw;
  background: var(--ink);
  color: #fff;
}

.purchase-brand {
  flex: none;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -0.065em;
  text-decoration: none;
}

.purchase-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 14px 28px;
  font-size: 14px;
  font-weight: 700;
}

.purchase-nav a {
  text-decoration: none;
}

.purchase-nav a:hover,
.purchase-footer a:hover {
  color: var(--accent);
}

.purchase-main {
  max-width: 1640px;
  margin: 0 auto;
  padding: 64px 2.5vw 96px;
}

.eyebrow {
  margin: 0;
  color: #9c6247;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.purchase-heading {
  margin-bottom: 44px;
}

.purchase-heading h1 {
  margin: 14px 0 18px;
  font-size: clamp(54px, 6vw, 96px);
  line-height: 0.96;
  font-weight: 900;
  letter-spacing: -0.08em;
}

.purchase-heading h1 em {
  font-family: Georgia, serif;
  font-weight: 400;
}

.purchase-heading > p:last-child {
  max-width: 730px;
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
}

.purchase-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(340px, 1fr);
  align-items: start;
  gap: 24px;
}

.basket,
.request-panel {
  min-width: 0;
  border-radius: 20px;
}

.basket {
  padding: 28px;
  background: var(--surface);
}

.price-note {
  display: grid;
  grid-template-columns: minmax(180px, 0.55fr) minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  margin-bottom: 36px;
  padding: 22px;
  border-radius: 14px;
  background: #f7e8db;
  border-left: 5px solid var(--accent);
}

.price-note-label {
  font-size: 21px;
  line-height: 1.12;
  font-weight: 900;
  text-transform: uppercase;
}

.price-note p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}

.basket-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.basket-heading h2,
.request-panel h2 {
  margin: 5px 0 0;
  font-size: 36px;
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.055em;
}

.basket-count {
  margin: 0 0 4px;
  color: #806c61;
  font-size: 13px;
  line-height: 1.35;
  text-align: right;
}

.basket-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.basket-table th {
  padding: 0 12px 12px;
  border-bottom: 1px solid var(--line);
  color: #8d7469;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: left;
  text-transform: uppercase;
}

.basket-table th:first-child {
  width: 112px;
  padding-left: 0;
}

.basket-table th:last-child {
  width: 180px;
  text-align: center;
}

.basket-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.basket-table td:first-child {
  padding-left: 0;
}

.basket-table td:last-child {
  padding-right: 0;
}

.basket-table tbody tr:last-child td {
  border-bottom: 0;
}

.basket-table tbody tr.is-selected {
  background: #fff5ed;
}

.basket-photo {
  display: block;
  width: 88px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
}

.basket-product {
  display: block;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 700;
}

.basket-meta {
  display: block;
  margin-top: 5px;
  color: #82746c;
  font-size: 12px;
  line-height: 1.35;
}

.quantity-control {
  display: grid;
  grid-template-columns: 38px 60px 38px;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.quantity-control button,
.quantity-control input {
  height: 38px;
  border: 1px solid #c7b9af;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: center;
}

.quantity-control button {
  font-size: 21px;
  line-height: 1;
}

.quantity-control button:hover:not(:disabled) {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.quantity-control button:disabled {
  color: #b8aca6;
  cursor: default;
}

.quantity-control input {
  min-width: 0;
  font-size: 15px;
  font-weight: 700;
  appearance: textfield;
}

.quantity-control input::-webkit-inner-spin-button,
.quantity-control input::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.basket-help {
  margin: 22px 0 0;
  color: #806f65;
  font-size: 13px;
  line-height: 1.55;
}

.request-panel {
  padding: 28px;
  background: #e1d9d3;
}

.request-panel h2 {
  font-size: 32px;
}

.request-lead {
  margin: 12px 0 24px;
  font-size: 15px;
  line-height: 1.5;
}

.purchase-field {
  display: block;
  margin-bottom: 14px;
}

.purchase-field > span,
.business-types legend {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 700;
}

.purchase-field b {
  color: #d26220;
}

.purchase-field input,
.purchase-field textarea {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.4;
}

.purchase-field input {
  min-height: 48px;
}

.purchase-field textarea {
  resize: vertical;
}

.purchase-field input[aria-invalid="true"] {
  border-color: #c94431;
}

.business-types {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
}

.business-types legend {
  width: 100%;
}

.business-types label {
  cursor: pointer;
}

.business-types input {
  position: absolute;
  opacity: 0;
}

.business-types label span {
  display: block;
  padding: 9px 12px;
  border: 1px solid #b7a69a;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.business-types input:checked + span {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.business-types input:focus-visible + span {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.purchase-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 23px 0;
  font-size: 12px;
  line-height: 1.5;
  cursor: pointer;
}

.purchase-consent input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--accent);
}

.purchase-submit {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 55px;
  border: 0;
  border-radius: 28px;
  background: var(--accent);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.2;
  font-weight: 900;
  text-transform: uppercase;
}

.purchase-submit:hover {
  background: var(--ink);
  color: #fff;
}

.purchase-feedback,
.demo-note {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.5;
}

.purchase-feedback {
  font-weight: 700;
}

.purchase-feedback.is-error {
  color: #a93225;
}

.demo-note {
  color: #76645b;
}

.purchase-result {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #bcaea4;
}

.purchase-result h3 {
  margin: 0 0 9px;
  font-size: 22px;
}

.purchase-result p {
  font-size: 13px;
  line-height: 1.5;
}

.purchase-result textarea {
  width: 100%;
  padding: 13px;
  border: 1px solid #bcaea4;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.5;
  resize: vertical;
}

.purchase-result button {
  margin-top: 9px;
  padding: 11px 15px;
  border: 1px solid var(--ink);
  border-radius: 20px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.purchase-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 26px;
  padding: 25px 2.5vw;
  border-top: 1px solid #c6b9b0;
  font-size: 12px;
}

.purchase-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}

@media (max-width: 959px) {
  .purchase-header {
    flex-wrap: wrap;
    gap: 2vw;
    min-height: 0;
    padding: 4vw 2.5vw;
  }

  .purchase-brand {
    font-size: 5.4vw;
  }

  .purchase-nav {
    justify-content: flex-start;
    gap: 2vw 4vw;
    width: 100%;
    font-size: 3.2vw;
    line-height: 4.4vw;
  }

  .purchase-main {
    padding: 8vw 2.5vw 11vw;
  }

  .eyebrow {
    font-size: 2.9vw;
    line-height: 4vw;
  }

  .purchase-heading {
    margin-bottom: 6vw;
  }

  .purchase-heading h1 {
    margin: 3vw 0 4vw;
    font-size: 10vw;
    line-height: 10vw;
  }

  .purchase-heading > p:last-child {
    font-size: 4vw;
    line-height: 5.8vw;
  }

  .purchase-layout {
    display: block;
  }

  .basket,
  .request-panel {
    border-radius: 4vw;
    padding: 4vw;
  }

  .request-panel {
    margin-top: 5vw;
  }

  .price-note {
    display: block;
    gap: 0;
    margin-bottom: 6vw;
    padding: 4vw;
    border-left-width: 1vw;
    border-radius: 2.5vw;
  }

  .price-note-label {
    font-size: 4.9vw;
    line-height: 5.8vw;
  }

  .price-note p {
    margin-top: 2vw;
    font-size: 3.4vw;
    line-height: 5vw;
  }

  .basket-heading {
    align-items: start;
    gap: 2vw;
    margin-bottom: 4vw;
  }

  .basket-heading h2,
  .request-panel h2 {
    margin-top: 1vw;
    font-size: 7vw;
    line-height: 8vw;
  }

  .basket-count {
    margin-top: 1vw;
    font-size: 3vw;
    line-height: 4vw;
  }

  .basket-table,
  .basket-table tbody,
  .basket-table tr,
  .basket-table td {
    display: block;
  }

  .basket-table thead {
    display: none;
  }

  .basket-table tr {
    display: grid;
    grid-template-columns: 19vw minmax(0, 1fr);
    column-gap: 3vw;
    padding: 3vw 0;
    border-top: 1px solid var(--line);
  }

  .basket-table td,
  .basket-table td:first-child,
  .basket-table td:last-child {
    padding: 0;
    border: 0;
  }

  .basket-table td:first-child {
    grid-row: span 2;
  }

  .basket-table td:last-child {
    grid-column: 2;
    margin-top: 3vw;
  }

  .basket-photo {
    width: 19vw;
    height: 19vw;
    border-radius: 2vw;
  }

  .basket-product {
    font-size: 3.7vw;
    line-height: 4.8vw;
  }

  .basket-meta {
    margin-top: 1vw;
    font-size: 3vw;
    line-height: 4vw;
  }

  .quantity-control {
    grid-template-columns: 9vw 13vw 9vw;
    justify-content: start;
    gap: 1vw;
  }

  .quantity-control button,
  .quantity-control input {
    height: 9vw;
    border-radius: 2vw;
    font-size: 4vw;
  }

  .basket-help {
    margin-top: 4vw;
    font-size: 3.1vw;
    line-height: 4.6vw;
  }

  .request-lead {
    margin: 3vw 0 5vw;
    font-size: 3.7vw;
    line-height: 5.2vw;
  }

  .purchase-field {
    margin-bottom: 3.5vw;
  }

  .purchase-field > span,
  .business-types legend {
    margin-bottom: 1.5vw;
    font-size: 3.2vw;
    line-height: 4.4vw;
  }

  .purchase-field input,
  .purchase-field textarea {
    padding: 3.2vw 3.5vw;
    border-radius: 2vw;
    font-size: 3.7vw;
    line-height: 5vw;
  }

  .purchase-field input {
    min-height: 12vw;
  }

  .business-types {
    gap: 2vw;
    margin-bottom: 3.5vw;
  }

  .business-types label span {
    padding: 2.2vw 3vw;
    border-radius: 6vw;
    font-size: 3.2vw;
    line-height: 4vw;
  }

  .purchase-consent {
    gap: 2.5vw;
    margin: 5vw 0;
    font-size: 3.2vw;
    line-height: 4.7vw;
  }

  .purchase-consent input {
    width: 5vw;
    height: 5vw;
  }

  .purchase-submit {
    gap: 2vw;
    min-height: 13vw;
    border-radius: 7vw;
    font-size: 4vw;
    line-height: 5vw;
  }

  .purchase-feedback,
  .demo-note {
    margin-top: 2.5vw;
    font-size: 3vw;
    line-height: 4.4vw;
  }

  .purchase-result {
    margin-top: 5vw;
    padding-top: 5vw;
  }

  .purchase-result h3 {
    margin-bottom: 2vw;
    font-size: 5vw;
  }

  .purchase-result p,
  .purchase-result textarea,
  .purchase-result button {
    font-size: 3.2vw;
    line-height: 4.7vw;
  }

  .purchase-result textarea {
    padding: 3vw;
    border-radius: 2vw;
  }

  .purchase-result button {
    margin-top: 2vw;
    padding: 2.5vw 3.5vw;
    border-radius: 5vw;
  }

  .purchase-footer {
    gap: 3vw;
    padding: 5vw 2.5vw;
    font-size: 3vw;
    line-height: 4.3vw;
  }

  .purchase-footer nav {
    gap: 2vw 4vw;
    width: 100%;
  }
}
