/* გემრიელობები — საერთო სტილები (მაღაზია + ავტორიზაციის გვერდები) */
:root {
  --amber: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-100: #fef3c7;
  --amber-50: #fffbeb;
  --amber-200: #fde68a;
  --ink: #2b1707;
  --ink-soft: #5b4636;
  --muted: #7c6f64;
  --bg: #faf7f2;
  --card: #ffffff;
  --line: #ebe4d8;
  --line-strong: #d9cfbf;
  --green: #047857;
  --green-50: #ecfdf5;
  --red: #b91c1c;
  --red-50: #fef2f2;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(43, 23, 7, .05), 0 2px 8px rgba(43, 23, 7, .04);
  --shadow-md: 0 8px 28px rgba(43, 23, 7, .10);
  --shadow-lg: 0 24px 60px rgba(43, 23, 7, .22);
  --focus: 0 0 0 3px rgba(245, 158, 11, .45);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Noto Sans Georgian', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--amber-700); }
[hidden] { display: none !important; }
:focus-visible { outline: none; box-shadow: var(--focus); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ---------- ღილაკები ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1.5px solid transparent; border-radius: 999px; padding: 10px 18px;
  font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .1s, box-shadow .15s;
  min-height: 42px;
}
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--amber); color: var(--ink); box-shadow: 0 4px 14px rgba(245, 158, 11, .32); }
.btn-primary:hover:not([disabled]) { background: #fbb024; box-shadow: 0 6px 18px rgba(245, 158, 11, .42); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover:not([disabled]) { background: #45260f; }
.btn-ghost { background: #fff; border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover:not([disabled]) { border-color: var(--amber); background: var(--amber-50); }
.btn-text { background: none; border: none; color: var(--amber-700); font-weight: 700; padding: 6px 4px; min-height: 0; }
.btn-text:hover { text-decoration: underline; }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 22px; font-size: 16px; min-height: 52px; }
.icon { width: 20px; height: 20px; flex-shrink: 0; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: #fff;
  display: inline-flex; align-items: center; justify-content: center; color: var(--ink); text-decoration: none; position: relative;
}
.icon-btn:hover { border-color: var(--amber); background: var(--amber-50); }

/* ---------- ველები ---------- */
.field { display: block; margin-bottom: 14px; }
.field > span, .field-label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--ink-soft); }
.input, .field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--line-strong);
  background: #fff; font-size: 16px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.input:focus, .field input:focus, .field textarea:focus, .field select:focus { border-color: var(--amber); box-shadow: var(--focus); }
.field textarea { resize: vertical; min-height: 64px; }
.field.invalid input, .field.invalid textarea { border-color: var(--red); background: var(--red-50); }
.field-error { display: none; color: var(--red); font-size: 12.5px; font-weight: 600; margin-top: 5px; }
.field.invalid .field-error { display: block; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

/* ---------- ჰედერი ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(250, 247, 242, .92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 900; font-size: 19px; letter-spacing: -.2px; }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(135deg, #fde68a, #f59e0b); display: grid; place-items: center; font-size: 20px; box-shadow: 0 3px 10px rgba(245, 158, 11, .35); }
.header-nav { display: flex; align-items: center; gap: 4px; }
.nav-link { color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 14px; padding: 8px 12px; border-radius: 999px; background: none; border: none; }
.nav-link:hover { background: var(--amber-100); color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.cart-badge {
  position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--bg);
}
.cart-badge.bump { animation: bump .35s ease; }
@keyframes bump { 40% { transform: scale(1.35); } }
.user-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; padding: 8px 14px; }
.user-chip span { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- ჰერო ---------- */
.hero { padding: 28px 0 8px; }
.hero-card {
  position: relative; overflow: hidden; border-radius: 28px; padding: 44px 32px 40px; text-align: center;
  background: radial-gradient(120% 140% at 85% 0%, #fff7dc 0%, #fde9b0 48%, #f9c97a 100%);
  border: 1px solid #f6dc9c;
}
.hero-card::after {
  content: ""; position: absolute; inset: auto -80px -120px auto; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(180, 83, 9, .16), transparent 68%); pointer-events: none;
}
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .85); color: #7c2d12; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; margin-bottom: 16px; }
.hero h1 { margin: 0 auto 12px; font-size: clamp(26px, 4.6vw, 42px); line-height: 1.18; font-weight: 900; letter-spacing: -.5px; color: #5a1f06; max-width: 760px; }
.hero p.lead { margin: 0 auto 22px; max-width: 660px; color: #7a3a12; font-size: 16px; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 26px; }
.chip { background: rgba(255, 255, 255, .78); border: 1px solid rgba(180, 83, 9, .18); color: #6b2a0b; padding: 6px 13px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.chip::before { content: "✓ "; color: var(--green); font-weight: 900; }
.search { display: block; position: relative; max-width: 500px; margin: 0 auto; z-index: 1; }
.search .icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input { width: 100%; padding: 15px 20px 15px 48px; border-radius: 999px; border: 2px solid transparent; background: #fff; font-size: 16px; outline: none; box-shadow: 0 8px 26px rgba(120, 53, 15, .14); }
.search input:focus { border-color: var(--amber); }

/* ---------- კატალოგი ---------- */
.section { padding: 34px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.section-head h2 { margin: 0; font-size: 24px; font-weight: 900; letter-spacing: -.3px; }
.section-head .count { color: var(--muted); font-size: 14px; font-weight: 600; }
.cat-row { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 14px; margin: 0 -2px; scrollbar-width: none; }
.cat-row::-webkit-scrollbar { display: none; }
.cat-chip { flex-shrink: 0; border: 1.5px solid var(--line-strong); background: #fff; padding: 9px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--ink-soft); min-height: 40px; }
.cat-chip:hover { border-color: var(--amber); }
.cat-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s; position: relative;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--amber-200); }
.card-media { display: block; width: 100%; aspect-ratio: 4 / 3; background: var(--amber-100); border: none; padding: 0; overflow: hidden; position: relative; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-media img { transform: scale(1.04); }
.card-media .ph { width: 100%; height: 100%; display: grid; place-items: center; font-size: 46px; }
.badge-sale { position: absolute; top: 12px; left: 12px; background: var(--red); color: #fff; font-weight: 800; font-size: 12.5px; padding: 4px 10px; border-radius: 999px; z-index: 2; }
.card-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title { margin: 0; font-size: 17px; font-weight: 800; line-height: 1.3; }
.card-title button { background: none; border: none; padding: 0; font: inherit; color: inherit; text-align: left; }
.card-title button:hover { color: var(--amber-700); }
.card-desc { margin: 0; color: var(--muted); font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { font-size: 12px; font-weight: 700; color: var(--amber-700); }
.card-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; }
.price { display: flex; flex-direction: column; line-height: 1.15; }
.price .old { text-decoration: line-through; color: var(--muted); font-size: 13px; font-weight: 600; }
.price .now { font-size: 22px; font-weight: 900; white-space: nowrap; }
.price .now small { font-size: 12px; font-weight: 600; color: var(--muted); }
.price.sale .now { color: var(--red); }
.card .btn.in-cart { background: var(--green-50); color: var(--green); border-color: #a7f3d0; box-shadow: none; }

.empty { grid-column: 1 / -1; text-align: center; padding: 54px 20px; background: #fff; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); }
.empty strong { display: block; color: var(--ink); font-size: 17px; margin-bottom: 4px; }
.skeleton { border-radius: var(--radius); background: linear-gradient(100deg, #f1ebe0 30%, #f8f4ec 50%, #f1ebe0 70%); background-size: 200% 100%; animation: shimmer 1.3s infinite; height: 340px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- როგორ მუშაობს ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; counter-increment: step; }
.step::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--amber-100); color: var(--amber-700); font-weight: 900; margin-bottom: 12px; }
.step h3 { margin: 0 0 6px; font-size: 16px; font-weight: 800; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- ფუტერი ---------- */
.site-footer { margin-top: 40px; background: #2b1707; color: #f5e9d6; padding: 44px 0 100px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.site-footer h3 { margin: 0 0 10px; font-size: 14px; text-transform: uppercase; letter-spacing: .8px; color: #d9b98a; }
.site-footer p { margin: 0 0 8px; color: #cdbba3; font-size: 14.5px; }
.footer-phone { display: inline-flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 900; color: #fcd34d; text-decoration: none; margin: 4px 0 8px; }
.footer-phone:hover { color: #fde68a; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-links a { color: #f5e9d6; text-decoration: none; font-size: 14.5px; }
.footer-links a:hover { color: #fcd34d; text-decoration: underline; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.social { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff; transition: background .15s, transform .15s; }
.social:hover { background: var(--amber); color: var(--ink); transform: translateY(-2px); }
.social svg { width: 22px; height: 22px; fill: currentColor; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 28px; padding-top: 18px; font-size: 13px; color: #a8957c; }

/* ---------- მოდალები / drawer ---------- */
.overlay { position: fixed; inset: 0; z-index: 100; display: none; }
.overlay.open { display: block; }
.overlay-bg { position: absolute; inset: 0; background: rgba(43, 23, 7, .55); backdrop-filter: blur(3px); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.close-btn { width: 40px; height: 40px; border-radius: 50%; border: none; background: #f3ede3; display: grid; place-items: center; color: var(--ink-soft); flex-shrink: 0; }
.close-btn:hover { background: var(--amber-100); color: var(--ink); }

.dialog {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(94vw, 560px); max-height: 92vh; overflow-y: auto;
  background: #fff; border-radius: 24px; box-shadow: var(--shadow-lg); animation: pop .22s cubic-bezier(.16, 1, .3, 1);
}
.dialog.wide { width: min(94vw, 860px); }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -46%) scale(.97); } }
.dialog-pad { padding: 26px; }
.dialog .close-btn { position: absolute; top: 14px; right: 14px; z-index: 3; }

.product-view { display: grid; grid-template-columns: 1fr 1fr; }
.product-view .media { background: var(--amber-50); min-height: 320px; }
.product-view .media img { width: 100%; height: 100%; object-fit: cover; }
.product-view .media .ph { height: 100%; min-height: 320px; display: grid; place-items: center; font-size: 80px; }
.product-view .info { padding: 28px 26px; display: flex; flex-direction: column; gap: 12px; }
.product-view h2 { margin: 0; font-size: 24px; font-weight: 900; line-height: 1.25; padding-right: 36px; }
.tag { display: inline-block; background: var(--amber-100); color: var(--amber-700); font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; width: fit-content; }
.product-view .desc { margin: 0; color: var(--ink-soft); font-size: 14.5px; }
.kv { border-top: 1px solid var(--line); }
.kv div { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kv div span { color: var(--muted); }
.kv div strong { text-align: right; }
.presets { display: flex; flex-wrap: wrap; gap: 6px; }
.preset { border: 1.5px solid var(--line-strong); background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 700; }
.preset:hover, .preset[aria-pressed="true"] { border-color: var(--amber); background: var(--amber-50); }
.buy-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.buy-row .total { font-size: 22px; font-weight: 900; margin-left: auto; }

.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line-strong); border-radius: 12px; overflow: hidden; background: #fff; }
.stepper button { width: 40px; height: 42px; border: none; background: #f7f2e9; font-size: 18px; font-weight: 700; }
.stepper button:hover { background: var(--amber-100); }
.stepper input { width: 54px; height: 42px; border: none; text-align: center; font-weight: 800; font-size: 16px; outline: none; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.drawer {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(100vw, 480px); background: var(--bg); display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg); animation: slide .26s cubic-bezier(.16, 1, .3, 1);
}
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; background: #fff; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 19px; font-weight: 900; }
.drawer-steps { display: flex; gap: 6px; padding: 12px 20px 0; }
.drawer-steps span { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.drawer-steps span.on { background: var(--amber); }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 20px 24px; }
.drawer-foot { padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
.cart-line { display: grid; grid-template-columns: 60px 1fr; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px; margin-bottom: 10px; }
.cart-line .thumb { width: 60px; height: 60px; border-radius: 12px; object-fit: cover; background: var(--amber-100); display: grid; place-items: center; font-size: 24px; }
.cart-line .name { font-weight: 800; font-size: 15px; line-height: 1.3; }
.cart-line .unit { color: var(--muted); font-size: 12.5px; }
.cart-line .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.cart-line .sum { font-weight: 900; font-size: 16px; }
.cart-line .stepper button { height: 36px; width: 34px; }
.cart-line .stepper input { height: 36px; width: 46px; font-size: 15px; }
.remove { background: none; border: none; color: var(--muted); font-size: 12.5px; font-weight: 700; padding: 4px 0; text-decoration: underline; }
.remove:hover { color: var(--red); }
.promo-row { display: flex; gap: 8px; margin-top: 14px; }
.promo-row input { flex: 1; text-transform: uppercase; }
.note { font-size: 13px; font-weight: 600; margin-top: 6px; min-height: 18px; }
.note.ok { color: var(--green); }
.note.err { color: var(--red); }
.summary { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; margin-top: 14px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; padding: 3px 0; color: var(--ink-soft); }
.sum-row.save { color: var(--green); font-weight: 700; }
.sum-row.total { font-size: 18px; font-weight: 900; color: var(--ink); border-top: 1px dashed var(--line-strong); margin-top: 8px; padding-top: 10px; }
.form-title { margin: 6px 0 12px; font-size: 15px; font-weight: 900; }
.map-toggle { margin: -4px 0 12px; }
#mapBox { margin-bottom: 14px; }
#deliveryMap { width: 100%; height: 220px; border-radius: 14px; border: 1.5px solid var(--line-strong); background: #eee6d8; z-index: 1; }
.map-tools { display: flex; gap: 8px; margin-bottom: 8px; }
.map-tools input { flex: 1; min-width: 0; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.pay-note { background: var(--amber-50); border: 1px dashed var(--amber-200); border-radius: 12px; padding: 12px 14px; font-size: 13.5px; color: #7c2d12; margin: 4px 0 0; }
.foot-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; font-weight: 800; }
.foot-total b { font-size: 22px; font-weight: 900; }
.alert { border-radius: 12px; padding: 10px 14px; font-size: 13.5px; font-weight: 600; margin-bottom: 12px; }
.alert.err { background: var(--red-50); color: var(--red); border: 1px solid #fecaca; }
.alert.info { background: var(--amber-50); color: #7c2d12; border: 1px solid var(--amber-200); }
.alert.ok { background: var(--green-50); color: var(--green); border: 1px solid #a7f3d0; }

.success { text-align: center; }
.success .tick { width: 68px; height: 68px; border-radius: 50%; background: var(--green-50); color: var(--green); display: grid; place-items: center; margin: 0 auto 14px; }
.success h2 { margin: 0 0 6px; font-size: 24px; font-weight: 900; }
.success p { margin: 0 0 18px; color: var(--muted); }
.receipt { text-align: left; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 16px; font-size: 14.5px; margin-bottom: 18px; }
.receipt .sum-row { padding: 4px 0; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-row .btn { flex: 1; }

/* ---------- საპორტი ---------- */
.support { position: fixed; right: 20px; bottom: 20px; z-index: 60; }
.support-fab { width: 56px; height: 56px; border-radius: 50%; border: none; background: var(--green); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 26px rgba(4, 120, 87, .4); }
.support-fab:hover { background: #059669; }
.support-menu { position: absolute; right: 0; bottom: 68px; width: 280px; background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); padding: 14px; display: none; }
.support-menu.open { display: block; animation: fade .15s; }
.support-menu h3 { margin: 0 0 4px; font-size: 15px; }
.support-menu p { margin: 0 0 10px; font-size: 13px; color: var(--muted); }
.support-link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 14px; border: 1px solid var(--line); margin-top: 8px; }
.support-link:hover { border-color: var(--amber); background: var(--amber-50); }
.support-link svg { width: 22px; height: 22px; }

/* ---------- toast ---------- */
#toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 300; display: flex; flex-direction: column; gap: 8px; align-items: center; width: max-content; max-width: calc(100vw - 32px); pointer-events: none; }
.toast { pointer-events: auto; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 14px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 12px; animation: toastIn .25s; }
.toast.err { background: var(--red); }
.toast button { background: none; border: none; color: #fcd34d; font-weight: 800; padding: 0; white-space: nowrap; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } }

/* ---------- ავტორიზაციის გვერდები ---------- */
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: min(100%, 420px); background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 32px 28px; box-shadow: var(--shadow-md); }
.auth-card .brand { justify-content: center; width: 100%; margin-bottom: 18px; }
.auth-card h1 { margin: 0 0 4px; font-size: 24px; font-weight: 900; text-align: center; }
.auth-card .sub { margin: 0 0 22px; text-align: center; color: var(--muted); font-size: 14.5px; }
.auth-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; }
.auth-links a { font-weight: 700; text-decoration: none; }
.auth-links a:hover { text-decoration: underline; }
.back-home { display: block; text-align: center; margin-top: 16px; color: var(--muted); font-size: 13.5px; text-decoration: none; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 76px; }
.pw-wrap button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--amber-700); font-size: 12.5px; font-weight: 700; padding: 6px; }

/* ---------- რესპონსივი ---------- */
@media (max-width: 860px) {
  .header-nav { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .brand { font-size: 16px; gap: 8px; min-width: 0; }
  .brand > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .brand-mark { width: 34px; height: 34px; font-size: 18px; flex-shrink: 0; }
  .header-inner { min-height: 58px; }
  .header-actions { gap: 6px; flex-shrink: 0; }
  #cartBtn { width: 44px; min-height: 44px; padding: 0; }
  #cartBtn .lbl { display: none; }
  .icon-btn { width: 40px; height: 40px; }
  .hero { padding-top: 16px; }
  .hero-card { padding: 30px 18px 28px; border-radius: 22px; }
  .hero p.lead { font-size: 15px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-body { padding: 12px; }
  .card-title { font-size: 15px; }
  .card-desc { display: none; }
  .price .now { font-size: 19px; }
  .card-foot { flex-direction: column; align-items: stretch; }
  .card-foot .btn { width: 100%; }
  .user-chip span { display: none; }
  .user-chip { width: 40px; min-height: 40px; padding: 0; }
  .product-view { grid-template-columns: 1fr; }
  .product-view .media, .product-view .media .ph { min-height: 220px; max-height: 260px; }
  .dialog { top: auto; bottom: 0; left: 0; transform: none; width: 100%; max-height: 94vh; border-radius: 24px 24px 0 0; animation: sheet .26s cubic-bezier(.16, 1, .3, 1); }
  @keyframes sheet { from { transform: translateY(40px); opacity: 0; } }
  .product-view .info { padding: 20px 18px 24px; }
  .support { right: 14px; bottom: 14px; }
}
@media (max-width: 360px) { .grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
@media print { .site-header, .support, .site-footer, #toasts { display: none !important; } }

/* ---------- პირადი გვერდი ---------- */
.acc-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 26px 0 18px; }
.acc-head h1 { margin: 0; font-size: 26px; font-weight: 900; letter-spacing: -.3px; }
.acc-head p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.acc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.acc-stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-sm); }
.acc-stat .l { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.acc-stat .v { font-size: 24px; font-weight: 900; letter-spacing: -.4px; margin-top: 2px; }
.acc-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.acc-tabs::-webkit-scrollbar { display: none; }
.acc-tab { background: none; border: none; border-bottom: 3px solid transparent; padding: 12px 14px; font-weight: 700; font-size: 15px; color: var(--muted); white-space: nowrap; }
.acc-tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--amber); }
.acc-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); margin-bottom: 16px; }
.acc-panel h2 { margin: 0 0 4px; font-size: 18px; font-weight: 800; }
.acc-panel .d { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.acc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.acc-order { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.acc-order-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.acc-order-top b { font-size: 15.5px; }
.acc-order-top small { display: block; color: var(--muted); font-size: 13px; }
.st { display: inline-flex; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.st[data-s="ახალი"] { background: var(--amber-100); color: #92400e; }
.st[data-s="მზადდება"] { background: #eff6ff; color: #1d4ed8; }
.st[data-s="გზაშია"] { background: #f5f3ff; color: #6d28d9; }
.st[data-s="დასრულებული"] { background: var(--green-50); color: var(--green); }
.st[data-s="გაუქმებული"] { background: #f5f5f4; color: #57534e; }
.acc-items { margin: 12px 0; border-top: 1px solid var(--line); }
.acc-items div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.acc-order-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.acc-order-foot .t { font-size: 19px; font-weight: 900; }
.acc-order-foot .a { font-size: 13px; color: var(--muted); margin-top: 2px; max-width: 420px; }
.danger-zone { border-color: #fecaca; }
.btn-danger { background: #fff; border-color: #fecaca; color: var(--red); }
.btn-danger:hover:not([disabled]) { background: var(--red-50); }
@media (max-width: 720px) { .acc-stats { grid-template-columns: 1fr 1fr; } .acc-grid { grid-template-columns: 1fr; } .acc-panel { padding: 18px 16px; } .acc-head h1 { font-size: 22px; } }

/* ---------- მიღების ხერხის არჩევა ---------- */
.opts { display: grid; gap: 10px; }
.opt { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; text-align: left; width: 100%; background: #fff; border: 2px solid var(--line-strong); border-radius: 16px; padding: 14px 16px 14px 46px; position: relative; min-height: 64px; transition: border-color .15s, background .15s; }
.opt::before { content: ""; position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; border: 2px solid var(--line-strong); background: #fff; }
.opt:hover { border-color: var(--amber); }
.opt[aria-checked="true"] { border-color: var(--amber); background: var(--amber-50); }
.opt[aria-checked="true"]::before { border-color: var(--amber-700); background: radial-gradient(circle, var(--amber-700) 0 45%, #fff 50%); }
.opt-t { font-weight: 800; font-size: 15.5px; grid-column: 1; }
.opt-d { font-size: 13px; color: var(--muted); grid-column: 1; }
.opt-d:empty { display: none; }
.opt-p { grid-column: 2; grid-row: 1 / span 2; font-weight: 900; font-size: 16px; white-space: nowrap; }
.opt-p.free { color: var(--green); }
