/* Zarde retail surface. Checkout, scanner and reconciliation state remain in JS. */
@font-face {
  font-family: 'Noto Sans Georgian';
  src: url('/fonts/NotoSansGeorgian.ttf') format('truetype');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  font-family: 'Noto Sans Georgian', ui-sans-serif, system-ui, sans-serif;
  --ink: #172b42;
  --soft: #59697c;
  --line: #e1e6ec;
  --paper: #fff;
  --dark: #102033;
  --accent: #1ddce5;
  --accent-dark: #195cb3;
  --danger: #bd3648;
  color: var(--ink);
  background: #f5f6f8;
}
body { background: #f5f6f8; color: var(--ink); font-size: 14px; line-height: 1.6; }
button, input, select, textarea { font: inherit; }
button, input, select, textarea, a { touch-action: manipulation; }
button, input, select, textarea { transition: background-color 140ms, border-color 140ms, box-shadow 140ms; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid #195cb370; outline-offset: 3px; }
.topbar { min-height: 76px; height: auto; padding: 16px 24px; gap: 20px; background: var(--dark); border-color: #ffffff12; }
.brand { gap: 12px; }
.brand-mark { background: transparent; border-radius: 0; width: 36px; height: 36px; }
.brand-mark img { display: block; object-fit: contain; }
.brand strong { letter-spacing: .04em; font-size: 18px; font-weight: 650; }
.brand span:not(.brand-mark) { color: #acbbce; font-size: 12px; }
.topbar-actions { gap: 8px; }
.topbar .ghost-button, .topbar .icon-button { border-color: #ffffff26; color: #e2e9f2; border-radius: 8px; min-height: 42px; font-size: 13px; }
.topbar button:hover:not(:disabled) { background: #ffffff0c; border-color: #ffffff45; }
.workspace { grid-template-columns: minmax(0, 1fr) 380px; }
.catalog-panel { padding: 28px; }
.search-wrap { height: 54px; border-radius: 10px; box-shadow: 0 1px 3px #172b4205; }
.search-wrap:focus-within { border-color: #8eafd5; box-shadow: 0 0 0 3px #195cb310; }
.search-wrap input { font-size: 15px; }
.section-heading { margin-block: 28px 18px; }
.section-heading h1, .cart-head h2 { font-size: 23px; line-height: 1.5; font-weight: 600; letter-spacing: -.02em; }
.eyebrow { color: var(--soft); font-weight: 550; font-size: 11px; letter-spacing: .04em; }
.muted { font-size: 13px; }
.product-grid { grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); gap: 14px; }
.product-card { min-height: 166px; border-radius: 10px; padding: 18px; color: var(--ink); box-shadow: 0 1px 2px #172b4203; transition: background-color 140ms, border-color 140ms, box-shadow 140ms; }
.product-card:hover:not(:disabled) { transform: none; border-color: #9ab4d1; background: #fbfcfe; box-shadow: 0 2px 6px #172b4208; }
.product-card:active:not(:disabled) { background: #edf3fa; border-color: var(--accent-dark); }
.product-name { font-size: 15px; font-weight: 600; line-height: 1.6; }
.variant { font-size: 13px; line-height: 1.6; }
.product-meta { flex-wrap: wrap; gap: 8px 12px; margin-top: auto; padding-top: 12px; }
.price { font-size: 21px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stock { font-size: 12px; min-width: 0; overflow-wrap: anywhere; }
.cart-panel { border-color: var(--line); }
.cart-head { padding: 24px; }
.cart-items { padding: 4px 22px; }
.cart-item { padding: 18px 2px; border-color: var(--line); }
.cart-item-title { font-size: 14px; font-weight: 600; line-height: 1.6; }
.cart-item-sub, .line-discount { font-size: 12px; }
.qty-control { gap: 8px; }
.qty-control button { width: 36px; height: 36px; border-radius: 7px; }
.qty-input { min-height: 36px; border-radius: 7px; font-size: 14px; font-weight: 550; }
.line-total { font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; }
.remove-line, .text-button { font-size: 12px; min-height: 32px; }
.cart-footer { padding: 22px 24px calc(22px + env(safe-area-inset-bottom)); }
.total-row { font-size: 14px; }
.total-row strong { font-size: 30px; font-weight: 650; font-variant-numeric: tabular-nums; }
.primary-button { background: var(--accent-dark); border-radius: 8px; min-height: 48px; font-size: 14px; font-weight: 600; }
.primary-button:hover:not(:disabled) { background: #144b94; }
.primary-button:active:not(:disabled) { background: #103e7b; }
.secure-note { font-size: 11px; color: var(--soft); }
.cart-empty strong { font-size: 15px; color: var(--ink); }
.cart-empty p { font-size: 13px; color: var(--soft); max-width: 240px; }
.modal { color: var(--ink); border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 24px 80px #10203330; max-height: calc(100dvh - 32px); overflow-y: auto; }
.modal::backdrop { background: #10203399; backdrop-filter: blur(4px); }
.modal h2 { font-size: 24px; font-weight: 600; line-height: 1.5; letter-spacing: -.02em; }
.modal label { font-size: 13px; font-weight: 550; color: var(--soft); }
.modal input, .modal select, .modal textarea { border-radius: 8px; min-height: 44px; border-color: var(--line); }
.modal-copy, .payment-box p, .return-helper, .refund-helper, .exchange-helper { font-size: 14px; line-height: 1.8; }
.payment-summary { background: #f2f5f9; border: 1px solid var(--line); border-radius: 10px; }
.payment-summary strong { font-size: 28px; font-weight: 650; font-variant-numeric: tabular-nums; }
.payment-tabs { background: #edf0f4; border: 1px solid var(--line); border-radius: 9px; }
.payment-tabs button { font: inherit; font-size: 13px; min-height: 42px; border-radius: 6px; font-weight: 550; }
.payment-tabs button.active { color: var(--accent-dark); box-shadow: 0 1px 3px #172b4212; }
.receipt-total { font-weight: 650; font-variant-numeric: tabular-nums; }
.receipt-meta, .receipt-lines { font-size: 13px; }
.receipt-check { color: #247257; background: #e9f4ee; }
.return-context, .exchange-context, .refund-context, .return-sale-summary > div, .exchange-sale-summary > div { background: #f2f5f9; color: var(--soft); }
.return-line, .refund-source-card, .exchange-line { border-radius: 9px; }
.return-line-copy strong { font-size: 14px; line-height: 1.6; }
.return-line-copy span, .return-line-copy small { font-size: 12px; }
.return-draft-status, .exchange-helper, .return-location-note { font-size: 13px; }
.retail-modal { padding: 28px; }
.retail-table th { background: #f7f9fb; font-size: 13px; }
.retail-table td { font-size: 14px; }
.retail-table tbody tr:hover { background: #f7f9fb; }
.retail-modal .ghost-button { border-radius: 8px; }
.drawer-total strong, .retail-stats b { font-weight: 650; }
.form-error { font-size: 13px; line-height: 1.7; }
.toast { background: #172b42; border-radius: 8px; font-size: 13px; padding: 12px 18px; }
dialog[open] { animation: pos-dialog-in 220ms cubic-bezier(.2,.7,.2,1); }
dialog[open]::backdrop { animation: pos-backdrop-in 180ms ease-out; }
@keyframes pos-dialog-in { from { opacity: 0; transform: translateY(8px) scale(.99); } to { opacity: 1; transform: none; } }
@keyframes pos-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 1100px) { .topbar { padding: 14px 20px; } .catalog-panel { padding: 22px; } }
@media (max-width: 860px) {
  .workspace { display: block; }
  .catalog-panel { padding: 22px 20px 60vh; }
  .cart-panel { min-height: 0; border-radius: 14px 14px 0 0; box-shadow: 0 -4px 24px #172b420a; }
  .cart-head { padding: 14px 20px; }
  .cart-head h2 { font-size: 19px; }
  .cart-items { padding-inline: 18px; }
  .cart-footer { padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); }
  .cart-item { padding-block: 14px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .topbar { padding: 14px; gap: 12px; }
  .topbar-actions { gap: 6px; }
  .topbar .ghost-button, .topbar .icon-button { min-height: 44px; font-size: 12px; }
  .catalog-panel { padding-inline: 14px; }
  .product-grid { gap: 10px; }
  .product-card { padding: 14px; min-height: 162px; }
  .product-name { font-size: 14px; }
  .price { font-size: 19px; }
  .stock { font-size: 11px; }
  .product-meta { flex-wrap: wrap; }
  .qty-control button { min-width: 40px; min-height: 40px; }
  .qty-input { min-height: 40px; }
  .modal input, .modal select, .modal textarea, .search-wrap input, .qty-input, .line-discount input { font-size: 16px; }
  .modal { max-height: calc(100dvh - 20px); }
  .return-modal, .exchange-modal { height: 100dvh; max-height: 100dvh; border-radius: 0; }
  .retail-modal { padding: 20px 16px; }
  .return-shell, .refund-shell, .exchange-shell { padding: 20px 16px; }
  .return-head h2, .refund-head h2, .exchange-head h2 { font-size: 22px; }
  .payment-tabs button { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
