/* Merch page layout — mirrors shop page structure */
.merch-hero {
  padding: 80px 48px 40px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.merch-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(0,212,200,0.08) 0%, transparent 55%),
    radial-gradient(ellipse at 15% 80%, rgba(212,168,67,0.06) 0%, transparent 45%);
  pointer-events: none;
}
.merch-hero-inner { max-width: 640px; position: relative; z-index: 1; }
.merch-title {
  font-family: var(--font-display, 'Orbitron', 'Bebas Neue', sans-serif);
  font-size: 72px;
  letter-spacing: 3px;
  color: var(--fg);
  line-height: 1;
  margin-bottom: 16px;
}
.merch-sub {
  font-size: 16px;
  color: var(--fg-dim);
  line-height: 1.65;
}

/* Grid */
.merch-body { padding: 48px; }
.merch-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Card */
.merch-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}
.merch-card:hover {
  border-color: rgba(0,212,200,0.45);
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,212,200,0.18);
}

/* Image area */
.merch-img-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #0d0d18;
}
.merch-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.merch-card:hover .merch-img-wrap img {
  transform: scale(1.04);
}
.merch-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: #0A0A0F;
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 10px;
  letter-spacing: 2px;
  padding: 3px 10px;
  border-radius: 2px;
  font-weight: 700;
  z-index: 2;
}

/* Card body */
.merch-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.merch-cat {
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--accent);
  text-transform: uppercase;
}
.merch-name {
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.2;
}
.merch-desc {
  font-size: 13px;
  color: var(--fg-dim);
  line-height: 1.6;
  flex: 1;
}

/* Size selector */
.merch-size-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.merch-size-label {
  font-size: 12px;
  color: var(--fg-dim);
  letter-spacing: 1px;
  white-space: nowrap;
}
.merch-size-select {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--fg);
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  flex: 1;
  outline: none;
  transition: border-color 0.2s;
}
.merch-size-select:focus {
  border-color: var(--accent);
}
.merch-size-select option {
  background: #0F0F1A;
}

/* Footer row — price + CTA */
.merch-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}
.merch-price {
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--amber);
  text-shadow: 0 0 12px rgba(212,168,67,0.4);
}
.merch-add-btn {
  background: var(--accent);
  color: #0A0A0F;
  border: none;
  border-radius: 4px;
  font-family: var(--font-heading, 'Rajdhani', sans-serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 10px 18px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
}
.merch-add-btn:hover:not(:disabled) {
  opacity: 0.88;
  transform: translateY(-1px);
  box-shadow: 0 0 14px rgba(0,212,200,0.45);
}
.merch-add-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Responsive */
@media (max-width: 1024px) {
  .merch-grid { grid-template-columns: repeat(2, 1fr); }
  .merch-body { padding: 32px 32px; }
}
@media (max-width: 640px) {
  .merch-grid { grid-template-columns: 1fr; }
  .merch-body { padding: 24px 20px; }
  .merch-hero { padding: 48px 24px 32px; }
  .merch-title { font-size: 48px; }
}
