/* FILE: marketplace/public/MCM-shop.css */
/* VERSION: shop-mycarnivalmatch-public-home-css.v1.0.0 */
/* ROLLBACK-ID: shop-mycarnivalmatch-shop-home.v2.3.5-inline-css */
/* CHANGE: Extracts the public marketplace layout into a cacheable stylesheet while preserving the native iOS shell and product-first landing flow. */

:root {
  --MCM-background: #f2f2f7;
  --MCM-surface: #ffffff;
  --MCM-surface-soft: #f7f7fa;
  --MCM-text: #1d1d1f;
  --MCM-muted: #6e6e73;
  --MCM-line: rgba(60, 60, 67, 0.16);
  --MCM-primary: #225aa7;
  --MCM-primary-dark: #173f78;
  --MCM-accent: #9932cc;
  --MCM-coral: #ee7b55;
  --MCM-blue: #2f68c2;
  --MCM-shadow: 0 18px 44px rgba(20, 36, 61, 0.12);
  --MCM-shadow-soft: 0 10px 26px rgba(20, 36, 61, 0.08);
  --MCM-radius-xl: 24px;
  --MCM-radius-lg: 16px;
  --MCM-radius-md: 12px;
  --MCM-spring: cubic-bezier(0.32, 0.72, 0, 1);
  --mcm-visual-height: 100dvh;
  --mcm-bottom-nav-height: 78px;
  --font-text: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  color: var(--MCM-text);
  background: var(--MCM-background);
  font-family: var(--font-text);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
html,
body {
  width: 100%;
  height: 100dvh;
  margin: 0;
  overflow: hidden;
  background: var(--MCM-background);
}
html { scroll-behavior: smooth; }
body {
  color: var(--MCM-text);
  font-family: var(--font-text);
  font-weight: 400;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}
body.MCM-scroll-locked { overflow: hidden; }
.MCM-app-shell {
  position: relative;
  display: flex;
  width: 100%;
  height: var(--mcm-visual-height, 100dvh);
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(34,90,167,0.08), transparent 34dvw),
    var(--MCM-background);
}
.MCM-main-wrapper {
  min-height: 0;
  flex: 1 1 auto;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scroll-behavior: smooth;
  scroll-padding-top: 16px;
  padding-bottom: env(safe-area-inset-bottom);
  -webkit-overflow-scrolling: touch;
}
a, button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button, input, select { font: inherit; }
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }
.MCM-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  clip-path: inset(50%);
}
.MCM-skip-link {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  left: 12px;
  z-index: 1000;
  min-height: 44px;
  transform: translateY(-170%);
  border-radius: var(--MCM-radius-md);
  padding: 12px 16px;
  background: rgba(255,255,255,0.94);
  color: var(--MCM-primary-dark);
  font-weight: 850;
  box-shadow: var(--MCM-shadow-soft);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
}
.MCM-skip-link:focus { transform: translateY(0); }
.MCM-shell { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.MCM-header {
  position: relative;
  flex: 0 0 auto;
  z-index: 60;
  padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid rgba(60,60,67,0.12);
  background: rgba(255,255,255,0.80);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
}
.MCM-header-row {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-block: 10px;
}
.MCM-brand { display: inline-flex; min-height: 44px; align-items: center; text-decoration: none; }
.MCM-brand img { width: 128px; height: auto; }
.MCM-header-actions { display: flex; align-items: center; gap: 8px; }
.MCM-header-link, .MCM-icon-link {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--MCM-radius-md);
  text-decoration: none;
  font-size: 14px;
  font-weight: 850;
  transition: transform 180ms ease, opacity 180ms ease, background 180ms ease;
}
.MCM-header-link { padding-inline: 14px; color: #3a3a3c; }
.MCM-icon-link { background: rgba(118,118,128,0.10); color: #2c2c2e; }
.MCM-icon-link svg { width: 22px; height: 22px; }
.MCM-search-bar { padding-bottom: 12px; }
.MCM-search-form { position: relative; display: flex; align-items: center; }
.MCM-search-icon { position: absolute; left: 16px; width: 20px; height: 20px; color: #8e8e93; pointer-events: none; }
.MCM-input, .MCM-search-input {
  width: 100%;
  min-height: 50px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: rgba(118,118,128,0.12);
  padding: 12px 92px 12px 48px;
  color: var(--MCM-text);
  font-size: 17px;
  font-weight: 650;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.MCM-search-input:focus {
  border-color: rgba(0,122,255,0.46);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0,122,255,0.14);
}
.MCM-search-submit {
  position: absolute;
  right: 4px;
  min-width: 80px;
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: var(--MCM-primary);
  font-weight: 900;
  box-shadow: 0 1px 0 rgba(60,60,67,0.08);
}
.MCM-main { min-height: 0; overflow: visible; }
.MCM-hero { padding: clamp(10px, 2vw, 18px) 0 6px; }
.MCM-hero-card {
  position: relative;
  min-height: clamp(240px, 30dvh, 360px);
  overflow: hidden;
  display: grid;
  align-items: center;
  border: 1px solid rgba(60,60,67,0.12);
  border-radius: var(--MCM-radius-xl);
  padding: clamp(22px, 4vw, 44px);
  color: var(--MCM-text);
  background:
    radial-gradient(circle at 88% 16%, rgba(153,50,204,0.12), transparent 28%),
    radial-gradient(circle at 12% 84%, rgba(34,90,167,0.11), transparent 30%),
    rgba(255,255,255,0.92);
  box-shadow: var(--MCM-shadow-soft);
  isolation: isolate;
}
.MCM-hero-card::after {
  content: "";
  position: absolute;
  right: -70px;
  bottom: -92px;
  width: 260px;
  height: 260px;
  border: 18px solid rgba(34,90,167,0.12);
  border-left-color: transparent;
  border-radius: 50%;
  transform: rotate(-10deg);
  opacity: 0.92;
  z-index: -1;
}
.MCM-hero-card::before {
  content: "";
  position: absolute;
  inset: auto -80px -90px auto;
  width: 420px;
  height: 230px;
  border-radius: 999px;
  background: rgba(153,50,204,0.08);
  filter: blur(6px);
  z-index: -2;
}
.MCM-hero-content { max-width: 760px; }
.MCM-eyebrow {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(34,90,167,0.16);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(34,90,167,0.08);
  color: var(--MCM-primary-dark);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.MCM-title, .MCM-section h2, .MCM-sheet-title, .MCM-sheet-price {
  font-family: var(--font-display);
  letter-spacing: -0.04em;
}
.MCM-title {
  max-width: 850px;
  margin: 14px 0 0;
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.98;
  text-wrap: balance;
}
.MCM-title-dark { color: var(--MCM-text); }
.MCM-hero-tagline {
  margin: 10px 0 0;
  color: #1d1d1f;
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 600;
  line-height: 1.2;
}
.MCM-hero-copy {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--MCM-muted);
  font-size: clamp(15px, 1.8vw, 18px);
  font-weight: 400;
  line-height: 1.5;
}
.MCM-hero-actions {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.MCM-button {
  display: inline-flex;
  min-width: 44px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 12px;
  padding: 12px 20px;
  text-align: center;
  text-decoration: none;
  font-weight: 900;
  line-height: 1.15;
  transition: transform 180ms ease, opacity 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.MCM-button:active, .MCM-category:active, .MCM-card-button:active, .MCM-header-link:active, .MCM-icon-link:active, .MCM-search-submit:active, .MCM-footer a:active, .MCM-footer button:active, .MCM-sheet-close:active, .MCM-bottom-nav-link:active {
  transform: scale(0.98);
  opacity: 0.7;
  transition: transform 100ms ease, opacity 100ms ease;
}
.MCM-button-primary { background: #1d1d1f; color: #fff; box-shadow: 0 12px 28px rgba(28,25,23,0.18); }
.MCM-button-secondary { border: 1px solid rgba(60,60,67,0.16); background: #fff; color: var(--MCM-primary-dark); }
.MCM-button-light { background: #1d1d1f; color: #fff; box-shadow: 0 12px 28px rgba(28,25,23,0.18); }
.MCM-section { padding: 16px 0; }
.MCM-section-header { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.MCM-section-header h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.04;
}
.MCM-section-header p { max-width: 640px; margin: 10px 0 0; color: var(--MCM-muted); font-size: 17px; line-height: 1.5; }
.MCM-category-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0 10px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.MCM-category-list::-webkit-scrollbar { display: none; }
.MCM-category {
  display: inline-flex;
  min-height: 44px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--MCM-line);
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  padding: 10px 17px;
  color: #3a3a3c;
  text-decoration: none;
  font-size: 14px;
  font-weight: 850;
  transition: transform 180ms ease, opacity 180ms ease, background 180ms ease, border-color 180ms ease;
}
.MCM-category[aria-current="true"] { border-color: #1d1d1f; background: #1d1d1f; color: #fff; }
.MCM-search-page-hero { padding: 30px 0 16px; }
.MCM-search-card {
  border: 1px solid var(--MCM-line);
  border-radius: var(--MCM-radius-xl);
  padding: clamp(24px, 5vw, 44px);
  background: rgba(255,255,255,0.92);
  box-shadow: var(--MCM-shadow-soft);
}
.MCM-search-card h1 { margin: 0; font-family: var(--font-display); font-size: clamp(2.4rem, 6vw, 4.8rem); letter-spacing: -0.055em; line-height: 1; }
.MCM-search-card p { max-width: 760px; margin: 14px 0 0; color: var(--MCM-muted); font-size: 17px; line-height: 1.55; }
.MCM-product-status {
  min-height: 20px;
  margin: 0 0 12px;
  color: var(--MCM-muted);
  font-size: 13px;
  font-weight: 600;
}
.MCM-product-status[data-state="loading"] {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.MCM-product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.MCM-product-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--MCM-line);
  border-radius: var(--MCM-radius-lg);
  background: rgba(255,255,255,0.94);
  box-shadow: 0 6px 18px rgba(28,25,23,0.04);
}
.MCM-product-link { display: block; text-decoration: none; }
.MCM-product-image-wrap { aspect-ratio: 1 / 1; overflow: hidden; background: rgba(118,118,128,0.10); }
.MCM-product-image { width: 100%; height: 100%; object-fit: cover; transition: transform 280ms ease; }
.MCM-product-copy { padding: 13px; }
.MCM-product-region { margin: 0 0 6px; color: var(--MCM-primary); font-size: 11px; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; }
.MCM-product-copy h3 {
  display: -webkit-box;
  min-height: 44px;
  margin: 0;
  overflow: hidden;
  color: var(--MCM-text);
  font-size: 15px;
  font-weight: 820;
  line-height: 1.2;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.MCM-product-vendor { margin: 8px 0 0; color: var(--MCM-muted); font-size: 13px; font-weight: 650; }
.MCM-product-price { margin: 10px 0 0; font-size: 17px; font-weight: 900; }
.MCM-product-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 12px 12px; }
.MCM-card-button { min-height: 44px; border: 0; border-radius: 12px; padding: 10px 12px; font-size: 13px; font-weight: 850; transition: transform 180ms ease, opacity 180ms ease, background 180ms ease; }
.MCM-view-details { background: rgba(118,118,128,0.12); color: #1d1d1f; }
.MCM-quick-add { background: #1d1d1f; color: #fff; }
.MCM-empty { grid-column: 1 / -1; border: 1px dashed var(--MCM-line); border-radius: var(--MCM-radius-lg); padding: 28px; background: rgba(255,255,255,0.94); color: var(--MCM-muted); font-weight: 750; text-align: center; }
.MCM-grid-skeleton { display: contents; }
.MCM-skeleton-card {
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--MCM-line);
  border-radius: var(--MCM-radius-lg);
  background: rgba(255,255,255,0.94);
  box-shadow: 0 6px 18px rgba(28,25,23,0.04);
}
.MCM-skeleton-media,
.MCM-skeleton-line,
.MCM-skeleton-button {
  position: relative;
  overflow: hidden;
  background: rgba(118,118,128,0.14);
}
.MCM-skeleton-media { aspect-ratio: 4 / 5; }
.MCM-skeleton-copy { display: grid; gap: 10px; padding: 13px; }
.MCM-skeleton-line { height: 14px; border-radius: 999px; }
.MCM-skeleton-line-short { width: 44%; }
.MCM-skeleton-line-medium { width: 72%; }
.MCM-skeleton-button { height: 44px; margin: 0 12px 12px; border-radius: 12px; }
.MCM-skeleton-media::after,
.MCM-skeleton-line::after,
.MCM-skeleton-button::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.72), transparent);
  animation: MCM-skeleton-shimmer 1.35s ease-in-out infinite;
}
@keyframes MCM-skeleton-shimmer {
  100% { transform: translateX(100%); }
}
.MCM-empty .MCM-button { margin-top: 14px; }
.MCM-bottom-nav {
  display: none;
}
.MCM-seller-card {
  display: grid;
  gap: 24px;
  align-items: center;
  border: 1px solid rgba(60,60,67,0.12);
  border-radius: var(--MCM-radius-xl);
  padding: clamp(26px, 5vw, 52px);
  background: rgba(255,255,255,0.92);
  color: var(--MCM-text);
  box-shadow: var(--MCM-shadow-soft);
}
.MCM-seller-card h2 { margin: 0; font-family: var(--font-display); font-size: clamp(2rem, 5vw, 4rem); letter-spacing: -0.055em; line-height: 1; }
.MCM-seller-card p { max-width: 720px; margin: 16px 0 0; color: var(--MCM-muted); font-size: 17px; line-height: 1.55; }
.MCM-footer {
  margin-top: 42px;
  border-radius: 24px 24px 0 0;
  padding: 36px 0 calc(30px + env(safe-area-inset-bottom));
  background: #1d1d1f;
  color: #f5f5f7;
}
.MCM-footer-grid { display: grid; gap: 26px; }
.MCM-footer-brand img { width: 112px; filter: brightness(0) invert(1); }
.MCM-footer-brand p { max-width: 340px; color: rgba(245,245,247,0.66); line-height: 1.5; }
.MCM-footer h3 { margin: 0 0 10px; color: #fff; font-size: 14px; }
.MCM-footer-links { display: grid; gap: 8px; }
.MCM-footer a, .MCM-footer button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border: 0;
  background: transparent;
  color: rgba(245,245,247,0.76);
  padding: 0;
  text-align: left;
  text-decoration: none;
  font-size: 14px;
  font-weight: 750;
  transition: transform 180ms ease, opacity 180ms ease, color 180ms ease;
}
.MCM-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 22px; color: rgba(245,245,247,0.54); font-size: 12px; font-weight: 700; }
.MCM-consent {
  position: fixed;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  left: 12px;
  z-index: 120;
  max-width: 760px;
  margin: 0 auto;
  border: 1px solid rgba(60,60,67,0.16);
  border-radius: 24px;
  padding: 18px;
  background: rgba(255,255,255,0.94);
  box-shadow: var(--MCM-shadow);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(28px);
  transition: transform 0.4s var(--MCM-spring), opacity 0.4s var(--MCM-spring), visibility 0.4s;
}
.MCM-consent[data-state="open"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.MCM-consent[data-state="closed"] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(28px);
}
.MCM-consent[hidden] { display: none; }
.MCM-consent h2 { margin: 0; font-family: var(--font-display); font-size: 18px; font-weight: 900; letter-spacing: -0.02em; }
.MCM-consent p { margin: 8px 0 0; color: var(--MCM-muted); font-size: 14px; line-height: 1.45; }
.MCM-consent-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.MCM-consent-actions .MCM-button { flex: 1 1 180px; }
.MCM-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  align-items: end;
  background: rgba(0,0,0,0.34);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s var(--MCM-spring), visibility 0.4s;
}
.MCM-sheet-backdrop[hidden] { display: none; }
.MCM-sheet-backdrop[data-state="open"] { opacity: 1; visibility: visible; pointer-events: auto; }
.MCM-product-sheet {
  width: min(760px, 100%);
  max-height: min(84dvh, 760px);
  margin-inline: auto;
  overflow: auto;
  border-radius: 28px 28px 0 0;
  padding: 12px 18px calc(22px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,0.98);
  box-shadow: 0 -18px 70px rgba(15,23,42,0.22);
  transform: translateY(102%);
  transition: transform 0.4s var(--MCM-spring);
  -webkit-overflow-scrolling: touch;
}
.MCM-sheet-backdrop[data-state="open"] .MCM-product-sheet { transform: translateY(0); }
.MCM-sheet-handle { width: 42px; height: 5px; border-radius: 999px; margin: 0 auto 16px; background: rgba(60,60,67,0.26); }
.MCM-sheet-close { position: sticky; top: 0; float: right; min-width: 44px; min-height: 44px; border: 0; border-radius: 999px; background: rgba(118,118,128,0.12); color: #1d1d1f; font-size: 20px; transition: transform 180ms ease, opacity 180ms ease; }
.MCM-sheet-content { clear: both; display: grid; gap: 18px; }
.MCM-sheet-image { width: 100%; max-height: 360px; object-fit: cover; border-radius: 18px; background: rgba(118,118,128,0.10); }
.MCM-sheet-title { margin: 0; font-size: clamp(1.8rem, 5vw, 3rem); letter-spacing: -0.045em; line-height: 1; }
.MCM-sheet-meta { margin: 0; color: var(--MCM-muted); font-weight: 750; }
.MCM-sheet-price { margin: 0; font-size: 28px; font-weight: 950; }
.MCM-sheet-description { margin: 0; color: #3a3a3c; font-size: 16px; line-height: 1.5; }
.MCM-sheet-actions { display: grid; grid-template-columns: 1fr; gap: 10px; }
#MCM-trending { scroll-margin-top: 12px; }
.MCM-hero-content { display: grid; align-content: center; }

/* Product-first mobile landing: keep the value proposition compact enough
   for the first product row to enter the initial viewport. */
@media (max-width: 719px) {
  .MCM-header-row { min-height: 56px; padding-block: 6px; }
  .MCM-search-bar { padding-bottom: 8px; }
  .MCM-search-input { min-height: 46px; }
  .MCM-search-submit { min-height: 40px; }
  .MCM-hero { padding: 8px 0 4px; }
  .MCM-hero-card {
    min-height: 0;
    padding: 18px;
    border-radius: 20px;
  }
  .MCM-hero-card::after {
    right: -108px;
    bottom: -126px;
    width: 220px;
    height: 220px;
    border-width: 14px;
  }
  .MCM-hero-card::before {
    right: -130px;
    bottom: -130px;
    width: 310px;
    height: 190px;
  }
  .MCM-eyebrow {
    min-height: 28px;
    padding: 6px 10px;
    font-size: 10px;
  }
  .MCM-title {
    max-width: 330px;
    margin-top: 10px;
    font-size: clamp(2.2rem, 10.2vw, 3.05rem);
    line-height: 0.96;
  }
  .MCM-hero-tagline {
    margin-top: 8px;
    font-size: 17px;
    line-height: 1.18;
  }
  .MCM-hero-copy {
    display: -webkit-box;
    margin-top: 8px;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.34;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }
  .MCM-hero-actions { margin-top: 12px; gap: 8px; }
  .MCM-hero-actions .MCM-button-secondary { display: none; }
  .MCM-button { min-height: 44px; padding: 10px 15px; font-size: 14px; }
  .MCM-section { padding: 12px 0; }
  .MCM-section-header { margin-bottom: 10px; }
  .MCM-section-header h2 { font-size: clamp(25px, 7vw, 30px); }
  .MCM-product-status { margin-bottom: 8px; }
}

@media (min-width: 720px) {
  .MCM-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .MCM-footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); }
  .MCM-seller-card { grid-template-columns: minmax(0, 1.1fr) auto; }
  .MCM-product-sheet { align-self: center; border-radius: 28px; padding: 18px; }
  .MCM-sheet-backdrop { align-items: center; padding: 24px; }
  .MCM-sheet-content { grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.1fr); align-items: center; }
  .MCM-sheet-actions { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 719px) {
  .MCM-shell { width: min(100% - 24px, 1180px); }
  .MCM-brand img { width: 124px; }
  .MCM-header-link { padding-inline: 10px; font-size: 13px; }
  .MCM-search-submit { min-width: 62px; font-size: 13px; }
  .MCM-search-input { padding-right: 78px; }
  .MCM-hero-card { margin-inline: 0; }
  .MCM-section-header { align-items: start; flex-direction: column; }
  .MCM-product-grid { gap: 12px; }
  .MCM-product-copy { padding: 12px; }
  .MCM-product-actions { grid-template-columns: 1fr; }
  .MCM-card-button { font-size: 12px; }
  .MCM-main-wrapper { padding-bottom: calc(var(--mcm-bottom-nav-height) + env(safe-area-inset-bottom)); }
  .MCM-bottom-nav {
    position: absolute;
    right: 10px;
    bottom: max(8px, env(safe-area-inset-bottom));
    left: 10px;
    z-index: 80;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-height: 64px;
    overflow: hidden;
    border: 1px solid rgba(60,60,67,0.14);
    border-radius: 20px;
    padding: 6px;
    background: rgba(255,255,255,0.80);
    box-shadow: 0 12px 34px rgba(15,23,42,0.18);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    transition: transform 0.4s var(--MCM-spring), opacity 0.4s var(--MCM-spring);
  }
  .MCM-bottom-nav-link {
    display: flex;
    min-width: 44px;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
    border-radius: 14px;
    color: #3a3a3c;
    text-decoration: none;
    font-size: 10px;
    font-weight: 650;
    line-height: 1;
  }
  .MCM-bottom-nav-link svg { width: 22px; height: 22px; }
  .MCM-bottom-nav-link[aria-current="page"] { background: rgba(34,90,167,0.10); color: var(--MCM-primary); }
}
.MCM-button:focus-visible, .MCM-header-link:focus-visible, .MCM-icon-link:focus-visible, .MCM-search-input:focus-visible, .MCM-search-submit:focus-visible, .MCM-category:focus-visible, .MCM-card-button:focus-visible, .MCM-footer a:focus-visible, .MCM-footer button:focus-visible, .MCM-sheet-close:focus-visible, .MCM-bottom-nav-link:focus-visible {
  outline: 3px solid rgba(0,122,255,0.34);
  outline-offset: 3px;
}
@media (hover: hover) and (pointer: fine) {
  .MCM-header-link:hover, .MCM-icon-link:hover { background: rgba(118,118,128,0.12); color: var(--MCM-text); }
  .MCM-button:hover { transform: translateY(-1px); }
  .MCM-category:hover { border-color: #1d1d1f; background: #1d1d1f; color: #fff; }
  .MCM-product-card:hover .MCM-product-image { transform: scale(1.035); }
  .MCM-footer a:hover, .MCM-footer button:hover { color: #fff; }
}


.MCM-product-card { min-height: 100%; transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease; }
.MCM-product-card[data-mcm-state="loading"] { opacity: 0.72; }
.MCM-product-card[data-mcm-state="sold-out"] .MCM-product-image { opacity: 0.56; }
.MCM-product-image-wrap {
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  padding: 10px;
}
.MCM-product-image {
  object-fit: contain;
  mix-blend-mode: multiply;
}
.MCM-product-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.MCM-product-badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(118,118,128,0.10);
  color: #3a3a3c;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.MCM-product-badge-resale { background: rgba(153,50,204,0.10); color: #6f2395; }
.MCM-product-badge-verified { background: rgba(34,90,167,0.10); color: var(--MCM-primary-dark); }
.MCM-product-badge-code {
  background: rgba(238,123,85,0.12);
  color: #94411f;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}
.MCM-product-listing-id {
  margin: 8px 0 0;
  color: var(--MCM-muted);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.MCM-product-listing-id strong {
  color: #1d1d1f;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}
.MCM-sheet-listing-id {
  display: inline-flex;
  width: fit-content;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(238,123,85,0.22);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(238,123,85,0.12);
  color: #94411f;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.MCM-sheet-listing-id strong {
  color: #1d1d1f;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}
.MCM-resale-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.MCM-resale-detail {
  min-height: 64px;
  border: 1px solid var(--MCM-line);
  border-radius: 14px;
  padding: 10px;
  background: rgba(118,118,128,0.08);
}
.MCM-resale-detail span {
  display: block;
  color: var(--MCM-muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.MCM-resale-detail strong {
  display: block;
  margin-top: 4px;
  color: #1d1d1f;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
}
.MCM-copy-confirmation {
  min-height: 20px;
  margin: -2px 0 0;
  color: var(--MCM-primary-dark);
  font-size: 12px;
  font-weight: 850;
}
.MCM-sheet-gallery {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.MCM-sheet-gallery::-webkit-scrollbar { display: none; }
.MCM-sheet-thumb {
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
  border: 1px solid var(--MCM-line);
  border-radius: 14px;
  padding: 4px;
  background: rgba(118,118,128,0.08);
  object-fit: contain;
}
.MCM-sheet-detail-stack { display: grid; gap: 12px; }
.MCM-sheet-vendor {
  display: grid;
  gap: 4px;
  border: 1px solid var(--MCM-line);
  border-radius: 16px;
  padding: 14px;
  background: rgba(118,118,128,0.08);
}
.MCM-sheet-vendor-label {
  margin: 0;
  color: var(--MCM-muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.MCM-sheet-vendor-name { margin: 0; font-size: 15px; font-weight: 900; }
.MCM-sheet-stock { margin: 0; color: var(--MCM-muted); font-size: 13px; font-weight: 750; }
.MCM-button[disabled], .MCM-card-button[disabled] { opacity: 0.5; cursor: not-allowed; }


/* ============================================================
   KEYBOARD-AWARE LAYOUT (iOS Native Feel)
   ============================================================ */
html.mcm-keyboard-open .MCM-app-shell {
  height: var(--mcm-visual-height);
}
html.mcm-keyboard-open .MCM-main-wrapper {
  padding-bottom: env(safe-area-inset-bottom);
}
html.mcm-keyboard-open .MCM-bottom-nav {
  opacity: 0;
  pointer-events: none;
  transform: translateY(calc(100% + 24px));
}
html.mcm-keyboard-open .MCM-search-input:focus {
  scroll-margin-top: 16px;
  scroll-margin-bottom: 24px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .MCM-skeleton-media::after, .MCM-skeleton-line::after, .MCM-skeleton-button::after { display: none; }
}
