/* Lu Studio, "Silk & light": warm linen, the logo's plum, the studio's own light. Base, type, controls, shell. */
:root {
  --brand: #4c1d55;
  --brand-deep: #2e1035;
  --brand-foreground: #fbf8f4;
  --linen: #f5eee8;
  --paper: #fbf8f4;
  --sand: #e7dad0;
  --line: #dccbc0;
  --ink: #241429;
  --ink-2: #5b4a5e;
  --silk: #d9b8cb;
  --silk-soft: #efdde6;
  --honey: #8a4f22;
  --danger: #a3263a;
  --font: "Almarai", "Segoe UI", system-ui, sans-serif;
  --radius: 14px;
  --radius-lg: 24px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;
  --shadow: 0 1px 2px rgb(46 16 53 / 0.06), 0 12px 32px -12px rgb(46 16 53 / 0.22);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --dir: 1;
}
[dir="rtl"] { --dir: -1; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--linen);
  color: var(--ink);
  font: 400 1rem/1.75 var(--font);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.3em; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; font-weight: 700; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
::selection { background: var(--silk); color: var(--brand-deep); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
html { scrollbar-color: var(--silk) transparent; }
input, textarea { caret-color: var(--brand); }
.num, time, .tabular { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: var(--radius); background: var(--brand); color: var(--brand-foreground); }
.skip:focus { top: 12px; }
.i { width: 1.25em; height: 1.25em; flex: none; }
/* #i-arrow points the way Arabic reads: .flip makes it "forward" in either direction, .back the opposite */
[dir="ltr"] .flip, [dir="rtl"] .back { transform: scaleX(-1); }
.riyal { display: inline-block; width: 0.95em; height: 0.95em; margin-inline-start: 0.2em; vertical-align: -0.08em; }
.muted { color: var(--ink-2); }

/* type */
.display { font-weight: 300; font-size: clamp(2.5rem, 7vw, 5.5rem); line-height: 1.12; letter-spacing: -0.01em; }
.display strong { font-weight: 700; }
.title { font-weight: 300; font-size: clamp(1.9rem, 4.2vw, 3.2rem); line-height: 1.2; }
.title strong { font-weight: 700; color: var(--brand); }
.lede { font-size: clamp(1.02rem, 1.6vw, 1.15rem); color: var(--ink-2); max-width: 46ch; }
.section { padding-block: clamp(64px, 10vw, 128px); }
.section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-block-end: clamp(28px, 4vw, 48px); }
.section__head .lede { margin-block-start: 12px; }

/* controls */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border: 1px solid transparent; border-radius: 999px;
  background: var(--brand); color: var(--brand-foreground); font-weight: 700; font-size: 0.98rem;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 140ms var(--ease-out), background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}
.btn:hover { background: var(--brand-deep); }
.btn:active { transform: scale(0.97); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn--ghost { background: transparent; color: var(--brand); border-color: var(--line); }
.btn--ghost:hover { background: var(--paper); border-color: var(--brand); }
.btn--light { background: var(--paper); color: var(--brand-deep); }
.btn--light:hover { background: #fff; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 0.9rem; }
.btn--lg { min-height: 56px; padding: 0 30px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn.is-busy { pointer-events: none; color: transparent; position: relative; }
.btn.is-busy::after { content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--brand-foreground); border-inline-end-color: transparent; animation: spin 700ms linear infinite; }
.btn--ghost.is-busy::after { border-color: var(--brand); border-inline-end-color: transparent; }
@keyframes spin { to { transform: rotate(360deg); } }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--brand); font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.text-link .i { transition: translate 150ms var(--ease-out); }
.text-link:hover .i { translate: calc(3px * var(--dir)) 0; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; color: inherit; }
.icon-btn:hover { background: var(--sand); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer; font-size: 0.92rem; transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease; }
.chip:hover { border-color: var(--brand); }
.chip[aria-pressed="true"], .chip[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: var(--brand-foreground); }
.input { width: 100%; min-height: 52px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--silk-soft); }
.label { display: block; margin-block-end: 8px; font-weight: 700; font-size: 0.92rem; }
.error { color: var(--danger); font-size: 0.92rem; }
.skeleton { background: linear-gradient(90deg, var(--sand), var(--paper), var(--sand)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; border-radius: var(--radius); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* announcement */
.banner { background: var(--brand-deep); color: var(--brand-foreground); text-align: center; font-size: 0.9rem; }
.banner__text { display: flex; justify-content: center; align-items: center; gap: 6px; padding: 10px var(--gutter); text-decoration: none; }

/* header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgb(245 238 232 / 0.94); border-block-end: 1px solid transparent; transition: border-color 200ms ease, background-color 200ms ease; }
.site-header.is-scrolled { border-color: var(--line); }
/* Rekaz wraps each section in its own element; the header sticks through that wrapper */
:has(> .site-header) { position: sticky; top: 0; z-index: 40; }
.site-header__row { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brand); }
.logo__mark { width: 40px; height: 40px; object-fit: contain; }
.logo__name { font-weight: 700; font-size: 1.05rem; letter-spacing: 0.08em; }
.logo__full { width: auto; height: 46px; }
.footer__brand .logo__full { height: 64px; }
.sheet__header .logo__full { height: 40px; }

/* home: the header sits see-through over the hero photo, then turns solid once the page scrolls */
body:has(.hero) .hero { margin-block-start: calc(-1 * var(--header-h)); }
body:has(.hero) .hero__grid { padding-block-start: calc(clamp(200px, 38svh, 340px) + var(--header-h)); }
body:has(.hero) .hero::after { content: ""; position: absolute; inset: 0 0 auto; height: 180px; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgb(20 6 24 / 0.55), rgb(20 6 24 / 0)); }
body:has(.hero) .site-header:not(.is-scrolled) { background: transparent; border-color: transparent; }
body:has(.hero) .site-header:not(.is-scrolled) :is(.logo, .logo__name, .site-nav a, .account-btn, .menu-btn, .lang-link) { color: #fff; }
body:has(.hero) .site-header:not(.is-scrolled) .logo__mark { filter: brightness(0) invert(1); }
body:has(.hero) .site-header:not(.is-scrolled) .menu-btn { border-color: rgb(255 255 255 / 0.6); background: rgb(255 255 255 / 0.08); }
body:has(.hero) .site-header:not(.is-scrolled) .header-cta { background: #fff; border-color: #fff; color: var(--brand); }
@media (min-width: 64rem) {
  body:has(.hero) .hero__grid { padding-block-start: calc(clamp(120px, 18svh, 200px) + var(--header-h)); }
  body:has(.hero) .hero__photo { height: max(640px, calc(100svh - 40px)); }
}
.site-nav { display: none; gap: 4px; margin-inline-start: 12px; }
.site-nav a { padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--ink-2); transition: color 150ms ease, background-color 150ms ease; }
.site-nav a:hover { color: var(--ink); background: var(--sand); }
.site-nav a[aria-current="page"] { color: var(--brand); font-weight: 700; }
.site-header__tools { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.lang-link { padding: 8px 12px; border-radius: 999px; text-decoration: none; font-size: 0.92rem; color: var(--ink-2); }
.lang-link:hover { background: var(--sand); color: var(--ink); }
.account-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; text-decoration: none; }
.account-btn:hover { background: var(--sand); }
.account-btn__label { display: none; font-size: 0.92rem; }
.cart-dot { position: absolute; inset-block-start: 4px; inset-inline-end: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--brand); color: var(--brand-foreground); font-size: 0.7rem; line-height: 18px; text-align: center; }
.header-cta { display: none; }
@media (min-width: 64rem) {
  .site-nav { display: flex; }
  .menu-btn { display: none; }
  .header-cta { display: inline-flex; margin-inline-start: 8px; }
  .account-btn__label { display: inline; }
}
.menu-list { display: grid; }
.menu-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 4px; border-block-end: 1px solid var(--line); text-decoration: none; font-size: 1.25rem; }
.menu-list a small { display: block; font-size: 0.88rem; color: var(--ink-2); }
.menu-langs { display: flex; gap: 8px; padding-block: 16px; }

/* footer */
.site-footer { background: #1d0f22; color: #eadcea; padding-block: 64px 32px; margin-block-start: auto; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; gap: 40px; }
.footer__brand .logo { color: #fff; }
.footer__brand .logo__mark { filter: brightness(0) invert(1); opacity: 0.92; }
.footer__brand p { margin-block-start: 16px; max-width: 38ch; color: #cdb8d2; }
.footer__title { font-size: 0.95rem; color: #fff; margin-block-end: 12px; }
.footer__links { display: grid; gap: 8px; padding: 0; margin: 0; list-style: none; }
.footer__social { display: flex; gap: 8px; margin-block-start: 16px; }
.footer__social a { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgb(255 255 255 / 0.2); border-radius: 50%; }
.footer__social a:hover { background: rgb(255 255 255 / 0.08); text-decoration: none; }
.footer__base { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; margin-block-start: 48px; padding-block-start: 24px; border-block-start: 1px solid rgb(255 255 255 / 0.14); font-size: 0.88rem; color: #b9a3bf; }
@media (min-width: 48rem) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }

/* sheets: a bottom sheet on phones, a centred dialog from 768px (Rekaz storefront values) */
.sheet {
  position: fixed; inset: auto 0 0 0; margin: 0 auto; width: 100%; max-width: 100%;
  max-height: calc(100vh - 1.5rem); max-height: calc(100dvh - 1.5rem);
  padding: 0; display: none; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-block-end: 0; border-radius: 28px 28px 0 0;
  background: var(--paper); color: inherit; box-shadow: var(--shadow);
  translate: 0 100%;
  transition: translate 450ms var(--ease-drawer), overlay 450ms allow-discrete, display 450ms allow-discrete;
}
.sheet[open] { display: flex; translate: 0 0; }
@starting-style { .sheet[open] { translate: 0 100%; } }
.sheet::backdrop { background: rgb(36 20 41 / 0.32); transition: opacity 300ms ease, overlay 300ms allow-discrete, display 300ms allow-discrete; opacity: 0; }
.sheet[open]::backdrop { opacity: 1; }
@starting-style { .sheet[open]::backdrop { opacity: 0; } }
.sheet__handle { display: block; width: 44px; height: 5px; margin: 10px auto 0; border-radius: 99px; background: var(--line); }
.sheet__close { position: absolute; inset-block-start: 12px; inset-inline-end: 12px; z-index: 2; }
.sheet__header { flex-shrink: 0; padding: 20px 20px 12px; padding-inline-end: 64px; touch-action: none; }
.sheet__header h2 { font-size: 1.35rem; }
.sheet__header p { color: var(--ink-2); font-size: 0.95rem; }
.sheet__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 8px 20px 20px; }
.sheet__footer { flex-shrink: 0; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); border-block-start: 1px solid var(--line); background: var(--paper); }
@media (min-width: 48rem) {
  .sheet { inset: 0; margin: auto; width: min(560px, calc(100% - 48px)); max-height: min(760px, calc(100dvh - 48px)); border: 1px solid var(--line); border-radius: var(--radius-lg); translate: none; opacity: 0; scale: 0.96; transition: opacity 220ms var(--ease-out), scale 220ms var(--ease-out), overlay 220ms allow-discrete, display 220ms allow-discrete; }
  .sheet[open] { opacity: 1; scale: 1; }
  @starting-style { .sheet[open] { opacity: 0; scale: 0.96; } }
  .sheet__handle { display: none; }
  .sheet__footer { padding-block-end: 16px; }
}
.sheet--menu .sheet__body { padding-block-start: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; }
}
