.shop-detail { padding-block: clamp(1.15rem, 3vw, 2.2rem) clamp(2.5rem, 6vw, 4rem); }
.shop-detail > .breadcrumbs { gap: .16rem .45rem; }
.shop-detail-intro { min-width: 0; }
.shop-detail-intro .shop-detail-category,
.shop-detail-intro .shop-detail-rating { color: var(--plum); font-size: .88rem; font-weight: 650; }

.shop-detail-intro h1 {
  max-width: 32ch;
  font-size: clamp(2rem, 4.65vw, 3.5rem);
  line-height: 1.09;
  letter-spacing: -.042em;
  overflow-wrap: anywhere;
  margin-block: .55rem .85rem;
}

.shop-detail-intro p { margin-top: .5rem; color: var(--muted); }

.shop-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, .86fr);
  align-items: start;
  margin-top: clamp(1rem, 2.6vw, 1.8rem);
  gap: clamp(.95rem, 3.2vw, 2.1rem);
}

.shop-detail-media, .shop-detail-side {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: clamp(.8rem, 2vw, 1.2rem);
}
.shop-detail-media { grid-area: 1 / 1; }
.shop-detail-side { grid-area: 1 / 2; }

.shop-detail :is(.shop-gallery, .shop-offer, .shop-description, .shop-shipping, .shop-facts, .shop-price-history, .shop-reviews) {
  min-width: 0;
}

.shop-gallery-display {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fff;
}

a.shop-gallery-display { cursor: zoom-in; }

.shop-gallery-display img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: clamp(.45rem, 2vw, 1.15rem);
}

.shop-gallery-display > span {
  position: absolute;
  right: .6rem;
  bottom: .6rem;
  padding: .24rem .55rem;
  border: 1px solid var(--line);
  border-radius: .45rem;
  background: var(--white);
  color: var(--plum);
  font: 650 .79rem/1.5 var(--sans);
}

.shop-gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .42rem;
  margin: .58rem 0 0;
  padding: 0;
  list-style: none;
}

.shop-gallery-thumbs [data-shop-gallery-select] {
  display: grid;
  place-items: center;
  width: clamp(3rem, 6.7vw, 4.25rem);
  height: clamp(3rem, 6.7vw, 4.25rem);
  overflow: hidden;
  padding: .21rem;
  border: 1px solid var(--line);
  border-radius: .58rem;
  background: #fff;
  cursor: pointer;
}

.shop-gallery-thumbs [aria-current="true"] { border: 2px solid #8a4b71; }
.shop-gallery-thumbs a:hover { border-color: #8a4b71; }
.shop-gallery-thumbs img { display: block; width: 100%; height: 100%; object-fit: contain; }
.shop-gallery-display > p { color: var(--muted); text-align: center; padding: 1.5rem; }

.shop-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.shop-detail :is(.shop-offer, .shop-description, .shop-shipping, .shop-facts, .shop-price-history, .shop-reviews) {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--white);
  padding: clamp(.93rem, 2.65vw, 1.6rem);
}

.shop-detail .shop-offer {
  background: linear-gradient(148deg, #f8eff5, var(--white) 67%);
  box-shadow: 0 .45rem 1.1rem rgba(66, 44, 67, .05);
}

.shop-detail .shop-offer > * + * { margin-block-start: .72rem; }

.shop-offer :is(.shop-price, .shop-detail-price) {
  margin-top: 0;
  color: var(--ink);
  font: 700 clamp(1.85rem, 4vw, 2.8rem)/1.16 var(--sans);
  letter-spacing: -.052em;
  font-variant-numeric: tabular-nums;
}

.shop-offer :is(.shop-seller, .shop-original-price) { color: var(--muted); }
.shop-original-price { font-size: .88rem; }
.shop-original-price del { margin-inline-start: .2rem; }

.shop-offer :is(.shop-availability, .shop-stock) {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding: .1rem .58rem;
  border: 1px solid #d1dfd1;
  border-radius: 2rem;
  background: #edf4eb;
  color: #35523b;
  font-size: .81rem;
  font-weight: 680;
}

.shop-offer :is(.shop-offer-note, .shop-shop-note, .shop-disclosure, .shop-price-date) {
  color: var(--muted);
  font-size: .89rem;
  line-height: 1.55;
}

.shop-offer :is(.shop-cta, .shop-offer-link, .button) {
  width: 100%;
  min-height: 3.02rem;
  justify-content: center;
  text-align: center;
}

.shop-detail :is(.shop-description, .shop-shipping, .shop-facts, .shop-price-history, .shop-reviews, .shop-related) h2,
.shop-detail .shop-offer h2 {
  margin: 0 0 .62rem;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  line-height: 1.16;
  letter-spacing: -.029em;
}

.shop-description :is(p, li), .shop-shipping :is(p, li) { max-width: 66ch; overflow-wrap: anywhere; }
.shop-description p + p, .shop-shipping p + p { margin-top: .54rem; }
.shop-detail .shop-facts dl, .shop-detail dl.shop-facts { margin-block: 0; }

.shop-facts dl > div, dl.shop-facts > div {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: .32rem .62rem;
  padding: .46rem 0;
  border-bottom: 1px solid var(--line);
}

.shop-facts dl > div:last-child, dl.shop-facts > div:last-child { border-bottom: 0; }
.shop-facts dt { color: var(--muted); }
.shop-facts dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }

.shop-detail :is(.shop-price-history, .shop-reviews, .shop-related) { margin-top: clamp(1.25rem, 3.5vw, 2.25rem); }
.shop-price-history > p { max-width: 74ch; color: var(--muted); }
.shop-price-history [data-shop-price-chart] { width: 100%; max-width: 55rem; margin-block: .7rem .8rem; }
.shop-price-table-scroll { max-height: 17rem; margin-top: .57rem; overflow: auto; overscroll-behavior: contain; }
.shop-price-plot { display: block; width: 100%; height: auto; overflow: visible; }
.shop-price-plot text { fill: var(--muted); font: 600 11px var(--sans); font-variant-numeric: tabular-nums; }
.shop-plot-guide { stroke: #e5dbe2; stroke-dasharray: 4 3; }
.shop-plot-line { fill: none; stroke: #824a70; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.shop-plot-dot { fill: #824a70; stroke: var(--white); stroke-width: 1.1; }
.shop-price-history table { width: 100%; margin-top: .57rem; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.shop-price-table-scroll table { margin-top: 0; }
.shop-price-history caption { padding: .38rem .55rem; text-align: start; font-weight: 650; }
.shop-price-history :is(th, td) { padding: .38rem .55rem; border-bottom: 1px solid var(--line); text-align: start; }
.shop-price-history :is(th, td):last-child { text-align: end; }
.shop-price-history thead { background: var(--plum-light); }
.shop-price-history summary { min-height: 2.75rem; font-weight: 650; cursor: pointer; }

.shop-gallery-dialog {
  width: min(52rem, calc(100vw - 1.25rem));
  max-width: calc(100vw - 1.25rem);
  max-height: calc(100vh - 1.25rem);
  max-height: calc(100dvh - 1.25rem);
  margin: auto;
  padding: clamp(.55rem, 1.7vw, 1.05rem);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fff;
  color: var(--ink);
  overscroll-behavior: contain;
}

.shop-gallery-dialog::backdrop { background: rgb(33 21 32 / .80); }
.shop-lightbox-header, .shop-lightbox-actions { display: flex; justify-content: space-between; align-items: center; gap: .42rem; }
.shop-lightbox-count { padding-inline: .5rem; font-variant-numeric: tabular-nums; }

.shop-gallery-dialog button {
  min-height: 2.75rem;
  padding: .3rem .6rem;
  border: 1px solid var(--line);
  border-radius: .45rem;
  background: var(--plum-light);
  color: var(--plum);
  font-size: .87rem;
  font-weight: 680;
  cursor: pointer;
}

.shop-gallery-dialog button:hover { background: #ead9e5; }
.shop-lightbox-photo { display: block; width: 100%; height: min(65vh, 36rem); height: min(65dvh, 36rem); margin-block: .35rem; object-fit: contain; }

@media (max-width: 720px) {
  .shop-detail-grid { grid-template-columns: minmax(0, 1fr); }
  .shop-detail-media, .shop-detail-side { display: contents; }
  .shop-detail-intro { grid-row: 1; }
  .shop-gallery { grid-row: 2; }
  .shop-offer { grid-row: 3; }
  .shop-facts { grid-row: 4; }
}

@media (prefers-reduced-motion: no-preference) {
  .shop-gallery-thumbs [data-shop-gallery-select] { transition: border-color 150ms ease-out; }
  .shop-gallery-dialog[open] { animation: shop-lightbox-enter 160ms ease-out; }
}

@keyframes shop-lightbox-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}
