:root {
  --sand: #f3efe7;
  --sand-2: #ebe4d8;
  --ink: #181513;
  --muted: #6d655c;
  --blush: #d9c7bd;
  --line: rgba(24, 21, 19, 0.12);
  --font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-serif: Georgia, "Times New Roman", "Songti SC", "STSong", serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  overflow-x: hidden;
}

.font-serif {
  font-family: var(--font-serif);
}

.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-link {
  position: relative;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  height: 1px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: currentColor;
  transition: transform 0.25s ease;
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.menu-line,
.menu-line::before,
.menu-line::after {
  display: block;
  width: 18px;
  height: 1px;
  background: var(--ink);
  content: "";
}

.menu-line::before {
  transform: translateY(-6px);
}

.menu-line::after {
  transform: translateY(5px);
}

.collection-tile,
.edit-card,
.stat-block,
.product-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.edit-card {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}

.edit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(24, 21, 19, 0.08);
}

.stat-block {
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
  border-left: 1px solid var(--line);
  padding-left: 24px;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: clamp(44px, 4vw, 56px);
  line-height: 0.9;
}

.stat-label {
  max-width: 18rem;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.filter-select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.95rem 0.95rem;
  font-size: 14px;
  min-height: 3.25rem;
}

.product-hero {
  position: relative;
  min-height: min(740px, calc(100vh - 76px));
  overflow: hidden;
  background: var(--ink);
}

.product-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(24, 21, 19, 0.72), rgba(24, 21, 19, 0.22) 54%, rgba(24, 21, 19, 0.08));
}

.product-hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  min-height: min(740px, calc(100vh - 76px));
  max-width: 46rem;
  padding: 6rem 1rem 5rem;
  margin: 0 auto;
}

.product-hero-copy a {
  justify-self: start;
}

.product-page-shell {
  width: min(100%, 1560px);
}

@media (min-width: 768px) {
  .product-hero-copy {
    margin-left: max(2rem, calc((100vw - 80rem) / 2 + 2rem));
    margin-right: 0;
  }
}

.collection-entry-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.collection-entry {
  position: relative;
  min-height: 19rem;
  overflow: hidden;
  background: var(--ink);
  text-align: left;
}

.collection-entry.is-large {
  grid-column: span 2;
  min-height: 34rem;
}

.collection-entry img,
.featured-style img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.collection-entry::after,
.featured-style::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(24, 21, 19, 0.02), rgba(24, 21, 19, 0.62));
}

.collection-entry span,
.featured-style span {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 1;
  color: #fff;
  font-family: var(--font-serif);
  font-size: 2.6rem;
  line-height: 0.95;
}

.collection-entry:hover img,
.featured-style:hover img {
  transform: scale(1.04);
}

.featured-strip {
  display: grid;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.featured-strip article {
  display: grid;
  align-content: center;
  padding: 1rem 0 2rem;
}

.featured-style {
  position: relative;
  min-height: 24rem;
  overflow: hidden;
  background: var(--ink);
  text-align: left;
}

.product-filter-bar {
  display: grid;
  gap: 0.75rem;
  padding: 1rem 0 1.5rem;
  border-top: 1px solid var(--line);
}

.product-filter-bar label {
  display: grid;
  gap: 0.5rem;
}

.product-filter-bar button,
.load-more-button {
  border: 1px solid var(--ink);
  padding: 0.95rem 1.2rem;
  min-height: 3.25rem;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background 0.25s ease, color 0.25s ease;
}

.product-filter-bar button:hover,
.load-more-button:hover {
  background: var(--ink);
  color: #fff;
}

.product-grid-editorial {
  display: grid;
  gap: 3rem 1.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-card {
  display: block;
  overflow: hidden;
  border: 0;
  background: #fff;
}

.product-card-media {
  position: relative;
  background: var(--sand);
  overflow: hidden;
  touch-action: manipulation;
}

.product-card-media img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: opacity 180ms ease;
}

.product-gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 4.5rem;
  transform: translateY(-50%);
  border: 0;
  background: rgba(255, 255, 255, 0.28);
  color: rgba(24, 21, 19, 0.72);
  font-family: var(--font-serif);
  font-size: 3rem;
  line-height: 1;
  opacity: 0;
  transition: background 180ms ease, opacity 180ms ease, color 180ms ease;
}

.product-gallery-arrow-prev {
  left: 0;
}

.product-gallery-arrow-next {
  right: 0;
}

.product-card-media:hover .product-gallery-arrow,
.product-gallery-arrow:focus-visible {
  opacity: 1;
}

.product-gallery-arrow:hover {
  background: rgba(255, 255, 255, 0.56);
  color: var(--ink);
}

@media (hover: none) {
  .product-gallery-arrow {
    opacity: 0.86;
  }
}

.product-gallery-position {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 2;
  background: rgba(255, 255, 255, 0.72);
  padding: 0.35rem 0.55rem;
  color: rgba(24, 21, 19, 0.74);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.product-card-copy {
  padding: 1rem 0 0;
}

.product-card.is-selected {
  box-shadow: none;
}

.shortlist-item {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1rem;
  border: 1px solid var(--line);
  background: var(--sand);
  padding: 0.75rem;
}

.shortlist-item img {
  width: 5.5rem;
  height: 7rem;
  object-fit: cover;
}

.product-card-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem;
  margin-top: 1rem;
}

.product-card-thumbs img {
  aspect-ratio: 3 / 4;
  width: 100%;
  object-fit: cover;
  background: var(--sand);
}

.product-mini-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.product-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.product-card-actions button {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.product-modal-gallery {
  display: grid;
  gap: 0.6rem;
}

.product-modal-hero {
  width: 100%;
  height: 28rem;
  object-fit: contain;
  background: var(--sand);
}

.product-modal-thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.product-modal-thumb {
  display: block;
  border: 1px solid transparent;
  background: #fff;
  padding: 0;
  opacity: 0.72;
  transition: border-color 180ms ease, opacity 180ms ease;
}

.product-modal-thumb:hover,
.product-modal-thumb.is-active {
  border-color: var(--ink);
  opacity: 1;
}

.product-modal-thumbs img {
  aspect-ratio: 3 / 4;
  width: 100%;
  object-fit: cover;
  background: #fff;
}

.product-tag {
  display: inline-flex;
  border: 1px solid var(--line);
  padding: 0.35rem 0.65rem;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.lang-button {
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.7rem 0.8rem;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.lang-button.is-active,
.lang-button:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

@media (max-width: 767px) {
  header .font-serif.text-2xl {
    max-width: 14rem;
    font-size: clamp(1.15rem, 5.4vw, 1.5rem);
  }

  header .text-\[11px\],
  header [class~="text-[11px]"] {
    max-width: 14rem;
    letter-spacing: 0.18em;
  }

  main h1,
  main h2 {
    overflow-wrap: anywhere;
  }

  .product-page-shell {
    width: 100%;
  }

  .product-page-shell h2 {
    font-size: clamp(2.3rem, 11vw, 3.25rem);
    line-height: 0.98;
  }

  .stat-block {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 18px;
  }

  .product-filter-bar {
    gap: 1rem;
    padding-bottom: 1.25rem;
  }

  .product-grid-editorial {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .product-card-media img {
    aspect-ratio: 4 / 5;
  }

  .product-card-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.65rem;
  }

  .product-gallery-arrow {
    width: 2.25rem;
    height: 3.75rem;
    font-size: 2.35rem;
    opacity: 0.82;
  }

  .product-gallery-position {
    right: 0.55rem;
    bottom: 0.55rem;
  }

  .product-modal-hero {
    height: min(58vh, 25rem);
  }

  .product-modal-thumbs {
    display: grid;
    grid-auto-columns: 5.5rem;
    grid-auto-flow: column;
    grid-template-columns: none;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scroll-snap-type: x proximity;
  }

  .product-modal-thumb {
    scroll-snap-align: start;
  }

  .product-hero {
    min-height: 33rem;
  }

  .product-hero-copy {
    min-height: 33rem;
    padding-top: 5rem;
    padding-bottom: 4rem;
  }

  .product-hero-copy h1 {
    font-size: clamp(3.1rem, 15vw, 4.5rem);
  }

  .collection-entry,
  .collection-entry.is-large,
  .featured-style {
    min-height: 20rem;
  }

  .collection-entry-grid {
    grid-template-columns: 1fr;
  }

  .collection-entry.is-large {
    grid-column: span 1;
  }

  .collection-entry span,
  .featured-style span {
    font-size: clamp(2.15rem, 12vw, 2.8rem);
  }

  [data-product-modal] {
    padding: 0.75rem;
  }

  [data-product-modal] > div {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
  }

  [data-product-modal-body] > .grid {
    gap: 1.5rem;
    padding: 1rem;
  }

  [data-product-modal-body] h2 {
    font-size: clamp(2.5rem, 12vw, 3.25rem);
  }

  textarea.filter-select,
  textarea {
    min-height: 11rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  [class~="md:grid-cols-3"],
  [class~="md:grid-cols-4"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  header .font-serif.text-2xl {
    max-width: 24rem;
  }

  .product-page-shell {
    width: min(100%, 960px);
  }

  .product-page-shell h2 {
    font-size: clamp(3.2rem, 7vw, 4.1rem);
  }

  .product-filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
  }

  .product-filter-bar button {
    width: 100%;
  }

  .product-grid-editorial {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3rem 1.25rem;
  }

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

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

  .featured-strip article {
    grid-column: span 2;
  }

  .product-modal-hero {
    height: min(58vh, 34rem);
  }

  [data-product-modal-body] > .grid {
    gap: 2rem;
  }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  header nav {
    gap: 1.35rem;
    letter-spacing: 0.14em;
  }

  header .font-serif.text-2xl {
    max-width: 18rem;
  }

  .product-page-shell {
    width: min(100%, 1180px);
  }

  .product-grid-editorial {
    gap: 3rem 1.25rem;
  }
}

@media (min-width: 1280px) {
  header .font-serif.text-2xl {
    max-width: 28rem;
  }
}

@media (min-width: 1024px) {
  .product-modal-hero {
    height: 34rem;
  }

  .collection-entry-grid {
    grid-template-columns: 1.35fr 1fr 1fr;
  }

  .collection-entry.is-large {
    grid-row: span 2;
    grid-column: span 1;
  }

  .featured-strip {
    grid-template-columns: 1.25fr repeat(3, 1fr);
  }

  .product-filter-bar {
    grid-template-columns: 1fr 1fr 1fr auto;
    align-items: end;
  }

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

@media (min-width: 1536px) {
  .product-grid-editorial {
    gap: 3.4rem 1.75rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
