:root {
  /* Brand Palette */
  --cobalt: #321942;
  --cobalt-dark: #22102E;
  --cobalt-soft: rgba(50, 25, 66, 0.06);
  --ivory: #F8F4F2;
  --ivory-soft: #FCF9F8;
  --topbar-bg: #321942;
  --header-bg: rgba(248, 244, 242, 0.96);
  --footer-bg: #321942;
  --surface: #FFFFFF;
  --terracotta: #9B4D7E;
  --terracotta-hover: #823E69;
  --terracotta-soft: rgba(155, 77, 126, 0.13);

  /* Semantic Status Colors */
  --ready-bg: #EAF5EE;
  --ready-text: #1B6B43;
  --ready-dot: #22A05D;
  --preorder-bg: #F1EAF5;
  --preorder-text: #321942;
  --preorder-dot: #321942;
  --soldout-bg: #F1F5F9;
  --soldout-text: #64748B;

  /* Neutrals */
  --text: #1A1024;
  --muted: #695672;
  --border: rgba(50, 25, 66, 0.12);
  --border-strong: rgba(50, 25, 66, 0.24);

  /* Strict Geometric & Spacing Scale */
  --control-h: 42px;
  --btn-h: 46px;
  --filter-h: 40px;
  --logo-height: 54px;
  --footer-logo-height: 56px;
  --section-py: 72px;
  --section-py-mobile: 48px;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 24px;

  /* Elevation */
  --shadow-xs: 0 4px 12px rgba(50, 25, 66, 0.06);
  --shadow-sm: 0 10px 28px rgba(50, 25, 66, 0.08);
  --cobalt-muted-bg: rgba(50, 25, 66, 0.09);
  --cobalt-badge-bg: rgba(50, 25, 66, 0.92);
  --cobalt-overlay: rgba(34, 16, 46, 0.64);
  --drawer-overlay: rgba(34, 16, 46, 0.58);
  --ivory-muted: rgba(248, 244, 242, 0.84);
  --ivory-subtle: rgba(248, 244, 242, 0.72);
  --ivory-line: rgba(248, 244, 242, 0.14);
  --ivory-line-strong: rgba(248, 244, 242, 0.26);
  --ivory-glass: rgba(248, 244, 242, 0.12);
  --ivory-glass-hover: rgba(248, 244, 242, 0.09);
  --accent-on-dark: #D494BE;
  --accent-shadow: rgba(155, 77, 126, 0.30);
  --accent-shadow-lg: rgba(155, 77, 126, 0.36);
  --border-subtle: rgba(50, 25, 66, 0.08);
  --shadow-md: 0 22px 52px rgba(50, 25, 66, 0.14);
  --shadow-modal: 0 28px 70px rgba(34, 16, 46, 0.38);
  --shadow-drawer: 24px 0 60px rgba(34, 16, 46, 0.28);
  --shadow-nav-drawer: -20px 0 50px rgba(34, 16, 46, 0.36);
  --shadow-float: 0 14px 32px rgba(50, 25, 66, 0.30);

  /* Refined Boutique Arabic Typography */
  --font-display: 'El Messiri', 'Readex Pro', serif;
  --font-ui: 'Readex Pro', 'IBM Plex Sans Arabic', sans-serif;
  --font-body: 'IBM Plex Sans Arabic', sans-serif;
  --font-size-base: 15.5px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  background-color: var(--ivory);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--font-size-base, 15.5px);
  line-height: 1.75;
  direction: rtl;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2 {
  font-family: var(--font-display);
  color: var(--cobalt);
  line-height: 1.28;
  margin: 0;
  letter-spacing: -0.01em;
}

h3, h4 {
  font-family: var(--font-ui);
  color: var(--cobalt);
  line-height: 1.38;
  margin: 0;
}

button, input, textarea, select {
  font-family: inherit;
  touch-action: manipulation;
}

button {
  -webkit-appearance: none;
  appearance: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2.5px solid var(--terracotta);
  outline-offset: 2px;
}

.lamma-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.lamma-404-box {
  text-align: center;
  padding: 90px 20px;
}
.lamma-404-box h1 {
  font-size: 56px;
  margin-bottom: 12px;
}
.lamma-404-box p {
  margin: 0 0 28px;
  color: var(--muted);
}

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


/* Accessible Skip Link */
.lamma-skip-link {
  position: absolute;
  top: -100px;
  right: 16px;
  z-index: 999;
  background: var(--cobalt);
  color: var(--ivory);
  padding: 10px 18px;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 13.5px;
  font-weight: 700;
}
.lamma-skip-link:focus {
  top: 14px;
}

/* Standard WordPress Page Typography (.lamma-prose) */
.lamma-prose {
  max-width: 820px;
}
.lamma-prose h1 {
  font-size: 32px;
  font-size: clamp(26px, 3.4vw, 38px);
  margin-bottom: 22px;
}
.lamma-page-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-xs);
  color: var(--text);
  line-height: 1.9;
}
.lamma-page-content h2,
.lamma-page-content h3 {
  margin: 24px 0 10px;
}
.lamma-page-content p {
  margin: 0 0 14px;
}
.lamma-page-content ul,
.lamma-page-content ol {
  padding-right: 22px;
  margin: 0 0 16px;
}
