:root {
  --navy: #24344f;
  --navy-2: #3d5274;
  --gold: #c39c55;
  --gold-soft: #f3e8d2;
  --beige: #b9a185;
  --cream: #fbf8f3;
  --paper: #ffffff;
  --blue-soft: #eaf0f7;
  --lav-soft: #f0ebf8;
  --line: #ece5da;
  --text: #22293a;
  --muted: #747b88;
  --danger: #b84a48;
  --ok: #3b8a66;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(36, 52, 79, .08);
  --serif: 'Noto Serif Georgian', Georgia, serif;
  --sans: 'Noto Sans Georgian', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--text); background: var(--cream); line-height: 1.55; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.25; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.section { padding: 56px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.eyebrow { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 6px; }
svg { width: 20px; height: 20px; flex: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; border: 1.5px solid var(--navy); background: var(--navy); color: #fff; font-weight: 600; cursor: pointer; transition: .2s; font-size: .95rem; white-space: nowrap; }
.btn:hover { background: var(--navy-2); border-color: var(--navy-2); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-outline { background: transparent; color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-gold { background: var(--gold); border-color: var(--gold); }
.btn-gold:hover { background: #ad8743; border-color: #ad8743; }
.btn-wa { background: #25d366; border-color: #25d366; }
.btn-wa:hover { background: #1ebe5a; border-color: #1ebe5a; }
.btn-sm { padding: 8px 14px; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-danger { background: transparent; color: var(--danger); border-color: #e7c4c3; }
.btn-danger:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
.link { color: var(--navy-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; background: none; border: 0; padding: 0; }

/* Header */
.topbar { background: var(--navy); color: #e9edf4; text-align: center; font-size: .82rem; padding: 7px 16px; }
.topbar a { color: #fff; font-weight: 600; }
.topbar-sep { margin: 0 10px; opacity: .5; }
.site-header { background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.nav { display: flex; align-items: center; gap: 24px; height: 84px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 64px; height: 64px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line); }
.brand span { display: flex; flex-direction: column; line-height: 1.1; }
.brand b { font-family: var(--serif); font-size: 1.6rem; color: var(--navy); letter-spacing: .02em; }
.brand small { color: var(--beige); font-size: .95rem; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { font-weight: 500; color: var(--navy); position: relative; padding: 6px 0; font-size: .95rem; }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--gold); transition: .25s; }
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%; border: 0; background: transparent; color: var(--navy); cursor: pointer; position: relative; }
.icon-btn:hover { background: var(--blue-soft); }
.icon-btn svg { width: 24px; height: 24px; }
.menu-btn { display: none; }
.cart-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 600; font-size: .95rem; transition: .2s; flex: none; }
.cart-btn:hover, .cart-btn.active { background: var(--gold); }
.cart-btn svg { width: 22px; height: 22px; }
.cart-btn .badge { position: static; background: var(--gold); margin-left: 2px; }
.cart-btn:hover .badge, .cart-btn.active .badge { background: var(--navy); }
.toast-action { display: block; margin-top: 8px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.badge { position: absolute; top: 2px; right: 0; background: var(--gold); color: #fff; font-size: .7rem; font-weight: 700; min-width: 19px; height: 19px; border-radius: 10px; display: grid; place-items: center; padding: 0 5px; }
.badge[hidden] { display: none; }

@media (max-width: 860px) {
  .nav { gap: 8px; height: 64px; }
  .menu-btn { display: inline-grid; }
  .brand { margin-right: auto; }
  .brand img { width: 52px; height: 52px; }
  .brand b { font-size: 1.4rem; }
  .nav-links { position: fixed; inset: 64px 0 auto 0; background: #fff; flex-direction: column; gap: 0; padding: 8px 16px 18px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .2s; margin: 0; }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 13px 4px; border-bottom: 1px solid var(--line); font-size: 1.02rem; }
  .nav-links a::after { display: none; }
  .topbar-sep, .topbar a { display: none; }
  .cart-btn { padding: 9px 13px; gap: 6px; font-size: .9rem; }
}

/* Hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, #f6f1ea 0%, var(--blue-soft) 60%, var(--lav-soft) 100%); }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding: 64px 16px 72px; }
.hero p.lead { font-size: 1.12rem; color: #4b5466; max-width: 520px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-badges { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 34px; color: var(--navy-2); font-size: .9rem; }
.hero-badges span { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges svg { color: var(--gold); }
.hero-logo { justify-self: center; width: min(380px, 80%); aspect-ratio: 1; border-radius: 50%; box-shadow: 0 30px 60px rgba(36, 52, 79, .14), 0 0 0 12px rgba(255, 255, 255, .55); }
@media (max-width: 760px) {
  .hero-inner { grid-template-columns: 1fr; padding: 36px 16px 48px; text-align: center; gap: 28px; }
  .hero-logo { order: -1; width: 200px; }
  .hero p.lead { margin: 0 auto; }
  .hero-actions, .hero-badges { justify-content: center; }
}

/* Gender tiles */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tile { border-radius: 22px; padding: 34px 30px; min-height: 200px; display: flex; flex-direction: column; justify-content: flex-end; position: relative; overflow: hidden; transition: .25s; border: 1px solid var(--line); }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tile-girl { background: linear-gradient(140deg, #f8e9ec, #f3e8dc); }
.tile-boy { background: linear-gradient(140deg, #e3ecf6, #e9eef2); }
.tile h3 { font-size: 1.6rem; margin-bottom: 4px; }
.tile span { color: var(--navy-2); font-weight: 500; }
.tile::before { content: ''; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%; border: 2px solid rgba(195, 156, 85, .35); }
.tile::after { content: ''; position: absolute; right: -10px; top: -10px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255, 255, 255, .5); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip { padding: 9px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .9rem; color: var(--navy); font-weight: 500; transition: .2s; cursor: pointer; }
.chip:hover, .chip.active { border-color: var(--navy); background: var(--navy); color: #fff; }
@media (max-width: 600px) { .tiles { grid-template-columns: 1fr; gap: 14px; } .tile { min-height: 140px; padding: 24px; } }

/* Product grid & card */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 1020px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.card { background: var(--paper); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: .25s; display: flex; flex-direction: column; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-img { position: relative; aspect-ratio: 4 / 5; background: #f4f1ec; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.card-brand { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.card-title { font-weight: 500; color: var(--navy); font-size: .95rem; }
.card-sizes { font-size: .8rem; color: var(--muted); }
.card-price { margin-top: auto; padding-top: 6px; font-weight: 700; color: var(--navy); }
.card-price s, .price s { color: var(--muted); font-weight: 400; font-size: .85em; margin-left: 6px; }
.tag { position: absolute; top: 10px; left: 10px; font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.tag-sale { background: var(--gold); color: #fff; }
.tag-sold { background: rgba(255, 255, 255, .92); color: var(--muted); }
.card.is-sold .card-img img { filter: grayscale(.7); opacity: .6; }
.card.is-sold .card-price { color: var(--muted); }
.empty { text-align: center; padding: 50px 16px; color: var(--muted); background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); grid-column: 1 / -1; }

/* Info cards */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.info-card { background: #fff; border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); }
.info-card .ic { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-soft); color: #9c7836; margin-bottom: 14px; }
.info-card .ic svg { width: 24px; height: 24px; }
.info-card p { color: #535b6a; margin: 0; font-size: .95rem; }
.info-card b { color: var(--navy); }
@media (max-width: 860px) { .info-grid { grid-template-columns: 1fr; } }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; align-items: stretch; }
.contact-list { display: flex; flex-direction: column; gap: 16px; background: #fff; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); }
.contact-row { display: flex; gap: 14px; align-items: flex-start; }
.contact-row svg { color: var(--gold); margin-top: 3px; }
.contact-row small { display: block; color: var(--muted); font-size: .8rem; }
.contact-row a, .contact-row span { color: var(--navy); font-weight: 500; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 340px; background: #eee; }
.map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--navy); color: #cdd5e2; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 36px; padding: 48px 16px 32px; }
.site-footer h4 { color: #fff; font-family: var(--serif); font-weight: 600; margin: 4px 0 14px; }
.site-footer a { display: flex; align-items: center; gap: 8px; padding: 4px 0; color: #cdd5e2; font-size: .93rem; word-break: break-word; }
.site-footer a:hover { color: #fff; }
.site-footer .muted { color: #9fabbf; font-size: .92rem; margin-top: 14px; }
.brand-footer b { color: #fff; }
.socials { display: flex; gap: 10px; }
.social { width: 40px; height: 40px; border-radius: 50%; display: grid !important; place-items: center; background: rgba(255, 255, 255, .1); padding: 0 !important; }
.social:hover { background: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 18px 16px; font-size: .85rem; color: #8e9ab0; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 26px; } }

.wa-float { position: fixed; right: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 22px rgba(37, 211, 102, .4); z-index: 40; transition: .2s; }
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 30px; height: 30px; }
.demo-flag { position: fixed; left: 12px; bottom: 12px; background: #fff3cd; color: #7a5b00; border: 1px solid #f0d98a; font-size: .75rem; padding: 4px 10px; border-radius: 999px; z-index: 40; }

/* Shop */
.page-head { padding: 34px 0 10px; }
.breadcrumbs { font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
.breadcrumbs a:hover { color: var(--navy); }
.shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: 30px; align-items: start; padding-bottom: 40px; }
.filters { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: sticky; top: 102px; }
.filter-group { padding: 14px 0; border-bottom: 1px solid var(--line); }
.filter-group:last-child { border-bottom: 0; }
.filter-group h4 { margin: 0 0 10px; font-size: .9rem; color: var(--navy); }
.check { display: flex; align-items: center; gap: 9px; padding: 4px 0; cursor: pointer; font-size: .92rem; }
.check input { width: 17px; height: 17px; accent-color: var(--navy); }
.toolbar { display: flex; gap: 12px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.toolbar .search { flex: 1; min-width: 180px; }
.result-count { color: var(--muted); font-size: .9rem; }
.filters-btn { display: none; }
.filters-head { display: none; }
@media (max-width: 860px) {
  .shop-layout { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0; z-index: 100; border-radius: 0; overflow-y: auto; transform: translateX(-100%); transition: .25s; padding-bottom: 90px; }
  .filters.open { transform: none; }
  .filters-btn { display: inline-flex; }
  .filters-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
  .filters-apply { position: fixed; left: 16px; right: 16px; bottom: 16px; }
}
@media (min-width: 861px) { .filters-apply { display: none; } }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: .85rem; font-weight: 600; color: var(--navy); }
.input, .select, .textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; outline: none; transition: .2s; font-size: 16px; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--navy-2); box-shadow: 0 0 0 3px rgba(61, 82, 116, .12); }
.textarea { min-height: 130px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.radio-cards { display: grid; gap: 10px; }
.radio-card { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; background: #fff; transition: .2s; }
.radio-card input { margin-top: 4px; accent-color: var(--navy); width: 18px; height: 18px; }
.radio-card:has(input:checked) { border-color: var(--navy); background: var(--blue-soft); }
.radio-card.disabled { opacity: .5; cursor: not-allowed; }
.radio-card b { color: var(--navy); display: block; }
.radio-card small { color: var(--muted); }

/* Product page */
.product { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; padding: 10px 0 50px; }
.gallery-main { aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: #f4f1ec; border: 1px solid var(--line); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.thumbs button { width: 74px; height: 92px; flex: none; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: #f4f1ec; }
.thumbs button.active { border-color: var(--navy); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.p-brand { color: var(--gold); text-transform: uppercase; letter-spacing: .12em; font-weight: 700; font-size: .82rem; }
.price { font-size: 1.7rem; font-weight: 700; color: var(--navy); margin: 8px 0 20px; }
.save-pill { display: inline-block; font-size: .8rem; background: var(--gold-soft); color: #8c6a2e; padding: 3px 10px; border-radius: 999px; margin-left: 10px; vertical-align: middle; font-weight: 600; }
.sizes { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 6px; }
.size-btn { min-width: 64px; padding: 10px 14px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; font-weight: 600; color: var(--navy); display: flex; flex-direction: column; align-items: center; line-height: 1.2; }
.size-btn small { font-weight: 400; font-size: .72rem; color: var(--muted); margin-top: 2px; }
.size-btn.active { border-color: var(--navy); background: var(--navy); color: #fff; }
.size-btn.active small { color: #cfd7e4; }
.size-btn:disabled { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; }
.qty button { width: 40px; height: 42px; border: 0; background: none; cursor: pointer; font-size: 1.2rem; color: var(--navy); }
.qty button:disabled { opacity: .3; }
.qty span { min-width: 30px; text-align: center; font-weight: 600; }
.buy-row { display: flex; gap: 12px; align-items: center; margin: 20px 0; flex-wrap: wrap; }
.buy-row .btn { flex: 1; min-width: 200px; }
.perks { list-style: none; padding: 18px 0 0; margin: 20px 0 0; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.perks li { display: flex; gap: 12px; align-items: flex-start; font-size: .93rem; color: #4b5466; }
.perks svg { color: var(--gold); margin-top: 2px; }
.desc { white-space: pre-line; color: #4b5466; }
.meta-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.meta-list span { font-size: .8rem; background: var(--blue-soft); color: var(--navy-2); padding: 4px 10px; border-radius: 999px; }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; gap: 24px; } }

/* Cart */
.cart-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: start; padding-bottom: 40px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.panel + .panel { margin-top: 18px; }
.panel h3 { margin-bottom: 14px; }
.cart-item { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-item:last-child { border-bottom: 0; }
.cart-item img { width: 76px; height: 95px; object-fit: cover; border-radius: 10px; background: #f4f1ec; }
.cart-item .t { font-weight: 600; color: var(--navy); }
.cart-item .s { font-size: .85rem; color: var(--muted); }
.cart-item .r { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cart-item .qty button { width: 32px; height: 34px; }
.cart-item .warn { color: var(--danger); font-size: .82rem; }
.sum-row { display: flex; justify-content: space-between; padding: 6px 0; }
.sum-total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; font-weight: 700; font-size: 1.15rem; color: var(--navy); }
.progress { background: var(--blue-soft); border-radius: 10px; padding: 12px 14px; font-size: .88rem; color: var(--navy-2); margin-bottom: 14px; }
.progress .bar { height: 6px; background: #fff; border-radius: 6px; margin-top: 8px; overflow: hidden; }
.progress .bar i { display: block; height: 100%; background: var(--gold); border-radius: 6px; }
.form-error { background: #fbeceb; color: var(--danger); padding: 12px 14px; border-radius: 10px; font-size: .9rem; margin-bottom: 14px; }
.success { max-width: 620px; margin: 30px auto 60px; text-align: center; }
.success .check-ic { width: 74px; height: 74px; border-radius: 50%; background: #e3f2ea; color: var(--ok); display: grid; place-items: center; margin: 0 auto 18px; font-size: 2rem; }
.bank-box { text-align: left; background: var(--cream); border: 1px dashed var(--beige); border-radius: 12px; padding: 16px; margin: 18px 0; }
.bank-box .iban { display: flex; gap: 10px; align-items: center; justify-content: space-between; background: #fff; border-radius: 8px; padding: 10px 12px; margin-top: 8px; font-family: ui-monospace, monospace; font-size: .95rem; word-break: break-all; }
@media (max-width: 860px) { .cart-layout { grid-template-columns: 1fr; } }

/* Toasts */
#toasts { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 380px); }
.toast { background: var(--navy); color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow); font-size: .92rem; transition: .3s; }
.toast-error { background: var(--danger); }
.toast-ok { background: var(--ok); }
.toast.out { opacity: 0; transform: translateY(-8px); }

.skeleton { background: linear-gradient(90deg, #f1ede6 25%, #f8f5f0 50%, #f1ede6 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--radius); }
@keyframes sk { to { background-position: -200% 0; } }
.sk-card { aspect-ratio: 4 / 6; }

/* ================= Admin ================= */
.admin-body { background: #f5f3ef; }
.admin-top { background: var(--navy); color: #fff; }
.admin-top .nav { height: 62px; }
.admin-top .brand b { color: #fff; font-size: 1.3rem; }
.admin-top .brand img { width: 38px; height: 38px; }
.admin-top .who { margin-left: auto; font-size: .85rem; color: #c8d1df; display: flex; align-items: center; gap: 12px; }
.admin-top .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .4); }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin: 22px 0; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 12px 16px; cursor: pointer; font-weight: 600; color: var(--muted); border-bottom: 2.5px solid transparent; white-space: nowrap; display: flex; gap: 6px; align-items: center; }
.tabs button.active { color: var(--navy); border-color: var(--gold); }
.tabs .badge { position: static; }
.login-box { max-width: 400px; margin: 70px auto; }
.login-box img { width: 90px; height: 90px; border-radius: 50%; margin: 0 auto 14px; }
.a-list { display: flex; flex-direction: column; gap: 10px; }
.a-row { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.a-row img { width: 56px; height: 70px; object-fit: cover; border-radius: 8px; }
.a-row .t { font-weight: 600; color: var(--navy); }
.a-row .s { font-size: .82rem; color: var(--muted); }
.a-row .actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.pill { display: inline-block; font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--blue-soft); color: var(--navy-2); }
.pill-off { background: #eee; color: #888; }
.pill-new { background: var(--gold-soft); color: #8c6a2e; }
.pill-confirmed { background: var(--blue-soft); color: var(--navy-2); }
.pill-sent { background: var(--lav-soft); color: #5d4b8a; }
.pill-done { background: #e3f2ea; color: var(--ok); }
.pill-cancelled { background: #f6e3e2; color: var(--danger); }
.pill-low { background: #fbeceb; color: var(--danger); }
.modal-bg { position: fixed; inset: 0; background: rgba(20, 28, 44, .45); z-index: 120; display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 24px 12px; }
.modal { background: #fff; border-radius: 18px; width: 100%; max-width: 720px; padding: 24px; position: relative; }
.modal-close { position: absolute; right: 12px; top: 12px; }
.img-list { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.img-item { width: 96px; position: relative; }
.img-item img { width: 96px; height: 120px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.img-item .ctrl { display: flex; justify-content: space-between; margin-top: 4px; }
.img-item .ctrl button { border: 1px solid var(--line); background: #fff; border-radius: 6px; width: 28px; height: 26px; cursor: pointer; font-size: .8rem; }
.img-item .main-l { position: absolute; top: 6px; left: 6px; background: var(--navy); color: #fff; font-size: .65rem; padding: 2px 7px; border-radius: 999px; }
.upload-btn { width: 96px; height: 120px; border: 2px dashed var(--beige); border-radius: 10px; display: grid; place-items: center; text-align: center; font-size: .8rem; color: var(--muted); cursor: pointer; background: var(--cream); }
.chips-sm { gap: 6px; margin-top: 8px; }
.chips-sm .chip { padding: 5px 12px; font-size: .8rem; }
.ai-box { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; background: linear-gradient(135deg, var(--gold-soft), var(--lav-soft)); border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; }
.ai-box small { flex: 1; min-width: 200px; font-size: .8rem; }
.variant-row { display: grid; grid-template-columns: 1fr 110px 40px; gap: 8px; margin-bottom: 8px; }
.check-row { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.order-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.order-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; }
.order-head .num { font-weight: 700; color: var(--navy); font-size: 1.05rem; }
.order-body { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 12px; font-size: .9rem; }
.order-body .it { display: flex; gap: 10px; padding: 4px 0; }
.order-body .it img { width: 38px; height: 48px; object-fit: cover; border-radius: 6px; }
.order-foot { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; align-items: center; }
.order-foot .select { width: auto; padding: 8px 12px; }
.note-box { background: #fff8e6; border: 1px solid #f0dfae; color: #6e5617; padding: 12px 14px; border-radius: 10px; font-size: .88rem; margin-bottom: 16px; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.settings-grid > .panel + .panel { margin-top: 0; }

/* Admin statistics */
.seg { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: none; padding: 7px 14px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: .85rem; color: var(--muted); }
.seg button.active { background: var(--navy); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stat-l { font-size: .82rem; color: var(--muted); font-weight: 600; }
.stat-v { font-family: var(--serif); font-size: 1.7rem; color: var(--navy); font-weight: 600; line-height: 1.3; margin-top: 4px; }
.stat-n { font-size: .8rem; color: var(--muted); margin-top: 2px; }
.chart { position: relative; }
.chart-max { font-size: .75rem; color: var(--muted); border-bottom: 1px dashed var(--line); padding-bottom: 2px; }
.bars { display: flex; align-items: flex-end; gap: 2px; height: 150px; border-bottom: 1px solid #d9d2c6; }
.bar-col { flex: 1; height: 100%; display: flex; align-items: flex-end; position: relative; cursor: default; outline: none; }
.bar-col i { display: block; width: 100%; max-width: 28px; margin: 0 auto; background: var(--navy-2); border-radius: 4px 4px 0 0; }
.bar-col:hover i, .bar-col:focus i { background: var(--gold); }
.bar-col:hover::after, .bar-col:focus::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; font-size: .78rem; padding: 5px 9px; border-radius: 8px; white-space: nowrap; z-index: 5; pointer-events: none; }
.bar-col:first-child:hover::after, .bar-col:first-child:focus::after { left: 0; transform: none; }
.bar-col:last-child:hover::after, .bar-col:last-child:focus::after { left: auto; right: 0; transform: none; }
.bar-axis { display: flex; gap: 2px; font-size: .72rem; color: var(--muted); margin-top: 4px; }
.bar-axis span { flex: 1; text-align: center; white-space: nowrap; overflow: visible; }
.bar-axis span:first-child { text-align: left; }
.bar-axis span:last-child { text-align: right; }
.chart-empty { padding: 30px 0; text-align: center; }
.stat-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.stat-table th { text-align: left; font-size: .78rem; color: var(--muted); font-weight: 600; padding: 0 6px 8px 0; border-bottom: 1px solid var(--line); }
.stat-table td { padding: 8px 6px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.stat-table th:not(:first-child), .stat-table td:not(:first-child) { text-align: right; white-space: nowrap; }
.stat-table tr:last-child td { border-bottom: 0; }
.status-list { display: flex; flex-direction: column; gap: 8px; }
.status-list div { display: flex; justify-content: space-between; align-items: center; }

/* Parcel label (printed from the orders tab) */
#print-area { display: none; }
@media print {
  @page { size: A4; margin: 10mm; }
  body.printing > *:not(#print-area) { display: none !important; }
  body.printing { background: #fff; }
  body.printing #print-area { display: block; }
}
.label { width: 105mm; min-height: 140mm; border: 1.5px dashed #555; padding: 6mm; margin-bottom: 8mm; font-size: 10.5pt; color: #000; page-break-inside: avoid; break-inside: avoid; display: flex; flex-direction: column; gap: 4mm; }
.label-head { display: flex; align-items: center; gap: 3mm; border-bottom: 1px solid #000; padding-bottom: 3mm; }
.label-head img { width: 14mm; height: 14mm; border-radius: 50%; }
.label-head span { font-size: 9pt; }
.label-num { margin-left: auto; text-align: right; font-weight: 700; font-size: 14pt; }
.label-num span { font-weight: 400; font-size: 9pt; }
.label-cap { font-size: 8.5pt; text-transform: uppercase; letter-spacing: .08em; }
.label-name { font-size: 17pt; font-weight: 700; line-height: 1.2; }
.label-phone { font-size: 14pt; font-weight: 700; margin-top: 1mm; }
.label-addr { font-size: 12.5pt; margin-top: 2mm; line-height: 1.35; }
.label-items { width: 100%; border-collapse: collapse; font-size: 9.5pt; border-top: 1px solid #000; }
.label-items td { padding: 1.5mm 0; border-bottom: 1px dotted #888; vertical-align: top; }
.label-items td:last-child { text-align: right; white-space: nowrap; padding-left: 3mm; }
.label-foot { display: flex; justify-content: space-between; gap: 3mm; font-size: 10pt; margin-top: auto; }
.label-note { font-size: 9pt; border: 1px solid #999; padding: 2mm; }

@media (max-width: 760px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-v { font-size: 1.35rem; }
  .hide-sm { display: none; }
  .order-body, .settings-grid { grid-template-columns: 1fr; }
  .a-row { grid-template-columns: 48px 1fr; }
  .a-row .actions { grid-column: 1 / -1; justify-content: flex-start; }
}
