.shop-workspace {
  --shop-paper: #f7eedc;
  --shop-ink: #243c32;
  --shop-muted: #574e40;
  --shop-rule: #bba47a;
  min-height: 100vh;
  background: #213a32 url('/brand/forest-grain.webp') repeat;
  color: #fbefda;
}

.shop-header {
  padding-inline: max(1.2rem, calc((100vw - 74rem) / 2));
}

.shop-header nav a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  font-size: 1rem;
}

.shop-header nav a[aria-current="page"] {
  color: #ffdf9d;
  border-color: currentColor;
}

.shop-main {
  width: min(74rem, calc(100% - 2.4rem));
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) 0 4rem;
}

.shop-intro {
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
  padding-bottom: 1.35rem;
  border-bottom: 1px solid #ad9165;
}

.privacy-label {
  display: inline-block;
  padding: .16rem .7rem;
  border: 1px solid #b99a68;
  border-radius: 3px;
  color: #ffdf9d;
  font: 600 .875rem/1.6 system-ui, sans-serif;
}

.shop-intro h1 {
  margin: .55rem 0 .45rem;
  font: 400 clamp(2.8rem, 6vw, 5.6rem)/.98 'Cormorant Garamond', Georgia, serif;
  letter-spacing: -.045em;
}

.shop-intro p {
  margin: 0;
  color: #f5e8d2;
  font-size: 1.15rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.9rem, 2.4vw, 1.6rem);
}

.product-card, .editor-panel {
  overflow: hidden;
  border: 1px solid var(--shop-rule);
  border-radius: 5px;
  background: var(--shop-paper);
  color: var(--shop-ink);
  box-shadow: 0 10px 25px #111f1a50;
}

.product-card, .product-copy {
  display: flex;
  flex-direction: column;
}

.product-art {
  display: grid;
  min-width: 0;
  place-items: center;
  position: relative;
  isolation: isolate;
  padding: 1.15rem;
  background: radial-gradient(ellipse at 48% 39%, #e8dbc1, #b6a585);
}

.product-art::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: .58rem;
  border: 1px solid #6c56316b;
}

.product-art img {
  display: block;
  width: 100%;
  height: clamp(11rem, 21vw, 16rem);
  object-fit: contain;
  filter: drop-shadow(0 7px 8px #392c2463);
}

.product-copy {
  flex: 1;
  padding: 1.15rem clamp(.9rem, 2vw, 1.4rem) 1.35rem;
}

.product-meta, .product-details {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .45rem .65rem;
  font: 400 .875rem/1.4 system-ui, sans-serif;
}

.product-meta, .product-kind {
  color: var(--shop-muted);
}

.product-status {
  padding: .24rem .55rem;
  border-radius: 3px;
  background: #e5e6d6;
  color: #2c4b3b;
  font-weight: 650;
}

.product-copy h2 {
  margin: .65rem 0 .25rem;
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  line-height: 1;
}

.product-copy p, .preview-copy p {
  margin: .2rem 0 1rem;
  color: var(--shop-muted);
  font-size: 1.05rem;
  line-height: 1.44;
}

.product-details {
  margin-top: auto;
  padding: .75rem 0;
  border-top: 1px solid #cebd9f;
  color: var(--shop-muted);
}

.shop-workspace .shop-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .52rem .9rem;
  border: 1px solid #294336;
  border-radius: 3px;
  background: #294336;
  color: #fff4de;
  font: 600 .94rem/1.25 system-ui, sans-serif;
  text-decoration: none;
  clip-path: none;
  box-shadow: none;
}

.shop-workspace .shop-button:hover {
  background: #3b5949;
}

.shop-workspace :focus-visible {
  outline: 3px solid #966027;
  outline-offset: 3px;
}

.shop-workspace .shop-header :focus-visible {
  outline-color: #ffdf9d;
}

.editor-panel {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.65fr);
  max-width: 64rem;
}

.editor-preview {
  align-self: stretch;
  background: #eae0ca;
  border-right: 1px solid var(--shop-rule);
}

.preview-copy {
  padding: 1.15rem 1.35rem;
}

.product-kind {
  font: 600 .875rem/1.35 system-ui, sans-serif;
}

.draft-form {
  min-width: 0;
  padding: clamp(1.2rem, 3.4vw, 2.5rem);
}

.field-pair {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: .8rem;
  margin-bottom: 1rem;
}

.draft-form label {
  display: block;
  font: 650 .94rem/1.4 system-ui, sans-serif;
}

.draft-form input, .draft-form select {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: .28rem 0 0;
  padding: .58rem .65rem;
  border: 1px solid #8b795e;
  border-radius: 3px;
  background: #fffbf0;
  color: var(--shop-ink);
  font: 400 1rem/1.3 system-ui, sans-serif;
}

.draft-form input::placeholder {
  color: #6b6356;
  opacity: 1;
}

.draft-form select {
  appearance: none;
  padding-right: 2rem;
  background-image: linear-gradient(45deg, transparent 50%, #294336 50%), linear-gradient(135deg, #294336 50%, transparent 50%);
  background-position: calc(100% - 15px) center, calc(100% - 10px) center;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

.field-hint {
  margin: .36rem 0 1rem;
  color: var(--shop-muted);
  font: 400 .875rem/1.45 system-ui, sans-serif;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1rem;
  align-items: center;
  margin-top: 1.35rem;
}

.form-actions a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  text-underline-offset: 4px;
}

.form-message, .service-message {
  padding: .65rem .8rem;
  margin: 0 0 1rem;
  background: #dce8d5;
  color: #254034;
  border-left: 3px solid #526a4f;
  font: 500 .95rem/1.45 system-ui, sans-serif;
}

.form-error {
  background: #f2dcd5;
  color: #632b24;
  border-color: #793d35;
}

@media (max-width: 760px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 540px) {
  .shop-main {
    width: calc(100% - 1.6rem);
  }
  .product-grid, .editor-panel {
    grid-template-columns: 1fr;
  }
  .editor-preview {
    border-right: 0;
    border-bottom: 1px solid var(--shop-rule);
  }
  .product-art img {
    height: 12rem;
  }
}
