/* The Wisdom Leaf - storefront & admin styles */
:root {
  --paper: #f7f2e7;
  --card: #fffdf8;
  --sunk: #efe8d9;
  --ink: #1c2e29;
  --muted: #5d6c65;
  --leaf: #2e5b48;
  --leaf-deep: #1e3f32;
  --leaf-tint: #e3ece4;
  --gold: #a87a26;
  --gold-soft: #e9d6aa;
  --danger: #a5372b;
  --ok: #2c7a4b;
  --line: rgba(28, 46, 41, 0.12);
  --shadow: 0 1px 2px rgba(28, 46, 41, 0.06), 0 8px 24px -12px rgba(28, 46, 41, 0.18);
  --on-leaf: #f7f2e7;
  --display: "Cormorant Garamond", "Palatino Linotype", Palatino, Georgia, serif;
  --ui: "Karla", "Segoe UI", system-ui, sans-serif;
  --radius: 14px;
  --header: 68px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121a17; --card: #19241f; --sunk: #0e1512; --ink: #ece6d8; --muted: #a0ada6;
    --leaf: #86bf9f; --leaf-deep: #a9d6bb; --leaf-tint: #1f3029; --gold: #d8b06a; --gold-soft: #4a3d22;
    --danger: #e98a7e; --ok: #7fcf9d; --line: rgba(236, 230, 216, 0.12); --on-leaf: #10241b;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px -12px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #121a17; --card: #19241f; --sunk: #0e1512; --ink: #ece6d8; --muted: #a0ada6;
  --leaf: #86bf9f; --leaf-deep: #a9d6bb; --leaf-tint: #1f3029; --gold: #d8b06a; --gold-soft: #4a3d22;
  --danger: #e98a7e; --ok: #7fcf9d; --line: rgba(236, 230, 216, 0.12); --on-leaf: #10241b;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px -12px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1rem/1.6 var(--ui); min-height: 100dvh; display: flex; flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--leaf); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: 0.005em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.5vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.wrap { max-width: 1160px; margin: 0 auto; padding-inline: 16px; }
@media (min-width: 640px) { .wrap { padding-inline: 28px; } }
.stack > * + * { margin-top: var(--gap, 16px); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.eyebrow { font: 700 0.75rem/1 var(--ui); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.lede { font-size: 1.125rem; color: var(--muted); max-width: 60ch; }
.serif-italic { font-family: var(--display); font-style: italic; font-weight: 500; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30; height: var(--header);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand svg { width: 34px; height: 34px; color: var(--leaf); }
.brand-name { font-family: var(--display); font-size: 1.4rem; font-weight: 600; line-height: 1; white-space: nowrap; }
.brand-name em { font-style: italic; font-weight: 500; color: var(--muted); font-size: 0.8em; margin-right: 2px; }
.nav { display: none; gap: 4px; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; padding: 8px 12px; border-radius: 999px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--sunk); }
@media (min-width: 820px) { .nav { display: flex; } }
.header-actions { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 999px;
  border: 0; background: transparent; color: var(--ink); cursor: pointer; text-decoration: none;
}
.icon-btn:hover { background: var(--sunk); }
.icon-btn svg { width: 22px; height: 22px; }
.badge {
  position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--gold); color: #fff; font: 700 0.7rem/18px var(--ui); text-align: center;
}
.mobile-nav { display: flex; gap: 4px; overflow-x: auto; padding: 8px 16px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.mobile-nav a { flex-shrink: 0; text-decoration: none; color: var(--muted); padding: 6px 12px; border-radius: 999px; font-weight: 500; font-size: 0.9rem; }
.mobile-nav a[aria-current="page"] { background: var(--sunk); color: var(--ink); }
@media (min-width: 820px) { .mobile-nav { display: none; } }

/* ---------- buttons & forms ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 0.95rem; letter-spacing: 0.01em; text-decoration: none; cursor: pointer;
  transition: transform 0.12s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--leaf); color: var(--on-leaf); }
.btn-primary:hover { background: var(--leaf-deep); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 0.85rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-busy="true"] { opacity: 0.55; cursor: not-allowed; }
.btn-link { background: none; border: 0; padding: 0; color: var(--leaf); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.btn-danger { color: var(--danger); }

.field { display: grid; gap: 6px; }
.field > span { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
}
.textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { outline: 2px solid color-mix(in srgb, var(--leaf) 40%, transparent); border-color: var(--leaf); }
.grid-2 { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.grid-3 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.hint { font-size: 0.85rem; color: var(--muted); }
.error-text { color: var(--danger); font-size: 0.9rem; }
.check { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--leaf); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 22px; }
@media (min-width: 640px) { .card-pad { padding: 28px; } }
.divider { height: 1px; background: var(--line); border: 0; margin: 18px 0; }

/* ---------- home ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(48px, 8vw, 96px); }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--gold) 22%, transparent), transparent 65%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 64px; } }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--leaf); }
.hero .lede { margin-top: 20px; }
.hero .row { margin-top: 30px; }
.hero-book { justify-self: center; position: relative; width: min(330px, 78vw); }
.hero-book img { border-radius: 4px 10px 10px 4px; box-shadow: -10px 18px 40px -10px rgba(0, 0, 0, 0.45), inset 4px 0 0 rgba(255, 255, 255, 0.15); transform: rotate(-2deg); }
.hero-book .tag {
  position: absolute; right: -10px; bottom: 26px; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 14px; box-shadow: var(--shadow); font-size: 0.85rem; transform: rotate(2deg);
}
.hero-book .tag strong { display: block; font-family: var(--display); font-size: 1.35rem; }
.hero-slider { justify-self: center; display: grid; }
.hero-slider .hero-book { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 0.7s ease, visibility 0.7s; }
.hero-slider .hero-book.on { opacity: 1; visibility: visible; }
.hero-dots { display: flex; gap: 8px; justify-content: center; margin-top: 26px; }
.hero-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 99px; background: var(--line); cursor: pointer; transition: width 0.3s, background 0.3s; }
.hero-dots button[aria-current="true"] { width: 26px; background: var(--leaf); }
.hero-placeholder { aspect-ratio: 2 / 3; border-radius: 6px; background: linear-gradient(160deg, var(--leaf), var(--leaf-deep)); display: grid; place-items: center; color: var(--on-leaf); }
.hero-placeholder svg { width: 40%; opacity: 0.6; }

.values { border-block: 1px solid var(--line); background: var(--card); }
.values .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; }
.value { display: flex; gap: 14px; align-items: flex-start; padding: 22px 8px; }
.value svg { width: 26px; height: 26px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.value strong { display: block; }

.section { padding-block: clamp(48px, 7vw, 88px); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }
.section-head h2 { margin-top: 10px; }

.books { display: grid; gap: 28px 22px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .books { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1020px) { .books { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.book-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.book-card .cover {
  aspect-ratio: 2 / 3; border-radius: 4px 8px 8px 4px; overflow: hidden; background: var(--sunk);
  box-shadow: -4px 10px 22px -10px rgba(0, 0, 0, 0.45); transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.book-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.book-card:hover .cover { transform: translateY(-4px); box-shadow: -6px 18px 30px -12px rgba(0, 0, 0, 0.5); }
.book-card h3 { margin-top: 16px; font-size: 1.25rem; }
.book-card .by { color: var(--muted); font-size: 0.9rem; margin-top: 2px; }
.price-line { display: flex; gap: 8px; align-items: baseline; margin-top: 8px; }
.price { font-weight: 700; font-size: 1.05rem; }
.mrp { color: var(--muted); text-decoration: line-through; font-size: 0.9rem; }
.save { color: var(--ok); font-weight: 700; font-size: 0.8rem; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font: 700 0.72rem/1.5 var(--ui); letter-spacing: 0.04em; background: var(--leaf-tint); color: var(--leaf); }
.pill-gold { background: var(--gold-soft); color: var(--gold); }
.pill-red { background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); }
.pill-grey { background: var(--sunk); color: var(--muted); }

.about-band { background: var(--leaf-deep); color: var(--on-leaf); }
:root[data-theme="dark"] .about-band { background: var(--leaf-tint); color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .about-band { background: var(--leaf-tint); color: var(--ink); } }
.about-band .wrap { display: grid; gap: 32px; }
@media (min-width: 900px) { .about-band .wrap { grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; } }
.about-band .eyebrow { color: var(--gold-soft); }
:root[data-theme="dark"] .about-band .eyebrow { color: var(--gold); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .about-band .eyebrow { color: var(--gold); } }
.about-band blockquote { margin: 0; font-family: var(--display); font-style: italic; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.3; }
.about-band p { opacity: 0.88; }

/* ---------- product page ---------- */
.buybar {
  position: sticky; top: var(--header); z-index: 20; background: var(--card); border-bottom: 1px solid var(--line);
}
.buybar .wrap { display: flex; align-items: center; gap: 14px; min-height: 72px; padding-block: 10px; }
.buybar img { width: 38px; aspect-ratio: 2/3; object-fit: cover; border-radius: 2px 4px 4px 2px; flex-shrink: 0; }
.buybar .meta { min-width: 0; flex: 1; }
.buybar .title { font-family: var(--display); font-weight: 600; font-size: 1.2rem; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar .actions { display: flex; gap: 8px; flex-shrink: 0; }
@media (max-width: 560px) { .buybar .hide-sm { display: none; } .buybar .btn { padding: 0 16px; } }
.book-frame { display: block; width: 100%; height: calc(100dvh - var(--header) - 72px); border: 0; background: var(--paper); }

.product { display: grid; gap: 40px; padding-block: 40px 72px; }
@media (min-width: 860px) { .product { grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: start; } }
.product .cover-lg { max-width: 360px; margin-inline: auto; border-radius: 4px 10px 10px 4px; box-shadow: -10px 18px 40px -12px rgba(0, 0, 0, 0.45); }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 8px 22px; font-size: 0.95rem; margin: 0; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.qty button { width: 40px; height: 44px; border: 0; background: none; cursor: pointer; font-size: 1.2rem; color: var(--ink); }
.qty output { min-width: 28px; text-align: center; font-weight: 700; }

/* ---------- dialog ---------- */
dialog {
  border: 0; padding: 0; border-radius: 18px; background: var(--card); color: var(--ink);
  width: min(440px, calc(100vw - 32px)); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.5);
}
dialog::backdrop { background: rgba(10, 20, 16, 0.5); backdrop-filter: blur(2px); }
dialog .dlg { padding: 24px; }
dialog .dlg-head { display: flex; gap: 16px; align-items: center; }
dialog .dlg-head img { width: 64px; border-radius: 2px 6px 6px 2px; }

/* ---------- cart / checkout ---------- */
.page-head { padding-block: 40px 24px; }
.two-col { display: grid; gap: 28px; padding-bottom: 72px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 380px; align-items: start; } .two-col > aside { position: sticky; top: calc(var(--header) + 20px); } }
.line-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.line-item:last-child { border-bottom: 0; }
.line-item img { width: 64px; aspect-ratio: 2/3; object-fit: cover; border-radius: 2px 5px 5px 2px; background: var(--sunk); }
.line-item h3 { font-size: 1.15rem; }
.delivery-choice { border: 0; padding: 0; margin: 6px 0 0; min-width: 0; }
.delivery-choice legend { font-weight: 700; font-size: 0.9rem; margin-bottom: 8px; }
#delivery { display: grid; gap: 8px; }
.ship-option { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.ship-option:has(input:checked) { border-color: var(--leaf); background: color-mix(in srgb, var(--leaf) 8%, transparent); }
.ship-option input { accent-color: var(--leaf); width: 18px; height: 18px; margin: 0; }
.ship-option .grow { flex: 1; display: grid; gap: 2px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.sum-total { font-weight: 700; font-size: 1.2rem; border-top: 1px solid var(--line); margin-top: 10px; padding-top: 14px; }
.empty { text-align: center; padding: 64px 16px; }
.empty svg { width: 56px; height: 56px; color: var(--gold); margin: 0 auto 16px; }
.notice { padding: 12px 16px; border-radius: 10px; background: var(--leaf-tint); color: var(--ink); font-size: 0.92rem; }
.notice.warn { background: color-mix(in srgb, var(--gold) 16%, transparent); }
.notice.err { background: color-mix(in srgb, var(--danger) 13%, transparent); }
.secure { display: flex; gap: 8px; align-items: center; justify-content: center; color: var(--muted); font-size: 0.82rem; margin-top: 12px; }
.secure svg { width: 16px; height: 16px; }

/* ---------- orders ---------- */
.order-card { display: block; text-decoration: none; color: inherit; padding: 18px 20px; }
.order-card:hover { border-color: var(--leaf); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { position: relative; padding: 0 0 22px 32px; color: var(--muted); }
.timeline li::before { content: ""; position: absolute; left: 7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line); background: var(--card); }
.timeline li::after { content: ""; position: absolute; left: 12px; top: 22px; bottom: 2px; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li.done { color: var(--ink); }
.timeline li.done::before { background: var(--leaf); border-color: var(--leaf); }
.timeline li.current strong { color: var(--leaf); }

/* ---------- auth ---------- */
.auth { max-width: 420px; margin: 48px auto 80px; }
.google-btn svg { width: 18px; height: 18px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 0.85rem; margin: 18px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- prose (policies) ---------- */
.prose { max-width: 720px; padding-block: 40px 80px; }
.prose h1 { margin-bottom: 8px; }
.prose h2 { font-size: 1.6rem; margin: 32px 0 8px; }
.prose p, .prose li { color: var(--ink); line-height: 1.75; }
.prose p + p { margin-top: 12px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--card); padding-block: 48px 28px; font-size: 0.92rem; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h4 { margin: 0 0 12px; font: 700 0.75rem/1 var(--ui); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--leaf); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; }

/* ---------- toast & loading ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow);
  transition: opacity 0.2s, transform 0.2s; max-width: calc(100vw - 32px); font-weight: 500;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: var(--danger); color: #fff; }
.loading { display: grid; place-items: center; min-height: 40vh; color: var(--muted); }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--leaf); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, var(--sunk), var(--card), var(--sunk)); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- admin ---------- */
.admin-shell { display: grid; min-height: calc(100dvh - var(--header)); }
@media (min-width: 900px) { .admin-shell { grid-template-columns: 220px 1fr; } }
.admin-side { border-bottom: 1px solid var(--line); background: var(--card); padding: 10px 16px; display: flex; gap: 4px; overflow-x: auto; }
@media (min-width: 900px) { .admin-side { flex-direction: column; border-bottom: 0; border-right: 1px solid var(--line); padding: 24px 14px; } }
.admin-side a { flex-shrink: 0; display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 10px; text-decoration: none; color: var(--muted); font-weight: 600; }
.admin-side a svg { width: 18px; height: 18px; }
.admin-side a[aria-current="page"] { background: var(--leaf-tint); color: var(--leaf); }
.admin-main { padding: 28px 16px 72px; min-width: 0; }
@media (min-width: 640px) { .admin-main { padding: 36px 36px 72px; } }
.stats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.stat { padding: 18px 20px; }
.stat .label { color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.stat .value { font-family: var(--display); font-weight: 600; font-size: 2.1rem; line-height: 1.1; margin-top: 6px; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.table th { text-align: left; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr.clickable { cursor: pointer; }
.table tr.clickable:hover td { background: var(--sunk); }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.thumb { width: 40px; aspect-ratio: 2/3; object-fit: cover; border-radius: 2px 4px 4px 2px; background: var(--sunk); }
.dropzone {
  display: grid; place-items: center; gap: 6px; text-align: center; padding: 26px 16px; border: 1.5px dashed var(--line);
  border-radius: 12px; background: var(--sunk); cursor: pointer; transition: border-color 0.15s, background 0.15s;
}
.dropzone:hover, .dropzone.over { border-color: var(--leaf); background: var(--leaf-tint); }
.dropzone svg { width: 28px; height: 28px; color: var(--leaf); }
.dropzone input { display: none; }
.form-section + .form-section { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.form-section h3 { margin-bottom: 14px; }
.filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.filter-tabs button { border: 1px solid var(--line); background: var(--card); padding: 6px 14px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 0.85rem; color: var(--muted); }
.filter-tabs button[aria-pressed="true"] { background: var(--leaf); color: var(--on-leaf); border-color: var(--leaf); }
.ship-steps { display: grid; gap: 10px; }
.ship-step { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; flex-wrap: wrap; }

/* Showcase mode (js/showcase.js): no accounts or cart yet */
.showcase #account-link, .showcase #cart-link, .showcase a[href="/account"], .showcase a[href="/profile"] { display: none; }
.admin-link { white-space: nowrap; }
.tabs-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 22px; padding: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.tabs-2 button { border: 0; background: none; padding: 9px; border-radius: 9px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; }
.tabs-2 button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgb(0 0 0 / 0.08); }
.phone-row { display: flex; gap: 8px; }
.phone-row .cc { flex: 0 0 64px; text-align: center; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: center; }
.check-list .ok { color: var(--leaf); font-weight: 700; }
.check-list .todo { color: var(--muted); }
