:root {
  --bg: #f5f5f5;
  --panel: #ffffff;
  --ink: #222222;
  --muted: #777777;
  --line: #e5e5e5;
  --accent: #ff5000;
  --accent-2: #e1251b;
  --accent-3: #ffb300;
  --soft: #fff2e8;
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.ticker {
  overflow: hidden;
  white-space: nowrap;
  padding: 8px 24px;
  background: #2b2b2b;
  color: #fff;
  font-size: 13px;
}

.ticker-track {
  display: inline-flex;
  gap: 192px;
  min-width: max-content;
  will-change: transform;
  animation: floatText 48s linear infinite;
}

@keyframes floatText {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  width: 100%;
  max-width: 100vw;
  grid-template-columns: 240px minmax(240px, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px clamp(16px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff5000, #e1251b);
  color: #fff;
  font-weight: 800;
}

.brand strong {
  display: block;
  font-size: 20px;
}

.brand small {
  display: block;
  max-width: 170px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search {
  display: grid;
  grid-template-columns: 1fr 84px;
  min-width: 0;
  border: 2px solid var(--accent);
  border-radius: 8px;
  background: var(--panel);
}

.search input {
  min-width: 0;
  padding: 12px 14px;
  border: 0;
  border-radius: 8px 0 0 8px;
  background: transparent;
  outline: none;
}

.search button,
.cart-button,
.primary,
.secondary,
.notice button,
.checkout {
  border: 0;
  border-radius: 8px;
  font-weight: 700;
}

.search button {
  margin: 4px;
  background: linear-gradient(90deg, #ff7a00, #ff2d00);
  color: #fff;
}

.cart-button {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  padding: 12px 14px;
  background: #e1251b;
  color: #fff;
}

.cart-button strong {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: #ffb300;
  color: #711b00;
}

main {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 72px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 28px;
  align-items: stretch;
  min-height: 310px;
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 80, 0, 0.12), rgba(255, 179, 0, 0.08)),
    var(--panel);
  box-shadow: var(--shadow);
}

.eyebrow {
  width: fit-content;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 700;
}

h1 {
  max-width: 720px;
  margin: 18px 0 16px;
  font-size: clamp(34px, 4.1vw, 46px);
  line-height: 1.12;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

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

.hero-copy,
.product-card,
.modal-card {
  overflow-wrap: anywhere;
}

.hero p,
.notice p,
.toolbar p,
.cart-head p {
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary,
.secondary,
.notice button,
.checkout {
  padding: 12px 16px;
}

.primary {
  background: linear-gradient(90deg, #ff7a00, #ff2d00);
  color: #fff;
}

.secondary,
.notice button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.hero-visual {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf6;
}

.hero-visual picture,
.hero-art {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.hero-slide {
  opacity: 0;
  transition: opacity 520ms ease;
}

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

.hero-art {
  object-fit: contain;
}

.hero-dots {
  position: absolute;
  right: 0;
  bottom: 12px;
  left: 0;
  z-index: 2;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.hero-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 1px solid rgba(255, 80, 0, 0.36);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 1px 4px rgba(39, 39, 42, 0.12);
  cursor: pointer;
}

.hero-dot.is-active {
  width: 22px;
  background: var(--accent);
  border-color: var(--accent);
}

.notice {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff7ef;
}

.notice p {
  margin: 6px 0 0;
}

.live-store {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 14px;
  margin: 18px 0;
}

.live-panel {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

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

.panel-head span {
  font-weight: 800;
}

.panel-head small,
.backend-chip small,
.coupon-ledger small,
.wish-list time {
  color: var(--muted);
  font-size: 12px;
}

.panel-head button,
.wish-form button {
  border: 0;
  border-radius: 6px;
  background: #2b2b2b;
  color: #fff;
  font-weight: 700;
}

.panel-head button {
  padding: 7px 10px;
}

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

.backend-chip {
  display: grid;
  gap: 2px;
  min-height: 58px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fafafa;
}

.backend-chip strong {
  color: var(--accent);
  font-size: 20px;
}

.live-status p,
.wish-list p,
.coupon-ledger p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.wish-form {
  display: grid;
  grid-template-columns: 1fr 64px;
  gap: 8px;
}

.wish-form input {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: none;
}

.wish-form input:focus {
  border-color: var(--accent);
}

.wish-form button {
  padding: 0 10px;
  background: var(--accent);
}

.wish-list,
.coupon-ledger {
  display: grid;
  gap: 8px;
  max-height: 180px;
  overflow-y: auto;
}

.wish-item,
.ledger-item {
  display: grid;
  gap: 4px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fffaf6;
}

.wish-item strong,
.ledger-item strong {
  line-height: 1.35;
}

.ledger-item code {
  width: fit-content;
  padding: 3px 6px;
  border-radius: 4px;
  background: #2b2b2b;
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
}

.wallet-list {
  display: grid;
  gap: 10px;
  max-height: min(58vh, 520px);
  overflow-y: auto;
}

.wallet-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #ffd0a8;
  border-radius: 8px;
  background:
    radial-gradient(circle at 12px 12px, rgba(255, 255, 255, 0.7) 0 2px, transparent 3px),
    linear-gradient(135deg, #fff7e8, #fff);
  background-size: 18px 18px, auto;
}

.wallet-item.used {
  border-color: var(--line);
  background: #f7f7f7;
  opacity: 0.76;
}

.wallet-item strong,
.wallet-item small {
  display: block;
}

.wallet-item p {
  margin: 4px 0 8px;
}

.wallet-item code {
  display: inline-block;
  padding: 5px 8px;
  border-radius: 4px;
  background: #2b2b2b;
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
}

.wallet-item button,
.wallet-item span {
  border: 0;
  border-radius: 6px;
  padding: 9px 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  white-space: nowrap;
}

.wallet-item span {
  background: #777;
}

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

.category {
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
}

.category.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.toolbar {
  display: flex;
  gap: 16px;
  align-items: end;
  justify-content: space-between;
  margin: 10px 0 18px;
}

.toolbar h2 {
  margin: 0;
  font-size: clamp(24px, 4vw, 34px);
}

.toolbar p {
  margin: 0;
}

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

.product-card {
  display: grid;
  min-height: 392px;
  grid-template-rows: 184px auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.product-card:hover {
  box-shadow: 0 10px 28px rgba(225, 37, 27, 0.16);
  transform: translateY(-2px);
}

.product-photo {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #eee;
  text-align: left;
}

.product-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.product-card:hover .product-photo img {
  transform: scale(1.04);
}

.tag {
  position: absolute;
  left: 8px;
  top: 8px;
  max-width: calc(100% - 16px);
  padding: 5px 7px;
  border-radius: 4px;
  background: rgba(225, 37, 27, 0.92);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.product-body {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 12px;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.product-card h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
}

.product-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.review-line {
  min-height: 40px;
  padding: 8px;
  border: 0;
  border-radius: 4px;
  background: #f8f8f8;
  color: #666;
  font-size: 12px;
  line-height: 1.45;
  text-align: left;
}

.review-line:hover {
  color: var(--accent);
}

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

.price {
  color: var(--accent);
  font-size: 18px;
  font-weight: 800;
}

.add {
  padding: 9px 12px;
  border: 0;
  border-radius: 4px;
  background: #2b2b2b;
  color: #fff;
  font-weight: 700;
}

.add:hover span {
  display: none;
}

.add:hover::after {
  content: "加入人生";
}

.cart-drawer,
.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  background: rgba(30, 25, 22, 0.42);
}

.cart-drawer.open,
.modal.open {
  display: block;
}

.cart-panel {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  width: min(440px, 100%);
  height: 100%;
  grid-template-rows: auto 1fr auto auto;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.cart-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.cart-head strong {
  font-size: 22px;
}

.cart-head p {
  margin: 6px 0 0;
}

.icon-button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 24px;
}

.cart-items {
  overflow-y: auto;
  padding: 14px 20px;
}

.cart-item {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item strong {
  display: block;
}

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

.remove {
  border: 0;
  background: transparent;
  color: var(--accent);
  font-weight: 700;
}

.combo {
  margin: 0 20px 14px;
  padding: 12px;
  border: 1px solid #badfd7;
  border-radius: 8px;
  background: #eefaf6;
  color: #1a675e;
  font-weight: 700;
}

.checkout {
  margin: 0 20px 20px;
  background: var(--accent);
  color: #fff;
}

.modal-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(560px, calc(100% - 32px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 20px;
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  transform: translate(-50%, -50%);
}

.detail-modal {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
}

.detail-modal img {
  width: 100%;
  height: 180px;
  border-radius: 6px;
  object-fit: cover;
}

.detail-tag {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 7px;
  border-radius: 4px;
  background: var(--soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.comment-box {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fafafa;
}

.comment-box p {
  margin: 8px 0 0;
}

.ticket {
  position: relative;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  min-height: 300px;
  overflow: hidden;
  border: 1px solid #ffd0a8;
  border-radius: 14px;
  background:
    radial-gradient(circle at 12px 12px, rgba(255, 255, 255, 0.62) 0 2px, transparent 3px),
    linear-gradient(135deg, #fff6dd 0%, #fff 44%, #ffe9f2 100%);
  background-size: 18px 18px, auto;
  box-shadow: 0 22px 60px rgba(225, 37, 27, 0.2);
}

.ticket::before,
.ticket::after {
  position: absolute;
  left: 82px;
  z-index: 2;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.42);
  content: "";
}

.ticket::before {
  top: -14px;
}

.ticket::after {
  bottom: -14px;
}

.ticket-stub {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  padding: 18px 8px;
  border-right: 2px dashed rgba(225, 37, 27, 0.34);
  background: linear-gradient(180deg, #ff5000, #e1251b);
  color: #fff;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.ticket-stub span {
  font-size: 13px;
  letter-spacing: 0;
  opacity: 0.9;
}

.ticket-stub strong {
  font-size: 20px;
  letter-spacing: 0;
}

.ticket-main {
  position: relative;
  padding: 20px 24px 18px;
}

.ticket-topline,
.ticket-footer {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  color: #9b6a46;
  font-size: 12px;
  font-weight: 700;
}

.ticket-seal {
  position: absolute;
  top: 52px;
  right: 26px;
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border: 3px double rgba(225, 37, 27, 0.8);
  border-radius: 50%;
  color: #e1251b;
  font-size: 16px;
  font-weight: 900;
  opacity: 0.82;
  transform: rotate(-14deg);
}

.ticket-main h2 {
  max-width: calc(100% - 90px);
  margin: 22px 0 10px;
  color: #2b1d18;
  font-size: 30px;
  line-height: 1.16;
}

.ticket-body {
  max-width: calc(100% - 70px);
  margin: 0;
  color: #6d4b38;
  font-size: 15px;
}

.ticket-code {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin: 14px 0 10px;
  padding: 0 14px;
  border: 1px solid rgba(34, 34, 34, 0.18);
  border-radius: 8px;
  background: repeating-linear-gradient(
    90deg,
    #2b2b2b 0,
    #2b2b2b 3px,
    #3b3b3b 3px,
    #3b3b3b 6px
  );
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.ticket-note {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.62);
  color: #6b5546;
}

.server-bonus {
  padding: 12px;
  border: 1px solid #ffd0a8;
  border-radius: 8px;
  background: #fff6ed;
}

.server-bonus code {
  display: inline-block;
  margin-top: 6px;
  padding: 5px 8px;
  border-radius: 4px;
  background: #2b2b2b;
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 800;
}

.ticket-footer {
  padding-top: 10px;
  border-top: 1px dashed rgba(225, 37, 27, 0.28);
}

.ticket .modal-actions {
  margin-top: 12px;
}

.modal-card h2 {
  margin: 0 0 10px;
  font-size: 26px;
}

.modal-card p {
  color: var(--muted);
  line-height: 1.7;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
}

.chat {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  background: var(--accent-2);
  color: #fff;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.empty {
  margin: 0;
  padding: 18px 0;
  color: var(--muted);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 60;
  display: grid;
  gap: 4px;
  min-width: min(320px, calc(100% - 32px));
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
  transform: translateX(-50%);
  animation: toastIn 0.2s ease-out;
}

.toast span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translate(-50%, 10px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

body.june-theme {
  --bg: #fff4fb;
  --panel: #fffaff;
  --ink: #342231;
  --muted: #7e6075;
  --line: #efd3e7;
  --accent: #df69a7;
  --accent-2: #9270dd;
  --accent-3: #e0a0c9;
  --soft: #f6d7ec;
}

body.june-theme .brand-mark {
  background: #df69a7;
}

body.june-theme .hero-visual {
  background: #fff1fa;
}

.june-rain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 18;
  display: none;
  overflow: hidden;
}

body.june-theme .june-rain {
  display: block;
}

.june-rain span {
  position: absolute;
  top: -72px;
  left: var(--left);
  color: #df69a7;
  font-size: var(--size);
  font-weight: 900;
  text-shadow: 0 6px 18px rgba(95, 55, 90, 0.2);
  opacity: 0;
  filter: drop-shadow(0 8px 12px rgba(223, 105, 167, 0.18));
  animation: juneFall var(--duration) linear var(--delay) infinite;
}

@keyframes juneFall {
  0% {
    opacity: 0;
    transform: translate3d(0, -72px, 0) rotate(0deg);
  }
  8% {
    opacity: 0.86;
  }
  88% {
    opacity: 0.86;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--drift), calc(100vh + 96px), 0) rotate(240deg);
  }
}

@media (max-width: 1180px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

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

  .search {
    grid-column: 1 / -1;
    order: 3;
  }

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

  .live-store {
    grid-template-columns: 1fr;
  }

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

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

  .detail-modal img {
    height: 220px;
  }

  .ticket {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .ticket::before,
  .ticket::after {
    left: 54px;
  }

  .ticket-main {
    padding: 20px 18px 18px;
  }

  .ticket-seal {
    position: static;
    float: right;
    width: 64px;
    height: 64px;
    margin-left: 10px;
    font-size: 14px;
  }

  .ticket-main h2,
  .ticket-body {
    max-width: 100%;
  }

  .ticket-footer {
    flex-direction: column;
    gap: 4px;
  }
}

@media (max-width: 560px) {
  .site-header {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px;
  }

  .brand {
    flex: 1 1 100%;
    padding-right: 60px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand strong {
    font-size: 18px;
  }

  .brand small {
    max-width: 180px;
  }

  .cart-button {
    position: static;
    flex: 1 0 100%;
    min-width: 0;
    height: 44px;
    padding: 10px;
    border-radius: 8px;
  }

  .search {
    flex: 1 0 100%;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .search input {
    border-radius: 8px 8px 0 0;
  }

  .search button {
    height: 40px;
    margin: 0 4px 4px;
  }

  .cart-button span {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
  }

  main {
    width: min(100% - 20px, 1180px);
    padding-top: 16px;
  }

  h1 {
    width: min(100%, 13em);
    max-width: 100%;
    font-size: 25px;
    line-height: 1.16;
    word-break: break-all;
  }

  .hero {
    display: block;
    overflow: hidden;
    padding: 18px;
  }

  .hero-visual {
    width: 100%;
    max-width: 100%;
    margin-top: 24px;
    min-height: 260px;
  }

  .hero-art {
    height: 100%;
  }

  .hero-actions,
  .notice,
  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

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

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

.site-footer {
  width: min(100% - 48px, 1180px);
  margin: 22px auto 36px;
  color: rgba(79, 63, 47, 0.72);
  font-size: 13px;
  text-align: center;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  color: #3f6df6;
}
