:root {
  --paper: #fffdf9;
  --cream: #f7f1ea;
  --cream-2: #efe5dc;
  --ink: #1d1715;
  --muted: #716862;
  --wine: #761f2b;
  --wine-dark: #51141c;
  --wine-soft: #f4e2e4;
  --gold: #aa815d;
  --green: #33735a;
  --line: #e6ddd5;
  --shadow: 0 10px 30px rgba(64, 38, 31, 0.08);
  --radius: 18px;
  --radius-sm: 12px;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: #e9e4df; }
body {
  margin: 0;
  font-family: var(--sans);
  background: #e9e4df;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }

#app { min-height: 100vh; }
.app-shell {
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--paper);
  position: relative;
  overflow-x: hidden;
  box-shadow: 0 0 50px rgba(42, 30, 25, .12);
  padding-bottom: calc(88px + env(safe-area-inset-bottom));
}

.page { animation: fadeIn .22s ease; }
@keyframes fadeIn { from {opacity:.5; transform:translateY(4px)} to {opacity:1; transform:none} }

.container { padding: 0 16px; }
.section { padding: 18px 16px 0; }
.section.compact { padding-top: 10px; }
.section-head { display:flex; align-items:end; justify-content:space-between; gap:12px; margin-bottom:12px; }
.section-title { font-family:var(--serif); font-size:26px; line-height:1.05; font-weight:500; margin:0; }
.section-title.sans { font-family:var(--sans); font-size:21px; font-weight:750; }
.section-sub { color:var(--muted); font-size:13px; line-height:1.5; margin:5px 0 0; }
.text-link { color:var(--wine); font-weight:700; font-size:12px; border:0; background:transparent; padding:4px 0; }
.muted { color:var(--muted); }
.divider { height:1px; background:var(--line); margin:18px 0; }

/* Header */
.topbar {
  display:grid;
  grid-template-columns: 36px 1fr auto;
  align-items:center;
  gap:8px;
  padding:14px 16px 8px;
  background:rgba(255,253,249,.94);
  position:relative;
  z-index:20;
}
.icon-btn {
  width:36px; height:36px; border:0; background:transparent; padding:7px;
  color:var(--ink); border-radius:50%; display:grid; place-items:center;
}
.icon-btn:hover { background:var(--cream); }
.icon-btn svg { width:22px; height:22px; }
.brand {
  font-family:var(--serif); font-size:31px; letter-spacing:2.4px; line-height:1;
  color:var(--wine-dark); font-weight:400; padding-left:4px;
}
.top-actions { display:flex; align-items:center; gap:2px; }
.badge-wrap { position:relative; }
.count-badge {
  position:absolute; top:-3px; right:-3px; min-width:17px; height:17px; border-radius:999px;
  background:var(--wine); color:white; font-size:10px; font-weight:800; display:grid; place-items:center; padding:0 4px;
}
.search-wrap { padding:6px 16px 8px; position:relative; z-index:15; background:var(--paper); }
.search-form { display:flex; gap:8px; }
.search-box {
  width:100%; border:1px solid var(--line); background:#fff; border-radius:14px; min-height:48px;
  display:flex; align-items:center; gap:10px; padding:0 13px; box-shadow:0 2px 10px rgba(35,25,20,.025);
}
.search-box svg { width:20px; height:20px; color:#8d837c; flex:0 0 auto; }
.search-box input { width:100%; border:0; outline:0; background:transparent; font-size:14px; color:var(--ink); }
.search-box input::placeholder { color:#9c938d; }

.top-tabs {
  display:flex; align-items:center; justify-content:space-between; gap:4px; padding:0 16px;
  border-bottom:1px solid var(--line); background:var(--paper); overflow:auto; scrollbar-width:none;
}
.top-tabs::-webkit-scrollbar { display:none; }
.top-tab {
  flex:0 0 auto; min-width:74px; text-align:center; padding:11px 8px 12px; font-size:13px; font-weight:650;
  position:relative; white-space:nowrap;
}
.top-tab.active { color:var(--wine); }
.top-tab.active:after { content:""; position:absolute; bottom:-1px; left:10px; right:10px; height:2px; background:var(--wine); border-radius:99px; }

/* Hero */
.hero { padding:12px 16px 0; }
.hero-card { position:relative; overflow:hidden; border-radius:18px; min-height:395px; background:var(--cream); box-shadow:var(--shadow); }
.hero-card img { width:100%; height:395px; object-fit:cover; object-position:center 15%; }
.hero-overlay { position:absolute; inset:0; background:linear-gradient(90deg, rgba(31,17,14,.64) 0%, rgba(31,17,14,.27) 46%, rgba(31,17,14,.04) 72%); }
.hero-copy { position:absolute; left:22px; right:20px; top:38px; color:white; width:58%; }
.eyebrow { display:inline-flex; align-items:center; gap:6px; border:1px solid rgba(255,255,255,.66); border-radius:4px; padding:5px 8px; font-size:10px; letter-spacing:1.4px; text-transform:uppercase; }
.hero-title { font-family:var(--serif); font-size:39px; line-height:1.03; font-weight:400; margin:18px 0 12px; }
.hero-copy p {
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255,255,255,.92);
  margin: 0;
}
.hero-copy .btn {
  min-width: 132px;
  padding-inline: 20px;
  margin-top: 100px;
}
.btn {
  border: 0;
  border-radius: 11px;
  min-height: 44px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 750;
  font-size: 13px;
  white-space: nowrap;
  flex-wrap: nowrap;
}
.btn.primary { background:var(--wine); color:white; }
.btn.primary:hover { background:var(--wine-dark); }
.btn.secondary { background:white; color:var(--ink); border:1px solid var(--line); }
.btn.ghost { background:transparent; border:1px solid currentColor; }
.btn.full { width:100%; }

.benefit-strip { margin:10px 16px 0; border:1px solid var(--line); background:#fffaf4; border-radius:14px; display:grid; grid-template-columns:repeat(3,1fr); }
.benefit-mini { padding:11px 7px; text-align:center; border-right:1px solid var(--line); }
.benefit-mini:last-child { border-right:0; }
.benefit-mini svg { width:20px; height:20px; color:var(--wine); margin:0 auto 5px; }
.benefit-mini strong { display:block; font-size:11px; }
.benefit-mini span { display:block; color:var(--muted); font-size:9px; margin-top:2px; }

/* Category circles */
.circle-grid { display:grid; grid-template-columns:repeat(4, 1fr); gap:14px 8px; }
.circle-link { text-align:center; font-size:11px; font-weight:650; }
.circle-img { aspect-ratio:1; border-radius:50%; overflow:hidden; background:var(--cream); margin-bottom:6px; border:1px solid #eee5de; }
.circle-img img { height:100%; object-fit:cover; }

/* Editorial */
.editorial { margin:18px 16px 0; border-radius:16px; overflow:hidden; min-height:156px; position:relative; background:var(--wine-dark); }
.editorial img { position:absolute; inset:0; height:100%; object-fit:cover; opacity:.62; }
.editorial:after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,rgba(54,10,17,.95),rgba(54,10,17,.62) 52%,rgba(54,10,17,.06)); }
.editorial-copy { position:relative; z-index:2; color:white; padding:22px 20px; width:62%; }
.editorial-copy .label { font-size:10px; letter-spacing:1.8px; text-transform:uppercase; }
.editorial-copy h3 { font-family:var(--serif); font-size:28px; font-weight:400; margin:8px 0 5px; line-height:1.05; }
.editorial-copy p { font-size:12px; color:rgba(255,255,255,.88); line-height:1.4; margin:0 0 12px; }
.editorial-copy a { font-size:12px; font-weight:750; border-bottom:1px solid rgba(255,255,255,.8); padding-bottom:2px; }

/* Product cards */
.product-row { display:flex; gap:10px; overflow:auto; padding:0 16px 4px; scroll-snap-type:x mandatory; scrollbar-width:none; }
.product-row::-webkit-scrollbar { display:none; }
.product-row .product-card { flex:0 0 46%; scroll-snap-align:start; }
.product-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; }
.product-grid.three { grid-template-columns:repeat(3,1fr); gap:8px; }
.product-card { border:1px solid var(--line); border-radius:14px; overflow:hidden; background:#fff; min-width:0; position:relative; }
.product-media { position:relative; aspect-ratio:.78; overflow:hidden; background:var(--cream); }
.product-media img { height:100%; object-fit:cover; }
.wish-btn { position:absolute; right:8px; top:8px; width:32px; height:32px; background:rgba(255,255,255,.86); border:0; border-radius:50%; display:grid; place-items:center; backdrop-filter:blur(4px); }
.wish-btn svg { width:18px; height:18px; }
.wish-btn.active { color:var(--wine); }
.fd-badge { position:absolute; left:8px; top:8px; z-index:2; padding:5px 7px; border-radius:5px; background:rgba(167,130,94,.92); color:white; font-size:8px; font-weight:800; letter-spacing:.55px; text-transform:uppercase; }
.product-body { padding:10px 10px 11px; }
.product-brand { text-transform:uppercase; letter-spacing:.5px; color:var(--wine); font-size:9px; font-weight:800; margin-bottom:4px; }
.product-name { font-size:12px; line-height:1.35; min-height:32px; margin:0 0 7px; }
.price-line { display:flex; flex-wrap:wrap; align-items:baseline; gap:6px; }
.price { font-size:15px; font-weight:850; }
.mrp { color:#8f8680; text-decoration:line-through; font-size:10px; }
.off { color:#d62f34; font-size:10px; font-weight:800; }
.rating { color:#887c73; font-size:10px; margin-top:6px; }
.rating .star { color:#c58e11; }

/* mood / landscape cards */
.mood-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; }
.mood-card { height:145px; border-radius:14px; overflow:hidden; position:relative; background:var(--cream); }
.mood-card img { height:100%; object-fit:cover; }
.mood-card:after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,transparent 43%,rgba(22,11,9,.67)); }
.mood-card span { position:absolute; z-index:2; left:12px; bottom:11px; color:white; font-family:var(--serif); font-size:20px; }

.maker-row { display:flex; gap:10px; overflow:auto; scrollbar-width:none; padding-bottom:4px; }
.maker { flex:0 0 94px; text-align:center; }
.maker-mark { height:70px; border-radius:50%; display:grid; place-items:center; background:var(--cream); border:1px solid var(--line); font-family:var(--serif); font-size:24px; color:var(--wine); }
.maker strong { display:block; font-size:10px; margin-top:6px; }
.maker span { display:block; font-size:8px; color:var(--muted); margin-top:2px; }

.sinzo-way { margin:18px 16px 0; border:1px solid var(--line); border-radius:16px; padding:16px; background:#fbf4ee; }
.way-title { font-family:var(--serif); font-size:21px; text-align:center; margin-bottom:4px; }
.way-sub { color:var(--muted); font-size:11px; text-align:center; }
.way-flow { display:grid; grid-template-columns:1fr 30px 1fr 30px 1fr; align-items:center; margin-top:16px; }
.way-step { text-align:center; font-size:10px; }
.way-step .way-icon { width:45px; height:45px; border:1px solid var(--wine); color:var(--wine); border-radius:50%; display:grid; place-items:center; margin:0 auto 6px; font-family:var(--serif); font-size:20px; }
.way-arrow { color:var(--wine); text-align:center; }

.trust-grid { margin:16px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); display:grid; grid-template-columns:repeat(2,1fr); }
.trust-item { padding:12px 8px; display:flex; align-items:center; gap:8px; border-bottom:1px solid var(--line); }
.trust-item:nth-child(odd) { border-right:1px solid var(--line); }
.trust-item:nth-last-child(-n+2) { border-bottom:0; }
.trust-item svg { width:22px; height:22px; color:var(--wine); flex:0 0 auto; }
.trust-item strong { display:block; font-size:10px; }
.trust-item span { display:block; color:var(--muted); font-size:8px; }

/* footer */
.footer { padding:18px 16px 28px; background:#f7f0e9; margin-top:18px; border-top:1px solid var(--line); }
.footer-brand { font-family:var(--serif); font-size:30px; color:var(--wine-dark); }
.footer p { color:var(--muted); font-size:10px; line-height:1.5; max-width:260px; }
.footer-links { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-top:14px; }
.footer-links strong { font-size:10px; }
.footer-links a { display:block; color:var(--muted); font-size:9px; margin:6px 0; }
.copy { margin-top:16px; padding-top:12px; border-top:1px solid var(--line); font-size:8px; color:#9a8f87; }

/* bottom nav */
.bottom-nav {
  position:fixed; left:50%; bottom:0; transform:translateX(-50%); width:min(100%,430px); min-height:70px; height:calc(70px + env(safe-area-inset-bottom)); padding-bottom:env(safe-area-inset-bottom);
  background:#fffdf9; border-top:1px solid var(--line); z-index:40; display:grid; grid-template-columns:repeat(5,1fr);
  backdrop-filter:blur(12px); box-shadow:0 -10px 24px rgba(42,24,18,.045);
}
.bottom-link { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; font-size:9px; color:#3c3531; }
.bottom-link svg { width:22px; height:22px; }
.bottom-link.active { color:var(--wine); font-weight:800; }

/* Category hub */
.page-title-wrap { padding:18px 16px 8px; }
.page-title { font-family:var(--serif); font-size:38px; font-weight:400; margin:0; line-height:1; }
.category-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; padding:10px 16px; }
.category-card { position:relative; height:235px; border-radius:16px; overflow:hidden; background:var(--cream); }
.category-card img { height:100%; object-fit:cover; }
.category-card:after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,transparent 42%,rgba(24,14,10,.72)); }
.category-card-copy { position:absolute; z-index:2; left:13px; right:13px; bottom:13px; color:white; }
.category-card-copy h3 { font-family:var(--serif); font-size:22px; margin:0 0 5px; font-weight:400; }
.category-card-copy p { font-size:10px; line-height:1.35; margin:0; color:rgba(255,255,255,.92); }
.category-card .arrow-circle { position:absolute; z-index:3; width:33px; height:33px; background:white; color:var(--ink); right:12px; bottom:12px; border-radius:50%; display:grid; place-items:center; }
.fd-banner { margin:12px 16px 0; padding:15px; border:1px solid var(--line); border-radius:16px; background:#f5e8e3; display:flex; align-items:center; gap:12px; }
.fd-round { width:52px; height:52px; border-radius:50%; background:var(--wine); color:white; display:grid; place-items:center; flex:0 0 auto; }
.fd-banner strong { font-family:var(--serif); font-size:21px; font-weight:400; }
.fd-banner p { margin:3px 0 0; color:var(--muted); font-size:10px; line-height:1.4; }

/* PLP */
.plp-intro { padding:18px 16px 6px; }
.plp-intro h1 { font-family:var(--serif); font-size:34px; font-weight:400; margin:0; }
.subcat-row { display:flex; gap:14px; overflow:auto; padding:8px 16px 16px; scrollbar-width:none; }
.subcat-row::-webkit-scrollbar { display:none; }
.subcat { flex:0 0 72px; text-align:center; font-size:10px; font-weight:650; }
.subcat .circle-img { margin-bottom:5px; }
.plp-tools { padding:10px 16px 12px; display:flex; align-items:center; gap:8px; border-top:1px solid var(--line); }
.select-pill { min-height:38px; padding:0 11px; border-radius:10px; border:1px solid var(--line); background:white; font-size:11px; color:var(--ink); }
.plp-count { display:flex; justify-content:space-between; align-items:center; padding:0 16px 10px; color:var(--muted); font-size:10px; }
.plp-grid { padding:0 16px; }

/* factory page */
.fd-hero { margin:12px 16px 0; min-height:360px; border-radius:16px; overflow:hidden; position:relative; background:var(--cream); }
.fd-hero img { height:360px; object-fit:cover; object-position:55% center; }
.fd-hero:after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,rgba(248,241,234,.98) 0%,rgba(248,241,234,.86) 46%,rgba(248,241,234,.12) 72%); }
.fd-hero-copy { position:absolute; z-index:2; left:18px; top:24px; width:55%; }
.fd-hero-copy h1 { font-family:var(--serif); font-size:33px; line-height:1.04; font-weight:400; margin:12px 0 12px; }
.fd-hero-copy p { font-size:12px; line-height:1.5; color:#403934; }
.fd-points { display:grid; grid-template-columns:repeat(2,1fr); gap:7px; margin-top:16px; }
.fd-point { font-size:9px; color:var(--wine); font-weight:750; display:flex; align-items:center; gap:5px; }
.fd-explain { margin:10px 16px 0; border:1px solid var(--line); border-radius:14px; padding:13px; background:#fff9f4; display:flex; align-items:center; justify-content:space-between; gap:10px; }
.fd-explain strong { font-size:12px; }
.fd-explain span { display:block; font-size:9px; color:var(--muted); margin-top:2px; }

/* deals */
.deals-hero { margin:10px 16px 0; border-radius:18px; overflow:hidden; background:#ead6d7; position:relative; min-height:220px; }
.deals-hero img { height:220px; object-fit:cover; object-position:70% center; }
.deals-hero:after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,rgba(90,18,28,.92),rgba(90,18,28,.55) 58%,rgba(90,18,28,.05)); }
.deals-copy { position:absolute; z-index:2; left:18px; top:25px; width:54%; color:white; }
.deals-copy .kicker { font-size:10px; letter-spacing:1.4px; }
.deals-copy h1 { font-family:var(--serif); font-size:34px; line-height:1.05; font-weight:400; margin:7px 0; }
.deals-copy p { font-size:11px; line-height:1.4; color:rgba(255,255,255,.85); }
.deal-chips { display:flex; gap:8px; overflow:auto; padding:12px 16px 8px; scrollbar-width:none; }
.chip { flex:0 0 auto; border:1px solid var(--line); border-radius:999px; padding:9px 13px; font-size:10px; background:white; }
.chip.active { background:var(--wine); border-color:var(--wine); color:white; }

/* PDP */
.pdp-gallery { position:relative; background:#f6f1ec; }
.pdp-main { height:510px; object-fit:cover; }
.pdp-actions { position:absolute; top:12px; left:12px; right:12px; display:flex; justify-content:space-between; }
.floating-btn { width:39px; height:39px; border-radius:50%; background:rgba(255,255,255,.9); border:1px solid rgba(255,255,255,.8); display:grid; place-items:center; backdrop-filter:blur(4px); }
.thumb-row { display:flex; gap:7px; padding:10px 12px; overflow:auto; background:var(--paper); scrollbar-width:none; }
.thumb { width:63px; height:70px; border-radius:9px; overflow:hidden; border:1px solid var(--line); flex:0 0 auto; }
.thumb.active { border:2px solid var(--wine); }
.thumb img { height:100%; object-fit:cover; }
.pdp-info { padding:14px 16px 0; }
.pdp-brand { color:var(--wine); font-size:10px; letter-spacing:1px; text-transform:uppercase; font-weight:800; }
.pdp-name { font-family:var(--serif); font-size:28px; line-height:1.1; font-weight:400; margin:4px 0 8px; }
.pdp-meta { display:flex; align-items:center; gap:8px; color:var(--muted); font-size:10px; }
.pdp-price { margin-top:12px; display:flex; align-items:baseline; gap:8px; }
.pdp-price .price { font-size:24px; color:var(--wine); }
.pdp-price .mrp { font-size:12px; }
.pdp-price .off { font-size:12px; }
.option-label { font-size:11px; font-weight:750; margin:16px 0 8px; display:flex; justify-content:space-between; }
.swatches { display:flex; gap:9px; }
.swatch { width:28px; height:28px; border-radius:50%; border:2px solid white; outline:1px solid var(--line); }
.swatch.active { outline:2px solid var(--wine); }
.size-row { display:flex; gap:8px; flex-wrap:wrap; }
.size-btn { min-width:42px; height:39px; border-radius:9px; border:1px solid var(--line); background:white; font-size:11px; }
.size-btn.active { background:var(--ink); color:white; border-color:var(--ink); }
.pdp-usp { margin-top:14px; border:1px solid var(--line); background:#fbf4ec; border-radius:12px; padding:12px; display:flex; gap:9px; align-items:center; }
.pdp-usp strong { font-size:10px; }
.pdp-usp span { display:block; color:var(--muted); font-size:9px; margin-top:2px; }
.pdp-cta { display:grid; grid-template-columns:1fr 1.25fr; gap:8px; margin:14px 0; }
.accordion { border-top:1px solid var(--line); }
.accordion-row { border-bottom:1px solid var(--line); padding:15px 0; display:flex; justify-content:space-between; align-items:center; font-size:11px; font-weight:750; }
.review-card { border:1px solid var(--line); border-radius:12px; padding:12px; background:white; }
.review-card strong { font-size:11px; }
.review-card p { color:var(--muted); font-size:10px; line-height:1.45; margin:8px 0 0; }

/* search/explore */
.search-page .search-wrap { padding-top:12px; }
.recent-searches { display:flex; flex-wrap:wrap; gap:8px; }
.recent-chip { border:1px solid var(--line); border-radius:999px; padding:9px 12px; background:white; font-size:10px; }
.search-feature { height:170px; border-radius:16px; overflow:hidden; position:relative; background:var(--cream); }
.search-feature img { height:100%; object-fit:cover; }
.search-feature:after { content:""; position:absolute; inset:0; background:linear-gradient(90deg,rgba(32,15,12,.72),transparent); }
.search-feature-copy { position:absolute; z-index:2; color:white; left:17px; top:28px; width:52%; }
.search-feature-copy h3 { font-family:var(--serif); font-size:26px; font-weight:400; margin:0 0 6px; }
.search-feature-copy p { font-size:10px; line-height:1.4; color:rgba(255,255,255,.9); }

/* lists / empty states */
.list-page-title { font-family:var(--serif); font-size:34px; font-weight:400; margin:18px 16px 4px; }
.empty { padding:70px 34px; text-align:center; }
.empty-icon { width:74px; height:74px; border-radius:50%; background:var(--cream); display:grid; place-items:center; color:var(--wine); margin:0 auto 16px; }
.empty h2 { font-family:var(--serif); font-size:27px; font-weight:400; margin:0 0 8px; }
.empty p { color:var(--muted); font-size:12px; line-height:1.5; margin:0 0 18px; }

/* cart */
.cart-list { padding:8px 16px; }
.cart-item { display:grid; grid-template-columns:105px 1fr; gap:12px; padding:12px 0; border-bottom:1px solid var(--line); }
.cart-img { width:105px; height:135px; object-fit:cover; border-radius:12px; background:var(--cream); }
.cart-info h3 { font-size:12px; line-height:1.4; margin:0 0 5px; }
.cart-info .brand-sm { color:var(--wine); font-size:9px; text-transform:uppercase; font-weight:800; }
.qty { display:flex; align-items:center; gap:8px; margin-top:11px; }
.qty button { width:28px; height:28px; border-radius:8px; border:1px solid var(--line); background:white; }
.summary { margin:12px 16px; border:1px solid var(--line); border-radius:14px; padding:14px; }
.summary-row { display:flex; justify-content:space-between; font-size:11px; padding:6px 0; color:var(--muted); }
.summary-row.total { color:var(--ink); font-weight:850; font-size:14px; border-top:1px solid var(--line); margin-top:6px; padding-top:12px; }

/* auth */
.auth-shell { min-height:calc(100vh - 70px); background:linear-gradient(#faf5ef, #fffdf9); padding:20px 18px 38px; }
.auth-brand { font-family:var(--serif); font-size:38px; color:var(--wine-dark); text-align:center; margin:12px 0 24px; }
.auth-card { background:white; border:1px solid var(--line); border-radius:20px; padding:22px 18px; box-shadow:var(--shadow); }
.auth-card h1 { font-family:var(--serif); font-size:32px; font-weight:400; margin:0 0 7px; }
.auth-card > p { color:var(--muted); font-size:12px; line-height:1.45; margin:0 0 20px; }
.form-group { margin-bottom:14px; }
.form-group label { display:block; font-size:11px; font-weight:750; margin-bottom:7px; }
.field { border:1px solid var(--line); border-radius:12px; min-height:48px; display:flex; align-items:center; padding:0 12px; background:white; }
.field input { border:0; outline:0; background:transparent; width:100%; font-size:12px; }
.form-help { color:var(--muted); font-size:9px; margin-top:5px; line-height:1.4; }
.auth-alt { text-align:center; color:var(--muted); font-size:11px; margin-top:16px; }
.auth-alt a { color:var(--wine); font-weight:800; }
.social-btn { width:100%; min-height:46px; border:1px solid var(--line); border-radius:11px; background:white; margin-top:8px; font-weight:700; }

/* account */
.profile-card { margin:12px 16px; border:1px solid var(--line); border-radius:15px; padding:14px; display:flex; gap:12px; align-items:center; background:white; }
.avatar { width:54px; height:54px; border-radius:50%; object-fit:cover; background:var(--cream); }
.profile-card h3 { font-size:13px; margin:0 0 3px; }
.profile-card p { color:var(--muted); font-size:9px; margin:1px 0; }
.account-block { margin:12px 16px; border:1px solid var(--line); border-radius:14px; overflow:hidden; background:white; }
.account-row { min-height:49px; display:flex; justify-content:space-between; align-items:center; padding:0 14px; border-bottom:1px solid var(--line); font-size:11px; }
.account-row:last-child { border-bottom:0; }
.account-row > svg, .account-row > a svg { width:18px; height:18px; flex:0 0 18px; }
.profile-card > span { width:22px; height:22px; display:grid; place-items:center; flex:0 0 22px; }
.profile-card > span svg { width:18px; height:18px; }
.order-statuses { display:grid; grid-template-columns:repeat(5,1fr); gap:4px; padding:13px 8px; }
.status { text-align:center; font-size:8px; color:var(--muted); }
.status svg { width:22px; height:22px; color:var(--ink); margin:0 auto 5px; }

/* orders */
.order-card { margin:12px 16px; border:1px solid var(--line); border-radius:14px; padding:13px; }
.order-top { display:flex; justify-content:space-between; gap:8px; font-size:10px; }
.order-products { display:flex; gap:8px; margin-top:12px; }
.order-thumb { width:72px; height:88px; object-fit:cover; border-radius:10px; }
.order-details { flex:1; }
.order-details h3 { font-size:11px; line-height:1.4; margin:0 0 5px; }
.status-pill { display:inline-flex; padding:5px 8px; border-radius:999px; background:#e8f3ec; color:var(--green); font-size:9px; font-weight:800; }

/* checkout */
.checkout-card { margin:12px 16px; border:1px solid var(--line); border-radius:14px; padding:14px; }
.checkout-card h3 { font-family:var(--serif); font-size:20px; font-weight:400; margin:0 0 10px; }
.radio-row { display:flex; align-items:flex-start; gap:10px; padding:9px 0; border-bottom:1px solid var(--line); font-size:10px; line-height:1.4; }
.radio-row:last-child { border-bottom:0; }

/* drawer */
.drawer-backdrop { position:fixed; inset:0; background:rgba(20,12,10,.4); z-index:80; }
.drawer { position:fixed; z-index:81; top:0; bottom:0; left:max(calc(50% - 215px), 0px); width:min(86%, 360px); background:var(--paper); padding:22px 18px; animation:slideIn .2s ease; overflow:auto; }
@keyframes slideIn { from {transform:translateX(-100%)} to {transform:none} }
.drawer-head { display:flex; align-items:center; justify-content:space-between; }
.drawer .brand { padding:0; }
.drawer-links { margin-top:22px; }
.drawer-links a { display:flex; justify-content:space-between; align-items:center; padding:15px 0; border-bottom:1px solid var(--line); font-size:13px; }
.drawer-promo { margin-top:20px; padding:15px; border-radius:14px; background:var(--wine); color:white; }
.drawer-promo strong { font-family:var(--serif); font-size:22px; font-weight:400; }
.drawer-promo p { font-size:10px; color:rgba(255,255,255,.8); line-height:1.45; }

.toast { position:fixed; left:50%; bottom:84px; transform:translateX(-50%); width:min(calc(100% - 32px),398px); background:#211916; color:white; padding:11px 14px; border-radius:12px; z-index:120; font-size:11px; box-shadow:var(--shadow); animation:toastIn .22s ease; }
@keyframes toastIn { from {opacity:0; transform:translate(-50%, 10px)} to {opacity:1; transform:translate(-50%,0)} }

/* desktop presentation */
@media (min-width: 700px) {
  body { padding:24px 0; }
  .app-shell { min-height:calc(100vh - 48px); border-radius:24px; }
  .bottom-nav { bottom:0; border-radius:0; }
}
