/* Playground Shop. Uses the theme's runtime colour variables (--pg-bg / --pg-ink). */
[hidden] { display: none !important; }

.pop-shop { min-height: 100vh; }
:where(.pop-shop) button { font-family: "BasisMono", ui-monospace, monospace; color: var(--pg-ink); }
:where(.pop-shop) a { color: var(--pg-ink); text-decoration: none; border-bottom: 1px solid currentColor; }
:where(.pop-shop) a:hover { opacity: .6; }
a.pop-shop-btn { display: inline-block; text-decoration: none; }
.pop-shop ::placeholder { color: var(--pg-ink); opacity: .45; }

.pop-shop-body {
  padding: clamp(118px, 17svh, 190px) clamp(20px, 4vw, 56px) clamp(60px, 10vh, 120px);
  display: flex;
  flex-direction: column;
  gap: clamp(34px, 6vh, 64px);
  align-items: center;
}
.pop-shop-wrap { width: 100%; max-width: 1440px; }

.pop-shop-title {
  margin: 0;
  font-family: "NeueMontreal", ui-sans-serif, sans-serif;
  font-weight: 500;
  font-size: max(46px, min(8.5vw, 12vh, 96px));
  line-height: 1;
  letter-spacing: -.02em;
}
.pop-shop-intro {
  margin: clamp(18px, 3vh, 34px) 0 0;
  max-width: 640px;
  font-size: clamp(12.5px, 1.4vmin, 13px);
  letter-spacing: .045em;
  line-height: 1.6;
}

/* KORB button (top left) */
.pop-shop-korb {
  position: fixed;
  top: clamp(14px, 2.6vh, 28px);
  left: clamp(12px, 2.6vw, 32px);
  z-index: 58;
  font-size: clamp(9px, 2.5vw, 11px);
  letter-spacing: .2em;
  background: transparent;
  border: 1.5px solid var(--pg-ink);
  border-radius: 44% 56% 58% 42% / 45% 55% 45% 55%;
  animation: pgBlob 10s ease-in-out infinite;
  padding: clamp(11px, 3vw, 14px) clamp(15px, 4vw, 20px);
  cursor: pointer;
  transition: background .3s ease, color .3s ease;
}
.pop-shop-korb:hover { opacity: .8; }
.pop-shop-korb.has-items { background: var(--pg-ink); color: var(--pg-bg); }

/* filters */
.pop-shop-filters { display: flex; flex-direction: column; border-top: 1px solid var(--pg-ink); border-bottom: 1px solid var(--pg-ink); }
.pop-shop-filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(8px, 1.4vw, 14px); padding: clamp(14px, 2.2vh, 22px) 0; }
.pop-shop-filter-row--makers { padding-top: 0; gap: clamp(6px, 1vw, 10px) clamp(14px, 2vw, 22px); }
.pop-shop-filter-label { font-size: clamp(10.5px, 1.2vmin, 11px); letter-spacing: .2em; opacity: .6; margin-right: clamp(4px, 1vw, 12px); min-width: 6.5em; }
.pop-shop-pills, .pop-shop-makers { display: contents; }
.pop-shop-pill {
  font-size: clamp(11.5px, 1.3vmin, 12px);
  letter-spacing: .14em;
  cursor: pointer;
  min-height: 44px;
  padding: clamp(11px, 1.4vh, 12px) clamp(16px, 2vw, 20px);
  background: transparent;
  border: 1.5px solid var(--pg-ink);
  border-radius: 52% 48% 43% 57% / 57% 42% 58% 43%;
  transition: background .25s ease, color .25s ease;
}
.pop-shop-pill:hover { opacity: .75; }
.pop-shop-pill.is-active { background: var(--pg-ink); color: var(--pg-bg); }
.pop-shop-count { margin-left: auto; font-size: clamp(10.5px, 1.2vmin, 11px); letter-spacing: .14em; opacity: .6; }
.pop-shop-maker {
  font-size: clamp(11px, 1.2vmin, 11.5px);
  letter-spacing: .12em;
  cursor: pointer;
  min-height: 44px;
  padding: 0 2px;
  background: transparent;
  border: none;
  opacity: .6;
  text-underline-offset: 5px;
}
.pop-shop-maker:hover { opacity: 1; }
.pop-shop-maker.is-active { opacity: 1; text-decoration: underline; }

/* grid */
.pop-shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: clamp(26px, 3vw, 40px) clamp(16px, 2vw, 28px);
  align-items: start;
}
.pop-shop-card {
  text-align: left;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pop-shop-card:hover { opacity: .8; }
.pop-shop-card.is-soldout { opacity: .55; }
.pop-shop-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--pg-ink);
  border-radius: 14px;
  overflow: hidden;
  background: repeating-linear-gradient(135deg, transparent 0 11px, color-mix(in srgb, var(--pg-ink) 13%, transparent) 11px 12px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pop-shop-photo-img { position: absolute; inset: 0; background-size: cover; background-position: center; }
.pop-shop-photo-label { font-size: 10px; letter-spacing: .2em; opacity: .55; }
.pop-shop-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 10px;
  letter-spacing: .18em;
  background: var(--pg-bg);
  color: var(--pg-ink);
  border: 1px solid var(--pg-ink);
  border-radius: 52% 48% 43% 57% / 57% 42% 58% 43%;
  padding: 7px 11px;
}
.pop-shop-meta { display: flex; flex-direction: column; gap: 6px; }
.pop-shop-maker-name { font-size: 10.5px; letter-spacing: .2em; opacity: .65; }
.pop-shop-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pop-shop-card-title {
  font-family: "NeueMontreal", ui-sans-serif, sans-serif;
  font-weight: 500;
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.15;
  letter-spacing: -.01em;
}
.pop-shop-price { font-size: clamp(11.5px, 1.25vmin, 12px); letter-spacing: .08em; flex: 0 0 auto; }
.pop-shop-empty { margin: 0; font-size: 12px; letter-spacing: .1em; opacity: .5; }

.pop-shop-foot {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(18px, 4vw, 56px);
  font-size: clamp(12.5px, 1.4vmin, 13px);
  letter-spacing: .045em;
  line-height: 1.6;
  border-top: 1px solid var(--pg-ink);
  padding-top: clamp(24px, 4vh, 44px);
}
.pop-shop-label { opacity: .6; }

/* overlays */
.pop-shop-overlay { position: fixed; inset: 0; display: flex; }
.pop-shop-overlay--sheet { z-index: 70; align-items: flex-end; justify-content: center; }
.pop-shop-overlay--drawer { z-index: 72; justify-content: flex-end; }
.pop-shop-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
.pop-shop-panel {
  position: relative;
  width: 100%;
  max-width: 960px;
  max-height: 92svh;
  overflow: auto;
  background: var(--pg-bg);
  border: 1.5px solid var(--pg-ink);
  border-bottom: none;
  border-radius: 20px 20px 0 0;
  padding: clamp(22px, 3.4vh, 38px) clamp(18px, 3.4vw, 44px) calc(clamp(28px, 4vh, 44px) + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}
.pop-shop-panel:focus, .pop-shop-drawerpanel:focus { outline: none; }
.pop-shop-info { display: flex; flex-direction: column; gap: clamp(14px, 2.2vh, 22px); }
.pop-shop-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.pop-shop-head-text { display: flex; flex-direction: column; gap: 8px; }
.pop-shop-sheet-title {
  margin: 0;
  font-family: "NeueMontreal", ui-sans-serif, sans-serif;
  font-weight: 500;
  font-size: clamp(24px, 3.4vw, 40px);
  line-height: 1.05;
  letter-spacing: -.015em;
}
.pop-shop-x {
  flex: 0 0 auto;
  background: transparent;
  border: 1.5px solid var(--pg-ink);
  font-size: 14px;
  width: 44px;
  height: 44px;
  border-radius: 52% 48% 43% 57% / 57% 42% 58% 43%;
  cursor: pointer;
}
.pop-shop-x:hover { background: var(--pg-ink); color: var(--pg-bg); }
.pop-shop-facts {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(14px, 3vw, 34px);
  font-size: clamp(11.5px, 1.25vmin, 12px);
  letter-spacing: .09em;
  line-height: 1.5;
  border-top: 1px solid var(--pg-ink);
  border-bottom: 1px solid var(--pg-ink);
  padding: clamp(12px, 1.8vh, 18px) 0;
}
.pop-shop-facts .pop-shop-label { opacity: .6; }
.pop-shop-long { font-size: clamp(12.5px, 1.4vmin, 13px); line-height: 1.7; letter-spacing: .035em; white-space: pre-line; }
.pop-shop-amounts { display: flex; flex-direction: column; gap: 10px; }
.pop-shop-amount-list { display: flex; flex-wrap: wrap; gap: 10px; }
.pop-shop-actions { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(12px, 2vw, 20px); }
.pop-shop-hint { font-size: 11px; letter-spacing: .1em; line-height: 1.5; opacity: .6; max-width: 24em; }
.pop-shop-btn {
  font-size: clamp(11.5px, 1.3vmin, 12px);
  letter-spacing: .2em;
  border: 1.5px solid var(--pg-ink);
  border-radius: 52% 48% 43% 57% / 57% 42% 58% 43%;
  animation: pgBlob 9s ease-in-out infinite;
  padding: clamp(15px, 2.4vh, 20px) clamp(22px, 3.4vw, 34px);
  cursor: pointer;
  background: var(--pg-ink);
  color: var(--pg-bg);
}
.pop-shop-btn:hover { opacity: .85; }
.pop-shop-btn.is-off { background: transparent; color: var(--pg-ink); opacity: .5; cursor: default; }
.pop-shop-btn--ghost { background: transparent; color: var(--pg-ink); border-radius: 44% 56% 58% 42% / 45% 55% 45% 55%; animation-duration: 11s; padding: 15px 24px; font-size: 12px; }
.pop-shop-btn--ghost:hover { background: var(--pg-ink); color: var(--pg-bg); opacity: 1; }

/* drawer */
.pop-shop-drawerpanel {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 100%;
  overflow: auto;
  background: var(--pg-bg);
  border-left: 1.5px solid var(--pg-ink);
  padding: clamp(22px, 3.4vh, 34px) clamp(18px, 3vw, 32px) calc(clamp(24px, 4vh, 36px) + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2.4vh, 24px);
}
.pop-shop-drawer-title { margin: 0; font-family: "NeueMontreal", ui-sans-serif, sans-serif; font-weight: 500; font-size: clamp(26px, 3vw, 36px); line-height: 1; letter-spacing: -.015em; }
.pop-shop-lines { display: flex; flex-direction: column; border-top: 1px solid var(--pg-ink); }
.pop-shop-line { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--pg-ink); }
.pop-shop-thumb {
  flex: 0 0 auto;
  width: 56px;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--pg-ink);
  border-radius: 9px;
  background: repeating-linear-gradient(135deg, transparent 0 7px, color-mix(in srgb, var(--pg-ink) 13%, transparent) 7px 8px);
  background-size: auto;
  overflow: hidden;
}
.pop-shop-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pop-shop-line-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pop-shop-line-maker { font-size: 10px; letter-spacing: .18em; opacity: .65; }
.pop-shop-line-title { font-family: "NeueMontreal", ui-sans-serif, sans-serif; font-weight: 500; font-size: 17px; line-height: 1.15; }
.pop-shop-line-price { font-size: 11.5px; letter-spacing: .08em; }
.pop-shop-qty { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; }
.pop-shop-qty button { background: transparent; border: 1px solid var(--pg-ink); width: 44px; height: 44px; border-radius: 50%; cursor: pointer; font-size: 14px; }
.pop-shop-qty button:hover { background: var(--pg-ink); color: var(--pg-bg); }
.pop-shop-qty button:disabled { opacity: .35; cursor: default; }
.pop-shop-qty span { font-size: 13px; min-width: 1.4em; text-align: center; }
.pop-shop-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.pop-shop-total-label { font-size: 11px; letter-spacing: .2em; opacity: .65; }
.pop-shop-total-sum { font-family: "NeueMontreal", ui-sans-serif, sans-serif; font-weight: 500; font-size: clamp(22px, 2.4vw, 28px); }
.pop-shop-note { font-size: 11.5px; letter-spacing: .06em; line-height: 1.65; border: 1px solid var(--pg-ink); border-radius: 14px; padding: 14px 16px; white-space: pre-line; }
.pop-shop-note--err { border-style: dashed; }
.pop-shop-drawer-empty { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; font-size: 12.5px; letter-spacing: .06em; line-height: 1.6; }
.pop-shop-drawer-empty p { margin: 0; opacity: .7; }
body.pop-shop-lock { overflow: hidden; }
