/* Divaar.pk — shared design system (Apple-inspired · Liquid Glass) */
:root {
  /* canvas & text */
  --canvas: #F5F5F7;
  --surface: #FFFFFF;
  --surface-2: #FBFBFD;
  --tile: #F2F2F4;
  --ink: #1D1D1F;
  --muted: #6E6E73;
  --hairline: rgba(0, 0, 0, 0.08);
  --line: #E5E5EA;
  /* accent */
  --blue: #043927;
  --blue-hover: #0A4F37;
  --blue-ink: #0B6B45;
  --on-blue: #FFFFFF;
  --graphite: #1D1D1F;
  /* status */
  --ok: #1E7F3A;
  --warn: #9A6200;
  --danger: #D70015;
  /* metal (wall-art frames, brand mark) */
  --steel-1: #F4F5F7;
  --steel-2: #C9CCD2;
  --steel-3: #8E9299;
  --steel-4: #5D6168;
  /* dark hero */
  --night: #0B0C10;
  --on-dark: #F5F5F7;
  --on-dark-muted: rgba(245, 245, 247, 0.72);
  /* liquid glass */
  --glass-bg: rgba(255, 255, 255, 0.62);
  --glass-bg-strong: rgba(255, 255, 255, 0.78);
  --glass-dark: rgba(28, 28, 32, 0.42);
  --glass-edge: rgba(255, 255, 255, 0.75);
  --glass-blur: saturate(180%) blur(22px);
  --glass-shadow: 0 1px 0 rgba(255,255,255,.65) inset, 0 -1px 0 rgba(0,0,0,.04) inset, 0 8px 32px rgba(0,0,0,.10), 0 1px 2px rgba(0,0,0,.06);
  /* type */
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --urdu: "Noto Nastaliq Urdu", serif;
  /* shape */
  --r-sm: 10px;
  --r: 18px;
  --r-lg: 28px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.06);
  --ease: cubic-bezier(.2, .8, .2, 1);
  /* legacy aliases used by older markup */
  --ground: var(--canvas);
  --card: var(--surface);
  --bronze: var(--blue-ink);
  --amber: var(--blue);
  --brass: #B8A27A;
  --plum: #1C1C1E;
  --plum-2: #2C2C2E;
  --curtain: none;
  --line-dark: rgba(255, 255, 255, 0.14);
  --glass: var(--glass-bg);
  --glass-line: var(--glass-edge);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--canvas); line-height: 1.47; letter-spacing: -0.01em; -webkit-font-smoothing: antialiased; font-size: 17px; }
img, video { max-width: 100%; display: block; }
a { color: var(--blue-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; letter-spacing: -0.028em; line-height: 1.07; font-weight: 700; }
h1, h2 { font-weight: 800; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 22px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.urdu { font-family: var(--urdu); }
.mono { font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue-ink) 55%, transparent); outline-offset: 2px; border-radius: 8px; }

/* ---------- Liquid Glass material ---------- */
.lg, .glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-shadow);
  position: relative;
}
.lg::before, .glass::before { /* specular highlight */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 38%), radial-gradient(120% 60% at 12% 0%, rgba(255,255,255,.45), rgba(255,255,255,0) 60%);
  mix-blend-mode: soft-light;
}
.lg-dark { background: var(--glass-dark); -webkit-backdrop-filter: saturate(160%) blur(20px); backdrop-filter: saturate(160%) blur(20px); border: 1px solid rgba(255,255,255,.22); box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 12px 40px rgba(0,0,0,.35); color: var(--on-dark); position: relative; }
.lg-dark::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,0) 45%); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .lg, .glass { background: var(--glass-bg-strong); }
  .lg-dark { background: rgba(28,28,32,.86); }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px; border-radius: 980px; border: 1px solid transparent; font-weight: 500; font-size: 15px; text-decoration: none !important; cursor: pointer; transition: background .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease); white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-primary, .btn-amber { background: var(--brand-bg, var(--blue)); color: var(--on-blue, #fff); }
.btn-primary:hover, .btn-amber:hover { background: var(--brand-bg-hover, var(--blue-hover)); }
.btn-dark { background: var(--graphite); color: #fff; }
.btn-dark:hover { background: #333336; }
.btn-glass { background: rgba(255,255,255,.18); color: inherit; border-color: rgba(255,255,255,.45); -webkit-backdrop-filter: blur(18px) saturate(180%); backdrop-filter: blur(18px) saturate(180%); box-shadow: 0 1px 0 rgba(255,255,255,.35) inset; }
.btn-glass:hover { background: rgba(255,255,255,.28); }
.btn-ghost { background: transparent; border-color: currentColor; }
.btn-ghost-light { background: transparent; color: var(--on-dark); border-color: rgba(255,255,255,.45); }
.btn-soft { background: rgba(0,0,0,.05); color: var(--ink); }
.btn-soft:hover { background: rgba(0,0,0,.08); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { min-height: 36px; padding: 0 16px; font-size: 14px; }
.btn-lg { min-height: 52px; padding: 0 28px; font-size: 17px; }
.btn-block { width: 100%; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; color: inherit; position: relative; transition: background .2s; }
.icon-btn:hover { background: rgba(0,0,0,.06); }
.link-btn { background: none; border: 0; padding: 0; color: var(--blue-ink); font-weight: 500; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.copy-btn { display: inline-flex; align-items: center; gap: 4px; min-height: 30px; padding: 0 10px; border-radius: 980px; border: 0; background: rgba(0,0,0,.05); font-size: 12px; font-weight: 500; cursor: pointer; color: var(--ink); }
.copy-btn.copied { background: #E3F4E8; color: var(--ok); }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span, .field > label { font-size: 13px; font-weight: 500; color: var(--muted); }
.field small { color: var(--muted); font-size: 12px; }
.input, .field input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=color]), .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 12px; border: 1px solid #D2D2D7; background: #fff; color: var(--ink); font-size: 16px; transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 96px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue-ink) 18%, transparent); }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: var(--danger); }
.err { color: var(--danger); font-size: 13px; font-weight: 500; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; min-height: 32px; }
.check input { width: 20px; height: 20px; accent-color: var(--blue); }

/* ---------- price ---------- */
.price-now { font-weight: 600; }
.price-was { color: var(--muted); font-weight: 400; margin-left: 4px; }
.price-from { color: var(--muted); font-weight: 400; font-size: .88em; }

/* ---------- swatches ---------- */
.swatches { display: inline-flex; align-items: center; gap: 4px; }
.swatch { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.18); display: inline-block; }
.swatch-more { font-size: 11px; color: var(--muted); font-weight: 500; margin-left: 2px; }

/* ---------- badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 980px; font-size: 12px; font-weight: 500; background: rgba(255,255,255,.85); color: var(--ink); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.badge-amber { background: #FF9F0A; color: #1D1D1F; }
.badge-dark { background: rgba(29,29,31,.86); color: #fff; }
.badge-soft { background: rgba(0,0,0,.06); color: var(--ink); }
.badge-ok { background: #E3F4E8; color: #135C2A; }
.badge-warn { background: #FFF2DB; color: #7A4A00; }
.badge-danger { background: #FDE7E9; color: #9F0012; }
.badge-blue { background: color-mix(in srgb, var(--blue-ink) 11%, #fff); color: var(--blue-ink); }

/* ---------- dialogs (glass sheets) ---------- */
dialog { border: 0; padding: 0; color: var(--ink); background: transparent; max-width: none; max-height: none; }
dialog::backdrop { background: rgba(0, 0, 0, 0.32); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.sheet { background: rgba(251,251,253,.86); -webkit-backdrop-filter: saturate(180%) blur(40px); backdrop-filter: saturate(180%) blur(40px); border: 1px solid rgba(255,255,255,.8); border-radius: var(--r-lg); width: min(960px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); overflow: auto; box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, var(--shadow); position: relative; }
.sheet-head { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; background: rgba(251,251,253,.72); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-bottom: 1px solid var(--hairline); }
.sheet-head h2 { font-size: 21px; }
.sheet-body { padding: 22px; }
.sheet-foot { position: sticky; bottom: 0; z-index: 3; display: flex; gap: 12px; justify-content: flex-end; align-items: center; padding: 14px 22px; background: rgba(251,251,253,.78); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-top: 1px solid var(--hairline); }
.sheet-sm { width: min(520px, calc(100vw - 32px)); }

/* ---------- toasts ---------- */
#toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 9999; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: min(92vw, 460px); }
.toast { background: rgba(29,29,31,.86); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); color: #fff; padding: 12px 18px; border-radius: 980px; font-weight: 500; font-size: 14px; box-shadow: var(--shadow); transition: opacity .3s, transform .3s; text-align: center; }
.toast-error { background: rgba(170,0,18,.9); }
.toast-ok { background: rgba(29,29,31,.86); }
.toast.out { opacity: 0; transform: translateY(8px); }

/* ---------- reviews ---------- */
.stars { display: inline-flex; gap: 1px; color: #D2D2D7; }
.stars .on { color: #FF9F0A; }
.review-summary { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 500; }
.review-avg { font-size: 28px; font-weight: 600; color: var(--ink); }
.review-row { display: flex; gap: 16px; overflow-x: auto; padding: 6px 2px 18px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.review-card { flex: 0 0 min(320px, 82vw); scroll-snap-align: start; background: var(--surface); border-radius: var(--r); padding: 20px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow-sm); }
.review-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 13px; }
.review-body { margin: 0; font-size: 15px; line-height: 1.55; white-space: pre-line; }
.review-body.clamp { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.review-photos { display: flex; gap: 6px; }
.review-photo { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; border: 0; padding: 0; cursor: zoom-in; background: var(--tile); }
.review-photo img, .review-photo video { width: 100%; height: 100%; object-fit: cover; display: block; }
.review-photo { position: relative; }
.rp-play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(0,0,0,.28); }
.rp-play svg { width: 22px; height: 22px; }
.review-who { font-size: 14px; color: var(--muted); }
.review-who strong { color: var(--ink); font-weight: 600; }
.review-chip { align-self: flex-start; font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 980px; background: var(--tile); }

/* ---------- photo viewer ---------- */
.viewer { width: 100vw; height: 100dvh; background: rgba(0,0,0,.9); display: none; align-items: center; justify-content: center; }
.viewer[open] { display: flex; }
.viewer img, .viewer video { max-width: 92vw; max-height: 86dvh; object-fit: contain; border-radius: 12px; }
.viewer video[hidden], .viewer img[hidden] { display: none; }
.viewer .icon-btn { position: absolute; color: #fff; background: rgba(255,255,255,.14); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.viewer-close { top: 16px; right: 16px; }
.viewer-prev { left: 12px; top: 50%; }
.viewer-next { right: 12px; top: 50%; }
.viewer-count { position: absolute; bottom: 18px; color: #fff; font-weight: 500; }

/* ---------- bank cards ---------- */
.bank-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; transition: border-color .15s, box-shadow .15s; }
.bank-card.selectable { cursor: pointer; }
.bank-card.selectable:hover { border-color: #B8B8BF; }
.bank-card.chosen { border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue-ink) 20%, transparent); }
.bank-head { display: flex; justify-content: space-between; align-items: center; }
.bank-tick { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #C7C7CC; display: inline-flex; align-items: center; justify-content: center; color: transparent; }
.bank-card.chosen .bank-tick { background: var(--brand-bg, var(--blue)); border-color: var(--blue); color: var(--on-blue, #fff); }
.bank-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; gap: 6px 10px; font-size: 14px; }
.bank-row > span { color: var(--muted); }
.bank-row b { word-break: break-all; font-weight: 600; }

/* ---------- uploader ---------- */
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; min-height: 140px; padding: 18px; border: 1.5px dashed #C7C7CC; border-radius: 18px; background: #fff; cursor: pointer; transition: border-color .15s, background .15s; }
.drop.over { border-color: var(--blue); background: #F0F7F3; }
.drop img { max-height: 200px; border-radius: 12px; }
.drop-inner { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.drop-inner small { color: var(--muted); }
.receipt-pdf { padding: 14px; border-radius: 12px; background: var(--tile); font-weight: 500; }
.tips { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: 13px; }

/* ---------- misc ---------- */
.empty { text-align: center; padding: 56px 16px; color: var(--muted); }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(127,127,127,.25); border-top-color: currentColor; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.live-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--muted); }
.live-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #30D158; box-shadow: 0 0 0 3px rgba(48,209,88,.22); }
.brand-mark { display: inline-flex; width: 32px; height: 32px; border-radius: 9px; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; color: #2C2E33;
  background: linear-gradient(145deg, var(--steel-1) 0%, var(--steel-2) 45%, #EEF0F3 60%, var(--steel-3) 100%); box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 -1px 0 rgba(0,0,0,.15) inset, 0 2px 6px rgba(0,0,0,.18); flex: none; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  dialog.bottom[open] { margin: auto 0 0; width: 100vw; }
  dialog.bottom .sheet { width: 100vw; max-height: 94dvh; border-radius: 24px 24px 0 0; padding-bottom: env(safe-area-inset-bottom); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
input[type=range] { accent-color: var(--blue); width: 100%; }

/* ---------- full-image display: whole photo visible, soft blurred fill behind ---------- */
/* Product photo backgrounds (chosen per product in admin) */
[data-bg] { --bgc: #7A5C46; position: relative; isolation: isolate; }
[data-bg="white"] { background: #fff; }
[data-bg="glass"] { background: linear-gradient(160deg, #F7F7F9, #ECECF0); overflow: hidden; }
[data-bg="glass"]::before { content: ""; position: absolute; inset: -40px; z-index: -1; background: var(--img, none) center / cover no-repeat; filter: blur(34px) saturate(1.2); opacity: .5; transform: scale(1.1); }
[data-bg="glass"]::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,.08) 40%, rgba(255,255,255,.3)); pointer-events: none; }
[data-bg="charcoal"] { background: radial-gradient(120% 90% at 50% 34%, #55555B 0%, #2E2E33 52%, #18181B 100%); }
[data-bg="black"] { background: radial-gradient(110% 85% at 50% 36%, #303034 0%, #111113 58%, #000 100%); }
[data-bg="solid"] { background: #000; }
[data-bg="custom"] { background: var(--bgc); background: radial-gradient(120% 90% at 50% 34%, color-mix(in srgb, var(--bgc) 62%, #fff) 0%, var(--bgc) 52%, color-mix(in srgb, var(--bgc) 62%, #000) 100%); }
.fit { position: relative; overflow: hidden; background: var(--canvas); isolation: isolate; }
.fit::before { content: ""; position: absolute; inset: -30px; z-index: -1; background: var(--img, none) center / cover no-repeat; filter: blur(28px) saturate(1.15); opacity: .45; transform: scale(1.1); }
.fit > img, .fit > video { width: 100%; height: 100%; object-fit: contain; }

.bank-head { display: flex; align-items: center; gap: 10px; }
.bank-head strong { flex: 1; min-width: 0; }
.bank-logo-img, .bank-logo-ph { width: 34px; height: 34px; flex: none; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.08); object-fit: contain; padding: 3px; }
.bank-logo-ph { display: grid; place-items: center; font-weight: 700; color: var(--blue-ink); background: color-mix(in srgb, var(--blue-ink) 11%, #fff); padding: 0; }

@media (max-width: 480px) {
  .bank-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "l l" "v c"; gap: 0 10px; font-size: 14px; }
  .bank-row > span { grid-area: l; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; }
  .bank-row > b { grid-area: v; }
  .bank-row > .copy-btn { grid-area: c; }
  .bank-row .copy-btn { padding: 0 9px; }
  .bank-row .copy-btn span { display: none; }
  .bank-row .copy-btn.copied span { display: inline; }
}

/* ---------- live glass background (shop, receipt, policy pages) ----------
   Soft colour fields drift slowly behind frosted, see-through surfaces. */
body:not(.admin) { background: #EFEDE8; position: relative; isolation: isolate; }
body:not(.admin)::before, body:not(.admin)::after { content: ""; position: fixed; z-index: -2; pointer-events: none; }
body:not(.admin)::before {
  inset: -12vmax;
  background:
    radial-gradient(34vmax 30vmax at 18% 22%, color-mix(in srgb, var(--blue-ink) 60%, transparent), transparent 70%),
    radial-gradient(30vmax 28vmax at 84% 18%, rgba(245,170,95,.85), rgba(245,170,95,0) 78%),
    radial-gradient(36vmax 30vmax at 74% 80%, rgba(100,190,150,.80), rgba(100,190,150,0) 78%),
    radial-gradient(30vmax 28vmax at 20% 82%, rgba(245,140,125,.70), rgba(245,140,125,0) 78%),
    radial-gradient(24vmax 22vmax at 50% 50%, rgba(140,150,245,.60), rgba(140,150,245,0) 78%);
  animation: liveBg 40s ease-in-out infinite alternate;
  will-change: transform;
}
body:not(.admin)::after { /* frosted veil + faint grain so text stays easy to read */
  inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(255,255,255,.20), rgba(255,255,255,.12)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes liveBg {
  0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  33% { transform: translate3d(4vmax, -3vmax, 0) rotate(8deg) scale(1.06); }
  66% { transform: translate3d(-3vmax, 4vmax, 0) rotate(-6deg) scale(.97); }
  100% { transform: translate3d(2vmax, 2vmax, 0) rotate(12deg) scale(1.04); }
}
@media (prefers-reduced-motion: reduce) { body:not(.admin)::before { animation: none; } }

/* bank card: logo on the left, name + details beside it */
.bank-card { display: grid !important; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 0 14px !important; }
.bank-logo { padding-top: 2px; }
.bank-logo .bank-logo-img, .bank-logo .bank-logo-ph { width: 52px; height: 52px; border-radius: 14px; padding: 5px; }
.bank-logo .bank-logo-ph { padding: 0; font-size: 22px; }
.bank-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bank-head { display: flex; align-items: center; gap: 10px; min-height: 30px; }
.bank-name { flex: 1; min-width: 0; font-size: 18px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; }
.bank-body .bank-row { grid-template-columns: 92px minmax(0, 1fr) auto; font-size: 14px; }
@media (max-width: 480px) {
  .bank-card { gap: 0 12px !important; }
  .bank-logo .bank-logo-img, .bank-logo .bank-logo-ph { width: 42px; height: 42px; border-radius: 12px; }
  .bank-name { font-size: 17px; }
  .bank-body .bank-row { grid-template-columns: minmax(0, 1fr) auto; }
}
.bank-body { container-type: inline-size; }
@container (max-width: 330px) {
  .bank-body .bank-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "l l" "v c"; gap: 0 10px; }
  .bank-body .bank-row > span { grid-area: l; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; }
  .bank-body .bank-row > b { grid-area: v; }
  .bank-body .bank-row > .copy-btn { grid-area: c; }
}

/* rich text written with the admin formatting toolbar */
.rt { white-space: normal !important; }
.rt > :first-child { margin-top: 0; }
.rt > :last-child { margin-bottom: 0; }
.rt p { margin: 0 0 .8em; }
.rt .rt-h1 { font-size: 1.3em; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; margin: 1.1em 0 .45em; color: var(--ink); }
.rt .rt-h2 { font-size: 1.08em; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; margin: 1em 0 .35em; color: var(--ink); }
.rt ul, .rt ol { margin: 0 0 .8em; padding-left: 1.3em; }
.rt li { margin: .2em 0; }
.rt li::marker { color: var(--blue); }
.rt blockquote { margin: 0 0 .8em; padding: .5em .9em; border-left: 3px solid var(--blue); background: color-mix(in srgb, var(--blue) 5%, transparent); border-radius: 0 10px 10px 0; color: var(--ink); }
.rt hr { border: 0; border-top: 1px solid var(--line, rgba(0,0,0,.1)); margin: 1em 0; }
.rt strong { font-weight: 700; color: var(--ink); }
.review-body.rt.clamp { display: -webkit-box; }

/* selected text follows the brand colour; text turns white or black for contrast */
::selection { background: #043927; color: #fff; }
::-moz-selection { background: #043927; color: #fff; }

/* ---------- 3D glass buttons (admin → Settings → Brand colour → 3D glass) ----------
   Gentle glass: mostly solid, a soft top shine, a thin light rim and depth underneath. */
html.glass3d body:not(.admin) :is(.btn-primary, .btn-amber, .bag-badge, .cart-count, .chip.on, .chip.sm.on) {
  background: linear-gradient(180deg, rgba(255,255,255,.30) 0%, rgba(255,255,255,.08) 46%, rgba(0,0,0,.06) 100%), var(--brand-bg, var(--blue));
  border: 1px solid rgba(255,255,255,.32);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -3px 8px rgba(0,0,0,.18), 0 6px 18px color-mix(in srgb, var(--blue) 32%, transparent), 0 1px 2px rgba(0,0,0,.14);
  text-shadow: 0 1px 1px rgba(0,0,0,.12);
}
html.glass3d body:not(.admin) .chip.on:not(.sm) { background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,0) 50%), var(--ink); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 4px 12px rgba(0,0,0,.18); }
html.glass3d body:not(.admin) :is(.btn-primary, .btn-amber):hover { background: linear-gradient(180deg, rgba(255,255,255,.36) 0%, rgba(255,255,255,.12) 46%, rgba(0,0,0,.04) 100%), var(--brand-bg-hover, var(--blue-hover)); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 -3px 8px rgba(0,0,0,.16), 0 10px 24px color-mix(in srgb, var(--blue) 38%, transparent), 0 2px 4px rgba(0,0,0,.14); }
html.glass3d body:not(.admin) :is(.btn-primary, .btn-amber, .btn-soft, .btn, .chip, .view-all, .vp-back, .icon-btn):active { transform: translateY(1px); box-shadow: inset 0 2px 6px rgba(0,0,0,.2); }
/* light buttons & chips: frosted white glass */
html.glass3d body:not(.admin) :is(.btn-soft, .btn-ghost, .chip:not(.on), .view-all, .vp-back, .icon-btn, .rail-btn, .coll-go, .cb-go, .qty, .sort select, .search) {
  background-color: rgba(255,255,255,.72);
  background-image: linear-gradient(180deg, rgba(255,255,255,.75), rgba(255,255,255,.15) 60%);
  -webkit-backdrop-filter: blur(14px) saturate(170%); backdrop-filter: blur(14px) saturate(170%);
  border: 1px solid rgba(255,255,255,.85);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), inset 0 -2px 5px rgba(0,0,0,.05), 0 4px 14px rgba(20,20,20,.08), 0 1px 2px rgba(0,0,0,.06);
}
html.glass3d body:not(.admin) :is(.btn-soft, .view-all, .vp-back, .icon-btn, .chip:not(.on)):hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 #fff, inset 0 -2px 5px rgba(0,0,0,.05), 0 8px 20px rgba(20,20,20,.12), 0 1px 2px rgba(0,0,0,.06); }
html.glass3d body:not(.admin) :is(.view-all, .vp-back):hover { color: var(--ink); background-color: #fff; }
html.glass3d body:not(.admin) :is(.btn, .chip, .view-all, .vp-back, .icon-btn) { transition: transform .18s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease); }
/* glassy hero buttons on dark photos */
html.glass3d body:not(.admin) .hero .btn-glass, html.glass3d body:not(.admin) .hero .btn-outline { background: linear-gradient(180deg, rgba(255,255,255,.28), rgba(255,255,255,.08)); border: 1px solid rgba(255,255,255,.45); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 8px 22px rgba(0,0,0,.25); -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%); }
/* gradient fills: a soft shadow keeps button text readable across both ends */
:root[style*="gradient"] .btn-primary, :root[style*="gradient"] .bag-badge, :root[style*="gradient"] .cart-count { text-shadow: 0 1px 2px rgba(0,0,0,.28); }
