.cart-button {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  min-height: 2.45rem;
  padding: .45rem .7rem;
  border: 1px solid #6c57435f;
  border-radius: 99rem;
  background: #e2b68108;
  color: var(--gold);
  font: inherit;
  font-size: .79rem;
  font-weight: 750;
  cursor: pointer;
}
.cart-button:hover { background: #e2b68118; }
.cart-button .icon { width: 1.35rem; height: 1.35rem; }
.cart-dialog {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(100%, 27rem);
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: #efe2cb;
  color: #242015;
  color-scheme: light;
  box-shadow: -1rem 0 3rem #14120e68;
}
.cart-dialog::backdrop { background: #17160eb3; }
.cart-dialog-inner { padding: clamp(1.25rem, 3.2vw, 2rem); }
.cart-header { display: flex; align-items: start; justify-content: space-between; gap: 1rem; padding-bottom: 1.2rem; }
.cart-header h2 { font-size: clamp(2.1rem, 5vw, 3rem); }
.cart-close { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 1px solid #956c4f94; border-radius: 50%; color: #654831; background: transparent; cursor: pointer; }
.cart-close:hover { background: #5c3a26; color: var(--text); }
.cart-items { list-style: none; margin: 0; padding: 0; }
.cart-items li { display: grid; gap: .38rem; padding: .85rem 0; border-top: 1px solid #aa8b6655; }
.cart-items li > a { font-family: var(--serif); font-size: 1.3rem; text-decoration: none; }
.cart-items li > a:hover { text-decoration: underline; }
.cart-items li > div { display: flex; align-items: center; justify-content: space-between; gap: .5rem; color: #654831; font-size: .9rem; }
.cart-items button { padding: .3rem .6rem; color: inherit; background: transparent; border: 1px solid #956c4f74; border-radius: .3rem; font: inherit; cursor: pointer; }
.cart-items button:hover { background: #f7eddd; }
.cart-footnote { margin-top: 1rem; border-top: 1px solid #aa8b6666; padding-top: 1rem; color: #654831; font-size: .9rem; }

.product-shop {
  color-scheme: light;
  color: var(--ink);
  background: radial-gradient(ellipse at 70% 8%, #fff1db, transparent 34%), #eee0c7;
  padding-top: clamp(1.65rem, 3.2vw, 3rem);
}
.product-shop .breadcrumbs { color: #6a492f; margin-bottom: clamp(1.25rem, 3vw, 2.3rem); font-size: .9rem; }
.product-shop .breadcrumbs a:hover { color: #3f291b; }
.product-shop .detail-inner { grid-template-columns: minmax(0, 1.13fr) minmax(0, .87fr); gap: clamp(1.5rem, 5vw, 5rem); }
.shop-gallery { display: flex; align-items: flex-start; gap: .85rem; min-width: 0; }
.shop-thumbnails { display: grid; gap: .6rem; flex: 0 0 clamp(3rem, 6vw, 5rem); }
.shop-thumbnails a { display: grid; place-items: center; border: 1px solid #b39777; border-radius: .38rem; aspect-ratio: 1; background: #f8eddb; overflow: hidden; }
.shop-thumbnails a[aria-current] { outline: 1px solid #6f4329; outline-offset: -2px; }
.shop-thumbnails img { width: 100%; height: 100%; object-fit: cover; }
.shop-main-photo {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  aspect-ratio: 1 / 1.04;
  display: grid;
  place-items: center;
  position: relative;
  border: 1px solid #a68a671e;
  border-radius: .7rem;
  overflow: hidden;
  background: #e5d8c0;
}
.shop-main-photo img { width: 100%; height: 100%; object-fit: contain; }
.shop-gallery-dark .shop-main-photo { background: radial-gradient(ellipse at 47% 47%, #644c2e 0%, #2f2518 61%, #241d15); }
.shop-gallery-dark .shop-main-photo img { width: 65%; height: 77%; filter: drop-shadow(1.2rem 1.4rem 1.25rem #17110cb5); }
.shop-gallery-dark .shop-thumbnails a { background: #47382a; }
.shop-gallery-dark .shop-thumbnails img { width: 70%; height: 83%; object-fit: contain; }
.product-shop .detail-copy .kicker { color: #83583a; }
.product-shop .detail-copy h1 { margin-block: .65rem 1.02rem; font-size: clamp(2.25rem, 4.65vw, 4.4rem); }
.product-shop .detail-description { color: #5b4530; font-size: clamp(1rem, 1.7vw, 1.16rem); }
.shop-meta { display: flex; flex-wrap: wrap; gap: .55rem; margin: .95rem 0 0; padding: 0; list-style: none; }
.shop-meta li { border: 1px solid #946d4c68; border-radius: 99rem; color: #674a35; padding: .24rem .59rem; font-size: .85rem; }
.purchase-panel { margin-top: 1.5rem; padding: 1.1rem 0; border-block: 1px solid #a782605c; }
.purchase-price { color: #61452f; font-family: var(--serif); font-size: clamp(1.25rem, 2.4vw, 1.7rem); line-height: 1.25; }
.purchase-form { margin-top: .9rem; }
.purchase-form label { display: block; margin-bottom: .35rem; color: #5b402c; font-size: .85rem; font-weight: 650; }
.purchase-actions { display: flex; gap: .7rem; }
.quantity-control { display: inline-flex; align-items: stretch; min-height: 3rem; border: 1px solid #835d43; border-radius: .25rem; overflow: hidden; color: #5b3e28; background: #f7ecdb; }
.quantity-control button { flex: 0 0 2.1rem; padding: 0; border: 0; color: inherit; background: transparent; cursor: pointer; }
.quantity-control button:hover { background: #e8d4b8; }
.quantity-control input { appearance: textfield; border: 0; width: 2.85rem; color: inherit; background: transparent; padding: 0; text-align: center; font: inherit; }
.quantity-control input::-webkit-inner-spin-button, .quantity-control input::-webkit-outer-spin-button { appearance: none; }
.product-shop .purchase-add {
  flex: 1;
  justify-content: center;
  margin: 0;
  padding-inline: .7rem;
  border-color: #583823;
  border-radius: .25rem;
  background: #583823;
  color: #f8eadd;
}
.product-shop .purchase-add:hover { background: #392518; }
.purchase-note { margin-top: .6rem; color: #6d513b; font-size: .85rem; }
.shop-information details { border-bottom: 1px solid #a782605c; }
.shop-information summary { display: flex; align-items: center; justify-content: space-between; gap: .6rem; list-style: none; cursor: pointer; padding: .9rem 0; font-weight: 650; }
.shop-information summary::-webkit-details-marker { display: none; }
.shop-information summary:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.shop-information summary .icon { color: #80573d; transition: rotate 220ms ease; }
.shop-information details[open] .icon { rotate: 180deg; }
.shop-information details p { padding-bottom: .85rem; color: #6d513b; }
.shop-related { margin-top: clamp(3.2rem, 7vw, 6rem); padding-top: clamp(1.4rem, 3.1vw, 2.9rem); border-top: 1px solid #a782605c; }
.shop-related .section-heading h2 { font-size: clamp(1.95rem, 4vw, 3.65rem); }
.shop-related .product-link { border-radius: .6rem; overflow: hidden; }

@media (max-width: 740px) {
  .product-shop .detail-inner { grid-template-columns: 1fr; }
  .shop-gallery { flex-direction: column-reverse; gap: .6rem; }
  .shop-thumbnails { display: flex; flex-basis: auto; }
  .shop-thumbnails a { width: 3.8rem; }
  .shop-main-photo { flex: none; aspect-ratio: 1.2; }
}
@media (max-width: 560px) {
  .masthead-inner { grid-template-columns: 1fr auto auto; }
  .cart-button { grid-column: 3; grid-row: 1; min-height: 2.2rem; }
}
