:root {
  --ink: #121417;
  --muted: #667085;
  --paper: #fbfaf6;
  --surface: #ffffff;
  --line: #e5e0d8;
  --gold: #c7932f;
  --gold-dark: #8a641e;
  --emerald: #0f766e;
  --rose: #b83280;
  --danger: #be123c;
  --shadow: 0 24px 70px rgba(18, 20, 23, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(251, 250, 246, 0.92);
  border-bottom: 1px solid rgba(229, 224, 216, 0.82);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

.brand__mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: var(--ink);
  border: 2px solid var(--gold);
  border-radius: 50%;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
}

.top-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  color: #344054;
  font-weight: 650;
}

.icon-button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 760;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.button:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

.button--primary {
  color: #fff;
  background: var(--ink);
  box-shadow: 0 14px 30px rgba(18, 20, 23, 0.18);
}

.button--ghost,
.icon-button {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line);
}

.cart-count {
  display: grid;
  min-width: 24px;
  height: 24px;
  margin-right: 8px;
  place-items: center;
  color: #fff;
  background: var(--emerald);
  border-radius: 999px;
  font-size: 0.82rem;
}

.commerce-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 128px);
  padding: clamp(34px, 6vw, 82px) clamp(18px, 5vw, 76px) clamp(30px, 5vw, 60px);
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(3rem, 6vw, 5.8rem);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 8px;
  font-size: clamp(1.55rem, 3vw, 2.7rem);
  line-height: 1.04;
}

.hero-copy p:not(.eyebrow) {
  color: #475467;
  font-size: clamp(1.02rem, 1.3vw, 1.2rem);
  line-height: 1.7;
}

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

.hero-showcase {
  display: grid;
  grid-template-columns: 1fr 0.78fr;
  gap: 14px;
  align-items: stretch;
}

.hero-showcase img {
  width: 100%;
  min-height: 230px;
  object-fit: cover;
  background: #f2efe8;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-showcase img:first-child {
  grid-row: span 2;
  min-height: 520px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  padding: 0 clamp(18px, 5vw, 76px);
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-strip div {
  padding: 24px;
  background: var(--surface);
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip span {
  margin-top: 4px;
  color: var(--muted);
}

.catalog-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 28px;
  padding: clamp(34px, 5vw, 68px) clamp(18px, 5vw, 76px);
}

.filters {
  position: sticky;
  top: 104px;
  align-self: start;
  display: grid;
  gap: 18px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.filters label,
.checkout-form label {
  display: grid;
  gap: 8px;
  color: #344054;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.22);
  outline-offset: 2px;
}

.check-row {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
}

.check-row input {
  width: 18px;
  min-height: 18px;
}

.catalog-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.catalog-toolbar span {
  color: var(--muted);
  font-weight: 700;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}

.product-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 46px rgba(18, 20, 23, 0.12);
}

.product-card__image {
  position: relative;
  aspect-ratio: 4 / 5;
  background: #f0ece3;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  color: #fff;
  background: var(--emerald);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
}

.badge--sold {
  background: var(--danger);
}

.product-card__body {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.product-card__meta {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.product-card h3 {
  min-height: 46px;
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.25;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 850;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.product-actions .button {
  min-height: 40px;
  padding-inline: 12px;
  font-size: 0.9rem;
}

.checkout-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(22px, 4vw, 52px);
  padding: clamp(34px, 5vw, 68px) clamp(18px, 5vw, 76px);
  color: #fff;
  background: #17191d;
}

.checkout-band .eyebrow {
  color: #f0c56a;
}

.checkout-band p {
  color: #d0d5dd;
}

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

.checkout-form textarea,
.checkout-form button {
  grid-column: 1 / -1;
}

.form-status {
  grid-column: 2;
  margin: 0;
}

.cart {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 30;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(420px, 100%);
  padding: 20px;
  background: var(--surface);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: translateX(105%);
  transition: transform 220ms ease;
}

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

.cart__header,
.cart__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cart__items {
  display: grid;
  align-content: start;
  gap: 12px;
  overflow: auto;
  padding: 20px 0;
}

.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cart-item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
}

.cart-item button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
}

.product-shell {
  padding: clamp(22px, 5vw, 70px);
}

.back-link {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--emerald);
  font-weight: 800;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(300px, 1fr);
  gap: clamp(28px, 5vw, 74px);
  align-items: center;
}

.product-detail__media {
  background: #f0ece3;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.product-detail__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
}

.product-detail__content h1 {
  font-size: clamp(2.4rem, 5vw, 5rem);
}

.product-detail__price {
  color: var(--emerald);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 900;
}

.empty-state {
  padding: 36px;
  text-align: center;
  color: var(--muted);
  background: #fff;
  border: 1px dashed #d0d5dd;
  border-radius: 8px;
}

@media (max-width: 920px) {
  .site-header {
    flex-wrap: wrap;
  }

  .top-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .commerce-hero,
  .catalog-layout,
  .checkout-band,
  .product-detail {
    grid-template-columns: 1fr;
  }

  .commerce-hero {
    min-height: auto;
  }

  .hero-showcase img:first-child {
    min-height: 360px;
  }

  .filters {
    position: static;
  }

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

@media (max-width: 620px) {
  h1 {
    font-size: 3rem;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .hero-showcase,
  .checkout-form {
    grid-template-columns: 1fr;
  }

  .hero-showcase img,
  .hero-showcase img:first-child {
    min-height: 230px;
  }

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

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

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