:root {
  --ink: #111111;
  --paper: #f4f4f4;
  --line: #f0f0f0;
  --muted: #999999;
  --price: #ff5000;
  --harbor: #ff5000;
  --studio: #f7f7f7;
  --pad: 16px;
}

* { box-sizing: border-box; }

html {
  scrollbar-width: thin;
  scrollbar-color: rgba(20, 20, 20, 0.32) transparent;
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(20, 20, 20, 0.28) transparent;
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track,
*::-webkit-scrollbar-corner {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background-color: rgba(20, 20, 20, 0.22);
  border: 2px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
  background-color: rgba(20, 20, 20, 0.45);
}

*::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans JP", sans-serif;
  font-size: 14px;
  line-height: 1.45;
}

html[lang="ja"] body {
  font-family: "Noto Sans JP", "Segoe UI", "PingFang SC", sans-serif;
}

a { color: inherit; }

img { display: block; max-width: 100%; height: auto; background: transparent; }

button,
.btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  background: #ff5000;
  color: #ffffff;
  border: 0;
  border-radius: 8px;
  font: 600 14px/1 "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans JP", sans-serif;
  text-decoration: none;
  cursor: pointer;
}

.btn.quiet {
  background: #ffffff;
  color: #ff5000;
  border: 1px solid #ff5000;
}

input,
select {
  min-height: 44px;
  font-size: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  width: 100%;
  background: #ffffff;
  color: var(--ink);
}

input[type="radio"],
input[type="checkbox"] {
  width: 22px;
  height: 22px;
  min-height: 22px;
  margin: 0;
  padding: 0;
  border: 0;
  accent-color: #ff5000;
  flex: 0 0 auto;
}

fieldset label:has(input[type="radio"]),
fieldset label:has(input[type="checkbox"]) {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.promise {
  margin: 0;
  background: #ff0036;
  color: #ffffff;
  text-align: center;
  padding: 6px 16px;
  font-size: 13px;
  line-height: 1.4;
}

.top {
  background: #ffffff;
  color: #333333;
  border-bottom: 1px solid #f5f5f5;
  width: 100%;
  position: relative;
  z-index: 4;
}

.top-inner {
  width: min(1190px, calc(100% - 24px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 150px 460px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  min-height: 72px;
}

.brand { display: flex; align-items: center; gap: 4px; min-width: 0; }

.back {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  color: #333333;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: 0;
  text-decoration: none;
  color: #ff5000;
}

.mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: #ff5000;
  color: #ffffff;
  font-size: 18px;
}

.search {
  display: flex;
  align-items: center;
  width: 460px;
  max-width: 100%;
  height: 36px;
  border: 2px solid #ff5000;
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
}

.search input {
  border: 0;
  border-radius: 0;
  min-height: 36px;
  padding-left: 16px;
}

.top .btn {
  background: #ff5000;
  color: #ffffff;
  border-radius: 0;
  min-height: 36px;
  padding: 0 18px;
}

.tools { justify-self: end; }

.tool small { display: none; }

.tool strong { font-size: 13px; font-weight: 400; }

.tools { display: flex; align-items: center; gap: 8px; }

.locale { display: flex; align-items: center; margin: 0; }

.locale label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  color: #666666;
  font-size: 12px;
  font-weight: 600;
}

.nudge { margin: 8px 0; color: #ff5000; font-weight: 700; }

.goal { margin: 0; padding: 4px 0 8px; }

.goal-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.goal-line { margin: 0; flex: 1 1 100%; min-width: 0; color: #9d2c2c; font-weight: 700; line-height: 1.35; }

.goal-top .goal-chip { margin-left: auto; }
.goal-top .bundle-link,
.goal-top button.bundle-link { min-height: 0; }

.ship-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }

.ship-gap { color: #9d2c2c; font-weight: 700; }

.goal-chip {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: #9d2c2c;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

.goal-track {
  height: 8px;
  margin-top: 8px;
  border-radius: 999px;
  background: #f3e7e3;
  overflow: hidden;
}

.goal-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d27a68 0%, #9d2c2c 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: width 0.45s ease;
}

.sheet .goal {
  padding: 4px 16px 12px;
  background: linear-gradient(180deg, #ffffff 0%, #fbf7f5 100%);
  border-bottom: 1px solid #f0e4df;
}

.was { color: #5c584f; font-weight: 600; }

.pay-total strong { font-size: 22px; }

.you-save { margin: 4px 0 8px; color: #9d2c2c; font-weight: 700; }

.met { color: #1d6a5a; font-weight: 700; }

.tick { margin-left: 4px; }

.bundle { margin: 4px 0; }

.bundle summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  cursor: pointer;
  list-style: none;
}

.bundle summary::-webkit-details-marker { display: none; }

.bundle summary::marker { content: ""; }

.bundle .nudge { margin: 0; flex: 1 1 auto; }

.nudge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nudge-row .nudge { margin: 0; flex: 1 1 auto; }

.bundle-link,
button.bundle-link {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 2px;
  background: transparent;
  color: #9d2c2c;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sheet[hidden] { display: none; }

.sheet { position: fixed; inset: 0; z-index: 30; }

.sheet-backdrop { position: absolute; inset: 0; background: rgba(20, 20, 20, 0.45); }

.sheet-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(78vh, 720px);
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 16px 16px 0 0;
  padding-bottom: env(safe-area-inset-bottom);
}

.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 8px 4px 16px;
  border-bottom: 1px solid var(--line);
}

.sheet-head h2 { margin: 0; font-size: 18px; }

.sheet-close {
  width: 44px;
  height: 44px;
  background: transparent;
  color: #141414;
  font-size: 28px;
}

.sheet-body { display: flex; min-height: 0; flex: 1; }

.sheet-cats {
  width: 108px;
  overflow: auto;
  background: #f4f0e8;
}

.sheet-cat {
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  padding: 8px 10px;
  background: transparent;
  color: #141414;
  border-radius: 0;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  line-height: 1.25;
}

.sheet-cat.on { background: #ffffff; box-shadow: inset 3px 0 #ff5000; }

.sheet-goods { flex: 1; min-width: 0; overflow: auto; padding: 0 12px; }

.sheet-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.sheet-item img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--studio);
}

.sheet-item .name { font-size: 15px; }

.sheet-item form { display: block; }

.sheet-item .btn { min-width: 72px; height: auto; min-height: 44px; padding: 8px 12px; line-height: 1.25; white-space: nowrap; }

body.sheet-open { overflow: hidden; }

.profile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 4px 0 12px;
}

.avatar {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #ff5000;
  color: #ffffff;
  font-weight: 700;
  font-size: 22px;
}

.profile .btn { margin-top: 8px; }

.status-row,
.asset-row {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
}

.status-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.asset-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.status-row a,
.asset-row a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 68px;
  padding: 8px 4px;
  border-radius: 12px;
  background: #f4f0e8;
  text-align: center;
  text-decoration: none;
}

.status-row b { font-size: 20px; }

.asset-row b { font-size: 16px; }

.status-row span,
.asset-row span { color: #5c584f; font-size: 12px; font-weight: 600; }

.offer {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.offer strong {
  grid-row: span 2;
  color: #9d2c2c;
  font-size: 22px;
}

.offer p { margin: 0; }

.menu { display: grid; margin: 8px 0 24px; }

.menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  text-decoration: none;
}

.menu a::after { content: "›"; color: #5c584f; font-size: 22px; font-weight: 400; }

.bundle .product-grid { margin-top: 8px; }

.pick { display: flex; flex-direction: column; gap: 8px; min-width: 0; height: 100%; }

.pick .card { padding: 0; flex: 1; }

.pick form { display: block; margin-top: auto; }

.pick > .btn { margin-top: auto; }

.pick .btn {
  width: 100%;
  height: auto;
  min-height: 44px;
  padding: 8px 10px;
  line-height: 1.25;
  white-space: normal;
  text-align: center;
  box-sizing: border-box;
}

.tool {
  min-height: 36px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 8px;
  text-decoration: none;
  color: #333333;
  line-height: 1.15;
}

.tool small { font-size: 12px; font-weight: 400; opacity: 0.75; }

.tool strong { font-size: 16px; }

.tool-copy { display: flex; flex-direction: column; }

.app-icon,
.tabbar { display: none; }

.cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ff5000;
  color: #ffffff;
  font-size: 12px;
}

.depts {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  width: 100%;
  margin: 0;
  padding: 0 max(12px, calc((100% - 1190px) / 2));
  background: #ffffff;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
  z-index: 4;
}

.depts a {
  flex: 0 0 auto;
  min-height: 64px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 14px 8px;
  text-decoration: none;
  color: #666666;
  font-weight: 400;
  font-size: 12px;
}

.dept-ico { display: grid; color: #333333; }
.dept-svg { display: block; width: 22px; height: 22px; }
.depts a:hover .dept-ico { color: #ff5000; }

.depts a:hover { color: #ff5000; background: transparent; }

main {
  width: min(1190px, calc(100% - 24px));
  margin: 0 auto;
  padding: 12px 0 48px;
}

.mall {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 210px;
  gap: 10px;
  min-height: 300px;
  margin: 0 0 12px;
}

.mall-cats {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 8px;
  padding: 6px 0;
  overflow: auto;
}

.mall-cats a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  color: #333333;
  text-decoration: none;
  font-size: 13px;
}

.mall-cats .dept-svg { width: 16px; height: 16px; }

.mall-cats a:hover { color: #ff5000; background: #fff4ee; }

.mall-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  align-items: end;
  gap: 16px;
  min-height: 300px;
  padding: 28px;
  border-radius: 8px;
  text-decoration: none;
  color: #ffffff;
  background: linear-gradient(115deg, #ff5000 0%, #ff6a00 48%, #ff2d3a 100%);
}

.mall-copy { display: flex; flex-direction: column; gap: 10px; }

.mall-banner img {
  width: 200px;
  height: 200px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
}

.side-deal {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  color: #ff5000;
  font-weight: 700;
  text-decoration: none;
}

.side-deal img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--studio);
}

.mall-banner strong {
  max-width: 14em;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 700;
}

.mall-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border-radius: 8px;
  background: #ffffff;
}

.mall-side p { margin: 0; color: #666666; font-size: 13px; }

.hero {
  display: grid;
  gap: 20px;
  margin: 0 0 12px;
  padding: 22px 24px;
  border-radius: 12px;
  background: linear-gradient(105deg, #ff5000 0%, #ff7a00 55%, #ff2d3a 100%);
  color: #ffffff;
}

.kicker {
  margin: 0 0 6px;
  letter-spacing: 0;
  text-transform: none;
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
}

.hero h1 {
  margin: 0;
  max-width: none;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: 0;
}

.hero-body { max-width: 46ch; color: rgba(255, 255, 255, 0.92); }

.deal-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }

.deal-row span,
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.hero .btn { background: #ffffff; color: #ff5000; }

.hero-stage {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 12px;
}

.hero-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  background: var(--studio);
}

.hero-stage img:first-child { grid-row: span 2; min-height: 280px; }

.mosaic {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 0 14px;
}

.dept-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  align-items: center;
  min-height: 88px;
  padding: 8px;
  border-radius: 8px;
  background: #ffffff;
  text-decoration: none;
}

.dept-card img {
  width: 88px;
  height: 88px;
  border-radius: 12px;
  object-fit: cover;
}

.dept-card strong { font-size: 12px; font-weight: 400; color: #333333; }

.shelf { margin-top: 12px; }

.shelf-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 28px 0 12px;
}

.shelf-head h2,
.listing-head h1,
main h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
}

.more { font-weight: 600; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 100%;
  padding: 0 0 10px;
  border-radius: 8px;
  content-visibility: auto;
  contain-intrinsic-size: auto 280px;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid transparent;
  overflow: hidden;
}

.card:hover { box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08); }

.card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0;
  background: var(--studio);
}

.name {
  margin: 0 8px;
  font-weight: 400;
  font-size: 13px;
  color: #333333;
  letter-spacing: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  min-height: 2.8em;
}

.card .price,
.card .was,
.card .ship { margin: 0 8px; }

.price { font-weight: 700; font-size: 20px; color: #ff5000; }
.was { color: var(--muted); font-size: 14px; font-weight: 500; }
.was.strike { text-decoration: line-through; }
.offers { display: grid; gap: 8px; margin: 12px 0; }
.offer { display: flex; align-items: center; gap: 10px; min-height: 44px; }

.gallery { position: relative; }
.gallery-count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.55);
  color: #ffffff;
  font-size: 12px;
}
.stage { min-width: 0; }
.thumb-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 0 0;
}
.thumb {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}
.thumb img { width: 64px; height: 64px; object-fit: cover; border-radius: 7px; }
.thumb.on { border-color: #ff5000; }
.sku-list { display: flex; flex-direction: column; gap: 8px; }
label.sku-option {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  font-weight: 500;
  cursor: pointer;
}
label.sku-option:not(:has(img)) { grid-template-columns: minmax(0, 1fr); }
label.sku-option img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--studio);
}
.sku-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sku-name { font-size: 14px; line-height: 1.35; color: #141414; }
.sku-option .sku-price { font-size: 14px; font-weight: 700; }
label.sku-option:has(input:checked) { border-color: #ff5000; background: #fff4ee; }
.sku-option input { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; opacity: 0; }
.buy .was:empty, .sku-pane .was:empty { display: none; }
.sku-row {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  background: transparent;
  color: #141414;
  border-radius: 0;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  text-align: left;
}
.sku-row strong {
  font-weight: 500;
  color: #5c584f;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sku-sheet { position: fixed; inset: 0; z-index: 40; display: block; }
.sku-sheet[hidden] { display: none !important; }
.sku-backdrop { position: absolute; inset: 0; background: rgba(20, 20, 20, 0.45); border: 0; border-radius: 0; }
.sku-sheet > .sheet-close {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #141414;
}
.sku-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 70vh;
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
  border-radius: 16px 16px 0 0;
  padding-bottom: env(safe-area-inset-bottom);
}
.sku-head {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--line);
}
.sku-head img { width: 88px; height: 88px; object-fit: cover; border-radius: 8px; background: var(--studio); }
.sku-head .price { margin: 0; font-size: 26px; line-height: 1.1; }
.sku-head .was { margin: 4px 0 0; }
#sku-picked {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sku-grid {
  flex: 1 1 0;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: max-content;
  gap: 8px;
  align-content: start;
  align-items: start;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 16px;
}
.stepper, .sku-go { flex: 0 0 auto; }
label.sku-chip {
  position: relative;
  display: flex !important;
  flex-direction: column;
  gap: 6px;
  align-self: start;
  min-width: 0;
  height: auto;
  overflow: hidden;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
}
.sku-chip input { position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; opacity: 0; }
label.sku-chip .shot {
  position: relative;
  display: block;
  width: 100%;
  height: 0;
  padding-top: 100%;
  overflow: hidden;
  border-radius: 6px;
  background: var(--studio);
}
label.sku-chip .shot img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100% !important;
  max-height: none;
  object-fit: cover;
}
.sku-chip .chip-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}
.stepper { position: relative; z-index: 1; background: #ffffff; }
.sku-chip:has(input:checked) { border-color: #ff5000; background: #fff4ee; }
.stepper { display: flex; align-items: center; gap: 8px; padding: 8px 16px 12px; }
.stepper span { flex: 1; font-weight: 600; }
.stepper button {
  width: 36px;
  min-height: 36px;
  background: #f4f0e8;
  color: #141414;
  border-radius: 8px;
}
.stepper input { width: 56px; text-align: center; }
button.sku-go {
  position: relative;
  z-index: 2;
  width: calc(100% - 32px);
  margin: 0 16px 12px;
  background: #ff5000;
  color: #ffffff;
}
body.sku-open { overflow: hidden; }
.buy-actions .dock {
  flex: 0 0 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #141414;
}
.product-grid.feed { margin-top: 8px; }

.ship,
.stale,
.muted { color: var(--muted); }

.sponsored {
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--studio);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.field-error { color: #8a1f1f; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--muted);
}

.crumbs a { color: var(--harbor); }

.pdp { display: flex; flex-direction: column; gap: 20px; }

.gallery {
  margin: 0;
  padding: 16px;
  border-radius: 20px;
  background: var(--studio);
}

.gallery img { width: 100%; border-radius: 12px; }

.buy {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  background: #ffffff;
}

.buy h1, .sku-summary h1 { font-size: 18px; margin: 0 0 8px; font-weight: 600; letter-spacing: 0; line-height: 1.4; }

.buy > .price { font-size: 32px; }

.stock { color: var(--harbor); font-weight: 700; }

.buy-actions { display: flex; gap: 8px; }

.buy-actions form { flex: 1; }

.buy-actions .btn { width: 100%; }

.advantages { margin: 0; padding-left: 18px; }

.advantages li { margin: 8px 0; }

.specs { width: 100%; border-collapse: collapse; }

.specs th,
.specs td { border-top: 1px solid var(--line); text-align: left; padding: 12px 0; }

.listing { display: grid; gap: 12px; }

.listing-head { margin-bottom: 8px; }

.filters form,
.checkout,
.summary,
.auth form,
form { display: grid; gap: 12px; }

fieldset {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  min-inline-size: 0;
  background: #ffffff;
  position: relative;
  z-index: 1;
}

.addr-fields { display: flex; flex-direction: column; gap: 12px; }

.checkout { margin-top: 36px; clear: both; }

.shelf { position: relative; z-index: 0; }

.label-sheet {
  margin: 12px 0 0;
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  line-height: 1.5;
  background: #ffffff;
}

legend {
  display: block;
  float: none;
  width: auto;
  padding: 0 0 8px;
  margin: 0;
  font-weight: 700;
}

label { display: grid; gap: 6px; font-weight: 600; }

.summary {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: #ffffff;
}

.lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }

.cart-line {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border: 0;
  border-radius: 8px;
  background: #ffffff;
}

.qty-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

.qty-row .btn { min-height: 32px; padding: 0 10px; }

.cart-line img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--studio);
}

.steps { padding-left: 18px; }

.page-narrow { max-width: 520px; }

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  padding: 22px 24px 32px;
  background: #ffffff;
  color: #999999;
  border-top: 1px solid #f0f0f0;
}

.foot a { color: #666666; text-decoration: none; }

.to-top {
  position: fixed;
  right: 16px;
  bottom: 24px;
  z-index: 5;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid #e4e0d8;
  border-radius: 999px;
  background: #ffffff;
  color: #141414;
  box-shadow: 0 8px 20px rgba(20, 20, 20, 0.12);
  cursor: pointer;
}

.to-top[hidden] { display: none; }

.pwa-guide {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(72px + env(safe-area-inset-bottom));
  z-index: 12;
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 16px;
  background: #ffffff;
  color: #141414;
  box-shadow: 0 12px 32px rgba(20, 20, 20, 0.18);
}
.pwa-guide[hidden], .pwa-login[hidden], .pwa-steps[hidden] { display: none; }
.pwa-guide p, .pwa-card p { margin: 0; }
.pwa-actions { display: flex; gap: 8px; }
.pwa-login {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(72px + env(safe-area-inset-bottom));
  z-index: 12;
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #141414;
  text-align: center;
}
.pwa-login a { color: #ffffff; }
.pwa-card { margin: 12px 0; }
.act-pop[hidden] { display: none; }
.act-pop {
  position: fixed;
  inset: 0;
  z-index: 25;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(20, 0, 0, 0.45);
}
.act-pop-card {
  width: min(340px, 100%);
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: 28px 18px;
  border-radius: 28px;
  text-align: center;
}
.act-pop.checkin .act-pop-card {
  color: #fff4dd;
  background: radial-gradient(circle at 50% 20%, #ff5a42, #7a0d18 75%);
}
.act-pop.share .act-pop-card {
  color: #ffffff;
  background: radial-gradient(circle at 50% 0%, #ff7a45, #d01222 70%);
}
.act-pop-card p, .act-pop-card strong { margin: 0; }
.act-pop-card strong { font-size: 18px; line-height: 1.35; }
.act-pop .btn { background: #ffffff; color: #141414; }
.act-pop .quiet {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}
.pwa-ios[hidden] { display: none; }
.pwa-ios {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(20, 20, 20, 0.62);
}
.pwa-ios-card {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 108px;
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 18px;
  background: #ffffff;
  color: #141414;
}
.pwa-ios-card ol {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}
.pwa-ios-card p { margin: 0; }
.pwa-ios-card .btn { justify-self: start; }
.pwa-ios-arrow {
  position: absolute;
  left: 50%;
  bottom: 12px;
  display: grid;
  justify-items: center;
  gap: 2px;
  color: #ffffff;
  font-weight: 700;
  animation: pwa-nudge 0.9s ease-in-out infinite;
}
.pwa-ios-arrow[hidden] { display: none; }
@keyframes pwa-nudge {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}
.pop-hold[hidden], .pop-ship[hidden], .pop-desk[hidden] { display: none; }
.pop-kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ff5000;
}
.pop-note { margin: 0; font-size: 14px; line-height: 1.45; }
.pop-text {
  border: 0;
  background: transparent;
  color: #6d645c;
  font: inherit;
  cursor: pointer;
}
.pop-hold {
  position: fixed;
  inset: 0;
  z-index: 32;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(28, 16, 8, 0.48);
}
.pop-x {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(28, 20, 15, 0.08);
  color: #1c140f;
  font-size: 18px;
  line-height: 28px;
  cursor: pointer;
}
.pop-hold-sheet {
  position: relative;
  width: min(460px, 100%);
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px 14px;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
  border-radius: 22px 22px 0 0;
  border-top: 6px solid #ff5000;
  background: #fff8f3;
  color: #1c140f;
  animation: hold-up 0.28s ease;
}
.pop-hold-sheet img {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border-radius: 16px;
  background: #f0e4d8;
}
.pop-hold-sheet h2 { margin: 4px 0; font-size: 20px; line-height: 1.25; }
.pop-hold-price { margin: 0; font-size: 26px; font-weight: 700; }
.pop-hold-stock {
  display: inline-block;
  margin: 6px 0 0;
  padding: 2px 8px;
  border-radius: 999px;
  background: #ff5000;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
}
.pop-hold-sheet form, .pop-hold-sheet .pop-text { grid-column: 1 / -1; }
.pop-hold-sheet .btn, .pop-ship .btn, .pop-desk .btn { width: 100%; }
@keyframes hold-up {
  from { transform: translateY(24px); }
  to { transform: none; }
}
.pop-ship {
  position: fixed;
  inset: 0;
  z-index: 32;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(28, 18, 10, 0.55);
}
.pop-ship-slip {
  position: relative;
  width: min(340px, 100%);
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 28px 18px 16px;
  text-align: center;
  border-radius: 2px;
  background: #f4ecdf;
  color: #1c140f;
  outline: 1px dashed #c3b29d;
}
.pop-ship-slip img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 16px;
  background: #efe4d4;
}
.pop-ship-slip h2 { margin: 0; font-size: 22px; line-height: 1.25; }
.pop-gift-price { margin: 0; }
.pop-gift-price s { color: #8d7d70; margin-right: 8px; }
.pop-gift-price strong { color: #ff5000; font-size: 22px; }
.pop-ship-slip .btn { width: 100%; }
.ship-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-variant-numeric: tabular-nums;
}
.ship-row s { color: #8d7d70; }
.ship-now strong { color: #ff5000; font-size: 22px; }
.pop-desk {
  position: fixed;
  inset: 0;
  z-index: 36;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.72);
}
.pop-desk-card {
  position: relative;
  width: min(360px, 100%);
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 22px 18px 16px;
  border-radius: 28px;
  background: #141414;
  color: #ffffff;
  text-align: center;
}
.pop-desk-card h2 { margin: 0; font-size: 22px; line-height: 1.25; }
.pop-desk .pop-x { background: rgba(255, 255, 255, 0.14); color: #ffffff; }
.pop-desk.is-paid .pop-x { background: rgba(28, 20, 15, 0.08); color: #1c140f; }
.pop-desk .btn { background: #ff5000; color: #ffffff; }
.pop-desk.is-paid .pop-desk-card { background: #fff8f3; color: #141414; }
.pop-desk.is-paid .btn { background: #141414; color: #ffffff; }
.pop-desk.is-paid .pop-text { color: #6d645c; }
.phone {
  width: 168px;
  height: 214px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: start;
  justify-items: center;
  gap: 14px 0;
  margin-bottom: 6px;
  padding: 28px 16px 12px;
  border: 3px solid #3a3a3a;
  border-radius: 26px;
  background: #0c0c0c;
}
.phone img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  animation: desk-drop 0.55s ease;
}
.phone i {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #2a2a2a;
}
@keyframes desk-drop {
  from { transform: translateY(-36px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.filter-toggle { position: absolute; opacity: 0; }

.ad-slot { display: block; margin: 16px 0; }

.ad-slot img { border-radius: 12px; }

@media (max-width: 720px) {
  .mall { grid-template-columns: 1fr; min-height: 0; }
  .mall-cats { flex-direction: row; overflow-x: auto; }
  .mall-cats a { flex: 0 0 auto; }
  .mall-banner { min-height: 180px; grid-template-columns: 1fr; }
  .mall-banner img { display: none; }
  .mall-banner strong { font-size: 22px; }
  .mall-side { display: none; }
  .promise { padding: 8px 12px; }
  html, body { width: 100%; max-width: 100%; }
  .top-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    gap: 10px;
    min-height: 0;
    padding: 10px 12px 12px;
  }
  .brand { order: 1; flex: 1 1 auto; }
  .logo { flex: 1 1 auto; }
  .tools { order: 2; flex: 0 0 auto; }
  .locale-name { display: none; }
  .search {
    order: 3;
    display: flex;
    flex: 1 0 100%;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .search input { flex: 1 1 0; width: 1%; min-width: 0; }
  .top .btn { flex: 0 0 auto; max-width: 96px; padding: 0 14px; }
  .tool-account,
  .tool-copy,
  .depts,
  .foot { display: none; }
  .app-icon {
    display: grid;
    place-items: center;
    position: relative;
    width: 44px;
    height: 44px;
    color: #333333;
  }
  .app-icon .cart-count {
    position: absolute;
    top: 2px;
    right: 0;
    margin: 0;
    min-width: 18px;
    height: 18px;
    font-size: 11px;
  }
  main {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
    padding: 0 0 calc(76px + env(safe-area-inset-bottom));
  }
  main * { min-width: 0; }
  .hero-stage { overflow: hidden; }
  .hero-stage img { width: 100%; height: 120px; object-fit: cover; }
  .hero {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    margin-top: 0;
    margin-bottom: 8px;
    padding: 20px 16px 16px;
  }
  .hero h1 { font-size: 30px; max-width: 14ch; }
  .hero-body { display: none; }
  .hero-stage img:first-child { min-height: 148px; }
  .mosaic {
    order: -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px 8px;
    margin: 12px 8px 4px;
  }
  .dept-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    min-height: 0;
    gap: 6px;
    padding: 8px 4px 10px;
    background: transparent;
  }
  .dept-card img {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    background: var(--studio);
    object-fit: cover;
  }
  .dept-card strong { font-size: 13px; font-weight: 600; }
  .shelf { padding: 0 12px; min-width: 0; }
  .shelf-head { margin: 18px 0 8px; min-width: 0; align-items: center; }
  .shelf-head h2 { flex: 1 1 auto; min-width: 0; }
  .more { flex: 0 1 auto; text-align: right; }
  .shelf-head h2,
  main h1 { font-size: 22px; }
  .filters { display: none; }
  .filter-toggle:checked ~ .filters { display: block; }
  .skyscraper { display: none; }
  .tabbar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 6;
    min-height: 62px;
    padding: 4px 0 env(safe-area-inset-bottom);
    background: #ffffff;
    border-top: 1px solid var(--line);
  }
  .tabbar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 44px;
    color: #8a8680;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
  }
  .tabbar a.on { color: #ff5000; }
  .buy-actions .btn { flex: 1; width: auto; }
  .buy-actions {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    background: #ffffff;
    border-top: 1px solid var(--line);
    z-index: 7;
  }
  body:has(.buy-actions) .tabbar { display: none; }
  body:has(.buy-actions) main { padding-bottom: 84px; }
  .gallery { margin: 0; padding: 0; border-radius: 0; }
  .buy, .thumb-row, .crumbs, .sku-pane { padding-left: 12px; padding-right: 12px; }
  .detail-pane { display: contents; }
  .pdp-split { display: flex; flex-direction: column; }
  .crumbs { order: 0; }
  .stage { order: 1; }
  .sku-pane { order: 2; }
  .detail-rest { order: 3; }
  .pdp { gap: 0; }
  .buy { border: 0; border-radius: 0; padding: 12px 0 0; }
  .to-top { bottom: calc(78px + env(safe-area-inset-bottom)); }
  body:has(.buy-actions) .to-top { bottom: 76px; }
}

@media (min-width: 721px) {
  .filter-open { display: none; }
  .mall { grid-template-columns: 180px minmax(0, 1fr) 210px; }
  .mosaic { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .dept-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding: 10px 6px;
    min-height: 0;
  }
  .dept-card img { width: 64px; height: 64px; }
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  main:has(.cart-line) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    column-gap: 16px;
    align-items: start;
  }
  main:has(.cart-line) > h1,
  main:has(.cart-line) > .stale { grid-column: 1 / -1; }
  main:has(.cart-line) > .summary { grid-column: 2; grid-row: 2; position: sticky; top: 12px; }
  main:has(.cart-line) > .cart-picks { grid-column: 1 / -1; }
  .sort {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 8px 12px;
    border-radius: 8px;
    background: #ffffff;
  }
  .sort label { display: flex; flex-direction: row; align-items: center; gap: 8px; margin: 0; }
  .sort select, .sort .btn { width: auto; min-height: 32px; }
  body:has(.pdp-split) {
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  body:has(.pdp-split) main {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
  }
  body:has(.pdp-split) .foot { display: none; }
  .pdp-split {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 440px;
    gap: 16px;
  }
  .detail-pane,
  .sku-pane {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .detail-pane,
  .sku-pane { background: #ffffff; }
  .sku-pane { padding-left: 16px; border-left: 1px solid #f2f2f2; }
  .sku-summary .price {
    display: inline-block;
    margin: 0 0 8px;
    padding: 4px 10px;
    border-radius: 4px;
    background: #fff1e8;
    font-size: 28px;
  }
  .stage {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
  }
  .stage:not(:has(.thumb-row)) { grid-template-columns: minmax(0, 1fr); }
  .stage .thumb-row {
    grid-column: 1;
    grid-row: 1;
    flex-direction: column;
    flex-wrap: nowrap;
    align-content: start;
    max-height: 680px;
    overflow-y: auto;
    padding-top: 0;
    scrollbar-width: none;
  }
  .stage .thumb-row::-webkit-scrollbar { display: none; }
  .stage .gallery { grid-column: 2; grid-row: 1; }
  .sku-foot {
    position: sticky;
    bottom: 0;
    z-index: 2;
    padding-top: 12px;
    background: #ffffff;
    border-top: 1px solid var(--line);
  }
  .listing { grid-template-columns: 180px minmax(0, 1fr); align-items: start; gap: 16px; }
  .filters {
    padding: 12px;
    border: 0;
    border-radius: 8px;
    background: #ffffff;
  }
  .listing-head,
  .count,
  .sort,
  .product-grid { grid-column: 2; }
  .filter-open,
  .filters { grid-column: 1; grid-row: 1 / span 6; }
  .skyscraper:not(:has(a)) { display: none; }
  .checkout { grid-template-columns: 1.2fr 0.8fr; align-items: start; }
  .summary { position: sticky; top: 16px; }
}

@media (min-width: 1100px) {
  .product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .listing .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.locale select { width: auto; min-width: 88px; background: #ffffff; color: #141414; }

.product-grid.rail-scroll {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
}

.product-grid.rail-scroll .card {
  flex: 0 0 220px;
  scroll-snap-align: start;
}

.gallery-strip {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 8px;
  scrollbar-width: none;
}

.gallery-strip::-webkit-scrollbar { display: none; }

.gallery-strip img {
  flex: 0 0 100%;
  scroll-snap-align: start;
  aspect-ratio: 1;
  object-fit: cover;
}

.detail-sheet { display: grid; }
.detail-sheet img { width: 100%; height: auto; border-radius: 0; }

.progress { display: flex; gap: 8px; padding: 0; list-style: none; }

.progress li {
  flex: 1;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #f4f0e8;
  color: #5c584f;
  font-weight: 600;
}

.progress li.on { background: #ff5000; color: #ffffff; }

.account-nav, .pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 16px;
}

.account-nav a, .pager a { font-weight: 600; }

@media (max-width: 720px) {
  .filters {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 8;
    max-height: 78vh;
    overflow: auto;
    padding: 16px;
    background: #ffffff;
    border-radius: 16px 16px 0 0;
  }
  .is-checkout .tabbar { display: none; }
  .is-checkout main { padding-bottom: 96px; }
  .place-order {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 7;
  }
  .product-grid.rail-scroll {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
    scroll-snap-type: none;
  }
  .product-grid.rail-scroll .card {
    flex: none;
    width: auto;
    scroll-snap-align: none;
  }
  .name, .ship { overflow-wrap: break-word; }
  .qty-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
  .qty-row form { display: inline-flex; }
  .qty-row .btn { min-height: 36px; min-width: 44px; padding: 0 10px; }
  main:has(.cart-line) { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
  .summary > a.btn {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(74px + env(safe-area-inset-bottom));
    z-index: 7;
  }
  .summary { margin-bottom: 16px; }
  .listing { display: block; }
  .status-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; text-align: center; }
  .asset-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; text-align: center; }
  .menu a { display: flex; min-height: 48px; align-items: center; border-bottom: 1px solid var(--line); }
  .auth form, main > form { max-width: 100%; }
}

.ticker {
  display: block;
  margin: 16px 0 12px;
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(165deg, #7a2610 0%, #e25b12 70%);
  color: #fffaf6;
  text-decoration: none;
}
.ticker-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 4px;
}
.ticker-bar strong {
  display: block;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.03em;
}
.ticker-bar em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: 13px;
  opacity: 0.9;
}
.ticker-clock {
  font-size: 26px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
}
.ticker-window { overflow: hidden; }
.ticker-track {
  display: flex;
  gap: 8px;
  width: max-content;
  padding: 8px;
  animation: ticker-move 32s linear infinite;
}
.ticker:hover .ticker-track,
.ticker:focus-within .ticker-track { animation-play-state: paused; }
.ticker-item {
  display: flex;
  flex-direction: column;
  width: 140px;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  color: #1a1a1a;
}
.ticker-item img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  background: #f6f6f6;
}
.ticker-item .name {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  margin: 8px 8px 0;
  font-size: 12px;
  line-height: 1.3;
}
.ticker-item .price {
  display: block;
  margin: 2px 8px 10px;
  color: #9a3412;
  font-size: 16px;
  font-weight: 700;
}
@keyframes ticker-move {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.welcome {
  display: block;
  margin: 0 0 16px;
  padding: 18px 16px 16px;
  border-radius: 20px;
  background: #f3efe6;
  color: #16352b;
  text-decoration: none;
}
.welcome-copy small {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.welcome-copy strong {
  display: block;
  max-width: 16ch;
  margin-top: 6px;
  font-size: 26px;
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.welcome-row {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  overflow: hidden;
}
.welcome-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 112px;
  flex: none;
}
.welcome-item img {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border-radius: 14px;
  background: #fff;
}
.welcome-item em {
  font-style: normal;
  font-weight: 700;
  font-size: 15px;
}
body.event-sale { background: #6e2412; }
body.event-new { background: #16352b; }
body.event-sale main,
body.event-new main {
  width: min(1120px, 100%);
  padding-top: 0;
}
.poster {
  position: relative;
  min-height: 300px;
  margin: 0 0 18px;
  padding: 36px 22px 28px;
  overflow: hidden;
  border-radius: 0 0 28px 28px;
  color: #fffaf6;
}
.poster-sale {
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(255, 214, 160, 0.45), transparent 52%),
    linear-gradient(165deg, #7a2610 0%, #e25b12 62%, #ff9447 100%);
}
.poster-new {
  background:
    radial-gradient(80% 70% at 0% 100%, rgba(255, 244, 220, 0.16), transparent 55%),
    linear-gradient(165deg, #10261e 0%, #1e4638 55%, #3d7a62 100%);
}
.poster-kicker {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
main .poster h1 {
  max-width: 11ch;
  margin: 10px 0 12px;
  font-size: 42px;
  line-height: 0.94;
  letter-spacing: -0.045em;
}
.poster-line {
  max-width: 26ch;
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
}
.poster-line a { color: inherit; font-weight: 700; }
.poster-clock {
  display: inline-block;
  margin: 20px 0 0;
  padding: 8px 16px;
  border-radius: 999px;
  background: #fffaf6;
  color: #6e2412;
  font-size: 30px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
}
.poster-new .poster-clock { color: #16352b; }
.poster-rules {
  max-width: 42ch;
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.45;
  opacity: 0.88;
}
.deal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 12px 20px;
}
.deal {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  color: #1a1a1a;
  text-decoration: none;
}
.deal-photo { position: relative; display: block; }
.deal-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #f4f4f4;
}
.deal-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff;
  color: #9a3412;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.poster-new ~ .deal-grid .deal-badge,
body.event-new .deal-badge { color: #16352b; }
.deal-copy { padding: 10px 10px 12px; }
.deal .name {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 13px;
  line-height: 1.35;
}
.deal .price {
  display: block;
  margin-top: 8px;
  color: #9a3412;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
body.event-new .deal .price { color: #16352b; }
.deal .was {
  display: block;
  margin-top: 2px;
  color: #8d8680;
  font-size: 12px;
  text-decoration: line-through;
}
@media (min-width: 900px) {
  .poster {
    min-height: 360px;
    margin-top: 16px;
    padding: 52px 44px 40px;
    border-radius: 28px;
  }
  main .poster h1 { font-size: 68px; }
  .deal-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding: 0 0 28px; }
  .ticker-bar strong { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .ticker-window { overflow-x: auto; }
}
.goal-add { margin-top: 10px; }
.goal-add .btn { width: 100%; }
