﻿:root {
  --bg: #f7f3ec;
  --bg-alt: #efe8dc;
  --card: #fffdf9;
  --ink: #2b2622;
  --ink-2: #5d544b;
  --muted: #968b7f;
  --line: #e4dbcd;
  --primary: #a8402b;
  --primary-d: #8c3321;
  --gold: #b8925a;
  --ok: #2f7d5b;
  --err: #c0392b;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(70, 45, 20, .25);
  --serif: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --sans: 'Inter', -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
h1, h2, h3, b, .price, .hero-stats, .craft-steps { font-variant-numeric: lining-nums; }
body { font-family: var(--sans); background: var(--bg); color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased; }
body.no-scroll, body.cart-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
svg { display: block; }
[hidden] { display: none !important; }

.container { width: min(1200px, 100% - 40px); margin: 0 auto; }
.container.narrow { width: min(820px, 100% - 40px); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.grow { flex: 1; min-width: 0; }
.red { color: var(--primary); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 42px; padding: 0 22px; border-radius: 999px; font-size: 15px; font-weight: 500; transition: .2s; white-space: nowrap; }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px -6px rgba(168, 64, 43, .6); }
.btn-primary:hover:not(:disabled) { background: var(--primary-d); transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-lg { height: 50px; padding: 0 30px; font-size: 16px; }
.btn-sm { height: 34px; padding: 0 16px; font-size: 13px; }
.btn-block { width: 100%; }
.link-btn { color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--primary); }
.close-btn { width: 36px; height: 36px; border-radius: 50%; font-size: 26px; line-height: 1; color: var(--ink-2); }
.close-btn:hover { background: var(--bg-alt); }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(247, 243, 236, .85); backdrop-filter: blur(12px); transition: .2s; }
.header.scrolled { box-shadow: 0 1px 0 var(--line); }
.header-inner { display: flex; align-items: center; height: 68px; gap: 32px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 38px; height: 38px; border-radius: 10px; background: var(--primary); color: #fff; display: grid; place-items: center; font-family: 'Songti SC', 'STSong', 'SimSun', serif; font-size: 22px; font-weight: 700; }
.logo-text { font-family: var(--serif); font-size: 25px; letter-spacing: .5px; font-weight: 700; line-height: 1.1; display: flex; flex-direction: column; }
.logo-text small { font-family: var(--sans); font-size: 9px; letter-spacing: 2px; color: var(--muted); font-weight: 400; }
.nav { display: flex; gap: 28px; font-size: 15px; color: var(--ink-2); }
.nav a:hover { color: var(--primary); }
.header-actions { margin-left: auto; display: flex; gap: 8px; }
.icon-btn { position: relative; display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px; font-size: 14px; }
.icon-btn:hover { background: var(--bg-alt); }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.badge { position: absolute; top: 2px; left: 26px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--primary); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }

/* ---------- Hero ---------- */
.hero { overflow: hidden; background: radial-gradient(ellipse at 75% 40%, #f3e2cf 0%, transparent 60%); }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px; min-height: 620px; padding: 40px 0 60px; }
.eyebrow { color: var(--gold); letter-spacing: 3px; font-size: 14px; margin-bottom: 18px; }
.hero h1 { font-family: var(--serif); font-size: clamp(50px, 6.5vw, 86px); line-height: 1.02; font-weight: 600; letter-spacing: -.5px; margin-bottom: 22px; }
.hero-sub { color: var(--ink-2); font-size: 17px; margin-bottom: 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { list-style: none; display: flex; gap: 40px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.hero-stats b { display: block; font-family: var(--serif); font-size: 34px; font-weight: 700; color: var(--primary); }
.hero-stats span { font-size: 13px; color: var(--muted); }
.hero-visual { position: relative; display: grid; place-items: center; }
.hero-ring { width: min(460px, 90%); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, #fffaf2 0%, #f1e4d2 70%); box-shadow: inset 0 0 60px rgba(184, 146, 90, .25); }
.hero-ring svg { width: 92%; height: auto; }
.hero-tag { position: absolute; background: var(--card); padding: 10px 16px; border-radius: 999px; font-size: 13px; box-shadow: var(--shadow); animation: float 4s ease-in-out infinite; }
.hero-tag-1 { top: 12%; left: 0; }
.hero-tag-2 { bottom: 14%; right: 0; animation-delay: -2s; }
@keyframes float { 50% { transform: translateY(-10px); } }
.bracelet.spin { animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Promise ---------- */
.promise { background: var(--ink); color: #f1e9dc; }
.promise-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 26px 0; }
.promise-grid div { display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; align-items: center; }
.promise-grid i { grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold); display: grid; place-items: center; font-style: normal; }
.promise-grid i svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.promise-grid span { font-size: 12px; color: #a99d8c; }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head.left { text-align: left; margin-bottom: 24px; }
.section-head h2 { font-family: var(--serif); font-size: 44px; font-weight: 600; line-height: 1.15; }
.section-head p { color: var(--muted); margin-top: 6px; }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .tabs { margin-bottom: 0; }
.tab { height: 36px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 14px; color: var(--ink-2); transition: .2s; }
.tab:hover { border-color: var(--ink); }
.tab.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.select, .input { height: 42px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); font: inherit; font-size: 14px; color: var(--ink); outline: none; transition: .2s; width: 100%; }
.select { width: auto; }
.input:focus, .select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(184, 146, 90, .18); }
.input.invalid { border-color: var(--err); box-shadow: 0 0 0 3px rgba(192, 57, 43, .12); }

/* ---------- Product cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: .25s; border: 1px solid transparent; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line); }
.card-media { position: relative; aspect-ratio: 1; display: grid; place-items: center; background: radial-gradient(circle, #fff 0%, #f3ece1 75%); }
.card-media svg { width: 78%; height: auto; transition: transform .6s; }
.card:hover .card-media svg { transform: rotate(20deg) scale(1.04); }
.tag { position: absolute; top: 12px; left: 12px; padding: 2px 10px; border-radius: 4px; background: var(--primary); color: #fff; font-size: 12px; }
.tag + .tag { left: auto; right: 12px; background: var(--gold); }
.tag.static { position: static; display: inline-block; margin-right: 6px; }
.card-body { padding: 16px 18px 18px; }
.card-body h3 { font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.2; margin-bottom: 4px; }
.meaning { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 12px; }
.meaning span { font-size: 12px; padding: 1px 8px; border-radius: 4px; background: var(--bg-alt); color: var(--ink-2); }
.card-foot { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.card-foot s { margin-left: 6px; }
.price { color: var(--primary); font-weight: 700; font-size: 18px; }
.price.lg { font-size: 22px; }
.price.xl { font-size: 28px; }
.price.xxl { font-size: 36px; }

/* ---------- Craft ---------- */
.craft-steps { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; counter-reset: s; }
.craft-steps li { position: relative; background: var(--card); padding: 26px 18px; border-radius: var(--radius); }
.craft-steps span { font-family: var(--serif); font-size: 30px; color: var(--gold); opacity: .7; }
.craft-steps b { display: block; font-size: 22px; font-weight: 600; margin: 6px 0 8px; font-family: var(--serif); }
.craft-steps p { font-size: 13px; color: var(--ink-2); }

/* ---------- Size guide ---------- */
.size-guide { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.guide-list { padding-left: 20px; display: grid; gap: 12px; color: var(--ink-2); }
.guide-list b { color: var(--primary); }
.size-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.size-table th, .size-table td { padding: 14px; text-align: center; border-bottom: 1px solid var(--line); }
.size-table th { background: var(--ink); color: #f1e9dc; font-weight: 500; }
.size-table tr:last-child td { border-bottom: 0; }

/* ---------- FAQ ---------- */
details { background: var(--card); border-radius: 12px; margin-bottom: 12px; padding: 0 22px; }
summary { cursor: pointer; padding: 18px 0; font-weight: 500; list-style: none; display: flex; justify-content: space-between; }
summary::after { content: '+'; font-size: 20px; color: var(--gold); transition: .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding-bottom: 18px; color: var(--ink-2); font-size: 14px; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #d9cfbf; padding: 56px 0 24px; margin-top: 0; }
.footer .logo-text small { color: #8d8274; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-inner > div > p { margin-top: 12px; }
.footer-links { display: flex; gap: 60px; }
.footer-links div { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.footer-links b { color: #fff; margin-bottom: 4px; }
.footer-links a:hover { color: #fff; }
.copyright { margin-top: 40px; padding-top: 20px; border-top: 1px solid #443c35; font-size: 12px; color: #8d8274; }

/* ---------- Cart drawer ---------- */
.drawer-mask { position: fixed; inset: 0; background: rgba(30, 22, 15, .4); opacity: 0; pointer-events: none; transition: .3s; z-index: 80; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--bg); z-index: 81; transform: translateX(100%); transition: .35s cubic-bezier(.2, .8, .2, 1); display: flex; flex-direction: column; }
.cart-open .drawer-mask { opacity: 1; pointer-events: auto; }
.cart-open .drawer { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-family: var(--serif); font-size: 26px; font-weight: 600; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 22px; }
.drawer-foot { padding: 18px 22px 24px; border-top: 1px solid var(--line); background: var(--card); }
.drawer-foot:empty { display: none; }
.cart-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.thumb { flex: none; border-radius: 10px; background: radial-gradient(circle, #fff, #f1e8db); padding: 4px; }
.cart-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cart-row { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.qty button { width: 28px; height: 28px; font-size: 16px; color: var(--ink-2); }
.qty span { min-width: 26px; text-align: center; font-size: 14px; }
.qty.lg button { width: 38px; height: 38px; }
.qty.lg span { min-width: 36px; }
.free-tip { font-size: 13px; color: var(--ink-2); background: #f7ead9; padding: 8px 12px; border-radius: 8px; margin-bottom: 12px; }
.free-tip.ok { background: #e3f1e9; color: var(--ok); }
.free-tip b { color: var(--primary); }
.sum-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); display: grid; gap: 16px; justify-items: center; }

/* ---------- Product modal ---------- */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; }
.modal-mask { position: absolute; inset: 0; background: rgba(30, 22, 15, .5); animation: fade .25s; }
.modal-panel { position: relative; background: var(--bg); border-radius: 20px; width: min(1000px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; animation: pop .3s cubic-bezier(.2, .8, .2, 1); }
.modal-close { position: absolute; top: 14px; right: 14px; z-index: 2; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.98); } }
.detail { display: grid; grid-template-columns: 1fr 1fr; }
.detail-media { background: radial-gradient(circle, #fff 0%, #efe4d4 80%); padding: 40px 30px; display: grid; align-content: center; justify-items: center; gap: 16px; border-radius: 20px 0 0 20px; }
.detail-media svg { width: 100%; max-width: 360px; height: auto; }
.detail-info { padding: 36px 36px 30px; }
.detail-info h2 { font-family: var(--serif); font-size: 34px; font-weight: 600; line-height: 1.15; margin: 8px 0 4px; }
.rating { color: var(--gold); font-size: 14px; }
.detail-price { display: flex; align-items: baseline; gap: 10px; margin: 12px 0; }
.desc { color: var(--ink-2); font-size: 14px; margin-bottom: 14px; }
.attrs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; background: var(--card); border-radius: 12px; padding: 12px 14px; margin-bottom: 18px; }
.attrs dt { font-size: 12px; color: var(--muted); }
.attrs dd { font-size: 13px; }
.opt { margin-bottom: 16px; display: grid; gap: 8px; }
.opt > label:first-child { font-size: 14px; font-weight: 600; }
.opt-row { grid-template-columns: auto 1fr; align-items: center; gap: 16px; }
.opt-row .qty { justify-self: start; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); font-size: 14px; transition: .15s; }
.chip small { color: var(--primary); }
.chip:hover { border-color: var(--ink-2); }
.chip.active { border-color: var(--primary); color: var(--primary); background: #fbeee9; box-shadow: inset 0 0 0 1px var(--primary); }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.check input { accent-color: var(--primary); width: 16px; height: 16px; }
.detail-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.assure { list-style: none; display: flex; gap: 16px; flex-wrap: wrap; margin-top: 16px; font-size: 12px; color: var(--muted); }
.assure li::before { content: '✓ '; color: var(--ok); }

/* ---------- Checkout / order pages ---------- */
.page-view { padding: 36px 0 80px; min-height: 70vh; }
.page-loading, .page-error { text-align: center; padding: 120px 0; color: var(--muted); display: grid; gap: 16px; justify-items: center; }
.page-error h2 { color: var(--ink); font-family: var(--serif); }
.panel { background: var(--card); border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.panel + .panel { margin-top: 20px; }
.panel h3 { font-family: var(--serif); font-size: 23px; font-weight: 600; margin-bottom: 16px; }
.sticky { position: sticky; top: 88px; }

.steps { list-style: none; display: flex; justify-content: center; gap: 0; margin: 0 auto 32px; max-width: 560px; }
.steps li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); position: relative; }
.steps li::before { content: ''; position: absolute; top: 15px; left: -50%; right: 50%; height: 2px; background: var(--line); z-index: 0; }
.steps li:first-child::before { display: none; }
.steps span { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--line); color: #fff; font-weight: 600; z-index: 1; }
.steps li.active, .steps li.done { color: var(--ink); }
.steps li.active span { background: var(--primary); box-shadow: 0 0 0 5px rgba(168, 64, 43, .15); }
.steps li.done span { background: var(--ok); }
.steps li.done::before, .steps li.active::before { background: var(--ok); }

.checkout, .pay { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start; }
.checkout-side .panel, .pay-side { display: grid; gap: 14px; }
.checkout-side h3, .pay-side h3 { margin-bottom: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.field { display: grid; gap: 6px; font-size: 13px; color: var(--ink-2); }
.field.full { grid-column: 1 / -1; }
.radio-list { display: grid; gap: 10px; margin-bottom: 18px; }
.radio-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; transition: .15s; }
.radio-card:has(input:checked) { border-color: var(--primary); background: #fdf3ef; }
.radio-card input { accent-color: var(--primary); width: 18px; height: 18px; flex: none; }
.radio-card > div { flex: 1; display: flex; flex-direction: column; }
.order-items { display: grid; gap: 4px; }
.order-item { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.order-item:last-child { border-bottom: 0; }
.order-item .grow { display: flex; flex-direction: column; }
.order-items.compact .order-item { gap: 10px; padding: 6px 0; }
.coupon-row { display: flex; gap: 8px; }
.coupon-row .btn { height: 42px; flex: none; }
.coupon-hint { margin-top: -6px; }
.msg { font-size: 13px; padding: 6px 10px; border-radius: 8px; }
.msg.ok { background: #e3f1e9; color: var(--ok); }
.msg.err { background: #fbe7e4; color: var(--err); }
.summary { display: grid; gap: 8px; font-size: 14px; }
.summary div { display: flex; justify-content: space-between; gap: 16px; }
.summary dt { color: var(--muted); flex: none; }
.summary dd { text-align: right; }
.summary .total { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; align-items: baseline; }
.summary .total dt { color: var(--ink); font-weight: 600; }
.summary.kv { margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }

/* ---------- Payment ---------- */
.pay-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding-bottom: 20px; margin-bottom: 22px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.pay-main .msg { margin-bottom: 18px; }
.pay-badges { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.pay-badges i { font-style: normal; font-size: 11px; font-weight: 700; padding: 3px 7px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--ink-2); letter-spacing: .3px; }
.secure-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; font-size: 12px; color: var(--muted); }
.secure-note svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; margin-top: 1px; }
.spinner { width: 48px; height: 48px; margin: 0 auto 16px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--primary); animation: spin 1s linear infinite; }
.ok-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 34px; color: #fff; font-weight: 700; background: var(--ok); margin: 0 auto 12px; }
.addr-box { background: var(--bg); padding: 12px 14px; border-radius: 10px; }

/* ---------- Orders ---------- */
.success { text-align: center; padding: 40px 24px; margin-bottom: 20px; }
.success h2 { font-family: var(--serif); font-size: 36px; font-weight: 600; margin-bottom: 6px; }
.success-actions { display: flex; gap: 12px; justify-content: center; margin-top: 22px; }
.order-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.order-head h2 { font-family: var(--serif); font-size: 28px; font-weight: 600; word-break: break-all; }
.status { color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); padding: 4px 12px; border-radius: 999px; font-size: 13px; white-space: nowrap; }
.timeline { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); margin-bottom: 8px; }
.timeline li { position: relative; padding-top: 26px; display: flex; flex-direction: column; font-size: 14px; color: var(--muted); padding-right: 10px; }
.timeline li::before { content: ''; position: absolute; top: 5px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--line); z-index: 1; }
.timeline li::after { content: ''; position: absolute; top: 10px; left: 12px; right: 0; height: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li.done { color: var(--ink); }
.timeline li.done::before { background: var(--ok); box-shadow: 0 0 0 4px rgba(47, 125, 91, .15); }
.timeline li.done::after { background: var(--ok); }
.order-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.order-actions:empty { display: none; }
.panel > .order-actions { margin-top: 18px; }
.order-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; align-items: start; }
.order-grid .panel + .panel { margin-top: 0; }
.order-card-head, .order-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.order-card-head { padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.order-card-foot { padding-top: 12px; border-top: 1px solid var(--line); margin-top: 6px; }
.order-card .order-items:hover { opacity: .85; }
#ordersList .panel + .panel { margin-top: 16px; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; top: 84px; transform: translate(-50%, -20px); background: var(--ink); color: #fff; padding: 10px 20px; border-radius: 999px; font-size: 14px; opacity: 0; pointer-events: none; transition: .25s; z-index: 200; max-width: calc(100% - 40px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.ok { background: var(--ok); }
.toast.err { background: var(--err); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .craft-steps { grid-template-columns: repeat(3, 1fr); }
  .checkout, .pay { grid-template-columns: 1fr; }
  .sticky { position: static; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .hero-inner { grid-template-columns: 1fr; min-height: auto; text-align: center; padding-top: 30px; }
  .hero-cta, .hero-stats { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-tag { display: none; }
  .promise-grid { grid-template-columns: repeat(2, 1fr); }
  .size-guide, .order-grid { grid-template-columns: 1fr; gap: 24px; }
  .detail { grid-template-columns: 1fr; }
  .detail-media { border-radius: 20px 20px 0 0; padding: 30px 20px 16px; }
  .detail-media svg { max-width: 240px; }
  .detail-info { padding: 22px; }
  .timeline { grid-template-columns: 1fr; gap: 14px; }
  .timeline li { padding: 0 0 0 26px; }
  .timeline li::before { top: 5px; }
  .timeline li::after { top: 17px; left: 5px; right: auto; width: 2px; height: calc(100% + 2px); }
  .footer-links { gap: 32px; flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .container { width: calc(100% - 28px); }
  .hide-sm { display: none; }
  .icon-btn { padding: 0 10px; }
  .badge { left: 22px; }
  .section { padding: 60px 0; }
  .section-head h2 { font-size: 34px; }
  .lookup { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; }
  .hero-stats b { font-size: 22px; }
  .craft-steps { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-body { padding: 12px; }
  .card-body h3 { font-size: 15px; }
  .card-foot { flex-direction: column; gap: 2px; }
  .form-grid { grid-template-columns: 1fr; }
  .modal { padding: 0; align-items: end; }
  .modal-panel { border-radius: 20px 20px 0 0; max-height: 92vh; }
  .attrs { grid-template-columns: 1fr 1fr; }
  .panel { padding: 18px; }
}

/* ---------- Order lookup ---------- */
.lookup { display: grid; grid-template-columns: auto 1fr 1fr auto; gap: 12px; align-items: center; margin-bottom: 20px; }
.link { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.chip small.muted { color: var(--muted); margin-left: 2px; }
