/* Max Cooper III store, in the rooms language: charcoal ground, off-white ink,
   chalk-yellow CTAs, red accents. Same class contract as store/store.js. */

.mcshop {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(110px, 14vh, 150px) var(--pad) clamp(70px, 9vw, 110px);
}
.mcshop a { text-decoration: none; }

.mcshop-pagehead { text-align: center; margin-bottom: clamp(30px, 4vw, 50px); }
.mcshop-pagehead p { color: var(--muted); margin: 10px auto 0; max-width: 52ch; }

/* ---- product grid ---- */
.mcshop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 30px 26px; }
.mcshop-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--ground-2);
  transition: transform 0.35s var(--ease), border-color 0.3s ease;
}
.mcshop-card:hover { transform: translateY(-5px); border-color: #3c3c44; }
.mcshop-card-img { aspect-ratio: 1 / 1; background: #101013; display: block; width: 100%; object-fit: cover; }
.mcshop-card-img[src$="sticker.png"], .mcshop-product-img[src$="sticker.png"] { object-fit: contain; }
.mcshop-card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.mcshop-card-name {
  font-family: "Anton", sans-serif; font-weight: 400;
  font-size: 1rem; line-height: 1.3; letter-spacing: 0.03em;
  text-transform: uppercase; color: var(--ink); margin: 0;
}
.mcshop-card-name a { color: var(--ink); }
.mcshop-card-desc { font-size: 0.85rem; color: var(--muted); margin: 0; flex: 1; }
.mcshop-price { font-weight: 700; font-size: 1rem; color: var(--yellow); }
.mcshop-badge {
  align-self: flex-start; font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--red); border: 1px solid var(--red);
  border-radius: 999px; padding: 3px 10px;
}

/* ---- buttons (shared contract with store.js) ---- */
.mcshop-btn {
  display: inline-block; cursor: pointer; border: 1px solid transparent; border-radius: 999px;
  font-family: "Montserrat", sans-serif; font-weight: 700;
  font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 13px 26px; text-align: center;
  background: var(--yellow); color: #101013 !important;
  transition: transform 0.3s var(--ease), background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.mcshop-btn:hover { background: #f3d558; }
.mcshop-btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.mcshop-btn--ghost { background: transparent; color: var(--ink) !important; border-color: #4a4a52; }
.mcshop-btn--ghost:hover { border-color: var(--yellow); color: var(--yellow) !important; background: transparent; }
.mcshop-btn--wide { display: block; width: 100%; }

/* ---- product detail ---- */
.mcshop-product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 56px); align-items: start; }
/* square stage: wide art (the sticker) letterboxes instead of shrinking the
   wrap below the square 3D canvas, which overlapped the title */
.mcshop-product-img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 10px; border: 1px solid var(--line); background: var(--ground-2); }
.mcshop-product h1 {
  font-family: "Anton", sans-serif; font-weight: 400;
  font-size: clamp(1.6rem, 4vw, 2.5rem); line-height: 1.12;
  text-transform: uppercase; letter-spacing: 0.02em; margin: 0 0 10px; color: var(--ink);
}
.mcshop-product .mcshop-price { font-size: 1.5rem; display: block; margin: 6px 0 18px; }
.mcshop-product-desc { color: var(--muted); line-height: 1.7; margin-bottom: 26px; }
.mcshop-field { margin: 0 0 18px; }
.mcshop-field label { display: block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 7px; color: var(--muted); }
.mcshop-field select, .mcshop-field input {
  width: 100%; max-width: 320px; padding: 11px 12px;
  border: 1px solid #3a3a42; border-radius: 6px;
  font-family: "Montserrat", sans-serif; font-size: 0.9rem;
  background: var(--ground-2); color: var(--ink);
}
.mcshop-field select:focus, .mcshop-field input:focus { outline: 2px solid var(--yellow); outline-offset: 2px; }
.mcshop-qty { display: inline-flex; align-items: center; border: 1px solid #3a3a42; border-radius: 6px; overflow: hidden; }
.mcshop-qty button { width: 40px; height: 42px; border: 0; background: var(--ground-2); color: var(--ink); font-size: 1.1rem; cursor: pointer; }
.mcshop-qty button:hover { background: #26262c; }
.mcshop-qty input { width: 54px; height: 42px; border: 0; text-align: center; font-size: 0.95rem; background: transparent; color: var(--ink); }
.mcshop-back { display: inline-block; margin-bottom: 26px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted) !important; transition: color 0.2s ease; }
.mcshop-back:hover { color: var(--yellow) !important; }

/* ---- 3D product stage ---- */
.mcshop-product-stage { position: relative; }
canvas.item-3d { width: 100%; aspect-ratio: 1; display: block; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, 0.55)); cursor: grab; }
.mcshop-spin-note {
  position: absolute; left: 50%; bottom: 8px;
  transform: translateX(-50%);
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); pointer-events: none; white-space: nowrap;
  text-align: center; line-height: 1.6;
}

/* ---- cart / checkout ---- */
.mcshop-cart-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 52px); align-items: start; }
.mcshop-cart-lines { border-top: 1px solid var(--line); }
.mcshop-line { display: grid; grid-template-columns: 84px 1fr auto; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: center; }
.mcshop-line img { width: 84px; height: 84px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.mcshop-line-name { font-weight: 700; font-size: 0.92rem; margin: 0 0 3px; color: var(--ink); }
.mcshop-line-meta { font-size: 0.78rem; color: var(--muted); }
.mcshop-line-right { text-align: right; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.mcshop-remove { background: none; border: 0; color: var(--muted); font-size: 0.74rem; text-decoration: underline; cursor: pointer; }
.mcshop-remove:hover { color: var(--red); }
.mcshop-summary { background: var(--ground-2); border: 1px solid var(--line); border-radius: 12px; padding: 26px; position: relative; overflow: hidden; }
.mcshop-summary::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--yellow); }
.mcshop-summary h2 { font-family: "Anton", sans-serif; font-weight: 400; text-transform: uppercase; font-size: 1.25rem; margin: 0 0 16px; letter-spacing: 0.03em; color: var(--ink); }
.mcshop-summary-row { display: flex; justify-content: space-between; font-size: 0.9rem; padding: 6px 0; color: var(--muted); }
.mcshop-summary-row.total { font-weight: 700; font-size: 1.05rem; border-top: 1px solid var(--line); margin-top: 10px; padding-top: 14px; color: var(--ink); }
.mcshop-empty { text-align: center; padding: 70px 0; color: var(--muted); }
.mcshop-empty h2 { font-family: "Anton", sans-serif; font-weight: 400; text-transform: uppercase; color: var(--ink); letter-spacing: 0.03em; }

/* checkout form */
.mcshop-checkout h2 { font-family: "Anton", sans-serif; font-weight: 400; text-transform: uppercase; font-size: 1.25rem; letter-spacing: 0.03em; margin: 34px 0 16px; color: var(--ink); }
.mcshop-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.mcshop-form-grid .full { grid-column: 1 / -1; }
.mcshop-form-grid input {
  max-width: none; width: 100%; padding: 12px 13px;
  border: 1px solid #3a3a42; border-radius: 6px;
  background: var(--ground-2); color: var(--ink);
  font-family: "Montserrat", sans-serif; font-size: 0.9rem;
}
.mcshop-form-grid input::placeholder { color: #6a6a72; }
#card-container { background: #f4f2ec; border: 1px solid #3a3a42; border-radius: 6px; padding: 12px; min-height: 44px; }
/* accepted-payment marks + digital wallets */
.mcshop-payrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin: 0 0 14px; }
.mcshop-paychip { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 11px; border: 1px solid #3a3a42; border-radius: 7px; color: var(--ink); font-weight: 700; font-size: 0.74rem; letter-spacing: 0.02em; opacity: 0.85; }
.mcshop-paychip svg { height: 14px; width: auto; fill: var(--ink); }
.mcshop-paychip .mcshop-pay-mc { height: 16px; }
.mcshop-pay-gg { font-weight: 800; }
.mcshop-pay-visa { font-style: italic; font-weight: 800; letter-spacing: 0.08em; }
.mcshop-pay-disc { font-weight: 800; }
.mcshop-pay-disc b { color: #f76b1c; }
.mcshop-pay-amex { letter-spacing: 0.12em; }
.mcshop-wallets { display: flex; flex-direction: column; gap: 10px; margin: 0 0 4px; }
.mcshop-wallets:empty { margin: 0; }
.mcshop-wallet-btn { width: 100%; height: 48px; border: 0; border-radius: 6px; cursor: pointer; }
.mcshop-wallet-apple { -webkit-appearance: -apple-pay-button; -apple-pay-button-style: white; -apple-pay-button-type: pay; background: #fff; }
#mcshop-gpay { min-height: 48px; }
.mcshop-paydivider { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); text-align: center; margin: 12px 0; }
.mcshop-demo-note {
  background: rgba(232, 198, 63, 0.08); border: 1px solid rgba(232, 198, 63, 0.4); border-radius: 8px;
  padding: 14px 16px; font-size: 0.82rem; line-height: 1.6; margin: 14px 0; color: var(--muted);
}
.mcshop-demo-note strong, .mcshop-demo-note code { color: var(--ink); }
.mcshop-error { color: #ff4438; font-weight: 700; font-size: 0.84rem; margin: 10px 0 0; min-height: 1.2em; }
.mcshop-error.is-shaking { animation: mcshop-err-shake 0.4s linear; }
@keyframes mcshop-err-shake {
  0%, 100% { transform: translateX(0); }
  15% { transform: translateX(-6px); }
  30% { transform: translateX(5px); }
  45% { transform: translateX(-4px); }
  60% { transform: translateX(3px); }
  75% { transform: translateX(-2px); }
}
@media (prefers-reduced-motion: reduce) { .mcshop-error.is-shaking { animation: none; } }
.mcshop-success { text-align: center; padding: 60px 20px; }
.mcshop-success h2 { font-family: "Anton", sans-serif; font-weight: 400; text-transform: uppercase; font-size: 2rem; color: var(--ink); letter-spacing: 0.03em; }
.mcshop-success p { color: var(--muted); }
.mcshop-success .mcshop-orderid { font-weight: 700; color: var(--yellow); }

/* floating cart button */
a.mcshop-cartfab {
  position: fixed; right: 22px; bottom: 96px; z-index: 90;
  background: var(--yellow) !important; color: #101013 !important;
  border-radius: 999px; padding: 13px 20px;
  font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
  transition: transform 0.3s var(--ease), background 0.25s ease;
}
a.mcshop-cartfab:hover { background: #f3d558 !important; transform: translateY(-2px); }

@media (max-width: 820px) {
  .mcshop-product, .mcshop-cart-layout { grid-template-columns: 1fr; gap: 30px; }
  .mcshop-form-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .mcshop-card, .mcshop-btn, a.mcshop-cartfab { transition: none; }
}

/* PayPal Smart Buttons holder (rendered only when paypal-config.js is filled) */
#mcshop-paypal { margin-bottom: 14px; }
#mcshop-paypal:empty { display: none; }

/* out-of-stock (live WooCommerce stock) + free-shipping / sticker-perk notes */
.mcshop-badge--out { color: var(--muted); border-color: var(--muted); }
.mcshop-shipnote {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--yellow); margin: 10px 0 0;
}
.mcshop-shipnote--out { color: var(--muted); }
.mcshop-perknote { font-size: 0.76rem; color: var(--muted); margin: 12px 0 0; line-height: 1.5; }
.mcshop-btn[disabled] { opacity: 0.45; cursor: not-allowed; }
