/* Nowhere Party Shop — complements landing.css tokens */

.shop-section {
  padding: 96px 0 88px;
  background: var(--surface);
}

.shop-section__layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.95fr) minmax(0, 1.7fr);
  gap: 56px 48px;
  align-items: start;
}

.shop-section__intro {
  position: sticky;
  top: calc(var(--nav-height) + 28px);
}

.shop-badge {
  display: inline-block;
  padding: 0;
  border-radius: 0;
  background: none;
  color: var(--secondary);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.shop-section__title,
.shop-page__title,
.shop-card__title,
.shop-detail__name {
  font-weight: 700;
  letter-spacing: -0.025em;
}

.shop-section__title {
  margin: 22px 0 16px;
  font-size: clamp(2.1rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--label);
}

.shop-section__lead {
  margin: 0 0 28px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--secondary);
  max-width: 34ch;
}

.shop-section__all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  transition: color 0.2s ease, gap 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.shop-section__all:hover {
  color: var(--accent-dark);
  gap: 12px;
}

/* ── Peek product list ── */

.shop-peek-host {
  min-width: 0;
}

.shop-peek {
  position: relative;
}

.shop-peek__track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 18% 8px 2px;
}

.shop-peek__track::-webkit-scrollbar {
  display: none;
}

.shop-peek .shop-card {
  flex: 0 0 min(82%, 320px);
  scroll-snap-align: start;
  max-width: 340px;
}

.shop-peek__fade {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(38%, 140px);
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.55) 38%,
    rgba(255, 255, 255, 0.97) 100%
  );
  z-index: 2;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.shop-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 0;
  border-radius: 0;
  overflow: hidden;
  transition: transform 0.35s ease;
}

.shop-card:hover {
  border-color: transparent;
  box-shadow: none;
  transform: none;
  opacity: 1;
}

.shop-card__media {
  display: block;
  aspect-ratio: 1 / 1;
  background: var(--surface-muted);
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}

.shop-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.shop-card:hover .shop-card__media img {
  transform: scale(1.04);
}

.shop-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 18px 18px;
  flex: 1;
}

.shop-card__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--label);
}

.shop-card__title a {
  color: inherit;
}

.shop-card__title a:hover {
  color: var(--accent);
}

.shop-card__tags {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--tertiary);
  line-height: 1.4;
}

.shop-card__price {
  margin: 4px 0 8px;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--label);
}

.shop-card__cta {
  margin-top: auto;
  width: 100%;
}

.shop-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 32px;
  margin-top: 40px;
  padding: 28px 0 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.shop-trust__item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--secondary);
  text-align: left;
  opacity: 0;
  transform: translateY(10px);
  animation: shop-trust-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.shop-trust__item:nth-child(1) { animation-delay: 0.08s; }
.shop-trust__item:nth-child(2) { animation-delay: 0.16s; }
.shop-trust__item:nth-child(3) { animation-delay: 0.24s; }

@keyframes shop-trust-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.shop-trust__item svg {
  width: 18px;
  height: 18px;
  color: var(--tertiary);
  flex-shrink: 0;
}

.shop-peek {
  animation: shop-peek-in 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes shop-peek-in {
  from {
    opacity: 0;
    transform: translateX(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.shop-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background:
    linear-gradient(180deg, #f5f5f5 0%, #efefef 100%);
  color: var(--tertiary);
  font-size: 0.8125rem;
  font-weight: 500;
  border: 0;
}

.shop-placeholder::before {
  content: "";
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1.5px dashed #cfcfcf;
  background:
    linear-gradient(135deg, transparent 46%, #d8d8d8 46%, #d8d8d8 54%, transparent 54%),
    linear-gradient(45deg, transparent 46%, #d8d8d8 46%, #d8d8d8 54%, transparent 54%);
  opacity: 0.7;
}

.shop-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 18px;
  border: none;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
  text-align: center;
}

.shop-btn:hover {
  background: var(--accent-dark);
}

.shop-btn:active {
  transform: scale(0.98);
}

.shop-btn:disabled,
.shop-btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.shop-btn--ghost {
  background: transparent;
  color: var(--label);
  border: 1px solid var(--border-strong);
}

.shop-btn--ghost:hover {
  background: var(--surface-muted);
}

.shop-btn--block {
  width: 100%;
}

.shop-cart__total-row--grand {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-weight: 700;
}

.shop-cart__legal {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 16px 0 14px;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--secondary);
  cursor: pointer;
}

.shop-cart__legal input {
  margin-top: 3px;
  flex-shrink: 0;
}

.shop-cart__legal a {
  color: var(--accent);
}

.shop-nav-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 0;
  color: var(--label);
  transition: color 0.15s ease;
}

.shop-nav-cart:hover {
  background: transparent;
  color: var(--secondary);
}

.shop-nav-cart svg {
  width: 17px;
  height: 17px;
}

.shop-nav-cart__badge {
  position: absolute;
  top: 1px;
  right: 0;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 15px;
  text-align: center;
  display: none;
}

.shop-nav-cart__badge.is-on {
  display: inline-block;
}

.shop-page {
  padding: 56px 0 100px;
  min-height: 60vh;
}

.shop-page__header {
  margin-bottom: 40px;
  max-width: 42rem;
}

.shop-page__eyebrow {
  display: inline-block;
  margin-bottom: 10px;
}

.shop-page__title {
  margin: 0 0 14px;
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.shop-page__lead {
  margin: 0;
  color: var(--secondary);
  max-width: 40ch;
  line-height: 1.7;
}

.shop-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 24px;
  font-size: 0.875rem;
  color: var(--tertiary);
}

.shop-breadcrumb a {
  color: var(--secondary);
  font-weight: 500;
}

.shop-breadcrumb a:hover {
  color: var(--accent);
}

.shop-breadcrumb__sep {
  opacity: 0.5;
}

.shop-detail {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.shop-detail__main {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.9fr);
  gap: 40px 56px;
  align-items: start;
}

.shop-gallery {
  min-width: 0;
}

.shop-gallery__stage {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 2px;
  border: 0;
  overflow: hidden;
  background: var(--surface-muted);
  touch-action: pan-y;
}

.shop-gallery__track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  outline: none;
}

.shop-gallery__track:focus-visible {
  box-shadow: inset 0 0 0 2px var(--accent);
}

.shop-gallery__slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  position: relative;
}

.shop-gallery__slide img,
.shop-gallery__slide .shop-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.shop-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--label);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.15s ease, transform 0.15s ease;
}

.shop-gallery__stage:hover .shop-gallery__nav,
.shop-gallery__stage:focus-within .shop-gallery__nav,
.shop-gallery__nav:focus-visible {
  opacity: 1;
}

.shop-gallery__nav:hover {
  background: #fff;
}

.shop-gallery__nav:active {
  transform: translateY(-50%) scale(0.96);
}

.shop-gallery__nav--prev {
  left: 10px;
}

.shop-gallery__nav--next {
  right: 10px;
}

.shop-gallery__counter {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--secondary);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  box-shadow: none;
  pointer-events: none;
}

.shop-gallery__dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 5px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.shop-gallery__dot {
  width: 5px;
  height: 5px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.22);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.shop-gallery__dot.is-active {
  background: var(--label);
  transform: scale(1.1);
}

.shop-gallery__thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 2px 2px 4px;
}

.shop-gallery__thumbs::-webkit-scrollbar {
  display: none;
}

.shop-gallery__thumb {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  padding: 0;
  border-radius: 2px;
  border: 1px solid transparent;
  overflow: hidden;
  background: var(--surface-muted);
  cursor: pointer;
  position: relative;
  scroll-snap-align: center;
  opacity: 0.55;
  transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.shop-gallery__thumb:hover {
  opacity: 0.85;
  border-color: transparent;
}

.shop-gallery__thumb.is-active {
  opacity: 1;
  border-color: var(--label);
  box-shadow: none;
}

.shop-gallery__thumb:active {
  transform: scale(0.97);
}

.shop-gallery__thumb img,
.shop-gallery__thumb .shop-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.shop-gallery__thumb .shop-placeholder {
  font-size: 0.625rem;
}

@media (hover: none) {
  .shop-gallery__nav {
    opacity: 0.92;
  }

  .shop-gallery__counter {
    /* Dots already show position on touch; keep counter light */
    opacity: 0.95;
  }
}

.shop-detail__info {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
  max-width: 28rem;
}

.shop-detail__name {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.shop-detail__price {
  margin: 0 0 16px;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.shop-detail__tags {
  margin: 0 0 18px;
  color: var(--tertiary);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.shop-detail__short {
  margin: 0 0 28px;
  color: var(--secondary);
  line-height: 1.65;
  font-size: 0.9375rem;
  max-width: 34ch;
}

.shop-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 16px;
}

.shop-qty button {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  font-size: 1.0625rem;
  cursor: pointer;
  color: var(--label);
}

.shop-qty button:hover {
  background: var(--surface-muted);
}

.shop-qty__value {
  min-width: 36px;
  text-align: center;
  font-weight: 600;
}

.shop-detail__actions {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}

.shop-detail__link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.shop-detail__link:hover {
  color: var(--label);
}

.shop-detail__trust {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.shop-detail__trust li {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--tertiary);
}

.shop-detail__overview {
  padding-top: 40px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  max-width: 40rem;
}

.shop-detail__overview-title {
  margin: 0 0 14px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tertiary);
}

.shop-detail__overview-text {
  margin: 0 0 28px;
  color: var(--secondary);
  line-height: 1.7;
  font-size: 0.9375rem;
}

.shop-detail__specs {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--label);
}

.shop-detail__specs li {
  margin: 0;
  padding: 14px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--secondary);
}

.shop-detail__specs li:last-child {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.shop-cart {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.7fr);
  gap: 28px;
  align-items: start;
}

.shop-cart__list {
  display: grid;
  gap: 14px;
}

.shop-cart__row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.shop-cart__thumb {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-muted);
  border: 1px solid var(--border);
}

.shop-cart__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-cart__meta h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.shop-cart__meta p {
  margin: 0 0 10px;
  color: var(--secondary);
  font-size: 0.875rem;
}

.shop-cart__remove {
  margin-top: 8px;
  border: none;
  background: none;
  padding: 0;
  color: var(--tertiary);
  font-size: 0.8125rem;
  cursor: pointer;
}

.shop-cart__remove:hover {
  color: var(--accent-dark);
}

.shop-cart__line {
  font-weight: 700;
  white-space: nowrap;
}

.shop-cart__summary {
  position: sticky;
  top: calc(var(--nav-height) + 20px);
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-elevated);
}

.shop-cart__summary h2 {
  margin: 0 0 16px;
  font-size: 1.125rem;
}

.shop-cart__total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 1.0625rem;
}

.shop-cart__note {
  margin: 0 0 18px;
  font-size: 0.8125rem;
  color: var(--tertiary);
  line-height: 1.45;
}

.shop-cart__empty {
  padding: 48px 24px;
  text-align: center;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface-muted);
}

.shop-cart__empty h2 {
  margin: 0 0 8px;
}

.shop-cart__empty p {
  margin: 0 0 18px;
  color: var(--secondary);
}

.shop-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(16px);
  z-index: 200;
  padding: 12px 16px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: var(--shadow-md);
}

.shop-toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.shop-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.shop-modal.is-open {
  display: flex;
}

.shop-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.shop-modal__card {
  position: relative;
  width: min(420px, 100%);
  padding: 28px 24px;
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.shop-modal__card h2 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

.shop-modal__card p {
  margin: 0 0 20px;
  color: var(--secondary);
  line-height: 1.5;
}

@media (max-width: 960px) {
  .shop-section__layout,
  .shop-detail__main,
  .shop-cart {
    grid-template-columns: 1fr;
  }

  .shop-section__intro,
  .shop-detail__info,
  .shop-cart__summary {
    position: static;
  }

  .shop-detail {
    gap: 40px;
  }

  .shop-detail__info {
    max-width: none;
  }

  .shop-section__lead {
    max-width: 38ch;
  }

  .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-trust {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 32px;
    padding-top: 24px;
  }
}

@media (max-width: 640px) {
  .shop-section {
    padding: 72px 0 64px;
  }

  .shop-section__title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .shop-peek .shop-card {
    flex-basis: 84%;
  }

  .shop-grid {
    grid-template-columns: 1fr;
  }

  .shop-cart__row {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .shop-cart__line {
    grid-column: 2;
  }

  .shop-gallery__thumb {
    width: 60px;
    height: 60px;
  }

  .shop-gallery__nav {
    width: 32px;
    height: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shop-card,
  .shop-card__media img,
  .shop-section__all,
  .shop-peek,
  .shop-trust__item {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }

  .shop-card:hover .shop-card__media img {
    transform: none;
  }
}
