:root {
  --ink: #1c1917;
  --ink-soft: #57534e;
  --paper: #faf9f7;
  --card: #ffffff;
  --line: #e7e5e4;
  --accent: #d97706;
  --accent-soft: #fef3c7;
  --accent-dark: #b45309;
  --danger: #dc2626;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(28, 25, 23, .08);
  --shadow-lg: 0 20px 50px rgba(28, 25, 23, .16);
  --header-h: 60px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5rem; }
h1 { font-size: clamp(2rem, 7vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 4.5vw, 2rem); }
p { margin: 0 0 .75rem; }
a { color: var(--accent-dark); }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
input, textarea { font: inherit; }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 18px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  height: var(--header-h);
  background: var(--ink);
  color: #fff;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.brand { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.3rem; }
.brand-mark { width: 30px; height: 30px; }
.brand-accent { color: #f59e0b; }
.cart-btn {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.08); color: #fff;
  border: 1px solid rgba(255,255,255,.15); border-radius: 999px;
  padding: 8px 14px; font-weight: 600;
}
.cart-btn svg { width: 20px; height: 20px; }
.cart-label { display: none; }
@media (min-width: 480px) { .cart-label { display: inline; } }
.badge {
  min-width: 20px; height: 20px; padding: 0 6px;
  background: var(--accent); color: #fff;
  border-radius: 999px; font-size: .78rem;
  display: inline-flex; align-items: center; justify-content: center;
}

/* Hero */
.hero { background: var(--ink); color: #fff; padding: 56px 0 64px; }
.hero-inner { display: grid; gap: 36px; align-items: center; }
@media (min-width: 840px) { .hero-inner { grid-template-columns: 1.2fr .8fr; } }
.eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-size: .78rem;
  color: #f59e0b; font-weight: 600; margin-bottom: 14px;
}
.hero .sub { color: #d6d3d1; font-size: 1.08rem; max-width: 44ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero-art svg { width: 100%; max-width: 300px; margin: 0 auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: 999px; padding: 13px 22px;
  font-weight: 600; font-size: 1rem; text-decoration: none; transition: transform .12s, box-shadow .12s, background .12s;
}
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(217,119,6,.35); }
.btn.primary:hover { background: var(--accent-dark); }
.btn.primary:disabled { background: #a8a29e; box-shadow: none; cursor: not-allowed; }
.btn.ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.3); }
.btn.ghost:hover { background: rgba(255,255,255,.08); }
.btn.small { padding: 9px 14px; font-size: .9rem; }
.btn.block { width: 100%; }

/* Sections */
section { padding: 52px 0; }
.how .steps {
  list-style: none; margin: 8px 0 0; padding: 0;
  display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-dark); font-weight: 700; margin-bottom: 10px;
}
.steps h3 { font-size: 1.05rem; }
.steps p { color: var(--ink-soft); font-size: .93rem; margin: 0; }

.shop { background: var(--paper); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 22px; }
.chip {
  background: var(--card); border: 1px solid var(--line); color: var(--ink-soft);
  border-radius: 999px; padding: 8px 16px; font-weight: 600;
}
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } }
.grid-msg { color: var(--ink-soft); text-align: center; padding: 30px 0; }

.product-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .15s, transform .15s;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.product-card .thumb { background: var(--paper); padding: 0; aspect-ratio: 1/1; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.product-card h3 { font-size: 1rem; margin: 0; }
.product-card .cat { color: var(--ink-soft); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.product-card .foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.product-card .price { font-weight: 700; }

/* Policy */
.policy { background: var(--card); border-top: 1px solid var(--line); }
.policy-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.policy-cards .card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.policy-cards h3 { font-size: 1.02rem; }
.policy-cards p { color: var(--ink-soft); font-size: .92rem; margin: 0; }
.contact-strip { background: var(--accent-soft); padding: 22px 0; text-align: center; }
.contact-strip p { margin: 0; font-weight: 600; }
.contact-strip a { color: var(--accent-dark); }

.site-footer { background: var(--ink); color: #a8a29e; padding: 22px 0; text-align: center; font-size: .86rem; }
.site-footer p { margin: 0; }

/* Modal */
.modal {
  border: none; border-radius: 18px; padding: 0; width: min(94vw, 560px);
  max-height: 92vh; overflow-y: auto; box-shadow: var(--shadow-lg);
}
.modal::backdrop { background: rgba(28,25,23,.55); backdrop-filter: blur(2px); }
.modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%; border: none;
  background: var(--paper); color: var(--ink); font-size: 1.4rem; line-height: 1;
}
.modal-close:hover { background: var(--line); }
.modal-body { padding: 24px; }
.modal .product-hero { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.modal .product-hero .thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.modal .product-hero .thumb { width: 120px; height: 120px; background: var(--accent-soft); border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.modal .thumb svg { width: 90px; height: 90px; }
.modal h2 { margin: 0 0 4px; font-size: 1.35rem; }
.modal .price-lg { font-size: 1.2rem; font-weight: 700; color: var(--accent-dark); }

.field { margin: 18px 0; }
.field label { display: block; font-weight: 600; margin-bottom: 8px; font-size: .92rem; }
.sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.size-chip {
  min-width: 42px; padding: 9px 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--card); font-weight: 600;
}
.size-chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.upload-zone {
  border: 2px dashed #d6d3d1; border-radius: 12px; padding: 18px;
  text-align: center; color: var(--ink-soft); transition: border-color .12s, background .12s;
  cursor: pointer;
}
.upload-zone:hover, .upload-zone.drag { border-color: var(--accent); background: var(--accent-soft); }
.upload-zone .uicon { font-size: 1.6rem; margin-bottom: 4px; }
.upload-preview { display: none; position: relative; }
.upload-preview img { border-radius: 12px; width: 100%; max-height: 240px; object-fit: contain; background: var(--paper); }
.upload-preview button {
  position: absolute; top: 8px; right: 8px;
  width: 30px; height: 30px; border-radius: 50%; border: none; background: var(--ink); color: #fff;
}
.qty { display: flex; align-items: center; gap: 12px; }
.qty button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); font-size: 1.2rem; font-weight: 700; }
.qty .qty-val { min-width: 28px; text-align: center; font-weight: 700; }
.modal .actions { display: flex; gap: 10px; margin-top: 20px; }

/* Cart drawer */
.overlay {
  position: fixed; inset: 0; z-index: 49; background: rgba(28,25,23,.5);
  backdrop-filter: blur(2px);
}
.cart {
  position: fixed; top: 0; right: 0; z-index: 50;
  width: min(94vw, 420px); height: 100dvh; background: var(--card);
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column;
  transform: translateX(105%); transition: transform .25s ease;
}
.cart.open { transform: translateX(0); }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.cart-head h2 { margin: 0; font-size: 1.2rem; }
.cart-head .modal-close { position: static; }
.cart-items { flex: 1; overflow-y: auto; padding: 12px 20px; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: var(--paper); }
.cart-item .ci-thumb { width: 64px; height: 64px; border-radius: 10px; background: var(--accent-soft); display: flex; align-items: center; justify-content: center; }
.cart-item .ci-thumb svg { width: 44px; height: 44px; }
.cart-item .ci-name { font-weight: 600; font-size: .95rem; }
.cart-item .ci-meta { color: var(--ink-soft); font-size: .82rem; }
.cart-item .ci-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.cart-item .ci-price { font-weight: 700; font-size: .95rem; }
.ci-remove { background: none; border: none; color: var(--ink-soft); font-size: .82rem; text-decoration: underline; padding: 0; }
.ci-remove:hover { color: var(--danger); }
.cart-qty { display: flex; align-items: center; gap: 6px; }
.cart-qty button { width: 24px; height: 24px; border-radius: 7px; border: 1px solid var(--line); background: var(--card); font-weight: 700; line-height: 1; }
.cart-qty .v { min-width: 18px; text-align: center; font-size: .9rem; font-weight: 700; }

.cart-foot { border-top: 1px solid var(--line); padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 10px; }
.cart-totals .row { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: .95rem; }
.input {
  width: 100%; border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 12px; background: var(--paper); resize: vertical;
}
.input:focus { outline: 2px solid var(--accent); border-color: transparent; }
.fineprint { color: var(--ink-soft); font-size: .78rem; text-align: center; margin: 0; }
.cart-empty { text-align: center; color: var(--ink-soft); padding: 40px 0; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60;
  transform: translateX(-50%) translateY(120%); opacity: 0;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px;
  font-weight: 600; font-size: .92rem; box-shadow: var(--shadow-lg);
  transition: transform .25s, opacity .25s; max-width: 92vw;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* Result modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 70; background: rgba(28,25,23,.55);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.result-card {
  background: var(--card); border-radius: 18px; padding: 30px;
  max-width: 440px; width: 100%; text-align: center; box-shadow: var(--shadow-lg);
}
.result-card h2 { color: var(--accent-dark); }
.result-card p { color: var(--ink-soft); }

/* Admin */
.admin-login { max-width: 380px; margin: 60px auto; padding: 30px; }
.admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.order { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; background: var(--card); }
.order .o-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.order .o-id { font-weight: 700; }
.order .o-total { color: var(--accent-dark); font-weight: 700; }
.order .o-meta { color: var(--ink-soft); font-size: .85rem; margin-top: 4px; }
.order table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: .9rem; }
.order th, .order td { text-align: left; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.order .dl { color: var(--accent-dark); }
.status-pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.status-PAID { background: #dcfce7; color: #15803d; }
.status-pending { background: #fef3c7; color: #b45309; }

/* Announcement bar */
.announce { background: var(--accent); color: #1c1917; }
.announce-inner {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 10px; padding: 10px 18px; font-size: .95rem; font-weight: 600; text-align: center;
}
.code {
  background: #1c1917; color: #f59e0b; border: none; border-radius: 999px;
  padding: 5px 14px; font-weight: 700; letter-spacing: .08em;
}
.code:hover { background: #292524; }
.code.inline { padding: 2px 10px; font-size: .9em; vertical-align: baseline; }
.announce-extra { font-weight: 500; opacity: .85; }
@media (max-width: 520px) { .announce-extra { display: none; } }

/* Hero points + badge */
.hero-points { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.hero-points li { color: #d6d3d1; font-size: .92rem; font-weight: 600; }
.hero-points li::before { content: "\2713"; color: #f59e0b; font-weight: 800; margin-right: 7px; }
.hero-art { position: relative; }
.hero-badge {
  position: absolute; right: 6px; top: 8px;
  background: var(--accent); color: #1c1917; font-weight: 700;
  border-radius: 999px; padding: 8px 16px; box-shadow: var(--shadow);
}

/* Trust bar */
.trustbar { background: var(--card); border-bottom: 1px solid var(--line); padding: 18px 0; }
.trustbar-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.trustbar-inner > div { display: flex; flex-direction: column; gap: 2px; }
.trustbar-inner strong { font-size: .95rem; }
.trustbar-inner span { color: var(--ink-soft); font-size: .8rem; }

/* FAQ */
.faq { background: var(--card); border-top: 1px solid var(--line); }
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-list details {
  border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px;
  background: var(--paper); overflow: hidden;
}
.faq-list summary {
  cursor: pointer; padding: 15px 18px; font-weight: 600; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 1.4rem; color: var(--accent-dark); line-height: 1; }
.faq-list details[open] summary::after { content: "\2013"; }
.faq-list p { margin: 0; padding: 0 18px 16px; color: var(--ink-soft); font-size: .95rem; }

.promo-row { border-top: 1px dashed var(--line); padding-top: 8px; }
.promo-code { color: var(--accent-dark); font-weight: 700; }

.foot-links { display: flex; gap: 18px; justify-content: center; margin-top: 12px; }
.foot-links a { color: #d6d3d1; text-decoration: none; font-size: .86rem; }
.foot-links a:hover { color: #fff; }
