:root {
  --bg: #ffffff;
  --surface: #f5f5f3;
  --ink: #0f0f10;
  --text: #111111;
  --muted: #6b6b6b;
  --border: #e8e8e6;
  --accent: #1a56db;
  --accent-hover: #1446b3;
  --danger: #c62828;
  --radius: 14px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Noto Sans Georgian", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--text); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Shared buttons */
.btn {
  display: inline-block; border: none; border-radius: 999px; padding: 13px 26px;
  font: inherit; font-weight: 600; font-size: 0.95rem; cursor: pointer; text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #ececec; }
.btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.6); }
.btn-outline:hover { border-color: #fff; }

/* Inner pages (login, register, admin) */
header.inner { border-bottom: 1px solid var(--border); background: var(--bg); }
.nav { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; gap: 12px; flex-wrap: wrap; }
.logo { font-size: 1.05rem; font-weight: 700; letter-spacing: 0.16em; color: var(--text); text-decoration: none; }
.nav nav a, .nav nav span { margin-left: 24px; text-decoration: none; font-size: 0.92rem; font-weight: 500; }
main { padding: 48px 0 80px; min-height: 60vh; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 14px; font-weight: 700; }
h2 { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 10px; }
.lead { color: var(--muted); font-size: 1.05rem; }
.form { display: grid; gap: 16px; max-width: 440px; }
.form label { display: grid; gap: 6px; font-size: 0.88rem; font-weight: 500; }
input, textarea, select {
  font: inherit; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px;
  width: 100%; background: var(--bg); color: var(--text);
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.error { color: var(--danger); font-weight: 600; }
table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 0.92rem; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--border); }
th { font-weight: 600; color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; }
.inline { display: inline; }
.link { background: none; border: none; color: var(--danger); cursor: pointer; font: inherit; padding: 0; margin-left: 14px; }
footer.wrap { border-top: 1px solid var(--border); color: var(--muted); font-size: 0.85rem; padding: 28px 24px; }

/* ===== Homepage ===== */
body:has(.home) > header { display: none; }
body:has(.home) main.wrap { max-width: none; padding: 0; min-height: 0; }
body:has(.home) footer.wrap { max-width: none; background: var(--ink); color: #9a9a9a; border: none; padding: 32px 40px; }

.site-header {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px 40px; color: #fff;
}
.brand { display: inline-flex; background: #fff; padding: 8px 14px; border-radius: 12px; line-height: 0; box-shadow: 0 6px 18px rgba(0,0,0,0.18); }
.brand img { height: 56px; width: auto; display: block; }
.site-nav { display: flex; gap: 28px; }
.site-nav a { color: #fff; text-decoration: none; font-size: 0.92rem; font-weight: 500; opacity: 0.9; }
.site-nav a:hover { opacity: 1; text-decoration: underline; }
.account { display: flex; align-items: center; gap: 10px; }
.hello { font-size: 0.9rem; margin-right: 6px; opacity: 0.9; }
.pill { color: #fff; text-decoration: none; font-size: 0.88rem; font-weight: 600; padding: 9px 18px; border: 1px solid rgba(255,255,255,0.5); border-radius: 999px; }
.pill:hover { border-color: #fff; }
.pill-solid { background: #fff; color: var(--ink); border-color: #fff; }
.pill-solid:hover { background: #ececec; }

/* Hero slider */
.hero { position: relative; height: 82vh; min-height: 580px; max-height: 820px; background: var(--ink); overflow: hidden; color: #fff; }
.slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; transition: opacity 0.7s ease; pointer-events: none; }
.slide.active { opacity: 1; pointer-events: auto; }
.slide-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.42; }
.slide-bg-empty { background: radial-gradient(circle at 75% 45%, #2a2a2d 0, #0f0f10 60%); opacity: 1; display: flex; align-items: center; justify-content: center; }
.coin-disc { display: block; width: 46vmin; height: 46vmin; max-width: 420px; max-height: 420px; border-radius: 50%; background: #c9a24a; box-shadow: inset 0 0 0 14px rgba(0,0,0,0.12), inset 0 0 0 22px rgba(255,255,255,0.12); }
.coin-disc.small { width: 56%; height: auto; aspect-ratio: 1; max-width: 120px; background: #d9d9d6; box-shadow: inset 0 0 0 8px rgba(0,0,0,0.06); }
.slide-content { position: relative; width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 40px; }
.eyebrow { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; margin: 0 0 16px; color: #8fb3ff; }
.eyebrow-light { color: #8fb3ff; }
.slide-title { font-size: clamp(2.6rem, 6.5vw, 5rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; margin: 0 0 16px; max-width: 14ch; }
.slide-sub { font-size: 1.15rem; opacity: 0.85; margin: 0 0 18px; max-width: 520px; }
.slide-price { font-size: 1.6rem; font-weight: 700; margin: 0 0 30px; }
.slide .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-nav { position: absolute; bottom: 34px; left: 0; right: 0; z-index: 3; display: flex; justify-content: center; align-items: center; gap: 22px; }
.arrow { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.5); background: rgba(0,0,0,0.2); color: #fff; font-size: 1.1rem; cursor: pointer; }
.arrow:hover { border-color: #fff; }
.dots { display: flex; gap: 8px; align-items: center; }
.dot { width: 8px; height: 8px; border-radius: 4px; border: none; padding: 0; cursor: pointer; background: rgba(255,255,255,0.4); transition: width 0.25s ease, background 0.25s ease; }
.dot[aria-current="true"] { width: 26px; background: #fff; }

/* Search */
.search-wrap { position: relative; z-index: 5; max-width: 1040px; margin: -44px auto 0; padding: 0 24px; }
.search-card { background: #fff; border-radius: 18px; box-shadow: 0 20px 50px rgba(0,0,0,0.14); padding: 12px; display: grid; grid-template-columns: 2.2fr 1.2fr 1fr auto; gap: 8px; align-items: end; }
.field { display: grid; gap: 4px; padding: 10px 14px; border-radius: 12px; background: var(--surface); }
.field span { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.field input, .field select { border: none; background: transparent; padding: 2px 0; font-size: 0.98rem; }
.field input:focus, .field select:focus { outline: none; }
.search-btn { padding: 16px 32px; height: 100%; }
@media (max-width: 860px) { .search-card { grid-template-columns: 1fr 1fr; } .field-wide { grid-column: 1 / -1; } .search-btn { grid-column: 1 / -1; } }

/* Trust band */
.trust-band { max-width: 1120px; margin: 72px auto 0; padding: 0 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.trust-band div { border-left: 3px solid var(--accent); padding-left: 16px; }
.trust-band strong { display: block; font-size: 1rem; font-weight: 700; }
.trust-band span { color: var(--muted); font-size: 0.92rem; }

/* Listing */
.listing { max-width: 1120px; margin: 88px auto 0; padding: 0 24px; scroll-margin-top: 20px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head h2 { font-size: 2.1rem; }
.count { color: var(--muted); margin: 0; font-size: 0.92rem; }
.sort select { width: auto; padding: 10px 14px; border-radius: 999px; font-size: 0.92rem; }
.tabs { display: inline-flex; background: var(--surface); padding: 5px; border-radius: 999px; margin-bottom: 28px; }
.tabs a { padding: 9px 22px; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.92rem; }
.tabs a.active { background: #fff; color: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.empty { text-align: center; padding: 56px 20px; background: var(--surface); border-radius: var(--radius); }
.empty p { margin: 0 0 18px; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px; }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,0.08); }
.card-media { position: relative; aspect-ratio: 1 / 1; background: var(--surface); display: flex; align-items: center; justify-content: center; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 14px; left: 14px; font-size: 0.72rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; letter-spacing: 0.04em; }
.badge-live { background: #e8f0ff; color: var(--accent); }
.badge-sold { background: var(--ink); color: #fff; }
.card-body { padding: 20px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.card-tag { font-size: 0.78rem; color: var(--muted); margin: 0 0 6px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.card-body h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 6px; line-height: 1.3; }
.card-grade { font-size: 0.85rem; margin: 0 0 10px; color: var(--text); font-weight: 500; }
.card-desc { font-size: 0.88rem; color: var(--muted); margin: 0 0 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.card-price { font-size: 1.15rem; font-weight: 800; color: var(--accent); }

/* Sell band */
.sell-band { max-width: 1120px; margin: 96px auto 0; padding: 56px 48px; background: var(--ink); color: #fff; border-radius: 24px; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.sell-band h2 { color: #fff; font-size: 2rem; }
.sell-band p { color: #c9c9c9; max-width: 520px; margin: 0; }
.sell-band .eyebrow { margin-bottom: 10px; }

/* About */
.about { max-width: 720px; margin: 96px auto 0; padding: 0 24px; text-align: left; }
.about .eyebrow { color: var(--accent); }
.about p { color: var(--muted); font-size: 1.05rem; }

@media (max-width: 860px) {
  .site-header { padding: 18px 20px; }
  .site-nav { display: none; }
  .hero { height: 76vh; min-height: 540px; }
  .slide-content { padding: 0 24px; }
  .hello { display: none; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .sell-band { padding: 36px 26px; }
  .card-body { padding: 14px; }
  .card-price { font-size: 1rem; }
  .card-desc { display: none; }
  .account .pill:not(.pill-solid) { display: none; }
}

/* ===== Cart and checkout ===== */
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }
.btn-sm:disabled { background: var(--border); color: var(--muted); cursor: default; }
.btn.wide { display: block; text-align: center; width: 100%; }
.btn:disabled { opacity: 1; }
.note { color: var(--muted); font-size: 0.88rem; margin: 14px 0 0; }
.cart-layout, .checkout-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; margin-top: 24px; }
.cart-list { display: grid; gap: 0; }
.cart-item { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.cart-item:first-child { border-top: 1px solid var(--border); }
.cart-meta { display: block; color: var(--muted); font-size: 0.88rem; }
.cart-right { display: flex; align-items: center; gap: 22px; }
.card-price { font-weight: 800; color: var(--accent); }
.summary { background: var(--surface); border-radius: var(--radius); padding: 28px; position: sticky; top: 20px; }
.summary h2 { font-size: 1.2rem; margin-bottom: 16px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
.sum-row.total { border-bottom: none; font-weight: 800; font-size: 1.1rem; padding-top: 16px; }
.checkout-form { max-width: none; background: none; padding: 0; border: none; }
.checkout-form h2 { font-size: 1.2rem; margin: 12px 0 0; }
.radio-card { display: flex; align-items: flex-start; gap: 14px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; font-weight: 500; }
.radio-card input { width: auto; margin-top: 4px; }
.radio-card span { display: grid; gap: 2px; }
.radio-card small { color: var(--muted); font-weight: 400; font-size: 0.86rem; }
.radio-card:has(input:checked) { border-color: var(--accent); background: #f5f8ff; }
.checkout-form .btn { justify-self: start; margin-top: 8px; }
.done { max-width: 680px; }
.box { background: var(--surface); border-radius: var(--radius); padding: 24px; margin: 20px 0; }
.box h2 { font-size: 1.1rem; margin-bottom: 10px; }
.box .sum-row { border-bottom: 1px solid var(--border); }
@media (max-width: 860px) {
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
}

/* ===== Orders ===== */
.order-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; }
.order-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.muted { color: var(--muted); font-size: 0.85rem; margin-left: 8px; }
.order-info { color: var(--muted); font-size: 0.92rem; margin: 0 0 14px; }
.order-items { list-style: none; padding: 0; margin: 0 0 14px; }
.order-items li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
.order-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.order-foot select { width: auto; padding: 8px 12px; border-radius: 8px; }
.status { font-size: 0.75rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em; background: var(--surface); }
.status-pending { background: #fff4e0; color: #8a5a00; }
.status-paid { background: #e6f4ea; color: #1e6b34; }
.status-shipped { background: #e8f0ff; color: var(--accent); }
.status-cancelled { background: #fde8e8; color: var(--danger); }

/* Notices */
.notice { background: #e6f4ea; color: #1e6b34; padding: 14px 16px; border-radius: 10px; font-weight: 500; max-width: 520px; }

/* Admin photo upload */
.thumb { width: 120px; height: 120px; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); }
.form label small { font-weight: 400; }

/* Header: solid white bar above the slider, height matched to the logo */
.site-header { position: relative; background: #fff; color: var(--text); padding: 10px 40px; min-height: 76px; border-bottom: 1px solid var(--border); }
.brand { background: none; padding: 0; border-radius: 0; box-shadow: none; }
.brand img { height: 56px; width: auto; }
.site-nav a { color: var(--text); white-space: nowrap; }
.site-nav a:hover { opacity: 1; color: var(--accent); text-decoration: none; }
.account { flex-wrap: nowrap; }
.account .hello { color: var(--text); white-space: nowrap; font-size: 0.85rem; }
.account .pill { color: var(--text); border: 1px solid var(--text); padding: 8px 14px; font-size: 0.85rem; white-space: nowrap; }
.account .pill:hover { border-color: var(--accent); color: var(--accent); }
.account .pill-solid { background: var(--text); color: #fff; border-color: var(--text); }
.account .pill-solid:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.hero { margin-top: 0; }

/* Keep the header visible while scrolling */
.site-header { position: sticky; top: 0; z-index: 30; }
