/* Corniche shop · listing page */

:root{
  --paper:#FBFAF7;
  --card:#FFFFFF;
  --ink:#14110D;
  --ink-2:#3A342C;
  --muted:#857D71;
  --line:rgba(20,17,13,.10);
  --line-2:rgba(20,17,13,.06);
  --accent:#9A4A2E;
  --accent-soft:#F4EAE4;
  --font:"IBM Plex Sans Arabic",system-ui,-apple-system,sans-serif;
  --head:"Almarai","IBM Plex Sans Arabic",system-ui,sans-serif;
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--font);
  font-size:16px;line-height:1.7;
  -webkit-font-smoothing:antialiased;
  padding-bottom:104px;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none;-webkit-tap-highlight-color:transparent}
svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}

/* ---------- top bar ---------- */
.bar{
  position:sticky;top:0;z-index:30;
  display:flex;align-items:center;justify-content:space-between;
  padding:12px 18px;
  background:rgba(251,250,247,.86);
  backdrop-filter:saturate(1.4) blur(14px);
  -webkit-backdrop-filter:saturate(1.4) blur(14px);
  border-bottom:1px solid var(--line-2);
}
.brand{
  font-family:var(--head);font-weight:800;font-size:14px;letter-spacing:.01em;
}
.ref{
  font-size:10.5px;color:var(--muted);
  border:1px solid var(--line);border-radius:999px;
  padding:3px 10px;letter-spacing:.04em;
}

.page{max-width:640px;margin:0 auto}

/* ---------- gallery ---------- */
.gallery{position:relative;background:#EFEBE3;aspect-ratio:4/3;overflow:hidden}
.track{
  display:flex;height:100%;overflow-x:auto;overflow-y:hidden;
  scroll-snap-type:x mandatory;
  scrollbar-width:none;-ms-overflow-style:none;
}
.track::-webkit-scrollbar{display:none}
.track figure{margin:0;flex:0 0 100%;height:100%;scroll-snap-align:center}
.track img{width:100%;height:100%;object-fit:cover}
.count{
  position:absolute;bottom:12px;left:12px;
  background:rgba(20,17,13,.72);color:#F7F4EE;
  font-size:11px;letter-spacing:.06em;
  padding:4px 10px;border-radius:999px;
  font-variant-numeric:tabular-nums;
  backdrop-filter:blur(6px);
}
.dots{
  position:absolute;bottom:14px;left:50%;transform:translateX(-50%);
  display:flex;gap:5px;
}
.dots i{
  width:5px;height:5px;border-radius:50%;
  background:rgba(255,255,255,.5);
  transition:width .25s ease,background .25s ease;
}
.dots i.on{width:16px;border-radius:999px;background:#fff}

/* ---------- title ---------- */
.title{padding:20px 20px 0}
.kicker{
  margin:0 0 6px;font-size:10.5px;font-weight:600;letter-spacing:.16em;
  color:var(--accent);
}
.title h1{
  margin:0;font-family:var(--head);font-weight:800;
  font-size:26px;line-height:1.35;letter-spacing:-.01em;
}
.addr{
  margin:8px 0 0;display:flex;align-items:center;gap:6px;
  font-size:12.5px;color:var(--muted);
}
.addr svg{width:14px;height:14px;flex:0 0 14px}

/* ---------- price ---------- */
.price{
  display:flex;align-items:baseline;justify-content:space-between;gap:12px;
  margin:18px 20px 0;padding:16px 18px;
  background:var(--card);border:1px solid var(--line-2);border-radius:16px;
  box-shadow:0 1px 2px rgba(20,17,13,.03);
}
.amount{display:flex;align-items:baseline;gap:6px}
.amount b{
  font-family:var(--head);font-weight:800;font-size:32px;line-height:1;
  font-variant-numeric:tabular-nums;letter-spacing:-.02em;
}
.amount span{font-size:13px;color:var(--muted)}
.per{font-size:11.5px;color:var(--muted);text-align:left}

/* ---------- specs ---------- */
.specs{
  display:grid;grid-template-columns:1fr 1fr;
  margin:14px 20px 0;
  background:var(--card);border:1px solid var(--line-2);border-radius:16px;
  overflow:hidden;
}
.specs div{
  padding:14px 16px;
  border-bottom:1px solid var(--line-2);
  border-left:1px solid var(--line-2);
}
.specs div:nth-child(2n){border-left:0}
.specs div:nth-last-child(-n+2){border-bottom:0}
.specs b{display:block;font-family:var(--head);font-size:17px;font-weight:700;line-height:1.4}
.specs span{font-size:11px;color:var(--muted)}

/* ---------- blocks ---------- */
.block{padding:24px 20px 0}
.block h2{
  margin:0 0 12px;font-size:11px;font-weight:600;letter-spacing:.16em;color:var(--muted);
}
.facts{margin:0;padding:0}
.facts div{
  display:flex;align-items:baseline;justify-content:space-between;gap:14px;
  padding:10px 0;border-bottom:1px solid var(--line-2);
}
.facts div:last-child{border-bottom:0}
.facts dt{font-size:12.5px;color:var(--muted);margin:0}
.facts dd{margin:0;font-size:13.5px;font-weight:500;text-align:left}

.chips{list-style:none;display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0}
.chips li{
  font-size:12.5px;color:var(--ink-2);
  border:1px solid var(--line);border-radius:999px;
  padding:6px 13px;background:var(--card);
}
.uses{list-style:none;display:flex;flex-wrap:wrap;gap:6px 16px;margin:0;padding:0}
.uses li{
  font-size:13.5px;color:var(--ink-2);
  display:flex;align-items:center;gap:7px;
}
.uses li::before{
  content:"";width:5px;height:5px;border-radius:50%;background:var(--accent);
  display:inline-block;
}

/* ---------- map ---------- */
.map{
  display:flex;align-items:center;gap:12px;
  padding:10px;border-radius:16px;
  background:var(--card);border:1px solid var(--line-2);
}
.map-art{
  position:relative;flex:0 0 104px;height:74px;border-radius:11px;overflow:hidden;
  background:#EDF1EC;
}
.map-art svg{width:100%;height:100%;stroke-width:0}
.map-art .road{stroke:#D6DAD2;stroke-width:6;fill:none}
.map-art .road.thin{stroke-width:3}
.map-art .river{stroke:#BFD6E4;stroke-width:9;fill:none}
.pin{
  position:absolute;inset:0;display:grid;place-items:center;color:var(--accent);
}
.pin svg{width:22px;height:22px;fill:var(--accent-soft);stroke:var(--accent);stroke-width:1.8}
.map-txt{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}
.map-txt b{font-size:13.5px;font-weight:600}
.map-txt small{font-size:11px;color:var(--muted);line-height:1.5}
.chev{color:#B6AEA1;font-size:20px}

/* ---------- prose ---------- */
.prose{
  margin:0;font-size:14px;line-height:1.95;color:#403A32;
}

/* ---------- footer ---------- */
.foot{margin:30px 20px 0;padding-top:18px;border-top:1px solid var(--line-2);text-align:center}
.foot p{margin:0;font-size:12px;font-weight:600;color:var(--ink-2)}
.foot .tiny{margin-top:3px;font-size:10.5px;font-weight:400;color:var(--muted)}

/* ---------- sticky cta ---------- */
.cta{
  position:fixed;inset:auto 0 0;z-index:40;
  display:flex;align-items:center;gap:10px;
  padding:10px 14px calc(10px + env(safe-area-inset-bottom));
  background:rgba(255,255,255,.9);
  backdrop-filter:saturate(1.4) blur(16px);
  -webkit-backdrop-filter:saturate(1.4) blur(16px);
  border-top:1px solid var(--line);
}
.cta-price{display:flex;flex-direction:column;line-height:1.15;margin-right:auto;padding-inline-start:4px}
.cta-price b{font-family:var(--head);font-size:17px;font-weight:800;font-variant-numeric:tabular-nums}
.cta-price span{font-size:10px;color:var(--muted)}
.cta-call{
  width:46px;height:46px;border-radius:50%;
  display:grid;place-items:center;
  border:1px solid var(--line);background:#fff;color:var(--ink);
}
.cta-call svg{width:19px;height:19px}
.cta-wa{
  display:flex;align-items:center;gap:8px;
  height:46px;padding:0 20px;border-radius:999px;
  background:#12362A;color:#F3F1E9;
  font-size:13.5px;font-weight:600;
  box-shadow:0 10px 22px -12px rgba(18,54,42,.9);
}
.cta-wa svg{width:18px;height:18px}
.cta-wa:active,.cta-call:active{transform:scale(.97)}

@media (min-width:640px){
  .gallery{border-radius:18px;overflow:hidden;margin-top:16px}
  .bar{border-radius:0}
  .gallery{aspect-ratio:16/9}
  .title h1{font-size:30px}
  .specs{grid-template-columns:repeat(4,1fr)}
  .specs div{border-bottom:0;border-left:1px solid var(--line-2)}
  .specs div:last-child{border-left:0}
  .cta{position:sticky;inset:auto;margin:24px auto 0;max-width:640px;border-radius:16px;border:1px solid var(--line)}
  body{padding-bottom:24px}
}

/* ---------- lightbox ---------- */
.lightbox{
  position:fixed;inset:0;z-index:60;
  display:flex;align-items:center;justify-content:center;
  background:rgba(10,9,7,.94);
  opacity:0;pointer-events:none;transition:opacity .22s ease;
  padding:16px;
}
.lightbox.on{opacity:1;pointer-events:auto}
.lightbox img{max-width:100%;max-height:100%;border-radius:10px;object-fit:contain}
.lightbox button{
  position:absolute;top:14px;left:14px;
  width:40px;height:40px;border-radius:50%;
  background:rgba(255,255,255,.14);color:#fff;border:0;
  font-size:22px;line-height:1;cursor:pointer;
}
