:root {
  --bg: #f7f7f7;
  --surface: #ffffff;
  --surface-2: #f2f2f2;
  --ink: #222222;
  --muted: #6f747a;
  --line: #e5e7eb;
  --teal: #087f6f;
  --blue: #2563eb;
  --amber: #a56200;
  --rose: #ff4458;
  --shadow: 0 10px 26px rgba(22, 28, 38, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

body.checkout-active {
  background: #fff;
}

body.checkout-active .site-header,
body.checkout-active .coupon-side-prompt {
  display: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px 22px;
  align-items: center;
  min-height: 86px;
  padding: 12px clamp(18px, 4vw, 56px) 0;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  background: var(--rose);
  color: #fff;
  border-radius: 9px;
  font-size: 13px;
}

.nav-links {
  display: flex;
  grid-column: 1 / -1;
  gap: 2px;
  justify-content: flex-start;
  overflow: visible;
  scrollbar-width: thin;
  padding-top: 2px;
}

.nav-links a,
.chip,
.filter-link {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 0;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}

.nav-dropdown {
  position: relative;
  flex: 0 0 auto;
}

.nav-dropdown-trigger {
  position: relative;
}

.nav-dropdown-trigger::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 70;
  display: none;
  width: 220px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: grid;
  gap: 2px;
}

.nav-dropdown-menu a {
  justify-content: flex-start;
  min-height: 34px;
  padding: 7px 9px;
  border-radius: 6px;
}

.nav-dropdown.active > .nav-dropdown-trigger {
  color: var(--rose);
}

.nav-links a:hover,
.chip:hover,
.filter-link:hover,
.nav-links a.active,
.chip.active,
.filter-link.active {
  border-color: var(--line);
  border-color: transparent;
  background: transparent;
  color: var(--rose);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.search {
  display: grid;
  grid-template-columns: 22px minmax(140px, 1fr);
  align-items: center;
  gap: 8px;
  flex: 1;
  min-height: 44px;
  padding: 0 14px;
  background: #f4f4f5;
  border: 2px solid #eeeeee;
  border-radius: 999px;
}

.search svg,
.cart-button svg,
.button svg,
.trust-pill svg,
.icon-line svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.search input {
  width: 100%;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--ink);
}

.cart-button {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.login-link {
  color: var(--ink);
  font-weight: 800;
  white-space: nowrap;
}

.sell-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--rose);
  color: #fff;
  font-weight: 900;
  white-space: nowrap;
}

.header-coupon-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border: 1px dashed #ff8b9a;
  border-radius: 999px;
  background: #fff7f8;
  color: var(--rose);
  cursor: pointer;
  font-weight: 900;
  white-space: nowrap;
}

.header-coupon-button[hidden] {
  display: none;
}

.cart-button span {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 22px;
  height: 22px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--rose);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.market-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: end;
  padding: 30px 0 16px;
}

.market-hero h1 {
  max-width: 700px;
  margin-bottom: 10px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.04;
}

.market-hero p:not(.eyebrow) {
  max-width: 640px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
}

.hero-carousel {
  padding: 20px 0 10px;
}

.hero-frame {
  position: relative;
  min-height: clamp(260px, 33vw, 430px);
  background: #111820;
  border-radius: 8px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-arrow svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-prev {
  left: 14px;
}

.hero-prev svg {
  transform: rotate(180deg);
}

.hero-next {
  right: 14px;
}

.hero-dots {
  position: absolute;
  right: 18px;
  bottom: 16px;
  z-index: 2;
  display: flex;
  gap: 7px;
}

.hero-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

.hero-dots button.active {
  width: 24px;
  background: #fff;
}

.hero-checklist {
  display: grid;
  min-width: 290px;
  gap: 8px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.hero-checklist span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

.hero-checklist svg {
  width: 18px;
  height: 18px;
  color: var(--rose);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.quick-categories {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding: 8px 0 22px;
}

.quick-category {
  position: relative;
  min-height: 118px;
  padding: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.quick-category img {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 58%;
  height: 86%;
  object-fit: cover;
  opacity: 0.34;
}

.quick-category span,
.quick-category small {
  position: relative;
  z-index: 1;
  display: block;
}

.quick-category span {
  font-weight: 900;
}

.quick-category small {
  margin-top: 5px;
  color: var(--muted);
}

.market-top {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 28px;
  align-items: stretch;
  padding: 32px 0 20px;
}

.intro-panel {
  display: flex;
  min-height: 320px;
  flex-direction: column;
  justify-content: space-between;
  padding: 30px;
  background: #17212b;
  color: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.eyebrow {
  margin: 0 0 12px;
  color: #b6d7d3;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 16px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 0.98;
  letter-spacing: 0;
}

.intro-panel p {
  max-width: 540px;
  color: #dbe4ea;
  font-size: 18px;
}

.stats-row,
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stat,
.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #fff;
  font-weight: 700;
}

.feature-product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.85fr);
  gap: 18px;
  min-height: 320px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.feature-media {
  min-height: 280px;
  background: #eef0f2;
  border-radius: 8px;
  overflow: hidden;
}

.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: 6px 0;
}

.label {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  padding: 4px 8px;
  border-radius: 7px;
  background: #e7f6f4;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
}

.label.blue {
  background: #eaf1ff;
  color: var(--blue);
}

.label.amber {
  background: #fff2d8;
  color: var(--amber);
}

.label.rose {
  background: #ffe8ef;
  color: var(--rose);
}

.feature-copy h2 {
  margin: 14px 0 8px;
  font-size: 27px;
  line-height: 1.05;
}

.price-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin: 12px 0;
}

.price {
  font-size: 27px;
  font-weight: 900;
}

.compare {
  color: var(--muted);
  text-decoration: line-through;
}

.section-head {
  display: flex;
  gap: 16px;
  align-items: end;
  justify-content: space-between;
  margin: 28px 0 14px;
}

.section-head h2 {
  margin-bottom: 4px;
  font-size: 24px;
  letter-spacing: 0;
}

.section-head p {
  margin-bottom: 0;
  color: var(--muted);
}

.category-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0 10px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px 14px;
  padding-bottom: 42px;
}

.product-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  background: transparent;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.product-card:hover {
  transform: translateY(-2px);
}

.card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #edf0f2;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.card-media a,
.card-media img {
  display: block;
  width: 100%;
  height: 100%;
}

.card-media img {
  object-fit: cover;
}

.card-price {
  position: absolute;
  left: 8px;
  bottom: 8px;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  min-height: 28px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.card-price small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  text-decoration: line-through;
}

.save-pill {
  position: absolute;
  right: 8px;
  bottom: 8px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
}

.save-pill svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card-copy {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  padding: 8px 1px 0;
}

.card-copy h3 {
  display: -webkit-box;
  min-height: 38px;
  margin-bottom: 4px;
  overflow: hidden;
  color: #2f3337;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.meta {
  color: var(--muted);
  font-size: 14px;
}

.listing-meta,
.seller-line {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.seller-line {
  color: #92979d;
}

.view-link {
  color: var(--rose);
  font-weight: 900;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.button:hover {
  background: #27313c;
}

.button.secondary {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
}

.button.secondary:hover {
  background: #f0f3f6;
}

.button.teal {
  background: var(--teal);
}

.button.teal:hover {
  background: #0b625c;
}

.button.rose {
  background: var(--rose);
}

.button.rose:hover {
  background: #e33246;
}

.button.full {
  width: 100%;
}

.icon-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
}

.category-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 22px;
  padding: 26px 0 44px;
}

.category-layout > * {
  min-width: 0;
}

.filter-panel {
  align-self: start;
  min-width: 0;
  max-width: 100%;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.filter-panel h2 {
  margin-bottom: 12px;
  font-size: 17px;
}

.filter-stack {
  display: grid;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.toolbar h1 {
  margin-bottom: 3px;
  font-size: 36px;
  line-height: 1.08;
}

.select {
  min-height: 40px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.detail-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 28px;
  padding: 30px 0 48px;
}

.product-detail-shell {
  padding: 22px 0 26px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumb a {
  color: #4b5563;
  font-weight: 700;
}

.mercari-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 388px;
  gap: 28px;
  align-items: start;
}

.detail-left {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.mercari-gallery {
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.purchase-panel {
  position: sticky;
  top: 108px;
  display: grid;
  gap: 14px;
  align-self: start;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.purchase-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.small-muted {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.purchase-panel h1 {
  margin-bottom: 0;
  font-size: 25px;
  line-height: 1.14;
}

.price-line.compact {
  margin: 0;
}

.discount {
  color: var(--rose);
  font-size: 14px;
  font-weight: 900;
}

.seller-mini {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.seller-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: #ffe6ea;
  color: var(--rose);
  font-weight: 900;
}

.seller-mini span:last-child {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.product-coupon-card {
  display: grid;
  width: 100%;
  gap: 4px;
  padding: 13px;
  background: #fff7f8;
  border: 1px dashed #ff8b9a;
  border-radius: 8px;
  color: var(--ink);
  text-align: left;
}

.product-coupon-card.claimable {
  cursor: pointer;
}

.product-coupon-card.claimable strong {
  color: var(--rose);
}

.product-coupon-card span {
  color: var(--muted);
  font-size: 13px;
}

.product-coupon-card.active {
  background: #f0fdf4;
  border-color: #68c37a;
}

.cost-box {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.cost-box div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.cost-box div:last-child {
  border-bottom: 0;
}

.cost-box strong {
  color: var(--ink);
}

.cost-box .total-line {
  background: #fff7f8;
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
}

.mercari-actions {
  margin: 0;
}

.secure-checkout,
.buyer-protection,
.detail-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.secure-checkout,
.buyer-protection {
  display: grid;
  gap: 12px;
  padding: 13px;
}

.secure-title {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 9px;
}

.secure-title svg,
.ship-grid svg {
  width: 20px;
  height: 20px;
  color: var(--rose);
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.secure-title span,
.buyer-protection p {
  display: block;
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.payment-acceptance {
  display: grid;
  gap: 7px;
}

.payment-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.pay-icon {
  display: block;
  width: auto;
  height: 24px;
  max-width: 42px;
  object-fit: contain;
}

.payment-acceptance-note {
  display: block;
  max-width: 360px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.buyer-protection h2,
.detail-card h2 {
  margin-bottom: 6px;
  font-size: 18px;
}

.detail-card {
  padding: 18px;
}

.detail-card p {
  margin-bottom: 0;
  color: #333b44;
}

.detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.detail-list div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  min-height: 44px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.detail-list dt,
.detail-list dd {
  margin: 0;
  padding: 10px;
}

.detail-list dt {
  background: #fafafa;
  color: var(--muted);
  font-weight: 800;
}

.detail-list dd {
  background: #fff;
}

.ship-grid {
  display: grid;
  gap: 10px;
}

.ship-grid div {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
}

.gallery {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 14px;
}

.thumbs {
  display: grid;
  align-content: start;
  gap: 10px;
}

.thumb {
  aspect-ratio: 1 / 1;
  padding: 0;
  background: var(--surface);
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}

.thumb.active {
  border-color: var(--teal);
}

.thumb img,
.main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main-image {
  aspect-ratio: 4 / 3;
  background: #eef0f2;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.detail-info {
  align-self: start;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.detail-info h1 {
  margin-bottom: 10px;
  font-size: 32px;
  line-height: 1.05;
}

.detail-actions {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.seller-card {
  display: grid;
  gap: 3px;
  margin: 16px 0;
  padding: 13px;
  background: #f7f7f7;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.seller-card span {
  color: var(--muted);
  font-size: 14px;
}

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

.spec {
  min-height: 70px;
  padding: 12px;
  background: #f5f7f8;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.spec span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.spec strong {
  display: block;
  margin-top: 4px;
}

.icon-list {
  display: grid;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.icon-line {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
}

.cart-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  padding: 30px 0 48px;
}

.checkout-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  padding: 30px 0 48px;
}

.cart-list,
.summary-panel,
.empty-state {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cart-list {
  overflow: hidden;
}

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

.cart-item:last-child {
  border-bottom: 0;
}

.cart-item img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 8px;
}

.qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.qty-controls button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
}

.qty-fixed {
  display: inline-flex;
  width: fit-content;
  margin: 10px 0 0;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.item-price span,
.checkout-summary-item b small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-decoration: line-through;
}

.summary-panel {
  display: grid;
  gap: 12px;
  align-self: start;
  padding: 18px;
}

.summary-panel .payment-badges {
  padding-bottom: 4px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.summary-row.total {
  border-bottom: 0;
  font-size: 20px;
  font-weight: 900;
}

.checkout-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.checkout-form {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.checkout-form fieldset {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 0;
  border: 0;
}

.checkout-form legend {
  margin-bottom: 2px;
  font-size: 18px;
  font-weight: 900;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid.three {
  grid-template-columns: minmax(0, 1fr) 90px 130px;
}

.checkout-form label {
  display: grid;
  gap: 6px;
  color: #3f454c;
  font-size: 13px;
  font-weight: 800;
}

.checkout-form input {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.checkout-form input:focus {
  border-color: var(--rose);
  outline: 2px solid rgba(255, 68, 88, 0.14);
}

.checkout-warning {
  padding: 12px;
  background: #fff7e6;
  border: 1px solid #ffd186;
  border-radius: 8px;
  color: #7a4a00;
  font-size: 14px;
  font-weight: 700;
}

.checkout-summary {
  position: static;
}

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

.checkout-summary-item img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 8px;
}

.checkout-summary-item strong {
  display: block;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checkout-summary-item span {
  color: var(--muted);
  font-size: 12px;
}

.empty-state.compact {
  padding: 12px;
}

.coupon-summary {
  display: grid;
  gap: 3px;
  padding: 12px;
  background: #fff7f8;
  border: 1px dashed #ff9aa8;
  border-radius: 8px;
  color: var(--ink);
  text-align: left;
}

.coupon-summary span {
  color: var(--muted);
  font-size: 13px;
}

.coupon-summary.active {
  background: #f0fdf4;
  border-color: #68c37a;
}

.coupon-summary-button {
  width: 100%;
  cursor: pointer;
}

.checkout-coupon-banner {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 12px;
  padding: 12px 14px;
  background: #fff7f8;
  border: 1px dashed #ff8fa0;
  border-radius: 8px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.checkout-coupon-banner div {
  display: grid;
  gap: 3px;
}

.checkout-coupon-banner strong {
  font-size: 15px;
}

.checkout-coupon-banner span {
  color: var(--muted);
  font-size: 13px;
}

.checkout-coupon-banner.is-active {
  background: #f0fdf4;
  border-color: #68c37a;
  cursor: default;
}

.checkout-shell {
  display: grid;
  grid-template-columns: minmax(0, 680px) minmax(360px, 1fr);
  gap: 0;
  width: 100%;
  max-width: none;
  min-height: calc(100vh - 162px);
  margin: 0;
  padding: 0;
  background: linear-gradient(90deg, #fff 0%, #fff 58%, #f5f5f5 58%, #f5f5f5 100%);
}

.checkout-main {
  justify-self: end;
  width: min(100%, 680px);
  padding: 34px 42px 56px max(24px, calc((100vw - 1180px) / 2));
}

.checkout-sidebar {
  display: grid;
  align-content: start;
  gap: 18px;
  min-width: 0;
  padding: 82px max(24px, calc((100vw - 1180px) / 2)) 56px 42px;
  background: #f5f5f5;
  border-left: 1px solid var(--line);
}

.checkout-plugin-shell {
  grid-template-columns: 1fr;
  min-height: calc(100vh - 162px);
  background: #fff;
}

.checkout-plugin-main {
  justify-self: center;
  width: min(100% - 48px, 1240px);
  padding: 14px 0 34px;
}

.checkout-plugin-main .checkout-payment-card {
  padding: 0;
  border: 0;
}

.checkout-plugin-main .checkout-payment-title {
  padding: 0 0 8px;
  border-bottom: 1px solid var(--line);
}

.checkout-plugin-main .checkout-payment-mount {
  border: 0;
  border-radius: 0;
  background: #fff;
}

.checkout-plugin-main .checkout-payment-mount.is-loaded,
.checkout-plugin-main .checkout-payment-frame {
  min-height: 1040px;
}

.checkout-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 19px;
  font-weight: 900;
}

.checkout-brand .brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--rose);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.checkout-compact-header {
  margin-bottom: 12px;
}

.checkout-compact-header h1 {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1.12;
}

.checkout-compact-header p:last-child {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
}

.checkout-product-preview {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding: 10px 0 14px;
  border-bottom: 1px solid var(--line);
}

.checkout-product-images {
  display: flex;
  align-items: center;
}

.checkout-product-thumb,
.checkout-product-more {
  position: relative;
  width: 62px;
  height: 62px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.checkout-product-thumb + .checkout-product-thumb,
.checkout-product-more {
  margin-left: -12px;
}

.checkout-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.checkout-product-thumb span {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.82);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.checkout-product-more {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 900;
}

.checkout-product-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.checkout-product-copy strong {
  font-size: 15px;
}

.checkout-product-copy span {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checkout-product-total {
  display: grid;
  gap: 2px;
  text-align: right;
}

.checkout-product-total span {
  color: var(--muted);
  font-size: 12px;
}

.checkout-product-total strong {
  font-size: 18px;
}

.shopify-checkout-form {
  gap: 22px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.checkout-step {
  display: grid;
  gap: 13px;
}

.checkout-step-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkout-step-head span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

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

.shopify-checkout-form fieldset {
  gap: 12px;
}

.checkout-form .field {
  color: #343941;
  font-size: 12px;
  font-weight: 800;
}

.checkout-form .field input {
  min-height: 50px;
  padding: 12px 13px;
  border-color: #cfd5dc;
  border-radius: 6px;
  background: #fff;
  font-size: 15px;
}

.checkout-form .field input:disabled {
  background: #f5f6f7;
  color: #565d66;
  opacity: 1;
}

.checkout-form .field input::placeholder {
  color: #9aa1aa;
}

.shipping-method {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 14px 15px;
  border: 1px solid #cfd5dc;
  border-radius: 6px;
  background: #fff;
}

.shipping-method div {
  display: grid;
  gap: 2px;
}

.shipping-method span {
  color: var(--muted);
  font-size: 13px;
}

.payment-security {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.payment-security svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: var(--teal);
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.checkout-submit-wrap {
  display: grid;
  gap: 10px;
}

.checkout-submit-total {
  display: none;
}

.checkout-submit-wrap .button {
  min-height: 52px;
  border-radius: 6px;
  font-size: 16px;
}

.mobile-order-summary {
  display: none;
}

.checkout-sidebar .checkout-summary,
.mobile-order-summary-body {
  display: grid;
  gap: 14px;
}

.checkout-summary h2,
.mobile-order-summary h2 {
  margin: 0 0 4px;
  font-size: 20px;
}

.checkout-summary-item {
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 12px;
}

.checkout-summary-image {
  position: relative;
}

.checkout-summary-image img,
.checkout-summary-item img {
  width: 64px;
  height: 64px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.checkout-summary-image span {
  position: absolute;
  top: -8px;
  right: -8px;
  display: grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  background: #6f747a;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.checkout-summary-item strong {
  white-space: normal;
}

.checkout-discount-line .coupon-summary {
  background: #fff;
}

.checkout-trust-row {
  display: grid;
  gap: 9px;
  padding-top: 3px;
  color: var(--muted);
}

.checkout-trust-row .payment-badges {
  padding: 0;
}

.checkout-trust-row small {
  font-size: 12px;
}

.checkout-payment-card {
  display: grid;
  gap: 12px;
  margin-top: 0;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.checkout-payment-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.checkout-payment-title h2 {
  margin: 0;
  font-size: 20px;
}

.checkout-payment-title span {
  max-width: 230px;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.checkout-payment-mount {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  background: #fafafa;
  border: 1px dashed #cfd5dc;
  border-radius: 8px;
}

.checkout-payment-mount.is-loaded {
  min-height: 520px;
  background: #fff;
  border-style: solid;
}

.checkout-payment-placeholder {
  display: grid;
  min-height: 260px;
  place-items: center;
  align-content: center;
  gap: 7px;
  padding: 18px;
  color: var(--ink);
  text-align: center;
}

.checkout-payment-placeholder span {
  max-width: 280px;
  color: var(--muted);
  font-size: 13px;
}

.checkout-payment-frame {
  display: block;
  width: 100%;
  min-height: 760px;
  background: #fff;
  border: 0;
  opacity: 1;
}

.checkout-payment-frame.ready {
  opacity: 1;
}

.checkout-mobile-payment {
  display: none;
}

.discount-row {
  color: var(--rose);
}

.coupon-modal[hidden],
.coupon-side-prompt[hidden] {
  display: none;
}

.coupon-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(16, 24, 32, 0.56);
}

.coupon-dialog {
  position: relative;
  width: min(430px, 100%);
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.coupon-dialog h2 {
  margin-bottom: 10px;
  font-size: 30px;
  line-height: 1.08;
}

.coupon-dialog p:not(.eyebrow) {
  color: var(--muted);
}

.coupon-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.coupon-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.coupon-side-prompt {
  position: fixed;
  right: 16px;
  top: 48%;
  z-index: 90;
  display: grid;
  gap: 3px;
  max-width: 154px;
  padding: 12px 13px;
  background: var(--rose);
  border: 0;
  border-radius: 8px 0 0 8px;
  color: #fff;
  box-shadow: var(--shadow);
  cursor: pointer;
  text-align: left;
}

.coupon-side-prompt span {
  font-size: 19px;
  font-weight: 900;
}

.coupon-side-prompt strong {
  font-size: 13px;
  line-height: 1.2;
}

.empty-state {
  display: grid;
  min-height: 260px;
  place-items: center;
  padding: 28px;
  text-align: center;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  max-width: min(420px, calc(100vw - 36px));
  padding: 12px 14px;
  background: #121820;
  color: #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .nav-links {
    grid-column: 1 / -1;
    justify-content: flex-start;
    order: 3;
  }

  .market-top,
  .market-hero,
  .feature-product,
  .detail-page,
  .mercari-detail,
  .cart-page,
  .checkout-page,
  .category-layout {
    grid-template-columns: 1fr;
  }

  .purchase-panel {
    position: static;
  }

  .checkout-summary {
    position: static;
  }

  .checkout-shell {
    display: grid;
    grid-template-columns: 1fr;
    min-height: auto;
    background: #fff;
  }

  .checkout-main {
    justify-self: stretch;
    width: 100%;
    padding: 22px 18px 42px;
  }

  .checkout-plugin-main {
    width: 100%;
    padding: 8px 14px 26px;
  }

  .checkout-sidebar {
    display: none;
  }

  .checkout-mobile-payment {
    display: block;
    margin-top: 22px;
  }

  .mobile-order-summary {
    display: block;
    margin: 0 -18px 24px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #f5f5f5;
  }

  .mobile-order-summary summary {
    display: flex;
    min-height: 60px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 18px;
    color: var(--ink);
    cursor: pointer;
    font-weight: 900;
  }

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

  .mobile-order-summary summary span::after {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-left: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-3px);
  }

  .mobile-order-summary[open] summary span::after {
    transform: rotate(225deg) translate(-2px, -1px);
  }

  .mobile-order-summary-body {
    padding: 0 18px 18px;
  }

  .mobile-order-summary-body h2 {
    display: none;
  }

  .detail-list {
    grid-template-columns: 1fr;
  }

  .hero-checklist {
    min-width: 0;
  }

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

  .filter-panel {
    position: static;
  }

  .filter-stack {
    display: flex;
    gap: 8px;
    overflow-x: auto;
  }

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

@media (max-width: 720px) {
  .site-header {
    gap: 12px;
    padding: 12px 16px;
  }

  .brand span:last-child {
    display: none;
  }

  .header-actions {
    min-width: 0;
    gap: 8px;
  }

  .search {
    grid-template-columns: 20px minmax(92px, 1fr);
    width: min(58vw, 330px);
    min-height: 40px;
  }

  .login-link {
    display: none;
  }

  .sell-button {
    display: none;
  }

  .header-coupon-button {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 13px;
  }

  .nav-links {
    overflow-x: auto;
    overflow-y: visible;
  }

  .nav-dropdown-menu {
    position: fixed;
    top: 122px;
    left: 16px;
    width: min(260px, calc(100vw - 32px));
  }

  .intro-panel {
    min-height: 260px;
    padding: 22px;
  }

  .market-hero {
    padding-top: 22px;
  }

  .market-hero h1 {
    font-size: 32px;
  }

  .hero-carousel {
    padding-top: 14px;
  }

  .hero-frame {
    min-height: 220px;
  }

  .hero-arrow {
    width: 36px;
    height: 36px;
  }

  .quick-categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-product {
    grid-template-columns: 1fr;
  }

  .feature-media {
    min-height: 230px;
  }

  .section-head,
  .toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .gallery {
    grid-template-columns: 1fr;
  }

  .mercari-detail {
    align-items: start;
  }

  .detail-left {
    display: contents;
  }

  .mercari-gallery {
    order: 1;
    padding: 10px;
  }

  .purchase-panel {
    order: 2;
    margin-top: 2px;
    box-shadow: var(--shadow);
  }

  .detail-card {
    order: 3;
  }

  .thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    order: 2;
  }

  .purchase-panel {
    padding: 16px;
  }

  .mercari-actions {
    position: fixed;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    left: 12px;
    z-index: 110;
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 14px 45px rgba(22, 28, 38, 0.18);
    backdrop-filter: blur(12px);
  }

  .product-detail-shell {
    padding-bottom: 150px;
  }

  .purchase-panel h1 {
    font-size: 22px;
  }

  .detail-list div {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .spec-grid {
    grid-template-columns: 1fr;
  }

  .cart-item {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .cart-item img {
    width: 82px;
    height: 82px;
  }

  .cart-item .item-price {
    grid-column: 2;
  }

  .form-grid.two,
  .form-grid.three {
    grid-template-columns: 1fr;
  }

  .checkout-form {
    padding: 14px;
  }

  .checkout-main {
    padding-right: 14px;
    padding-left: 14px;
    padding-bottom: 32px;
  }

  .checkout-brand {
    margin-bottom: 8px;
  }

  .checkout-compact-header {
    margin-bottom: 10px;
  }

  .checkout-compact-header h1 {
    font-size: 24px;
  }

  .checkout-product-preview {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    margin-bottom: 10px;
    padding: 6px 0 10px;
  }

  .checkout-product-thumb,
  .checkout-product-more {
    width: 50px;
    height: 50px;
    border-radius: 7px;
  }

  .checkout-product-thumb + .checkout-product-thumb,
  .checkout-product-more {
    margin-left: -10px;
  }

  .checkout-product-copy strong {
    font-size: 14px;
  }

  .checkout-product-copy span {
    font-size: 12px;
  }

  .checkout-product-total {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px solid var(--line);
    text-align: left;
  }

  .checkout-plugin-main .checkout-payment-card {
    margin-top: 0;
    padding: 0;
  }

  .shopify-checkout-form {
    gap: 20px;
    padding: 0;
  }

  .checkout-step-head span {
    width: 24px;
    height: 24px;
  }

  .checkout-form .field input {
    min-height: 48px;
    font-size: 16px;
  }

  .checkout-payment-card {
    margin-top: 18px;
    padding: 13px;
  }

  .checkout-payment-title {
    display: grid;
    gap: 4px;
  }

  .checkout-payment-title span {
    max-width: none;
    text-align: left;
  }

  .checkout-payment-mount.is-loaded,
  .checkout-payment-frame {
    min-height: 820px;
  }

  .shipping-method {
    align-items: flex-start;
  }

  .checkout-submit-wrap {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 120;
    gap: 8px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--line);
    box-shadow: 0 -10px 28px rgba(22, 28, 38, 0.12);
    backdrop-filter: blur(12px);
  }

  .checkout-submit-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
  }

  .checkout-submit-total strong {
    color: var(--ink);
    font-size: 18px;
  }

  .checkout-submit-wrap .button {
    min-height: 50px;
  }

  .checkout-summary-item {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .checkout-summary-item b {
    grid-column: 2;
  }

  .checkout-summary-image img,
  .checkout-summary-item img {
    width: 48px;
    height: 48px;
  }

  .coupon-dialog {
    padding: 22px;
  }

  .coupon-dialog h2 {
    font-size: 25px;
  }

  .coupon-side-prompt {
    top: 132px;
    right: 12px;
    bottom: auto;
    max-width: 210px;
    border-radius: 8px;
  }
}

@media (max-width: 430px) {
  .shell {
    width: min(100% - 22px, 1180px);
  }

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

  h1 {
    font-size: 34px;
  }
}
