/* mchina — dükan stili
   Reňkler: nefrit ýaşyl (Hytaý jady) + çyra altyny, sowuk kagyz fon */
:root {
  --jade: #0E5A4B;
  --jade-d: #093B32;
  --jade-l: #E4EFEA;
  --gold: #E6A93A;
  --gold-d: #B67E16;
  --paper: #F4F5F1;
  --card: #FFFFFF;
  --ink: #16201D;
  --muted: #5D6A65;
  --line: #DCE2DD;
  --red: #C23F2A;
  --r-lg: 20px;
  --r: 14px;
  --r-sm: 9px;
  --f-d: 'Unbounded', 'Golos Text', system-ui, sans-serif;
  --f-b: 'Golos Text', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.55 var(--f-b);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
a { color: var(--jade); text-decoration: none; }
a:hover { color: var(--jade-d); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.pre { white-space: pre-line; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--gold); color: var(--ink); padding: 6px 12px; border-radius: 8px; }

/* ---------- header ---------- */
.top { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.top-row { display: flex; align-items: center; gap: 20px; height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); flex-shrink: 0; }
.seal {
  width: 38px; height: 38px; border-radius: 10px; background: var(--jade); color: var(--gold);
  display: grid; place-items: center; font: 700 20px/1 var(--f-d);
  box-shadow: inset 0 0 0 2px var(--jade-d), inset 0 0 0 4px rgba(230,169,58,.35);
}
.word { font: 700 20px/1 var(--f-d); letter-spacing: -.02em; display: flex; flex-direction: column; gap: 3px; }
.word small { font: 500 11px/1 var(--f-b); color: var(--muted); letter-spacing: 0; }
.logo-light .word { color: #fff; }
.search { flex: 1; display: flex; max-width: 560px; background: var(--paper); border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; transition: border-color .15s; }
.search:focus-within { border-color: var(--jade); }
.search input { flex: 1; border: 0; background: none; padding: 11px 14px; min-width: 0; outline: none; }
.search button { border: 0; background: none; padding: 0 14px; color: var(--jade); cursor: pointer; }
.actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.lang { display: flex; border: 1.5px solid var(--line); border-radius: 9px; overflow: hidden; }
.lang a { padding: 6px 9px; font-size: 13px; font-weight: 600; color: var(--muted); }
.lang a.on { background: var(--jade); color: #fff; }
.icon-btn {
  position: relative; width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 11px; color: var(--ink); border: 0; background: none; cursor: pointer;
}
.icon-btn:hover { background: var(--jade-l); color: var(--jade-d); }
.icon-btn.danger:hover { background: #FBE7E3; color: var(--red); }
.badge {
  position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700;
  display: grid; place-items: center; border: 2px solid var(--card);
}
.badge[hidden] { display: none; }
.text-link { font-weight: 600; padding: 8px 10px; }
.cart-btn {
  display: flex; align-items: center; gap: 8px; background: var(--jade); color: #fff;
  padding: 10px 16px; border-radius: 12px; font-weight: 600;
}
.cart-btn:hover { background: var(--jade-d); color: #fff; }
.cart-btn b { background: var(--gold); color: var(--ink); border-radius: 8px; padding: 0 7px; font-size: 13px; line-height: 20px; }
.catbar { border-top: 1px solid var(--line); }
.catbar-row { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 6px 0; }
.catbar-row::-webkit-scrollbar { display: none; }
.catbar a { white-space: nowrap; padding: 6px 12px; border-radius: 999px; color: var(--muted); font-size: 14px; font-weight: 500; display: flex; gap: 6px; align-items: center; }
.catbar a:hover { color: var(--ink); background: var(--paper); }
.catbar a.on { background: var(--jade-l); color: var(--jade-d); font-weight: 600; }

/* ---------- toasts ---------- */
.toasts { position: fixed; top: 84px; right: 16px; z-index: 50; display: grid; gap: 8px; max-width: min(380px, calc(100% - 32px)); }
.toast {
  background: var(--ink); color: #fff; padding: 12px 12px 12px 16px; border-radius: 12px;
  display: flex; gap: 10px; align-items: center; justify-content: space-between;
  animation: toast-in .25s ease-out; box-shadow: 0 10px 30px rgba(9,59,50,.25);
}
.toast.ok { background: var(--jade); }
.toast.error { background: var(--red); }
.toast button { background: none; border: 0; color: inherit; opacity: .7; cursor: pointer; padding: 2px; display: grid; }
@keyframes toast-in { from { transform: translateY(-8px); opacity: 0; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 11px; border: 1.5px solid transparent;
  font-weight: 600; cursor: pointer; text-align: center; transition: background .15s, border-color .15s;
}
.btn-lg { padding: 14px 24px; font-size: 16px; }
.btn.sm { padding: 6px 12px; font-size: 14px; }
.btn.block { width: 100%; }
.btn.grow { flex: 1; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #F0B84E; color: var(--ink); }
.btn-jade { background: var(--jade); color: #fff; }
.btn-jade:hover { background: var(--jade-d); color: #fff; }
.btn-plain { background: var(--card); border-color: var(--line); color: var(--ink); }
.btn-plain:hover { border-color: var(--jade); color: var(--jade); }
.btn-ghost-light { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.06); }

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(900px 400px at 85% 20%, rgba(230,169,58,.14), transparent 60%),
    var(--jade-d);
  color: #fff; overflow: hidden;
}
.hero-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding: 64px 0 72px; }
.hero h1 { font: 600 clamp(28px, 4.2vw, 50px)/1.12 var(--f-d); letter-spacing: -.025em; max-width: 17ch; }
.hero p { font-size: 18px; color: rgba(255,255,255,.78); max-width: 46ch; margin: 20px 0 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.route { position: relative; aspect-ratio: 7 / 5; }
.route-svg { width: 100%; height: 100%; overflow: visible; }
.route-shadow { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 18; stroke-linecap: round; }
.route-line { fill: none; stroke: var(--gold); stroke-width: 3; stroke-dasharray: 2 12; stroke-linecap: round; animation: flow 1.4s linear infinite; }
.dot-from { fill: #fff; }
.dot-to { fill: var(--gold); }
.dot-ring { fill: none; stroke: var(--gold); stroke-width: 2; opacity: .5; transform-origin: 360px 90px; animation: ring 2.4s ease-out infinite; }
@keyframes flow { to { stroke-dashoffset: -28; } }
@keyframes ring { from { transform: scale(.5); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }
.route-card {
  position: absolute; right: 0; bottom: 6%; display: flex; gap: 12px; align-items: center;
  background: #fff; color: var(--ink); padding: 12px 16px; border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0,0,0,.25); color: var(--jade);
}
.route-card div { display: flex; flex-direction: column; }
.route-card b { color: var(--ink); font-size: 15px; }
.route-card span { color: var(--muted); font-size: 13px; }

/* ---------- sections ---------- */
section.wrap { margin-top: 56px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.sec-head a { font-weight: 600; }
.sec-title { font: 600 clamp(20px, 2.3vw, 26px)/1.2 var(--f-d); letter-spacing: -.02em; }
.sec-title.sm { font-size: 18px; margin-bottom: 16px; }
.steps-sec .sec-title { margin-bottom: 22px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; }
.steps li { position: relative; padding: 0 22px 0 0; }
.steps li::after { content: ""; position: absolute; left: 44px; right: 12px; top: 18px; border-top: 2px dashed var(--line); }
.steps li:last-child::after { display: none; }
.step-n { width: 36px; height: 36px; border-radius: 50%; background: var(--jade); color: var(--gold); display: grid; place-items: center; font: 600 15px/1 var(--f-d); position: relative; z-index: 1; }
.steps li:last-child .step-n { background: var(--gold); color: var(--ink); }
.steps h3 { font-size: 17px; margin: 14px 0 6px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; max-width: 30ch; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.cat-tile {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px;
  display: flex; flex-direction: column; gap: 2px; color: var(--ink); transition: border-color .15s, transform .15s;
}
.cat-tile:hover { border-color: var(--jade); color: var(--ink); transform: translateY(-2px); }
.cat-ic { font-size: 30px; line-height: 1; margin-bottom: 10px; }
.cat-name { font-weight: 600; }
.cat-cnt { font-size: 13px; color: var(--muted); }

/* ---------- product card ---------- */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 16px; }
.pcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s; }
.pcard:hover { border-color: #B8C7C0; }
.pcard-img { position: relative; aspect-ratio: 1; background: var(--jade-l); display: grid; place-items: center; overflow: hidden; }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.pcard:hover .pcard-img img { transform: scale(1.04); }
.noimg { font-size: 54px; line-height: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.noimg.big { font-size: 110px; }
.noimg small { font-size: 14px; color: var(--muted); }
.tag-sale { position: absolute; top: 10px; left: 10px; background: var(--red); color: #fff; font-weight: 700; font-size: 13px; padding: 3px 8px; border-radius: 7px; }
.tag-sale.inline { position: static; }
.pcard-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pcard-name { color: var(--ink); font-weight: 500; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.pcard-days { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--jade-d); background: var(--jade-l); padding: 3px 9px; border-radius: 999px; }
.pcard-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font: 600 17px/1.2 var(--f-d); letter-spacing: -.02em; }
.price s { display: block; font: 400 13px var(--f-b); color: var(--muted); letter-spacing: 0; }
.price.big { font-size: 30px; }
.add-mini { width: 40px; height: 40px; border-radius: 11px; border: 0; background: var(--gold); color: var(--ink); display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.add-mini:hover { background: #F0B84E; color: var(--ink); }

/* ---------- pages ---------- */
.page { padding: 28px 0 60px; }
.page.narrow { max-width: 760px; }
.page-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 18px; margin-bottom: 22px; }
.page-title { font: 600 clamp(22px, 3vw, 30px)/1.2 var(--f-d); letter-spacing: -.02em; }
.page > .page-title { margin-bottom: 22px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--jade); }
.empty-box { background: var(--card); border: 1.5px dashed var(--line); border-radius: var(--r-lg); padding: 48px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--muted); }
.empty-box p { margin: 0; max-width: 42ch; }
.empty { color: var(--muted); }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.panel h3 { font-size: 16px; display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }

/* ---------- catalog ---------- */
.catalog { display: grid; grid-template-columns: 250px 1fr; gap: 24px; align-items: start; }
.filters { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 6px 18px 18px; position: sticky; top: 130px; }
.filters summary { list-style: none; font-weight: 700; padding: 12px 0; display: flex; gap: 8px; align-items: center; cursor: pointer; }
.filters summary::-webkit-details-marker { display: none; }
.filter-form fieldset { border: 0; padding: 12px 0; margin: 0; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.filter-form legend { font-size: 13px; font-weight: 700; color: var(--muted); padding: 0; margin-bottom: 6px; float: left; width: 100%; }
.radio, .check { display: flex; align-items: center; gap: 8px; font-size: 15px; padding: 3px 0; cursor: pointer; }
.radio em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--muted); }
.radio input, .check input { accent-color: var(--jade); width: 16px; height: 16px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.filter-form input[type=number], .filter-form select { width: 100%; padding: 9px 10px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--paper); }
.filter-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 6px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 28px; }

/* ---------- product ---------- */
.product { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: start; }
.gallery { position: sticky; top: 130px; }
.gallery-main { aspect-ratio: 1; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: grid; place-items: center; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.thumb { width: 72px; height: 72px; flex-shrink: 0; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--card); cursor: pointer; }
.thumb.on { border-color: var(--jade); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.pinfo h1 { font: 600 clamp(22px, 2.6vw, 30px)/1.25 var(--f-d); letter-spacing: -.02em; }
.pprice { display: flex; align-items: center; gap: 12px; margin: 16px 0 20px; flex-wrap: wrap; }
.pprice s { color: var(--muted); }
.delivery-box { display: flex; gap: 14px; align-items: center; background: var(--jade-l); border-radius: var(--r); padding: 16px; margin-bottom: 22px; }
.db-ic { width: 48px; height: 48px; border-radius: 12px; background: var(--jade); color: var(--gold); display: grid; place-items: center; flex-shrink: 0; }
.delivery-box div:last-child { display: flex; flex-direction: column; }
.delivery-box b { color: var(--jade-d); }
.delivery-box span { font-size: 14px; color: var(--muted); }
.opts { border: 0; padding: 0; margin: 0 0 18px; }
.opts legend { font-weight: 600; margin-bottom: 8px; font-size: 14px; }
.opt { display: inline-block; margin: 0 6px 6px 0; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span { display: block; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--card); cursor: pointer; font-weight: 500; min-width: 46px; text-align: center; }
.opt input:checked + span { border-color: var(--jade); background: var(--jade); color: #fff; }
.opt input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.buy-row { display: flex; gap: 12px; align-items: stretch; }
.stepper { display: flex; border: 1.5px solid var(--line); border-radius: 11px; background: var(--card); overflow: hidden; }
.stepper button { width: 40px; border: 0; background: none; font-size: 20px; cursor: pointer; color: var(--jade); }
.stepper button:hover { background: var(--jade-l); }
.stepper input { width: 46px; border: 0; text-align: center; font-weight: 600; -moz-appearance: textfield; background: none; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.stepper.small button { width: 32px; height: 36px; }
.stepper.small input { width: 36px; }
.pdesc { margin-top: 30px; border-top: 1px solid var(--line); padding-top: 22px; }
.pdesc h2 { font-size: 17px; margin-bottom: 10px; }
.pdesc div { color: #34403C; max-width: 68ch; }
.related { margin-top: 56px; }

/* ---------- cart / checkout ---------- */
.cart { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.cart-list { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); }
.cart-line { display: grid; grid-template-columns: 84px 1fr auto 130px; gap: 16px; align-items: center; padding: 16px; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 0; }
.cl-img { width: 84px; height: 84px; border-radius: 12px; overflow: hidden; background: var(--jade-l); display: grid; place-items: center; }
.cl-img img { width: 100%; height: 100%; object-fit: cover; }
.cl-img .noimg { font-size: 36px; }
.cl-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cl-name { color: var(--ink); font-weight: 600; }
.cl-days { font-size: 13px; color: var(--jade); display: flex; gap: 5px; align-items: center; font-weight: 500; }
.cl-qty { display: flex; gap: 4px; align-items: center; }
.cl-sum { text-align: right; }
.summary { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; display: grid; gap: 12px; position: sticky; top: 130px; }
.sum-title { font-size: 17px; }
.sum-row { display: flex; justify-content: space-between; align-items: baseline; color: var(--muted); }
.sum-row.total { color: var(--ink); font-weight: 600; border-top: 1px solid var(--line); padding-top: 12px; }
.sum-row.total .price { font-size: 22px; }
.eta-box { display: flex; gap: 12px; align-items: flex-start; background: var(--jade-l); color: var(--jade); padding: 14px; border-radius: var(--r); }
.eta-box div { display: flex; flex-direction: column; }
.eta-box b { color: var(--jade-d); }
.eta-box span { font-size: 13px; color: var(--muted); }
.mini-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mini-lines li { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.mini-lines em { display: block; font-style: normal; font-size: 13px; color: var(--muted); }
.mini-lines b { white-space: nowrap; }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.form input, .form select, .form textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--paper); font-weight: 400; font-size: 16px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--jade); background: #fff; }
.form p { margin: 0; }

/* ---------- auth ---------- */
.auth { display: grid; place-items: center; }
.auth-card { width: min(440px, 100%); padding: 32px; }
.auth-card .alt { text-align: center; font-weight: 600; }

/* ---------- account / orders ---------- */
.account { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.side-cards { display: grid; gap: 16px; }
.orders { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.order-row { display: grid; grid-template-columns: 52px 1fr auto auto auto; gap: 16px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; color: var(--ink); }
.order-row:hover { border-color: var(--jade); color: var(--ink); }
.or-img { width: 52px; height: 52px; border-radius: 10px; overflow: hidden; background: var(--jade-l); display: grid; place-items: center; font-size: 24px; }
.or-img img { width: 100%; height: 100%; object-fit: cover; }
.or-main { display: flex; flex-direction: column; }
.or-main b { font-family: var(--f-d); font-weight: 600; letter-spacing: .02em; }
.or-main .muted { font-size: 13px; }
.or-eta { font-size: 13px; color: var(--jade); display: flex; gap: 5px; align-items: center; white-space: nowrap; }
.pill { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; background: var(--jade-l); color: var(--jade-d); }
.st-new { background: #E8EEF9; color: #2C4F8F; }
.st-confirmed { background: #EEE9F8; color: #5A3E96; }
.st-bought { background: #FFF1D6; color: #8A5A00; }
.st-shipping { background: #E1F1F4; color: #0F5E6E; }
.st-arrived { background: var(--gold); color: var(--ink); }
.st-delivered { background: var(--jade-l); color: var(--jade-d); }
.st-cancelled { background: #FBE7E3; color: var(--red); }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ok-text { color: var(--jade); font-weight: 600; }
.notify-card p { margin: 0 0 14px; font-size: 14px; }

.eta-strip { display: flex; align-items: center; gap: 10px; background: var(--jade-d); color: #fff; padding: 16px 20px; border-radius: var(--r); margin-bottom: 22px; flex-wrap: wrap; }
.eta-strip svg { color: var(--gold); }
.eta-strip span { color: rgba(255,255,255,.75); }
.eta-strip b { font: 600 18px/1.2 var(--f-d); }
.arrived-banner { display: flex; gap: 14px; align-items: center; background: var(--gold); color: var(--ink); padding: 18px 22px; border-radius: var(--r); margin-bottom: 22px; animation: pop .5s ease-out; }
.arrived-banner div { display: flex; flex-direction: column; }
.arrived-banner b { font: 600 19px/1.2 var(--f-d); }
@keyframes pop { from { transform: scale(.97); opacity: 0; } }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: 16px; position: relative; padding-bottom: 22px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; border-left: 2px dashed var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li.done::before { border-left: 2px solid var(--jade); }
.tl-dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); background: var(--card); display: grid; place-items: center; flex-shrink: 0; position: relative; z-index: 1; color: #fff; }
.timeline li.done .tl-dot { background: var(--jade); border-color: var(--jade); }
.timeline li.now .tl-dot { background: var(--gold); border-color: var(--gold); color: var(--ink); box-shadow: 0 0 0 5px rgba(230,169,58,.25); }
.timeline li div { display: flex; flex-direction: column; padding-top: 3px; }
.timeline li:not(.done) b { color: var(--muted); font-weight: 500; }
.timeline .muted { font-size: 13px; }
.tl-note { margin: 6px 0 0; background: var(--paper); padding: 8px 12px; border-radius: 8px; font-size: 14px; }

.notif-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.notif-list a { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; color: var(--ink); }
.notif-list .unread a { border-color: var(--gold); background: #FFFBF2; }
.n-ic { width: 36px; height: 36px; border-radius: 10px; background: var(--jade-l); color: var(--jade); display: grid; place-items: center; }
.n-text { white-space: pre-line; }

/* ---------- footer ---------- */
.foot { background: var(--jade-d); color: rgba(255,255,255,.72); margin-top: 72px; padding: 44px 0 20px; font-size: 15px; }
.foot-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot p { max-width: 36ch; margin: 14px 0 0; }
.foot h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.foot a:not(.logo) { display: block; color: rgba(255,255,255,.72); padding: 3px 0; }
.foot a:hover { color: var(--gold); }
.foot-copy { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 16px; font-size: 13px; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero-row { grid-template-columns: 1fr; padding: 44px 0 36px; gap: 20px; }
  .route { max-width: 460px; width: 100%; justify-self: center; }
  .steps { grid-template-columns: 1fr 1fr; gap: 26px 0; }
  .steps li:nth-child(2)::after { display: none; }
  .catalog { grid-template-columns: 1fr; }
  .filters { position: static; }
  .product { grid-template-columns: 1fr; gap: 24px; }
  .gallery { position: static; }
  .cart, .account { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 720px) {
  .top-row { flex-wrap: wrap; height: auto; padding: 10px 0; gap: 10px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .word small { display: none; }
  .cart-label { display: none; }
  .cart-btn { padding: 10px 12px; }
  .toasts { top: 12px; }
  section.wrap { margin-top: 40px; }
  .steps { grid-template-columns: 1fr; }
  .steps li::after { display: none; }
  .pgrid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .pcard-body { padding: 10px; }
  .price { font-size: 15px; }
  .add-mini { width: 36px; height: 36px; }
  .cart-line { grid-template-columns: 64px 1fr; gap: 10px 12px; }
  .cl-img { width: 64px; height: 64px; }
  .cl-qty { grid-column: 2; }
  .cl-sum { grid-column: 2; text-align: left; }
  .order-row { grid-template-columns: 44px 1fr auto; gap: 8px 12px; }
  .or-img { width: 44px; height: 44px; }
  .or-eta { grid-column: 2 / -1; }
  .order-row .pill { grid-column: 2; justify-self: start; }
  .order-row .price { grid-column: 3; grid-row: 1; }
  .foot-row { grid-template-columns: 1fr; gap: 20px; }
  .notif-list a { grid-template-columns: 36px 1fr; }
  .notif-list a .small { grid-column: 2; }
  .auth-card { padding: 22px; }
  }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}


/* =====================================================================
   v4 — täzelenen görnüş + telefon üçin
   ===================================================================== */
:root { --shadow: 0 1px 2px rgba(9,59,50,.05), 0 8px 24px rgba(9,59,50,.07); --tabbar-h: 62px; }
body { background: var(--paper); }
.center { text-align: center; }
.hide-m { }

/* header */
.top { background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
.text-link { display: inline-flex; gap: 6px; align-items: center; }
.catbar a { border: 1px solid transparent; }
.catbar a.on { border-color: #CFE2DA; }

/* hero */
.hero { background:
    radial-gradient(700px 380px at 90% 10%, rgba(230,169,58,.20), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(255,255,255,.06), transparent 60%),
    linear-gradient(160deg, #0B4B3F 0%, var(--jade-d) 60%); }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); padding: 7px 14px 7px 10px; border-radius: 999px; font-weight: 600; font-size: 14px; margin-bottom: 22px; }
.hero-kicker .k-arrow { color: var(--gold); display: inline-flex; }
.flag { display: inline-block; flex-shrink: 0; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); vertical-align: middle; }
.route { aspect-ratio: 42 / 26; }
.rpoint { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.rpoint b { font: 600 18px/1 var(--f-d); color: #fff; }
.rpoint .flag { border-radius: 5px; box-shadow: 0 8px 20px rgba(0,0,0,.3); }
.rp-from { left: 16.7%; top: 76.9%; transform: translate(-50%, 18px); }
.rp-to { left: 83.3%; bottom: 57.7%; transform: translate(-50%, -38px); }
.rp-to b { color: var(--gold); }
.route-card { bottom: 0; right: 8%; }
.rc-ic { width: 40px; height: 40px; border-radius: 11px; background: var(--jade-l); display: grid; place-items: center; color: var(--jade); }

/* why */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: -34px !important; position: relative; z-index: 2; }
.why-item { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: var(--shadow); }
.why-item > span { width: 44px; height: 44px; border-radius: 12px; background: var(--jade-l); color: var(--jade); display: grid; place-items: center; flex-shrink: 0; }
.why-item b { display: block; margin-bottom: 2px; }
.why-item p { margin: 0; color: var(--muted); font-size: 14px; }

/* categories */
.cat-tile { box-shadow: 0 1px 2px rgba(9,59,50,.04); }
.cat-ic { width: 52px; height: 52px; border-radius: 14px; background: var(--jade-l); display: grid; place-items: center; font-size: 28px; }

/* product card */
.pcard { border-radius: 16px; box-shadow: 0 1px 2px rgba(9,59,50,.04); transition: box-shadow .2s, transform .2s, border-color .2s; }
.pcard:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--line); }
.pcard-img { background: linear-gradient(180deg, #EEF4F1, #E2EDE8); }
.pcard-name { font-size: 15px; }

/* catalog */
.quick-sort { margin-left: auto; }
.quick-sort select { padding: 9px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--card); font-weight: 500; }
.filters { box-shadow: 0 1px 2px rgba(9,59,50,.04); }

/* product page */
.mbuy { display: none; }
.gallery-main { box-shadow: var(--shadow); }

/* auth */
.auth-card { display: grid; gap: 14px; box-shadow: var(--shadow); }
.auth-card > p { margin: 0; }
.btn-tg { background: #229ED9; color: #fff; }
.btn-tg:hover { background: #1B8BC0; color: #fff; }
.tg-wait { display: flex; gap: 14px; align-items: center; background: #E8F5FC; border-radius: 14px; padding: 14px 16px; }
.tg-wait[hidden] { display: none; }
.tg-wait div { display: flex; flex-direction: column; }
.tg-wait b { color: #146C96; }
.tg-wait span:not(.spin) { font-size: 13px; color: var(--muted); }
.spin { width: 24px; height: 24px; border-radius: 50%; border: 3px solid #BFE3F5; border-top-color: #229ED9; animation: spin .9s linear infinite; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.alt-login { border-top: 1px solid var(--line); padding-top: 12px; }
.alt-login summary { cursor: pointer; color: var(--muted); font-weight: 600; font-size: 14px; text-align: center; list-style: none; padding: 4px 0; }
.alt-login summary::-webkit-details-marker { display: none; }
.alt-login summary::after { content: " ▾"; }
.alt-login[open] summary::after { content: " ▴"; }
.alt-login .form { margin-top: 12px; }

/* panels */
.panel, .summary, .cart-list, .order-row { box-shadow: 0 1px 2px rgba(9,59,50,.04); }

/* tabbar (diňe telefonda) */
.tabbar { display: none; }

@media (max-width: 1000px) {
  .why { grid-template-columns: 1fr; margin-top: 20px !important; }
  .route { max-width: 420px; }
}

@media (max-width: 720px) {
  .hide-m { display: none !important; }
  body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
  body.has-mbuy { padding-bottom: calc(var(--tabbar-h) + 72px + env(safe-area-inset-bottom)); }
  .foot { margin-top: 48px; }

  /* header ykjam */
  .top-row { padding: 8px 0; gap: 8px; }
  .seal { width: 34px; height: 34px; font-size: 18px; }
  .word { font-size: 18px; }
  .search input { padding: 10px 12px; font-size: 16px; }
  .catbar-row { padding: 5px 0; }
  .catbar a { font-size: 13px; padding: 5px 10px; }

  /* hero */
  .hero-row { padding: 26px 0 20px; gap: 6px; }
  .hero h1 { font-size: 26px; }
  .hero p { font-size: 16px; margin: 12px 0 20px; }
  .hero-kicker { margin-bottom: 14px; font-size: 13px; }
  .hero-cta .btn { flex: 1; padding: 13px 14px; font-size: 15px; }
  .route { max-width: 340px; margin-top: 8px; }
  .rpoint b { font-size: 14px; }
  .rp-to { transform: translate(-50%, -26px); }
  .rpoint .flag { width: 34px; height: 22px; }
  .route-card { padding: 9px 12px; right: 2%; }
  .route-card b { font-size: 13px; }
  .route-card span { font-size: 12px; }
  .rc-ic { width: 32px; height: 32px; }
  .why { gap: 8px; }
  .why-item { padding: 14px; }

  /* kategoriýalar — gorizontal aýlanýan */
  .cat-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none; }
  .cat-grid::-webkit-scrollbar { display: none; }
  .cat-tile { flex: 0 0 132px; scroll-snap-align: start; padding: 14px; }
  .cat-ic { width: 44px; height: 44px; font-size: 24px; margin-bottom: 8px; }
  .sec-head { margin-bottom: 14px; }

  /* katalog */
  .page { padding: 18px 0 32px; }
  .page-head { margin-bottom: 14px; gap: 6px 12px; align-items: center; }
  .quick-sort { width: 100%; margin: 0; }
  .quick-sort select { width: 100%; }
  .filters { padding: 0 14px; border-radius: 14px; }
  .filters summary { padding: 12px 0; }
  .filters[open] { padding-bottom: 14px; }
  .pcard { border-radius: 14px; }
  .pcard:hover { transform: none; }
  .pcard-name { font-size: 14px; }
  .pcard-days { font-size: 12px; padding: 2px 8px; }

  /* haryt sahypasy: aşakda berkidilen «Sebede goş» */
  .product { gap: 16px; }
  .gallery-main { border-radius: 16px; }
  .pinfo h1 { font-size: 21px; }
  .pprice { margin: 10px 0 14px; }
  .price.big { font-size: 26px; }
  .delivery-box { padding: 12px; }
  .db-ic { width: 40px; height: 40px; }
  .mbuy { display: flex; align-items: center; gap: 12px; position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); z-index: 39;
          background: var(--card); border-top: 1px solid var(--line); padding: 10px 16px; box-shadow: 0 -8px 24px rgba(9,59,50,.08); }
  .mbuy-price { display: flex; flex-direction: column; min-width: 0; }
  .mbuy-price .muted { display: flex; gap: 4px; align-items: center; }
  .mbuy .btn { margin-left: auto; flex-shrink: 0; padding: 13px 18px; }
  .buy-row .stepper { flex: 1; justify-content: space-between; }
  .stepper button { width: 48px; height: 46px; }

  /* sebet / sargyt */
  .summary { padding: 18px; }
  .form input, .form select, .form textarea { font-size: 16px; }
  .auth { place-items: stretch; }
  .auth-card { width: 100%; padding: 22px 18px; }

  /* aşaky menýu */
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
            height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
            background: rgba(255,255,255,.97); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
  .tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: 11px; font-weight: 600; -webkit-tap-highlight-color: transparent; }
  .tabbar a.on { color: var(--jade); }
  .tabbar a.on::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--gold); }
  .tabbar b { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--gold); color: var(--ink); font-size: 11px; display: grid; place-items: center; }
  .toasts { top: auto; bottom: calc(var(--tabbar-h) + 12px + env(safe-area-inset-bottom)); left: 16px; right: 16px; max-width: none; }
  body.has-mbuy .toasts { bottom: calc(var(--tabbar-h) + 84px + env(safe-area-inset-bottom)); }
}

/* reňkler */
.sw { display: inline-block; flex-shrink: 0; border-radius: 50%; background: #ddd; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); vertical-align: middle; }
.sw-multi { background: conic-gradient(#E53935, #FDD835, #43A047, #1E88E5, #8E24AA, #E53935) !important; }
.copt span { display: inline-flex !important; align-items: center; gap: 8px; }
.opt input:checked + span .sw { box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(255,255,255,.5); }
.opts.colors legend b { font-weight: 600; color: var(--jade-d); }
#gmain { transition: opacity .18s; }
#gmain.swap { opacity: .35; }
.pcard-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap; }
.pcard-dots { display: inline-flex; align-items: center; gap: 3px; }
.pcard-dots em { font-style: normal; font-size: 11px; color: var(--muted); margin-left: 2px; }
.cl-opts { display: inline-flex; align-items: center; gap: 6px; }

/* Telegram Mini App */
.in-tg .foot { display: none; }
.in-tg .top { position: sticky; }
.in-tg .skip { display: none; }
@media (max-width: 720px) { .in-tg .foot { display: none; } }

/* profil */
.profile-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.profile-head > div { display: flex; flex-direction: column; min-width: 0; }
.avatar { width: 56px; height: 56px; border-radius: 16px; background: var(--jade); color: var(--gold); display: grid; place-items: center; font: 600 24px/1 var(--f-d); flex-shrink: 0; }
.logout-btn { margin-left: auto; }
.tg-ok { color: #1B8BC0; display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.input-btn { display: flex; gap: 8px; }
.input-btn input { flex: 1; min-width: 0; }
.input-btn .btn { flex-shrink: 0; padding: 10px 14px; }
.toggle-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.toggle-row > div { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.toggle-row + .toggle-row { border-top: 1px solid var(--line); }
.always { font-size: 12px; font-weight: 600; color: var(--jade); background: var(--jade-l); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.switch { position: relative; width: 50px; height: 30px; flex-shrink: 0; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; background: #CBD3CF; border-radius: 999px; transition: background .2s; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.switch input:checked + span { background: var(--jade); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.sep { border: 0; border-top: 1px solid var(--line); margin: 12px 0; }
.danger-zone summary { cursor: pointer; font-weight: 600; color: var(--red); list-style: none; }
.danger-zone summary::-webkit-details-marker { display: none; }
.danger-zone summary::before { content: "⚠ "; }
.danger-zone[open] summary { margin-bottom: 10px; }
.danger-zone .form { gap: 10px; }
.warn { background: #FFF6E3; border: 1px solid #F1DDB0; color: #7A5200; padding: 10px 12px; border-radius: 10px; margin: 0; font-size: 14px; }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #A5321F; color: #fff; }
.n-img { overflow: hidden; padding: 0; }
.n-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 720px) {
  .profile-head { gap: 12px; }
  .avatar { width: 48px; height: 48px; font-size: 20px; }
}
.danger-zone .form label.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; font-size: 14px; }
.danger-zone .form label.check input { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: var(--red); }
