:root {
  --store-error: #7b2b23;
}
.store-main {
  padding-block: 2rem 3rem;
  min-height: 45vh;
}
.store-main > section {
  margin-block: 2.5rem;
}
.sandbox-banner {
  border: 1px solid #8c691e;
  background: #f3e8c8;
  padding: 0.9rem 1.2rem;
  color: #493b17;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}
.store-main .portfolio-notice {
  margin-top: 0;
}
.shop-grid {
  padding-block: 2rem;
}
.shop-grid h2 {
  font-size: 1.7rem;
  margin-bottom: 0.5rem;
}
.store-image {
  padding: 1.5rem;
  background: #edeae0;
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
}
.store-image > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.store-image > .art-placeholder {
  display: none;
  height: 100%;
  min-height: 0;
}
.store-image.is-placeholder > .art-placeholder {
  display: flex;
}
.store-product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6%;
  margin-top: 2rem;
}
.store-product h1 {
  font-size: clamp(2.3rem, 4vw, 4rem);
}
.store-variants {
  list-style: none;
  padding: 0;
}
.store-variants li {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-block: 0.8rem;
  font-size: 0.85rem;
}
.store-main h2 {
  font-size: 2rem;
  margin-top: 2rem;
}
.store-main h3 {
  font-size: 1.5rem;
}
.store-main form {
  max-width: 720px;
}
.store-field {
  margin-bottom: 1.3rem;
}
.store-field > label,
.cart-lines label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}
.store-field > input,
.store-field > select,
.filters input,
.cart-lines input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #899385;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  padding: 0.7rem;
  border-radius: 0;
}
.store-main fieldset {
  border: 1px solid var(--line);
  padding: 1.4rem;
  margin: 1.5rem 0;
  min-width: 0;
}
.store-main legend {
  font: 1.3rem var(--serif);
  padding-inline: 0.5rem;
}
.store-checkbox {
  display: flex;
  align-items: start;
  gap: 0.7rem;
  margin-block: 1.5rem;
}
.store-checkbox input {
  width: 22px;
  height: 22px;
  flex: none;
  margin-top: 0.2rem;
}
.store-checkbox label {
  font-size: 0.9rem;
}
.store-error {
  background: #f8e8e1;
  border: 1px solid var(--store-error);
  color: var(--store-error);
  padding: 1rem;
  margin-block: 1.5rem;
}
.store-error ul {
  margin-bottom: 0;
}
.account-panel {
  max-width: 620px;
  margin: 2rem auto;
}
.account-panel h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
}
.account-panel > .text-link {
  margin-top: 1rem;
}
.cart-lines,
.review-lines,
.order-history {
  list-style: none;
  padding: 0;
}
.cart-lines > li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px auto;
  gap: 1.5rem;
  border-bottom: 1px solid var(--line);
  padding-block: 1.5rem;
  align-items: center;
}
.cart-lines h2 {
  font-size: 1.6rem;
  margin-top: 0;
}
.cart-lines input {
  margin-bottom: 0.6rem;
}
.cart-lines .button {
  font-size: 0.8rem;
  padding: 0.7rem;
}
.review-lines > li {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-block: 1rem;
}
.review-lines strong {
  flex-basis: 100%;
  font: 1.4rem var(--serif);
}
.cost-summary {
  border: 1px solid var(--line);
  padding: 1.5rem;
  background: var(--white);
  max-width: 720px;
  margin-block: 2rem;
}
dl.cost-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
}
.cost-summary dd {
  margin: 0;
  text-align: right;
}
.cost-summary h2 {
  margin-top: 0;
}
.order-state {
  font-size: 1.3rem;
  font-family: var(--serif);
}
.order-history > li {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
}
.order-history a {
  overflow-wrap: anywhere;
}
.store-main address {
  font-style: normal;
  margin-block: 1.5rem;
}
.store-main .secondary {
  background: transparent;
  color: var(--forest);
}
.store-main .secondary:hover {
  background: var(--sage);
}
.store-main .filters {
  max-width: none;
}
.store-main .filters input {
  min-width: 0;
}
.store-main .plain-content {
  font-size: 1rem;
}
.store-main > .page-heading {
  padding-top: 1rem;
}
@media (max-width: 760px) {
  .store-product {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .cart-lines > li {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
  .cart-lines > li > div {
    grid-column: 1/-1;
  }
  .store-main h2 {
    font-size: 1.7rem;
  }
  .review-lines > li {
    justify-content: start;
  }
  .store-main fieldset {
    padding: 1rem;
  }
  .store-main form .button {
    max-width: 100%;
  }
  .store-product .store-image {
    max-height: 600px;
  }
  .store-image .art-placeholder {
    min-height: 180px;
  }
  .store-main {
    padding-top: 1.5rem;
  }
}

.plain-text { white-space: pre-line; max-width: 75ch; line-height: 1.8; }
.footer-legal { padding-block: 1rem; }
