:root {
  --ink: #171613;
  --muted: #6f6b64;
  --line: #d9d4ca;
  --ivory: #f7f4ee;
  --paper: #fcfaf6;
  --burgundy: #6f263d;
  --gold: #a88a55;
  --green: #5b8a62;
  --shadow: 0 22px 70px rgba(30, 24, 18, 0.16);
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--ivory);
  color: var(--ink);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
}

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

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

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

button,
a {
  touch-action: manipulation;
}

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

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--burgundy);
  outline-offset: 3px;
}

.screen {
  min-height: 100vh;
  min-height: 100dvh;
}

.announcement {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  min-height: 32px;
  padding: max(8px, env(safe-area-inset-top)) 4vw 8px;
  align-items: center;
  gap: 16px;
  background: var(--ink);
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.announcement strong {
  text-align: center;
  font-weight: 600;
}

.announcement button {
  justify-self: end;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  letter-spacing: inherit;
  text-transform: inherit;
}

.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  min-height: 78px;
  padding: 0 4vw;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(252, 250, 246, 0.96);
}

.wordmark {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(20px, 2.1vw, 30px);
  letter-spacing: 0.25em;
  white-space: nowrap;
}

.header-search,
.header-action,
.mobile-menu-button {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-search {
  justify-self: start;
  padding: 0;
}

.header-actions {
  display: flex;
  justify-self: end;
  align-items: center;
  gap: 15px;
}

.language-select {
  min-height: 44px;
  max-width: 140px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 11px;
  text-transform: uppercase;
}

.mobile-menu-button {
  display: none;
  position: relative;
  width: 44px;
  padding: 0;
}

.mobile-menu-button::before,
.mobile-menu-button::after {
  content: "";
  position: absolute;
  left: 6px;
  width: 20px;
  height: 1px;
  background: currentColor;
}

.mobile-menu-button::before {
  top: 18px;
}

.mobile-menu-button::after {
  top: 25px;
}

.primary-nav {
  display: flex;
  min-height: 54px;
  padding: 0 4vw;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 4vw, 58px);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.primary-nav button {
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.primary-nav button[aria-current="page"] {
  border-color: var(--ink);
}

.collection-intro {
  width: min(100% - 32px, 860px);
  margin-inline: auto;
  padding: clamp(64px, 8vw, 118px) 0 48px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

h1 {
  margin: 0;
  font-size: clamp(46px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.intro-copy {
  max-width: 640px;
  margin: 28px auto 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
}

.regional-note {
  display: flex;
  margin-top: 22px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(91, 138, 98, 0.1);
}

.category-tabs {
  display: flex;
  margin: 0 auto 38px;
  padding: 0 16px;
  justify-content: center;
  gap: 9px;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.pill {
  min-height: 44px;
  min-width: 70px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pill[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.collection-tools,
.catalog {
  width: min(100% - 8vw, 1440px);
  margin-inline: auto;
}

.collection-tools {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  min-height: 66px;
  align-items: center;
  gap: 28px;
  border-block: 1px solid var(--line);
}

.collection-search {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
}

.search-icon {
  position: relative;
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.search-icon::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 7px;
  height: 1px;
  transform: rotate(48deg);
  background: currentColor;
}

.collection-search input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  font-size: 16px;
}

.tool-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tool-actions button,
.sort-select {
  min-height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: inherit;
  font-size: 11px;
}

.save-search {
  border-bottom: 1px solid var(--ink) !important;
}

.mobile-filter-trigger {
  display: none;
}

.catalog {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 66px);
  padding: 34px 0 90px;
}

.filters {
  min-width: 0;
}

.filter-heading {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--ink);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.clear-button {
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  text-decoration: underline;
}

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

.filters summary {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  list-style: none;
  text-transform: uppercase;
}

.filters summary::-webkit-details-marker {
  display: none;
}

.filters summary::after {
  content: "+";
  color: var(--muted);
}

.filters details[open] summary::after {
  content: "−";
}

.filter-list {
  display: grid;
  gap: 8px;
  padding: 0 0 18px;
}

.filter-list label {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
}

.filter-list input {
  width: 17px;
  height: 17px;
  accent-color: var(--ink);
}

.products-area {
  min-width: 0;
}

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

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

.product-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1.17;
  background-color: #f5efe6;
  background-image: url("./assets/product-sprite-v2.webp");
  background-repeat: no-repeat;
  background-size: 400% 300%;
}

.product-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 70%, rgba(20, 16, 12, 0.03));
  pointer-events: none;
}

.product-badge {
  position: absolute;
  z-index: 1;
  top: 11px;
  left: 11px;
  padding: 5px 7px;
  background: rgba(252, 250, 246, 0.92);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.wishlist-button {
  position: absolute;
  z-index: 2;
  top: 7px;
  right: 7px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(252, 250, 246, 0.86);
  cursor: pointer;
  font-size: 23px;
  line-height: 1;
}

.wishlist-button[aria-pressed="true"] {
  color: var(--burgundy);
}

.quick-view {
  position: absolute;
  z-index: 2;
  right: 12px;
  bottom: 12px;
  left: 12px;
  min-height: 44px;
  border: 0;
  background: rgba(23, 22, 19, 0.92);
  color: #fff;
  cursor: pointer;
  font-size: 10px;
  letter-spacing: 0.09em;
  opacity: 0;
  transform: translateY(6px);
  text-transform: uppercase;
  transition: opacity 160ms ease, transform 160ms ease;
}

.product-image:hover .quick-view,
.quick-view:focus-visible {
  opacity: 1;
  transform: translateY(0);
}

.product-brand {
  margin: 14px 0 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.product-name {
  min-height: 45px;
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
}

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

.price-row {
  display: flex;
  margin-top: 12px;
  align-items: baseline;
  gap: 9px;
}

.price-row strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 400;
}

.retail-price {
  color: var(--muted);
  font-size: 11px;
  text-decoration: line-through;
}

.load-more {
  display: block;
  min-width: 150px;
  min-height: 48px;
  margin: 54px auto 0;
  padding: 0 26px;
  border: 1px solid var(--ink);
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 70px 20px;
  border: 1px solid var(--line);
  text-align: center;
}

.empty-state h2 {
  margin: 0 0 12px;
  font-size: 28px;
}

.empty-state button {
  min-height: 44px;
  margin-top: 12px;
  border: 0;
  border-bottom: 1px solid;
  background: transparent;
  cursor: pointer;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
  background: var(--paper);
}

.service-grid article {
  min-width: 0;
  padding: clamp(38px, 5vw, 72px) 4vw;
  border-right: 1px solid var(--line);
}

.service-grid article:last-child {
  border-right: 0;
}

.service-number {
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 0.16em;
}

.service-grid h2 {
  margin: 23px 0 12px;
  font-size: 24px;
}

.service-grid p {
  margin: 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  line-height: 1.6;
}

.newsletter {
  padding: clamp(70px, 9vw, 120px) 16px;
  background: var(--burgundy);
  color: #fff;
  text-align: center;
}

.newsletter .eyebrow {
  color: #d7b986;
}

.newsletter h2 {
  margin: 0;
  font-size: clamp(40px, 6vw, 68px);
}

.newsletter p {
  max-width: 540px;
  margin: 20px auto 34px;
  color: rgba(255, 255, 255, 0.78);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.6;
}

.newsletter form {
  display: flex;
  width: min(100%, 520px);
  margin-inline: auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.72);
}

.newsletter input {
  flex: 1;
  min-width: 0;
  min-height: 52px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 16px;
}

.newsletter input::placeholder {
  color: rgba(255, 255, 255, 0.64);
}

.newsletter button {
  min-width: 92px;
  min-height: 52px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-status {
  min-height: 22px;
  margin: 14px auto 0 !important;
  font-family: inherit !important;
  font-size: 12px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.5fr 1fr auto;
  padding: 58px 4vw max(36px, env(safe-area-inset-bottom));
  align-items: end;
  gap: 38px;
  background: var(--ink);
  color: #fff;
}

.site-footer .wordmark {
  display: inline-block;
  font-size: 21px;
}

.footer-copy {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-family: Georgia, "Times New Roman", serif;
}

.footer-links {
  display: grid;
  font-size: 11px;
}

.footer-links a {
  display: flex;
  min-height: 44px;
  align-items: center;
}

.copyright {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
}

.overlay {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  background: rgba(23, 22, 19, 0.46);
}

.drawer {
  width: min(88vw, 420px);
  height: 100%;
  padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
  overflow-y: auto;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.drawer-right {
  justify-self: end;
}

.drawer-heading,
.dialog-heading {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.icon-close {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 25px;
}

.mobile-nav {
  display: grid;
  margin-top: 22px;
}

.mobile-nav button {
  min-height: 54px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.mobile-language {
  width: 100%;
  min-height: 48px;
  margin-top: 26px;
  border: 1px solid var(--line);
  background: transparent;
  padding-inline: 12px;
  font-size: 16px;
}

.dialog-shell {
  place-items: center;
  padding: 16px;
}

.dialog-card {
  width: min(100%, 920px);
  max-height: min(90vh, 760px);
  max-height: min(90dvh, 760px);
  overflow-y: auto;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.dialog-heading {
  padding: 10px 18px 10px 28px;
}

.dialog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.dialog-image {
  aspect-ratio: 1 / 1.08;
  background-color: #f5efe6;
  background-image: url("./assets/product-sprite-v2.webp");
  background-repeat: no-repeat;
  background-size: 400% 300%;
}

.dialog-copy {
  padding: clamp(28px, 5vw, 64px);
}

.dialog-copy h2 {
  margin: 10px 0 20px;
  font-size: clamp(30px, 4vw, 46px);
}

.dialog-price {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
}

.dialog-meta {
  display: grid;
  gap: 14px;
  margin: 28px 0;
}

.dialog-meta div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.dialog-meta dt {
  color: var(--muted);
}

.dialog-meta dd {
  margin: 0;
  text-align: right;
}

.primary-button {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toast {
  position: fixed;
  z-index: 80;
  right: 22px;
  bottom: max(22px, env(safe-area-inset-bottom));
  max-width: min(360px, calc(100vw - 44px));
  padding: 15px 20px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
  font-size: 13px;
}

[hidden] {
  display: none !important;
}

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

  .primary-nav {
    gap: 26px;
  }

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

  .copyright {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .announcement {
    display: flex;
    min-height: 30px;
    justify-content: center;
    padding-inline: 16px;
  }

  .announcement > :first-child,
  .announcement button {
    display: none;
  }

  .site-header {
    min-height: 66px;
    padding: 0 12px;
  }

  .header-search,
  .header-actions .language-select,
  .header-action:not(.bag-action) {
    display: none;
  }

  .mobile-menu-button {
    display: block;
    justify-self: start;
  }

  .header-actions {
    gap: 0;
  }

  .bag-action {
    padding: 0;
  }

  .wordmark {
    font-size: 19px;
    letter-spacing: 0.2em;
  }

  .primary-nav {
    display: none;
  }

  .collection-intro {
    padding: 48px 0 34px;
  }

  h1 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .intro-copy {
    margin-top: 22px;
    padding-inline: 8px;
  }

  .category-tabs {
    justify-content: flex-start;
    margin-bottom: 22px;
  }

  .collection-tools,
  .catalog {
    width: calc(100% - 32px);
  }

  .collection-tools {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .collection-search {
    min-height: 66px;
    border-bottom: 1px solid var(--line);
  }

  .tool-actions {
    min-height: 66px;
    justify-content: space-between;
  }

  .save-search,
  .result-count,
  .sort-label {
    display: none;
  }

  .mobile-filter-trigger {
    display: inline-flex;
    min-width: 44px;
    align-items: center;
    padding: 0;
    border-bottom: 1px solid var(--ink) !important;
  }

  .sort-select {
    font-size: 16px;
  }

  .catalog {
    display: block;
    padding-top: 24px;
  }

  .desktop-filters {
    display: none;
  }

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

  .product-name {
    min-height: 43px;
    font-size: 14px;
  }

  .product-condition,
  .retail-price {
    font-size: 10px;
  }

  .quick-view {
    opacity: 1;
    transform: none;
  }

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

  .service-grid article:nth-child(2) {
    border-right: 0;
  }

  .service-grid article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .site-footer {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .copyright {
    grid-column: auto;
  }

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

  .dialog-image {
    aspect-ratio: 1.16 / 1;
  }

  .dialog-card {
    max-height: 94vh;
    max-height: 94dvh;
  }

  .dialog-copy {
    padding: 28px 24px 34px;
  }
}

@media (max-width: 430px) {
  .product-image {
    aspect-ratio: 0.92 / 1;
  }

  .product-badge {
    top: 7px;
    left: 7px;
    font-size: 7px;
  }

  .product-brand {
    margin-top: 11px;
  }

  .price-row {
    display: grid;
    gap: 3px;
  }

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

  .service-grid article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .service-grid article:last-child {
    border-bottom: 0;
  }

  .newsletter form {
    display: grid;
    grid-template-columns: 1fr auto;
  }
}

@media (max-width: 360px) {
  .pill {
    min-width: 65px;
    padding-inline: 15px;
  }

  .wordmark {
    font-size: 17px;
  }

  .header-action {
    font-size: 9px;
  }
}

@media (orientation: landscape) and (max-height: 500px) {
  input,
  select,
  textarea,
  .language-select,
  .sort-select {
    font-size: 16px;
  }

  .collection-intro {
    padding-top: 34px;
  }

  .dialog-card {
    max-height: 94dvh;
  }
}

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

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