/**
 * Sklep merch — Without Gravity
 */

.shop-page {
  --shop-radius: var(--radius-lg);
}

.shop-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(7, 9, 11, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.shop-header__inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.shop-header__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.shop-header__brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.shop-header__nav {
  display: flex;
  gap: 20px;
  font-size: 0.92rem;
  color: var(--muted);
}

.shop-header__nav a:hover,
.shop-header__nav a.is-active {
  color: var(--text);
}

.shop-hero {
  padding: 48px 0 32px;
}

.shop-hero__eyebrow {
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.shop-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  max-width: 14ch;
  margin-bottom: 16px;
}

.shop-hero__lead {
  color: var(--muted);
  max-width: 52ch;
  font-size: 1.05rem;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
  padding-bottom: 80px;
}

.shop-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--shop-radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  text-decoration: none;
  color: inherit;
}

.shop-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(255, 122, 0, 0.35);
}

.shop-card__media {
  aspect-ratio: 4 / 5;
  background: var(--placeholder-warm);
  position: relative;
  overflow: hidden;
}

.shop-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.shop-card:hover .shop-card__media img {
  transform: scale(1.04);
}

.shop-card__body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.shop-card__name {
  font-size: 1.15rem;
  font-weight: 700;
}

.shop-card__price {
  color: var(--accent-2);
  font-weight: 700;
}

.shop-card__cta {
  margin-top: auto;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Product detail */
.shop-pdp {
  padding: 32px 0 88px;
}

.shop-pdp__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 900px) {
  .shop-pdp__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.shop-pdp__gallery {
  border-radius: var(--shop-radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  aspect-ratio: 4 / 5;
}

.shop-pdp__gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-pdp__title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.shop-pdp__desc {
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.shop-pdp__price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-2);
  margin-bottom: 8px;
}

.shop-pdp__stock {
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.shop-pdp__stock.is-low {
  color: #ffb15c;
}

.shop-pdp__stock.is-out {
  color: #ff6b6b;
}

.shop-field {
  margin-bottom: 22px;
}

.shop-field__label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 10px;
}

.shop-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.shop-swatch {
  min-width: 88px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.88rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.shop-swatch:hover {
  border-color: rgba(255, 122, 0, 0.5);
}

.shop-swatch.is-selected {
  border-color: var(--accent);
  background: rgba(255, 122, 0, 0.12);
}

.shop-swatch:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.shop-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.shop-size {
  width: 52px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.shop-size.is-selected {
  border-color: var(--accent);
  background: rgba(255, 122, 0, 0.15);
}

.shop-size:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  text-decoration: line-through;
}

.shop-buy {
  width: 100%;
  margin-top: 8px;
  min-height: 52px;
  font-size: 1rem;
}

.shop-buy:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.shop-note {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--muted);
}

.shop-alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
  font-size: 0.92rem;
}

.shop-alert--warn {
  background: rgba(255, 177, 92, 0.12);
  border: 1px solid rgba(255, 177, 92, 0.35);
}

.shop-alert--error {
  background: rgba(255, 80, 80, 0.1);
  border: 1px solid rgba(255, 80, 80, 0.35);
}

.shop-loading {
  text-align: center;
  padding: 80px 20px;
  color: var(--muted);
}

.shop-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: shop-spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes shop-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Merch teaser on main site */
.merch-teaser {
  position: relative;
  overflow: hidden;
}

.merch-teaser__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
}

@media (max-width: 900px) {
  .merch-teaser__grid {
    grid-template-columns: 1fr;
  }
}

.merch-teaser__visual {
  border-radius: var(--radius-xl);
  min-height: 280px;
  background: var(--placeholder-warm);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  padding: 24px;
}

.merch-teaser__badge {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 122, 0, 0.15);
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.merch-teaser__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 24px;
}

.merch-teaser__chip {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}

.shop-success {
  padding: 80px 0;
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}

.shop-success h1 {
  margin-bottom: 16px;
}

.shop-success p {
  color: var(--muted);
  margin-bottom: 28px;
}
