.shop-storefront {
  margin: 0 auto clamp(2rem, 5vw, 4.5rem);
}
.shop-storefront-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.5rem, 4vw, 3rem) max(1rem, calc((100% - 72rem) / 2));
  color: #fff9ee;
  background: var(--brand-green);
  border-block: 1px solid #a48755;
}
.shop-storefront-heading h1 { color: inherit; margin: 0; font: 700 1rem/1.5 var(--sans, sans-serif); }
.shop-storefront-heading .button { background: #f4e4c4; color: #163532; }
.shop-storefront-heading .button svg { vertical-align: middle; margin-right: .4rem; }
.shop-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr));
  align-items: start;
  gap: 1.5rem;
}
.shop-product {
  max-width: 33rem;
  border-radius: 1rem;
  overflow: hidden;
  background: #fffdf7;
  border: 1px solid #ded3bb;
}
.shop-product img { display: block; width: 100%; height: auto; }
.shop-product-info { padding: clamp(1rem, 3vw, 1.75rem); }
.shop-product-info h2 { margin: 0 0 .5rem; }
.shop-product-info--preview h2 { font-size: 1.35rem; }
.shop-product-info--preview p { margin: 0; }
.shop-product-info [role="status"]:empty { display: none; }
.shop-cart-dialog {
  width: min(32rem, calc(100% - 1.25rem));
  max-height: calc(100dvh - 1.25rem);
  margin: auto;
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid #b0976a;
  border-radius: 1rem;
  color: #142f2b;
  background: #fffdf7;
}
.shop-cart-dialog::backdrop { background: rgb(12 34 32 / 66%); }
.shop-cart-close {
  position: absolute;
  inset: .75rem .75rem auto auto;
  min-width: 2.75rem;
  min-height: 2.75rem;
  display: grid;
  place-items: center;
  border: 1px solid #ded3bb;
  border-radius: .65rem;
  background: #fffdf7;
  color: inherit;
  cursor: pointer;
}
.shop-cart-content h2 { padding-right: 2.5rem; margin-top: 0; }
.shop-cart-item { border-block-start: 1px solid #ded3bb; padding: .75rem 0; }
.shop-cart-item label { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: .75rem 0; }
.shop-cart-item input { width: 5rem; }
.shop-cart-actions, .shop-checkout-options { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }

.shop-catalog-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
}
.portal-rail.shop-category-panel {
  position: static;
  height: auto;
  min-height: min(40rem, 80vh);
  overflow: visible;
}
.shop-category-panel .portal-nav-label {
  font: 700 0.75rem/1.4 var(--sans);
  text-transform: uppercase;
}
.shop-category-panel nav button {
  background: transparent;
  font-family: var(--sans);
  text-align: left;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.shop-category-panel nav button:focus-visible {
  outline: 2px solid #ead5a4;
  outline-offset: 2px;
}
.shop-catalog-products {
  width: 100%;
  max-width: 75rem;
  padding: clamp(1rem, 4vw, 3rem);
}
.shop-catalog-products > h2 {
  margin: 0 0 .85rem;
  color: var(--brand-green);
  font: 400 clamp(1.55rem, 3vw, 2.15rem)/1.12 var(--serif, Georgia);
}
.shop-catalog-products .shop-product-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }
.shop-catalog-products .shop-product img { max-height: 26rem; object-fit: contain; background: #0f2930; }
@media (min-width: 1600px) {
  .shop-catalog-layout { grid-template-columns: 280px minmax(0, 1fr); }
}
@media (min-width: 801px) and (max-width: 1200px) {
  .shop-catalog-layout { grid-template-columns: 215px minmax(0, 1fr); }
}
@media (max-width: 800px) {
  .shop-catalog-layout { grid-template-columns: minmax(0, 1fr); }
  .portal-rail.shop-category-panel { min-height: auto; }
  .shop-category-panel nav { flex-wrap: wrap; overflow: visible; }
  .shop-category-panel .portal-nav-label { display: block; margin: .75rem 0 0; }
}
