.shop-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1.25rem;
  background: #544238;
  color: #fff;
  font-size: 0.9375rem;
  text-align: center;
  text-decoration: none;
}

.shop-action:hover { background: #3a2d27; }

.collection-browse { display: flex; justify-content: center; margin-bottom: clamp(20px, 3vw, 40px); }
.browse-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding-inline: 8px;
  color: #111;
  font-size: 1.125rem;
}
.browse-picker svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: #111;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.browse-picker select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  font: inherit;
  cursor: pointer;
}
.browse-picker:has(select:focus-visible) #browse-caption { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width:700px) {
  .collection { padding-top: 20px; }
  .collection-title-row { margin-bottom: 12px; }
  .collection h2 { font-size: clamp(26px, 7.5vw, 35px); }
  .collection-browse:not(.from-browse-link) { display: none; }
}

#room-shop { text-decoration: none; }

.product { min-width: 0; display: flex; flex-direction: column; }
.card-image { position: relative; display: block; isolation: isolate; }
.product .product-tag {
  display: inline-block;
  position: absolute;
  z-index: 2;
  top: 6px;
  right: 4px;
  left: auto;
  padding: 4px 9px;
  border-radius: 2px;
  background: #111;
  color: #fff;
  font: 600 .8125rem/1.35 Arial, sans-serif;
  pointer-events: none;
}
.product-open { width: 100%; }
.product-angles { display: grid; }
.product-angles > * { grid-area: 1 / 1; }
.alternate-angle { opacity: 0; pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
  .product-open:hover .product-angles > .product-visual { opacity: 0; }
  .product-open:hover .alternate-angle { opacity: 1; }
}
.product .product-name { margin: .8rem 0 .65rem; font-size: .9375rem; line-height: 1.3; }

.card-purchase { display: grid; align-items: center; margin-top: auto; }
.merchant-buy {
  display: inline-flex; justify-content: center; align-items: center;
  box-sizing: border-box; min-height: 44px; padding: 9px 22px;
  background: #111; color: #fff; font: inherit; font-size: .9375rem;
  text-decoration: none; border-radius: 3px;
}
.merchant-buy:hover { background: #333; }
.detail-purchase .merchant-buy { width: min(100%, 17rem); }
.stock-note { font-size:.8125rem; color:#625a53; }

.header-cart { display: none; }
@media (min-width:701px) {
  .site-header .header-cart {
    display: flex; align-items: center; justify-content: flex-end; text-decoration: none; grid-column: 3; grid-row: 1; justify-self: end;
    min-width: 44px; min-height: 44px; padding: 0; text-align: right;
    color: var(--facade-ink); background: transparent; transform: translateY(1.05vw);
  }
  .header-cart:hover { text-decoration: underline; text-underline-offset: 5px; }
}
@media (min-width:701px) and (max-width:1000px) {
  .site-header .header-cart { transform: none; }
}
.product-dialog {
  --detail-photo-height: clamp(170px, 34dvh, 320px);
  width: min(30rem, calc(100vw - 24px));
  height: calc(var(--detail-photo-height) + 303px);
  text-align: center;
  max-height: calc(100dvh - 24px);
  padding: clamp(20px, 4vw, 32px);
  color: #111;
}
.product-dialog[open] {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(96px, 1fr) var(--detail-dots, 32px) auto 62px;
}
@media (max-width: 700px) {
  .product-dialog { height: calc(var(--detail-photo-height) + 295px); }
}
.detail-heading { padding-inline: 25px; align-self: start; }
.detail-heading h2 {
  margin: 0;
  font-size: clamp(1.625rem, 5.5vw, 2rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.045em;
}
.detail-heading .detail-color { margin: 6px 0 0; font-size: .875rem; }
.detail-color:empty { display: none; }
.detail-visual { margin-top: 10px; min-height: 0; }
.detail-visual .product-visual {
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  aspect-ratio: auto;
}
.detail-visual .photo-full {
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  padding: 8px;
  min-height: 0;
}
.detail-visual .photo-full img { display: block; min-height: 0; object-fit: contain; }
.detail-views { grid-row: 3; margin: 0; gap: 0; }
.product-dialog:has(.detail-views[hidden]) { --detail-dots: 0px; }
.detail-views[hidden] { display: none; }
.detail-views button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
}
.detail-views button::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #aaa;
}
.detail-views button[aria-pressed="true"]::after { background: #111; }
.detail-description { grid-row: 4; margin: 10px 0; font-size: .9375rem; line-height: 1.5; color: #333; }
.detail-purchase { grid-row: 5; }
.detail-purchase .stock-note { display: block; color: #666; }

.mobile-cart-bar { display:none; }
@media (max-width:700px) {
  :root { --cart-bar-height:calc(66px + env(safe-area-inset-bottom, 0px)); }
  body:has(.mobile-cart-bar) { padding-bottom:var(--cart-bar-height); }
  .mobile-cart-bar {
    position:fixed; inset:auto 0 0; z-index:20; box-sizing:border-box;
    display:flex; align-items:center; justify-content:center;
    height:var(--cart-bar-height); padding:8px 16px calc(8px + env(safe-area-inset-bottom, 0px));
    background:white; color:#111; border-top:1px solid #dedede; text-align:left;
  }
  .cart-bar-open { width:100%; text-decoration:none; display:inline-flex; gap:8px; align-items:center; justify-content:center; flex:none; min-height:44px; padding:0 16px; background:#111; color:white; border-radius:4px; font-size:.9375rem; }
  .cart-bar-open svg { width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:1.7; }
  .product-dialog:has(.mobile-cart-bar) { max-height:calc(100dvh - var(--cart-bar-height) - 20px); bottom:var(--cart-bar-height); }
  .room-dialog:has(.mobile-cart-bar) { height:calc(100dvh - var(--cart-bar-height)); }
}

.detail-description p { margin: 0; }
.detail-description #detail-presale { margin-top: 5px; font-weight: 550; }
