.shop {
  --ink: #352217;
  --paper: #fff;
  --linen: #e3d4c1;
  --edge: #c5aa8a;
  --gold: #926f39;
  --soft-ink: #665549;
  color: var(--ink);
  padding-block: clamp(1.25rem, 3vw, 3rem) clamp(2.5rem, 5vw, 5rem);
}

.shop h1,
.shop h2,
.shop h3,
.shop p {
  margin: 0;
}

.shop h1 {
  font-size: clamp(2.25rem, 3.3vw, 3.4rem);
  line-height: 1.12;
  font-weight: 600;
}

.shop h2 {
  font-size: clamp(1.6rem, 2.4vw, 2.3rem);
  line-height: 1.2;
  font-weight: 550;
}

.shop h3 {
  font-size: 1.3rem;
}

.shop p {
  line-height: 1.55;
}

.shop a {
  color: inherit;
}

.shop .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: .65rem 1.3rem;
  text-decoration: none;
  border: 1px solid var(--ink);
  border-radius: .35rem;
  background: var(--ink);
  color: white;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.shop .button.secondary {
  background: white;
  color: var(--ink);
  border-color: var(--edge);
}

.shop .button:hover {
  filter: brightness(1.13);
}

.shop input:not([type=checkbox]),
.shop select,
.shop textarea {
  font: inherit;
  color: var(--ink);
  background: white;
  border: 1px solid var(--edge);
  border-radius: .35rem;
  min-width: 0;
  padding: .65rem .76rem;
  width: 100%;
}

.shop label {
  display: grid;
  gap: .42rem;
  font-size: .94rem;
  font-weight: 600;
}

.shop label.check {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-weight: 500;
}

.shop input[type=checkbox] {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--ink);
}

.shop :is(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.shop .page-intro,
.shop .result-count,
.shop .quiet,
.shop .crumbs {
  color: var(--soft-ink);
}

.shop .quiet,
.shop .crumbs,
.shop .result-count {
  font-size: .95rem;
}

.shop .page-intro {
  margin: .65rem 0 1.65rem;
  max-width: 52rem;
}

.shop .inline-link {
  display: block;
  margin-top: .9rem;
  text-underline-offset: .25em;
}

.shop .hero-frame {
  background: #ae9476 url('/static/media/interior-960.webp') center 48% / cover;
  padding: clamp(.65rem, 2.25vw, 2rem);
}

.hero-surface {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: clamp(23rem, 35vw, 37rem);
  align-items: center;
  background: white;
  border: 1px solid var(--edge);
  border-bottom: 3px solid var(--ink);
}

.hero-copy {
  padding: clamp(1.25rem, 3.05vw, 3.5rem);
}

.hero-copy .brandline {
  font-weight: 650;
  letter-spacing: .085em;
  text-transform: uppercase;
  color: var(--gold);
  font-size: .95rem;
  margin-bottom: clamp(.85rem, 2.6vw, 2.5rem);
}

.shop .hero-copy h1 {
  font-size: clamp(2.65rem, 4.25vw, 4.7rem);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.03;
}

.hero-copy h1 span {
  font-size: .84em;
}

.hero-copy h1+p {
  margin: clamp(.95rem, 2vw, 2rem) 0;
  font-size: clamp(1.05rem, 1.45vw, 1.3rem);
}

.hero-copy .button {
  min-width: 12.4rem;
}

.shop .hero-image {
  width: 100%;
  height: auto;
  max-height: 32rem;
  object-fit: contain;
  display: block;
  padding: 2.5%;
}

.category-pills,
.actions,
.variants {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .65rem;
}

.category-pills {
  margin: 1.2rem 0;
}

.category-pills a,
.variants a {
  padding: .4rem .9rem;
  background: var(--linen);
  border-radius: 2rem;
  text-decoration: none;
  font-size: .95rem;
}

.category-pills a:hover,
.variants a:hover {
  text-decoration: underline;
}

.section-title {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: baseline;
  margin: 1.25rem 0 .9rem;
}

.section-title a {
  white-space: nowrap;
  text-underline-offset: .22em;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.75rem, 2.6vw, 2.5rem);
}

.product-card {
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid var(--edge);
  border-top: 3px solid var(--gold);
  border-radius: .35rem;
  overflow: hidden;
  text-decoration: none;
  min-width: 0;
}

.product-card:hover {
  border-color: var(--gold);
  box-shadow: 0 4px 18px #35221716;
}

.product-card>img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.04;
  object-fit: contain;
  display: block;
  padding: .6rem;
}

.card-copy {
  padding: .9rem 1rem 1rem;
  margin-top: auto;
}

.shop .card-copy h3,
.shop .card-copy h2 {
  font-size: 1.4rem;
  font-weight: 600;
}

.shop .card-copy p {
  margin: .35rem 0 .8rem;
  color: var(--soft-ink);
  font-size: .94rem;
}

.card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .35rem;
}

.card-action strong {
  font-size: 1.16rem;
}

.card-action span {
  font-size: .93rem;
}

.material-strip,
.story-block,
.partner-pitch {
  display: grid;
  align-items: center;
  margin-top: 1.8rem;
  gap: clamp(1rem, 3vw, 3rem);
}

.material-strip {
  grid-template-columns: minmax(10rem, 24%) 1fr auto;
  background: var(--linen);
  padding-right: 4%;
}

.material-strip>img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 14rem;
  object-fit: cover;
}

.material-strip p,
.story-block p,
.pitch-card p {
  margin: .6rem 0;
}

.catalog-filters {
  margin: 1.6rem 0 1rem;
  display: grid;
  grid-template-columns: 1.55fr 1.05fr 1fr 1fr auto auto;
  align-items: end;
  gap: .85rem;
}

.catalog-filters .check {
  min-height: 2.8rem;
  white-space: nowrap;
}

.result-count {
  margin-bottom: 1.15rem !important;
}

.notice-box,
.summary-box {
  padding: clamp(1.2rem, 2.4vw, 2.25rem);
  background: var(--linen);
}

.notice-box p,
.summary-box p {
  margin: .7rem 0 1.2rem;
}

.shop .crumbs {
  margin-bottom: 1.05rem;
}

.product-detail,
.story-block {
  border: 1px solid var(--edge);
  border-radius: .35rem;
  background: white;
}

.product-detail {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  padding: clamp(1rem, 2.2vw, 2.25rem);
  gap: clamp(1.5rem, 3vw, 3rem);
}

.gallery .main-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 1.36;
  object-fit: contain;
  display: block;
}

.thumbs {
  display: flex;
  gap: .75rem;
  margin-top: .75rem;
  flex-wrap: wrap;
}

.thumbs img {
  display: block;
  object-fit: contain;
}

.thumbs a {
  border: 1px solid transparent;
}

.thumbs a[aria-current] {
  border-color: var(--gold);
}

.product-info {
  border-left: 1px solid var(--edge);
  padding-left: clamp(1.5rem, 2.8vw, 3rem);
}

.shop .product-sub,
.shop .pdp-price {
  margin: .6rem 0 .9rem;
}

.shop .pdp-price {
  font-size: clamp(1.7rem, 2.5vw, 2.3rem);
  font-weight: 600;
}

.variants {
  margin: .5rem 0 1.25rem;
}

.variants a {
  border-radius: .3rem;
  border: 1px solid var(--edge);
  background: white;
}

.variants a[aria-current] {
  background: var(--ink);
  color: white;
}

.shop .stock-info {
  color: #3d624d;
  font-weight: 600;
  margin-top: .9rem;
}

.buy-row {
  display: flex;
  gap: .8rem;
  align-items: end;
  margin: .75rem 0;
}

.buy-row label {
  max-width: 7rem;
}

.buy-row .button {
  flex: 1;
}

.detail-notes,
.help-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 3vw, 3rem);
  align-items: start;
  margin-top: 1.5rem;
}

.detail-notes>div:last-child {
  padding: 1rem;
}

.detail-notes p {
  margin-top: .65rem;
}

.story-block {
  grid-template-columns: 1fr 1fr;
  padding: clamp(1rem, 2.3vw, 2.3rem);
  margin-bottom: 2rem;
}

.story-block img {
  width: 100%;
  height: auto;
  max-height: 28rem;
  object-fit: contain;
}

.story-block p {
  max-width: 44ch;
}

.story-block .button {
  margin-top: 1rem;
}

.series-grid {
  margin-top: 1rem;
}

.partner-pitch {
  grid-template-columns: .8fr 1fr 1fr;
  align-items: stretch;
  margin-bottom: 1.5rem;
}

.partner-pitch>img {
  width: 100%;
  height: 100%;
  max-height: 18rem;
  object-fit: cover;
}

.pitch-card,
.help-content,
.receipt-panel {
  border: 1px solid var(--edge);
  background: white;
  padding: clamp(1rem, 2.3vw, 2rem);
  border-radius: .3rem;
}

.help-layout {
  grid-template-columns: minmax(10rem, 1fr) 3fr;
}

.help-nav {
  display: grid;
  gap: .5rem;
}

.help-nav a {
  padding: .75rem;
  text-decoration: none;
  background: white;
  border: 1px solid var(--edge);
  border-radius: .3rem;
}

.help-nav a[aria-current] {
  background: var(--ink);
  color: white;
}

.help-content h3,
.help-content p {
  margin: 1rem 0 .5rem;
}

.checkout-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(15rem, 1fr);
  gap: clamp(1rem, 3vw, 3rem);
  margin: 1.8rem 0;
  align-items: start;
}

.basket-lines,
.receipt-lines {
  background: white;
}

.basket-line {
  border-bottom: 1px solid var(--edge);
  padding: 1rem;
  display: grid;
  grid-template-columns: auto minmax(7rem, 1fr) minmax(7rem, auto) auto;
  align-items: center;
  gap: .75rem;
}

.basket-line img {
  object-fit: contain;
}

.item-name {
  font-weight: 600;
  text-decoration: none;
}

.update-line {
  display: flex;
  flex-wrap: wrap;
  width: 8rem;
  gap: .15rem .65rem;
}

.update-line label {
  display: grid;
}

.text-button {
  background: none;
  color: inherit;
  padding: .3rem 0;
  border: 0;
  cursor: pointer;
  text-decoration: underline;
  font: inherit;
  font-size: .88rem;
}

.row-issue,
.errorlist {
  color: #873c27;
}

.row-issue {
  grid-column: 1/-1;
}

.errorlist {
  margin: .2rem 0;
  padding-left: 1.1rem;
}

.checkout-fields {
  display: grid;
  gap: 1.05rem;
  align-content: start;
}

.field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.totals,
.receipt-lines li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin: .85rem 0;
}

.grand-total {
  font-size: 1.4rem;
  border-top: 1px solid var(--edge);
  padding-top: 1rem;
  margin-bottom: 1.3rem;
}

.summary-box .button {
  width: 100%;
}

.back-link {
  margin-top: 1rem;
}

.receipt-panel {
  max-width: 45rem;
  margin: 0 auto;
}

.receipt-panel h1 {
  margin: .6rem 0;
}

.receipt-lines {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.receipt-lines li {
  border-bottom: 1px solid var(--edge);
  padding: .6rem 0;
}

@media(max-width: 980px) {
  .catalog-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .checkout-columns {
    grid-template-columns: minmax(0, 1.5fr) minmax(13rem, 1fr);
  }

  .basket-line {
    grid-template-columns: auto 1fr auto;
  }

  .basket-line>strong {
    grid-column: 2;
  }

  .hero-copy h1+p br {
    display: none;
  }
}

@media(max-width: 700px) {
  .shop {
    padding-block: 1.1rem 2.5rem;
  }

  .hero-surface,
  .product-detail,
  .checkout-columns,
  .help-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 1.4rem 1.15rem .5rem;
  }

  .hero-copy h1 span {
    font-size: .86em;
  }

  .shop .hero-image {
    max-height: 18rem;
    padding: 0 4% 3%;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-title {
    align-items: end;
  }

  .section-title h2 {
    font-size: 1.55rem;
  }

  .section-title>a {
    font-size: .88rem;
  }

  .card-copy {
    padding: .65rem;
  }

  .shop .card-copy h3,
  .shop .card-copy h2 {
    font-size: 1.18rem;
  }

  .shop .card-copy p {
    font-size: .85rem;
  }

  .card-action {
    flex-wrap: wrap;
  }

  .card-action span {
    font-size: .8rem;
  }

  .category-pills {
    gap: .45rem;
  }

  .material-strip {
    grid-template-columns: 1fr 1.5fr;
    padding: 0 .8rem .8rem 0;
    gap: .75rem;
  }

  .material-strip h2 {
    font-size: 1.35rem;
  }

  .material-strip>img {
    height: 100%;
    grid-row: span 2;
    min-height: 10rem;
    object-fit: cover;
  }

  .material-strip>div {
    padding-top: .8rem;
  }

  .material-strip p {
    font-size: .95rem;
  }

  .material-strip .button {
    justify-self: start;
  }

  .catalog-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-filters label:first-child {
    grid-column: 1/-1;
  }

  .product-info {
    border-left: 0;
    border-top: 1px solid var(--edge);
    padding: 1rem 0 0;
  }

  .detail-notes,
  .story-block,
  .partner-pitch {
    grid-template-columns: 1fr;
  }

  .story-block {
    gap: 1rem;
  }

  .partner-pitch>img {
    max-height: 13rem;
  }

  .help-nav {
    grid-template-columns: 1fr 1fr;
  }

  .basket-line {
    padding: .8rem;
    grid-template-columns: 3rem minmax(0, 1fr) auto;
  }

  .basket-line img {
    width: 3rem;
    height: 3rem;
  }

  .update-line {
    grid-column: 2;
    grid-row: auto;
  }

  .basket-line>strong {
    grid-column: 3;
  }
}

@media(max-width: 400px) {
  .field-pair {
    grid-template-columns: 1fr;
  }

  .shop .hero-copy h1 {
    font-size: 2.3rem;
  }
}
