
.shop-hero {
  padding-bottom: 56px;
  display: grid;
  justify-items: center;
  gap: clamp(28px, 4vw, 48px);
}

.shop-hero__stage {
  position: relative;
  width: min(100%, 520px);
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 45%, #ececed 0%, #dcdcdd 55%, #cdcdcf 100%);
}
.shop-hero__still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity 0.6s ease; }
.shop-hero__stage.is-3d .shop-hero__still { opacity: 0; }
.shop-hero__tilt { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 2; border: 1px solid rgba(0, 0, 0, 0.12); background: rgba(255, 255, 255, 0.8); color: #1a1a1a; }

.shop-card__3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; opacity: 0; transition: opacity 0.6s ease; touch-action: pan-y; cursor: grab; }
.shop-card__3d.is-dragging { cursor: grabbing; }
[data-3d].is-3d .shop-card__3d { opacity: 1; }
.shop-card__media.is-3d > img, .shop-card__media.is-3d > .shop-mock { opacity: 0; }

[data-3d] > img, [data-3d] > .shop-mock { transition: opacity 0.4s ease; }
.shop-3d-wait [data-3d]:not(.is-3d):not(.is-photo) > img,
.shop-3d-wait [data-3d]:not(.is-3d):not(.is-photo) > .shop-mock,
.shop-3d-wait [data-3d]:not(.is-3d):not(.is-photo):hover > img[data-alt] { opacity: 0; }
.shop-3d-wait [data-3d]:not(.is-3d):not(.is-photo) .shop-card__flip { visibility: hidden; }
.shop-3d-wait [data-3d] { overflow: hidden; }
.shop-3d-wait [data-3d]::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 260%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 30%, color-mix(in srgb, var(--accent) 35%, transparent) 50%, transparent 70%);
  opacity: 0;
  transform: translateX(-61.54%);
}
.shop-3d-wait [data-3d]:not(.is-3d):not(.is-photo)::after { animation: shop-sweep-wait 1.9s linear infinite; }
.shop-3d-wait [data-3d].is-3d::after { animation: shop-sweep-in 1.3s cubic-bezier(0.33, 1, 0.68, 1) both; }
@keyframes shop-sweep-wait {
  0% { opacity: 0; transform: translateX(-61.54%); animation-timing-function: cubic-bezier(0.33, 1, 0.68, 1); }
  15% { opacity: 0.6; }
  48% { opacity: 0.33; }
  68.4%, 100% { opacity: 0; transform: translateX(0); }
}
@keyframes shop-sweep-in {
  0% { opacity: 0; transform: translateX(-61.54%); }
  22% { opacity: 1; }
  70% { opacity: 0.55; }
  100% { opacity: 0; transform: translateX(0); }
}
.shop-3d-wait [data-3d] .shop-card__3d {
  filter: blur(10px) grayscale(0.88);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.3s, filter 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}
.shop-3d-wait [data-3d].is-3d .shop-card__3d { filter: none; }
.shop-3d-wait [data-3d].is-3d .shop-card__hint { transition-delay: 0.6s; }
.shop-3d-wait [data-3d].is-photo .shop-card__3d { filter: none; transition: opacity 0.6s ease; }
.shop-card__hint {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #3d3b36;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
[data-3d].is-3d .shop-card__hint { opacity: 1; }
[data-3d].is-3d:hover .shop-card__hint { opacity: 0; }

.shop-pop { position: fixed; inset: 0; z-index: 1260; display: none; align-items: center; justify-content: center; padding: 16px; }
.shop-pop.is-open { display: flex; }
.shop-pop__scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); animation: shop-pop-fade 0.24s ease both; }
.shop-pop__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(390px, 1fr);
  width: min(1040px, 100%);
  min-height: min(500px, calc(100dvh - 32px));
  max-height: calc(100dvh - 32px);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  animation: shop-pop-in 0.34s var(--ease-bounce) both;
}
.shop-pop__panel:focus { outline: none; }
.shop-pop__media {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background: #0b0b0b;
}
.shop-pop__media > img {
  position: absolute; top: -14px; left: -14px; display: block; width: calc(100% + 28px); height: calc(100% + 28px);
  object-fit: cover; object-position: 46% center;
  transition: transform 0.6s ease;
}
.shop-pop__media.is-lit > img { transform: scale(1.04); }
.shop-pop__body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: clamp(28px, 4vw, 44px);
  overflow-y: auto;
}
.shop-pop__close {
  position: absolute; top: 14px; right: 14px;
  padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--bg-surface); color: var(--text-muted);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer;
}
.shop-pop__close:hover { color: var(--text); background: var(--bg-card-hover); }
.shop-pop__kicker { margin: 0 0 -10px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
@keyframes shop-pop-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes shop-pop-in { from { opacity: 0; transform: translateY(18px) scale(0.98); } to { opacity: 1; transform: none; } }
@media (max-width: 699px) {
  .shop-pop { align-items: flex-end; padding: 0; }
  .shop-pop__panel { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); max-height: 92dvh; border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
  .shop-pop__panel { min-height: 0; }
  .shop-pop__media { height: 240px; min-height: 0; }
  .shop-pop__body { padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .shop-pop__scrim, .shop-pop__panel { animation: none; }
  .shop-pop__media.is-lit > img { transform: none; }
}
.shop-perks__title { margin: 0 0 10px; }
.shop-perks__copy .block-lede { margin: 0; }
.shop-perks__forms { display: flex; flex-direction: column; gap: 14px; }
.shop-perks__form { display: flex; flex-direction: column; gap: 8px; }
.shop-perks__form[hidden], .shop-perks__client[hidden] { display: none; }
.shop-perks__row { display: flex; gap: 10px; }
.shop-perks__row .shop-input { flex: 1; min-width: 0; padding: 11px 14px; }
.shop-perks__row .btn { flex: none; justify-content: center; }
@media (max-width: 420px) { .shop-perks__row { flex-direction: column; } }
.shop-perks__note { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--text-dim); }
.shop-perks__client > summary { cursor: pointer; width: fit-content; font-size: 13.5px; color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; }
.shop-perks__client > summary:hover { color: var(--text); }
.shop-perks__client[open] > summary { margin-bottom: 12px; }
.shop-perks__status { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--text-muted); }
.shop-perks__status:empty { display: none; }
.shop-perks__status.is-error { color: var(--accent); }
.shop-perks__on { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.shop-perks__on[hidden] { display: none; }
.shop-perks__on li { padding: 6px 12px; border-radius: 999px; background: var(--accent-dim); color: var(--text); font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; }
.shop-perks__on li::before { content: '\2713\00a0'; color: var(--accent); }
.shop-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.shop-card__price s, .shop-make__price s { margin-right: 6px; color: var(--text-dim); }

.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding-bottom: var(--section-y);
}
@media (max-width: 1024px) { .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .shop-grid { grid-template-columns: 1fr; } }

.shop-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  overflow: hidden;
}
.shop-card__media { position: relative; background: #d8d8d9; }
.shop-card__media > img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.shop-card__media > img[hidden] { display: none; }
.shop-card__pick { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); width: max-content; flex-wrap: nowrap; z-index: 2; }
.shop-card__who, .shop-card__tabs { position: absolute; left: 14px; top: 14px; z-index: 2; flex-wrap: nowrap; }
.shop-card__media > img[data-alt] { position: absolute; inset: 0; height: 100%; opacity: 0; transition: opacity 0.35s ease; }
.shop-card__media.is-flipped > img[data-alt] { opacity: 1; }
@media (hover: hover) { .shop-card__media:hover > img[data-alt] { opacity: 1; } }
.shop-card__media:has(> img[data-alt]) { cursor: pointer; }
.shop-card__flip {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #3d3b36;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  pointer-events: none;
}
.shop-card__flip::before { content: '\21BB\00a0'; }
.shop-card__media.is-3d > img[data-alt], .shop-card__media.is-3d:hover > img[data-alt] { opacity: 0; }
.shop-card__media.is-3d .shop-card__flip { display: none; }
.shop-card__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.shop-card__body { display: flex; flex-direction: column; gap: 14px; flex: 1; padding: 20px 20px 22px; }
.shop-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.shop-card__name { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; text-wrap: balance; }
.shop-card__price { font-family: var(--mono); font-size: 14px; color: var(--text); white-space: nowrap; }
.shop-card__desc { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--text-muted); text-wrap: pretty; }
.shop-card__foot { display: flex; flex-direction: column; gap: 12px; margin-top: auto; }
.shop-card__foot .btn { justify-content: center; }

.shop-pills {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-surface);
  align-self: flex-start;
}
.shop-pill {
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.shop-pill:hover { color: var(--text); }
.shop-pill[aria-pressed="true"] { background: var(--bg-card); color: var(--text); box-shadow: 0 0 0 1px var(--border); }
.shop-pill:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.shop-field-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.shop-mock { position: relative; container-type: inline-size; aspect-ratio: 3 / 4; background: #d8d8d9; overflow: hidden; }
.shop-mock > img, .shop-mock__zoom > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shop-mock__qr { position: absolute; display: block; opacity: 0.94; }
.shop-mock__qr svg { display: block; width: 100%; height: auto; }
.shop-mock__qr--wrist { left: 85.5%; top: 71.5%; width: 9.5cqw; transform: translate(-50%, -50%) rotate(-8deg); }
.shop-mock__qr[hidden] { display: none; }
.shop-mock__zoom { position: absolute; inset: 0; transform-origin: 0 0; transform: translate(-196.5%, -164.5%) scale(3); }

.shop-make { padding: var(--section-y) 0; border-top: 1px solid var(--border-dim); }
.shop-make__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}
@media (max-width: 900px) { .shop-make__grid { grid-template-columns: 1fr; } }
.shop-make__preview { position: sticky; top: calc(var(--nav-h) + 24px); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.shop-make__preview > .shop-pills { align-self: center; }
.shop-make__hint { text-align: center; }
@media (max-width: 900px) { .shop-make__preview { position: static; } }
.shop-make__frame { width: min(100%, calc((100svh - var(--nav-h) - 150px) * 3 / 4)); border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; }
@media (max-width: 900px) { .shop-make__frame { width: 100%; } }
.shop-make__hint { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--text-muted); text-wrap: pretty; }
.shop-make__hint b { color: var(--text); font-weight: 600; }

.shop-make__form { display: flex; flex-direction: column; gap: 22px; }
.shop-make__form .section-label { margin-bottom: 0; }
.shop-make__title { margin: 0; }
.shop-make__lede { margin: 0; max-width: 52ch; }
.shop-field { display: flex; flex-direction: column; gap: 10px; }
.shop-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
}
.shop-input::placeholder { color: var(--text-dim); }
.shop-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.shop-input[aria-invalid="true"] { border-color: var(--accent); }
.shop-meter { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 1.5; color: var(--text-muted); }
.shop-meter::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #3ecf8e; }
.shop-meter[data-level="ok"]::before { background: #f5b83d; }
.shop-meter[data-level="bad"]::before { background: var(--accent); }
.shop-make__buy { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; border-top: 1px solid var(--border-dim); }
.shop-make__price { font-family: var(--mono); font-size: 15px; }
.shop-make__small { margin: 0; font-size: 12.5px; line-height: 1.6; color: var(--text-dim); text-wrap: pretty; }
.shop-make__note { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-muted); text-wrap: pretty; }

.shop-why { padding-bottom: var(--section-y); }
.shop-why__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
  padding: clamp(28px, 4vw, 56px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--bg-card);
}
@media (max-width: 900px) { .shop-why__inner { grid-template-columns: 1fr; } }
.shop-why__title { margin: 0; }
.shop-why__body { display: flex; flex-direction: column; gap: 16px; }
.shop-why__body p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--text-muted); text-wrap: pretty; }
.shop-why__body .btn { align-self: flex-start; }

.shop-bag-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.shop-bag-btn[hidden] { display: none; }
.shop-bag-btn__n { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--on-accent); color: var(--accent); font-family: var(--mono); font-size: 12px; }

.shop-bag { position: fixed; inset: 0; z-index: 1250; display: none; }
.shop-bag.is-open { display: block; }
.shop-bag__scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.55); }
.shop-bag__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100%);
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border-left: 1px solid var(--border);
}
.shop-bag__head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--border-dim); }
.shop-bag__title { margin: 0; font-size: 18px; font-weight: 600; }
.shop-bag__list { flex: 1; overflow: auto; margin: 0; padding: 8px 22px; list-style: none; }
.shop-bag__item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border-dim); }
.shop-bag__item img { width: 64px; height: 85px; object-fit: cover; border-radius: var(--radius); background: #d8d8d9; }
.shop-bag__name { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.35; }
.shop-bag__meta { margin: 4px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--text-muted); overflow-wrap: anywhere; }
.shop-bag__side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-family: var(--mono); font-size: 13px; }
.shop-bag__remove { padding: 0; border: 0; background: none; color: var(--text-dim); font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; }
.shop-bag__remove:hover { color: var(--accent); }
.shop-bag__empty { padding: 28px 0; color: var(--text-muted); font-size: 14px; }
.shop-bag__foot { display: flex; flex-direction: column; gap: 12px; padding: 18px 22px 22px; border-top: 1px solid var(--border-dim); }
.shop-bag__total { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 14px; }
.shop-bag__lines { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 0; font-family: var(--mono); font-size: 13px; color: var(--text-muted); }
.shop-bag__lines[hidden] { display: none; }
.shop-bag__lines dt, .shop-bag__lines dd { margin: 0; }
.shop-bag__lines dd { text-align: right; }
.shop-bag__perk { font-size: 13px; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.shop-bag__perk[hidden] { display: none; }
.shop-bag__foot .btn { justify-content: center; }
.shop-bag__note { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--text-dim); text-wrap: pretty; }
.shop-bag__close { padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--bg-surface); color: var(--text-muted); font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; }
.shop-bag__close:hover { color: var(--text); background: var(--bg-card); }

.shop-add.is-added { background: var(--bg-card); color: var(--text); border-color: var(--border); }

@media (prefers-reduced-motion: reduce) {
  .shop-pill, .shop-bag-btn { transition: none; }
}
