:root {
  --ink: #17120f;
  --paper: #f4f0e9;
  --cream: #e9e0d4;
  --stone: #b4a99d;
  --wine: #6c1f2d;
  --line: rgba(23, 18, 15, 0.18);
  --white: #fffdf9;
  --serif: "Prata", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --ui: "Manrope", Arial, sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f2ede6;
  --paper: #151210;
  --cream: #211c19;
  --stone: #827970;
  --wine: #a4495b;
  --line: rgba(244, 240, 233, 0.16);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  transition: color 220ms ease, background 220ms ease;
}

body.is-locked {
  overflow: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

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

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

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

.announcement {
  min-height: 36px;
  padding: 8px 4vw;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--paper);
  background: var(--ink);
  font: 500 10px/1.4 var(--ui);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.announcement p {
  margin: 0;
}

.announcement__link {
  color: var(--paper);
  border-bottom-color: rgba(244, 240, 233, 0.55) !important;
}

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  height: 84px;
  padding: 0 3.2vw;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: rgba(244, 240, 233, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  transition: height 240ms ease, background 240ms ease;
}

.site-header.is-condensed {
  height: 68px;
}

.wordmark {
  width: fit-content;
  font: 400 28px/1 var(--serif);
  letter-spacing: 0.15em;
}

.wordmark--header {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.wordmark__symbol {
  width: 44px;
  height: 56px;
  display: block;
  overflow: hidden;
}

.wordmark__symbol img {
  width: 76px;
  max-width: none;
  height: 76px;
  object-fit: contain;
  transform: translate(-2px, -9px);
}

.site-header > .wordmark {
  grid-column: 2;
  grid-row: 1;
}

.desktop-nav {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 38px);
}

.desktop-nav button,
.header-link {
  position: relative;
  font: 500 11px/1 var(--ui);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.desktop-nav button::after,
.header-link::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 220ms ease;
}

.desktop-nav button:hover::after,
.header-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

.icon-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  font-size: 28px;
  line-height: 1;
}

.icon-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.theme-toggle {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.theme-toggle:hover {
  transform: rotate(8deg);
}

.theme-toggle__moon {
  display: none;
}

:root[data-theme="dark"] .theme-toggle__sun {
  display: none;
}

:root[data-theme="dark"] .theme-toggle__moon {
  display: block;
}

.bag-button {
  position: relative;
}

.bag-button span {
  position: absolute;
  right: -3px;
  top: -1px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--wine);
  border-radius: 20px;
  font: 600 9px/1 var(--ui);
}

.mobile-only {
  display: none;
}

.section {
  padding: 120px 4vw;
}

.eyebrow {
  margin: 0 0 22px;
  font: 500 10px/1.4 var(--ui);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.button {
  min-height: 52px;
  padding: 15px 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  font: 600 11px/1.2 var(--ui);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

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

.button--ghost {
  background: transparent;
}

.button--ghost:hover {
  color: var(--paper);
  background: var(--ink);
}

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

.button--light:hover {
  color: var(--white);
  background: var(--wine);
  border-color: var(--wine);
}

.text-button {
  padding-bottom: 3px;
  border-bottom: 1px solid var(--ink);
  font: 500 11px/1.2 var(--ui);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero {
  min-height: calc(100svh - 120px);
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(430px, 1.25fr) minmax(260px, 0.75fr);
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.hero__copy {
  position: relative;
  padding: clamp(70px, 8vw, 135px) 4vw 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero h1 {
  max-width: 650px;
  margin: 0;
  font: 400 clamp(48px, 4.5vw, 78px)/0.99 var(--serif);
  letter-spacing: -0.04em;
}

.hero h1 em,
.fit-story h2 em,
.stores h2 em {
  font-weight: 400;
  color: var(--wine);
}

.hero__intro {
  max-width: 420px;
  margin: 36px 0 0;
  color: rgba(23, 18, 15, 0.7);
  font-size: 15px;
  line-height: 1.7;
}

.hero__actions {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero__counter {
  margin-top: auto;
  padding-top: 50px;
  display: flex;
  align-items: center;
  gap: 12px;
  font: 500 9px/1 var(--ui);
  letter-spacing: 0.08em;
}

.hero__counter i {
  width: 58px;
  height: 1px;
  background: rgba(23, 18, 15, 0.4);
}

.hero__image {
  position: relative;
  min-height: 620px;
  overflow: hidden;
}

.hero__image > img {
  height: 100%;
  object-fit: cover;
  transition: transform 900ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.hero__image:hover > img {
  transform: scale(1.02);
}

.hero__image--main img {
  object-position: 50% 40%;
}

.hero__image--detail img {
  object-position: 50% 24%;
}

.image-credit {
  position: absolute;
  left: 22px;
  bottom: 18px;
  padding: 8px 11px;
  color: var(--paper);
  background: rgba(23, 18, 15, 0.42);
  font: 500 9px/1 var(--ui);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.hero__detail-label {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 26px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--paper);
  background: linear-gradient(transparent, rgba(16, 13, 11, 0.76));
  font: 500 10px/1.2 var(--ui);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero__detail-label button {
  color: inherit;
  font: inherit;
}

.section-heading h2,
.catalog__heading h2 {
  margin: 0;
  font: 400 clamp(48px, 6vw, 92px)/1 var(--serif);
  letter-spacing: -0.04em;
}

.section-heading--row {
  margin-bottom: 54px;
  display: flex;
  align-items: end;
  justify-content: space-between;
}

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

.category-card {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  color: var(--white);
  background: #27211e;
  text-align: left;
}

.category-card--large {
  grid-column: span 2;
}

.category-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(17, 13, 11, 0.04), rgba(17, 13, 11, 0.62));
}

.category-card img {
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.category-card--large img {
  object-position: 50% 38%;
}

.category-card:nth-child(2) img {
  object-position: 42% 35%;
}

.category-card:hover img {
  transform: scale(1.035);
}

.category-card__number,
.category-card__content {
  position: absolute;
  z-index: 1;
}

.category-card__number {
  top: 24px;
  right: 24px;
  font: 500 10px/1 var(--ui);
  letter-spacing: 0.1em;
}

.category-card__label {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: inherit;
  text-align: left;
  font: 400 clamp(24px, 2.4vw, 38px)/1.1 var(--serif);
}

.category-card__label i {
  font: 400 18px/1 var(--sans);
}

.category-card__content {
  right: 26px;
  bottom: 25px;
  left: 26px;
}

.category-card__links {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
}

.category-card__links button {
  padding-bottom: 2px;
  color: inherit;
  border-bottom: 1px solid currentColor;
  font: 500 10px/1.4 var(--ui);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.category-card--plain::after {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.18));
}

.category-card--wine {
  background: var(--wine);
}

.category-card--cream {
  color: var(--ink);
  background: #ded3c4;
}

.category-card--sale {
  background: #875349;
}

.newsletter__intro {
  margin: 18px auto 0;
  color: rgba(23, 18, 15, 0.58);
  font-size: 13px;
}

.fit-story {
  min-height: 780px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  color: var(--paper);
  background: var(--ink);
}

.fit-story__visual {
  position: relative;
  min-height: 720px;
  overflow: hidden;
}

.fit-story__visual img {
  height: 100%;
  object-fit: cover;
  object-position: 50% 34%;
  filter: saturate(0.84);
}

.fit-story__visual::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, transparent 62%, rgba(23, 18, 15, 0.32));
}

.fit-story__tag {
  position: absolute;
  z-index: 1;
  left: 35px;
  bottom: 35px;
  padding: 12px 16px;
  color: var(--ink);
  background: var(--paper);
  font: 500 10px/1 var(--ui);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.fit-story__copy {
  padding: clamp(75px, 8vw, 140px) clamp(45px, 7vw, 120px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.fit-story h2 {
  margin: 0;
  font: 400 clamp(46px, 5vw, 76px)/1.08 var(--serif);
  letter-spacing: -0.04em;
}

.fit-story__copy > p:not(.eyebrow) {
  max-width: 550px;
  margin: 34px 0 0;
  color: rgba(244, 240, 233, 0.68);
  font-size: 15px;
  line-height: 1.75;
}

.fit-story ul {
  margin: 40px 0;
  padding: 0;
  border-top: 1px solid rgba(244, 240, 233, 0.18);
  list-style: none;
}

.fit-story li {
  padding: 17px 0;
  display: flex;
  gap: 24px;
  border-bottom: 1px solid rgba(244, 240, 233, 0.18);
  color: rgba(244, 240, 233, 0.82);
  font-size: 13px;
}

.fit-story li span {
  color: rgba(244, 240, 233, 0.4);
  font: 500 10px/1.5 var(--ui);
}

.fit-story .button {
  align-self: flex-start;
}

.catalog {
  padding-bottom: 160px;
}

.catalog__heading {
  max-width: 930px;
  margin: 0 auto 72px;
  text-align: center;
}

.catalog__note {
  margin: 25px auto 0;
  color: rgba(23, 18, 15, 0.58);
  font-size: 12px;
  line-height: 1.5;
}

.catalog-toolbar {
  min-height: 64px;
  margin-bottom: 26px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 70px;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.toolbar-button,
.sort-control,
.product-count {
  min-height: 64px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  font: 500 11px/1 var(--ui);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.toolbar-button {
  justify-content: flex-start;
  gap: 10px;
  border-right: 1px solid var(--line);
}

.filter-count {
  width: 20px;
  height: 20px;
  display: none;
  place-items: center;
  color: var(--paper);
  background: var(--ink);
  border-radius: 50%;
  font-size: 9px;
}

.filter-count.is-visible {
  display: grid;
}

.product-count {
  margin: 0;
  justify-content: center;
  color: rgba(23, 18, 15, 0.55);
}

.sort-control {
  justify-content: flex-end;
  gap: 7px;
  border-right: 1px solid var(--line);
}

.sort-control span {
  color: rgba(23, 18, 15, 0.5);
}

.sort-control select {
  max-width: 170px;
  padding: 4px 17px 4px 2px;
  appearance: none;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath fill='none' stroke='%2317120f' d='m1 1 4 4 4-4'/%3E%3C/svg%3E") no-repeat right center;
  border: 0;
  outline: 0;
  font: inherit;
}

.view-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.view-toggle button {
  color: rgba(23, 18, 15, 0.3);
  font-size: 20px;
}

.view-toggle button.is-active {
  color: var(--ink);
}

.active-profile {
  margin: 0 0 26px;
  padding: 20px 24px;
  align-items: center;
  justify-content: space-between;
  background: var(--cream);
  border-left: 3px solid var(--wine);
}

.active-profile:not([hidden]) {
  display: flex;
}

.active-profile span {
  font: 600 10px/1 var(--ui);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.active-profile p {
  margin: 7px 0 0;
  color: rgba(23, 18, 15, 0.62);
  font-size: 13px;
}

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

.product-grid[data-columns="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.product-card__media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #ddd4ca;
}

.product-card__media::after {
  position: absolute;
  inset: 0;
  content: "";
  border: 1px solid rgba(23, 18, 15, 0.06);
  pointer-events: none;
}

.product-card__media > button:first-child {
  width: 100%;
  height: 100%;
}

.product-card__media img {
  height: 100%;
  object-fit: cover;
  transition: transform 650ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.product-card__media--certificate img {
  padding: 10%;
  object-fit: contain;
  background: #f5f0ed;
}

.product-card:hover .product-card__media img {
  transform: scale(1.025);
}

.product-card__labels {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  pointer-events: none;
}

.product-card__label,
.fit-badge {
  padding: 8px 10px;
  color: var(--ink);
  background: rgba(255, 253, 249, 0.92);
  font: 600 9px/1 var(--ui);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.fit-badge {
  color: var(--white);
  background: rgba(108, 31, 45, 0.94);
}

.wishlist-button {
  position: absolute;
  top: 11px;
  right: 11px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: rgba(255, 253, 249, 0.86);
  border-radius: 50%;
  font-size: 19px;
  transition: color 180ms ease, background 180ms ease;
}

.wishlist-button.is-active {
  color: var(--white);
  background: var(--wine);
}

.quick-add {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  padding: 14px;
  color: var(--paper);
  background: rgba(23, 18, 15, 0.92);
  font: 600 10px/1 var(--ui);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transform: translateY(calc(100% + 15px));
  transition: transform 220ms ease;
}

.product-card:hover .quick-add,
.quick-add:focus-visible {
  transform: translateY(0);
}

.product-card__info {
  padding: 17px 3px 0;
}

.product-card__brand {
  margin: 0 0 8px;
  color: rgba(23, 18, 15, 0.5);
  font: 500 9px/1 var(--ui);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.product-card__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.product-card__row h3 {
  margin: 0;
  font: 400 clamp(17px, 1.5vw, 22px)/1.25 var(--serif);
}

.product-card__row p {
  margin: 0;
  flex: 0 0 auto;
  font: 500 13px/1 var(--ui);
}

.product-card__meta {
  margin: 9px 0 0;
  color: rgba(23, 18, 15, 0.48);
  font-size: 11px;
}

.empty-state {
  padding: 95px 20px;
  text-align: center;
}

.empty-state h3 {
  margin: 0 0 28px;
  font: 400 34px/1.2 var(--serif);
}

.service-strip {
  padding: 0 4vw 110px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.service-strip article {
  min-height: 250px;
  padding: 30px;
  border: 1px solid var(--line);
}

.service-strip article + article {
  border-left: 0;
}

.service-strip span {
  color: var(--wine);
  font: 600 10px/1 var(--ui);
}

.service-strip h3 {
  margin: 68px 0 16px;
  font: 400 25px/1.2 var(--serif);
}

.service-strip p {
  max-width: 350px;
  margin: 0;
  color: rgba(23, 18, 15, 0.55);
  font-size: 13px;
  line-height: 1.6;
}

.stores {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 8vw;
  color: var(--paper);
  background: var(--wine);
}

.stores h2 {
  margin: 0;
  font: 400 clamp(46px, 5vw, 76px)/1.05 var(--serif);
  letter-spacing: -0.04em;
}

.stores h2 em {
  color: #d3b8a5;
}

.store-list article {
  padding: 35px 0;
  display: grid;
  grid-template-columns: 140px 1fr auto;
  align-items: center;
  gap: 24px;
  border-top: 1px solid rgba(244, 240, 233, 0.27);
}

.store-list article:last-child {
  border-bottom: 1px solid rgba(244, 240, 233, 0.27);
}

.store-list p,
.store-list h3,
.store-list span {
  margin: 0;
}

.store-list p,
.store-list span,
.store-list a {
  font: 500 10px/1.5 var(--ui);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.store-list h3 {
  font: 400 25px/1.2 var(--serif);
}

.store-list span {
  grid-column: 2;
  color: rgba(244, 240, 233, 0.58);
}

.store-list a {
  grid-row: 1 / 3;
  grid-column: 3;
  padding-bottom: 3px;
  border-bottom: 1px solid currentColor;
}

.newsletter {
  padding: 115px 4vw;
  text-align: center;
}

.newsletter h2 {
  margin: 0;
  font: 400 clamp(36px, 4vw, 60px)/1.15 var(--serif);
}

.newsletter form {
  max-width: 620px;
  margin: 45px auto 13px;
  display: flex;
  border-bottom: 1px solid var(--ink);
}

.newsletter input {
  min-width: 0;
  padding: 15px 0;
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
}

.newsletter button {
  font: 600 10px/1 var(--ui);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.newsletter small {
  color: rgba(23, 18, 15, 0.47);
  font-size: 10px;
}

footer {
  padding: 75px 4vw 30px;
  color: var(--paper);
  background: var(--ink);
}

.footer__brand {
  padding-bottom: 70px;
}

.wordmark--footer {
  font-size: clamp(58px, 10vw, 150px);
  letter-spacing: 0.08em;
}

.footer__brand p {
  max-width: 380px;
  margin: 25px 0 0;
  color: rgba(244, 240, 233, 0.5);
  font-size: 13px;
  line-height: 1.6;
}

.footer__links {
  padding: 40px 0 65px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(244, 240, 233, 0.15);
}

.footer__links > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer__links span {
  margin-bottom: 8px;
  color: rgba(244, 240, 233, 0.38);
  font: 500 9px/1 var(--ui);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer__links a,
.footer__links button {
  color: inherit;
  font-size: 13px;
}

.footer__bottom {
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(244, 240, 233, 0.15);
  color: rgba(244, 240, 233, 0.38);
  font: 500 9px/1 var(--ui);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.scrim {
  position: fixed;
  z-index: 60;
  inset: 0;
  background: rgba(13, 10, 9, 0.56);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 220ms ease;
}

.scrim.is-visible {
  opacity: 1;
}

.side-panel {
  position: fixed;
  z-index: 70;
  top: 0;
  right: 0;
  width: min(470px, 100%);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  transform: translateX(102%);
  transition: transform 300ms cubic-bezier(0.3, 0.7, 0.3, 1);
}

.side-panel.is-open {
  transform: translateX(0);
}

.side-panel__header {
  min-height: 82px;
  padding: 0 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.side-panel__header h2 {
  margin: 0;
  font: 400 30px/1 var(--serif);
}

.filter-panel__body,
.cart-panel__body {
  padding: 10px 28px 35px;
  flex: 1;
  overflow-y: auto;
}

.filter-panel fieldset,
.product-sizes {
  margin: 0;
  padding: 26px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
}

.filter-panel legend,
.product-sizes legend {
  width: 100%;
  margin-bottom: 15px;
  font: 600 10px/1 var(--ui);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.filter-panel fieldset > label {
  padding: 8px 0;
  display: grid;
  grid-template-columns: 19px 1fr auto;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.filter-panel input[type="checkbox"],
.profile-match-toggle input,
.choice-grid input {
  accent-color: var(--wine);
}

.filter-panel small {
  color: rgba(23, 18, 15, 0.42);
  font-size: 10px;
}

.filter-selects {
  padding: 26px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.filter-selects label,
.fit-size-grid label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: rgba(23, 18, 15, 0.6);
  font: 500 9px/1 var(--ui);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.filter-selects select,
.fit-size-grid select {
  height: 48px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  outline: 0;
}

.profile-match-toggle {
  margin-top: 26px;
  padding: 18px;
  display: flex;
  gap: 12px;
  background: var(--cream);
  font-size: 12px;
}

.side-panel__footer {
  padding: 20px 27px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
}

.side-panel__footer .button {
  min-width: 190px;
}

.cart-panel__body {
  padding-top: 24px;
}

.cart-item {
  padding: 0 0 20px;
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: 95px 1fr auto;
  gap: 16px;
  border-bottom: 1px solid var(--line);
}

.cart-item img {
  width: 95px;
  height: 125px;
  object-fit: cover;
}

.cart-item__brand {
  margin: 2px 0 8px;
  color: rgba(23, 18, 15, 0.48);
  font: 600 8px/1 var(--ui);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cart-item h3 {
  margin: 0 0 9px;
  font: 400 17px/1.25 var(--serif);
}

.cart-item p {
  margin: 0;
  font-size: 11px;
}

.cart-item__price {
  align-self: end;
  font: 500 12px/1 var(--ui);
}

.cart-item__remove {
  align-self: start;
  color: rgba(23, 18, 15, 0.45);
  font-size: 20px;
}

.cart-panel__empty {
  margin: auto;
  padding: 40px;
  text-align: center;
}

.cart-panel__empty p {
  margin: 0 0 20px;
  font: 400 28px/1.2 var(--serif);
}

.cart-panel__footer {
  padding: 24px 27px;
  border-top: 1px solid var(--line);
}

.cart-panel__footer > div {
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
}

.cart-panel__footer strong {
  font-weight: 500;
}

.cart-panel__footer .button {
  width: 100%;
}

.cart-panel__footer small {
  margin-top: 12px;
  display: block;
  color: rgba(23, 18, 15, 0.5);
  font-size: 9px;
  text-align: center;
}

.mobile-menu {
  position: fixed;
  z-index: 100;
  inset: 0;
  padding: 20px 24px 28px;
  display: none;
  flex-direction: column;
  color: var(--paper);
  background: var(--ink);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-menu nav {
  margin: 55px 0 34px;
  border-top: 1px solid rgba(244, 240, 233, 0.2);
}

.mobile-menu__catalog {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
}

.mobile-menu nav button {
  width: 100%;
  padding: 17px 0;
  display: flex;
  justify-content: space-between;
  color: inherit;
  border-bottom: 1px solid rgba(244, 240, 233, 0.2);
  font: 400 30px/1.1 var(--serif);
}

.mobile-menu nav span {
  color: rgba(244, 240, 233, 0.38);
  font: 500 9px/1 var(--ui);
}

.mobile-menu__fit {
  width: 100%;
}

.mobile-menu__meta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  color: rgba(244, 240, 233, 0.52);
  font: 500 9px/1 var(--ui);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

dialog {
  color: var(--ink);
  background: var(--paper);
  border: 0;
  box-shadow: 0 26px 90px rgba(13, 10, 9, 0.3);
}

dialog::backdrop {
  background: rgba(13, 10, 9, 0.64);
  backdrop-filter: blur(4px);
}

.fit-dialog {
  width: min(780px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
}

.fit-dialog form {
  min-height: min(690px, calc(100dvh - 32px));
  display: flex;
  flex-direction: column;
}

.dialog-header {
  padding: 24px 30px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.dialog-header .eyebrow {
  margin: 0 0 8px;
}

.dialog-header p {
  margin: 0;
  color: rgba(23, 18, 15, 0.5);
  font-size: 10px;
}

.fit-progress {
  height: 3px;
  background: rgba(23, 18, 15, 0.12);
}

.fit-progress i {
  width: 25%;
  height: 100%;
  display: block;
  background: var(--wine);
  transition: width 240ms ease;
}

.fit-step {
  padding: 50px clamp(30px, 7vw, 80px) 32px;
  display: none;
}

.fit-step.is-active {
  display: block;
  animation: fit-step-in 250ms ease both;
}

@keyframes fit-step-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.fit-step__number {
  margin: 0 0 20px;
  color: var(--wine);
  font: 600 10px/1 var(--ui);
}

.fit-step h2 {
  max-width: 600px;
  margin: 0;
  font: 400 clamp(34px, 5vw, 52px)/1.08 var(--serif);
  letter-spacing: -0.035em;
}

.fit-step__hint {
  margin: 18px 0 34px;
  color: rgba(23, 18, 15, 0.56);
  font-size: 13px;
  line-height: 1.55;
}

.fit-size-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.choice-grid label {
  position: relative;
  min-height: 68px;
  display: flex;
}

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

.choice-grid label > span {
  width: 100%;
  padding: 18px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  font-size: 13px;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

.choice-grid--single label > span {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
}

.choice-grid b {
  font-weight: 500;
}

.choice-grid small {
  color: rgba(23, 18, 15, 0.5);
  font-size: 10px;
}

.choice-grid input:checked + span small {
  color: rgba(244, 240, 233, 0.57);
}

.fit-dialog__footer {
  margin-top: auto;
  padding: 22px 30px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  border-top: 1px solid var(--line);
}

.fit-dialog__footer .text-button {
  margin-right: auto;
}

.product-dialog {
  width: min(1100px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  overflow: auto;
}

.product-dialog[open] {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
}

.product-dialog__close {
  position: fixed;
  z-index: 2;
  top: calc(50% - min(50dvh - 16px, 480px) + 16px);
  right: calc(50% - min(550px, 50vw - 16px) + 16px);
  color: var(--paper);
  background: rgba(23, 18, 15, 0.72);
  border-radius: 50%;
}

.product-dialog__media {
  min-height: 720px;
  background: #d7cec4;
}

.product-dialog__media img {
  width: 100%;
  height: 100%;
  max-height: calc(100dvh - 32px);
  object-fit: cover;
}

.product-dialog__media img.is-certificate {
  padding: 9%;
  object-fit: contain;
  background: #f5f0ed;
}

.product-dialog__copy {
  padding: clamp(45px, 6vw, 85px) clamp(35px, 5vw, 70px);
}

.product-dialog__copy h2 {
  margin: 0;
  font: 400 clamp(34px, 4vw, 56px)/1.08 var(--serif);
  letter-spacing: -0.035em;
}

.product-dialog__price {
  margin: 22px 0;
  font: 500 15px/1 var(--ui);
}

.product-dialog__description {
  color: rgba(23, 18, 15, 0.62);
  font-size: 13px;
  line-height: 1.65;
}

.fit-badge--large {
  width: fit-content;
  margin: 22px 0;
}

.product-sizes {
  margin: 25px 0;
  border-top: 1px solid var(--line);
}

.product-sizes > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.size-chip {
  min-width: 54px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  font: 500 10px/1 var(--ui);
}

.size-chip.is-selected {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
}

.product-dialog__copy > .button {
  width: 100%;
}

.product-dialog__accordions {
  margin-top: 30px;
  border-top: 1px solid var(--line);
}

.product-dialog details {
  border-bottom: 1px solid var(--line);
}

.product-dialog summary {
  padding: 18px 0;
  font: 600 10px/1 var(--ui);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
}

.product-dialog details p {
  margin: 0;
  padding: 0 0 18px;
  color: rgba(23, 18, 15, 0.58);
  font-size: 12px;
  line-height: 1.55;
}

.search-dialog {
  width: min(820px, calc(100% - 32px));
  padding: 46px;
}

.search-dialog > .icon-button {
  position: absolute;
  top: 14px;
  right: 14px;
}

.search-dialog label {
  display: block;
  font: 400 clamp(32px, 4vw, 52px)/1.1 var(--serif);
}

.search-dialog__input {
  margin-top: 35px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--ink);
}

.search-dialog input {
  min-width: 0;
  padding: 14px 0;
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 18px;
}

.search-dialog p {
  margin: 22px 0 0;
  color: rgba(23, 18, 15, 0.5);
  font-size: 11px;
}

.search-dialog p button {
  color: var(--ink);
  border-bottom: 1px solid currentColor;
}

.toast {
  position: fixed;
  z-index: 200;
  right: 24px;
  bottom: 24px;
  max-width: 350px;
  padding: 16px 20px;
  color: var(--paper);
  background: var(--ink);
  font-size: 12px;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

:root[data-theme="dark"] .site-header {
  background: rgba(21, 18, 16, 0.94);
}

:root[data-theme="dark"] .announcement,
:root[data-theme="dark"] .mobile-menu,
:root[data-theme="dark"] .fit-story,
:root[data-theme="dark"] footer {
  color: #f4f0e9;
  background: #0f0d0c;
}

:root[data-theme="dark"] .announcement__link,
:root[data-theme="dark"] .fit-story__copy > p:not(.eyebrow),
:root[data-theme="dark"] .fit-story li,
:root[data-theme="dark"] .footer__brand p,
:root[data-theme="dark"] .footer__links span,
:root[data-theme="dark"] .footer__bottom,
:root[data-theme="dark"] .mobile-menu__meta,
:root[data-theme="dark"] .mobile-menu nav span {
  color: rgba(244, 240, 233, 0.58);
}

:root[data-theme="dark"] .fit-story__tag {
  color: #17120f;
  background: #f4f0e9;
}

:root[data-theme="dark"] .stores,
:root[data-theme="dark"] .image-credit,
:root[data-theme="dark"] .hero__detail-label,
:root[data-theme="dark"] .quick-add,
:root[data-theme="dark"] .product-dialog__close {
  color: #f4f0e9;
}

:root[data-theme="dark"] .category-card--cream,
:root[data-theme="dark"] .product-card__label,
:root[data-theme="dark"] .wishlist-button {
  color: #17120f;
}

:root[data-theme="dark"] .hero__intro,
:root[data-theme="dark"] .newsletter__intro,
:root[data-theme="dark"] .catalog__note,
:root[data-theme="dark"] .product-count,
:root[data-theme="dark"] .sort-control span,
:root[data-theme="dark"] .active-profile p,
:root[data-theme="dark"] .product-card__brand,
:root[data-theme="dark"] .product-card__meta,
:root[data-theme="dark"] .service-strip p,
:root[data-theme="dark"] .newsletter small,
:root[data-theme="dark"] .filter-panel small,
:root[data-theme="dark"] .filter-selects label,
:root[data-theme="dark"] .fit-size-grid label,
:root[data-theme="dark"] .cart-item__brand,
:root[data-theme="dark"] .cart-item__remove,
:root[data-theme="dark"] .cart-panel__footer small,
:root[data-theme="dark"] .dialog-header p,
:root[data-theme="dark"] .fit-step__hint,
:root[data-theme="dark"] .choice-grid small,
:root[data-theme="dark"] .product-dialog__description,
:root[data-theme="dark"] .product-dialog details p,
:root[data-theme="dark"] .search-dialog p {
  color: rgba(244, 240, 233, 0.58);
}

:root[data-theme="dark"] .view-toggle button {
  color: rgba(244, 240, 233, 0.34);
}

:root[data-theme="dark"] .view-toggle button.is-active,
:root[data-theme="dark"] .search-dialog p button {
  color: var(--ink);
}

:root[data-theme="dark"] .sort-control select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath fill='none' stroke='%23f2ede6' d='m1 1 4 4 4-4'/%3E%3C/svg%3E");
}

:root[data-theme="dark"] .product-card__media,
:root[data-theme="dark"] .product-dialog__media {
  background: #2b2521;
}

:root[data-theme="dark"] .product-card__media--certificate img,
:root[data-theme="dark"] .product-dialog__media img.is-certificate {
  background: #eee5de;
}

:root[data-theme="dark"] .filter-selects select,
:root[data-theme="dark"] .fit-size-grid select {
  background: #1b1714;
}

:root[data-theme="dark"] .choice-grid input:checked + span small {
  color: rgba(23, 18, 15, 0.6);
}

@media (max-width: 1180px) {
  .desktop-nav {
    gap: 16px;
  }

  .desktop-nav button:nth-child(5) {
    display: none;
  }

  .hero {
    grid-template-columns: 0.92fr 1.08fr;
  }

  .hero__image--detail {
    display: none;
  }

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

  .category-card {
    min-height: 420px;
  }
}

@media (max-width: 820px) {
  .desktop-only,
  .desktop-nav {
    display: none;
  }

  .mobile-only,
  .mobile-menu {
    display: flex;
  }

  .announcement {
    min-height: 32px;
    justify-content: space-between;
    font-size: 8px;
  }

  .site-header,
  .site-header.is-condensed {
    height: 66px;
    padding: 0 18px;
  }

  .site-header > .mobile-only {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    width: 32px;
    height: 32px;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
  }

  .site-header > .mobile-only span {
    width: 22px;
    height: 1px;
    background: var(--ink);
  }

  .header-actions {
    gap: 6px;
  }

  .wordmark {
    font-size: 22px;
  }

  .wordmark--header {
    gap: 5px;
  }

  .wordmark__symbol {
    width: 32px;
    height: 44px;
  }

  .wordmark__symbol img {
    width: 58px;
    height: 58px;
    transform: translate(-2px, -7px);
  }

  .mobile-menu__catalog {
    margin: 28px 0 22px;
  }

  .mobile-menu__catalog button {
    padding: 12px 0;
    font-size: 22px;
  }

  .section {
    padding: 82px 18px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero__copy {
    min-height: 510px;
    padding: 76px 20px 30px;
  }

  .hero h1 {
    font-size: clamp(46px, 14vw, 68px);
  }

  .hero__intro {
    margin-top: 25px;
    font-size: 13px;
  }

  .hero__actions {
    margin-top: 30px;
  }

  .hero__actions .button {
    flex: 1 1 auto;
    padding-right: 15px;
    padding-left: 15px;
  }

  .hero__counter {
    display: none;
  }

  .hero__image {
    min-height: 72svh;
  }

  .hero__image--main img {
    object-position: 50% 34%;
  }

  .section-heading--row {
    margin-bottom: 32px;
  }

  .section-heading--row .text-button {
    display: none;
  }

  .section-heading h2,
  .catalog__heading h2 {
    font-size: 48px;
  }

  .category-grid {
    margin-right: -18px;
    padding-right: 18px;
    grid-template-columns: repeat(8, 78vw);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .category-card,
  .category-card--large {
    min-height: 520px;
    grid-column: auto;
    scroll-snap-align: start;
  }

  .fit-story {
    grid-template-columns: 1fr;
  }

  .fit-story__visual {
    min-height: 72svh;
  }

  .fit-story__copy {
    padding: 78px 20px 88px;
  }

  .fit-story h2 {
    font-size: 45px;
  }

  .catalog {
    padding-right: 0;
    padding-left: 0;
  }

  .catalog__heading {
    padding: 0 20px;
    margin-bottom: 48px;
  }

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

  .toolbar-button,
  .sort-control {
    padding: 0 18px;
  }

  .product-count,
  .view-toggle {
    display: none;
  }

  .sort-control {
    border-right: 0;
  }

  .sort-control span {
    display: none;
  }

  .sort-control select {
    margin-left: auto;
  }

  .active-profile {
    margin: 0 10px 22px;
  }

  .product-grid,
  .product-grid[data-columns="2"] {
    padding: 0 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 7px;
  }

  .product-card__labels {
    top: 7px;
    left: 7px;
  }

  .product-card__label,
  .fit-badge {
    padding: 6px 7px;
    font-size: 7px;
  }

  .wishlist-button {
    top: 6px;
    right: 6px;
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .quick-add {
    display: none;
  }

  .product-card__info {
    padding: 12px 5px 0;
  }

  .product-card__row {
    display: block;
  }

  .product-card__row h3 {
    min-height: 40px;
    font-size: 16px;
  }

  .product-card__row p {
    margin-top: 9px;
  }

  .service-strip {
    padding: 0 18px 80px;
    grid-template-columns: 1fr;
  }

  .service-strip article {
    min-height: 210px;
  }

  .service-strip article + article {
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .service-strip h3 {
    margin-top: 45px;
  }

  .stores {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .store-list article {
    grid-template-columns: 1fr auto;
  }

  .store-list p {
    grid-column: 1 / 3;
  }

  .store-list h3,
  .store-list span {
    grid-column: 1;
  }

  .store-list a {
    grid-column: 2;
    grid-row: 2 / 4;
  }

  .newsletter {
    padding: 82px 20px;
  }

  .newsletter form {
    margin-top: 34px;
  }

  footer {
    padding-top: 60px;
  }

  .footer__links {
    grid-template-columns: 1fr 1fr;
    gap: 45px 20px;
  }

  .footer__links > div:last-child {
    grid-column: 1 / 3;
  }

  .fit-size-grid,
  .choice-grid {
    grid-template-columns: 1fr;
  }

  .fit-dialog {
    width: 100%;
    max-height: 100dvh;
    margin: auto 0 0;
  }

  .fit-dialog form {
    min-height: 100dvh;
  }

  .fit-step {
    padding: 38px 22px 24px;
  }

  .fit-step h2 {
    font-size: 34px;
  }

  .fit-step__hint {
    margin-bottom: 25px;
  }

  .fit-size-grid {
    grid-template-columns: 1fr 1fr;
  }

  .fit-size-grid label:last-child {
    grid-column: 1 / 3;
  }

  .fit-dialog__footer {
    padding: 18px 22px;
  }

  .product-dialog {
    width: 100%;
    max-height: 100dvh;
    margin: 0;
  }

  .product-dialog[open] {
    display: block;
  }

  .product-dialog__close {
    position: fixed;
    top: 12px;
    right: 12px;
  }

  .product-dialog__media {
    min-height: 70svh;
  }

  .product-dialog__media img {
    height: 70svh;
  }

  .product-dialog__copy {
    padding: 42px 22px 60px;
  }

  .search-dialog {
    width: 100%;
    min-height: 100dvh;
    margin: 0;
    padding: 95px 22px;
  }

  .toast {
    right: 12px;
    bottom: 12px;
    left: 12px;
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
