:root {
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f8fafc;
  --card: #ffffff;
  --navy: #0f172a;
  --navy2: #1e293b;
  --gold: #f59e0b;
  --gold-l: #fcd34d;
  --gold-d: #d97706;
  --ok: #16a34a;
  --bad: #dc2626;
  --info: #2563eb;
  --r: 14px;
  --sh: 0 1px 3px rgba(15, 23, 42, .07), 0 10px 30px -18px rgba(15, 23, 42, .35);
  --wrap: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: "Manrope", "Segoe UI", Tahoma, "Noto Sans", "Noto Kufi Arabic", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; display: block; }
.hide { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%) translateY(20px);
  background: var(--navy);
  color: #fff;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--sh);
  opacity: 0;
  pointer-events: none;
  transition: .25s;
  z-index: 9999;
  max-width: 92vw;
  text-align: center;
}
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.ok { background: var(--ok); }
.toast.err { background: var(--bad); }

#preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: radial-gradient(1200px 600px at 50% -10%, #1e293b 0%, #0f172a 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .45s, visibility .45s;
}
#preloader.off { opacity: 0; visibility: hidden; pointer-events: none; }
.pre-card { text-align: center; padding: 20px; }
.pre-logo {
  width: 108px;
  height: 108px;
  margin: 0 auto 16px;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(245, 158, 11, .45);
  animation: prePulse 1.5s ease-out infinite, preSpin 6s linear infinite;
}
@keyframes prePulse {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, .45); }
  70% { box-shadow: 0 0 0 26px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}
@keyframes preSpin { 0% { transform: rotate(0); } 100% { transform: rotate(360deg); } }
.pre-name { color: #fff; font-weight: 800; font-size: 19px; letter-spacing: .3px; }
.pre-sub { color: var(--gold-l); font-size: 12.5px; margin-top: 4px; opacity: .9; }
.pre-bar {
  width: 168px;
  height: 4px;
  background: rgba(255, 255, 255, .15);
  border-radius: 99px;
  margin: 18px auto 0;
  overflow: hidden;
}
.pre-bar i {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--gold-l), var(--gold));
  animation: preBar 1.1s ease-in-out infinite;
}
@keyframes preBar {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(320%); }
}

.banner {
  background: linear-gradient(105deg, var(--navy) 0%, var(--navy2) 70%, #334155 100%);
  color: #fff;
  border-bottom: 2px solid rgba(245, 158, 11, .35);
}
.banner-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 9px;
  padding-bottom: 9px;
  flex-wrap: wrap;
}
.b-left { display: flex; align-items: center; gap: 11px; min-width: 0; }
.b-logo { width: 46px; height: 46px; flex: 0 0 auto; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .35)); }
.b-txt { min-width: 0; }
.b-name { font-weight: 800; font-size: 15.5px; color: var(--gold-l); line-height: 1.3; }
.b-name.ar { font-weight: 700; font-size: 14px; color: #fff; opacity: .95; direction: rtl; }
.b-chips { display: flex; gap: 6px; margin-top: 5px; flex-wrap: wrap; }
.b-chips i {
  font-style: normal;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .2px;
  color: #fff;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  padding: 2px 9px;
  border-radius: 99px;
  white-space: nowrap;
}
.b-right { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.b-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #e2e8f0;
}
.b-item svg { width: 15px; height: 15px; fill: var(--gold); flex: 0 0 auto; }
.b-item.link:hover { color: var(--gold-l); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.top-in { display: flex; align-items: center; gap: 12px; height: 58px; }
.ic-btn {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  transition: .15s;
  flex: 0 0 auto;
}
.ic-btn:hover { background: #f1f5f9; }
.ic-btn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 16px; color: var(--navy); min-width: 0; }
.brand img { width: 34px; height: 34px; }
.brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-r { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.cart-btn { position: relative; }
.cart-n {
  position: absolute;
  top: 2px;
  right: 1px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 99px;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-n.hide { display: none; }

#google_translate_element { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.tr-wrap { position: relative; }
.tr-cur {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--gold);
  color: var(--navy);
  font-size: 8.5px;
  font-weight: 900;
  line-height: 1;
  padding: 2.5px 3.5px;
  border-radius: 5px;
  letter-spacing: .3px;
  pointer-events: none;
}
.tr-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 24px 50px -20px rgba(15, 23, 42, .35);
  min-width: 212px;
  padding: 8px;
  z-index: 950;
  animation: pop .16s ease;
}
.tr-menu[hidden] { display: none !important; }
.tr-t { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); padding: 6px 10px 7px; }
.tr-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 9px 11px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  text-align: left;
}
.tr-menu button:hover { background: #f8fafc; }
.tr-menu button b { font-size: 10.5px; color: var(--muted); background: #f1f5f9; border-radius: 6px; padding: 3px 6px; }
.tr-menu button.on { background: linear-gradient(120deg, rgba(245, 158, 11, .16), rgba(245, 158, 11, .06)); color: var(--gold-d); }
.tr-menu button.on b { background: var(--gold); color: var(--navy); }
.goog-te-gadget { font-family: inherit !important; font-size: 12px !important; color: var(--muted) !important; white-space: nowrap !important; }
.goog-te-gadget { display: none !important; }
body.translate-open .goog-te-gadget { display: inline-block !important; }
body.translate-open .goog-te-gadget span { display: none !important; }
.goog-te-combo {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 9px;
  padding: 7px 8px;
  font-size: 13px;
  color: var(--ink);
  outline: none;
  max-width: 150px;
}
.goog-te-combo:focus { border-color: var(--gold); }
body { top: 0 !important; position: static !important; }
.goog-te-banner-frame, .goog-te-balloon-frame { display: none !important; }
#goog-gt-tt, .goog-te-ft-frame { display: none !important; }
.skiptranslate iframe { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }

.drawer-mask {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .5);
  opacity: 0;
  visibility: hidden;
  transition: .25s;
  z-index: 800;
}
.drawer-mask.on { opacity: 1; visibility: visible; }
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(332px, 88vw);
  background: #f6f7fb;
  z-index: 801;
  transform: translateX(104%);
  transition: transform .28s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: -8px 0 40px rgba(15, 23, 42, .24);
}
.drawer.on { transform: translateX(0); }
.dr-head {
  position: relative;
  flex: none;
  background: linear-gradient(115deg, var(--navy), var(--navy2) 72%, #1f2b45);
  color: #fff;
  padding: 18px 14px 17px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.dr-head::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(245, 158, 11, .8), transparent);
}
.dr-head img {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  padding: 2px;
  background: #fff;
  border: 1px solid rgba(245, 158, 11, .45);
}
.dr-head b { display: block; font-size: 14.5px; color: var(--gold-l); line-height: 1.25; overflow-wrap: anywhere; }
.dr-head small { font-size: 11.5px; opacity: .8; }
.dr-close { margin-left: auto; color: #fff; font-size: 20px; width: 34px; height: 34px; border-radius: 9px; flex: none; }
.dr-close:hover { background: rgba(255, 255, 255, .12); }
.dr-body { flex: 1 1 auto; overflow-y: auto; display: flex; flex-direction: column; -webkit-overflow-scrolling: touch; }
.drawer nav { padding: 6px 10px 8px; }
.drawer nav a, .drawer nav .d-cat {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 11px;
  margin-bottom: 4px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14.2px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  transition: border-color .16s, color .16s, transform .16s, box-shadow .16s;
}
.drawer nav a:hover, .drawer nav .d-cat:hover {
  border-color: #fcd9a0;
  color: var(--gold-d);
  transform: translateX(-2px);
  box-shadow: 0 8px 18px -16px rgba(15, 23, 42, .7);
}
.drawer nav a > span:not(.d-ico):not(.d-go):not(.dr-badge):not(.ico) { flex: 1 1 auto; min-width: 0; }
.drawer nav a > .ico, .drawer nav .d-cat > .ico { flex: none; width: 30px; height: 30px; }
.drawer nav .d-go { margin-left: 6px; color: #c3cbd8; font-size: 19px; line-height: 1; flex: none; }
.drawer nav a:hover .d-go { color: var(--gold-d); }
.drawer nav hr { border: 0; border-top: 1px solid var(--line); margin: 10px 6px; }
.d-label {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  padding: 12px 11px 7px;
}
.dr-foot {
  position: sticky;
  bottom: 0;
  margin-top: auto;
  padding: 12px 12px calc(12px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(246, 247, 251, 0), #f6f7fb 26%);
  border-top: 1px solid var(--line);
}
.dr-install {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: linear-gradient(120deg, var(--gold), var(--gold-d));
  color: var(--navy);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 12px 24px -16px rgba(217, 119, 6, .95);
  transition: transform .15s, box-shadow .15s;
}
.dr-install:active { transform: scale(.985); }
.dr-install .di-ic { font-size: 17px; line-height: 1; flex: none; }
.dr-install .di-tx b { display: block; font-size: 14px; font-weight: 900; line-height: 1.25; }
.dr-install .di-tx small { display: block; font-size: 11.4px; opacity: .82; line-height: 1.3; }
.dr-install.done {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
  box-shadow: none;
}
/* Install is impossible on a plain http link — make the button say so
   instead of looking like a normal, tappable gold CTA. */
.dr-install.blocked {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
  box-shadow: none;
}
.dr-copy {
  text-align: center;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--muted);
  padding-top: 11px;
}

.tabs-bar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 450;
  box-shadow: 0 12px 26px -22px rgba(15, 23, 42, .55);
}
.tabs-in {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 16px;
  scrollbar-width: none;
}
.tabs-in::-webkit-scrollbar { display: none; }
.tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--navy);
  font-weight: 700;
  font-size: 13.5px;
  border: 1px solid transparent;
  transition: .15s;
  white-space: nowrap;
}
.tab:hover { border-color: var(--gold); }
.tab.on { background: linear-gradient(120deg, var(--gold), var(--gold-d)); color: var(--navy); box-shadow: 0 6px 16px -8px rgba(217, 119, 6, .8); }

main { flex: 1 0 auto; width: 100%; }
.sect { padding-top: 20px; padding-bottom: 40px; }
.shop-hero { width:100%; margin:0; padding:0; line-height:0; }
.shop-hero img { width:100%; height:auto; object-fit:contain; border-radius:0; box-shadow:none; }
.shop-search { display:flex; align-items:center; gap:8px; margin:14px auto; padding:0 14px; background:#fff; border:1px solid var(--line); border-radius:999px; box-shadow:var(--sh); }
.shop-search span { font-size:26px; line-height:1; color:var(--gold-d); }
.shop-search span { order:1; }
.shop-search input { order:2; flex:1; width:auto; border:0; outline:0; padding:12px 4px; background:transparent; font:inherit; }
.home-page .topbar { position:absolute; top:0; left:0; right:0; background:transparent !important; backdrop-filter:none; -webkit-backdrop-filter:none; border-bottom:0; box-shadow:none; z-index:510; }
.home-page .top-in { justify-content:flex-end; gap:6px; }
.home-page .brand { display:none; }
.home-page #menuBtn { order:3; }
.home-page .top-r { order:2; margin-left:0; }
.home-page .topbar .ic-btn { color:#fff; filter:drop-shadow(0 2px 4px rgba(0,0,0,.7)); }
.home-page .topbar .ic-btn:hover { background:rgba(15,23,42,.28); }
.sect-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 10px; margin-bottom: 14px; flex-wrap: wrap; }
.sect-head h2 { font-size: 20px; color: var(--navy); }
.sect-head .hint { font-size: 13px; color: var(--muted); white-space: normal; line-height: 1.5; max-width: 100%; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 16px;
}
.p-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--sh);
  transition: transform .18s, box-shadow .18s;
  display: flex;
  flex-direction: column;
  position: relative;
}
.p-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px -18px rgba(15, 23, 42, .45); }
.p-media { position: relative; aspect-ratio: 4/3; background: #eef2f7; overflow: hidden; }
.p-media img, .p-media video { width: 100%; height: 100%; object-fit: cover; }
.p-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.p-play span {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(15, 23, 42, .72);
  display: flex;
  align-items: center;
  justify-content: center;
}
.p-play svg { width: 20px; height: 20px; fill: #fff; margin-left: 3px; }
.p-body { padding: 12px 13px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.p-cat { font-size: 11px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--gold-d); }
.p-name { font-size: 15px; font-weight: 700; color: var(--navy); line-height: 1.35; }
.p-price { font-size: 16.5px; font-weight: 800; color: var(--navy); margin-top: auto; }
.p-price small { font-size: 12px; color: var(--muted); font-weight: 700; }
.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--bad);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 99px;
  z-index: 2;
}
.badge.stock { background: var(--ok); left: auto; right: 10px; }
.empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 54px 16px;
  background: #fff;
  border: 1.5px dashed var(--line);
  border-radius: var(--r);
  color: var(--muted);
}
.empty .big { font-size: 40px; margin-bottom: 8px; }
.empty b { color: var(--navy); display: block; font-size: 16px; margin-bottom: 4px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 14.5px;
  border: 1.5px solid transparent;
  transition: .15s;
  text-align: center;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn-pri { background: linear-gradient(120deg, var(--gold), var(--gold-d)); color: var(--navy); box-shadow: 0 10px 22px -12px rgba(217, 119, 6, .9); }
.btn-pri:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy2); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--navy); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-d); }
.btn-wa { background: #25d366; color: #06281a; }
.btn-wa:hover { filter: brightness(1.04); }
.btn-ok { background: var(--ok); color: #fff; }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn.is-loading {
  background: linear-gradient(90deg, var(--gold) var(--submit-progress, 12%), #fcd58b var(--submit-progress, 12%));
  color: var(--navy);
  min-width: 190px;
}
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 10px; }

.crumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 14px; flex-wrap: wrap; }
.crumb a { color: var(--info); font-weight: 600; }
.crumb a:hover { text-decoration: underline; }

.pd { display: grid; grid-template-columns: 1.05fr 1fr; gap: 26px; align-items: start; }
.pd-stage { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--sh); }
.pd-stage img, .pd-stage video { width: 100%; max-height: 460px; object-fit: contain; background: #0f172a; aspect-ratio: auto; min-height: 240px; }
.pd-stage video { display: block; }
.pd-thumbs { display: flex; gap: 9px; margin-top: 10px; flex-wrap: wrap; }
.pd-thumb {
  width: 74px;
  height: 58px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid var(--line);
  background: #eef2f7;
  position: relative;
  flex: 0 0 auto;
}
.pd-thumb.on { border-color: var(--gold); }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumb .tv {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, .35);
}
.pd-thumb .tv svg { width: 18px; height: 18px; fill: #fff; }
.pd-info h1 { font-size: 24px; color: var(--navy); line-height: 1.3; margin-bottom: 6px; }
.pd-price { font-size: 30px; font-weight: 900; color: var(--gold-d); margin: 10px 0; }
.pd-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.chip { background: #f1f5f9; border: 1px solid var(--line); padding: 5px 12px; border-radius: 99px; font-size: 12.5px; font-weight: 700; color: var(--navy); }
.chip.ok { background: #dcfce7; border-color: #bbf7d0; color: #15803d; }
.chip.bad { background: #fee2e2; border-color: #fecaca; color: #b91c1c; }
.pd-desc { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 15px 16px; color: #374151; white-space: pre-line; font-size: 14.5px; box-shadow: var(--sh); }
.pd-desc h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .7px; color: var(--muted); margin-bottom: 8px; }
.pd-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
/* Home left · Buy Now centre (primary) · Add to Cart right */
.pd-actions .act-home { flex: 0 0 88px; order: 1; }
.pd-actions .act-buy { flex: 1 1 130px; order: 2; }
.pd-actions .act-cart { flex: 0 0 120px; order: 3; }

.stepper { display: flex; align-items: center; justify-content: center; gap: 0; margin: 6px 0 24px; }
.stp { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 92px; }
.stp .dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 15px;
  color: var(--muted);
  transition: .2s;
}
.stp small { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.stp.on .dot, .stp.done .dot { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.stp.on small, .stp.done small { color: var(--navy); }
.stp-line { flex: 0 1 70px; height: 3px; background: var(--line); border-radius: 9px; margin: 0 4px 22px; }
.stp-line.on { background: var(--gold); }

.ostep { display: none; }
.ostep.on { display: block; animation: fadeUp .3s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); padding: 18px; }
.panel + .panel { margin-top: 16px; }
.panel h3 { font-size: 15.5px; color: var(--navy); margin-bottom: 13px; display: flex; align-items: center; gap: 8px; }
.panel h3 .n { width: 24px; height: 24px; border-radius: 8px; background: var(--gold); color: var(--navy); font-size: 13px; display: flex; align-items: center; justify-content: center; font-weight: 800; }

.cart-row {
  display: grid;
  grid-template-columns: auto 64px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.cart-row:last-child { border-bottom: 0; }
.cart-row.off { opacity: .5; }
.ck {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  flex: 0 0 auto;
}
.ck.on { background: var(--gold); border-color: var(--gold); }
.ck svg { width: 13px; height: 13px; stroke: var(--navy); stroke-width: 3.4; fill: none; visibility: hidden; }
.ck.on svg { visibility: visible; }
.cart-img { width: 64px; height: 54px; border-radius: 9px; overflow: hidden; background: #eef2f7; }
.cart-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-nm { min-width: 0; }
.cart-nm b { display: block; font-size: 14.5px; color: var(--navy); }
.cart-nm span { font-size: 13px; color: var(--muted); font-weight: 700; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-top: 8px; background: #fff; }
.qty button {
  width: 44px;
  height: 44px;
  font-weight: 800;
  font-size: 19px;
  line-height: 1;
  color: var(--navy);
  background: #f8fafc;
  touch-action: manipulation;
  transition: background .15s, transform .12s;
}
.qty button:hover { background: #eef2f7; }
.qty button:active { transform: scale(.92); background: var(--gold-l); }
.qty span { min-width: 44px; text-align: center; font-weight: 800; font-size: 15px; }
.cart-rt { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 7px; }
.cart-rt b { font-size: 15.5px; color: var(--navy); }
.cart-del { font-size: 12.5px; color: var(--bad); font-weight: 700; }
.cart-del:hover { text-decoration: underline; }

.tot-row { display: flex; justify-content: space-between; font-size: 14.5px; padding: 7px 0; color: #374151; }
.tot-row.big { border-top: 2px dashed var(--line); margin-top: 6px; padding-top: 12px; font-size: 18px; font-weight: 900; color: var(--navy); }
.tot-row .free { color: var(--ok); font-weight: 800; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.field label .req { color: var(--bad); }
.field input, .field textarea, .field select {
  width: 100%;
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 11px;
  padding: 12px 13px;
  font-size: 14.5px;
  outline: none;
  transition: border .15s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245, 158, 11, .15); }
.field .tip { font-size: 12px; color: var(--muted); margin-top: 5px; }
.field.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .field.two { grid-template-columns: 1fr; } }

#mapBox {
  height: 260px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  overflow: hidden;
  background: #e2e8f0;
  position: relative;
}
#mapBox .map-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 16px;
  color: var(--muted);
  font-size: 13.5px;
  background: repeating-linear-gradient(45deg, #f1f5f9, #f1f5f9 14px, #e9eef5 14px, #e9eef5 28px);
}
.map-tools { display: flex; gap: 9px; margin-top: 10px; flex-wrap: wrap; }
.loc-info {
  margin-top: 10px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 11px;
  padding: 11px 13px;
  font-size: 13.5px;
  color: #075985;
}
.loc-info b { color: #0c4a6e; }

.pay-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .pay-opts { grid-template-columns: 1fr; } }
.pay-opt {
  border: 2px solid var(--line);
  border-radius: 13px;
  padding: 15px;
  cursor: pointer;
  background: #fff;
  transition: .15s;
  position: relative;
}
.pay-opt:hover { border-color: var(--gold-l); }
.pay-opt.on { border-color: var(--gold); background: #fffbeb; }
.pay-opt b { display: block; font-size: 15px; color: var(--navy); margin-bottom: 3px; }
.pay-opt small { font-size: 12.5px; color: var(--muted); }
.pay-opt .ic { font-size: 22px; margin-bottom: 7px; }
.pay-opt .tick {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold);
  display: none;
  align-items: center;
  justify-content: center;
}
.pay-opt.on .tick { display: flex; }
.pay-opt .tick svg { width: 11px; height: 11px; stroke: var(--navy); stroke-width: 3.5; fill: none; }

.wamd-box { margin-top: 14px; background: #fffbeb; border: 1.5px dashed var(--gold); border-radius: 13px; padding: 15px; }
.wamd-box .amt { font-size: 26px; font-weight: 900; color: var(--navy); }
.wamd-box .num { font-size: 15px; font-weight: 800; color: var(--gold-d); direction: ltr; text-align: left; }
.wamd-actions { display: flex; gap: 9px; margin-top: 11px; flex-wrap: wrap; }

.ss-box {
  border: 1.5px dashed var(--line);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  background: #f8fafc;
  cursor: pointer;
  transition: .15s;
  font-size: 13.5px;
  color: var(--muted);
}
.ss-box:hover { border-color: var(--gold); color: var(--gold-d); background: #fffbeb; }
.ss-prev { display: none; margin-top: 12px; position: relative; }
.ss-prev.on { display: block; }
.ss-prev img { max-height: 190px; margin: 0 auto; border-radius: 11px; border: 1px solid var(--line); }
.ss-prev .x {
  position: absolute;
  top: -9px;
  right: -9px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bad);
  color: #fff;
  font-weight: 800;
  box-shadow: var(--sh);
}
.ss-prog { height: 6px; background: #e5e7eb; border-radius: 99px; overflow: hidden; margin-top: 9px; display: none; }
.ss-prog.on { display: block; }
.ss-prog i { display: block; height: 100%; width: 0%; background: var(--gold); transition: width .2s; }

.summary-line { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; padding: 5px 0; color: #374151; }
.summary-line b { color: var(--navy); text-align: right; }

.order-nav { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.order-nav .btn { flex: 1 1 150px; }

.done-card { text-align: center; padding: 34px 20px; }
.done-ic {
  width: 86px;
  height: 86px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #dcfce7;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pop .4s cubic-bezier(.2, 1.6, .4, 1);
}
@keyframes pop { 0% { transform: scale(.3); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.done-ic svg { width: 44px; height: 44px; stroke: var(--ok); stroke-width: 3; fill: none; }
.done-card h2 { color: var(--navy); font-size: 22px; margin-bottom: 6px; }
.done-card .oid { display: inline-block; background: #f1f5f9; border: 1px dashed var(--line); border-radius: 9px; padding: 7px 14px; font-weight: 800; color: var(--navy); margin: 8px 0 4px; }
.done-card p { color: var(--muted); font-size: 14px; max-width: 420px; margin: 6px auto 0; }
.done-actions { display: flex; gap: 10px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }

.ai-fab {
  position: fixed;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 23, 42, .68);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(245, 158, 11, .55);
  color: var(--gold-l);
  box-shadow: 0 10px 26px -14px rgba(15, 23, 42, .75);
  z-index: 900;
  left: auto;
  top: auto;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  transition: transform .15s, background .15s, border-color .15s;
}
.ai-fab:hover { background: rgba(15, 23, 42, .8); border-color: rgba(245, 158, 11, .85); }
.ai-fab:active { transform: scale(1.06); }
.ai-fab.dragging { cursor: grabbing; transform: scale(1.04); }
.ai-fab svg { width: 22px; height: 22px; fill: var(--gold-l); pointer-events: none; }
.ai-spark { font-size: 21px; line-height: 1; font-weight: 800; color: var(--gold-l); pointer-events: none; }
.ai-fab .ai-dot {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 9px;
  height: 9px;
  background: var(--ok);
  border: 2px solid rgba(15, 23, 42, .9);
  border-radius: 50%;
}

.ai-panel {
  position: fixed;
  width: min(370px, calc(100vw - 20px));
  height: min(540px, calc(100vh - 40px));
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 30px 70px -20px rgba(15, 23, 42, .55);
  z-index: 901;
  left: auto;
  top: auto;
  right: 18px;
  bottom: 82px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  animation: fadeUp .25s ease;
}
.ai-panel[hidden] { display: none; }
.ai-head {
  background: linear-gradient(105deg, var(--navy), var(--navy2));
  color: #fff;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ai-av { width: 38px; height: 38px; border-radius: 50%; background: var(--gold); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.ai-av svg { width: 22px; height: 22px; fill: var(--navy); }
.ai-av .ai-spark { font-size: 23px; }
.ai-head b { display: block; font-size: 14.5px; line-height: 1.2; }
.ai-head small { font-size: 11.5px; color: var(--gold-l); }
.ai-head .hbtn { margin-left: auto; width: 32px; height: 32px; border-radius: 9px; color: #cbd5e1; font-size: 17px; }
.ai-head .hbtn:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.ai-head .hbtn-ic { display: grid; place-items: center; }
.hbtn-ic svg { grid-area: 1 / 1; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hbtn-ic .ic-c { display: none; }
.hbtn-ic.is-on .ic-x { display: none; }
.hbtn-ic.is-on .ic-c { display: block; }
.ai-msgs { flex: 1; overflow-y: auto; padding: 14px; background: #f8fafc; display: flex; flex-direction: column; gap: 10px; }
/* Column flex shrinks items to fit the box; with overflow:hidden on the card
   its automatic minimum height is 0, which used to squash the price + buttons
   out of view. Keep every message and card at its natural height. */
.ai-msgs > * { flex: 0 0 auto; }
.msg { max-width: 86%; padding: 10px 13px; border-radius: 15px; font-size: 13.8px; line-height: 1.5; word-wrap: break-word; white-space: pre-line; }
.msg.bot { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 5px; align-self: flex-start; color: #1f2937; }
.msg.me { background: var(--navy); color: #fff; border-bottom-right-radius: 5px; align-self: flex-end; }
.msg.img-me { padding: 5px; background: var(--navy); align-self: flex-end; border-radius: 15px; border-bottom-right-radius: 5px; }
.msg.img-me img { max-width: 180px; max-height: 180px; border-radius: 11px; display: block; }
.msg.typing { display: flex; gap: 4px; align-items: center; min-height: 20px; }
.msg.typing i { width: 7px; height: 7px; background: #94a3b8; border-radius: 50%; animation: blink 1.2s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .2s; }
.msg.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }
.ai-prod {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  align-self: stretch;
  max-width: 92%;
  box-shadow: var(--sh);
}
.ai-prod .ap-img {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  background: #eef2f7;
  border: 0;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
}
.ai-prod .ap-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ai-prod .ap-hint {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 4px 9px;
  border-radius: 99px;
  background: rgba(15, 23, 42, .82);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .02em;
  backdrop-filter: blur(4px);
}
.ai-prod .ap-b { padding: 10px 11px 11px; }
.ai-prod .ap-b b { display: block; font-size: 14px; line-height: 1.3; color: var(--navy); }
.ai-prod .pr {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  font-weight: 900;
  color: var(--gold-d);
  font-size: 15.5px;
  margin: 4px 0 9px;
}
.ai-prod .ap-stock {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 99px;
  background: #ecfdf5;
  color: #059669;
}
.ai-prod .ap-stock.out { background: #fef2f2; color: #dc2626; }
.ai-prod .ap-acts { display: flex; gap: 8px; }
.ai-prod .ap-acts .btn {
  flex: 1 1 0;
  min-width: 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 13.5px;
  white-space: nowrap;
}
.ai-prod .ap-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 42px;
  margin-top: 8px;
  border: 0;
  border-top: 1px solid #eef1f6;
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
}
.ai-prod .ap-toggle .ap-chev {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .18s;
}
.ai-prod.open .ap-toggle .ap-chev { transform: rotate(180deg); }
.ai-prod .ap-more { display: none; padding: 2px 11px 12px; }
.ai-prod.open .ap-more { display: block; }
.ai-prod .ap-more p { margin: 0 0 9px; font-size: 12.8px; line-height: 1.55; color: #4b5563; }
.ai-prod .ap-specs { list-style: none; margin: 0 0 6px; padding: 0; font-size: 12.2px; }
.ai-prod .ap-specs li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 0;
  border-bottom: 1px dashed #eef1f6;
  color: var(--muted);
}
.ai-prod .ap-specs li b { color: var(--navy); font-weight: 800; text-align: right; }
.ai-prod .ap-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-size: 12.8px;
  font-weight: 800;
  color: var(--gold-d);
  text-decoration: none;
  border-bottom: 1.5px solid transparent;
}
.ai-prod .ap-link:hover { border-bottom-color: var(--gold); }
.ai-att { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: #fffbeb; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--gold-d); font-weight: 700; }
.ai-att[hidden] { display: none; }
.ai-att img { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; }
.ai-att button { margin-left: auto; color: var(--bad); font-weight: 800; font-size: 16px; }
.ai-inp { display: flex; align-items: center; gap: 8px; padding: 10px; background: #fff; border-top: 1px solid var(--line); }
.ai-inp input {
  flex: 1;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 10px 15px;
  font-size: 14px;
  outline: none;
  min-width: 0;
}
.ai-inp input:focus { border-color: var(--gold); }
.ai-btn { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.ai-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; }
.ai-btn.img { background: #f1f5f9; color: var(--navy); }
.ai-btn.img:hover { background: #e2e8f0; }
.ai-btn.send { background: var(--gold); color: var(--navy); }
.ai-btn.send:hover { filter: brightness(1.06); }
.ai-btn.send:disabled { opacity: .5; }

.site-foot { background: var(--navy); color: #cbd5e1; margin-top: auto; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 26px; padding-top: 34px; padding-bottom: 26px; text-align: center; justify-items: center; }
.f-col { display: flex; flex-direction: column; align-items: center; }
.f-logo { margin: 0 auto 10px; width: 56px; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; gap: 18px; } }
.f-logo { width: 52px; height: 52px; margin-bottom: 10px; }
.f-col b.f-t { display: block; color: #fff; font-size: 15.5px; margin-bottom: 8px; }
.f-col p { font-size: 13.5px; line-height: 1.6; }
.f-col h4 { color: var(--gold-l); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 11px; }
.f-col a { display: flex; align-items: center; gap: 8px; font-size: 13.8px; padding: 5px 0; color: #cbd5e1; justify-content: center; }
.f-col a:hover { color: var(--gold-l); }
.f-col a.hide { display: none; }
.foot-bot {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  max-width: var(--wrap);
  margin: 0 auto;
  width: 100%;
  font-size: 13px;
  text-align: center;
}
.ig-chip { display: inline-flex; align-items: center; gap: 7px; background: rgba(255, 255, 255, .08); padding: 6px 13px; border-radius: 99px; font-weight: 700; color: #fff; }
.ig-chip:hover { background: rgba(245, 158, 11, .25); }
.ig-chip svg { width: 15px; height: 15px; fill: #e1306c; }

.static-page { max-width: 820px; margin: 0 auto; }
.static-page h1 { color: var(--navy); font-size: 26px; margin: 10px 0 4px; }
.static-page .lead { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.static-page h2 { color: var(--navy); font-size: 18px; margin: 22px 0 8px; }
.static-page p, .static-page li { font-size: 14.5px; color: #374151; margin-bottom: 9px; }
.static-page ul { padding-left: 20px; }
.static-page .card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; box-shadow: var(--sh); }

.offline-bar {
  display: none;
  background: #fef2f2;
  border-bottom: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  padding: 8px 12px;
}
.offline-bar.on { display: block; }
.off-retry {
  margin-left: 8px;
  background: var(--bad);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 13px;
  border-radius: 99px;
}
.off-retry:hover { filter: brightness(1.1); }
.btn-retry {
  margin-top: 14px;
  background: linear-gradient(120deg, var(--gold), var(--gold-d));
  color: var(--navy);
  font-weight: 800;
  font-size: 14px;
  padding: 10px 26px;
  border-radius: 999px;
  box-shadow: 0 10px 22px -12px rgba(217, 119, 6, .9);
  transition: .15s;
}
.btn-retry:hover { filter: brightness(1.05); transform: translateY(-1px); }

@media (max-width: 900px) {
  .pd { grid-template-columns: 1fr; }
  .pd-stage img, .pd-stage video { max-height: 340px; }
}
@media (max-width: 700px) {
  .shop-hero { padding: 0; }
  .shop-hero img { height: auto; border-radius: 0; }
  .b-name { font-size: 14px; }
  .banner-in { gap: 8px; }
  .b-logo { width: 40px; height: 40px; }
  .b-chips i { font-size: 9.5px; padding: 2px 7px; }
  .brand span { max-width: 130px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 11px; }
  .p-name { font-size: 13.5px; }
  .p-price { font-size: 15px; }
  .stepper { transform: scale(.92); }
  .stp { min-width: 76px; }
  .cart-row { grid-template-columns: auto 52px 1fr; }
  .cart-rt { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ------------------------------------------------------------------ *
 * Icon system (emoji | Iconify | uploaded asset)
 * ------------------------------------------------------------------ */
.ico { display: inline-flex; align-items: center; justify-content: center; flex: none; line-height: 1; }
.ico-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ico svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.tab-ico { width: 17px; height: 17px; font-size: 17px; }
.tab .tab-ico { vertical-align: -3px; margin-right: 6px; }
.d-cat .ico { width: 30px; height: 30px; border-radius: 9px; background: #f1f5f9; font-size: 16px; }
.f-logo { width: 46px; height: 46px; object-fit: contain; border-radius: 12px; margin-bottom: 8px; }

/* ------------------------------------------------------------------ *
 * Submit button: staged progress
 * ------------------------------------------------------------------ */
.btn.is-loading {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(90deg, var(--navy) 0%, var(--navy) var(--submit-progress, 0%), var(--navy-2) var(--submit-progress, 0%));
  transition: background .4s ease;
}
.btn.is-loading .spin {
  display: inline-block;
  width: 15px;
  height: 15px;
  margin-right: 8px;
  vertical-align: -3px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: sp .7s linear infinite;
}
.btn.is-loading .sec {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
  font-size: 12px;
  font-weight: 800;
}
@keyframes sp { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------ *
 * Confirmation / receipt screen
 * ------------------------------------------------------------------ */
.done-sum {
  margin-top: 16px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.ds-sec { padding: 14px 16px; border-top: 1px dashed var(--line); }
.ds-sec:first-child { border-top: 0; }
.ds-sec h4 { margin: 0 0 10px; font-size: 12.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.summary-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  font-size: 14.5px;
}
.summary-line + .summary-line { border-top: 1px solid #f1f5f9; }
.summary-line span:first-child { color: var(--muted); flex: none; }
.summary-line b { text-align: right; font-weight: 700; word-break: break-word; }
.summary-line .x { font-style: normal; color: var(--muted); font-weight: 700; }
.tot-row { display: flex; justify-content: space-between; padding: 7px 0 0; font-size: 14.5px; color: var(--muted); }
.tot-row.big {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 2px solid var(--navy);
  color: var(--navy);
  font-weight: 800;
  font-size: 18px;
}
.tot-row.big b, .tot-row.big span:last-child { font-weight: 800; }
.ok-t { color: #0f9d58; font-weight: 700; }
.muted-t { color: var(--muted); font-weight: 600; }

#submitLive { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wa-count { font-size: 13.5px; color: var(--muted); margin-top: 8px; }
.wa-count b { color: var(--navy); }
#waStay {
  display: inline-block;
  margin-top: 8px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--navy);
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: underline;
  cursor: pointer;
}

/* ------------------------------------------------------------------ *
 * AI assistant: bottom sheet on small screens
 * ------------------------------------------------------------------ */
.ai-panel.is-sheet {
  left: 0 !important;
  right: 0 !important;
  top: auto !important;
  bottom: 0 !important;
  width: 100% !important;
  height: min(78vh, 620px) !important;
  max-height: 100%;
  border-radius: 22px 22px 0 0;
  border-bottom: 0;
  box-shadow: 0 -14px 44px rgba(15, 23, 42, .28);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.ai-panel.is-sheet .ai-msgs { flex: 1 1 auto; min-height: 0; }
.ai-fab { touch-action: none; user-select: none; -webkit-user-select: none; }

/* ------------------------------------------------------------------ *
 * Accessibility / polish
 * ------------------------------------------------------------------ */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 6px;
}
.qty button:focus-visible, .tab:focus-visible, .btn:focus-visible { outline-offset: 3px; }
button:disabled, .btn[disabled] { opacity: .55; cursor: not-allowed; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 700px) {
  .pd-actions { gap: 8px; }
  .pd-actions .btn { min-height: 48px; }
  /* keep the last row clear of the floating assistant button */
  main { padding-bottom: 84px; }
}

/* ------------------------------------------------------------------ *
 * Order step 2 — delivery point (distance-based fee)
 * ------------------------------------------------------------------ */
.loc-box {
  margin-top: 14px;
  padding: 14px;
  background: #f8fafc;
  border: 1px dashed var(--line);
  border-radius: 13px;
}
.loc-lab { display: block; font-size: 12.5px; font-weight: 800; color: var(--navy); margin-bottom: 9px; }
.loc-lab .opt { font-weight: 600; color: var(--muted); text-transform: none; letter-spacing: 0; }
.loc-box .btn { width: 100%; min-height: 46px; }
.loc-info { margin-top: 10px; font-size: 13px; color: var(--muted); line-height: 1.55; }
.loc-info b { color: var(--navy); }
.loc-info.warn {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 11px;
  padding: 10px 12px;
  color: #92400e;
}
.loc-info.warn b { color: #92400e; }
.loc-manual { margin-top: 10px; }
.loc-manual > summary {
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--muted);
  list-style: none;
  padding: 6px 0;
}
.loc-manual > summary::-webkit-details-marker { display: none; }
.loc-manual > summary::before { content: '▸ '; }
.loc-manual[open] > summary::before { content: '▾ '; }
.loc-manual-in { padding: 4px 0 2px; }
.lm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 9px; }
.lm-row label { display: block; font-size: 11.5px; font-weight: 800; color: var(--navy); margin-bottom: 4px; }
.lm-row input {
  width: 100%;
  min-height: 42px;
  border: 1.5px solid #e2e8f0;
  border-radius: 11px;
  padding: 0 11px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
}
.lm-row input:focus { outline: none; border-color: var(--gold, #f59e0b); }
.loc-tip { margin-top: 8px; font-size: 11.5px; color: var(--muted); line-height: 1.5; }

/* ------------------------------------------------------------------ *
 * Account: header avatar, drawer entry, profile page
 * ------------------------------------------------------------------ */
.acct-btn { position: relative; }
.acct-av {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e2e8f0;
  color: var(--navy);
  border: 2px solid transparent;
  transition: border-color .15s;
}
.acct-btn:hover .acct-av { border-color: var(--gold); }
.acct-av svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.acct-img { width: 100%; height: 100%; object-fit: cover; display: block; }

.drawer nav .d-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex: none;
  font-size: 15px;
  border-radius: 8px;
  background: #f1f5f9;
}
.drawer nav .d-img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; display: block; }
.drawer nav #drAcct { background: linear-gradient(120deg, rgba(245,158,11,.14), rgba(245,158,11,.05)); border-color: #fbe6c4; }
.drawer nav #drAcct:hover { background: linear-gradient(120deg, rgba(245,158,11,.22), rgba(245,158,11,.09)); }
.drawer nav #drAcctT { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pf-card { margin-top: 4px; }
.pf-hero { text-align: center; margin-bottom: 18px; }
.pf-hero-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(245,158,11,.2), rgba(245,158,11,.06));
  color: var(--gold-d);
  margin-bottom: 10px;
}
.pf-hero-ic svg { width: 32px; height: 32px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; }
.pf-hero h1 { margin-top: 0; }
.static-page .pf-card .lead { margin-bottom: 0; }

.g-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  width: 100%;
  min-height: 52px;
  font-size: 15.5px;
  font-weight: 800;
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--line);
  box-shadow: 0 8px 20px -14px rgba(15,23,42,.5);
}
.g-btn:hover { border-color: var(--gold); background: #fff; transform: translateY(-1px); }
.g-ico { width: 21px; height: 21px; flex: none; }

.pf-perks { list-style: none; padding: 0 !important; margin: 16px 0 4px; }
.pf-perks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px !important;
  color: #374151;
  padding: 7px 0;
  margin-bottom: 0 !important;
}
.pf-perks li span { flex: none; }

.pf-note { font-size: 12.8px !important; color: var(--muted) !important; line-height: 1.6; margin-top: 12px !important; margin-bottom: 0 !important; }
.pf-link { color: var(--gold-d); font-weight: 700; }
.pf-link:hover { text-decoration: underline; }

.pf-head { display: flex; align-items: center; gap: 15px; margin-bottom: 12px; }
.pf-av-btn { position: relative; flex: none; border-radius: 50%; padding: 0; }
.pf-av {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
  border: 3px solid var(--gold);
  box-shadow: 0 10px 24px -14px rgba(15,23,42,.6);
}
.pf-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-av-ph { font-size: 34px; line-height: 1; }
.pf-cam {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}
.pf-av-btn:hover .pf-av { border-color: var(--gold-d); }
.pf-id { min-width: 0; }
.pf-id b { display: block; font-size: 18px; color: var(--navy); line-height: 1.3; overflow-wrap: anywhere; }
.pf-id span { display: block; font-size: 13.2px; color: var(--muted); overflow-wrap: anywhere; }
.pf-badge {
  display: inline-flex !important;
  margin-top: 7px;
  padding: 4px 10px;
  border-radius: 99px;
  background: #dcfce7;
  color: #15803d;
  font-size: 11.5px !important;
  font-weight: 800;
}

.pf-actions-top { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.pf-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.pf-actions .btn { flex: 1 1 160px; min-height: 48px; }

.static-page .pf-card .field .opt { color: var(--muted); font-weight: 600; }
.static-page .pf-card .field .tip { font-size: 12px; color: var(--muted); margin-top: 5px; }

@media (max-width: 560px) {
  .static-page .pf-card { padding: 16px; }
  .pf-av { width: 74px; height: 74px; }
  .pf-id b { font-size: 16.5px; }
  .top-in { gap: 8px; }
  .home-page .top-in { gap: 5px; }
}
@media (max-width: 380px) {
  .home-page .top-r { gap: 5px; }
  .ic-btn { width: 37px; height: 37px; }
}

/* Letter tile shown when a profile picture fails to load */
.img-fb {
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
  color: var(--navy);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}
.acct-av .img-fb { font-size: 13px; }
.drawer .d-img + .img-fb, .drawer nav .img-fb { font-size: 12px; border-radius: 50%; }
.pf-av .img-fb { font-size: 30px; }

/* ------------------------------------------------------------------
 * Sign-in card (order gate, My Orders, profile hero)
 * ------------------------------------------------------------------ */
.lg-card, .static-page #profOut {
  margin-top: 4px;
  border-radius: 20px;
  overflow: hidden;
  padding: 0;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--sh);
}
.lg-hero, .static-page #profOut .pf-hero {
  text-align: center;
  padding: 30px 22px 26px;
  margin: 0;
  background:
    radial-gradient(120% 90% at 50% -20%, rgba(245, 158, 11, .28), transparent 70%),
    linear-gradient(180deg, #fffdf7, #ffffff);
  border-bottom: 1px solid var(--line);
}
.lg-hero-ic, .static-page #profOut .pf-hero-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid rgba(245, 158, 11, .35);
  box-shadow: 0 16px 34px -18px rgba(217, 119, 6, .85);
  color: var(--gold-d);
  margin-bottom: 14px;
}
.lg-hero-ic svg, .static-page #profOut .pf-hero-ic svg {
  width: 38px; height: 38px; stroke: none; fill: var(--gold-d);
}
.static-page #profOut .pf-hero-ic svg { stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; width: 32px; height: 32px; }
.lg-hero h1, .static-page #profOut .pf-hero h1 {
  font-size: 23px;
  line-height: 1.25;
  margin: 0 0 8px;
  color: var(--navy);
}
.lg-hero .lead, .static-page #profOut .pf-hero .lead { margin: 0 auto; max-width: 46ch; font-size: 14.5px; color: var(--muted); }

.lg-card > .g-btn, .lg-card > .pf-note, .lg-card > .lg-perks, .lg-card > .lg-links {
  margin-left: 22px;
  margin-right: 22px;
}
.lg-card > .g-btn { width: auto; margin-top: 22px; min-height: 56px; font-size: 16px; border-radius: 13px; border-color: #dcdfe5; }
.lg-perks { list-style: none; padding: 0; margin: 18px 22px 4px; display: grid; gap: 9px; }
.lg-perks li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 13.6px;
  color: #374151;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 13px;
  line-height: 1.5;
}
.lg-perks li > span:first-child { font-size: 17px; line-height: 1.3; }
.lg-perks li .lg-txt { flex: 1; min-width: 0; }
.lg-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
}
.lg-links .pf-link { background: none; font-size: 13px; }
.lg-card > .pf-note { margin-top: 14px; }
.lg-card .pf-link { font-size: 13px; }

/* Small button helpers used by the assistant buy cards */
.btn-sm { min-height: 38px; padding: 8px 14px; font-size: 13.5px; }
.btn-block { display: block; width: 100%; }

/* Drawer badge for My Orders */
.drawer nav #drOrders { background: linear-gradient(120deg, rgba(37, 99, 235, .10), rgba(37, 99, 235, .04)); }
.drawer nav #drOrders:hover { background: linear-gradient(120deg, rgba(37, 99, 235, .18), rgba(37, 99, 235, .07)); }
.dr-badge {
  margin-left: 4px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 99px;
  background: var(--gold);
  color: var(--navy);
  font-size: 11.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

/* ------------------------------------------------------------------
 * My Orders — account header, stats and delivery tracker
 * ------------------------------------------------------------------ */
.empty-box {
  text-align: center;
  background: #fff;
  border: 1.5px dashed var(--line);
  border-radius: var(--r);
  padding: 44px 18px;
  color: var(--muted);
}
.empty-box .big { font-size: 40px; line-height: 1; margin-bottom: 12px; }
.empty-box b { display: block; color: var(--navy); font-size: 17px; margin-bottom: 6px; }

.mo-head {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px 16px;
  box-shadow: var(--sh);
  margin-bottom: 14px;
}
.mo-av {
  width: 54px; height: 54px; flex: none;
  border-radius: 50%; overflow: hidden;
  background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
  border: 2.5px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 22px; color: var(--navy);
}
.mo-av img { width: 100%; height: 100%; object-fit: cover; }
.mo-id { min-width: 0; flex: 1; }
.mo-id b { display: block; color: var(--navy); font-size: 16.5px; overflow-wrap: anywhere; }
.mo-id span { display: block; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }

.mo-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.mo-stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 13px 8px;
  text-align: center;
  box-shadow: var(--sh);
}
.mo-stat b { display: block; font-size: 22px; color: var(--navy); line-height: 1.2; }
.mo-stat span { font-size: 11.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--muted); }

.mo-err {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  border-radius: var(--r);
  padding: 14px 16px;
  font-size: 13.5px;
  margin-bottom: 14px;
  line-height: 1.55;
}
.mo-err b { display: block; margin-bottom: 3px; }

.mo-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--sh);
  margin-bottom: 14px;
  border-left: 4px solid var(--gold);
}
.mo-card.confirmed { border-left-color: var(--info); }
.mo-card.shipped { border-left-color: var(--gold-d); }
.mo-card.delivered { border-left-color: var(--ok); }
.mo-card.cancelled { border-left-color: var(--bad); opacity: .9; }

.mo-card-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.mo-id-code { display: block; font-size: 16.5px; color: var(--navy); letter-spacing: .4px; }
.mo-date { display: block; font-size: 12.4px; color: var(--muted); }

.mo-badge {
  flex: none;
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 99px;
  font-size: 11.8px;
  font-weight: 800;
  background: #f1f5f9;
  color: var(--navy);
  white-space: nowrap;
}
.mo-badge.confirmed { background: #dbeafe; color: #1d4ed8; }
.mo-badge.shipped { background: #fef3c7; color: #92400e; }
.mo-badge.delivered { background: #dcfce7; color: #15803d; }
.mo-badge.cancelled { background: #fee2e2; color: #b91c1c; }

.mo-eta {
  background: linear-gradient(135deg, #fffbeb, #fffdf7);
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 12px 13px;
  margin-bottom: 14px;
}
.mo-eta-main { font-size: 14.4px; font-weight: 800; color: #78350f; line-height: 1.4; }
.mo-eta-rel { display: block; margin-top: 4px; font-size: 13.2px; color: #92400e; font-weight: 700; }
.mo-eta-rel.late { color: var(--bad); }
.mo-eta-rel.ok { color: var(--ok); }
.mo-note {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #fcd34d;
  font-size: 13.2px;
  color: #78350f;
  line-height: 1.5;
}

.mo-track { margin-bottom: 14px; }
.mo-track-bar { height: 7px; border-radius: 99px; background: #e5e7eb; overflow: hidden; }
.mo-track-bar .fill { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--gold-l), var(--gold-d)); transition: width .4s ease; }
.mo-card.delivered .mo-track-bar .fill { background: linear-gradient(90deg, #86efac, var(--ok)); }
.mo-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 9px; }
.mo-step { text-align: center; }
.mo-step .dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #6b7280;
  font-size: 12.5px;
  font-weight: 800;
  margin-bottom: 5px;
}
.mo-step small { display: block; font-size: 10.6px; line-height: 1.3; color: var(--muted); font-weight: 700; }
.mo-step.done .dot { background: var(--ok); color: #fff; }
.mo-step.done small { color: #15803d; }
.mo-step.on .dot { background: var(--gold); color: var(--navy); box-shadow: 0 0 0 4px rgba(245, 158, 11, .22); }
.mo-step.on small { color: var(--gold-d); }
.mo-step.off .dot { background: #e5e7eb; color: #9ca3af; }
.mo-cancel-note { margin-top: 9px; font-size: 13px; color: var(--bad); font-weight: 700; text-align: center; }

.mo-meta { display: flex; flex-wrap: wrap; gap: 7px 14px; font-size: 12.8px; color: var(--muted); margin-bottom: 12px; }
.mo-meta span { overflow-wrap: anywhere; }

.mo-toggle {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f8fafc;
  color: var(--navy);
  font-size: 13.6px;
  font-weight: 800;
  padding: 9px 12px;
}
.mo-toggle:hover { border-color: var(--gold); color: var(--gold-d); }
.mo-details { border-top: 1px dashed var(--line); margin-top: 11px; padding-top: 10px; }
.mo-item { display: flex; justify-content: space-between; gap: 12px; font-size: 13.8px; padding: 5px 0; color: #374151; }
.mo-item i { font-style: normal; color: var(--muted); }
.mo-sum { display: flex; justify-content: space-between; font-size: 13.6px; padding-top: 7px; margin-top: 5px; border-top: 1px solid var(--line); color: var(--muted); }
.mo-sum b { color: var(--navy); }
.mo-actions { display: flex; gap: 9px; margin-top: 13px; }
.mo-actions .btn { flex: 1; min-height: 44px; }
.mo-empty { margin-top: 6px; }

@media (max-width: 480px) {
  .lg-hero, .static-page #profOut .pf-hero { padding: 24px 16px 22px; }
  .lg-card > .g-btn, .lg-card > .pf-note, .lg-card > .lg-perks, .lg-card > .lg-links { margin-left: 16px; margin-right: 16px; }
  .lg-perks { margin: 16px 16px 4px; }
  .mo-head { flex-wrap: wrap; }
  .mo-steps { grid-template-columns: repeat(4, 1fr); }
  .mo-step small { font-size: 9.8px; }
}

/* ------------------------------------------------------------------
 * Assistant — fullscreen chat
 * ------------------------------------------------------------------ */
.ai-panel.is-full {
  left: 0 !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  border-radius: 0;
  border: 0;
  z-index: 9999;
  animation: none;
}
.ai-panel.is-full .ai-msgs { padding: 18px 16px; }
.ai-panel.is-full .ai-inp { padding: 12px 14px; padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
.ai-panel.is-full .ai-inp input { font-size: 16px; }
html.ai-lock, html.ai-lock body { overflow: hidden; }
@media (max-width: 700px) {
  .ai-panel.is-full { border-radius: 0; }
}

/* ------------------------------------------------------------------
 * Install banner (PWA)
 * ------------------------------------------------------------------ */
.pwa-bar {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: calc(70px + env(safe-area-inset-bottom, 0px));
  z-index: 9990;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px 10px 12px;
  background: var(--navy);
  color: #fff;
  border-radius: 15px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, .34);
  animation: pwaIn .26s ease;
}
@keyframes pwaIn { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }
.pwa-bar .pwa-ic { font-size: 22px; flex: 0 0 auto; }
.pwa-bar .pwa-tx { flex: 1 1 auto; min-width: 0; }
.pwa-bar .pwa-tx b { display: block; font-size: 13.5px; line-height: 1.25; }
.pwa-bar .pwa-tx small { display: block; font-size: 11.5px; color: #cbd5e1; }
.pwa-bar .pwa-go {
  flex: none;
  min-height: 44px;
  padding: 0 15px;
  border: 0;
  border-radius: 12px;
  background: var(--gold);
  color: var(--navy);
  font-weight: 800;
  font-size: 13.5px;
  cursor: pointer;
}
.pwa-bar .pwa-x {
  flex: none;
  width: 38px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 17px;
  cursor: pointer;
}
@media (max-width: 359px) {
  .pwa-bar .pwa-tx small { display: none; }
}

/* ------------------------------------------------------------------
 * Account page — premium profile card
 * ------------------------------------------------------------------ */
.static-page .pf-card-in { padding: 0; overflow: hidden; }
.pf-cover { position: relative; height: 104px; }
.pf-av-wrap { position: absolute; left: 0; right: 0; bottom: -48px; z-index: 2; }
.pf-cover-in {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 140% at 12% 0%, rgba(245, 158, 11, .45), transparent 55%),
    linear-gradient(115deg, var(--navy), var(--navy2) 70%, #1f2b45);
}
.pf-cover-in::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(245, 158, 11, .85), transparent);
}
.pf-av-wrap { display: flex; justify-content: center; }
.pf-av-wrap .pf-av-btn { border: 0; background: none; }
.pf-av-wrap .pf-av {
  width: 96px;
  height: 96px;
  border-width: 4px;
  border-color: #fff;
  box-shadow: 0 14px 30px -16px rgba(15, 23, 42, .75);
}
.pf-av-wrap .pf-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pf-av-wrap .pf-av-ph { font-size: 38px; }
.pf-zoom {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-size: 15px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2.5px solid #fff;
  box-shadow: 0 6px 14px -8px rgba(15, 23, 42, .8);
}
.pf-av-wrap .pf-av-btn:hover .pf-av { border-color: var(--gold); }

.pf-id-block { text-align: center; padding: 58px 20px 0; }
.pf-id-block b {
  display: block;
  font-size: 21px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.pf-id-block > span {
  display: block;
  font-size: 13.4px;
  color: var(--muted);
  overflow-wrap: anywhere;
  margin-top: 2px;
}
.pf-chips { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; margin-top: 10px; }
.pf-chips .pf-badge { margin-top: 0; }
.pf-badge-gold { background: #fef3c7; color: #92400e; }

.pf-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 16px 16px 0;
}
.pf-stat {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 11px 6px;
  text-align: center;
  min-width: 0;
}
.pf-stat b {
  display: block;
  font-size: 17px;
  font-weight: 900;
  color: var(--navy);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pf-stat span {
  display: block;
  font-size: 10.6px;
  font-weight: 800;
  letter-spacing: .7px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}

.static-page .pf-card-in .pf-actions-top { padding: 16px 16px 0; margin-bottom: 0; justify-content: center; }
.pf-sec {
  margin: 16px;
  padding: 14px;
  background: #fbfcfe;
  border: 1px solid var(--line);
  border-radius: 15px;
}
.pf-sec-t {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.static-page .pf-card-in .pf-sec .field:last-child { margin-bottom: 0; }
.static-page .pf-card-in .pf-actions { padding: 0 16px; margin-top: 4px; }
.static-page .pf-card-in .lg-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  padding: 16px;
  margin-top: 8px;
  border-top: 1px solid var(--line);
  background: #f8fafc;
}

@media (max-width: 560px) {
  .pf-cover { height: 92px; }
  .pf-av-wrap { bottom: -44px; }
  .pf-id-block { padding-top: 54px; }
  .pf-av-wrap .pf-av { width: 88px; height: 88px; }
  .pf-id-block b { font-size: 19px; }
  .pf-sec { margin: 14px; padding: 12px; }
}

/* Full-screen photo viewer */
.img-view {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(6, 10, 20, .94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s;
}
.img-view.on { opacity: 1; visibility: visible; }
.img-view img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .9);
}
.img-view-x {
  position: absolute;
  top: calc(14px + env(safe-area-inset-top, 0px));
  right: 14px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-size: 17px;
  cursor: pointer;
}

/* Report an issue — screenshot picker */
.field label .opt { color: var(--muted); font-weight: 600; text-transform: none; letter-spacing: 0; }
.rp-shot {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1.5px dashed #cbd5e1;
  border-radius: 14px;
  background: #f8fafc;
  cursor: pointer;
  text-align: left;
  transition: border-color .16s, background .16s;
}
.rp-shot:hover { border-color: var(--gold); background: #fffdf7; }
.rp-shot-ic { font-size: 22px; line-height: 1; }
.rp-shot-tx b { display: block; font-size: 14.2px; font-weight: 800; color: var(--navy); }
.rp-shot-tx small { display: block; font-size: 12.3px; color: var(--muted); }
.rp-preview { margin-top: 10px; }
.rp-preview img {
  width: 100%;
  max-height: 230px;
  object-fit: contain;
  background: #0f172a;
  border-radius: 12px;
  border: 1px solid var(--line);
  display: block;
}
.rp-preview-meta { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.rp-preview-meta span {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 12.5px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ------------------------------------------------------------------
 * Basket — stock enforcement
 * ------------------------------------------------------------------ */
.cart-row.bad { background: #fef2f2; border-radius: 12px; padding-left: 8px; padding-right: 8px; opacity: 1; }
.cart-row.bad .cart-img { filter: grayscale(.85); }
.cart-oos {
  display: inline-block;
  margin-top: 5px;
  padding: 3px 8px;
  border-radius: 99px;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .2px;
}
.ck[disabled] { cursor: not-allowed; opacity: .45; }
.q-b[disabled] { opacity: .35; cursor: not-allowed; }
.cart-warn {
  margin-top: 8px;
  padding: 9px 12px;
  border-radius: 11px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}
