/* Shop page only: this page scrolls normally, unlike the horizontal
   filmstrip homepage, so undo the global overflow:hidden from styles.css. */
html, body {
  height: auto;
  overflow: visible;
}

body {
  padding-top: 5.5rem;
  padding-bottom: 5rem;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ---------- Hero ---------- */
.shop-hero {
  padding: 2rem 0 4rem;
  text-align: center;
}

.shop-hero__label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 1rem;
}

.shop-hero__title {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
}

.shop-hero__sub {
  font-size: 13px;
  color: var(--gray);
  max-width: 40ch;
  margin: 0 auto;
}

/* ---------- Product grid ---------- */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.75rem;
  padding-bottom: 3rem;
}

.product-card {
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.product-card__media {
  aspect-ratio: 4 / 5;
  width: 100%;
  position: relative;
  background-image: repeating-linear-gradient(
    45deg,
    var(--tone-a, #0a0a0a),
    var(--tone-a, #0a0a0a) 12px,
    var(--tone-b, #161616) 12px,
    var(--tone-b, #161616) 24px
  );
  overflow: hidden;
}

.product-card:nth-child(1) .product-card__media { --tone-a: #0a0a0a; --tone-b: #1b1b1b; }
.product-card:nth-child(2) .product-card__media { --tone-a: #0a0f0a; --tone-b: #16201a; }
.product-card:nth-child(3) .product-card__media { --tone-a: #0a0a12; --tone-b: #161626; }
.product-card:nth-child(4) .product-card__media { --tone-a: #120a0a; --tone-b: #241414; }
.product-card:nth-child(5) .product-card__media { --tone-a: #0d0a12; --tone-b: #1e1526; }
.product-card:nth-child(6) .product-card__media { --tone-a: #0a0c12; --tone-b: #141c26; }
.product-card:nth-child(7) .product-card__media { --tone-a: #120d0a; --tone-b: #261b14; }
.product-card:nth-child(8) .product-card__media { --tone-a: #0a0a0a; --tone-b: #202020; }

.merch-logo {
  position: absolute;
  display: inline-flex;
  align-items: center;
  font-family: var(--logo-font);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.94);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.55));
  pointer-events: none;
  z-index: 2;
  transform: translate(-50%, -50%);
}

.merch-logo .logo-o {
  width: 0.74em;
  height: 0.74em;
  margin: 0 0.02em;
  color: currentColor;
  flex-shrink: 0;
}

.product-card__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-card__badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--white);
  color: var(--black);
  padding: 0.2rem 0.55rem;
}

.product-card__body {
  padding: 1.1rem 1.1rem 1.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card__name {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.2rem;
}

.product-card__sub {
  font-size: 11px;
  color: var(--gray);
  margin-bottom: 0.75rem;
}

.product-card__price {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.swatch-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.swatch {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.swatch:hover { transform: scale(1.15); }
.swatch.active { box-shadow: 0 0 0 2px var(--black), 0 0 0 3.5px var(--white); }
.swatch[data-color="white"] { border-color: var(--border); }

.swatch-label {
  font-size: 11px;
  color: var(--gray);
}

.size-row {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.size-row .sz {
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--white);
  font-family: var(--mono);
  font-size: 11px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.size-row .sz:hover { border-color: var(--white); }
.size-row .sz.active { background: var(--white); color: var(--black); border-color: var(--white); }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

.product-card .btn {
  width: 100%;
  text-align: center;
  margin-top: auto;
}

/* ---------- Trust row ---------- */
.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 1rem;
}

.trust-item {
  background: var(--black);
  padding: 1.75rem 1.25rem;
  text-align: center;
}

.trust-item__title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

.trust-item__desc {
  font-size: 11px;
  color: var(--gray);
  line-height: 1.5;
}

/* ---------- Checkout modal extras ---------- */
.checkout-modal .modal {
  max-width: 440px;
  text-align: left;
}

.checkout-summary {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.75rem;
  border: 1px solid var(--border);
  padding: 0.85rem;
  margin-bottom: 1.5rem;
}

.checkout-summary > div:last-child { text-align: right; }

.checkout-summary-label {
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 0.2rem;
}

.checkout-summary-value {
  font-size: 0.95rem;
}

.field-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.placeholder-note {
  font-size: 10px;
  color: var(--gray);
  text-align: center;
  margin: 1.25rem 0 0;
  line-height: 1.5;
}

.checkout-success {
  display: none;
  text-align: center;
  padding: 1rem 0;
}

.checkout-success__title {
  font-size: 1.1rem;
  text-transform: uppercase;
  margin: 1rem 0 0.5rem;
}

.checkout-success__desc {
  font-size: 12px;
  color: var(--gray);
  margin-bottom: 1.5rem;
}

@media (max-width: 700px) {
  .container { padding: 0 1.25rem; }
  .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .trust-row { grid-template-columns: 1fr; }
  .field-row2 { grid-template-columns: 1fr; }
}
