:root {
  /* Mazaya Boutique — emerald & champagne gold */
  --brand: #0f4c3a;
  --brand-dark: #0a3329;
  --brand-soft: #e8f2ee;
  --accent: #c8963e;
  --accent-dark: #a97a2a;
  --accent-ink: #1f1608;
  --gold-soft: #f6ead3;
  --ink: #1c2420;
  --muted: #5f6b66;
  --line: #ece4dc;
  --bg: #faf7f2;
  --card: #ffffff;
  --danger: #b42318;
  --ok: #15803d;
  --warn: #b45309;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(10, 51, 41, .05), 0 6px 18px rgba(10, 51, 41, .07);
  --display: "Playfair Display", "Cairo", Georgia, serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: "Cairo", system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hidden { display: none !important; }

/* ---------- header ---------- */
.topbar { background: var(--ink); color: #cbd5e1; font-size: 13px; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 12px; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; }
.topbar a:hover { color: #fff; }
.topbar .links { display: flex; gap: 16px; }
header.site { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
header.site .row { display: flex; align-items: center; gap: 20px; padding: 12px 0; }
.logo { display: flex; flex-direction: column; line-height: 1; }
.logo .word { font-weight: 800; font-size: 28px; letter-spacing: -.5px; color: var(--brand); }
.logo .word b { color: var(--accent); }
.logo .tag { font-size: 11px; color: var(--muted); margin-top: 3px; }
.logo img { height: 42px; }
.search { flex: 1; display: flex; max-width: 560px; }
.search input { flex: 1; border: 2px solid var(--brand); border-inline-end: 0; border-radius: 999px 0 0 999px; padding: 9px 18px; outline: none; min-width: 0; }
[dir=rtl] .search input { border-radius: 0 999px 999px 0; }
.search button { background: var(--brand); color: #fff; border: 0; border-radius: 0 999px 999px 0; padding: 0 20px; cursor: pointer; }
[dir=rtl] .search button { border-radius: 999px 0 0 999px; }
.hdr-actions { display: flex; align-items: center; gap: 14px; margin-inline-start: auto; }
.icon-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer; padding: 6px 8px; border-radius: 8px; font-weight: 600; }
.icon-btn:hover { background: var(--bg); }
.cart-btn { position: relative; }
.cart-btn .badge { position: absolute; top: -2px; inset-inline-end: -4px; background: var(--accent); color: #fff; border-radius: 999px; font-size: 11px; min-width: 18px; height: 18px; display: grid; place-items: center; padding: 0 4px; }
nav.cats { background: #fff; border-bottom: 1px solid var(--line); }
nav.cats .wrap { display: flex; gap: 8px; overflow-x: auto; padding-top: 8px; padding-bottom: 8px; scrollbar-width: none; }
nav.cats .wrap::-webkit-scrollbar { display: none; }
.pill { white-space: nowrap; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); font-weight: 600; font-size: 14px; background: #fff; cursor: pointer; }
.pill:hover { border-color: var(--brand); color: var(--brand); }
.pill.active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ---------- buttons / forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px; padding: 11px 20px; font-weight: 700; cursor: pointer; background: var(--brand); color: #fff; transition: background .15s; }
.btn:hover { background: var(--brand-dark); }
.btn.accent { background: var(--accent); }
.btn.accent:hover { background: var(--accent-dark); }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn.danger { background: #fff; color: var(--danger); border: 1px solid #fecaca; }
.btn.sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
label.f { display: block; font-weight: 600; font-size: 14px; margin-bottom: 14px; }
label.f > span { display: block; margin-bottom: 5px; }
.inp, label.f input, label.f select, label.f textarea { width: 100%; border: 1px solid #cbd5e1; border-radius: 10px; padding: 10px 12px; background: #fff; font-weight: 400; }
label.f textarea { min-height: 90px; resize: vertical; }
.inp:focus, label.f input:focus, label.f select:focus, label.f textarea:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 600; margin-bottom: 14px; }

/* ---------- cards & product tiles ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.pad { padding: 20px; }
main { min-height: 60vh; padding: 20px 0 40px; }
.section-h { display: flex; align-items: center; justify-content: space-between; margin: 28px 0 12px; }
.section-h h2 { margin: 0; font-size: 22px; }
.section-h a { color: var(--brand); font-weight: 700; font-size: 14px; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.rail > * { scroll-snap-align: start; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.tile { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.tile:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(16, 24, 40, .12); }
.tile .img { position: relative; aspect-ratio: 1 / .82; }
.tile .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tile .title { font-weight: 700; font-size: 14.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 39px; }
.tile .by { font-size: 12px; color: var(--muted); }
.tile .prices { margin-top: auto; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price { font-weight: 800; color: var(--brand); font-size: 18px; }
.was { color: var(--muted); text-decoration: line-through; font-size: 13px; }
.art { width: 100%; height: 100%; display: grid; place-items: center; font-size: 64px; position: relative; overflow: hidden; }
.art img { width: 100%; height: 100%; object-fit: cover; }
.chip { position: absolute; top: 10px; font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px; z-index: 2; }
.chip.save { inset-inline-start: 10px; background: var(--accent); color: #fff; }
.chip.exp { inset-inline-end: 10px; background: #fff; color: var(--brand); border: 1px solid var(--brand-soft); }
.chip.cpn { inset-inline-end: 10px; background: #fff; color: #b83280; }
.bought { font-size: 12px; color: var(--muted); display: flex; gap: 10px; align-items: center; }
.bought .cd { color: var(--danger); font-weight: 700; }

/* ---------- main deal hero ---------- */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; overflow: hidden; }
.hero-head { grid-column: 1 / -1; background: linear-gradient(90deg, var(--brand), #14b8a6); color: #fff; padding: 10px 20px; display: flex; justify-content: space-between; align-items: center; font-weight: 800; }
.hero .art { font-size: 140px; min-height: 340px; }
.hero .info { padding: 26px 30px; display: flex; flex-direction: column; gap: 12px; }
.hero h1 { margin: 0; font-size: 28px; line-height: 1.2; }
.timer { display: inline-flex; gap: 6px; direction: ltr; }
.timer span { background: rgba(255, 255, 255, .2); padding: 2px 8px; border-radius: 6px; font-variant-numeric: tabular-nums; }
.timer.dark span { background: var(--ink); color: #fff; }
.big-price { font-size: 34px; font-weight: 800; color: var(--brand); }
.stockbar { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.stockbar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #fb923c); }
.qty { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.qty button { width: 36px; border: 0; background: var(--bg); cursor: pointer; font-size: 18px; }
.qty input { width: 44px; text-align: center; border: 0; }

/* ---------- category bubbles ---------- */
.bubbles { display: grid; grid-auto-flow: column; grid-auto-columns: 96px; gap: 10px; overflow-x: auto; padding: 4px 0 10px; }
.bubble { text-align: center; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.bubble .ic { width: 72px; height: 72px; margin: 0 auto 6px; border-radius: 20px; background: #fff; box-shadow: var(--shadow); display: grid; place-items: center; font-size: 32px; }
.bubble:hover .ic, .bubble.active .ic { outline: 2px solid var(--brand); }

/* ---------- promo strip ---------- */
.promos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.promo { border-radius: var(--radius); padding: 18px 20px; color: #fff; display: flex; justify-content: space-between; align-items: center; min-height: 96px; }
.promo h3 { margin: 0 0 4px; font-size: 18px; }
.promo .e { font-size: 44px; }

/* ---------- listing page ---------- */
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.crumbs a:hover { color: var(--brand); }
.list-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 10px 0 16px; }
.list-head h1 { margin: 0; font-size: 26px; }
.sorter { display: flex; gap: 8px; align-items: center; }
.subs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty .e { font-size: 54px; }

/* ---------- product page ---------- */
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.pdp .gallery .art { border-radius: var(--radius); aspect-ratio: 1 / .85; font-size: 150px; height: auto; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; }
.thumbs .art { width: 70px; height: 70px; border-radius: 10px; font-size: 30px; cursor: pointer; aspect-ratio: auto; }
.pdp h1 { margin: 0 0 4px; font-size: 26px; line-height: 1.25; }
.meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin: 8px 0 14px; }
.meta b { color: var(--ink); }
.buybox { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 14px; }
.buyrow { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-top: 26px; }
.tabs button { background: none; border: 0; padding: 10px 16px; font-weight: 700; cursor: pointer; border-bottom: 3px solid transparent; color: var(--muted); }
.tabs button.on { color: var(--brand); border-color: var(--brand); }
.tabpane { padding: 18px 2px; white-space: pre-line; }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 8px 16px; }
.kv dt { font-weight: 700; }
.kv dd { margin: 0; white-space: pre-line; }
ul.hl { margin: 6px 0 0; padding-inline-start: 20px; }
.seller-box { display: flex; gap: 12px; align-items: center; background: var(--bg); border-radius: 12px; padding: 12px; }
.avatar { width: 44px; height: 44px; border-radius: 12px; background: var(--brand); color: #fff; font-weight: 800; display: grid; place-items: center; flex: none; }

/* ---------- cart / checkout ---------- */
.two-col { display: grid; grid-template-columns: 1fr 360px; gap: 20px; align-items: start; }
.line { display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line .art { width: 84px; height: 84px; border-radius: 12px; font-size: 38px; }
.sum-row { display: flex; justify-content: space-between; margin: 8px 0; }
.sum-row.total { font-size: 19px; font-weight: 800; border-top: 1px solid var(--line); padding-top: 12px; }
.pay-opts { display: grid; gap: 10px; margin-bottom: 14px; }
.pay-opt { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 12px; cursor: pointer; font-weight: 700; }
.pay-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.coupon-code { font-family: ui-monospace, Consolas, monospace; background: var(--brand-soft); color: var(--brand-dark); padding: 4px 10px; border-radius: 6px; font-weight: 700; letter-spacing: 1px; }

/* ---------- business / admin ---------- */
.biz-hero { background: linear-gradient(120deg, var(--ink), #134e4a); color: #fff; border-radius: 20px; padding: 48px 40px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: center; }
.biz-hero h1 { font-size: 38px; margin: 0 0 12px; line-height: 1.15; }
.biz-hero p { color: #cbd5e1; font-size: 17px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 24px; }
.step { padding: 20px; }
.step .n { width: 34px; height: 34px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); font-weight: 800; display: grid; place-items: center; margin-bottom: 10px; }
.step h3 { margin: 0 0 6px; font-size: 16px; }
.dash { display: grid; grid-template-columns: 230px 1fr; gap: 20px; align-items: start; }
.side { padding: 12px; position: sticky; top: 90px; }
.side a { display: flex; gap: 10px; padding: 10px 12px; border-radius: 10px; font-weight: 600; }
.side a:hover { background: var(--bg); }
.side a.on { background: var(--brand-soft); color: var(--brand-dark); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stat { padding: 16px 18px; }
.stat .v { font-size: 26px; font-weight: 800; }
.stat .l { color: var(--muted); font-size: 13px; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: start; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); padding: 10px; border-bottom: 1px solid var(--line); }
table.t td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
.tbl-wrap { overflow-x: auto; }
.status { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; text-transform: capitalize; }
.status.live, .status.approved, .status.delivered, .status.redeemed { background: #dcfce7; color: #166534; }
.status.pending, .status.processing { background: #fef3c7; color: #92400e; }
.status.rejected, .status.cancelled, .status.expired, .status.soldout { background: #fee2e2; color: #991b1b; }
.status.shipped, .status.scheduled, .status.paused { background: #e0e7ff; color: #3730a3; }
.mini-art { width: 44px; height: 44px; border-radius: 10px; font-size: 22px; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.notice { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; }
.notice.info { background: var(--brand-soft); border-color: #99f6e4; color: var(--brand-dark); }
.img-drop { border: 2px dashed #cbd5e1; border-radius: 12px; padding: 16px; text-align: center; color: var(--muted); cursor: pointer; }
.img-prev { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.img-prev div { position: relative; width: 70px; height: 70px; border-radius: 8px; overflow: hidden; }
.img-prev img { width: 100%; height: 100%; object-fit: cover; }
.img-prev button { position: absolute; top: 2px; inset-inline-end: 2px; border: 0; background: rgba(0, 0, 0, .6); color: #fff; border-radius: 50%; width: 20px; height: 20px; cursor: pointer; font-size: 12px; line-height: 1; }
.auth { max-width: 460px; margin: 20px auto; }

/* ---------- footer ---------- */
footer.site { background: var(--ink); color: #cbd5e1; padding: 36px 0 20px; margin-top: 30px; }
footer .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 24px; }
footer h4 { color: #fff; margin: 0 0 10px; }
footer a { display: block; padding: 3px 0; font-size: 14px; }
footer a:hover { color: #fff; }
footer .logo .word { color: #fff; }
footer .copy { border-top: 1px solid #334155; margin-top: 24px; padding-top: 14px; font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.pays { display: flex; gap: 6px; }
.pays span { background: #fff; color: var(--ink); font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 5px; }

/* ---------- toast & modal ---------- */
#toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(120px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 12px; font-weight: 600; z-index: 100; transition: transform .25s; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
#toast.show { transform: translateX(-50%) translateY(0); }
.backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, .5); z-index: 90; display: grid; place-items: center; padding: 16px; }
.modal { max-width: 520px; width: 100%; max-height: 90vh; overflow: auto; }

/* ---------- mobile cart bar ---------- */
@media (max-width: 960px) {
  .hero, .pdp, .two-col, .biz-hero, .dash { grid-template-columns: 1fr; }
  .hero .art { min-height: 240px; font-size: 110px; }
  .steps, .stats { grid-template-columns: repeat(2, 1fr); }
  .promos { grid-template-columns: 1fr; }
  footer .cols { grid-template-columns: 1fr 1fr; }
  .side { position: static; display: flex; overflow-x: auto; gap: 4px; }
  .side a { white-space: nowrap; }
}
@media (max-width: 640px) {
  header.site .row { flex-wrap: wrap; gap: 10px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .hdr-actions .lbl { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .rail { grid-auto-columns: 46%; }
  .tile .body { padding: 10px; }
  .art { font-size: 48px; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 22px; }
  .hero .info { padding: 18px; }
  .biz-hero { padding: 28px 20px; }
  .biz-hero h1 { font-size: 28px; }
  .kv { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .topbar .links { display: none; }
}

/* ---------- photo-based design (v2) ---------- */
.art { background: #eef2f5; }
.art.ph { background: linear-gradient(135deg, #e6f4f2, #fdf2e9); font-size: 56px; }
.art img { transition: transform .4s ease; }
.tile:hover .art img { transform: scale(1.04); }
.hero-img { position: relative; display: block; min-height: 340px; }
.hero-img .art { position: absolute; inset: 0; height: 100%; min-height: 0; }
.hero .art img { width: 100%; height: 100%; object-fit: cover; }
.promo { position: relative; overflow: hidden; background: #0f172a var(--img) center / cover no-repeat; min-height: 130px; isolation: isolate; }
.promo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15, 23, 42, .82), rgba(15, 23, 42, .15)); z-index: -1; }
[dir=rtl] .promo::before { background: linear-gradient(270deg, rgba(15, 23, 42, .82), rgba(15, 23, 42, .15)); }
.promo h3 { font-size: 20px; }
.promo:hover { filter: brightness(1.05); }
.bubbles { grid-auto-columns: 104px; }
.bubble .ic { width: 88px; height: 88px; border-radius: 50%; overflow: hidden; background: #fff; }
.bubble .ic img { width: 100%; height: 100%; object-fit: cover; }
.cat-banner { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 150px; display: flex; align-items: flex-end; padding: 22px 26px;
  background: #0f172a var(--img) center / cover no-repeat; isolation: isolate; margin-bottom: 6px; }
.cat-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(15, 23, 42, .8), rgba(15, 23, 42, .1)); z-index: -1; }
.cat-banner h1 { color: #fff; margin: 0; font-size: 32px; }
.biz-hero { position: relative; isolation: isolate; overflow: hidden; background: #0f172a var(--img) center / cover no-repeat; }
.biz-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, rgba(15, 23, 42, .94) 40%, rgba(19, 78, 74, .75)); z-index: -1; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: 12px; background: none; cursor: pointer; overflow: hidden; }
.thumbs button:hover, .thumbs button:focus-visible { border-color: var(--brand); }
.thumbs .art img { width: 100%; height: 100%; object-fit: cover; }
.pdp .gallery .art img { width: 100%; height: 100%; object-fit: cover; }
.line .art img, .mini-art img { width: 100%; height: 100%; object-fit: cover; }
.mini-art { overflow: hidden; }
.side-head { display: flex; gap: 10px; align-items: center; padding: 8px 12px 14px; }
.img-prev .main-tag { position: absolute; bottom: 2px; inset-inline-start: 2px; background: var(--brand); color: #fff; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 6px; }
fieldset.coupon-only { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 2px; }
fieldset.coupon-only legend { font-weight: 800; padding: 0 6px; }
.spinner { width: 34px; height: 34px; margin: 0 auto; border: 3px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn:focus-visible, .pill:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .tile, .tile .art img, .spinner { transition: none; animation-duration: 2s; } }
@media (max-width: 960px) { .hero-img { min-height: 260px; } }
.art > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bought { flex-wrap: wrap; row-gap: 2px; }
.tile .timer { gap: 0; color: var(--danger); font-weight: 700; }
.tile .timer span { padding: 0; background: none; }
.timer { unicode-bidi: isolate; flex-direction: row; }
.timer { display: inline-block; font-variant-numeric: tabular-nums; letter-spacing: .5px; background: rgba(255, 255, 255, .2); padding: 2px 10px; border-radius: 6px; font-weight: 800; }
.timer.dark { background: var(--ink); color: #fff; }
.tile .timer { background: none; padding: 0; }


/* =================== Mazaya Boutique theme =================== */
h1, h2, .section-h h2, .list-head h1, .hero h1, .biz-hero h1, .cat-banner h1, .promo h3 { font-family: var(--display); font-weight: 700; letter-spacing: .1px; }
[dir=rtl] h1, [dir=rtl] h2, [dir=rtl] .promo h3 { font-family: "Cairo", sans-serif; font-weight: 800; }
.topbar { background: var(--brand-dark); color: #e9d9c2; }
.topbar a:hover { color: #fff; }
header.site { border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgba(200, 150, 62, .25); }

/* logo lockup: gem + wordmark */
.logo { flex-direction: row; align-items: center; gap: 10px; }
.logo .mark { width: 44px; height: 44px; flex: none; }
.logo .lockup { display: flex; flex-direction: column; line-height: 1; }
.logo .word { font-family: "Playfair Display", Georgia, serif; font-weight: 700; font-size: 27px; color: var(--brand); letter-spacing: .3px; }
.logo .sub { font-size: 11px; font-weight: 700; letter-spacing: 5.5px; text-transform: uppercase; color: var(--accent-dark); margin-top: 3px; padding-inline-start: 2px; }
[dir=rtl] .logo .word { font-family: "Cairo", sans-serif; font-weight: 800; font-size: 26px; }
[dir=rtl] .logo .sub { letter-spacing: 0; font-size: 13px; }
.logo.light .word { color: #fff; }
.logo.light .sub { color: var(--accent); }

.search input { border-color: var(--brand); background: #fff; }
.search button { background: var(--brand); }
.pill.active { background: var(--brand); border-color: var(--brand); }
.pill:hover { border-color: var(--accent); color: var(--brand); }

/* buttons: emerald primary, gold "buy" */
.btn.accent { background: var(--accent); color: var(--accent-ink); }
.btn.accent:hover { background: #d9a650; }
.chip.save { background: var(--accent); color: var(--accent-ink); }
.chip.exp, .chip.cpn { color: var(--brand); border: 1px solid var(--gold-soft); }
.price, .big-price { color: var(--brand); }
.stockbar i { background: linear-gradient(90deg, var(--accent), #e2bb6f); }
.status.pending { background: var(--gold-soft); color: #7a5512; }

/* hero */
.hero { border: 1px solid var(--gold-soft); }
.hero-head { background: linear-gradient(90deg, var(--brand-dark), #1d6b55); }
.hero-head .timer { background: rgba(212, 162, 76, .22); color: #f6e3bd; }
.timer.dark { background: var(--brand); }
.tile { border: 1px solid #f1e9e0; }
.tile:hover { border-color: var(--gold-soft); }
.bubble .ic { box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--gold-soft), var(--shadow); }
.bubble:hover .ic, .bubble.active .ic { outline: 2px solid var(--accent); }
.promo::before { background: linear-gradient(90deg, rgba(7, 42, 33, .88), rgba(7, 42, 33, .2)); }
[dir=rtl] .promo::before { background: linear-gradient(270deg, rgba(7, 42, 33, .88), rgba(7, 42, 33, .2)); }
.cat-banner::before { background: linear-gradient(0deg, rgba(7, 42, 33, .85), rgba(7, 42, 33, .1)); }
.biz-hero::before { background: linear-gradient(110deg, rgba(6, 34, 27, .95) 40%, rgba(29, 107, 85, .78)); }
.biz-hero .small { color: var(--accent) !important; }
.section-h h2 { position: relative; padding-bottom: 6px; }
.section-h h2::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 34px; height: 2px; background: var(--accent); border-radius: 2px; }
.section-h a { color: var(--brand); }

/* footer */
footer.site { background: #072a21; color: #d9c8cf; border-top: 3px solid var(--accent); }
footer h4 { color: var(--accent); font-family: var(--display); }
footer .copy { border-top-color: rgba(212, 162, 76, .25); }
.side a.on { background: var(--brand-soft); color: var(--brand); }
.avatar { background: var(--brand); }
.coupon-code { background: var(--gold-soft); color: var(--accent-ink); }
.notice.info { background: var(--brand-soft); border-color: #cfe3da; color: var(--brand); }
.spinner { border-top-color: var(--accent); }
@media (max-width: 640px) { .logo .word { font-size: 22px; } .logo .mark { width: 38px; height: 38px; } .logo .sub { letter-spacing: 4px; font-size: 10px; } }
.rail { grid-auto-columns: max(200px, calc((100% - 56px) / 5)); }
@media (max-width: 640px) { .rail { grid-auto-columns: 46%; } }

/* ---------- purchase orders ---------- */
.status.po-on_hold { background: #fee2e2; color: #991b1b; }
.status.po-sent { background: var(--gold-soft); color: #7a5512; }
.status.po-confirmed { background: var(--brand-soft); color: var(--brand-dark); }
.status.po-shipped { background: #e0e7ff; color: #3730a3; }
.status.po-delivered { background: #dcfce7; color: #166534; }
.status.po-cancelled { background: #f1f1f1; color: #555; }
.po-doc { padding: 28px; }
.po-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; border-bottom: 2px solid var(--brand); padding-bottom: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.po-title { text-align: end; }
.po-title h1 { margin: 0; font-family: var(--display); color: var(--brand-dark); font-size: 26px; }
.po-ref { font-weight: 800; font-size: 18px; letter-spacing: .5px; margin: 2px 0 6px; }
.po-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 18px; font-size: 14px; line-height: 1.5; }
.po-meta h4, .po-hist h4 { margin: 0 0 4px; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.po-lines .num { text-align: end; white-space: nowrap; }
.po-lines tfoot td { border-top: 2px solid var(--ink); }
.po-hist { margin-top: 18px; border-top: 1px dashed #ddd; padding-top: 12px; display: grid; gap: 4px; }
@media print {
  body { background: #fff; }
  #app-header, #app-footer, .dash > aside, .no-print, #toast { display: none !important; }
  .dash { display: block; }
  main .wrap { max-width: none; padding: 0; }
  .po-doc { box-shadow: none; border: 0; padding: 0; }
  .po-doc a { text-decoration: none; color: inherit; }
}
.dash > section { min-width: 0; }
@media (max-width: 600px) {
  .po-doc { padding: 16px; }
  .po-head { flex-direction: column; }
  .po-title { text-align: start; }
  .po-title h1 { font-size: 22px; }
}
