/* ---------------------------------------------
   Khidmitak — Minimal Arabesque Design System
   Palette inspired by Levantine earth tones and UK luxury minimalism
   --------------------------------------------- */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Cormorant+Garamond:wght@500;600&family=Noto+Naskh+Arabic:wght@400;600&display=swap');

/* Color tokens */
:root {
  --bg-sand: #F4EFE7;
  --bg-linen: #FBF9F5;
  --ink-charcoal: #2F3437;
  --ink-muted: #5C6368;
  --accent-olive: #6B8E23;
  --accent-olive-600: #536E1B;
  --border: #E6E0D6;
  --shadow: 0 6px 26px rgba(15, 20, 28, 0.06);
}

/* Dark theme (optional) */
:root.dark {
  --bg-sand: #151717;
  --bg-linen: #0E1010;
  --ink-charcoal: #F5F7F7;
  --ink-muted: #C9CDCF;
  --accent-olive: #8FB242;
  --accent-olive-600: #6D8E2F;
  --border: #2D3336;
  --shadow: 0 8px 30px rgba(0,0,0,0.35);
}

/* Arabic / English font pairing */
html[lang="ar"] body {
  font-family: "Noto Naskh Arabic", serif;
}
html[lang="en"] body, body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* Global */
* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-linen);
  color: var(--ink-charcoal);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* Type scale */
.h1, h1 { font: 600 48px/1.05 "Cormorant Garamond", serif; letter-spacing: 0.01em; margin: 0.2em 0; }
.h2, h2 { font: 600 36px/1.1 "Cormorant Garamond", serif; margin: 0.3em 0; }
.h3, h3 { font: 500 24px/1.25 "Cormorant Garamond", serif; margin: 0.4em 0; }
.p, p { font: 400 16px/1.7 Inter, sans-serif; color: var(--ink-muted); margin: 0.8em 0; }

/* Container */
.container { width: min(1200px, 92vw); margin: 0 auto; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg-linen); border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(180%) blur(10px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font: 600 18px/1 Inter, sans-serif; letter-spacing: 0.08em; text-transform: uppercase; }
.nav { display: flex; gap: 24px; align-items: center; }
.nav a { font-weight: 500; opacity: 0.9; }
.actions { display: flex; gap: 12px; align-items: center; }
.btn, button, .cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 18px; border-radius: 999px; border: 1px solid var(--ink-charcoal);
  background: transparent; color: var(--ink-charcoal); cursor: pointer; transition: transform .08s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary {
  background: var(--accent-olive); color: #fff; border-color: var(--accent-olive);
}
.btn.primary:hover { background: var(--accent-olive-600); }

/* Mobile nav */
.burger { display: none; width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--border); }
@media (max-width: 920px) {
  .nav { display: none; }
  .burger { display: inline-flex; align-items: center; justify-content: center; }
  .mobile-drawer {
    position: fixed; inset: 0 0 0 auto; width: 78vw; background: var(--bg-linen);
    border-left: 1px solid var(--border); transform: translateX(100%); transition: transform .25s ease;
    padding: 24px; display: flex; flex-direction: column; gap: 18px;
  }
  .mobile-drawer.open { transform: translateX(0); box-shadow: var(--shadow); }
  .mobile-drawer a { font-size: 18px; padding: 10px 0; }
}

/* Hero */
.hero {
  background: var(--bg-sand);
  padding: clamp(48px, 8vw, 96px) 0;
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center;
}
.hero .eyebrow { text-transform: uppercase; letter-spacing: .12em; font: 500 12px/1 Inter, sans-serif; color: var(--ink-muted); }
.hero .lede { margin-top: 12px; max-width: 52ch; }
.hero .cta-row { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; } }

/* Section */
.section { padding: clamp(36px, 6vw, 72px) 0; }
.section .section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.section .section-sub { color: var(--ink-muted); }

/* Cards */
.card {
  background: var(--bg-linen); border: 1px solid var(--border); border-radius: 16px;
  overflow: hidden; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-2px); }
.card-body { padding: 16px; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; background: #fff; border:1px solid var(--border); font-size:12px; color: var(--ink-muted); }

/* Product grid */
.grid { display: grid; gap: 20px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px){ .grid.cols-4 { grid-template-columns: repeat(3, 1fr);} }
@media (max-width: 820px){ .grid.cols-3, .grid.cols-4 { grid-template-columns: repeat(2, 1fr);} }
@media (max-width: 520px){ .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr;} }

/* Product card specifics */
.product-title { font: 500 18px/1.3 "Cormorant Garamond", serif; color: var(--ink-charcoal); margin: 8px 0 6px; }
.price { font-weight: 600; color: var(--ink-charcoal); }
.meta { color: var(--ink-muted); font-size: 14px; }

/* Filters */
.filters {
  border: 1px solid var(--border); border-radius: 16px; padding: 14px; background: var(--bg-linen);
}
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 4px; }
.chip { border:1px solid var(--border); border-radius: 999px; padding: 6px 10px; background:#fff; font-size:13px; }
.chip .x { margin-inline-start: 6px; opacity:.6; }

/* Footer */
.footer { border-top: 1px solid var(--border); background: var(--bg-linen); padding: 30px 0; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 20px; }
.footer h4 { font: 600 16px/1 Inter, sans-serif; margin: 0 0 10px; }
.footer a { color: var(--ink-muted); }
@media (max-width: 920px){ .footer-grid { grid-template-columns: 1fr 1fr; } }

/* RTL support */
[dir="rtl"] .header-inner { flex-direction: row-reverse; }
[dir="rtl"] .nav, [dir="rtl"] .actions { flex-direction: row-reverse; }
[dir="rtl"] .section .section-head { flex-direction: row-reverse; }
[dir="rtl"] .cta-row { flex-direction: row-reverse; }
[dir="rtl"] .badge, [dir="rtl"] .chip { direction: rtl; }

/* Subtle arabesque motif (light) */
.motif {
  --motif: radial-gradient( circle at 10px 10px, rgba(0,0,0,0.05) 1px, transparent 1px );
  background-image: var(--motif), var(--motif);
  background-size: 22px 22px, 22px 22px;
  background-position: 0 0, 11px 11px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.15), rgba(0,0,0,0));
}


/* --- Islamic geometric background + brass glow --- */
.bg-wrapper{ position: fixed; inset: 0; z-index: -1; }
.bg-gradients{
  position:absolute; inset:0;
  background:
    radial-gradient(1200px 600px at 10% 0%, rgba(78,201,176,0.10), transparent),
    radial-gradient(1200px 600px at 90% 0%, rgba(14,165,165,0.08), transparent),
    linear-gradient(180deg, var(--bg-linen) 0%, var(--bg-sand) 100%);
}
.bg-pattern { position:absolute; inset:0; opacity:0.5; }
.bg-brass { position:absolute; inset:0; pointer-events:none; mix-blend-mode:screen;
  background: radial-gradient(600px 300px at 50% 10%, rgba(212,175,55,0.08), transparent);
}

/* Pattern stroke/dot tokens mapped to existing theme */
:root { --pattern-stroke: rgba(0,0,0,0.08); --pattern-dot: rgba(0,0,0,0.06); }
:root.dark { --pattern-stroke: rgba(255,255,255,0.12); --pattern-dot: rgba(255,255,255,0.08); }
