@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --mc-ink: #171214;
  --mc-muted: #737373;
  --mc-soft: #f6f6f6;
  --mc-border: #eeeeee;
  --mc-accent: #f04472;
  --mc-pink: #fbd3e3;
  --mc-blue: #dcecf1;
  --mc-lavender: #e8e3f5;
  --mc-dark: #160d10;
}

* { box-sizing: border-box; }

html { background: #f2f2f2; }

body.mobile-commerce-page {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: #f2f2f2;
  color: var(--mc-ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.mc-app {
  position: relative;
  width: 100%;
  max-width: 430px;
  min-height: 100dvh;
  margin: 0 auto;
  padding: max(12px, env(safe-area-inset-top)) 16px calc(86px + env(safe-area-inset-bottom));
  overflow: hidden;
  background: #fff;
}

.mc-app.is-detail { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }

.mc-icon-button {
  display: inline-grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--mc-soft);
  cursor: pointer;
  transition: background-color .18s ease, transform .18s ease;
}

.mc-icon-button:active { transform: scale(.95); }
.mc-icon-button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }

.mc-search-row { display: flex; align-items: center; gap: 9px; margin: 4px 0 14px; }
.mc-search-box { position: relative; min-width: 0; flex: 1; }
.mc-search-box > svg { position: absolute; z-index: 1; top: 50%; left: 15px; width: 18px; height: 18px; fill: none; stroke: #8d8d8d; stroke-width: 1.8; transform: translateY(-50%); }
.mc-search-box input { width: 100%; height: 46px; padding: 0 42px 0 42px; border: 1px solid transparent; border-radius: 16px; outline: 0; background: var(--mc-soft); color: var(--mc-ink); font-size: 13px; transition: border-color .18s ease, background-color .18s ease; }
.mc-search-box input:focus { border-color: #dedade; background: #fff; }
.mc-search-box input::placeholder { color: #9a9a9a; }
.mc-search-clear { position: absolute; top: 50%; right: 10px; display: none; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: #e8e8e8; font-size: 15px; transform: translateY(-50%); cursor: pointer; }
.mc-search-clear.is-visible { display: block; }

.mc-filter-panel { display: none; margin: -4px 0 14px; padding: 12px; border-radius: 16px; background: var(--mc-soft); }
.mc-filter-panel.is-open { display: block; animation: mcFade .18s ease; }
.mc-filter-panel p { margin: 0 0 9px; color: var(--mc-muted); font-size: 11px; }

.mc-pills { display: flex; gap: 8px; margin: 0 -16px 20px; padding: 0 16px 2px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.mc-pills::-webkit-scrollbar { display: none; }
.mc-pill { min-height: 37px; padding: 0 16px; flex: 0 0 auto; border: 0; border-radius: 22px; background: var(--mc-soft); color: #4f4b4d; font-size: 11px; font-weight: 500; cursor: pointer; scroll-snap-align: start; transition: background-color .18s ease, color .18s ease; }
.mc-pill.is-active { background: var(--mc-dark); color: #fff; }

.mc-section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 5px 0 14px; }
.mc-section-head h1, .mc-section-head h2 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.mc-section-head a, .mc-section-head button { padding: 8px 0; border: 0; background: transparent; color: var(--mc-accent); font-size: 11px; font-weight: 600; cursor: pointer; }
.mc-result-count { margin: -7px 0 14px; color: var(--mc-muted); font-size: 11px; }

.mc-product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 11px; }
.mc-product-card { min-width: 0; }
.mc-product-visual { position: relative; overflow: hidden; aspect-ratio: .91 / 1; border-radius: 17px; background: var(--mc-pink); }
.mc-product-card:nth-child(4n + 2) .mc-product-visual { background: var(--mc-blue); }
.mc-product-card:nth-child(4n + 3) .mc-product-visual { background: var(--mc-lavender); }
.mc-product-card:nth-child(4n + 4) .mc-product-visual { background: #f6e7d9; }
.mc-product-visual > a { display: block; width: 100%; height: 100%; }
.mc-product-visual img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s ease, transform .2s ease; }
.mc-product-visual a:active img { transform: scale(.985); }
.mc-favorite { position: absolute !important; inset: 9px 9px auto auto !important; display: grid !important; width: 34px !important; height: 34px !important; padding: 0 !important; place-items: center; border: 0 !important; border-radius: 50% !important; background: rgba(255,255,255,.92) !important; box-shadow: none !important; cursor: pointer; }
.mc-favorite svg { width: 17px !important; height: 17px !important; fill: none; stroke: #5e585b; stroke-width: 1.8; transition: fill .18s ease, stroke .18s ease, transform .18s ease; }
.mc-favorite.active svg { fill: var(--mc-accent); stroke: var(--mc-accent); }
.mc-favorite:active svg { transform: scale(.88); }
.mc-price-badge { position: absolute; left: 8px; bottom: 8px; max-width: calc(100% - 16px); padding: 5px 9px; overflow: hidden; border-radius: 20px; background: var(--mc-dark); color: #fff; font-size: 10px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.mc-sold-badge { position: absolute; right: 8px; bottom: 8px; padding: 5px 8px; border-radius: 20px; background: rgba(255,255,255,.94); color: #7c7377; font-size: 9px; font-weight: 600; }
.mc-sale-badge { position: absolute; left: 8px; top: 8px; padding: 5px 8px; border-radius: 20px; background: #9f1239; color: #fff; font-size: 9px; font-weight: 750; }
.mc-product-copy { padding: 8px 2px 0; }
.mc-product-copy h3 { display: -webkit-box; min-height: 35px; margin: 0; overflow: hidden; color: var(--mc-ink); font-size: 12px; font-weight: 500; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.mc-product-meta { display: flex; min-width: 0; align-items: center; gap: 5px; margin-top: 4px; color: var(--mc-muted); font-size: 9px; }
.mc-product-meta > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-rating { color: #6b6467; white-space: nowrap; }
.mc-color-dots { display: inline-flex; margin-left: auto; gap: 3px; }
.mc-color-dots i { width: 6px; height: 6px; border: 1px solid #fff; border-radius: 50%; background: var(--mc-dot-color, #202027); box-shadow: 0 0 0 1px #ddd; }

.mc-empty { grid-column: 1 / -1; padding: 58px 24px; text-align: center; }
.mc-empty svg { width: 38px; height: 38px; margin-bottom: 12px; fill: none; stroke: #b4afb1; stroke-width: 1.5; }
.mc-empty h3 { margin: 0 0 6px; font-size: 15px; font-weight: 600; }
.mc-empty p { margin: 0; color: var(--mc-muted); font-size: 12px; }
.mc-error { color: #9d334d; }

.mc-skeleton { min-width: 0; }
.mc-skeleton-visual { aspect-ratio: .91 / 1; border-radius: 17px; background: #f1f1f1; }
.mc-skeleton-line { width: 86%; height: 10px; margin-top: 9px; border-radius: 5px; background: #f1f1f1; }
.mc-skeleton-line:last-child { width: 58%; margin-top: 6px; }
.mc-skeleton-visual, .mc-skeleton-line { background-image: linear-gradient(90deg, #f1f1f1 0%, #fafafa 48%, #f1f1f1 100%); background-size: 220% 100%; animation: mcShimmer 1.35s infinite linear; }

.mc-pager { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 12px; }
.mc-page-btn { min-width: 38px; height: 38px; padding: 0 9px; border: 1px solid var(--mc-border); border-radius: 12px; background: #fff; font-size: 11px; cursor: pointer; }
.mc-page-btn.active { border-color: var(--mc-dark); background: var(--mc-dark); color: #fff; }
.mc-page-btn:disabled { opacity: .4; }

.mc-bottom-nav, .home-mobile-nav.mc-bottom-nav {
  position: fixed;
  z-index: 9000;
  right: auto;
  bottom: 0;
  left: 50%;
  display: grid;
  width: min(100%, 430px);
  min-height: 68px;
  grid-template-columns: repeat(5, 1fr);
  padding: 7px 12px max(7px, env(safe-area-inset-bottom));
  border: 0;
  border-top: 1px solid var(--mc-border);
  border-radius: 0;
  background: rgba(255,255,255,.98);
  box-shadow: none;
  transform: translateX(-50%);
  backdrop-filter: none;
}
.mc-bottom-nav a, .home-mobile-nav.mc-bottom-nav a { display: flex; min-width: 0; min-height: 50px; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 0; background: transparent; color: #8b8588; font-size: 9px; font-weight: 500; }
.mc-bottom-nav a.is-active, .home-mobile-nav.mc-bottom-nav a.is-active { background: transparent; color: var(--mc-ink); font-weight: 600; }
.mc-bottom-nav svg, .home-mobile-nav.mc-bottom-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.mc-bottom-nav a.is-active svg { fill: var(--mc-ink); stroke: var(--mc-ink); }
.mc-bottom-nav a { position: relative; }
.mc-bottom-nav b { position: absolute; top: 1px; left: calc(50% + 4px); display: grid; min-width: 15px; height: 15px; padding: 0 3px; place-items: center; border: 2px solid #fff; border-radius: 9px; background: var(--mc-accent); color: #fff; font-size: 7px; line-height: 1; }

/* Product details */
.mc-detail-top { position: relative; display: grid; grid-template-columns: 44px 1fr auto; align-items: center; margin-bottom: 10px; }
.mc-detail-top h1 { margin: 0; text-align: center; font-size: 15px; font-weight: 600; }
.mc-detail-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.mc-detail-cart { position: relative; }
.mc-detail-cart b { position: absolute; top: -2px; right: -2px; display: grid; min-width: 16px; height: 16px; padding: 0 3px; place-items: center; border: 2px solid #fff; border-radius: 9px; background: var(--mc-accent); color: #fff; font-size: 7px; line-height: 1; }
.mc-detail-cart b[hidden] { display: none; }
.mc-gallery { position: relative; padding: 0; border-radius: 20px; background: #fff; }
.mc-gallery-toolbar { display: flex; min-height: 48px; align-items: center; gap: 10px; margin-bottom: 8px; }
.mc-main-image { display: block; width: 100%; aspect-ratio: 1 / 1.06; object-fit: cover; border-radius: 18px; background: var(--mc-soft); touch-action: pan-y; user-select: none; -webkit-user-drag: none; }
.mc-detail-favorite { position: static !important; z-index: auto; top: auto !important; right: auto !important; flex: 0 0 auto; }
.mc-thumbnails { display: flex; min-width: 0; max-width: 100%; flex: 1; align-items: center; justify-content: flex-start; gap: 7px; margin: 0; overflow-x: auto; scrollbar-width: none; }
.mc-thumbnails::-webkit-scrollbar { display: none; }
.mc-thumb { width: 42px; height: 42px; flex: 0 0 auto; padding: 2px; border: 1px solid transparent; border-radius: 10px; background: rgba(255,255,255,.65); cursor: pointer; }
.mc-thumb.is-active { border-color: var(--mc-dark); background: #fff; }
.mc-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 7px; }
.mc-detail-info { padding: 17px 1px 0; }
.mc-detail-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.mc-detail-title-row h2 { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.25; letter-spacing: -.02em; }
.mc-detail-category { margin: 5px 0 0; color: var(--mc-muted); font-size: 10px; }
.mc-detail-rating { display: inline-flex; margin-top: 6px; align-items: center; gap: 4px; color: var(--mc-muted); font-size: 10px; }
.mc-detail-rating b { color: #f2ad31; }
.mc-local-quantity { display: none !important; min-width: 91px; height: 38px; align-items: center; justify-content: space-between; gap: 4px; padding: 3px; border: 1px solid var(--mc-border); border-radius: 20px; }
.mc-local-quantity button { display: grid; width: 30px; height: 30px; padding: 0; place-items: center; border: 0; border-radius: 50%; background: var(--mc-soft); font-size: 16px; cursor: pointer; }
.mc-local-quantity output { min-width: 18px; text-align: center; font-size: 11px; font-weight: 600; }
.mc-option-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 22px; }
.mc-option-grid.has-single-option { grid-template-columns: 1fr; }
.mc-option-group h3, .mc-description h3, .mc-related h2 { margin: 0 0 10px; font-size: 12px; font-weight: 600; }
.mc-sizes { display: flex; flex-wrap: wrap; gap: 7px; }
.mc-size { position: relative; }
.mc-size input { position: absolute; opacity: 0; pointer-events: none; }
.mc-size span { display: grid; min-width: 38px; height: 38px; padding: 0 8px; place-items: center; border-radius: 12px; background: var(--mc-soft); font-size: 10px; font-weight: 500; cursor: pointer; transition: background-color .18s ease, color .18s ease; }
.mc-size input:checked + span { background: var(--mc-dark); color: #fff; }
.mc-colors { display: flex; min-height: 38px; align-items: center; gap: 10px; }
.mc-color { position: relative; width: 30px; height: 30px; padding: 0; border: 5px solid #fff; border-radius: 50%; background: var(--swatch); box-shadow: 0 0 0 1px transparent; cursor: pointer; }
.mc-color.is-active { box-shadow: 0 0 0 1px var(--mc-dark); }
.mc-description { margin-top: 23px; }
.mc-description-copy { position: relative; max-height: 63px; overflow: hidden; color: var(--mc-muted); font-size: 10px; line-height: 1.55; }
.mc-description-copy.is-open { max-height: none; }
.mc-description-copy p { margin: 0 0 8px; }
.mc-learn-more { min-height: 40px; padding: 9px 0; border: 0; background: transparent; color: var(--mc-ink); font-size: 10px; font-weight: 600; cursor: pointer; }
.mc-stock { display: inline-flex; margin-top: 10px; padding: 5px 8px; border-radius: 12px; background: #ebf8ee; color: #327443; font-size: 9px; font-weight: 600; }
.mc-stock.is-out { background: #fff0f2; color: #9a3c53; }
.mc-related { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--mc-border); }
.mc-related h2 { font-size: 15px; }
.mc-related .mc-product-grid { gap-bottom: 16px; }

.mc-purchase-bar { position: fixed; z-index: 9001; bottom: 0; left: 50%; display: grid; width: min(100%, 430px); grid-template-columns: auto minmax(0, 1fr); gap: 9px; padding: 11px 16px max(11px, env(safe-area-inset-bottom)); border-top: 1px solid var(--mc-border); background: rgba(255,255,255,.98); transform: translateX(-50%); }
.mc-purchase-price { display: flex; min-width: 100px; min-height: 50px; flex-direction: column; align-items: center; justify-content: center; padding: 5px 13px; border: 1px solid var(--mc-border); border-radius: 26px; background: #fff; }
.mc-purchase-price small { color: var(--mc-muted); font-size: 8px; }
.mc-purchase-price strong { font-size: 12px; font-weight: 600; }
.mc-add-button { display: inline-flex; min-width: 0; min-height: 50px; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 26px; background: var(--mc-dark); color: #fff; font-size: 12px; font-weight: 600; cursor: pointer; transition: opacity .18s ease, transform .18s ease; }
.mc-add-button[hidden] { display: none !important; }
.mc-add-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.mc-add-button:active { transform: scale(.985); }
.mc-add-button:disabled { cursor: not-allowed; opacity: .38; }
.mc-cart-action { display:flex; min-width:0; min-height:50px; }
.mc-cart-action > .mc-add-button { width:100%; }
.mc-live-quantity { display:grid; width:100%; min-height:50px; grid-template-columns:48px 1fr 48px; align-items:center; overflow:hidden; border-radius:26px; background:var(--mc-dark); color:#fff; }
.mc-live-quantity[hidden] { display:none; }
.mc-live-quantity button { display:grid; width:42px; height:42px; margin:auto; padding:0; place-items:center; border:0; border-radius:50%; background:rgba(255,255,255,.11); color:#fff; font-size:19px; cursor:pointer; }
.mc-live-quantity button:disabled { opacity:.45; }
.mc-live-quantity output { text-align:center; font-size:13px; font-weight:600; }
.mc-add-button.is-loading { pointer-events:none; opacity:.6; }
.mc-cart-toast { position:fixed; z-index:10000; left:50%; bottom:calc(82px + env(safe-area-inset-bottom)); max-width:min(90%,360px); padding:10px 14px; border-radius:20px; background:var(--mc-dark); color:#fff; font-size:11px; font-weight:600; opacity:0; pointer-events:none; transform:translate(-50%,12px); transition:opacity .18s ease,transform .18s ease; }
.mc-cart-toast.is-visible { opacity:1; transform:translate(-50%,0); }
.mc-cart-toast.is-error { background:#9a3c53; }
.mc-flash { margin: 0 0 12px; padding: 11px 12px; border-radius: 13px; background: #edf8ef; color: #28683a; font-size: 11px; }
.mc-flash.error { background: #fff0f2; color: #9a3c53; }

@keyframes mcShimmer { to { background-position: -220% 0; } }
@keyframes mcFade { from { opacity: 0; transform: translateY(-3px); } }

@media (max-width: 359px) {
  .mc-app { padding-inline: 12px; }
  .mc-pills { margin-inline: -12px; padding-inline: 12px; }
  .mc-product-grid { gap: 17px 8px; }
  .mc-product-copy h3 { font-size: 11px; }
  .mc-option-grid { gap: 14px; }
  .mc-purchase-bar { padding-inline: 12px; }
}

@media (min-width: 481px) {
  .mc-app { box-shadow: 0 0 0 1px #e8e8e8; }
}

/* Full-width desktop product experience. Mobile rules above remain unchanged. */
@media (min-width: 900px) {
  html { background: #f7f7f8; }

  body.mobile-commerce-page {
    background: #f7f7f8;
  }

  .mc-app.is-detail {
    width: 100%;
    max-width: none;
    min-height: 100vh;
    padding: 22px clamp(28px, 4vw, 72px) 70px;
    overflow: visible;
    background: #f7f7f8;
    box-shadow: none;
  }

  .mc-detail-top {
    min-height: 64px;
    grid-template-columns: 52px 1fr auto;
    margin: 0 0 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid #e8e6e9;
  }

  .mc-detail-top h1 {
    font-size: 20px;
    letter-spacing: -.025em;
  }

  .mc-icon-button {
    width: 46px;
    height: 46px;
    border: 1px solid #e8e6e9;
    background: #fff;
  }

  .mc-icon-button:hover {
    border-color: #d7d3d8;
    background: #f1eff2;
  }

  .mc-product-layout {
    display: grid;
    width: 100%;
    grid-template-columns: minmax(0, 1.18fr) minmax(390px, .82fr);
    align-items: start;
    gap: clamp(28px, 4vw, 68px);
  }

  .mc-gallery {
    position: sticky;
    top: 22px;
    min-width: 0;
    padding: 20px;
    border: 1px solid #e9e7ea;
    border-radius: 30px;
    background: #fff;
    box-shadow: 0 18px 55px rgba(30, 24, 32, .07);
  }

  .mc-gallery-toolbar {
    min-height: 58px;
    margin-bottom: 14px;
  }

  .mc-thumbnails {
    gap: 10px;
  }

  .mc-thumb {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: #f5f4f6;
  }

  .mc-thumb img { border-radius: 10px; }

  .mc-main-image {
    width: 100%;
    max-height: calc(100vh - 190px);
    aspect-ratio: 4 / 3;
    border-radius: 22px;
    background: #f3f2f4;
    object-fit: contain;
  }

  .mc-detail-favorite {
    width: 44px !important;
    height: 44px !important;
    border: 1px solid #e8e6e9 !important;
    background: #fff !important;
  }

  .mc-product-layout > form {
    min-width: 0;
  }

  .mc-detail-info {
    padding: clamp(26px, 3vw, 42px);
    border: 1px solid #e9e7ea;
    border-radius: 30px;
    background: #fff;
    box-shadow: 0 18px 55px rgba(30, 24, 32, .06);
  }

  .mc-detail-title-row h2 {
    max-width: 720px;
    font-size: clamp(28px, 2.4vw, 42px);
    line-height: 1.12;
  }

  .mc-detail-category {
    margin-top: 10px;
    font-size: 13px;
  }

  .mc-detail-rating {
    margin-top: 10px;
    font-size: 12px;
  }

  .mc-option-grid {
    gap: 34px;
    margin-top: 34px;
  }

  .mc-option-group h3,
  .mc-description h3 {
    margin-bottom: 13px;
    font-size: 14px;
  }

  .mc-sizes { gap: 10px; }

  .mc-size span {
    min-width: 48px;
    height: 46px;
    padding-inline: 14px;
    border-radius: 14px;
    font-size: 12px;
  }

  .mc-colors {
    min-height: 46px;
    gap: 14px;
  }

  .mc-color {
    width: 36px;
    height: 36px;
  }

  .mc-stock {
    margin-top: 22px;
    padding: 8px 12px;
    font-size: 11px;
  }

  .mc-description {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #efedef;
  }

  .mc-description-copy {
    max-height: 92px;
    font-size: 13px;
    line-height: 1.7;
  }

  .mc-learn-more {
    font-size: 12px;
  }

  .mc-purchase-bar {
    position: sticky;
    z-index: 20;
    right: auto;
    bottom: 20px;
    left: auto;
    width: 100%;
    margin-top: 18px;
    grid-template-columns: minmax(145px, auto) minmax(220px, 1fr);
    gap: 12px;
    padding: 14px;
    border: 1px solid #e6e3e7;
    border-radius: 28px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 16px 44px rgba(26, 20, 29, .12);
    transform: none;
    backdrop-filter: blur(16px);
  }

  .mc-purchase-price {
    min-width: 145px;
    min-height: 58px;
    border-radius: 20px;
    background: #f7f6f8;
  }

  .mc-purchase-price small { font-size: 10px; }
  .mc-purchase-price strong { font-size: 17px; }

  .mc-add-button,
  .mc-live-quantity {
    min-height: 58px;
    border-radius: 20px;
    font-size: 14px;
  }

  .mc-live-quantity {
    grid-template-columns: 58px 1fr 58px;
  }

  .mc-related {
    width: 100%;
    margin-top: 72px;
    padding-top: 38px;
  }

  .mc-related .mc-section-head {
    margin-bottom: 22px;
  }

  .mc-related h2 { font-size: 24px; }

  .mc-related .mc-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(18px, 2vw, 30px);
  }

  .mc-related .mc-product-copy h3 {
    font-size: 14px;
  }

  .mc-cart-toast {
    bottom: 28px;
    padding: 13px 18px;
    font-size: 12px;
  }
}

@media (min-width: 900px) and (max-width: 1100px) {
  .mc-app.is-detail { padding-inline: 28px; }
  .mc-product-layout { grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr); gap: 26px; }
  .mc-detail-info { padding: 26px; }
  .mc-purchase-bar { grid-template-columns: 125px minmax(190px, 1fr); }
  .mc-related .mc-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
