:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --bg-elevated: rgba(255,255,255,0.78);
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --text: #0f172a;
  --text-soft: #475569;
  --muted: #64748b;
  --line: rgba(15,23,42,0.08);
  --line-strong: rgba(15,23,42,0.14);
  --primary: #2563eb;
  --primary-soft: rgba(37,99,235,0.10);
  --success: #16a34a;
  --warning: #f59e0b;
  --danger: #ef4444;
  --shadow: 0 20px 48px rgba(15,23,42,0.08);
  --shadow-soft: 0 10px 30px rgba(15,23,42,0.06);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --container: 1180px;
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #0b1120;
  --bg-elevated: rgba(15,23,42,0.72);
  --surface: #111827;
  --surface-soft: #172033;
  --text: #e5eefc;
  --text-soft: #cbd5e1;
  --muted: #94a3b8;
  --line: rgba(148,163,184,0.16);
  --line-strong: rgba(148,163,184,0.24);
  --primary: #60a5fa;
  --primary-soft: rgba(96,165,250,0.16);
  --success: #4ade80;
  --warning: #fbbf24;
  --danger: #fb7185;
  --shadow: 0 24px 60px rgba(2,6,23,0.45);
  --shadow-soft: 0 12px 28px rgba(2,6,23,0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(59,130,246,0.12), transparent 26%),
    radial-gradient(circle at top right, rgba(34,197,94,0.10), transparent 22%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button.secondary-btn,
button.primary-btn,
button.ghost-btn,
button.theme-toggle,
button.theme-toggle-inline {
  -webkit-appearance: none;
  appearance: none;
  background-clip: padding-box;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(96,165,250,0.7);
  outline-offset: 2px;
}

.app-shell { min-height: 100vh; }
.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 14px 0 10px;
}

.nav-glass {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
  border-radius: 999px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  white-space: nowrap;
  margin: 0;
  padding: 0 10px 0 4px;
}

.brand-text {
  display: inline-flex;
  flex-direction: column;
  min-width: 0;
  align-items: flex-start;
  justify-content: center;
}

.brand-text strong {
  display: block;
  font-size: 24px;
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.brand-text span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
  line-height: 1.2;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
  margin-left: auto;
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.nav-link {
  flex: 0 0 auto;
  min-width: auto;
  padding: 11px 16px;
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 15px;
  text-align: center;
  font-weight: 600;
  transition: .25s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--primary);
  background: var(--primary-soft);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  min-width: 46px;
  justify-content: flex-end;
  margin-left: 8px;
}

.theme-toggle,
.icon-btn,
.primary-btn,
.secondary-btn,
.ghost-btn,
.theme-toggle-inline {
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: .25s ease;
}

.theme-toggle,
.icon-btn {
  width: 46px;
  height: 46px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

.theme-toggle-inline { display: none; }

.primary-btn,
.secondary-btn,
.ghost-btn {
  padding: 12px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.primary-btn {
  background: linear-gradient(135deg, var(--primary), #4f46e5);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 16px 26px rgba(37,99,235,0.22);
}

.secondary-btn { background: var(--surface); color: var(--text); }
.ghost-btn { background: transparent; color: var(--text-soft); }

.primary-btn:hover,
.secondary-btn:hover,
.ghost-btn:hover,
.theme-toggle:hover,
.icon-btn:hover,
.theme-toggle-inline:hover {
  transform: translateY(-1px);
}

.theme-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 18px;
  line-height: 1;
}

.main-content { padding: 10px 0 22px; }
.section,
.group-section,
.knowledge-section { margin-bottom: 24px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.card-soft {
  background: var(--bg-elevated);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.card-header { padding: 22px 28px 0; }
.card-body { padding: 24px 28px 28px; }
.compact-header { padding-bottom: 0; }

.card-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
}

.card-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.section-heading {
  margin: 0 0 12px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
}

.notice-section { margin-bottom: 22px; }
.notice-card { overflow: hidden; }
.notice-card .card-body { padding-top: 8px; }

.notice-content { color: var(--text-soft); min-height: 0; }
.notice-content *:first-child { margin-top: 0; }
.notice-content *:last-child { margin-bottom: 0; }
.notice-content p {
  margin: 0 0 16px;
  line-height: 1.85;
}
.notice-content p:last-child { margin-bottom: 0; }

.notice-lead strong,
.notice-site strong {
  color: var(--text);
  font-weight: 700;
}

.notice-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}

.notice-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--primary);
  font-weight: 600;
  white-space: nowrap;
  transition: .2s ease;
}

.notice-links a:hover {
  border-color: rgba(37,99,235,0.22);
  background: var(--primary-soft);
}

.notice-warning { color: var(--text); }
.notice-warning strong { color: #ef4444; }
.notice-warning a {
  display: inline-block;
  margin-left: 8px;
  color: #ef4444;
  font-weight: 700;
}
.notice-warning a:hover { text-decoration: underline; }

.hero {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 22px;
  align-items: stretch;
}
.hero.hero-single { grid-template-columns: 1fr; }
.hero.hero-single .hero-copy { max-width: 920px; }

.hero-copy {
  padding: 34px;
}
.hero-copy h1 {
  margin: 0;
  font-size: clamp(30px, 3.8vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
.hero-copy p {
  margin: 14px 0 0;
  color: var(--text-soft);
  font-size: 15px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.hero-copy-clean {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 320px;
}
.hero-copy-clean h1 { max-width: 10ch; }
.hero-copy-clean .hero-actions { margin-top: 22px; }

.hero-side {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.metric {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-soft);
}
.metric strong {
  display: block;
  font-size: 24px;
  line-height: 1;
}
.metric span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.category-card {
  overflow: hidden;
  border-color: var(--line-strong);
}
.category-card .card-body {
  padding-top: 22px;
  padding-bottom: 22px;
}
.category-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.category-card-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent), var(--surface-soft);
  justify-content: center;
  align-items: center;
}
.category-pills a {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  color: var(--text-soft);
}
.category-pills a:hover {
  color: var(--primary);
  border-color: rgba(37,99,235,0.2);
}

.group-header {
  margin-bottom: 16px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}
.group-header h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}
.group-header p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.product-group-card {
  padding: 0;
  overflow: hidden;
}
.product-group-inner {
  padding: 26px 28px 30px;
}
.product-group-card .group-header { margin-bottom: 18px; }
.product-group-card .product-grid { gap: 18px; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  position: relative;
  border-radius: 24px;
}
.product-card:hover { transform: translateY(-3px); }

.product-media {
  aspect-ratio: 1 / 1;
  background: linear-gradient(180deg, var(--surface-soft), transparent), var(--surface-soft);
  border-bottom: 1px solid var(--line);
  display: grid;
  place-items: center;
  padding: 18px;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 20px;
}

.product-content { padding: 16px 16px 18px; }
.product-title {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.4;
  min-height: 42px;
  font-weight: 650;
}

.badge-row,
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge,
.status-badge,
.layui-badge,
.badge-stock,
.badge--green,
.badge--orange,
.badge--blue,
.badge--red {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
}

.badge { background: var(--surface-soft); color: var(--text-soft); border-color: var(--line); }
.badge-primary { background: var(--primary-soft); color: var(--primary); border-color: rgba(37,99,235,0.14); }
.badge-success { background: rgba(22,163,74,0.12); color: var(--success); border-color: rgba(22,163,74,0.18); }
.badge-warning { background: rgba(245,158,11,0.12); color: var(--warning); border-color: rgba(245,158,11,0.18); }
.badge-danger { background: rgba(239,68,68,0.12); color: var(--danger); border-color: rgba(239,68,68,0.18); }

.badge-success,
.badge--green {
  background: #14532d !important;
  color: #f0fdf4 !important;
  border-color: rgba(187,247,208,0.28) !important;
}
.badge-warning,
.badge-process,
.badge-manual,
.badge--orange {
  background: #7c2d12 !important;
  color: #fff7ed !important;
  border-color: rgba(253,186,116,0.28) !important;
}
.badge-primary,
.badge-stock,
.badge--blue {
  background: #1e3a8a !important;
  color: #eff6ff !important;
  border-color: rgba(147,197,253,0.28) !important;
}
.badge--red {
  background: #7f1d1d !important;
  color: #fef2f2 !important;
  border-color: rgba(252,165,165,0.28) !important;
}
html[data-theme='light'] .badge-success,
html[data-theme='light'] .badge--green {
  background: #166534 !important;
}
html[data-theme='light'] .badge-warning,
html[data-theme='light'] .badge--orange {
  background: #9a3412 !important;
}
html[data-theme='light'] .badge-primary,
html[data-theme='light'] .badge-stock,
html[data-theme='light'] .badge--blue {
  background: #1d4ed8 !important;
}
html[data-theme='light'] .badge--red {
  background: #b91c1c !important;
}

.price-row {
  margin-top: 14px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}
.price {
  font-size: 24px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.stock {
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;
  word-break: keep-all;
  flex-shrink: 0;
  text-align: right;
  min-width: fit-content;
}

.split-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.split-layout-buy { align-items: start; }
.stack { display: grid; gap: 18px; }

.media-panel { padding: 18px; }
.media-box {
  border-radius: 24px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  padding: 16px;
}
.media-box img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 18px;
}
.qr-note {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin-top: 12px;
}

.product-media-card,
.share-card-panel {
  overflow: hidden;
}
.product-media-card { padding: 18px; }
.product-media-shell {
  display: grid;
  place-items: center;
  min-height: 0;
  border-radius: 24px;
  background: transparent;
}
.product-media-shell img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(15,23,42,0.06);
  box-shadow: 0 16px 34px rgba(2,6,23,0.08);
}
html[data-theme='dark'] .product-media-shell img {
  border-color: rgba(148,163,184,0.12);
  box-shadow: 0 18px 36px rgba(2,6,23,0.28);
}

.buy-media-column {
  display: grid;
  gap: 18px;
}

.share-card-panel { padding: 18px 20px; }
.share-card-content {
  display: grid;
  gap: 14px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.share-card-label {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.share-link-btn { width: 100%; }
.share-card-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  max-width: 28ch;
}
.share-card-below-description .card-body,
.share-card-desktop .card-body { padding: 18px; }
.share-card-below-description .share-card-content { max-width: 420px; }
.share-card-mobile-wrap { display: none; }

.detail-head {
  display: block;
  margin-bottom: 10px;
}
.detail-head h1 {
  margin: 0;
  font-size: clamp(24px, 2vw, 32px) !important;
  line-height: 1.14 !important;
  letter-spacing: -0.02em;
  max-width: none !important;
}
.detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  margin-bottom: 12px;
}

.price-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: 22px;
}
.price-panel .now {
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
}
.price-panel .old {
  color: var(--muted);
  text-decoration: line-through;
}

.discount-list {
  margin: 18px 0 0;
  padding: 18px 20px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(245,158,11,0.10), rgba(251,191,36,0.06));
  border: 1px solid rgba(245,158,11,0.16);
}
.discount-list h3 {
  margin: 0 0 12px;
  font-size: 16px;
}
.discount-list p {
  margin: 8px 0 0;
  color: var(--text-soft);
}

.form-grid {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}
.field-grid.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.field label,
.fieldset-title {
  display: block;
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-soft);
}

.input,
.textarea,
.quantity-input,
.verify-input {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  padding: 14px 16px;
  outline: none;
  transition: .2s ease;
}

.input:focus,
.textarea:focus,
.quantity-input:focus,
.verify-input:focus {
  border-color: rgba(37,99,235,0.45);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.10);
}

.quantity-input {
  appearance: none;
  -webkit-appearance: none;
}
.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
  margin: 0;
}

.payment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.payment-option { position: relative; }
.payment-option input {
  position: absolute;
  opacity: 0;
  inset: 0;
}
.payment-card {
  height: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.35;
  word-break: break-word;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background: var(--surface-soft);
  color: var(--text-soft);
  transition: .2s ease;
}
.payment-option input:checked + .payment-card {
  border-color: rgba(37,99,235,0.34);
  background: var(--primary-soft);
  color: var(--primary);
  box-shadow: inset 0 0 0 1px rgba(37,99,235,0.18);
}

.inline-group {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.captcha-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.captcha-image {
  height: 52px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
  justify-content: center;
}

.description-content {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-soft);
}
.description-content *:first-child { margin-top: 0; }
.description-content *:last-child { margin-bottom: 0; }
.description-content img {
  border-radius: 18px;
  max-width: 100%;
  height: auto;
}
.description-content h1,
.description-content h2,
.description-content h3,
.description-content h4 {
  color: var(--text);
}
.description-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.description-content p,
.description-content li {
  word-break: break-word;
}

.confirm-card,
.pay-card,
.search-card,
.error-card,
.contact-card,
.order-card { padding: 26px; }

.info-list {
  display: grid;
  gap: 14px;
  margin: 0;
}
.info-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.info-row:last-child { border-bottom: 0; }
.info-label { color: var(--muted); }

.amount-highlight {
  color: var(--danger);
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.centered-actions {
  text-align: center;
  margin-top: 22px;
}

.qr-wrap {
  width: min(280px, 100%);
  margin: 20px auto 0;
  padding: 18px;
  border-radius: 24px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}

.search-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.search-tab {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--text-soft);
}
.search-tab.is-active {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: rgba(37,99,235,0.18);
}
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

.order-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, .88fr);
  gap: 18px;
  align-items: start;
}
.order-grid-split {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}
.order-left-stack {
  display: grid;
  gap: 16px;
}
.order-meta,
.order-delivery,
.order-summary {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface-soft);
  padding: 18px 20px;
}
.order-summary {
  border-radius: 24px;
  padding: 22px;
  height: 100%;
}
.order-summary-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.order-summary-list li,
.order-meta li,
.order-delivery li {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.order-meta ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.order-delivery {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.copy-box {
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  line-height: 1.75;
  min-height: 280px;
  max-height: 520px;
  overflow: auto;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%) translateY(20px);
  background: rgba(15,23,42,0.92);
  color: #fff;
  padding: 12px 16px;
  border-radius: 999px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: .25s ease;
  z-index: 50;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.site-footer {
  padding: 4px 0 12px;
}
.footer-card {
  padding: 16px 22px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.footer-card p { margin: 0; }
.footer-card p + p { margin-top: 6px; }

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

.hidden { display: none !important; }

@media (max-width: 1040px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .split-layout,
  .hero,
  .order-grid,
  .order-grid-split { grid-template-columns: 1fr; }
  .payment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 761px) {
  .site-header .container {
    width: min(calc(100% - 32px), var(--container)) !important;
    margin: 0 auto !important;
    max-width: none !important;
    padding: 0 !important;
  }

  .nav-glass {
    width: 100% !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 18px !important;
    padding: 16px 20px !important;
  }

  .brand {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 10px 0 4px !important;
    border-right: 0 !important;
  }

  .header-actions {
    margin: 0 0 0 8px !important;
    justify-self: auto !important;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(calc(100% - 16px), var(--container));
  }

  .site-header { padding: 10px 0 8px; }

  .nav-glass {
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px 12px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 24px;
  }

  .brand {
    grid-column: 1;
    min-width: auto;
    margin-left: 4px;
    padding-left: 0;
    padding-right: 0;
    border-right: 0;
  }

  .brand-text strong {
    font-size: 21px;
    line-height: 1.02;
  }

  .brand-text span {
    display: block;
    font-size: 11px;
    margin-top: 2px;
  }

  .header-actions { display: none; }

  .nav-links {
    grid-column: 2;
    width: 100%;
    min-width: 0;
    margin-left: 0;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    padding: 0 2px 0 0 !important;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .nav-links::-webkit-scrollbar { display: none; }

  .nav-link,
  .theme-toggle-inline {
    flex: 0 0 auto;
    min-width: max-content;
  }

  .nav-link {
    padding: 8px 12px;
    font-size: 13px;
    white-space: nowrap;
  }

  .theme-toggle-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    min-width: 38px;
    height: 38px;
    padding: 0;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
  }

  .hero {
    gap: 16px;
  }

  .hero.hero-single .hero-copy {
    max-width: none;
  }

  .hero-copy,
  .hero-side,
  .card-body,
  .card-header,
  .confirm-card,
  .pay-card,
  .search-card,
  .error-card,
  .contact-card,
  .order-card,
  .media-panel {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-copy {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .hero-copy h1 {
    font-size: clamp(24px, 9vw, 38px);
    line-height: 1.12;
    letter-spacing: -0.02em;
  }

  .hero-copy p {
    font-size: 14px;
  }

  .hero-copy-clean {
    min-height: 0;
  }

  .hero-copy-clean h1 {
    max-width: none;
  }

  .hero-actions { gap: 10px; }

  .primary-btn,
  .secondary-btn,
  .ghost-btn {
    padding: 11px 18px;
  }

  .section,
  .group-section,
  .knowledge-section {
    margin-bottom: 18px;
  }

  .notice-card .card-header,
  .notice-card .card-body {
    padding-left: 20px;
    padding-right: 20px;
  }

  .notice-card .card-body {
    padding-top: 8px;
    padding-bottom: 22px;
  }

  .notice-content p {
    margin-bottom: 14px;
    line-height: 1.9;
    font-size: 15px;
  }

  .notice-lead { font-size: 16px; }
  .notice-site { font-size: 15px; }

  .notice-links {
    gap: 8px;
    margin-bottom: 16px;
  }

  .notice-links a {
    min-height: 36px;
    padding: 0 12px;
    font-size: 14px;
  }

  .notice-warning {
    font-size: 15px;
  }

  .notice-warning a {
    margin-left: 0;
    margin-top: 8px;
  }

  .category-card .card-body {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .category-card-head {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    margin-bottom: 10px;
  }

  .category-card-note {
    font-size: 12px;
  }

  .category-card .category-pills {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    align-items: center;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 8px;
    padding: 10px;
    white-space: nowrap;
  }
  .category-card .category-pills::-webkit-scrollbar { display: none; }
  .category-card .category-pills a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .product-group-inner {
    padding: 20px 18px 22px;
  }

  .product-group-card .group-header {
    margin-bottom: 14px;
  }

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

  .group-header h2 { font-size: 19px; }
  .group-header p { font-size: 14px; }

  .product-title {
    font-size: 13px;
    line-height: 1.38;
    min-height: 56px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .badge-row,
  .meta-row {
    gap: 6px;
    flex-wrap: nowrap;
  }

  .badge,
  .status-badge {
    font-size: 11px;
    padding: 6px 9px;
  }

  .product-content {
    padding: 14px 14px 16px;
  }

  .price-row {
    margin-top: 12px;
    gap: 8px;
  }

  .price { font-size: 18px; }
  .stock {
    font-size: 12px;
    min-width: max-content;
  }

  .split-layout,
  .split-layout-buy,
  .order-grid,
  .order-grid-split {
    grid-template-columns: 1fr;
  }

  .buy-media-column { display: none; }

  .payment-grid,
  .field-grid.two,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .share-card-desktop { display: none; }
  .share-card-mobile-wrap { display: block; }

  .product-media-card,
  .share-card-panel {
    padding: 14px;
  }

  .product-media-shell img { border-radius: 20px; }

  .share-card-content {
    gap: 12px;
    padding: 16px;
    border-radius: 20px;
  }

  .share-card-note { max-width: none; }

  .copy-box {
    min-height: 0;
    max-height: none;
  }

  .detail-head {
    display: block;
    margin-bottom: 8px;
  }

  .detail-head h1 {
    font-size: clamp(20px, 5.4vw, 24px) !important;
    line-height: 1.16 !important;
    letter-spacing: -0.015em;
  }

  .detail-badges {
    gap: 8px;
    margin-top: 8px;
    margin-bottom: 10px;
  }

  .site-footer { padding-bottom: 10px; }

  .footer-card {
    padding: 14px 16px;
    border-radius: 20px;
  }
}

@media (min-width: 480px) and (max-width: 760px) {
  .nav-links {
    justify-content: flex-end !important;
    margin-left: auto !important;
    padding-left: 8px !important;
  }
}