/* Project U.P. — Merch shop (/merch) */
body.brand-men { background: #0f0f0f; color: #faf6ef; }

.merch-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px; position: sticky; top: 0; z-index: 50;
  background: #0f0f0f; border-bottom: 1px solid rgba(212, 188, 154, 0.12);
}
.merch-nav__cart { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; }
.merch-nav__count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px;
  background: #14110d; color: #d4bc9a; font-size: 11px; font-weight: 500;
  margin-left: 4px;
}
.merch-hero { padding: 80px 32px 40px; text-align: center; }
.merch-grid-section { padding: 40px 32px 96px; }
.merch-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px; max-width: 1200px; margin: 0 auto;
}
.merch-loading {
  grid-column: 1 / -1; text-align: center; color: rgba(250, 246, 239, 0.55);
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; padding: 60px 0;
}
.product-card {
  background: #14110d; border: 1px solid rgba(212, 188, 154, 0.14);
  display: flex; flex-direction: column; overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.product-card:hover { transform: translateY(-2px); border-color: rgba(212, 188, 154, 0.28); }
.product-card__media {
  aspect-ratio: 1 / 1; background: #1a1a1a;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.product-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.product-card__name {
  font-family: 'League Gothic', Impact, sans-serif;
  font-size: 26px; line-height: 1.05; letter-spacing: 0.02em;
  color: #faf6ef; margin: 0; text-transform: uppercase;
}
.product-card__price { color: #d4bc9a; font-family: 'Roboto Mono', monospace; font-size: 13px; letter-spacing: 0.08em; }
.product-card__variants { display: flex; flex-wrap: wrap; gap: 6px; }
.product-card__variant {
  background: transparent; border: 1px solid rgba(250, 246, 239, 0.18);
  color: rgba(250, 246, 239, 0.85); padding: 6px 10px;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.product-card__variant:hover { border-color: #b5946a; color: #d4bc9a; }
.product-card__variant[aria-pressed="true"] { background: #b5946a; color: #14110d; border-color: #b5946a; }
.product-card__add { margin-top: auto; font-size: 12px; }

.cart-drawer { position: fixed; inset: 0; z-index: 9000; display: flex; justify-content: flex-end; }
.cart-drawer[hidden] { display: none; }
.cart-drawer__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.7); cursor: pointer; }
.cart-drawer__panel {
  position: relative; width: 100%; max-width: 420px; height: 100%;
  background: #14110d; border-left: 1px solid rgba(212, 188, 154, 0.18);
  display: flex; flex-direction: column;
}
.cart-drawer__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid rgba(212, 188, 154, 0.18);
}
.cart-drawer__title { font-family: 'League Gothic', Impact, sans-serif; font-size: 24px; letter-spacing: 0.04em; text-transform: uppercase; margin: 0; }
.cart-drawer__close {
  background: transparent; border: 0; color: rgba(250, 246, 239, 0.7);
  font-size: 28px; cursor: pointer; padding: 4px 10px; line-height: 1;
}
.cart-drawer__items { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-drawer__empty {
  text-align: center; color: rgba(250, 246, 239, 0.45);
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 40px 0; margin: 0;
}
.cart-item {
  display: grid; grid-template-columns: 60px 1fr auto; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid rgba(212, 188, 154, 0.08);
}
.cart-item img { width: 60px; height: 60px; object-fit: cover; }
.cart-item__body { display: flex; flex-direction: column; gap: 4px; }
.cart-item__name { font-size: 13px; color: #faf6ef; margin: 0; }
.cart-item__meta { font-size: 11px; color: rgba(250, 246, 239, 0.55); margin: 0; }
.cart-item__qty { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; }
.cart-item__qty button {
  background: transparent; border: 1px solid rgba(250, 246, 239, 0.2);
  color: #faf6ef; width: 22px; height: 22px; font-size: 14px;
  cursor: pointer; line-height: 1; padding: 0;
}
.cart-item__qty span { font-size: 12px; min-width: 14px; text-align: center; }
.cart-item__price { font-family: 'Roboto Mono', monospace; font-size: 12px; color: #d4bc9a; align-self: start; }
.cart-item__remove {
  background: transparent; border: 0; color: rgba(250, 246, 239, 0.4);
  font-size: 11px; cursor: pointer; align-self: end; padding: 0;
}
.cart-item__remove:hover { color: #d4bc9a; }
.cart-drawer__footer { padding: 20px 24px 24px; border-top: 1px solid rgba(212, 188, 154, 0.18); }
.cart-drawer__totals p { display: flex; justify-content: space-between; font-size: 13px; margin: 0 0 8px; }
.cart-drawer__totals p:first-child { color: #faf6ef; font-weight: 500; }
.cart-drawer__note { font-size: 11px; color: rgba(250, 246, 239, 0.45); }
.cart-drawer__checkout { width: 100%; font-size: 13px; padding: 14px 20px; }
.cart-drawer__checkout:disabled { opacity: 0.4; cursor: not-allowed; }

.footer--dark { background: #0a0908; color: rgba(250, 246, 239, 0.6); }

@media (max-width: 600px) {
  .merch-nav { padding: 14px 18px; }
  .merch-hero { padding: 56px 20px 28px; }
  .merch-grid-section { padding: 28px 16px 64px; }
  .merch-grid { gap: 20px; }
}

/* Product card dropdowns (colour + size) */
.product-card__field {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(250, 246, 239, 0.6);
}
.product-card__field span { flex-shrink: 0; }
.product-card__select {
  flex: 1;
  background: #0a0908;
  border: 1px solid rgba(212, 188, 154, 0.22);
  color: #faf6ef;
  padding: 8px 28px 8px 12px;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='%23d4bc9a' d='M0 0l5 6 5-6z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px 6px;
  transition: border-color 0.15s ease;
}
.product-card__select:focus {
  outline: none;
  border-color: #b5946a;
}
.product-card__select option {
  background: #14110d;
  color: #faf6ef;
}
