:root {
  --ink: #171915;
  --canvas: #f7f5f0;
  --surface: #ffffff;
  --stone: #e4e0d8;
  --stone-dark: #c8c3b9;
  --muted: #62675f;
  --forest: #315746;
  --forest-dark: #254238;
  --error: #9e2f2f;
  --focus: #1267d6;
  --page: min(1440px, calc(100% - 112px));
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --header-height: 74px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 28px);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-modal-open {
  overflow: hidden;
}

button,
input,
select {
  color: inherit;
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button {
  border: 0;
}

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

img,
svg {
  display: block;
}

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

h1,
h2,
h3 {
  text-wrap: balance;
}

[hidden] {
  display: none !important;
}

.page-shell {
  width: var(--page);
  margin-inline: auto;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 12px 16px;
  color: var(--surface);
  background: var(--ink);
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.announcement {
  position: relative;
  z-index: 60;
  min-height: 38px;
  display: grid;
  place-items: center;
  padding: 8px 56px;
  color: #f8f7f3;
  background: var(--ink);
  font-size: 12px;
  letter-spacing: .045em;
  text-align: center;
}

.announcement p {
  margin: 0;
}

.icon-button {
  min-width: 44px;
  min-height: 44px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  color: inherit;
  background: transparent;
}

.announcement__close {
  position: absolute;
  top: 50%;
  right: 12px;
  min-width: 36px;
  min-height: 36px;
  transform: translateY(-50%);
  font-size: 19px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  border-bottom: 1px solid rgba(23, 25, 21, .12);
  background: rgba(247, 245, 240, .94);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  height: 100%;
  display: grid;
  grid-template-columns: 240px 1fr 240px;
  align-items: center;
  gap: 24px;
}

.wordmark {
  width: max-content;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1;
}

.wordmark > span:first-child {
  font-size: 25px;
}

.wordmark__divider {
  color: var(--forest);
  font-weight: 400;
}

.wordmark__sub {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.3vw, 38px);
  font-size: 13px;
  font-weight: 550;
}

.primary-nav a,
.footer-column a,
.footer-column button {
  position: relative;
}

.primary-nav a::after,
.footer-column a::after,
.footer-column button::after {
  position: absolute;
  right: 0;
  bottom: -4px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after,
.footer-column a:hover::after,
.footer-column button:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.header-action {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  background: transparent;
  font-size: 13px;
}

.header-action__count {
  min-width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--stone-dark);
  border-radius: 50%;
  font-size: 11px;
}

.header-action[aria-pressed="true"] .header-action__count,
.header-action:hover .header-action__count {
  color: var(--surface);
  border-color: var(--forest);
  background: var(--forest);
}

.menu-toggle {
  display: none;
}

.menu-toggle__lines {
  width: 19px;
  display: grid;
  gap: 5px;
}

.menu-toggle__lines i {
  width: 100%;
  height: 1px;
  display: block;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: min(820px, calc(100svh - 38px));
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--surface);
  background: #bfb8ab;
}

.hero__media,
.hero__shade {
  position: absolute;
  inset: 0;
}

.hero__media {
  background-image: url("../assets/images/hero.jpg");
  background-position: center 42%;
  background-size: cover;
  transform: scale(1.002);
}

.hero__shade {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(9, 11, 9, .72) 0%, rgba(9, 11, 9, .48) 36%, rgba(9, 11, 9, .06) 70%),
    linear-gradient(0deg, rgba(9, 11, 9, .24), transparent 44%);
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-block: 104px 88px;
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.eyebrow--light {
  color: rgba(255, 255, 255, .72);
}

.hero h1 {
  max-width: 760px;
  margin-bottom: 26px;
  font-family: var(--serif);
  font-size: clamp(60px, 7.4vw, 116px);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .88;
}

.hero__lede {
  max-width: 520px;
  margin-bottom: 36px;
  color: rgba(255, 255, 255, .86);
  font-size: clamp(16px, 1.4vw, 20px);
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 26px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .01em;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button--light {
  color: var(--ink);
  background: var(--surface);
}

.button--light:hover {
  color: var(--surface);
  border-color: var(--surface);
  background: transparent;
}

.button--dark {
  color: var(--surface);
  background: var(--ink);
}

.button--dark:hover:not(:disabled) {
  background: var(--forest);
}

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

.button--outline:hover {
  color: var(--surface);
  background: var(--ink);
}

.button--small {
  min-height: 42px;
  padding: 10px 18px;
}

.button--full {
  width: 100%;
}

.button:disabled {
  cursor: not-allowed;
  color: #8d8e89;
  background: #dfddd7;
}

.text-link,
.text-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 0 3px;
  border-bottom: 1px solid currentColor;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
}

.text-link--light {
  color: var(--surface);
}

.hero__index {
  position: absolute;
  right: 56px;
  bottom: 88px;
  z-index: 2;
  margin: 0;
  color: rgba(255, 255, 255, .72);
  font-size: 11px;
  letter-spacing: .12em;
}

.trust-strip {
  border-bottom: 1px solid var(--stone);
  background: var(--surface);
}

.trust-strip ul {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0;
  margin-bottom: 0;
  list-style: none;
}

.trust-strip li {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 24px;
  border-left: 1px solid var(--stone);
  font-size: 12px;
}

.trust-strip li:last-child {
  border-right: 1px solid var(--stone);
}

.trust-strip li span {
  color: var(--forest);
  font-size: 10px;
  font-weight: 700;
}

.shop-section {
  padding-block: 112px 132px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
  align-items: end;
  gap: 64px;
  margin-bottom: 62px;
}

.section-heading h2,
.editorial h2,
.newsletter h2,
.quick-view h2,
.policy-dialog h2 {
  margin-bottom: 0;
  font-family: var(--serif);
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1;
}

.section-heading > p {
  max-width: 490px;
  margin: 0;
  color: var(--muted);
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 14px;
  border-top: 1px solid var(--stone-dark);
  border-bottom: 1px solid var(--stone);
}

.category-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
}

.category-tab,
.toolbar-button {
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  font-size: 12px;
  white-space: nowrap;
}

.category-tab:hover,
.category-tab.is-active {
  border-color: var(--stone-dark);
  background: var(--surface);
}

.catalog-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.search-control {
  min-width: 190px;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-inline: 12px;
  border-bottom: 1px solid var(--stone-dark);
}

.search-control:focus-within {
  border-color: var(--ink);
}

.search-control svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.search-control input {
  width: 100%;
  padding: 7px 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13px;
}

.toolbar-button {
  border-radius: 2px;
}

.toolbar-button:hover,
.toolbar-button[aria-expanded="true"] {
  background: var(--surface);
}

.filter-count {
  min-width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  margin-left: 4px;
  color: var(--surface);
  border-radius: 50%;
  background: var(--forest);
  font-size: 10px;
}

.sort-control select,
.select-box select {
  min-height: 42px;
  padding: 8px 34px 8px 12px;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  font-size: 12px;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.15fr 1.15fr .75fr;
  gap: 52px;
  padding: 34px;
  border-bottom: 1px solid var(--stone);
  background: var(--surface);
}

.filter-panel fieldset {
  padding: 0;
  border: 0;
}

.filter-panel legend {
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 700;
}

.check-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.check-chip {
  position: relative;
}

.check-chip input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.check-chip span {
  min-width: 44px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 11px;
  border: 1px solid var(--stone);
  font-size: 12px;
}

.check-chip input:checked + span {
  color: var(--surface);
  border-color: var(--ink);
  background: var(--ink);
}

.check-chip input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.check-grid--colour .check-chip span::before {
  width: 12px;
  height: 12px;
  margin-right: 7px;
  border: 1px solid rgba(0, 0, 0, .16);
  border-radius: 50%;
  background: var(--swatch, #888);
  content: "";
}

.check-row {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 9px;
  font-size: 12px;
}

.check-row input {
  width: 17px;
  height: 17px;
  accent-color: var(--forest);
}

.filter-panel__footer {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--stone);
}

.catalog-meta {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 12px;
}

.catalog-meta p {
  margin: 0;
}

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

.product-card {
  position: relative;
  min-width: 0;
}

.product-card__visual {
  position: relative;
  aspect-ratio: 4 / 5;
  width: 100%;
  display: block;
  overflow: hidden;
  padding: 0;
  background: #eee9e0;
  text-align: left;
}

.product-card__image,
.quick-view__image,
.cart-item__image {
  position: absolute;
  inset: 0;
  background-image: url("../assets/images/catalog-sprite.jpg");
  background-repeat: no-repeat;
  background-size: 300% 400%;
  transition: transform 420ms cubic-bezier(.2, .75, .25, 1);
}

[data-sprite="0"] { background-position: 0% 0%; }
[data-sprite="1"] { background-position: 50% 0%; }
[data-sprite="2"] { background-position: 100% 0%; }
[data-sprite="3"] { background-position: 0% 33.333%; }
[data-sprite="4"] { background-position: 50% 33.333%; }
[data-sprite="5"] { background-position: 100% 33.333%; }
[data-sprite="6"] { background-position: 0% 66.667%; }
[data-sprite="7"] { background-position: 50% 66.667%; }
[data-sprite="8"] { background-position: 100% 66.667%; }
[data-sprite="9"] { background-position: 0% 100%; }
[data-sprite="10"] { background-position: 50% 100%; }
[data-sprite="11"] { background-position: 100% 100%; }

.product-card__visual:hover .product-card__image,
.product-card__visual:focus-visible .product-card__image {
  transform: scale(1.035);
}

.product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 6px 8px;
  background: rgba(255, 255, 255, .92);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.wishlist-button {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .88);
}

.wishlist-button svg {
  width: 19px;
  fill: transparent;
  stroke: var(--ink);
  stroke-width: 1.6;
}

.wishlist-button[aria-pressed="true"] svg {
  fill: var(--ink);
}

.product-card__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 16px;
  padding-top: 13px;
}

.product-card__name {
  overflow: hidden;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card__price {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.product-card__meta {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.product-card__view {
  grid-column: 2;
  padding: 0;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
}

.empty-state,
.noscript-note {
  padding: 70px 24px;
  border: 1px solid var(--stone);
  background: var(--surface);
  text-align: center;
}

.empty-state h3 {
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 400;
}

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

.editorial {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
  background: #d9d3c8;
}

.editorial__image {
  min-height: 680px;
  background:
    linear-gradient(rgba(30, 35, 30, .06), rgba(30, 35, 30, .06)),
    url("../assets/images/catalog-sprite.jpg") 0% 66.667% / 300% 400% no-repeat;
}

.editorial__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(54px, 8vw, 126px);
  background: #e9e5dc;
}

.editorial__copy h2 {
  margin-bottom: 32px;
}

.editorial__copy > p:not(.eyebrow) {
  max-width: 520px;
  color: #4e534c;
}

.editorial__copy .text-link {
  width: max-content;
  margin-top: 26px;
}

.newsletter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 70px;
  padding-block: 110px;
}

.newsletter h2 {
  max-width: 560px;
}

.newsletter__form > label {
  display: block;
  margin-bottom: 11px;
  font-size: 12px;
  font-weight: 700;
}

.newsletter__field {
  display: flex;
  border-bottom: 1px solid var(--ink);
}

.newsletter__field input {
  min-width: 0;
  flex: 1;
  padding: 14px 2px;
  border: 0;
  outline: 0;
  background: transparent;
}

.newsletter__field button {
  min-width: 88px;
  background: transparent;
  font-weight: 650;
}

.form-note,
.form-status {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.form-status:not(:empty) {
  color: var(--forest);
}

.site-footer {
  color: #f3f2ed;
  background: var(--ink);
}

.site-footer__main {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 54px;
  padding-block: 78px 90px;
}

.wordmark--footer {
  color: var(--surface);
}

.footer-brand p {
  max-width: 250px;
  margin-top: 24px;
  color: rgba(255, 255, 255, .58);
  font-size: 13px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
}

.footer-column h2 {
  margin-bottom: 9px;
  color: rgba(255, 255, 255, .48);
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.footer-column a,
.footer-column button {
  padding: 0;
  color: rgba(255, 255, 255, .82);
  background: transparent;
  font-size: 12px;
}

.site-footer__bottom {
  min-height: 72px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, .15);
  color: rgba(255, 255, 255, .54);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.site-footer__bottom p {
  margin: 0;
}

.site-footer__bottom p:nth-child(2) {
  text-align: center;
}

.site-footer__status {
  text-align: right;
}

.site-footer__status span {
  width: 6px;
  height: 6px;
  display: inline-block;
  margin-right: 7px;
  border-radius: 50%;
  background: #8cb29d;
}

dialog {
  color: var(--ink);
}

dialog::backdrop {
  background: rgba(12, 14, 12, .58);
  backdrop-filter: blur(3px);
}

.quick-view,
.policy-dialog,
.cart-drawer {
  padding: 0;
  border: 0;
  background: var(--canvas);
  box-shadow: 0 24px 90px rgba(0, 0, 0, .22);
}

.quick-view {
  width: min(1040px, calc(100% - 40px));
  max-height: min(860px, calc(100dvh - 40px));
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(247, 245, 240, .92);
  font-size: 25px;
  font-weight: 300;
}

.quick-view__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 650px;
}

.quick-view__media {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  background: #eee9e0;
}

.quick-view__details {
  overflow-y: auto;
  padding: 68px 60px 52px;
}

.quick-view__details h2 {
  margin-bottom: 13px;
  font-size: clamp(38px, 4vw, 58px);
}

.quick-view__price {
  margin-bottom: 28px;
  font-size: 15px;
  font-weight: 650;
}

.quick-view__description {
  color: var(--muted);
}

.product-option {
  padding: 20px 0;
  margin: 0;
  border: 0;
  border-top: 1px solid var(--stone);
}

.product-option legend {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin-bottom: 13px;
  font-size: 12px;
  font-weight: 700;
}

.option-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.option-choice {
  position: relative;
}

.option-choice input {
  position: absolute;
  opacity: 0;
}

.option-choice span {
  min-width: 46px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid var(--stone-dark);
  background: var(--surface);
  font-size: 12px;
}

.option-choice input:checked + span {
  color: var(--surface);
  border-color: var(--ink);
  background: var(--ink);
}

.option-choice input:disabled + span {
  color: #aaa9a4;
  text-decoration: line-through;
  background: #ebe9e4;
}

.option-choice input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.option-dot {
  width: 14px;
  height: 14px;
  border: 1px solid rgba(0, 0, 0, .18);
  border-radius: 50%;
  background: var(--option-colour);
}

.quick-view__add {
  margin-top: 7px;
}

.quick-view__note {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.detail-accordion {
  margin-top: 25px;
  border-top: 1px solid var(--stone);
}

.detail-accordion details {
  padding-block: 14px;
  border-bottom: 1px solid var(--stone);
}

.detail-accordion summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.detail-accordion p {
  margin: 10px 0 2px;
  color: var(--muted);
  font-size: 12px;
}

.cart-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(470px, 100%);
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
}

.drawer__header {
  min-height: 105px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 30px 19px;
  border-bottom: 1px solid var(--stone);
}

.drawer__header .eyebrow {
  margin-bottom: 5px;
}

.drawer__header h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 400;
}

.dialog-close--inline {
  position: static;
  flex: 0 0 auto;
}

.delivery-progress {
  padding: 18px 30px;
  border-bottom: 1px solid var(--stone);
}

.delivery-progress p {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 11px;
}

.progress-track {
  height: 3px;
  overflow: hidden;
  background: var(--stone);
}

.progress-track span {
  width: 0;
  height: 100%;
  display: block;
  background: var(--forest);
  transition: width 240ms ease;
}

.cart-items {
  max-height: calc(100dvh - 370px);
  overflow-y: auto;
  padding-inline: 30px;
}

.cart-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  padding-block: 20px;
  border-bottom: 1px solid var(--stone);
}

.cart-item__visual {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #eee9e0;
}

.cart-item__name {
  margin-bottom: 3px;
  font-size: 13px;
  font-weight: 650;
}

.cart-item__meta,
.cart-item__price {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
}

.cart-item__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 11px;
}

.quantity-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--stone-dark);
}

.quantity-control button {
  width: 36px;
  height: 34px;
  background: transparent;
}

.quantity-control span {
  min-width: 24px;
  text-align: center;
  font-size: 11px;
}

.remove-item {
  padding: 8px 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
}

.cart-empty {
  padding: 80px 30px;
  text-align: center;
}

.cart-empty h3 {
  margin-bottom: 8px;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
}

.cart-empty p {
  margin-bottom: 25px;
  color: var(--muted);
  font-size: 13px;
}

.drawer__footer {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 22px 30px 26px;
  border-top: 1px solid var(--stone);
  background: var(--canvas);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  font-size: 14px;
}

.drawer__footer > p {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 10px;
}

.drawer__footer .checkout-note {
  margin: 10px 0 0;
  color: var(--error);
}

.policy-dialog {
  width: min(620px, calc(100% - 36px));
  max-height: calc(100dvh - 36px);
  padding: 64px 62px 55px;
}

.policy-dialog h2 {
  margin-bottom: 26px;
  font-size: clamp(40px, 5vw, 60px);
}

.policy-dialog [data-policy-content] {
  color: var(--muted);
}

.policy-dialog [data-policy-content] h3 {
  margin: 25px 0 7px;
  color: var(--ink);
  font-size: 13px;
}

.policy-dialog [data-policy-content] p,
.policy-dialog [data-policy-content] li {
  font-size: 13px;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 200;
  max-width: min(380px, calc(100% - 40px));
  padding: 14px 18px;
  color: var(--surface);
  background: var(--ink);
  box-shadow: 0 12px 38px rgba(0, 0, 0, .22);
  font-size: 12px;
}

@media (max-width: 1100px) {
  :root {
    --page: min(100% - 64px, 1440px);
  }

  .site-header__inner {
    grid-template-columns: 210px 1fr 180px;
  }

  .primary-nav {
    gap: 17px;
  }

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

  .filter-panel {
    gap: 30px;
  }

  .editorial__copy {
    padding-inline: 64px;
  }
}

@media (max-width: 840px) {
  :root {
    --page: calc(100% - 40px);
    --header-height: 66px;
  }

  .site-header__inner {
    grid-template-columns: 52px 1fr auto;
    gap: 8px;
  }

  .menu-toggle {
    display: grid;
    justify-self: start;
  }

  .wordmark {
    justify-self: center;
  }

  .wordmark > span:first-child {
    font-size: 22px;
  }

  .wordmark__sub,
  .wordmark__divider {
    display: none;
  }

  .primary-nav {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    z-index: -1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 24px 20px 34px;
    border-bottom: 1px solid var(--stone);
    background: var(--canvas);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .primary-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .primary-nav a {
    min-height: 52px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--stone);
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 400;
  }

  .header-action {
    gap: 4px;
    padding: 0 3px;
  }

  .header-action > span:first-child {
    display: none;
  }

  .header-action:first-child::before {
    content: "♡";
    font-size: 18px;
    line-height: 1;
  }

  .header-action:last-child::before {
    content: "Bag";
    font-size: 10px;
    font-weight: 650;
  }

  .hero {
    min-height: calc(100svh - 38px);
  }

  .hero__media {
    background-position: 58% center;
  }

  .hero__shade {
    background: linear-gradient(0deg, rgba(9, 11, 9, .78) 0%, rgba(9, 11, 9, .25) 64%, rgba(9, 11, 9, .05));
  }

  .hero__content {
    padding-bottom: 54px;
  }

  .hero h1 {
    font-size: clamp(54px, 15vw, 84px);
  }

  .hero__index {
    right: 20px;
    bottom: 54px;
  }

  .trust-strip ul {
    grid-template-columns: 1fr 1fr;
  }

  .trust-strip li,
  .trust-strip li:last-child {
    border-right: 1px solid var(--stone);
    border-bottom: 1px solid var(--stone);
  }

  .shop-section {
    padding-block: 80px 92px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 42px;
  }

  .catalog-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .category-tabs {
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .catalog-actions {
    display: grid;
    grid-template-columns: 1fr auto auto;
  }

  .search-control {
    min-width: 0;
  }

  .filter-panel {
    grid-template-columns: 1fr 1fr;
  }

  .filter-panel fieldset:last-of-type {
    grid-column: 1 / -1;
  }

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

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

  .editorial__image {
    min-height: 65vw;
  }

  .editorial__copy {
    padding: 72px 32px;
  }

  .newsletter {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-block: 82px;
  }

  .site-footer__main {
    grid-template-columns: 1.5fr 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .quick-view__layout {
    grid-template-columns: 1fr;
  }

  .quick-view__media {
    min-height: 55vh;
  }

  .quick-view__details {
    padding: 44px 28px;
  }
}

@media (max-width: 560px) {
  :root {
    --page: calc(100% - 32px);
  }

  .announcement {
    justify-items: start;
    padding: 8px 52px 8px 16px;
    text-align: left;
  }

  .hero__actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .hero__index {
    display: none;
  }

  .trust-strip ul {
    width: 100%;
  }

  .trust-strip li {
    min-height: 68px;
    padding: 14px 16px;
    font-size: 11px;
  }

  .section-heading h2,
  .editorial h2,
  .newsletter h2 {
    font-size: 44px;
  }

  .catalog-actions {
    grid-template-columns: 1fr 1fr;
  }

  .search-control {
    grid-column: 1 / -1;
  }

  .sort-control select,
  .toolbar-button {
    width: 100%;
  }

  .filter-panel {
    grid-template-columns: 1fr;
    padding: 28px 18px;
  }

  .filter-panel fieldset:last-of-type {
    grid-column: auto;
  }

  .filter-panel__footer {
    justify-content: space-between;
  }

  .product-card__body {
    display: block;
  }

  .product-card__name,
  .product-card__price,
  .product-card__meta {
    margin-bottom: 3px;
  }

  .product-card__view {
    display: none;
  }

  .editorial__image {
    min-height: 80vw;
  }

  .site-footer__main {
    grid-template-columns: 1fr 1fr;
    gap: 44px 24px;
  }

  .footer-column:last-child {
    grid-column: 1 / -1;
  }

  .site-footer__bottom {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-block: 24px;
  }

  .site-footer__bottom p,
  .site-footer__bottom p:nth-child(2),
  .site-footer__status {
    text-align: left;
  }

  .quick-view {
    width: 100%;
    max-height: 100dvh;
  }

  .quick-view__media {
    min-height: 54vh;
  }

  .policy-dialog {
    padding: 62px 25px 40px;
  }

  .cart-items {
    padding-inline: 20px;
  }

  .drawer__header,
  .delivery-progress,
  .drawer__footer {
    padding-inline: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
