.shop-home {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 16px 0 40px;
}
.shop-home .shop-wrap { width: calc(100% - 32px); }
.shop-home .shop-title {
  align-items: flex-start;
  gap: 12px;
  font: 700 22px/28px var(--mk-font-heading);
  letter-spacing: -.01em;
}
.shop-home .mk-thread { align-self: auto; height: 1lh; margin: 0; }
.shop-home .shop-sectionhead { align-items: flex-end; flex-wrap: nowrap; gap: 16px; margin-bottom: 20px; }
.home-text-link { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; white-space: nowrap; font: 600 15px/1.35 var(--mk-font-body); }
.shop-home :is(.shop-collections,.shop-brand-grid,.home-rail-wrap) { width: 100%; }
.shop-banner, .home-rail-wrap { position: relative; }
.home-slider-window { overflow: hidden; touch-action: pan-y pinch-zoom; }
.home-slider-track { display: flex; }
.home-slide { width: 100%; flex: none; }
.shop-banner-link { display: block; position: relative; height: 220px; overflow: hidden; border-radius: var(--mk-radius-banner); background: var(--mk-color-bg-inverse); color: var(--mk-color-fg-inverse); }
.shop-banner-link::before { content: ''; position: absolute; z-index: 1; inset: 0 auto 0 0; width: 70%; background: linear-gradient(90deg, rgb(9 8 9 / .75), rgb(9 8 9 / .35), transparent); }
.shop-banner-link.light { color: var(--mk-color-fg-primary); }
.shop-banner-link.light::before { background: linear-gradient(90deg, rgb(254 252 251 / .85), rgb(254 252 251 / .5), transparent); }
.shop-banner-link picture,.shop-banner-link img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: right; }
.shop-banner-copy { display: flex; position: relative; z-index: 2; height: 100%; max-width: 54%; padding: 0 4px 0 16px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; }
.home-bars { display: flex; width: 44px; height: 6px; flex: none; background: linear-gradient(90deg, var(--mk-color-motif) 0 28px, transparent 28px 31px, var(--mk-color-motif) 31px 36px, transparent 36px 39px, var(--mk-color-motif) 39px); }
.shop-banner-copy b, .shop-banner-copy em { font-family: var(--mk-font-heading); font-weight: 900; letter-spacing: -.025em; }
.shop-banner-copy b { font-size: 24px; line-height: 26px; text-transform: uppercase; }
.shop-banner-copy > span { font-size: 14px; line-height: 18px; opacity: .85; }
.shop-banner-copy em { padding: 4px 12px; margin-top: 4px; transform: rotate(-3deg); background: var(--mk-color-badge-sale-bg); color: var(--mk-color-badge-sale-fg); border-radius: var(--mk-radius-chip); font-style: normal; font-size: 20px; line-height: 24px; }
.shop-home .home-round { display: none; position: absolute; z-index: 2; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 50%; color: var(--mk-color-fg-primary); background: var(--mk-color-bg-surface); box-shadow: var(--mk-shadow-popover); }
.shop-dots { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; }
.shop-dots button { position: relative; display: inline-flex; align-items: center; justify-content: center; height: 24px; min-width: 6px; padding: 0; border: 0; background: transparent; }
.shop-dots button::after { content: ''; position: absolute; inset: -6px -4px; }
.shop-dots i { display: block; width: 6px; height: 6px; overflow: hidden; border-radius: 999px; background: var(--mk-color-border-strong); }
.shop-dots [aria-pressed="true"] i { width: 40px; }
.shop-dots [aria-pressed="true"] i::before { content: ''; display: block; height: 100%; border-radius: inherit; background: var(--mk-color-fg-primary); }
.shop-banner[data-auto="true"] .shop-dots [aria-pressed="true"] i::before { animation: home-progress 6s linear both; transform-origin: left; }
@keyframes home-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.shop-collections,.shop-brand-grid,.shop-rail { display: flex; gap: 12px; overflow-x: auto; padding: 0 16px; scrollbar-width: none; }
.shop-collections::-webkit-scrollbar,.shop-brand-grid::-webkit-scrollbar,.shop-rail::-webkit-scrollbar { display: none; }
.shop-collection { position: relative; flex: 0 0 164px; height: 200px; display: flex; flex-direction: column; align-items: stretch; overflow: hidden; padding: 16px; border-radius: var(--mk-radius-card); background: var(--mk-color-bg-plate); color: var(--mk-color-fg-primary); }
.shop-collection.sale { background: var(--mk-color-badge-sale-bg); color: var(--mk-color-badge-sale-fg); }
.home-tile-copy { z-index: 1; display: flex; flex-direction: column; gap: 4px; }
.home-tile-copy b { font: 600 18px/24px var(--mk-font-body); }
.home-tile-copy small { display: none; max-width: 24ch; font-size: 14px; line-height: 20px; color: var(--mk-color-fg-secondary); }
.shop-collection.sale small { color: inherit; opacity: .9; }
.home-tile-object { position: relative; flex: 1; margin-top: 8px; min-height: 0; }
.home-tile-object img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: right bottom; filter: drop-shadow(var(--mk-shadow-object)); }
.shop-home .shop-popular { display: none; }
.shop-brands { color: var(--mk-color-band-fg); background: var(--mk-color-band-bg); padding-block: 40px; }
.home-brand-intro { margin-bottom: 24px; }
.home-brand-intro p { margin: 8px 0 0; max-width: 56ch; font-size: 15px; line-height: 24px; color: var(--mk-color-band-muted); }
.shop-brands .shop-title { font-size: 28px; line-height: 32px; }
.home-brand-card { display: flex; flex-direction: column; flex: 0 0 240px; min-width: 0; overflow: hidden; border-radius: var(--mk-radius-card); background: color-mix(in oklab,var(--mk-color-band-fg) 9%,var(--mk-color-band-bg)); color: var(--mk-color-band-fg); }
.home-brand-photo { display: block; width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.home-brand-label { display: flex; align-items: flex-end; justify-content: space-between; flex: 1; gap: 12px; padding: 16px; }
.home-brand-label > .shop-icon { filter: invert(1); margin-bottom: 2px; }
.home-brand-label b { display: block; font: 900 20px/24px var(--mk-font-heading); letter-spacing: -.025em; }
.home-brand-card:nth-child(-n+3) b { font-size: 22px; line-height: 28px; }
.home-brand-label small { display: block; margin-top: 4px; font-size: 14px; line-height: 20px; color: var(--mk-color-band-muted); }
.shop-rail { display: grid; grid-auto-columns: 172px; grid-auto-flow: column; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; padding-bottom: 4px; }
.shop-rail > * { scroll-snap-align: start; }
.shop-rail:has(.shop-blank) { display: block; }
.shop-b2b { display: grid; gap: 16px; }
.home-business { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; padding: 20px; border-radius: var(--mk-radius-card); background: var(--mk-color-bg-subtle); }
.home-business p, .shop-bonus p { margin: 8px 0 0; max-width: 52ch; color: var(--mk-color-fg-secondary); }
.home-business ul, .shop-b2b aside { display: none; }
.shop-bonus { display: grid; gap: 20px; padding-block: 24px; border-block: 1px solid var(--mk-color-border-subtle); }
.shop-tiers { list-style: none; display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin: 0; padding: 0; }
.shop-tiers li { display: flex; flex-direction: column; gap: 4px; padding-left: 10px; border-left: 2px solid var(--mk-color-border-subtle); }
.shop-tiers li:last-child { border-color: var(--mk-color-motif); }
.shop-tiers b { font: 900 26px/32px var(--mk-font-heading); font-variant-numeric: tabular-nums; }
.shop-tiers small { font-size: 14px; line-height: 20px; color: var(--mk-color-fg-secondary); }
.shop-bonus .home-outline { justify-self: start; border-color: var(--mk-color-border-strong); color: var(--mk-color-fg-primary); background: transparent; }
.shop-help { position: fixed; z-index: 4; bottom: 16px; right: 16px; display: flex; align-items: center; gap: 10px; }
.shop-help a { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--mk-color-bg-surface); box-shadow: var(--mk-shadow-popover), inset 0 0 0 1px var(--mk-color-border-subtle); }
.shop-help a:last-child { width: 56px; height: 56px; background: var(--mk-color-bg-inverse); outline: 2px solid var(--mk-color-bg-surface); }
.shop-help a:last-child img { filter: invert(1); }
.shop-help a:last-child::after { content: ''; position: absolute; top: 4px; right: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--mk-color-action-primary-bg); box-shadow: 0 0 0 2px var(--mk-color-bg-inverse); }

@media(min-width:1024px) {
  .shop-home { gap: 64px; padding-block: 24px 80px; }
  .shop-home .shop-wrap { width: min(1216px,calc(100% - 64px)); }
  .shop-home .shop-sectionhead { margin-bottom: 24px; }
  .shop-home .shop-title { font-size: 30px; line-height: 36px; }
  .shop-banner-link { height: 360px; }
  .shop-banner-link::before { width: 58%; }
  .shop-banner-copy { max-width: 46%; padding-inline: 56px; gap: 12px; }
  .shop-banner-copy b { font-size: 56px; line-height: 56px; }
  .shop-banner-copy > span { font-size: 24px; line-height: 32px; }
  .shop-banner-copy em { margin-top: 8px; padding: 8px 20px; font-size: 34px; line-height: 36px; }
  .shop-home .home-round { display: flex; }
  .shop-banner > .home-round { top: 180px; width: 48px; height: 48px; }
  .home-round[data-promo="-1"] { left: 0; transform: translate(-50%,-50%); }
  .home-round[data-promo="1"] { right: 0; transform: translate(50%,-50%); }
  .home-round[data-rail] { top: 28%; width: 44px; height: 44px; }
  .home-round[data-rail="-1"] { left: 0; transform: translateX(-50%); }
  .home-round[data-rail="1"] { right: 0; transform: translateX(50%); }
  .shop-collections,.shop-brand-grid,.shop-rail { padding-inline: 0; display: grid; gap: 16px; }
  .shop-collections { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: repeat(2,208px); overflow: visible; }
  .shop-collection { height: auto; padding: 24px; }
  .shop-collection.new { grid-row: span 2; }
  .shop-collection.sale { flex-direction: row; gap: 16px; }
  .shop-collection.sale .home-tile-copy { flex: 0 0 44%; }
  .shop-collection.sale .home-tile-object { margin-top: 0; }
  .home-tile-copy b { font-size: 24px; line-height: 28px; }
  .home-tile-copy small { display: block; }
  .shop-home .shop-popular { display: block; }
  .shop-brands { padding-block: 64px; }
  .home-brand-intro { margin-bottom: 32px; }
  .home-brand-intro p { font-size: 18px; line-height: 28px; }
  .shop-brands .shop-title { font-size: 40px; line-height: 44px; }
  .shop-brand-grid { grid-template-columns: repeat(12,minmax(0,1fr)); overflow: visible; }
  .home-brand-card { grid-column: span 3; }
  .home-brand-card:nth-child(-n+3) { grid-column: span 4; }
  .home-brand-card:nth-child(-n+3) b { font-size: 28px; line-height: 32px; }
  .home-brand-label { padding: 20px; }
  .shop-rail { grid-auto-columns: calc((100% - 64px) / 5); scroll-padding-inline: 0; }
  .shop-b2b { grid-template-columns: repeat(12,minmax(0,1fr)); }
  .home-business { grid-column: span 8; padding: 40px; }
  .home-business ul { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px 32px; margin: 0; padding: 0; list-style: none; }
  .home-business li { display: flex; gap: 12px; }
  .home-benefit-icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; background: var(--mk-color-bg-surface); border-radius: var(--mk-radius-control); }
  .home-business li b,.shop-b2b aside b { font-weight: 600; }
  .home-business li small,.shop-b2b aside p { display: block; font-size: 15px; line-height: 24px; }
  .home-business li small { color: var(--mk-color-fg-secondary); }
  .shop-b2b aside { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 24px; grid-column: span 4; padding: 40px; border-radius: var(--mk-radius-card); background: var(--mk-color-bg-inverse); color: var(--mk-color-fg-inverse); }
  .shop-b2b aside b,.shop-b2b aside p { font-size: 15px; opacity: .8; }
  .home-production-quantity { display: flex; align-items: baseline; gap: 12px; margin-top: 24px; }
  .home-production-quantity strong { font: 900 64px/1 var(--mk-font-heading); font-variant-numeric: tabular-nums; }
  .home-production-quantity span { font-size: 18px; line-height: 24px; }
  .shop-b2b aside p { margin: 16px 0 0; }
  .shop-bonus { grid-template-columns: repeat(12,minmax(0,1fr)); align-items: center; padding-block: 40px; gap: 32px; }
  .shop-bonus > div, .shop-tiers { grid-column: span 5; }
  .shop-tiers li { padding-left: 16px; }
  .shop-tiers b { font-size: 32px; line-height: 36px; }
  .shop-bonus .home-outline { grid-column: span 2; justify-self: end; }
  .shop-help { bottom: 24px; right: 24px; }
}
}
@media(hover:hover) and (pointer:fine) {
  :where(body:not(.app-screen)) {
  .shop-home .home-brand-card:hover { color: var(--mk-color-band-fg); background: color-mix(in oklab,var(--mk-color-band-fg) 18%,var(--mk-color-band-bg)); }
  .shop-home .home-text-link:hover { color: inherit; text-decoration: underline; text-underline-offset: 4px; }
  .shop-home .mk-button:hover { background: var(--mk-color-action-primary-hover); color: var(--mk-color-action-primary-fg); }
  .shop-home .mk-button.secondary:hover, .shop-home .mk-button.home-outline:hover { background: var(--mk-color-action-secondary-hover); color: var(--mk-color-fg-primary); }
  }
}
@media(prefers-reduced-motion:no-preference) {
  .home-slider-track { transition: transform 500ms cubic-bezier(.2,.8,.2,1); }
  .home-brand-card { transition: background-color 220ms; }
  .shop-dots i { transition: width 160ms; }
}

.app-home-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 8;
  padding: 8px 16px 12px;
  background: var(--mk-color-fg-brand);
  color: var(--mk-color-fg-inverse);
}
.app-home-top,
.app-home-search {
  display: flex;
  align-items: center;
  gap: 8px;
}
.app-home-top { min-height: var(--mk-size-control); margin-block-end: 4px; }
.app-home-mark { width: 42px; height: 28px; object-fit: contain; flex: none; }
.app-home-top .shop-city,
.app-home-company {
  display: inline-flex;
  align-items: center;
  min-height: var(--mk-size-control-sm);
  border-radius: var(--mk-radius-control);
  padding-inline: 4px;
}
.app-home-top .shop-city img,
.app-home-scan img { filter: invert(1); }
.app-home-top .shop-city { min-width: 0; }
.app-home-top .shop-city img { flex: none; }
.app-home-top [data-city-label] {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: inherit;
  text-box: normal;
  position: static;
}
.app-home-company { margin-inline-start: auto; white-space: nowrap; font-weight: 600; text-decoration: none; }
.app-home-search .shop-query {
  position: static;
  border-radius: var(--mk-radius-sheet);
  background: var(--mk-color-bg-surface);
  color: var(--mk-color-fg-primary);
}
.app-home-search .shop-query:focus-within { border-color: var(--mk-color-border-focus); }
.app-home-search .shop-query .shop-submit-search {
  display: grid;
  width: var(--mk-size-control-sm);
  background: transparent;
  border-radius: var(--mk-radius-sheet) 0 0 var(--mk-radius-sheet);
}
.app-home-search .shop-submit-search img { filter: none; }
.app-home-search .shop-suggestions {
  top: 100%;
  inset-inline: 16px;
  max-height: 55dvh;
  border-radius: var(--mk-radius-sheet);
}
.app-home-scan {
  display: grid;
  place-items: center;
  width: var(--mk-size-control-sm);
  height: var(--mk-size-control-sm);
  flex: none;
  border: 0;
  background: transparent;
  opacity: .8;
}
.app-home-header :is(.shop-city, .app-home-company):focus-visible { text-decoration: underline; }
.app-home-header .shop-city:active { background: rgb(0 0 0 / .2); }
.app-home-main .shop-banner-link { height: auto; aspect-ratio: 16 / 9; }
.app-home-main .shop-banner-copy { position: absolute; inset: 0; }
.app-home-main .shop-sectionhead { align-items: center; }
.app-home-main .shop-sectionhead .shop-title { align-items: center; }
@media (max-width: 350px) {
  .app-home-main .shop-banner-copy { max-width: 56%; gap: 4px; }
  .app-home-main .shop-banner-copy b { font-size: 19px; line-height: 21px; }
  .app-home-main .shop-banner-copy > span { font-size: 13px; line-height: 16px; }
  .app-home-main .shop-banner-copy em { font-size: 16px; line-height: 20px; }
}
.app-home-main .shop-home { padding-block-end: 88px; }
.app-home-main .shop-help {
  position: fixed;
  inset-inline-end: max(16px, calc((100% - 480px) / 2 + 16px), env(safe-area-inset-right));
  inset-block-end: calc(74px + env(safe-area-inset-bottom) + 100dvh - var(--app-viewport-height, 100dvh));
}
.app-home-main .shop-help a:last-child {
  width: 48px;
  height: 48px;
  outline-offset: -2px;
}
.app-screen:has(.app-home-main) .shop-toast { inset-inline: 16px; bottom: 76px; width: max-content; margin-inline: auto; pointer-events: none; }
.app-city-sheet {
  position: fixed;
  inset: auto 0 0;
  width: 100%;
  max-width: none;
  max-height: 85dvh;
  margin: 0 auto;
  padding: 16px 16px max(16px, env(safe-area-inset-bottom));
  border-radius: var(--mk-radius-sheet) var(--mk-radius-sheet) 0 0;
}

.app-home-main .shop-tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.app-home-main .shop-tiers li:last-child { grid-column: 1 / -1; }
.app-home-main .shop-tiers small { font-size: .8125rem; }
.app-home-main .shop-tier-amount { white-space: nowrap; }
