:root {
  --bg: #f7f7fa;
  --surface: #ffffff;
  --surface-soft: #f1f1f5;
  --ink: #242229;
  --muted: #77737e;
  --line: #e4e2e8;
  --purple: #4d08b6;
  --purple-2: #6e22de;
  --purple-soft: #eee7ff;
  --blue: #6674ec;
  --green: #2b9870;
  --yellow: #f3c32d;
  --red: #e95e67;
  --shadow: 0 12px 36px rgba(46, 20, 76, .08);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 9px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--ink); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { border: 0; cursor: pointer; }
.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 99; padding: .6rem .85rem; background: var(--ink); color: #fff; border-radius: .5rem; }
.skip-link:focus { top: 1rem; }

.app-shell { min-height: 100vh; }
.site-header { position: sticky; top: 0; z-index: 30; height: 66px; background: rgba(255,255,255,.91); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); }
.header-inner { width: min(1180px, calc(100% - 40px)); height: 100%; margin: 0 auto; display: flex; align-items: center; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 21px; font-weight: 800; letter-spacing: -.04em; }
.brand-mark { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 10px; background: linear-gradient(150deg, #2c086e, #7926e7); color: #fff; font-size: 17px; box-shadow: 0 7px 18px rgba(76, 7, 181, .22); }
.brand-period { color: var(--purple); }
.header-caption { color: var(--muted); font-size: 13px; padding-left: 18px; border-left: 1px solid var(--line); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.header-button { min-height: 37px; padding: 0 16px; border-radius: 999px; background: var(--purple); color: #fff; font-size: 13px; font-weight: 700; box-shadow: 0 7px 16px rgba(77,8,182,.22); }
.header-button.ghost { background: transparent; color: var(--ink); box-shadow: none; }
.menu-button { display: none; width: 40px; height: 40px; background: transparent; color: var(--ink); font-size: 25px; }

.page-width { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.hero { padding: 34px 0 18px; }
.hero-title { margin: 0; font-size: clamp(28px, 4vw, 46px); line-height: 1.13; letter-spacing: -.045em; }
.hero-copy { max-width: 640px; margin: 11px 0 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.quick-links { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 23px; }
.quick-link { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 0 15px; border: 1px solid transparent; border-radius: 11px; color: #fff; font-size: 13px; font-weight: 700; box-shadow: 0 9px 18px rgba(75, 20, 143, .12); }
.quick-link:nth-child(1) { background: #735de5; }
.quick-link:nth-child(2) { background: #e2a900; }
.quick-link:nth-child(3) { background: #7830d7; }
.quick-link:nth-child(4) { background: #4f9c8c; }
.quick-link:hover { transform: translateY(-1px); filter: saturate(1.08); }

.notice-row { display: flex; flex-wrap: wrap; gap: 9px; margin: 16px 0 17px; }
.notice { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: #56515d; font-size: 13px; }
.notice strong { color: var(--purple); }
.notice.purple { background: linear-gradient(115deg, #6d1cde, #8765f4); color: #fff; border-color: transparent; }
.notice.purple strong { color: #fff; }
.notice.blue { background: #6478eb; border-color: transparent; color: #fff; }
.notice.teal { background: #5aa898; border-color: transparent; color: #fff; }
.notice.cta { color: var(--purple); font-weight: 700; }
.notice.copyable { cursor: copy; }

.trust-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 12px; }
.trust-strip span { padding: 10px 12px; border: 1px solid #e6e1f2; border-radius: 10px; background: #fbf9ff; color: #6d6679; font-size: 11px; line-height: 1.45; }
.trust-strip strong { color: var(--purple); }

.category-bar { display: flex; gap: 9px; overflow-x: auto; padding: 3px 0 14px; scrollbar-width: thin; }
.category-button { flex: 0 0 auto; min-height: 40px; padding: 0 15px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: #66616d; font-size: 13px; font-weight: 700; transition: all .18s ease; }
.category-button:hover, .category-button.active { border-color: var(--purple); color: #fff; background: var(--purple); box-shadow: 0 7px 15px rgba(77,8,182,.18); }

.store-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 12px 0 15px; }
.store-head h2 { margin: 0; font-size: 23px; letter-spacing: -.03em; }
.store-head p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.store-head .stock-note { color: var(--green); font-size: 12px; font-weight: 700; }
.store-tools { display: flex; align-items: center; justify-content: flex-end; gap: 7px; flex-wrap: wrap; }
.search-box input { width: 230px; min-height: 36px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); outline: 0; font-size: 12px; }
.search-box input:focus { border-color: var(--purple); box-shadow: 0 0 0 3px var(--purple-soft); }
.search-button, .secondary-modal-button { min-height: 35px; padding: 0 12px; border-radius: 8px; background: var(--purple-soft); color: var(--purple); font-size: 11px; font-weight: 800; }
.empty-state { padding: 48px 20px; border: 1px dashed #d7cfee; border-radius: var(--radius-lg); background: #fcfbff; text-align: center; }
.empty-state strong { font-size: 16px; }
.empty-state p { margin: 7px 0 14px; color: var(--muted); font-size: 12px; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; align-items: stretch; }
.product-card { display: flex; min-height: 510px; flex-direction: column; padding: 20px; border: 1px solid rgba(228,226,232,.95); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.product-card:hover { box-shadow: 0 18px 40px rgba(46, 20, 76, .11); transform: translateY(-2px); transition: transform .18s ease, box-shadow .18s ease; }
.product-title { min-height: 50px; margin: 0; font-size: 17px; line-height: 1.35; letter-spacing: -.02em; }
.product-meta { display: flex; align-items: center; gap: 8px; margin-top: 11px; }
.price { color: var(--purple); font-size: 26px; font-weight: 900; letter-spacing: -.04em; }
.stock-pill { margin-left: auto; padding: 4px 8px; border: 1px solid #cfeadf; border-radius: 5px; background: #f0fbf5; color: var(--green); font-size: 11px; font-weight: 700; }
.share-button { width: 32px; height: 32px; border-radius: 9px; background: var(--surface-soft); color: #716d76; font-size: 15px; }
.sold { margin: 9px 0 12px; color: var(--green); font-size: 12px; font-weight: 700; }
.badges { min-height: 23px; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.badge { padding: 4px 7px; border-radius: 5px; background: var(--purple-soft); color: var(--purple); font-size: 10px; font-weight: 800; }
.description { min-height: 35px; margin: 0 0 11px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.spec-list { display: grid; gap: 8px; }
.spec-button { width: 100%; min-height: 39px; padding: 8px 11px; border-radius: 9px; background: var(--surface-soft); color: #37333d; font-size: 12px; line-height: 1.35; text-align: left; }
.spec-button:hover, .spec-button.active { background: #f1eaff; color: var(--purple); outline: 1.5px solid var(--purple); }
.spec-button span { color: #9a96a0; font-size: 10px; }
.card-spacer { flex: 1; }
.quantity-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; margin-top: 17px; color: var(--muted); font-size: 12px; }
.stepper { display: inline-flex; justify-self: start; align-items: center; border-radius: 9px; background: var(--surface-soft); overflow: hidden; }
.stepper button { width: 36px; height: 36px; background: transparent; color: var(--ink); font-weight: 800; }
.stepper button:disabled { color: #bbb7c0; cursor: not-allowed; }
.stepper-value { min-width: 30px; text-align: center; color: var(--ink); font-weight: 800; }
.total { justify-self: end; color: var(--muted); }
.total strong { color: var(--purple); font-size: 16px; }
.payment-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 14px; }
.payment-button { min-height: 35px; border-radius: 8px; background: var(--surface-soft); color: #6f6a74; font-size: 11px; font-weight: 700; }
.payment-button.active { background: #f7f0ff; color: var(--purple); outline: 1.5px solid var(--purple); }
.buy-button { width: 100%; min-height: 42px; margin-top: 9px; border-radius: 10px; background: var(--purple); color: #fff; font-size: 13px; font-weight: 800; box-shadow: 0 9px 18px rgba(77, 8, 182, .2); }
.buy-button:hover { background: #3c058f; }

.content-section { padding: 58px 0 4px; }
.content-card { padding: 23px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.content-card h2 { margin: 0; font-size: 22px; }
.content-card > p { margin: 7px 0 20px; color: var(--muted); line-height: 1.7; font-size: 13px; }
.legacy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.legacy-item { display: flex; flex-direction: column; min-height: 160px; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: #fcfcfd; }
.legacy-item h3 { margin: 0 0 7px; font-size: 15px; }
.legacy-item p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.legacy-item a { margin-top: auto; padding-top: 12px; color: var(--purple); font-size: 12px; font-weight: 700; }
.resource-list { display: flex; flex-wrap: wrap; gap: 7px; }
.resource-link { padding: 8px 10px; border-radius: 7px; background: var(--surface-soft); color: #5f5964; font-size: 11px; }
.resource-link:hover { color: var(--purple); background: var(--purple-soft); }

.tool-section { padding: 48px 0 6px; }
.tool-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; }
.tool-card { padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.tool-card h3 { margin: 0; font-size: 14px; }
.tool-card p { min-height: 38px; margin: 7px 0 12px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.tool-card button { width: 100%; min-height: 34px; border-radius: 8px; background: var(--purple-soft); color: var(--purple); font-size: 11px; font-weight: 800; }

.footer { margin-top: 58px; padding: 24px 0 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 14px; }
.footer a:hover { color: var(--purple); }
.floating-actions { position: fixed; right: 18px; bottom: 18px; z-index: 25; display: grid; gap: 8px; }
.float-button { width: 52px; height: 52px; border-radius: 18px; color: #fff; font-size: 11px; font-weight: 800; box-shadow: 0 10px 22px rgba(55, 25, 93, .19); }
.float-button.red { background: var(--red); }
.float-button.gray { background: #798394; }
.float-button.purple { background: var(--purple); font-size: 20px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 18px; background: rgba(26, 17, 39, .42); backdrop-filter: blur(5px); }
.modal { width: min(580px, 100%); max-height: min(720px, calc(100vh - 36px)); overflow: auto; padding: 24px; border-radius: 20px; background: var(--surface); box-shadow: 0 25px 80px rgba(30, 12, 52, .23); }
.modal.wide { width: min(760px, 100%); }
.modal-header { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.modal h2 { margin: 0; font-size: 22px; }
.modal-close { width: 34px; height: 34px; border-radius: 9px; background: var(--surface-soft); color: var(--muted); font-size: 18px; }
.modal-kicker { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.order-summary { margin-top: 18px; padding: 14px; border-radius: 12px; background: var(--surface-soft); }
.order-summary strong { display: block; margin-bottom: 6px; font-size: 15px; }
.order-line { display: flex; justify-content: space-between; gap: 20px; color: #625d68; font-size: 12px; line-height: 1.8; }
.modal-section { margin-top: 18px; }
.modal-section h3 { margin: 0 0 9px; font-size: 14px; }
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.method { min-height: 43px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: #6c6670; font-size: 12px; font-weight: 700; }
.method.active { border-color: var(--purple); color: var(--purple); background: var(--purple-soft); }
.modal-note { padding: 12px 13px; border-radius: 10px; background: #fff8e4; color: #7a6120; font-size: 12px; line-height: 1.6; }
.primary-modal-button { width: 100%; min-height: 45px; margin-top: 18px; border-radius: 10px; background: var(--purple); color: #fff; font-size: 14px; font-weight: 800; }
.form-stack { display: grid; gap: 12px; margin-top: 19px; }
.form-field { display: grid; gap: 6px; color: #625d68; font-size: 12px; font-weight: 700; }
.form-field input, .form-field textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fcfcfd; color: var(--ink); outline: 0; }
.form-field input:focus, .form-field textarea:focus { border-color: var(--purple); box-shadow: 0 0 0 3px var(--purple-soft); }
.delivery { margin-top: 18px; padding: 16px; border: 1px solid #cde8db; border-radius: 12px; background: #f4fcf7; }
.delivery h3 { margin: 0 0 7px; color: var(--green); font-size: 15px; }
.delivery-code { margin: 10px 0 0; padding: 10px; border-radius: 8px; background: #fff; color: #1e6e4e; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; word-break: break-all; }
.order-history { display: grid; gap: 9px; margin-top: 18px; }
.order-item { padding: 13px; border: 1px solid var(--line); border-radius: 11px; }
.order-item-top { display: flex; justify-content: space-between; gap: 15px; font-size: 13px; font-weight: 800; }
.order-item p { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.order-item-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.order-item-actions .secondary-modal-button { min-height: 31px; }

.form-field select { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fcfcfd; color: var(--ink); outline: 0; }

@media (max-width: 980px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .site-header { height: 60px; }
  .header-inner, .page-width { width: min(100% - 28px, 1180px); }
  .header-caption, .header-actions .header-button.ghost { display: none; }
  .menu-button { display: block; margin-left: auto; }
  .header-actions { margin-left: auto; }
  .hero { padding-top: 24px; }
  .hero-title { font-size: 31px; }
  .quick-links { display: grid; grid-template-columns: repeat(2, 1fr); }
  .quick-link { justify-content: center; padding: 0 8px; font-size: 11px; }
  .notice-row { display: grid; grid-template-columns: 1fr 1fr; }
  .notice { justify-content: center; padding: 0 7px; font-size: 11px; white-space: nowrap; overflow: hidden; }
  .notice.cta { grid-column: 1 / -1; }
  .store-head { align-items: start; flex-direction: column; gap: 3px; }
  .store-tools { width: 100%; justify-content: flex-start; }
  .search-box { flex: 1; }
  .search-box input { width: 100%; }
  .trust-strip { grid-template-columns: 1fr; gap: 7px; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card { min-height: 0; }
  .legacy-grid, .tool-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .floating-actions { right: 12px; bottom: 12px; }
  .float-button { width: 48px; height: 48px; border-radius: 16px; }
  .modal { padding: 20px; }
}
