:root {
  --page: #f3efe7;
  --surface: #fffdf8;
  --ink: #211e1a;
  --muted: #746d63;
  --accent: #9b7443;
  --accent-soft: #e7d6bd;
  --line: #ded6ca;
  --deep: #2d2924;
  --green: #1f8f55;
  --radius: 1.4rem;
  --shadow: 0 1.6rem 4rem rgba(48, 39, 29, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Noto Kufi Arabic", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
}
button, input { font: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid rgba(155, 116, 67, 0.42); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 5.3rem;
  padding: 0 5vw;
  border-bottom: 1px solid rgba(126, 111, 91, 0.2);
  background: rgba(243, 239, 231, 0.9);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 0.75rem; width: fit-content; text-decoration: none; font-weight: 600; }
.brand-mark { display: grid; width: 2.35rem; height: 2.35rem; place-items: center; border-radius: 50%; background: var(--deep); color: var(--accent-soft); font-family: "Noto Naskh Arabic", serif; font-size: 1.35rem; }
.site-header nav { display: flex; align-items: center; gap: 2.2rem; }
.site-header nav a { color: var(--muted); text-decoration: none; font-size: 0.9rem; transition: color 180ms ease; }
.site-header nav a:hover { color: var(--ink); }
.header-contact { justify-self: end; padding: 0.7rem 1.2rem; border: 1px solid var(--ink); border-radius: 99rem; text-decoration: none; font-size: 0.88rem; }
.menu-toggle { display: none; }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  min-height: 34rem;
  padding: 4rem 8vw 5rem;
  overflow: hidden;
}
.hero-copy { position: relative; z-index: 2; max-width: 38rem; }
.eyebrow { margin: 0 0 0.8rem; color: var(--accent); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.05em; }
h1, h2 { font-family: "Noto Naskh Arabic", serif; font-weight: 600; letter-spacing: -0.03em; }
h1 { margin: 0; font-size: clamp(3.4rem, 7vw, 6.3rem); line-height: 0.98; }
.hero-copy > p:not(.eyebrow) { max-width: 34rem; margin: 1.55rem 0 1.8rem; color: var(--muted); font-size: 1.05rem; }
.primary-action, .secondary-action, .whatsapp-action { display: inline-flex; align-items: center; justify-content: center; gap: 0.8rem; min-height: 3.25rem; padding: 0.7rem 1.5rem; border-radius: 99rem; text-decoration: none; font-weight: 500; }
.primary-action { background: var(--deep); color: var(--surface); }
.primary-action span { font-size: 1.3rem; transition: transform 180ms ease; }
.primary-action:hover span { transform: translateX(-0.25rem); }
.hero-art { position: relative; justify-self: center; width: min(31vw, 27rem); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 34% 28%, #fffaf0 0, var(--accent-soft) 58%, #c3a77d 100%); box-shadow: inset 0 0 0 1px rgba(92, 68, 41, 0.14); }
.orbit { position: absolute; inset: 2.2rem; border: 1px solid rgba(98, 72, 42, 0.32); border-radius: 50%; }
.hero-monogram { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(61, 47, 33, 0.72); font-family: "Noto Naskh Arabic", serif; font-size: clamp(7rem, 13vw, 11rem); }
.floating-label { position: absolute; z-index: 2; min-width: 5rem; padding: 0.7rem 1.1rem; border-radius: 99rem; background: var(--surface); box-shadow: 0 1rem 2rem rgba(56, 43, 29, 0.13); text-align: center; font-size: 0.82rem; }
.label-one { top: 18%; right: -4%; }
.label-two { top: 49%; left: -8%; }
.label-three { right: 18%; bottom: 4%; }

.stores-section { padding: 5rem 5vw 6rem; background: var(--surface); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.section-heading h2, .process-section h2, .seller-section h2 { margin: 0; font-size: clamp(2.4rem, 4vw, 4rem); line-height: 1.12; }
.section-heading > p { max-width: 31rem; margin: 0; color: var(--muted); font-size: 0.9rem; }
.filters { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.search-field { display: flex; align-items: center; gap: 0.75rem; min-width: min(100%, 23rem); padding: 0.7rem 1rem; border: 1px solid var(--line); border-radius: 99rem; background: #fff; }
.search-field svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: var(--muted); stroke-linecap: round; stroke-width: 1.8; }
.search-field input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 0.88rem; }
.category-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter-button { min-height: 2.7rem; padding: 0.45rem 1rem; border: 1px solid var(--line); border-radius: 99rem; background: transparent; color: var(--muted); cursor: pointer; }
.filter-button.is-active { border-color: var(--deep); background: var(--deep); color: var(--surface); }
.store-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.15rem; }
.store-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--store-card-bg,var(--surface)); transition: transform 220ms ease, box-shadow 220ms ease; }
.store-card:hover { transform: translateY(-0.35rem); box-shadow: var(--shadow); }
.store-card[hidden] { display: none; }
.store-image { position: relative; aspect-ratio: 1.42; overflow: hidden; background: #ddd4c7; }
.store-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease; }
.store-card:hover .store-image img { transform: scale(1.035); }
.status-badge { position: absolute; z-index: 2; top: 1rem; right: 1rem; padding: 0.35rem 0.75rem; border-radius: 99rem; background: rgba(235, 245, 233, 0.94); color: #264630; font-size: 0.75rem; backdrop-filter: blur(8px); }
.status-badge[data-status="negotiating"] { background: rgba(248, 237, 218, 0.94); color: #6d4b20; }
.status-badge[data-status="sold"] { background: rgba(239, 224, 221, 0.95); color: #7a3f38; }
.featured-badge { position:absolute; z-index:2; top:1rem; left:1rem; padding:.35rem .75rem; border-radius:99rem; background:rgba(42,37,31,.9); color:#fffaf1; font-size:.7rem; backdrop-filter:blur(8px); }
.store-card-content { padding: 1.3rem; }
.store-heading { display: flex; align-items: center; gap: 0.85rem; }
.store-logo { display: grid; flex: 0 0 auto; width: 2.7rem; height: 2.7rem; overflow:hidden; place-items: center; border-radius: 50%; background: var(--store-accent,var(--deep)); color: var(--accent-soft); font-family: "Noto Naskh Arabic", serif; font-size: 1.4rem; }
.store-logo img { width:100%; height:100%; object-fit:cover; background:#fff; }
.store-category { margin: 0; color: var(--muted); font-size: 0.75rem; }
.store-heading h3 { margin: 0; font-family: "Noto Naskh Arabic", serif; font-size: 1.55rem; font-weight: 600; line-height: 1.25; }
.store-summary { min-height: 3.5rem; margin: 1rem 0; color: var(--muted); font-size: 0.88rem; }
.store-mini-facts { display:flex; gap:.45rem; margin-bottom:.9rem; }
.store-mini-facts span { padding:.28rem .55rem; border-radius:99rem; background:var(--page); color:var(--muted); font-size:.68rem; }
.store-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.store-card-footer span { font-size: 0.8rem; font-weight: 500; }
.details-button { padding: 0.55rem 0.9rem; border: 0; border-radius: 99rem; background: var(--deep); color: var(--surface); cursor: pointer; font-size: 0.78rem; }
.empty-state { padding: 3rem; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); text-align: center; }

.process-section { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 5vw; padding: 6rem 7vw; background: var(--deep); color: var(--surface); }
.process-section .eyebrow { color: #d9b988; }
.process-section ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.process-section li { padding-top: 1rem; border-top: 1px solid rgba(255, 255, 255, 0.19); }
.process-section li span { display: block; margin-bottom: 2.5rem; color: #d9b988; font-size: 0.78rem; }
.process-section li strong { display: block; margin-bottom: 0.45rem; font-size: 1rem; }
.process-section li p { margin: 0; color: rgba(255, 253, 248, 0.62); font-size: 0.82rem; }
.seller-section { display: flex; align-items: end; justify-content: space-between; gap: 3rem; padding: 6rem 8vw; }
.seller-section > div { max-width: 48rem; }
.seller-section > div > p:last-child { max-width: 40rem; color: var(--muted); }
.secondary-action { flex: 0 0 auto; border: 1px solid var(--ink); }

footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; padding: 2rem 5vw; border-top: 1px solid var(--line); }
footer p { color: var(--muted); font-size: 0.78rem; text-align: center; }
.footer-contact { justify-self: end; color: var(--accent); text-underline-offset: 0.3rem; }

.store-dialog { width: min(70rem, calc(100% - 2rem)); max-height: calc(100vh - 2rem); padding: 0; border: 0; border-radius: var(--radius); background: var(--surface); color: var(--ink); box-shadow: 0 2rem 6rem rgba(22, 18, 14, 0.28); }
.store-dialog::backdrop { background: rgba(31, 28, 24, 0.58); backdrop-filter: blur(5px); }
.dialog-layout { display: grid; grid-template-columns: 1.04fr 0.96fr; min-height: 40rem; }
.dialog-image-wrap { position: relative; min-height: 31rem; background: #ddd4c7; }
.dialog-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.dialog-content { max-height:calc(100vh - 2rem); overflow:auto; align-self: stretch; padding: 3.5rem; }
.dialog-gallery { position:absolute; right:1rem; bottom:1rem; left:1rem; display:flex; gap:.45rem; overflow-x:auto; }
.dialog-gallery button { flex:0 0 auto; width:3.5rem; height:3.5rem; padding:.15rem; overflow:hidden; border:1px solid rgba(255,255,255,.7); border-radius:.65rem; background:rgba(255,255,255,.82); cursor:pointer; box-shadow:0 .4rem 1rem rgba(0,0,0,.12); }
.dialog-gallery img { border-radius:.45rem; }
.dialog-content h2 { margin: 0; font-size: clamp(2.8rem, 5vw, 4.4rem); line-height: 1.05; }
.dialog-description { color: var(--muted); }
.dialog-close { position: absolute; z-index: 4; top: 1rem; left: 1rem; display: grid; width: 2.7rem; height: 2.7rem; place-items: center; border: 0; border-radius: 50%; background: var(--surface); color: var(--ink); box-shadow: 0 0.7rem 1.5rem rgba(0,0,0,0.13); cursor: pointer; font-size: 1.35rem; }
.store-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 1.6rem 0; overflow: hidden; border: 1px solid var(--line); border-radius: 1rem; }
.store-facts > div { padding: 1rem; }
.store-facts > div + div { border-right: 1px solid var(--line); }
.store-facts dt { color: var(--muted); font-size: 0.7rem; }
.store-facts dd { margin: 0.2rem 0 0; font-family: "Noto Naskh Arabic", serif; font-size: 1.35rem; font-weight: 600; }
.included-assets h3 { margin-bottom: 0.7rem; font-size: 0.9rem; }
.included-assets ul { display: flex; flex-wrap: wrap; gap: 0.55rem; margin: 0; padding: 0; list-style: none; }
.included-assets li { padding: 0.42rem 0.7rem; border-radius: 99rem; background: var(--page); color: var(--muted); font-size: 0.72rem; }
.dialog-products { margin-top:1.4rem; padding-top:1.1rem; border-top:1px solid var(--line); }
.dialog-products-title { display:flex; align-items:center; justify-content:space-between; margin-bottom:.7rem; }
.dialog-products-title h3 { margin:0; font-size:.9rem; }
.dialog-products-title span { color:var(--muted); font-size:.68rem; }
.product-preview-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.55rem; }
.product-preview-grid article { display:grid; grid-template-columns:3rem 1fr; align-items:center; gap:.6rem; min-width:0; padding:.5rem; border:1px solid var(--line); border-radius:.75rem; }
.product-preview-grid img,.product-placeholder { width:3rem; height:3rem; border-radius:.55rem; object-fit:cover; background:var(--page); }
.product-placeholder { display:grid; place-items:center; font-family:"Noto Naskh Arabic",serif; }
.product-preview-grid strong,.product-preview-grid span { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:.7rem; }
.product-preview-grid span { color:var(--accent); }
.price-line { display: flex; justify-content: space-between; margin: 1.6rem 0 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.price-line span { color: var(--muted); font-size: 0.8rem; }
.whatsapp-action { width: 100%; background: var(--green); color: white; }
.whatsapp-action[data-sold="true"] { background:#7c746b; }
.loading-state { grid-column:1/-1; padding:3rem; color:var(--muted); text-align:center; }
.toast { position: fixed; z-index: 100; right: 50%; bottom: 1.5rem; transform: translateX(50%); max-width: calc(100% - 2rem); padding: 0.8rem 1.1rem; border-radius: 99rem; background: var(--deep); color: var(--surface); box-shadow: var(--shadow); font-size: 0.8rem; text-align: center; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; padding-inline: 1.2rem; }
  .site-header nav { position: absolute; top: calc(100% + 0.4rem); right: 1rem; left: 1rem; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 0.6rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--surface); box-shadow: var(--shadow); }
  .site-header nav.is-open { display: flex; }
  .site-header nav a { padding: 0.8rem 1rem; }
  .header-contact { display: none; }
  .menu-toggle { display: grid; gap: 0.35rem; width: 2.7rem; height: 2.7rem; place-content: center; border: 1px solid var(--line); border-radius: 50%; background: transparent; }
  .menu-toggle span:not(.sr-only) { width: 1.1rem; height: 1px; background: var(--ink); }
  .hero { grid-template-columns: 1fr; gap: 3rem; padding-inline: 6vw; }
  .hero-art { width: min(75vw, 25rem); }
  .store-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-section { grid-template-columns: 1fr; }
  .dialog-layout { grid-template-columns: 1fr; }
  .dialog-image-wrap { min-height: 20rem; max-height: 34vh; }
  .dialog-content { padding: 2rem; }
}

@media (max-width: 620px) {
  .hero { min-height: auto; padding-block: 3.5rem 4rem; }
  h1 { font-size: 3.5rem; }
  .stores-section { padding: 4rem 1rem; }
  .section-heading, .filters, .seller-section { align-items: stretch; flex-direction: column; }
  .search-field { width: 100%; min-width: 0; }
  .category-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.3rem; }
  .filter-button { flex: 0 0 auto; }
  .store-grid { grid-template-columns: 1fr; }
  .process-section { padding: 4rem 1.2rem; }
  .process-section ol { grid-template-columns: 1fr; }
  .process-section li { display: grid; grid-template-columns: 2.5rem 1fr; column-gap: 0.75rem; }
  .process-section li span { grid-row: span 2; margin: 0; }
  .seller-section { padding: 4rem 1.2rem; }
  footer { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer-contact { justify-self: center; }
  .store-dialog { width: calc(100% - 1rem); max-height: calc(100vh - 1rem); }
  .dialog-image-wrap { min-height: 15rem; }
  .dialog-content { padding: 1.4rem; }
  .store-facts > div { padding: 0.75rem 0.55rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
