/* ============================================================
   Sarah Treats — live storefront override CSS (stock «نمو» theme)
   Paste target: Zid dashboard custom-codes slot (CSS).
   Scope: sarahtreats.zid.store — premium pass to mirror the local
   custom theme: Tajawal UI + Amiri display split, Courier Prime
   Latin micro-labels, radius-2 controls, hero legibility.
   Rules honored: no letter-spacing on Arabic; gold micro-only;
   forest #24332C / ivory #F7F0E5 / sage #A4B28A / stone #DAD7CC.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&family=Courier+Prime:wght@400;700&family=Tajawal:wght@300;400;500;700&display=swap');

:root {
  --font-family: 'Tajawal', 'Amiri', system-ui, sans-serif;
  --st-ui: 'Tajawal', 'Amiri', system-ui, sans-serif;
  --st-display: 'Amiri', 'Tajawal', serif;
  --st-mono: 'Courier Prime', ui-monospace, 'SFMono-Regular', monospace;
  --st-forest: #24332c;
  --st-ivory: #f7f0e5;
  --st-pine: #354e41;
  --st-action: #3b5a40;
  --st-sage: #a4b28a;
  --st-stone: #dad7cc;
  --radius: 2px;
}

/* ---- base ------------------------------------------------- */
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body { font-family: var(--st-ui); }
::selection { background: rgba(164, 178, 138, 0.35); }

/* Arabic must never be letter-spaced; kill Tailwind tracking on headings */
h1, h2, h3, h4 { letter-spacing: 0; }

/* ---- display typography (Amiri, headings only) ------------ */
main h1 {
  font-family: var(--st-display);
  font-weight: 400;
  line-height: 1.55;
}
.section-hero h1 {
  font-size: clamp(2rem, 1.15rem + 3.2vw, 3.25rem);
}
.section-call-to-action h2,
.section-products > * h2:not(.text-base),
.section-products h2.text-xl,
.section-gallery h2 {
  font-family: var(--st-display);
  font-weight: 400;
  line-height: 1.6;
}
.section-call-to-action h2 { font-size: clamp(1.65rem, 1.05rem + 2vw, 2.5rem); }
.section-products h2.text-xl,
.section-gallery h2 { font-size: clamp(1.45rem, 1.1rem + 1.3vw, 2rem); }

/* PDP title + cart/page titles inherit the display voice too */
h1.text-2xl, h1.text-3xl, h1.text-xl { font-family: var(--st-display); font-weight: 400; }

/* ---- Latin micro-labels (kickers) ------------------------- */
.section-hero span.uppercase {
  font-family: var(--st-mono);
  font-weight: 400;
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  opacity: 0.85;
}

/* ---- hero text legibility over photography ---------------- */
.section-hero h1,
.section-hero p,
.section-hero span.uppercase {
  text-shadow:
    0 0 2px rgba(247, 240, 229, 0.45),
    0 1px 26px rgba(247, 240, 229, 0.62);
}

/* On small screens the hero copy crosses the dark hair area —
   give it a soft ivory veil (frosted card) so forest text reads. */
@media (max-width: 768px) {
  .section-hero div.flex.flex-col.gap-4:has(> h1) {
    background: rgba(247, 240, 229, 0.4);
    -webkit-backdrop-filter: blur(12px) saturate(1.05);
    backdrop-filter: blur(12px) saturate(1.05);
    padding: 1.25rem 1.15rem;
    border-radius: 2px;
  }
}

/* ---- controls --------------------------------------------- */
.btn {
  font-family: var(--st-ui);
  font-weight: 500;
  font-size: 0.9375rem;
  border-radius: 2px;
  transition: background-color 0.25s ease, border-color 0.25s ease,
              color 0.25s ease, transform 0.25s ease;
}
.btn-filled:hover { background-color: var(--st-action); }
.btn-outlined:hover { background-color: rgba(36, 51, 44, 0.05); }
.btn:active { transform: translateY(1px); }

/* ---- header / announcement -------------------------------- */
header a { font-family: var(--st-ui); }
header nav a { font-weight: 500; }
div.bg-primary.text-primary-foreground a {
  font-family: var(--st-ui);
  font-size: 0.8125rem;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

/* ---- product cards ---------------------------------------- */
.section-products h3, main h3.text-sm {
  font-family: var(--st-ui);
  font-weight: 500;
  font-size: 0.9375rem;
  line-height: 1.6;
}
main img { border-radius: 2px; }

/* ---- footer ----------------------------------------------- */
footer { border-top: 1px solid var(--st-stone); }
footer h3 { font-family: var(--st-ui); font-weight: 700; font-size: 0.84rem; }
footer a, footer p, footer span { font-family: var(--st-ui); }
footer a:hover { text-decoration-color: var(--st-sage); }

/* ---- forms / focus ---------------------------------------- */
input, textarea, select, button { font-family: var(--st-ui); }
:focus-visible { outline-color: var(--st-action);
               }


img.aspect-\[4\/5\].w-full.object-cover.transition-transform.duration-300.group-hover\:scale-105 {
    object-fit: contain;
    height: 316px;
}