:root {
  --ink: #1c1a17;
  --muted: #716b62;
  --paper: #fbfaf7;
  --linen: #eee8df;
  --clay: #b56d57;
  --olive: #4d5a45;
  --cream: #fffaf1;
  --border: #ded7cc;
  --gold: #d9ad5f;
  --gold-soft: #f3d58f;
  --night: #11100e;
  --header-offset: 103px;
  --mobile-panel-top: 103px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body.cms-loading [data-setting-image] {
  opacity: 0;
}

[data-setting-image] {
  transition: opacity .18s ease;
}

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

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

.announcement {
  background: linear-gradient(90deg, var(--night), #2a261e, var(--night));
  color: var(--gold-soft);
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 10px 16px;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 48px);
  background: rgba(251, 250, 247, .9);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.brand {
  font-family: "Playfair Display", serif;
  font-size: clamp(24px, 3vw, 35px);
  font-weight: 700;
  white-space: nowrap;
}

.logo-brand {
  display: inline-flex;
  align-items: center;
}

.logo-brand img {
  width: clamp(178px, 22vw, 270px);
  height: 72px;
  object-fit: contain;
  background: transparent;
}

.nav-links,
.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 600;
}

.header-actions { justify-content: flex-end; }

.action-button,
.filter,
.icon-button {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}

.action-button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
}

.inquiry-link {
  border-color: rgba(180, 129, 45, .55);
  background: linear-gradient(135deg, #f8dc96, #c99232);
  color: #16120b;
  box-shadow: 0 8px 22px rgba(158, 112, 34, .16);
  font-weight: 700;
}

.inquiry-link:hover {
  border-color: rgba(141, 94, 23, .7);
  background: linear-gradient(135deg, #ffe8aa, #b97f27);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  margin: 4px 0;
}

.mobile-panel {
  display: none;
  position: fixed;
  inset: var(--mobile-panel-top) 0 auto 0;
  z-index: 18;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  padding: 18px;
}

.mobile-panel a {
  display: block;
  padding: 14px 4px;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 90px));
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #ddd4ca;
}

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

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(20,18,15,.68), rgba(20,18,15,.12) 58%, rgba(20,18,15,.03));
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 620px;
  margin-left: clamp(22px, 7vw, 96px);
  padding: 64px 0;
  color: white;
}

.eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .18em;
  font-weight: 800;
}

h1, h2 {
  margin: 0;
  font-family: "Playfair Display", serif;
  line-height: 1.02;
  letter-spacing: 0;
}

h1 { font-size: clamp(46px, 7vw, 92px); }
h2 { font-size: clamp(34px, 5vw, 58px); }

.hero-copy p:not(.eyebrow),
.section-heading p,
.editorial-copy p {
  color: inherit;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.7;
}

.hero-copy p:not(.eyebrow) { max-width: 520px; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
}

.primary-link { background: white; color: var(--ink); }
.primary-link.dark { background: var(--ink); color: white; }
.secondary-link { border: 1px solid rgba(255,255,255,.7); color: white; }

.category-strip {
  display: flex;
  gap: 10px;
  padding: 16px clamp(18px, 5vw, 72px);
  overflow-x: auto;
  border-block: 1px solid var(--border);
  background: #fffaf1;
  scrollbar-width: thin;
}

.category-strip a {
  min-height: 48px;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(176, 132, 65, .28);
  border-radius: 999px;
  background: rgba(255, 255, 255, .74);
  color: #4a3823;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.2;
  padding: 0 20px;
  text-align: center;
  text-transform: uppercase;
}

.category-strip a:hover {
  border-color: rgba(176, 132, 65, .7);
  background: #fff;
}

.section-heading {
  max-width: 850px;
  margin: 82px auto 34px;
  padding: 0 22px;
  text-align: center;
}

.section-heading p { color: var(--muted); }

.toolbar {
  max-width: 1180px;
  margin: 0 auto 28px;
  padding: 0 22px;
  display: flex;
  gap: 16px;
  align-items: end;
  justify-content: space-between;
}

.search-box {
  display: grid;
  gap: 8px;
  min-width: min(360px, 100%);
}

.search-box label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 800;
}

.search-box input {
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  padding: 0 18px;
  font: inherit;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.filter {
  min-height: 40px;
  border-radius: 999px;
  padding: 0 15px;
  font-weight: 700;
}

.filter.active {
  background: var(--olive);
  border-color: var(--olive);
  color: white;
}

.product-grid {
  max-width: 1180px;
  margin: 0 auto 82px;
  padding: 0 22px;
  display: grid;
  gap: 46px;
}

.collection-section {
  display: grid;
  gap: 18px;
}

.collection-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(176, 132, 65, .24);
  padding-bottom: 12px;
}

.collection-heading h3 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
}

.collection-heading .eyebrow {
  margin: 0;
  color: #a17635;
}

.collection-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 300px);
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 4px 4px 18px;
  scroll-snap-type: inline mandatory;
  scrollbar-width: thin;
}

.product-card {
  scroll-snap-align: start;
  background: linear-gradient(180deg, #fff, #f8f3ea);
  border: 1px solid rgba(217, 173, 95, .22);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 55px rgba(36, 30, 20, .08);
  transition: transform .2s ease, box-shadow .2s ease;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 75px rgba(36, 30, 20, .14);
}

.product-media {
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(243, 213, 143, .25), transparent 42%),
    var(--linen);
  overflow: hidden;
}

.product-media img {
  width: 190%;
  max-width: none;
}

.product-info {
  padding: 18px;
  display: grid;
  gap: 10px;
}

.product-info h3 {
  margin: 0;
  font-size: 16px;
}

.meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.meta strong {
  color: #8f6630;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.add-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

.add-button:hover {
  background: var(--ink);
  color: white;
}

body.modal-open {
  overflow: hidden;
}

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  place-items: center;
  padding: 20px;
}

.product-modal[aria-hidden="false"] {
  display: grid;
}

.product-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 16, 14, .62);
  backdrop-filter: blur(10px);
}

.product-modal-card {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  max-height: min(760px, calc(100vh - 40px));
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  overflow: hidden;
  border: 1px solid rgba(217, 173, 95, .28);
  border-radius: 8px;
  background: #fbf7ef;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .28);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(217, 173, 95, .45);
  border-radius: 999px;
  background: rgba(255, 250, 241, .88);
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.modal-media {
  min-height: 540px;
  background:
    radial-gradient(circle at 52% 38%, rgba(217, 173, 95, .28), transparent 42%),
    var(--linen);
}

.modal-media img {
  width: 100%;
  height: 100%;
  min-height: 540px;
  object-fit: cover;
}

.modal-copy {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: clamp(26px, 5vw, 54px);
}

.modal-copy h2 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
}

.modal-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.modal-current-color {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

#modalColorSwatch {
  width: 22px;
  height: 22px;
  border: 1px solid rgba(28, 26, 23, .18);
  border-radius: 999px;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.74);
}

.variant-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 128px;
  gap: 12px;
  overflow-x: auto;
  padding: 2px 2px 14px;
  scroll-snap-type: inline mandatory;
  scrollbar-width: thin;
}

.variant-pill {
  scroll-snap-align: start;
  display: grid;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  padding: 8px;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.variant-pill.active {
  border-color: rgba(176, 132, 65, .85);
  box-shadow: 0 0 0 2px rgba(217, 173, 95, .22);
}

.variant-pill img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  background: var(--linen);
}

.variant-color-dot {
  width: 18px;
  height: 18px;
  border: 1px solid rgba(28, 26, 23, .18);
  border-radius: 999px;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.72);
}

.variant-pill strong {
  font-size: 12px;
}

.editorial {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background:
    linear-gradient(90deg, rgba(217, 173, 95, .13), transparent 38%),
    var(--linen);
  align-items: center;
}

.editorial-image {
  min-height: 600px;
  overflow: hidden;
}

.editorial-image img {
  width: 100%;
  height: 100%;
  min-height: 600px;
  object-fit: cover;
}

.editorial-copy {
  max-width: 560px;
  padding: clamp(38px, 7vw, 90px);
}

.editorial-copy p { color: var(--muted); }

.contact-showcase {
  background: #f4efe7;
  color: var(--ink);
}

.contact-hero {
  position: relative;
  min-height: 430px;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #d9cdbc;
}

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

.contact-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(244, 239, 231, .92), rgba(244, 239, 231, .54) 36%, rgba(244, 239, 231, .08));
}

.contact-hero-copy {
  position: relative;
  z-index: 1;
  width: min(520px, calc(100% - 44px));
  margin-left: clamp(28px, 7vw, 78px);
}

.contact-kicker,
.contact-panel-title span {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: #b08441;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.contact-kicker::after,
.contact-panel-title span::after {
  content: "";
  width: 120px;
  height: 1px;
  background: rgba(176, 132, 65, .42);
}

.contact-hero h2 {
  margin: 16px 0 18px;
  font-family: "Playfair Display", serif;
  font-size: clamp(48px, 7vw, 76px);
  line-height: .96;
  font-weight: 600;
}

.contact-hero p {
  max-width: 380px;
  margin: 0;
  line-height: 1.7;
  font-weight: 600;
}

.contact-panel {
  padding: clamp(42px, 6vw, 68px) clamp(26px, 7vw, 78px);
  background: #fbf7ef;
}

.contact-panel-title {
  margin-bottom: 34px;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px clamp(40px, 9vw, 120px);
}

.contact-info-grid a {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: start;
  gap: 18px;
  color: var(--ink);
}

.contact-icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(176, 132, 65, .25);
  background: transparent;
}

.contact-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.location-icon,
.email-icon,
.phone-icon,
.instagram-icon {
  color: #b08441;
}

.location-icon svg,
.email-icon svg,
.phone-icon svg,
.instagram-icon svg {
  stroke: currentColor;
}

.contact-info-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-family: "Playfair Display", serif;
  font-size: 18px;
  font-weight: 600;
}

.contact-info-grid a > span:last-child {
  color: #312c25;
  font-size: 14px;
  font-weight: 550;
  line-height: 1.62;
}

.thankyou-footer {
  min-height: min(760px, 88vh);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 34px;
  padding: clamp(80px, 12vw, 150px) 22px;
  background: #f7f2e8;
  text-align: center;
}

.thankyou-footer img {
  width: min(460px, 78vw);
}

.thankyou-footer p {
  margin: 0;
  color: #766f65;
  font-family: "Playfair Display", serif;
  font-size: clamp(42px, 8vw, 72px);
  line-height: 1.22;
}

body.nav-open .mobile-panel {
  display: block;
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
    min-height: var(--header-offset);
  }

  .menu-toggle { display: block; }
  .nav-links { display: none; }
  .logo-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    justify-self: center;
  }
  .action-button.search-toggle { display: none; }

  .hero {
    min-height: 690px;
    align-items: end;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(20,18,15,.08), rgba(20,18,15,.78));
  }

  .hero-copy {
    margin: 0;
    padding: 34px 22px;
  }

  .editorial,
  .contact-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .filter-buttons {
    justify-content: flex-start;
  }

  .product-modal-card {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .modal-media,
  .modal-media img {
    min-height: 360px;
  }
}

@media (max-width: 620px) {
  .site-header {
    gap: 12px;
    padding-inline: 14px;
  }

  .brand { font-size: 22px; }

  .logo-brand img {
    width: 168px;
    height: 60px;
  }
  .inquiry-link { padding-inline: 10px; }

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

  .contact-hero {
    min-height: 460px;
  }

  .contact-hero::after {
    background: linear-gradient(90deg, rgba(244, 239, 231, .94), rgba(244, 239, 231, .7));
  }

  .category-strip {
    padding-inline: 14px;
  }

  .category-strip a {
    min-height: 42px;
    padding-inline: 16px;
    font-size: 12px;
  }

  .product-grid {
    padding-inline: 14px;
  }

  .product-modal {
    padding: 12px;
  }

  .modal-copy {
    padding: 24px 18px;
  }

  .variant-rail {
    grid-auto-columns: 112px;
  }

  .collection-heading {
    align-items: start;
    flex-direction: column;
  }

  .collection-rail {
    grid-auto-columns: minmax(220px, 78vw);
  }

  .editorial-image,
  .editorial-image img {
    min-height: 360px;
  }

  .thankyou-footer {
    min-height: 68vh;
  }
}
