:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e5e2da;
  --accent: #0f766e;
  --accent-2: #14b8a6;
  --accent-soft: #e6f4f1;
  --sale: #dc2626;
  --gold: #d97706;
  --radius: 16px;
  --shadow: 0 8px 24px rgba(15, 118, 110, .08);
  --shadow-lg: 0 20px 48px rgba(15, 118, 110, .14);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", "Noto Sans Georgian", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Topbar */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(247,245,240,.9); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; gap: 16px; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 900; }
.brand-word span { color: var(--accent); }
.search { flex: 1; max-width: 420px; display: flex; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 4px 4px 16px; }
.search input { flex: 1; border: none; outline: none; background: transparent; font-size: 14px; padding: 6px 0; }
.search button { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.top-link { font-size: 14px; color: var(--muted); font-weight: 600; }
.top-link:hover { color: var(--accent); }
.cart-btn { position: relative; width: 40px; height: 40px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); }
.cart-count { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--sale); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.cart-count:empty, .cart-count.zero { display: none; }

/* Hero */
.hero { padding: 48px 0 32px; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 16px; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.05; margin: 0 0 16px; font-weight: 900; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { font-size: 17px; color: var(--muted); max-width: 480px; margin: 0 0 24px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 12px; font-weight: 700; font-size: 15px; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(15,118,110,.25); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn-block { width: 100%; }
.hero-stats { display: flex; gap: 28px; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats b { font-size: 22px; font-weight: 900; color: var(--accent); }
.hero-stats span { font-size: 12px; color: var(--muted); }
.hero-art { display: grid; place-items: center; }
.hero-card { width: 260px; background: var(--surface); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); transform: rotate(3deg); }
.hero-card-img { height: 200px; display: grid; place-items: center; font-size: 72px; }
.hero-card-body { padding: 16px; }
.hero-card-body b { display: block; margin: 6px 0; font-size: 16px; }
.tag { font-size: 11px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 3px 8px; border-radius: 6px; }
.price-row { display: flex; align-items: baseline; gap: 8px; }
.price { font-size: 20px; font-weight: 900; color: var(--accent); }
.old { font-size: 13px; color: var(--muted); text-decoration: line-through; }

/* Categories */
.cats { padding: 8px 0 24px; }
.cat-pills { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.cat-pill { flex-shrink: 0; padding: 10px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; transition: all .15s; }
.cat-pill:hover { border-color: var(--accent); color: var(--accent); }
.cat-pill.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Products */
.products { padding: 24px 0 48px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.section-head h2 { font-size: 28px; margin: 6px 0 0; font-weight: 900; }
.sort { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.sort select { padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font: inherit; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-img { position: relative; height: 200px; display: grid; place-items: center; font-size: 64px; background: linear-gradient(135deg, #e6f4f1, #f0fdfa); }
.card-badge { position: absolute; top: 12px; left: 12px; font-size: 11px; font-weight: 700; color: #fff; background: var(--sale); padding: 4px 8px; border-radius: 6px; }
.card-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-cat { font-size: 11px; font-weight: 600; color: var(--accent); text-transform: uppercase; letter-spacing: .05em; }
.card-title { font-size: 16px; font-weight: 700; line-height: 1.3; margin: 0; }
.card-prices { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.card-price { font-size: 20px; font-weight: 900; color: var(--accent); }
.card-old { font-size: 13px; color: var(--muted); text-decoration: line-through; }
.card-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 10px; }
.card-btn { flex: 1; padding: 10px; border-radius: 10px; font-weight: 700; font-size: 13px; }
.card-btn.primary { background: var(--accent); color: #fff; }
.card-btn.secondary { background: var(--accent-soft); color: var(--accent); }
.card-btn:hover { opacity: .9; }

/* How */
.how { padding: 48px 0; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.how h2 { font-size: 28px; margin: 6px 0 28px; font-weight: 900; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { padding: 24px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.step-num { font-size: 32px; font-weight: 900; color: var(--accent); opacity: .4; }
.step h3 { margin: 8px 0 4px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; }

/* Trust */
.trust { padding: 32px 0; }
.trust-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust-item { display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); }
.trust-item span { font-size: 28px; }
.trust-item b { display: block; font-size: 14px; }
.trust-item p { margin: 0; font-size: 12px; color: var(--muted); }

/* Footer */
.footer { background: #1f2937; color: #e5e7eb; padding: 40px 0 20px; margin-top: 24px; }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 24px; }
.footer-brand .brand-mark { background: var(--accent-2); }
.footer-brand p { color: #9ca3af; font-size: 14px; margin: 8px 0 0; }
.footer-col h4 { margin: 0 0 10px; font-size: 14px; color: #fff; }
.footer-col a { display: block; color: #9ca3af; font-size: 14px; margin: 4px 0; }
.footer-col a:hover { color: #fff; }
.footer-bottom { grid-column: 1 / -1; border-top: 1px solid #374151; padding-top: 16px; margin-top: 8px; font-size: 12px; color: #6b7280; text-align: center; }

/* Cart drawer */
.drawer-backdrop, .modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 90; }
.cart-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(400px, 92vw); background: var(--surface); z-index: 100; transform: translateX(100%); transition: transform .25s; display: flex; flex-direction: column; box-shadow: -8px 0 32px rgba(0,0,0,.15); }
.cart-drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { margin: 0; font-size: 18px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.drawer-foot { padding: 16px 20px; border-top: 1px solid var(--line); }
.total-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 16px; }
.total-row b { font-size: 22px; color: var(--accent); }
.cart-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-item-img { width: 56px; height: 56px; border-radius: 10px; background: var(--accent-soft); display: grid; place-items: center; font-size: 26px; }
.cart-item-name { font-weight: 700; font-size: 14px; margin: 0; }
.cart-item-price { font-size: 13px; color: var(--muted); }
.qty { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.qty button { width: 26px; height: 26px; border-radius: 8px; background: var(--bg); font-weight: 700; }
.qty span { min-width: 20px; text-align: center; font-weight: 700; }
.remove { color: var(--sale); font-size: 12px; font-weight: 600; }
.empty-cart { text-align: center; color: var(--muted); padding: 40px 0; }
.empty-cart span { font-size: 48px; display: block; margin-bottom: 8px; }

/* Modals */
.modal { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 20px; }
.modal[hidden], .modal-backdrop[hidden], .drawer-backdrop[hidden] { display: none; }
.modal-card { background: var(--surface); border-radius: 20px; width: min(520px, 96vw); max-height: 90vh; overflow-y: auto; padding: 24px; position: relative; box-shadow: var(--shadow-lg); }
.modal-card.wide { width: min(640px, 96vw); }
.modal-close, .icon-btn { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 10px; background: var(--bg); display: grid; place-items: center; font-size: 16px; color: var(--muted); }
.modal-close:hover { color: var(--ink); }
.modal-body { padding-top: 8px; }

/* Product modal */
.prod-modal { display: grid; gap: 16px; }
.prod-modal-img { height: 220px; border-radius: 14px; background: linear-gradient(135deg, #e6f4f1, #f0fdfa); display: grid; place-items: center; font-size: 80px; }
.prod-modal h3 { margin: 0; font-size: 22px; }
.prod-modal .meta { font-size: 13px; color: var(--muted); }
.prod-modal .price-big { font-size: 28px; font-weight: 900; color: var(--accent); }
.prod-modal .old-big { font-size: 16px; color: var(--muted); text-decoration: line-through; margin-left: 8px; }
.prod-modal .desc { color: var(--muted); font-size: 14px; line-height: 1.6; }
.prod-modal .source { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--accent); font-weight: 600; margin-top: 8px; }
.prod-modal-actions { display: flex; gap: 10px; margin-top: 8px; }

/* Checkout */
.checkout h3 { margin: 0 0 16px; font-size: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: var(--surface); }
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); }
.pay-methods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 12px 0; }
.pay-method { padding: 12px; border: 1px solid var(--line); border-radius: 10px; text-align: left; font-size: 13px; font-weight: 600; background: var(--surface); }
.pay-method.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.order-summary { background: var(--bg); border-radius: 12px; padding: 14px; margin: 12px 0; font-size: 14px; }
.order-summary .row { display: flex; justify-content: space-between; margin: 4px 0; }
.order-summary .row.total { font-weight: 900; font-size: 16px; color: var(--accent); border-top: 1px solid var(--line); padding-top: 8px; margin-top: 8px; }
.notice { background: #fef3c7; border: 1px solid #fde68a; border-radius: 10px; padding: 12px; font-size: 13px; color: #92400e; margin: 12px 0; }
.success-box { text-align: center; padding: 24px; }
.success-box .icon { font-size: 56px; }
.success-box h3 { margin: 8px 0; }
.success-box p { color: var(--muted); font-size: 14px; }

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero-art { display: none; }
  .steps { grid-template-columns: 1fr; }
  .trust-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .top-link { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .pay-methods { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .card-img { height: 150px; font-size: 48px; }
  .trust-inner { grid-template-columns: 1fr; }
}
