@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfair.woff2') format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfair-italic.woff2') format('woff2');
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --surface-2: #f3efe9;
  --ink: #151413;
  --ink-2: #2b2926;
  --muted: #6d6860;
  --line: #e7e1d8;
  --accent: #b08d57;
  --accent-ink: #7f6235;
  --accent-soft: #f3eadb;
  --rose: #f4dfe1;
  --success: #2f7a4d;
  --success-soft: #e5f3ea;
  --danger: #b3261e;
  --danger-soft: #fbe9e7;
  --warn: #8a6100;
  --warn-soft: #fbf1d9;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20, 18, 15, .05), 0 8px 24px rgba(20, 18, 15, .06);
  --shadow-lg: 0 24px 60px rgba(20, 18, 15, .14);
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --container: 1200px;
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-ink); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.tiny { font-size: .78rem; }
.center { text-align: center; }
.hidden, [hidden] { display: none !important; }
.nowrap { white-space: nowrap; }
.approx { color: var(--muted); font-size: .82em; font-weight: 400; white-space: nowrap; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section-sm { padding: 40px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head p { margin: 0; color: var(--muted); max-width: 560px; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .74rem; color: var(--accent-ink); font-weight: 600; margin-bottom: 10px; display: block; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 245, .88);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-family: var(--serif); font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.logo svg { width: 22px; height: 22px; color: var(--accent); }
.logo em { font-style: italic; color: var(--accent-ink); font-weight: 600; }
.main-nav { display: flex; gap: 22px; align-items: center; flex: 1; }
.main-nav a { font-size: .95rem; color: var(--ink-2); padding: 6px 0; position: relative; }
.main-nav a.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--accent); border-radius: 2px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; font-size: .78rem; font-weight: 600; }
.lang-switch a { padding: 5px 10px; color: var(--muted); }
.lang-switch a.active { background: var(--ink); color: #fff; }
.icon-btn { position: relative; width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.icon-btn svg { width: 19px; height: 19px; }
.badge-dot { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--danger); color: #fff; font-size: .68rem; font-weight: 700; display: grid; place-items: center; padding: 0 5px; }
.menu-toggle { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; line-height: 1.2; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, opacity .2s;
  white-space: nowrap; user-select: none; -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.98); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; color: #fff; box-shadow: 0 8px 22px rgba(0, 0, 0, .18); }
.btn-gold { background: linear-gradient(135deg, #c9a46a, #a7824b); color: #fff; }
.btn-gold:hover { color: #fff; box-shadow: 0 10px 26px rgba(167, 130, 75, .35); }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-2); color: var(--ink); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: 8px 14px; font-size: .85rem; }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }
.btn.is-loading { pointer-events: none; color: transparent !important; position: relative; }
.btn.is-loading::after {
  content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .5); border-top-color: #fff; animation: spin .7s linear infinite;
}
.btn-ghost.is-loading::after, .btn-outline.is-loading::after { border-color: rgba(0, 0, 0, .2); border-top-color: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }

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

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card-flat { background: var(--surface-2); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-bottom: 8px; }

.category-chips { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.category-chips::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: .9rem; white-space: nowrap; cursor: pointer; transition: all .15s; }
.chip:hover { border-color: var(--ink-2); color: var(--ink); }
.chip.active, .chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip .count { font-size: .75rem; opacity: .6; }

.product-card { display: flex; flex-direction: column; gap: 12px; }
.product-card .thumb { position: relative; aspect-ratio: 5 / 6; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product-card:hover .thumb img { transform: scale(1.04); }
.product-card .meta { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.product-card .name { font-weight: 600; }
.product-card .price { font-weight: 600; white-space: nowrap; }
.product-card .sub { color: var(--muted); font-size: .85rem; }
.sample-badge { position: absolute; left: 10px; top: 10px; background: rgba(255, 255, 255, .9); color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; padding: 4px 8px; border-radius: 6px; font-weight: 600; }
.swatches { display: flex; gap: 6px; }
.swatch-dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .15); }

.steps { counter-reset: step; }
.step { position: relative; padding-top: 56px; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; top: 0; left: 0; font-family: var(--serif); font-size: 2.2rem; color: var(--accent); font-weight: 600; }
.step h3 { font-size: 1.1rem; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }

.cta-band { text-align: center; padding: 64px 24px; border-radius: 28px; background: linear-gradient(135deg, var(--accent-soft), var(--rose)); }
.cta-band p { color: var(--muted); max-width: 520px; margin: 0 auto 26px; }

.site-footer { background: #121110; color: rgba(255, 255, 255, .72); padding: 56px 0 28px; margin-top: 72px; font-size: .92rem; }
.site-footer .logo { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .82rem; color: rgba(255, 255, 255, .5); }

.page-head { padding: 40px 0 24px; }
.page-head p { color: var(--muted); max-width: 640px; }
.breadcrumbs { font-size: .85rem; color: var(--muted); margin-bottom: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumbs a:hover { color: var(--ink); }

.search-bar { display: flex; gap: 10px; margin: 18px 0 8px; }
.search-bar input { flex: 1; }

.product-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.gallery-main { position: relative; aspect-ratio: 5 / 6; border-radius: 22px; overflow: hidden; background: var(--surface-2); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.gallery-thumbs button { flex: none; width: 74px; aspect-ratio: 5 / 6; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--surface-2); cursor: pointer; }
.gallery-thumbs button.active { border-color: var(--ink); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-info { position: sticky; top: calc(var(--header-h) + 20px); }
.product-info .model { color: var(--muted); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
.price-big { font-size: 1.8rem; font-weight: 700; margin: 6px 0 4px; }
.price-note { color: var(--muted); font-size: .88rem; margin-bottom: 22px; }
.option-group { margin-bottom: 20px; }
.option-label { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; margin-bottom: 10px; display: flex; justify-content: space-between; }
.color-options { display: flex; gap: 10px; flex-wrap: wrap; }
.color-option { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0; transition: box-shadow .15s; }
.color-option.active, .color-option[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); }
.size-options { display: flex; gap: 8px; flex-wrap: wrap; }
.size-option { min-width: 48px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); text-align: center; font-size: .9rem; cursor: pointer; }
.size-option.active, .size-option[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.size-option.unavailable { opacity: .35; text-decoration: line-through; pointer-events: none; }
.spec-list { list-style: none; padding: 0; margin: 24px 0 0; border-top: 1px solid var(--line); }
.spec-list li { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.spec-list li span:first-child { color: var(--muted); }
.tier-table { width: 100%; border-collapse: collapse; font-size: .9rem; margin-top: 8px; }
.tier-table th, .tier-table td { text-align: left; padding: 8px 0; border-bottom: 1px solid var(--line); }
.tier-table th { color: var(--muted); font-weight: 500; }

.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label, .label { font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.field .hint { font-size: .8rem; color: var(--muted); }
.input, .select, .textarea, input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="search"], input[type="date"], select, textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface);
  outline: none; transition: border-color .15s, box-shadow .15s; font-size: 16px; min-height: 46px;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--ink-2); box-shadow: 0 0 0 3px rgba(176, 141, 87, .18); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.checkbox { display: flex; gap: 10px; align-items: center; font-size: .92rem; cursor: pointer; }
.checkbox input { width: 18px; height: 18px; min-height: 0; accent-color: var(--ink); }

.alert { padding: 14px 16px; border-radius: var(--radius-sm); font-size: .93rem; display: flex; gap: 10px; align-items: flex-start; }
.alert svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.alert-error { background: var(--danger-soft); color: var(--danger); }
.alert-success { background: var(--success-soft); color: var(--success); }
.alert-info { background: var(--accent-soft); color: var(--accent-ink); }
.alert-warn { background: var(--warn-soft); color: var(--warn); }
.flash-stack { display: grid; gap: 10px; margin: 18px 0; }

.demo-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--warn-soft); color: var(--warn); font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 4px 9px; border-radius: 6px; }

.auth-wrap { max-width: 460px; margin: 48px auto; }
.auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 36px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 2rem; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .82rem; margin: 6px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.btn-google { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.btn-google svg { width: 18px; height: 18px; }

.account-layout { display: grid; grid-template-columns: 240px 1fr; gap: 36px; align-items: start; padding: 32px 0; }
.account-nav { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 4px; }
.account-nav a { padding: 10px 14px; border-radius: 10px; color: var(--ink-2); font-size: .94rem; display: flex; justify-content: space-between; }
.account-nav a.active { background: var(--surface); box-shadow: var(--shadow); font-weight: 600; }
.account-nav form button { width: 100%; text-align: left; padding: 10px 14px; border: 0; background: none; cursor: pointer; color: var(--muted); font-size: .94rem; }
.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.stat .k { color: var(--muted); font-size: .82rem; }
.stat .v { font-size: 1.4rem; font-weight: 700; margin-top: 4px; }

.list { display: grid; gap: 12px; }
.list-item { display: flex; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; transition: border-color .15s; }
.list-item:hover { border-color: #d8d0c4; }
.list-item .thumb { width: 72px; height: 72px; border-radius: 12px; overflow: hidden; flex: none; background: var(--surface-2); }
.list-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.list-item .thumb.dark { background: #1d1c1b; display: grid; place-items: center; padding: 6px; }
.list-item .thumb.dark img { object-fit: contain; }
.list-item .body { flex: 1; min-width: 0; }
.list-item .title { font-weight: 600; }
.list-item .sub { color: var(--muted); font-size: .86rem; }
.list-item .end { text-align: right; white-space: nowrap; }

.status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-new, .status-confirming, .status-queued, .status-pending, .status-awaiting_payment, .status-unpaid { background: var(--warn-soft); color: var(--warn); }
.status-accepted, .status-in_production, .status-ready, .status-running { background: #e8eefb; color: #2a4fa3; }
.status-shipped { background: #efe7fb; color: #6a3fb0; }
.status-delivered, .status-done, .status-paid, .status-succeeded { background: var(--success-soft); color: var(--success); }
.status-cancelled, .status-failed, .status-refunded { background: var(--danger-soft); color: var(--danger); }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 22px 32px; }
.timeline li::before { content: ''; position: absolute; left: 7px; top: 18px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ''; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line); }
.timeline li.done::after { background: var(--ink); border-color: var(--ink); }
.timeline li.current::after { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.timeline li.cancel::after { background: var(--danger); border-color: var(--danger); }
.timeline .when { color: var(--muted); font-size: .82rem; }

.summary-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.summary-table td { padding: 9px 0; border-bottom: 1px dashed var(--line); }
.summary-table td:last-child { text-align: right; font-weight: 600; white-space: nowrap; }
.summary-table tr.total td { border-bottom: 0; border-top: 2px solid var(--ink); font-size: 1.15rem; padding-top: 14px; }

.design-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.design-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.design-tile .art { background: #1d1c1b; aspect-ratio: 1; display: grid; place-items: center; padding: 14px; }
.design-tile .art img { max-height: 100%; object-fit: contain; }
.design-tile .info { padding: 12px 14px; display: grid; gap: 8px; }
.design-tile .info .t { font-weight: 600; font-size: .92rem; }
.design-tile .actions { display: flex; gap: 6px; flex-wrap: wrap; }

.empty { text-align: center; padding: 56px 20px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.empty h3 { color: var(--ink); }

.verify-box { display: grid; gap: 14px; }
.verify-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.toast-stack { position: fixed; z-index: 200; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 10px; width: min(92vw, 420px); pointer-events: none; }
.toast { background: var(--ink); color: #fff; border-radius: 14px; padding: 13px 16px; box-shadow: var(--shadow-lg); font-size: .92rem; animation: toast-in .25s ease; pointer-events: auto; }
.toast.error { background: var(--danger); }
.toast.success { background: var(--success); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.modal { position: fixed; inset: 0; z-index: 150; background: rgba(15, 14, 13, .72); display: grid; place-items: center; padding: 20px; animation: fade .2s ease; }
.modal-card { background: var(--surface); border-radius: 22px; max-width: 760px; width: 100%; max-height: 90vh; overflow: auto; position: relative; }
.modal-close { position: absolute; top: 12px; right: 12px; z-index: 2; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.error-page { text-align: center; padding: 96px 20px; }
.error-page .code { font-family: var(--serif); font-size: 5rem; color: var(--accent); line-height: 1; }

.home-hero { padding: 48px 0 8px; text-align: center; }
.home-hero h1 { max-width: 760px; margin: 0 auto 24px; }
.home-title { font-size: clamp(1.4rem, 2.4vw, 2rem); margin: 0; }
.home-title + .works-grid { margin-top: 20px; }
.home-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }

.works-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.work-tile { display: block; aspect-ratio: 5 / 6; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.work-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.work-tile:hover img { transform: scale(1.04); }

.home-steps { display: flex; align-items: center; justify-content: center; gap: 16px; }
.home-step { flex: 1; min-width: 0; max-width: 260px; text-align: center; }
.home-step .pic { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); margin-bottom: 12px; }
.home-step .pic img { width: 100%; height: 100%; object-fit: cover; }
.home-step.is-design .pic { background: #1d1c1b; display: grid; place-items: center; padding: 18%; }
.home-step.is-design .pic img { object-fit: contain; }
.home-step span { font-weight: 600; font-size: 1.05rem; display: inline-flex; gap: 8px; align-items: center; }
.home-step b { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font-size: .8rem; display: grid; place-items: center; flex: none; }
.home-step-arrow { color: var(--accent); flex: none; margin-bottom: 38px; }
.home-step-arrow svg { width: 26px; height: 26px; display: block; }

.templates-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; }
.template-tile { aspect-ratio: 1; border-radius: var(--radius-sm); background: #1d1c1b; display: grid; place-items: center; padding: 16%; transition: transform .2s; }
.template-tile:hover { transform: translateY(-3px); }
.template-tile img { max-height: 100%; object-fit: contain; }

.home-ai { background: var(--ink); color: #fff; border-radius: 24px; padding: 32px 40px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.home-ai h2 { color: #fff; margin-bottom: 10px; }
.home-ai-pill { display: inline-block; background: rgba(201, 164, 106, .16); color: #e7c995; padding: 6px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600; }

@media (max-width: 860px) {
  .home-hero { padding: 28px 0 0; }
  .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .templates-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
  .home-ai { padding: 26px 22px; }
}
@media (max-width: 560px) {
  .home-steps { gap: 6px; }
  .home-step span { font-size: .9rem; gap: 6px; }
  .home-step b { width: 22px; height: 22px; font-size: .72rem; }
  .home-step-arrow { margin-bottom: 32px; }
  .home-step-arrow svg { width: 18px; height: 18px; }
  .home-ai .btn { width: 100%; }
  .product-card .meta { flex-direction: column; gap: 2px; }
}

.skeleton { background: linear-gradient(90deg, #eee9e2 25%, #f6f2ec 37%, #eee9e2 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: 12px; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  :root { --header-h: 60px; }
  .menu-toggle { display: inline-grid; }
  .main-nav { position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 20px; transform: translateY(-120%); transition: transform .25s ease; z-index: -1; }
  .main-nav.open { transform: none; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .main-nav a.active::after { display: none; }
  .header-inner { gap: 12px; justify-content: space-between; }
  .header-actions .hide-mobile { display: none; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding: 52px 0; }
  .product-info { position: static; }
  .account-nav { position: static; display: flex; overflow-x: auto; gap: 6px; padding-bottom: 6px; }
  .account-nav a { white-space: nowrap; background: var(--surface); border: 1px solid var(--line); }
  .account-nav form { display: none; }
  .account-layout { padding: 20px 0; gap: 20px; }
  .stat-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .grid-2, .form-row { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; gap: 14px; }
  .grid-4 { grid-template-columns: 1fr 1fr; gap: 14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .auth-card { padding: 26px 20px; border-radius: 20px; }
  .list-item { flex-wrap: wrap; }
  .list-item .end { text-align: left; width: 100%; display: flex; justify-content: space-between; align-items: center; }
  .btn-lg { padding: 15px 24px; }
  .stat-row { grid-template-columns: 1fr; }
}
.footer-about { margin-top: 12px; }

.account-main { min-width: 0; }
.account-head { margin-bottom: 22px; }
.account-head h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.account-head.section-head { align-items: flex-start; }
.account-head p { margin: 0; }
.account-section { margin-bottom: 24px; }
.account-section .section-head { margin-bottom: 14px; }
.account-section .section-head h2 { font-size: 1.4rem; margin: 0; }
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 32px; }
.account-logout { margin-top: 8px; }
.nav-count { min-width: 20px; height: 20px; border-radius: 10px; background: var(--danger); color: #fff; font-size: .72rem; font-weight: 700; display: inline-grid; place-items: center; padding: 0 6px; }
.auth-switch { margin: 6px 0 0; }
.quote-card, .verify-card { display: grid; gap: 10px; align-content: start; }
.quote-card p, .verify-card p { margin: 0; }
.quote-card .btn { justify-self: start; }
.quote-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.quote-head h3 { margin: 0; }
.verify-step { display: grid; gap: 12px; }
.verify-steps { margin: 0; padding-left: 20px; display: grid; gap: 4px; color: var(--ink-2); }
.text-error { color: var(--danger) !important; }
.text-success { color: var(--success) !important; }
.status-pair { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.order-row-total { font-weight: 700; margin-bottom: 6px; }
.note-item.is-unread { border-color: var(--accent); background: #fffdf9; }
.note-item .end { align-self: flex-start; }
.gen-card { display: grid; gap: 10px; padding: 18px; }
.gen-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.gen-prompt { font-weight: 600; overflow-wrap: anywhere; }
.gen-variants { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.gen-variant { aspect-ratio: 1; background: #1d1c1b; border-radius: 12px; display: grid; place-items: center; padding: 8px; overflow: hidden; }
.gen-variant img { max-height: 100%; object-fit: contain; }
.pay-card { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; background: var(--accent-soft); border-color: transparent; }
.pay-card h3 { margin-bottom: 4px; }
.pay-card p { margin: 0; }
.order-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.order-side { position: sticky; top: calc(var(--header-h) + 20px); }
.order-item { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 18px; }
.order-item + .order-item { border-top: 1px solid var(--line); padding-top: 16px; }
.order-item-images { display: grid; gap: 10px; align-content: start; }
.order-item-preview { border-radius: 12px; overflow: hidden; background: var(--surface-2); display: block; }
.order-item-preview img { width: 100%; height: auto; }
.order-item-design { background: #1d1c1b; border-radius: 12px; padding: 10px; display: grid; place-items: center; aspect-ratio: 2 / 1; }
.order-item-design img { max-height: 100%; object-fit: contain; }
.order-item-body .title { font-weight: 600; }
.order-specs { margin-top: 10px; }
.order-specs li { padding: 9px 0; }
.color-cell { display: inline-flex; align-items: center; gap: 8px; }
.text-end { text-align: right; }
.tracking-number { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; }
.order-comment { margin: 14px 0 0; }
.pay-return { text-align: center; display: grid; gap: 14px; }
.pay-return h1 { margin: 0; }
.pay-return p { margin: 0; }
.pay-return .summary-table { text-align: left; }
.pay-return-icon { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); }
.pay-return-icon svg { width: 30px; height: 30px; }
.pay-return-success .pay-return-icon { background: var(--success-soft); color: var(--success); }
.pay-return-failed .pay-return-icon, .pay-return-cancelled .pay-return-icon { background: var(--warn-soft); color: var(--warn); }
.pay-return-actions { display: grid; gap: 10px; margin-top: 6px; }
@media (max-width: 1024px) {
  .order-layout { grid-template-columns: 1fr; }
  .order-side { position: static; }
}
@media (max-width: 860px) {
  .account-nav a .nav-count { margin-left: 8px; }
}
@media (max-width: 560px) {
  .account-grid { grid-template-columns: 1fr; }
  .order-item { grid-template-columns: 1fr; }
  .gen-variants { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pay-card .btn { width: 100%; }
  .status-pair { justify-content: flex-start; }
}
