/* Utah Pride gift shop. Tokens (--navy, --rainbow, --font-pixel, .px-btn, .section...) live in site.css. */

.shop {
  --shop-paper: #ffffff;
  --shop-muted: #565b7a;
  --shop-soft: #c9cbe0;
  --shop-lilac: #f3ecff;
  background:
    radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1.5px) 0 0 / 16px 16px,
    var(--navy-deep);
  border-top: var(--border-px);
}
.shop::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 8px;
  background: var(--rainbow);
}

.shop-root [hidden],
.shop-dialog [hidden],
.shop-bag[hidden] { display: none !important; }

.shop-root :is(button, a, summary, [tabindex]):focus-visible,
.shop-dialog :is(button, a, summary, [tabindex]):focus-visible,
.shop-bag:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 3px;
}

/* ---------- Header ---------- */
.shop__head { margin-bottom: 20px; }
.shop__lede {
  max-width: 52ch;
  margin: 0;
  font-size: 16px;
  color: #dfe3ff;
}
.shop__subhead {
  font-family: var(--font-pixel);
  font-size: 12px;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--yellow);
  margin: 0 0 12px;
}

/* ---------- Category chips ---------- */
.shop__chips {
  position: relative;
  display: flex;
  gap: 10px;
  margin: 0 calc(var(--gutter) * -1) 20px;
  padding: 4px var(--gutter) 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.shop__chips::-webkit-scrollbar { display: none; }
.shop-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 10px 8px 12px;
  font-family: var(--font-pixel);
  font-size: 10px;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--white);
  background: transparent;
  border: 3px solid var(--white);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, .5);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.shop-chip:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 rgba(0, 0, 0, .5); }
.shop-chip__n {
  min-width: 2.4em;
  padding: 3px 4px;
  text-align: center;
  color: var(--ink);
  background: var(--white);
}
.shop-chip[aria-pressed="true"] {
  color: var(--ink);
  background: var(--yellow);
  border-color: var(--ink);
  box-shadow: var(--shadow-px);
}
.shop-chip[aria-pressed="true"] .shop-chip__n { color: var(--yellow); background: var(--ink); }
@media (hover: hover) {
  .shop-chip:hover:not([aria-pressed="true"]) { border-color: var(--yellow); color: var(--yellow); }
}

/* ---------- Flag parade ---------- */
.shop-parade { margin: 0 calc(var(--gutter) * -1) 28px; }
.shop-parade__head { padding: 0 var(--gutter); }
.shop-parade__hint { margin: -4px 0 4px; font-size: 14px; color: var(--shop-soft); }
.shop-parade__track {
  list-style: none;
  margin: 0;
  display: flex;
  gap: 4px;
  padding: 18px var(--gutter) 22px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  /* The parade route: a little pixel street under the poles. */
  background:
    linear-gradient(180deg, transparent calc(100% - 30px), #2a3a74 calc(100% - 30px) calc(100% - 24px), var(--navy) calc(100% - 24px));
}
.shop-parade__track::-webkit-scrollbar { display: none; }
.shop-parade__item { flex: none; scroll-snap-align: start; }
.shop-parade__btn {
  display: grid;
  justify-items: start;
  gap: 6px;
  width: 196px;
  min-height: 44px;
  padding: 6px 8px 8px;
  text-align: left;
  color: var(--white);
  background: transparent;
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.shop-parade__name { font-weight: 700; font-size: 15px; line-height: 1.25; }
.shop-parade__price { font-family: var(--font-pixel); font-size: 10px; color: var(--yellow); }
@media (hover: hover) {
  .shop-parade__btn:hover .shop-flag { transform: translateY(-4px); }
  .shop-parade__btn:hover .shop-parade__name { color: var(--yellow); }
}

/* A flag on a pole. The cloth is 12 vertical slices of the same image that bob out of
   phase, which reads as a gentle, slightly 8-bit wave. Image set by shop.js as --img. */
.shop-flag {
  position: relative;
  display: block;
  width: 180px;
  height: 150px;
  transition: transform 120ms steps(2);
}
.shop-flag__pole {
  position: absolute;
  left: 2px;
  top: 4px;
  bottom: 0;
  width: 8px;
  background: var(--shop-soft);
  border: 2px solid var(--ink);
}
.shop-flag__pole::before {
  content: "";
  position: absolute;
  left: -5px;
  top: -10px;
  width: 14px;
  height: 12px;
  background: var(--gold);
  border: 2px solid var(--ink);
}
.shop-flag__cloth {
  position: absolute;
  left: 10px;
  top: 10px;
  display: flex;
  width: 168px;
  height: 104px;
}
.shop-flag__slice {
  --amp: calc(1px + var(--i) * .35px);
  position: relative;
  flex: none;
  width: 14px;
  height: 100%;
  overflow: hidden;
  animation: shop-wave 1.6s ease-in-out infinite alternate paused;
  animation-delay: calc(var(--i) * -.13s);
}
.shop-flag__slice > span {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--i) * -14px);
  width: 168px;
  background-color: var(--shop-paper);
  background-image: var(--img, none);
  background-position: 50% 50%;
  background-size: var(--zoom, 110.5%) auto;
  background-repeat: no-repeat;
}
.shop-flag__slice::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  opacity: 0;
  animation: shop-shade 1.6s ease-in-out infinite alternate paused;
  animation-delay: inherit;
}
.is-waving .shop-flag__slice,
.is-waving .shop-flag__slice::after { animation-play-state: running; }

@keyframes shop-wave {
  from { transform: translateY(calc(var(--amp) * -1)); }
  to { transform: translateY(var(--amp)); }
}
@keyframes shop-shade {
  from { opacity: 0; }
  to { opacity: .14; }
}

/* ---------- Product grid ---------- */
.shop__grid-title { margin-top: 4px; }
.shop-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 14px;
}
@media (min-width: 640px) { .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 20px; } }
@media (min-width: 900px) { .shop-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.shop-card { min-width: 0; }
.shop-card__btn {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 0;
  text-align: left;
  color: var(--ink);
  background: var(--white);
  border: var(--border-px);
  box-shadow: var(--shadow-px);
  cursor: pointer;
  transition: transform 80ms steps(2), box-shadow 80ms steps(2);
  -webkit-tap-highlight-color: transparent;
}
.shop-card__btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
@media (hover: hover) {
  .shop-card__btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--pink); }
}
.shop-card__media {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--shop-paper);
  border-bottom: var(--border-px);
}
.shop-card__media img { width: 100%; height: 100%; object-fit: contain; }
.shop-card__ribbon {
  position: absolute;
  left: 6px;
  top: 6px;
  padding: 5px 6px;
  font-family: var(--font-pixel);
  font-size: 10px;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--white);
  background: var(--ink);
}
.shop-card__ribbon--sale { background: var(--red); }
.shop-card.is-sold-out img { filter: grayscale(1); opacity: .6; }
.shop-card__name {
  flex: 1;
  display: block;
  padding: 10px 10px 6px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.25;
}
.shop-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 0 8px 10px 10px;
}
.shop-card__price {
  font-family: var(--font-pixel);
  font-size: 11px;
  line-height: 1.3;
  color: var(--purple);
}

.shop-badge {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 22px;
}
.shop-badge--whale { color: var(--blue); }
.shop-badge--hive { color: var(--gold-deep); }
.shop-badge--whale .shop-icon { width: 22px; }
.shop-badge--hive .shop-icon { width: 16px; }
.shop-icon { display: block; height: auto; }

/* Loading placeholders */
.shop-card--ghost .shop-card__media {
  background: rgba(255, 255, 255, .08);
  border: 3px solid rgba(255, 255, 255, .14);
  animation: shop-ghost 1.2s steps(3) infinite alternate;
}
.shop-card--ghost .shop-card__name { padding: 10px 0; }
@keyframes shop-ghost { to { background: rgba(255, 255, 255, .16); } }

/* Garden flags teaser */
.shop-card--soon { display: flex; }
.shop-soon {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 220px;
  padding: 16px 12px;
  text-align: center;
  color: var(--white);
  background: rgba(18, 161, 80, .12);
  border: 3px dashed var(--green);
}
.shop-soon .shop-icon { width: 44px; color: var(--green); }
.shop-soon__title {
  margin: 0;
  font-family: var(--font-pixel);
  font-size: 11px;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--yellow);
}
.shop-soon__text { margin: 0; font-size: 14px; line-height: 1.4; }

/* Load error */
.shop-error {
  grid-column: 1 / -1;
  padding: 20px;
  color: var(--ink);
  background: var(--white);
  border: var(--border-px);
  box-shadow: var(--shadow-px);
}
.shop-error p { margin: 0 0 12px; }
.shop-error__title { font-family: var(--font-pixel); font-size: 14px; color: var(--purple); }
.shop-error__alt { font-size: 14px; margin: 12px 0 0 !important; }
.shop-error a { color: var(--purple); }

/* ---------- Shared bits ---------- */
.shop-link {
  min-height: 44px;
  padding: 0 4px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  color: var(--purple);
  background: none;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.shop-qty {
  display: inline-flex;
  align-items: stretch;
  background: var(--white);
  border: var(--border-px);
  box-shadow: 3px 3px 0 var(--ink);
}
.shop-qty__btn {
  width: 44px;
  height: 44px;
  padding: 0;
  font-family: var(--font-pixel);
  font-size: 14px;
  color: var(--ink);
  background: var(--white);
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.shop-qty__btn:active:not(:disabled) { background: var(--yellow); }
.shop-qty__btn:disabled { opacity: .3; cursor: not-allowed; }
.shop-qty__n {
  display: grid;
  place-items: center;
  min-width: 40px;
  font-family: var(--font-pixel);
  font-size: 12px;
  border-inline: 3px solid var(--ink);
}

.shop-dialog .px-btn:disabled,
.shop-dialog .px-btn[aria-disabled="true"] {
  opacity: .45;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* ---------- Dialogs: bottom sheet on phones, centered modal on desktop ---------- */
html:has(.shop-dialog[open]) { overflow: hidden; }

.shop-dialog {
  width: 100%;
  max-width: 100%;
  max-height: 100%;
  margin: auto 0 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  overflow: visible;
}
.shop-dialog::backdrop { background: rgba(7, 11, 31, .72); }
.shop-dialog[open]::backdrop { animation: shop-fade-in 200ms both; }
.shop-dialog.is-closing::backdrop { animation: shop-fade-out 180ms both; }

.shop-dialog__panel {
  display: flex;
  flex-direction: column;
  max-height: 92vh;
  max-height: 92dvh;
  background: var(--white);
  border-top: var(--border-px);
  box-shadow: 0 -6px 0 var(--pink);
  padding-bottom: env(safe-area-inset-bottom);
}
.shop-dialog[open] .shop-dialog__panel { animation: shop-sheet-up 240ms steps(8) both; }
.shop-dialog.is-closing .shop-dialog__panel { animation: shop-sheet-down 180ms steps(6) both; }

.shop-dialog__top {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-height: 60px;
  padding: 6px 10px 6px var(--gutter);
  background: var(--white);
  border-bottom: var(--border-px);
  touch-action: none;
}
.shop-dialog__grip {
  position: absolute;
  left: 50%;
  top: 7px;
  width: 48px;
  height: 6px;
  margin-left: -24px;
  background: var(--ink);
  opacity: .22;
}
.shop-dialog__close {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  color: var(--ink);
  background: var(--yellow);
  border: var(--border-px);
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.shop-dialog__close:active { transform: translate(3px, 3px); box-shadow: none; }
.shop-dialog__close .shop-icon { width: 18px; }
.shop-dialog__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

@keyframes shop-sheet-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes shop-sheet-down { from { transform: none; } to { transform: translateY(100%); } }
@keyframes shop-pop-in { from { transform: scale(.92); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes shop-pop-out { from { transform: none; opacity: 1; } to { transform: scale(.92); opacity: 0; } }
@keyframes shop-fade-in { from { opacity: 0; } }
@keyframes shop-fade-out { to { opacity: 0; } }

/* ---------- Product sheet ---------- */
.shop-gallery {
  position: relative;
  background: var(--shop-paper);
  border-bottom: var(--border-px);
}
.shop-gallery__track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  height: min(100vw, 46vh);
  height: min(100vw, 46dvh);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.shop-gallery__track::-webkit-scrollbar { display: none; }
.shop-gallery__track:focus-visible { outline-offset: -4px !important; }
.shop-gallery__slide {
  flex: 0 0 100%;
  display: grid;
  place-items: center;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}
.shop-gallery__slide img { width: 100%; height: 100%; object-fit: contain; }
.shop-gallery__dots {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 0;
  display: flex;
  justify-content: center;
}
.shop-gallery__dot {
  flex: 0 1 44px;
  min-width: 0;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.shop-gallery__dot::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--white);
  border: 2px solid var(--ink);
}
.shop-gallery__dot[aria-current="true"]::before { background: var(--pink); }
.shop-gallery__arrow { display: none; }
@media (hover: hover) and (pointer: fine) {
  .shop-gallery__arrow {
    position: absolute;
    top: 50%;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    padding: 0;
    font-family: var(--font-pixel);
    font-size: 14px;
    color: var(--ink);
    background: var(--white);
    border: var(--border-px);
    box-shadow: 3px 3px 0 var(--ink);
    cursor: pointer;
  }
  .shop-gallery__arrow--prev { left: 10px; }
  .shop-gallery__arrow--next { right: 10px; }
}

.shop-sheet__info { padding: 18px var(--gutter) 24px; }
.shop-sheet__store {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 10px;
  font-family: var(--font-pixel);
  font-size: 10px;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--shop-muted);
}
.shop-sheet__title {
  margin: 0 0 10px;
  font-family: var(--font-pixel);
  font-size: 16px;
  line-height: 1.45;
  text-wrap: balance;
}
.shop-sheet__price {
  margin: 0 0 12px;
  font-family: var(--font-pixel);
  font-size: 14px;
  line-height: 1.4;
  color: var(--purple);
}
.shop-sheet__was { margin-right: 6px; color: var(--shop-muted); }
.shop-sheet__soldout {
  display: inline-block;
  margin-left: 8px;
  padding: 4px 6px;
  font-size: 10px;
  color: var(--white);
  background: var(--ink);
  vertical-align: middle;
}
.shop-sheet__blurb { margin: 0 0 18px; font-size: 17px; line-height: 1.45; }

.shop-opt { min-width: 0; margin: 0 0 18px; padding: 0; border: 0; }
.shop-opt__legend {
  margin-bottom: 8px;
  padding: 0;
  font-family: var(--font-pixel);
  font-size: 10px;
  line-height: 1.4;
  text-transform: uppercase;
}
.shop-opt__legend span { margin-left: 6px; color: var(--purple); }
.shop-opt__values { display: flex; flex-wrap: wrap; gap: 10px; }
.shop-opt__btn {
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
  font-family: var(--font-pixel);
  font-size: 10px;
  line-height: 1.3;
  color: var(--ink);
  background: var(--white);
  border: var(--border-px);
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.shop-opt__btn[aria-pressed="true"] { background: var(--yellow); }
.shop-opt__btn:active:not(:disabled) { transform: translate(3px, 3px); box-shadow: none; }
.shop-opt__btn.is-limited { border-style: dashed; box-shadow: none; color: var(--shop-muted); }
.shop-opt__btn:disabled {
  opacity: .35;
  text-decoration: line-through;
  box-shadow: none;
  cursor: not-allowed;
}

.shop-sheet__more { margin-top: 6px; border-top: var(--border-px); }
.shop-sheet__more summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  font-family: var(--font-pixel);
  font-size: 10px;
  text-transform: uppercase;
  list-style: none;
  cursor: pointer;
}
.shop-sheet__more summary::-webkit-details-marker { display: none; }
.shop-sheet__more summary::after { content: "+"; font-size: 14px; }
.shop-sheet__more[open] summary::after { content: "-"; }
.shop-sheet__desc p {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.5;
  color: #2b2f45;
  white-space: pre-line;
}
.shop-sheet__desc .shop-sheet__fine { font-size: 13px; color: var(--shop-muted); }

.shop-sheet__bar {
  flex: none;
  display: grid;
  gap: 10px;
  padding: 10px var(--gutter) 14px;
  background: var(--white);
  border-top: var(--border-px);
}
.shop-sheet__status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 10px;
  margin: 0;
  font-weight: 700;
  font-size: 15px;
}
.shop-sheet__status:empty { display: none; }
.shop-sheet__status.is-pop { animation: shop-pop-in 200ms steps(4) both; }
.shop-sheet__status .shop-link { min-height: 32px; }
.shop-sheet__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.shop-sheet__total { margin: 0; font-family: var(--font-pixel); font-size: 14px; }
.shop-sheet__buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.shop-sheet__buttons .px-btn { width: 100%; padding-inline: 8px; }

/* ---------- Bag dialog ---------- */
.shop-cart__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 auto 0 0;
  font-family: var(--font-pixel);
  font-size: 14px;
  line-height: 1.4;
  text-transform: uppercase;
}
.shop-cart__title .shop-icon { width: 20px; color: var(--pink); }
.shop-cart .shop-dialog__scroll { padding: 16px var(--gutter) 24px; }
.shop-cart__note {
  margin: 0 0 18px;
  padding: 12px 14px;
  font-size: 15px;
  background: var(--shop-lilac);
  border: var(--border-px);
}
.shop-cart__group + .shop-cart__group {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 3px dashed var(--ink);
}
.shop-cart__store {
  margin: 0 0 12px;
  font-family: var(--font-pixel);
  font-size: 11px;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--purple);
}
.shop-cart__lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.shop-line { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; }
.shop-line__thumb {
  width: 72px;
  height: 72px;
  padding: 0;
  background: var(--shop-paper);
  border: var(--border-px);
  cursor: pointer;
}
.shop-line__thumb img { width: 100%; height: 100%; object-fit: contain; }
.shop-line__name { margin: 0; font-weight: 700; font-size: 15px; line-height: 1.3; }
.shop-line__variant { margin: 2px 0 0; font-size: 14px; color: var(--shop-muted); }
.shop-line__price {
  margin: 6px 0 8px;
  font-family: var(--font-pixel);
  font-size: 11px;
  line-height: 1.4;
  color: var(--purple);
}
.shop-line.is-sold-out .shop-line__price { font-family: var(--font-body); font-size: 14px; color: var(--red); }
.shop-line.is-sold-out img { filter: grayscale(1); opacity: .6; }
.shop-line__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.shop-cart__subtotal,
.shop-cart__total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 12px;
  font-family: var(--font-pixel);
  font-size: 12px;
  line-height: 1.4;
  text-transform: uppercase;
}
.shop-cart__total { margin-top: 0; padding-bottom: 12px; border-bottom: 3px dashed var(--ink); }
.shop-cart__checkout { width: 100%; font-size: 11px; line-height: 1.5; text-align: center; }
.shop-cart__foot { margin-top: 22px; font-size: 14px; color: var(--shop-muted); text-align: center; }
.shop-cart__foot p { margin: 0 0 4px; }
.shop-cart__empty { padding: 20px 0 8px; font-size: 17px; text-align: center; }
.shop-cart__empty p { margin: 0 0 18px; }

/* ---------- Floating bag button ---------- */
.shop-bag {
  position: fixed;
  z-index: 50;
  right: calc(16px + env(safe-area-inset-right));
  bottom: calc(16px + env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  padding: 0;
  color: var(--ink);
  background: var(--pink);
  border: var(--border-px);
  box-shadow: var(--shadow-px);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.shop-bag:active { transform: translate(4px, 4px); box-shadow: none; }
.shop-bag .shop-icon { width: 30px; }
.shop-bag__count {
  position: absolute;
  top: -12px;
  right: -12px;
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding: 0 4px;
  font-family: var(--font-pixel);
  font-size: 10px;
  line-height: 1;
  background: var(--yellow);
  border: var(--border-px);
}
.shop-bag.is-bumped { animation: shop-bump 420ms steps(4); }
@keyframes shop-bump {
  30% { transform: translateY(-10px) rotate(-8deg); }
  60% { transform: translateY(0) rotate(5deg); }
}

/* ---------- Desktop ---------- */
@media (min-width: 760px) {
  .shop__chips {
    flex-wrap: wrap;
    margin-inline: 0;
    padding-inline: 0;
    overflow: visible;
  }
  .shop-parade__track { gap: 12px; }

  .shop-dialog {
    width: min(920px, calc(100vw - 48px));
    margin: auto;
  }
  .shop-cart { width: min(540px, calc(100vw - 48px)); }
  .shop-dialog__panel {
    max-height: min(88vh, 780px);
    border: var(--border-px);
    box-shadow: 10px 10px 0 var(--pink);
    padding-bottom: 0;
  }
  .shop-dialog[open] .shop-dialog__panel { animation: shop-pop-in 200ms steps(5) both; }
  .shop-dialog.is-closing .shop-dialog__panel { animation: shop-pop-out 160ms steps(4) both; }
  .shop-dialog__grip { display: none; }
  .shop-dialog__top { touch-action: auto; }

  .shop-sheet__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }
  .shop-gallery {
    position: sticky;
    top: 0;
    border-bottom: 0;
    border-right: var(--border-px);
  }
  .shop-gallery__track { height: auto; aspect-ratio: 1; }
  .shop-sheet__info { padding: 24px 28px 28px; }
  .shop-sheet__title { font-size: 18px; }
  .shop-sheet__bar {
    grid-template-columns: auto 1fr;
    align-items: center;
    padding: 14px 20px;
  }
  .shop-sheet__status { grid-column: 1 / -1; }
  .shop-sheet__buttons { max-width: 440px; margin-left: auto; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .shop-flag__slice,
  .shop-flag__slice::after,
  .shop-card--ghost .shop-card__media { animation: none !important; }
}

.shop-from {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
}
