/* Layout: boutique catalogue. A wine notice band, a centred wordmark header, portrait cards in a 2/3/4 grid,
   and a product page split into gallery | order panel (stacked on phones, with a sticky order bar). */
:root {
  --wine: #111111;      /* main dark: bands, buttons, titles (black like the reference store) */
  --bordeaux: #000000;  /* hover / emphasis */
  --rose: #9A9A9A;      /* separators in the notice band */
  --cream: #FFFFFF;     /* text on dark */
  --sand: #F2F2F2;
  --paper: #FFFFFF;
  --card: #F3F3F3;
  --ink: #161616;
  --muted: #6E6E6E;
  --line: #E4E4E4;
  --ok: #1E6E47;
  --err: #B42318;
  --wa-head: #075E54;
  --wa-bg: #E9E1D7;
  --wa-bubble: #FFFFFF;
  --wa-link: #027EB5;
  --f-lat: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif;
  --f-ar: 'El Messiri', 'Noto Naskh Arabic', 'Geeza Pro', serif;
  --f-body: 'IBM Plex Sans Arabic', 'Segoe UI', system-ui, sans-serif;
  --radius: 14px;
  --img-ratio: 1 / 1;   /* product photo shape, set from window.IMG in catalog.js */
  --gut: max(16px, env(safe-area-inset-left, 0px));
  --gut-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.6;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--paper);
}
img { max-width: 100%; display: block; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--bordeaux); outline-offset: 2px; }
[hidden] { display: none !important; }

.display { font-family: var(--f-lat); font-weight: 500; letter-spacing: -0.01em; }
[dir="rtl"] .display { font-family: var(--f-ar); font-weight: 600; letter-spacing: 0; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut-r); }
.price-n { font-variant-numeric: tabular-nums; }

/* ---------- language splash ---------- */
.splash {
  position: fixed; inset: 0; z-index: 100;
  background: var(--wine); color: var(--cream);
  display: grid; place-items: center;
  padding: max(24px, env(safe-area-inset-top, 0px)) var(--gut-r) max(24px, env(safe-area-inset-bottom, 0px)) var(--gut);
  overflow-y: auto;
}
.splash-inner { width: 100%; max-width: 420px; display: grid; gap: 28px; text-align: center; }
.wordmark { display: grid; gap: 2px; justify-items: center; line-height: 1; text-decoration: none; }
.wordmark .lat { font-family: var(--f-lat); font-weight: 500; letter-spacing: 0.34em; padding-inline-start: 0.34em; }
.wordmark .ar { font-family: var(--f-ar); font-weight: 500; letter-spacing: 0; opacity: .8; }
.splash .wordmark .lat { font-size: clamp(40px, 12vw, 64px); }
.splash .wordmark .ar { font-size: 22px; margin-top: 10px; }
.splash-rule { width: 56px; height: 1px; background: var(--rose); margin: 0 auto; }
.splash-q { display: grid; gap: 4px; font-size: 14px; color: #CFCFCF; }
.splash-q span:first-child { font-family: var(--f-ar); font-size: 18px; color: var(--cream); }
.lang-list { display: grid; gap: 10px; }
.lang-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; min-height: 58px; padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px;
  background: transparent; color: var(--cream); cursor: pointer;
  transition: background .2s, border-color .2s;
}
.lang-opt:hover, .lang-opt:focus-visible { background: #FFFFFF; color: #111111; border-color: #FFFFFF; }
.lang-opt b { font-weight: 600; font-size: 17px; }
.lang-opt b.ar { font-family: var(--f-ar); font-size: 20px; }
.lang-opt small { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }

/* ---------- notice band ---------- */
.marquee { background: var(--wine); color: var(--cream); overflow: hidden; font-size: 13px; }
.marquee-track { display: flex; width: max-content; animation: slide 38s linear infinite; direction: ltr; }
.marquee-track span { display: inline-flex; align-items: center; gap: 10px; padding: 8px 22px; white-space: nowrap; }
.marquee-track span::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--rose); margin-inline-start: 22px; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; min-height: 66px; }
.nav { display: flex; gap: 22px; font-size: 14px; }
.nav a { text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-color: var(--ink); }
.site-header .wordmark { color: var(--wine); }
.site-header .wordmark .lat { font-size: 25px; }
.site-header .wordmark .ar { font-size: 12px; margin-top: 4px; }
.actions { display: flex; justify-content: flex-end; gap: 8px; }
.chip-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--paper); cursor: pointer; font-size: 13px;
}
.chip-btn:hover { border-color: var(--ink); }
.chip-btn svg { width: 16px; height: 16px; }
@media (max-width: 720px) {
  .nav { display: none; }
  .header-row { grid-template-columns: 1fr auto 1fr; min-height: 58px; }
  .site-header .wordmark .lat { font-size: 21px; }
  .chip-btn .lbl { display: none; }
  .chip-btn { width: 38px; padding: 0; justify-content: center; }
}

/* ---------- shop ---------- */
.intro { padding-block: 34px 18px; display: grid; gap: 8px; max-width: 640px; }
.kicker { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
[dir="rtl"] .kicker { letter-spacing: 0; font-size: 13px; }
.intro h1 { margin: 0; font-size: clamp(28px, 6vw, 46px); line-height: 1.1; text-wrap: balance; color: var(--wine); }
.intro p { margin: 0; color: var(--muted); max-width: 52ch; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 10px 18px; }
.filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; min-width: 0; padding-block: 2px; }
.filters::-webkit-scrollbar { display: none; }
.filter {
  flex: 0 0 auto; height: 36px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper); cursor: pointer; font-size: 13.5px;
}
.filter[aria-pressed="true"] { background: var(--wine); border-color: var(--wine); color: var(--cream); }
.count { font-size: 13px; color: var(--muted); white-space: nowrap; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; padding-bottom: 56px; }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 18px; } }
@media (min-width: 1060px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.card { display: grid; gap: 10px; text-decoration: none; color: inherit; min-width: 0; }
.card-media { position: relative; aspect-ratio: var(--img-ratio); border-radius: var(--radius); overflow: hidden; background: var(--card); max-width: 100%; }
.card-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; transition: opacity .35s, transform .6s; }
.card-media img.alt { position: absolute; inset: 0; opacity: 0; }
@media (hover: hover) {
  .card:hover .card-media img.alt { opacity: 1; }
  .card:hover .card-media img:first-child { transform: scale(1.02); }
}
.badges { position: absolute; top: 10px; inset-inline-start: 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.badge { font-size: 11.5px; line-height: 1; padding: 6px 9px; border-radius: 999px; background: var(--paper); color: var(--ink); }
.badge.sale { background: var(--paper); color: var(--ink); font-weight: 600; }
.card-body { display: grid; gap: 4px; min-width: 0; }
.card-title { font-size: 14.5px; font-weight: 500; margin: 0; line-height: 1.35; }
.prices { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.prices .now { font-weight: 600; color: var(--wine); }
.prices s { color: var(--muted); font-size: 13px; }
.dots { display: flex; gap: 5px; align-items: center; flex-wrap: wrap; }
.dot { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0,0,0,.12); }
.dots small { font-size: 12px; color: var(--muted); margin-inline-start: 4px; }

/* ---------- product ---------- */
.crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--muted); padding-block: 18px 14px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.pdp { display: grid; gap: 22px; padding-bottom: 40px; }
@media (min-width: 900px) { .pdp { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: start; } }

.gallery { display: grid; gap: 10px; min-width: 0; }
@media (min-width: 900px) { .gallery { position: sticky; top: 90px; } }
.g-main {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  border-radius: var(--radius); background: var(--card); max-width: 100%;
}
.g-main::-webkit-scrollbar { display: none; }
.g-main img { flex: 0 0 100%; width: 100%; height: auto; align-self: flex-start; aspect-ratio: var(--img-ratio); object-fit: cover; object-position: 50% 22%; scroll-snap-align: center; }
.g-thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.g-thumbs button { flex: 0 0 64px; aspect-ratio: var(--img-ratio); padding: 0; border: 1px solid transparent; border-radius: 10px; overflow: hidden; background: var(--card); cursor: pointer; opacity: .6; }
.g-thumbs button[aria-current="true"] { border-color: var(--ink); opacity: 1; }
.g-thumbs img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }

.panel { display: grid; gap: 18px; min-width: 0; align-content: start; }
.pd-head { display: grid; gap: 8px; justify-items: start; }
.pd-badge { font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--ink); line-height: 1.3; }
.panel h1 { margin: 0; font-size: clamp(28px, 5vw, 40px); line-height: 1.12; color: var(--wine); text-wrap: balance; }
.price-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.price-row .now { font-size: 26px; font-weight: 600; color: var(--wine); }
.price-row s { color: var(--muted); }
.price-row .save { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; background: var(--ink); color: var(--cream); font-weight: 600; }
.desc { margin: 0; color: #4A4A4A; max-width: 60ch; white-space: pre-line; }

/* ---------- order card (checkout on the product page) ---------- */
.ck { border: 1.5px solid var(--ink); border-radius: 18px; overflow: hidden; background: var(--paper); scroll-margin-top: 80px; }
.ck-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; background: var(--ink); color: var(--cream); }
.ck-head h2 { margin: 0; font-size: 19px; font-weight: 600; font-family: var(--f-lat); letter-spacing: .01em; }
[dir="rtl"] .ck-head h2 { font-family: var(--f-ar); }
.ck-cod { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 5px 11px; border: 1px solid rgba(255, 255, 255, .4); border-radius: 999px; white-space: nowrap; }
.ck-cod svg { width: 15px; height: 15px; }
.ck-body { display: grid; gap: 22px; padding: 20px 18px 18px; }
.opt { display: grid; gap: 12px; min-width: 0; }
.ck-label { display: flex; align-items: center; gap: 10px; font-size: 14.5px; }
.ck-label .n { flex: 0 0 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--cream); display: grid; place-items: center; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ck-label b { font-weight: 600; }
.ck-label em { margin-inline-start: auto; font-style: normal; font-size: 13px; color: var(--muted); }

.chips, .sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 15px 0 11px;
  border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); cursor: pointer; font-size: 14px;
  transition: border-color .15s, background .15s, color .15s;
}
[dir="rtl"] .chip { padding: 0 11px 0 15px; }
.chip i { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .18); flex: 0 0 auto; }
.chip:hover, .size:hover { border-color: #9A9A9A; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.chip[aria-pressed="true"] i { box-shadow: 0 0 0 2px var(--ink), 0 0 0 3.5px var(--cream); }
.size {
  min-width: 54px; height: 44px; padding: 0 12px; border-radius: 12px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--paper); font-weight: 500; font-variant-numeric: tabular-nums;
  transition: border-color .15s, background .15s, color .15s;
}
.size[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.opt.invalid .chips, .opt.invalid .sizes { animation: nudge .3s; }
.opt.invalid .chip, .opt.invalid .size { border-color: #E9B4AF; }
.opt-err { color: var(--err); font-size: 13px; }
@keyframes nudge { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* floating-label fields */
.ck-fields { display: grid; gap: 10px; }
.fl { position: relative; }
.fl input {
  width: 100%; height: 58px; padding: 22px 14px 6px 48px; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--paper); font-size: 16px; text-align: left;
  transition: border-color .15s, box-shadow .15s;
}
[dir="rtl"] .fl input { padding: 22px 48px 6px 14px; text-align: right; }
.fl label {
  position: absolute; top: 29px; inset-inline-start: 48px; transform: translateY(-50%);
  font-size: 15px; color: var(--muted); pointer-events: none; transition: top .15s, font-size .15s;
}
.fl input:focus + label, .fl input:not(:placeholder-shown) + label { top: 17px; font-size: 12px; color: #4A4A4A; }
.fl svg { position: absolute; top: 29px; inset-inline-start: 15px; width: 20px; height: 20px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.fl input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(0, 0, 0, .07); }
.fl input:focus ~ svg { color: var(--ink); }
.fl.invalid input { border-color: var(--err); }
.fl.invalid svg, .fl.invalid label { color: var(--err); }
.fl .err { display: block; color: var(--err); font-size: 12.5px; margin-top: 5px; }

/* summary + total */
.ck-sum { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; background: var(--sand); }
.ck-sum img { width: 60px; height: auto; aspect-ratio: var(--img-ratio); object-fit: cover; object-position: 50% 22%; border-radius: 9px; flex: 0 0 auto; background: var(--card); }
.ck-sum-t { flex: 1; min-width: 0; display: grid; line-height: 1.35; }
.ck-sum-t b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ck-sum-t small { font-size: 12.5px; color: var(--muted); }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; height: 44px; width: max-content; background: var(--paper); flex: 0 0 auto; }
.qty button { width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer; font-size: 19px; }
.qty output { min-width: 26px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }
.ck-tot { margin: 0; display: grid; gap: 7px; font-size: 14px; }
.ck-tot div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.ck-tot dt { color: var(--muted); }
.ck-tot dd { margin: 0; font-variant-numeric: tabular-nums; }
.ck-tot .x { color: var(--muted); }
.ck-tot .free { color: var(--ok); font-weight: 600; }
.ck-tot .grand { padding-top: 11px; margin-top: 2px; border-top: 1px dashed #CFCFCF; }
.ck-tot .grand dt { color: var(--ink); font-weight: 600; font-size: 15px; }
.ck-tot .grand dd { font-size: 23px; font-weight: 700; color: var(--wine); }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }

.btn-order {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; min-height: 58px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--wine); color: var(--cream); font-size: 17px; font-weight: 600;
  transition: background .2s, transform .1s;
}
.btn-order svg.arr { width: 20px; height: 20px; transition: transform .2s; }
[dir="rtl"] .btn-order svg.arr { transform: scaleX(-1); }
.btn-order:hover { background: #2B2B2B; }
.btn-order:hover svg.arr { transform: translateX(3px); }
[dir="rtl"] .btn-order:hover svg.arr { transform: scaleX(-1) translateX(3px); }
.btn-order:active { transform: scale(.99); }
.btn-order[disabled] { opacity: .7; cursor: progress; }
.ck .btn-order::after {
  content: ""; position: absolute; inset: 0 auto 0 -40%; width: 30%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .22), transparent);
  animation: shine 3.6s ease-in-out infinite;
}
@keyframes shine { 0%, 55% { left: -40%; } 100% { left: 120%; } }
@media (prefers-reduced-motion: reduce) { .ck .btn-order::after { animation: none; display: none; } }
.ck-note { display: flex; align-items: flex-start; gap: 8px; margin: -6px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.ck-note svg { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 1px; color: var(--ink); }

.trust3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 1100px) { .trust3 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.trust3 li { display: flex; align-items: center; gap: 9px; text-align: start; padding: 12px 12px; border: 1px solid var(--line); border-radius: 14px; font-size: 12px; line-height: 1.35; }
.trust3 svg { width: 22px; height: 22px; flex: 0 0 auto; }

.state-msg { display: grid; justify-items: center; gap: 14px; padding-block: 70px; text-align: center; color: var(--muted); }
.skel .card-media { animation: pulse 1.2s ease-in-out infinite alternate; }
.skel .card i { display: block; height: 12px; border-radius: 6px; background: var(--card); width: 70%; }
.skel .card i + i { width: 40%; }
@keyframes pulse { to { opacity: .55; } }

.related { padding-block: 10px 56px; }
.related h2 { margin: 0 0 16px; font-size: 22px; color: var(--wine); }

.sticky-buy {
  position: fixed; inset: auto 0 0 0; z-index: 40;
  padding: 10px var(--gut-r) max(10px, env(safe-area-inset-bottom, 0px)) var(--gut);
  background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px;
}
.sticky-buy .meta { display: grid; line-height: 1.25; min-width: 0; flex: 1; }
.sticky-buy .meta span { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-buy .meta b { color: var(--wine); font-variant-numeric: tabular-nums; }
.sticky-buy .btn-order { width: auto; min-height: 48px; padding: 0 26px; font-size: 15px; }
@media (min-width: 900px) { .sticky-buy { display: none; } }

/* ---------- thank you ---------- */
.thanks { display: grid; gap: 26px; padding-block: 34px 60px; }
@media (min-width: 900px) { .thanks { grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: start; } }
.thanks-main { display: grid; gap: 16px; align-content: start; }
.thanks-main .tick { width: 54px; height: 54px; border-radius: 50%; background: var(--sand); color: var(--ok); display: grid; place-items: center; }
.thanks-main .tick svg { width: 26px; height: 26px; }
.thanks-main h1 { margin: 0; font-size: clamp(28px, 6vw, 42px); color: var(--wine); line-height: 1.1; }
.thanks-main p { margin: 0; color: #4A4A4A; max-width: 52ch; }
.receipt { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); max-width: 520px; }
.receipt img { width: 76px; height: auto; aspect-ratio: var(--img-ratio); object-fit: cover; object-position: 50% 22%; border-radius: 10px; }
.receipt dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 3px 12px; font-size: 13.5px; }
.receipt dt { color: var(--muted); }
.receipt dd { margin: 0; font-variant-numeric: tabular-nums; }
.btn-ghost { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--ink); background: transparent; cursor: pointer; text-decoration: none; width: max-content; }

.wa { display: grid; gap: 8px; }
.wa-label { font-size: 12.5px; color: var(--muted); }
.wa-phone { border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: var(--wa-bg); max-width: 380px; }
.wa-top { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--wa-head); color: #fff; direction: ltr; }
.wa-top .av { width: 34px; height: 34px; border-radius: 50%; background: var(--wine); color: var(--cream); display: grid; place-items: center; font-family: var(--f-lat); font-size: 13px; letter-spacing: .1em; }
.wa-top b { font-size: 14px; display: block; line-height: 1.2; }
.wa-top small { font-size: 11px; opacity: .8; }
.wa-body { padding: 16px 12px 18px; display: grid; gap: 6px; }
.wa-bubble { background: var(--wa-bubble); border-radius: 10px; padding: 9px 11px 6px; font-size: 13.5px; line-height: 1.5; white-space: pre-line; max-width: 92%; box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.wa-bubble time { display: block; text-align: end; font-size: 10.5px; color: #8A8A8A; margin-top: 2px; }
.wa-tpl { display: grid; gap: 2px; max-width: 88%; }
.wa-card { max-width: none; padding: 4px 4px 6px; border-radius: 10px 10px 4px 4px; white-space: normal; }
.wa-img { width: 100%; aspect-ratio: var(--img-ratio); object-fit: cover; object-position: 50% 22%; border-radius: 8px; background: var(--card); }
.wa-text { padding: 8px 7px 0; white-space: pre-line; }
.wa-bubble b { font-weight: 700; }
.wa-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; padding: 6px 7px 0; }
.wa-foot small { color: #8A8A8A; font-size: 12px; }
.wa-foot time { margin: 0; }
.wa-btns { display: grid; gap: 2px; }
.wa-btns button { display: flex; align-items: center; justify-content: center; gap: 7px; height: 42px; border: 0; border-radius: 4px; background: var(--wa-bubble); color: var(--wa-link); font-weight: 600; font-size: 14px; cursor: pointer; box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.wa-btns button:last-child { border-radius: 4px 4px 10px 10px; }
.wa-btns button svg { width: 16px; height: 16px; flex: 0 0 auto; }
.wa-btns button[disabled] { color: #A0A0A0; cursor: default; }
.wa-me { justify-self: end; background: #D9FDD3; }
.wa-status { font-size: 12.5px; padding: 8px 12px; border-radius: 10px; background: var(--sand); color: var(--wine); max-width: 380px; }

/* ---------- footer ---------- */
.site-footer { background: var(--wine); color: var(--cream); }
.footer-grid { display: grid; gap: 26px; padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer .wordmark { justify-items: start; }
.site-footer .wordmark .lat { font-size: 26px; }
.site-footer .wordmark .ar { font-size: 13px; margin-top: 6px; }
.site-footer p { margin: 12px 0 0; color: #CFCFCF; font-size: 13.5px; max-width: 42ch; }
.site-footer h4 { margin: 0 0 10px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #CFCFCF; }
[dir="rtl"] .site-footer h4 { letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.site-footer .ltr { direction: ltr; unicode-bidi: isolate; }
.has-sticky .site-footer .footer-grid { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 900px) { .has-sticky .site-footer .footer-grid { padding-bottom: 40px; } }

.toast {
  position: fixed; z-index: 70; inset-inline: var(--gut) var(--gut-r); bottom: max(18px, env(safe-area-inset-bottom, 0px));
  margin: 0 auto; max-width: 420px; padding: 12px 16px; border-radius: 12px;
  background: var(--ink); color: var(--paper); font-size: 14px; text-align: center;
}

/* preview only: the customer's message box in the WhatsApp mock */
.wa-compose { display: flex; gap: 8px; padding: 8px 10px 10px; background: var(--wa-bg); }
.wa-compose input { flex: 1; min-width: 0; height: 42px; border: 0; border-radius: 999px; padding: 0 16px; background: #FFFFFF; font-size: 15px; }
.wa-compose input:focus { outline: 2px solid var(--wa-head); }
.wa-compose button { flex: 0 0 42px; height: 42px; border: 0; border-radius: 50%; background: var(--wa-head); color: #FFFFFF; display: grid; place-items: center; cursor: pointer; }
.wa-compose svg { width: 18px; height: 18px; }
[dir="rtl"] .wa-compose svg { transform: scaleX(-1); }
.wa-status a { color: inherit; font-weight: 600; }
