/* 1D3R merch (/merch): the product grid and the product page. */
.mx-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px; font: 400 13px/1.2 var(--mono); letter-spacing: .26em; color: var(--fog); text-transform: uppercase; }
.mx-eyebrow::before { content: ""; width: 9px; height: 9px; background: var(--brass); }
.mx-brass { color: var(--brass); }

/* header */
.mh { position: relative; overflow: hidden; isolation: isolate; padding: clamp(40px, 6vw, 80px) 0 clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--steel); }
.mh-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; }
.mh-title { font-size: clamp(44px, 7vw, 88px); }
.mh-lead { max-width: 42ch; color: var(--fog); font-size: 17px; }

/* grid */
.mx-body { padding: clamp(28px, 4vw, 48px) 0 clamp(56px, 8vw, 96px); }
.mx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.mx-card { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--steel); border-radius: 14px; overflow: hidden; background: var(--graphite); text-decoration: none; transition: border-color .2s var(--ease), transform .2s var(--ease); }
.mx-card:hover { border-color: var(--brass-line); transform: translateY(-2px); }
.mx-pic { position: relative; display: grid; place-items: center; aspect-ratio: 1; background: radial-gradient(ellipse at 50% 35%, #232a36, #151a23 70%); }
.mx-pic img { width: 100%; height: 100%; object-fit: cover; }
.mx-noimg { font: 500 56px/1 var(--display); color: var(--brass-ink); background: var(--brass); padding: 18px 22px; border-radius: 18px 26px 18px 18px; }
.mx-tag { position: absolute; top: 12px; left: 12px; padding: 5px 10px; border-radius: 999px; background: rgba(10, 12, 16, .82); border: 1px solid var(--steel-2); font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--bone); }
.mx-tag.is-sale { background: var(--brass); border-color: var(--brass); color: var(--brass-ink); }
.mx-card.is-out .mx-pic img { opacity: .55; filter: grayscale(.5); }
.mx-cap { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; border-top: 1px solid var(--steel); }
.mx-name { font-weight: 600; color: var(--bone); }
.mx-price { color: var(--fog); font-size: 15px; }
.mx-price s, .mp-price s { color: var(--mist); }
.mx-empty { padding: clamp(40px, 8vw, 90px) 0; text-align: center; }
.mx-empty h2 { font-size: clamp(32px, 4.6vw, 52px); }
.mx-empty p { margin-top: 12px; color: var(--fog); }

/* product page */
.mp { padding: clamp(24px, 4vw, 40px) 0 clamp(56px, 8vw, 96px); }
.mp-crumb { display: flex; gap: 10px; margin-bottom: 24px; font-size: 14px; color: var(--mist); }
.mp-crumb a { color: var(--fog); text-decoration: none; }
.mp-crumb a:hover { color: var(--bone); }
.mp-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.mp-gallery { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 12px; }
.mp-main { display: grid; place-items: center; aspect-ratio: 1; border: 1px solid var(--steel); border-radius: 16px; overflow: hidden; background: radial-gradient(ellipse at 50% 35%, #232a36, #151a23 70%); }
.mp-main img { width: 100%; height: 100%; object-fit: cover; }
.mp-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 10px; }
.mp-thumb { display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 1px solid var(--steel); border-radius: 10px; overflow: hidden; background: var(--graphite); cursor: pointer; }
.mp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mp-thumb.is-on, .mp-thumb:hover { border-color: var(--brass); }
.mp-title { font-size: clamp(34px, 4.4vw, 54px); }
.mp-price { margin-top: 14px; font: 500 24px/1.2 var(--font); color: var(--bone); }
.mp-alert { margin-top: 18px; padding: 12px 14px; border: 1px solid rgba(240, 96, 106, .45); border-radius: 10px; background: rgba(240, 96, 106, .08); color: #ffb3b8; }
.mp-form { display: flex; flex-direction: column; gap: 20px; margin-top: 26px; }
.mp-opt { margin: 0; padding: 0; border: 0; min-width: 0; }
.mp-opt legend { margin-bottom: 10px; padding: 0; font: 400 12px/1.2 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--fog); }
.mp-opt legend span { color: var(--bone); letter-spacing: .08em; text-transform: none; font-family: var(--font); font-size: 14px; }
.mp-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.mp-pill, .mp-swatch { position: relative; cursor: pointer; }
.mp-pill input, .mp-swatch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.mp-pill span { display: inline-flex; align-items: center; min-width: 48px; min-height: 42px; justify-content: center; padding: 0 14px; border: 1px solid var(--steel-2); border-radius: 8px; font-weight: 500; color: var(--bone); background: rgba(255, 255, 255, .02); }
.mp-pill input:checked + span { border-color: var(--brass); background: var(--brass-soft); color: var(--brass-hot); }
.mp-pill input:focus-visible + span, .mp-swatch input:focus-visible + span { outline: 2px solid var(--brass); outline-offset: 2px; }
.mp-pill.is-out span { color: var(--mist); text-decoration: line-through; border-style: dashed; }
.mp-swatch span { display: block; width: 38px; height: 38px; border-radius: 999px; background: var(--sw, var(--steel-2)); box-shadow: 0 0 0 1px rgba(255, 255, 255, .18) inset; border: 3px solid var(--night); outline: 1px solid var(--steel-2); }
.mp-swatch input:checked + span { outline: 2px solid var(--brass); }
.mp-swatch.is-out span { opacity: .35; }
.mp-field { display: flex; flex-direction: column; gap: 8px; font: 400 12px/1.2 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--fog); }
.mp-field select, .mp-qty input { min-height: 50px; padding: 0 14px; border: 1px solid var(--steel-2); border-radius: 10px; background: var(--graphite); color: var(--bone); font: 500 15px/1 var(--font); letter-spacing: 0; text-transform: none; }
.mp-buyrow { display: flex; gap: 10px; }
.mp-qty input { width: 84px; text-align: center; }
.mp-buy { flex: 1; }
.mp-buy:disabled { opacity: .55; cursor: not-allowed; }
.mp-info > .mp-buy { width: 100%; margin-top: 26px; }
.mp-note { margin-top: 12px; font-size: 14px; color: var(--mist); }
.mp-desc { display: flex; flex-direction: column; gap: 12px; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--steel); color: var(--fog); }
.mp-more { margin-top: clamp(56px, 8vw, 88px); }

@media (max-width: 860px) {
  .mp-row { grid-template-columns: 1fr; }
  .mp-gallery { position: static; }
  .mx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .mx-cap { padding: 12px; }
}
