/* Direction B ("Depth") theme — loaded after style.css on every page */
html.theme-b {
  --sand: #f1ede3;      /* page */
  --sand-2: #e4dfd2;
  --paper: #f8f6f0;
  --stone: #b9b4a3;
  --ink: #1b1a16;
  --ink-2: #4b483f;
  --muted: #8a8577;
  --sage: #6b7552;      /* studio wall */
  --clay: #8e5a3c;
  --olive-1: #9da383;
  --olive-2: #6b7552;
  --olive-3: #424b33;
  --olive-4: #22281c;
  --line: rgba(27, 26, 22, .13);
  --radius: 18px;
  --ar-display: "Zain", "IBM Plex Sans Arabic", sans-serif;
  --ar-body: "IBM Plex Sans Arabic", "Switzer", system-ui, sans-serif;
  --latin: "Instrument Serif", "Times New Roman", serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
html.theme-b[lang="en"] {
  --ar-display: "Instrument Serif", "Times New Roman", serif;
  --ar-body: "Switzer", "Inter", system-ui, sans-serif;
}
html.theme-b body { font-weight: 400; background: var(--sand); }
html.theme-b[lang="ar"] body { font-weight: 300; }

/* type */
html.theme-b h1, html.theme-b h2, html.theme-b h3 { font-weight: 400; letter-spacing: -.01em; }
html.theme-b[lang="en"] h1 { font-size: clamp(56px, 8.4vw, 128px); line-height: .9; }
html.theme-b[lang="en"] h2 { font-size: clamp(38px, 4.8vw, 72px); line-height: .95; }
html.theme-b[lang="en"] h3 { font-size: clamp(24px, 2.2vw, 32px); line-height: 1; }
html.theme-b[lang="ar"] h1, html.theme-b[lang="ar"] h2, html.theme-b[lang="ar"] h3 { font-weight: 300; letter-spacing: 0; }
html.theme-b[lang="ar"] h1 { font-size: clamp(48px, 7vw, 110px); line-height: 1.15; }
html.theme-b[lang="ar"] h2 { font-size: clamp(34px, 4.2vw, 64px); line-height: 1.2; }
html.theme-b .latin { font-weight: 400; letter-spacing: -.01em; }
html.theme-b .eyebrow { letter-spacing: .16em; text-transform: uppercase; font-size: 11px; }
html.theme-b[lang="ar"] .eyebrow { letter-spacing: .02em; text-transform: none; font-size: 13px; }
html.theme-b .eyebrow .latin { font-family: var(--ar-body); font-size: 11px; letter-spacing: .16em; }
html.theme-b .lede { color: var(--ink-2); }

/* buttons become pills */
html.theme-b .btn { border-radius: 999px; min-height: 50px; padding: 0 26px; font-weight: 400; }
html.theme-b .btn:hover { background: var(--olive-4); color: var(--sand); border-color: var(--olive-4); transform: translateY(-1px); }
html.theme-b .btn--ghost { box-shadow: none; }
html.theme-b .btn--ghost:hover { background: var(--ink); color: var(--sand); }
html.theme-b .btn--light:hover { background: var(--sand); color: var(--ink); border-color: var(--sand); }
html.theme-b .btn { transition: background .3s, color .3s, transform .4s var(--ease); }

/* header + announcement */
html.theme-b .announce { background: var(--olive-4); color: #e7e2d6; }
html.theme-b .header { background: color-mix(in srgb, var(--sand) 88%, transparent); }
html.theme-b .header__nav { font-size: 14px; font-weight: 400; }
html.theme-b .header__logo img { height: 30px; }
html.theme-b .cart-count { background: var(--olive-2); }

/* surfaces */
html.theme-b .section--ink { background: var(--olive-4); }
html.theme-b .section--paper { background: var(--paper); }
html.theme-b .footer { background: var(--olive-4); }

/* rounded imagery everywhere */
html.theme-b .card__media, html.theme-b .masonry figure, html.theme-b .mosaic figure, html.theme-b .pdp__media figure,
html.theme-b .split__media figure, html.theme-b .split > figure, html.theme-b .strip figure, html.theme-b .service figure,
html.theme-b .contact-card, html.theme-b .summary, html.theme-b .bnpl, html.theme-b .demo-flag { border-radius: var(--radius); overflow: hidden; }
html.theme-b .line img { border-radius: 10px; }

/* ---------- depth stage: arrangement on the studio-wall colour ---------- */
html.theme-b .card__media,
html.theme-b .stage {
  position: relative; overflow: hidden;
  background: radial-gradient(65% 55% at 50% 45%, var(--olive-1) 0%, var(--olive-2) 62%, var(--olive-3) 100%);
}
html.theme-b .card__media { aspect-ratio: 3 / 4; }
html.theme-b .stage__cut {
  position: absolute; left: 50%; bottom: 0; height: 88%; width: auto; max-width: none; object-fit: contain;
  translate: -50% 0; transform-origin: 50% 100%;
  filter: drop-shadow(0 30px 40px rgba(30, 28, 20, .32));
  transition: transform 1.1s var(--ease);
}
html.theme-b .stage__photo {
  width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: radial-gradient(60% 58% at 50% 52%, #000 60%, transparent 100%);
          mask-image: radial-gradient(60% 58% at 50% 52%, #000 60%, transparent 100%);
  transition: transform 1.1s var(--ease);
}
html.theme-b .card:hover .stage__cut { transform: translateY(-2%) scale(1.035); }
html.theme-b .card:hover .stage__photo { transform: scale(1.04); }
html.theme-b .card__media img { transition: transform 1.1s var(--ease); }
html.theme-b .card:hover .card__media img:not(.stage__cut):not(.stage__photo) { transform: scale(1.035); }
html.theme-b .card__quick { border-radius: 999px; }
html.theme-b .card__name { font-size: 30px; }
html.theme-b .price { font-weight: 400; }

/* product page stage: name behind, arrangement in front */
html.theme-b .pdp__media .main.stage { aspect-ratio: 4 / 5; }
html.theme-b .stage__name {
  position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; white-space: nowrap;
  font-family: "Instrument Serif", serif; font-size: clamp(90px, 12vw, 210px); line-height: 1; color: rgb(var(--on-deep-rgb) / .2);
  translate: calc(var(--mx, 0) * -14px) calc(var(--sp, 0) * 40px);
}
html.theme-b .stage .stage__cut { height: 90%; translate: calc(-50% + var(--mx, 0) * 12px) calc(var(--sp, 0) * -24px); }
html.theme-b .stage .stage__photo { position: relative; translate: calc(var(--mx, 0) * 8px) 0; }
html.theme-b .pdp__media .main.stage .stage__photo { position: absolute; inset: 0; }
html.theme-b .pdp__title .latin { font-size: clamp(56px, 6vw, 92px); line-height: .9; }

/* product controls */
html.theme-b .date, html.theme-b .slot { border-radius: 14px; }
html.theme-b .date[aria-pressed="true"] { background: var(--olive-4); border-color: var(--olive-4); }
html.theme-b .slot[aria-pressed="true"] { border-color: var(--olive-4); box-shadow: inset 0 0 0 1px var(--olive-4); }
html.theme-b .qty { border-radius: 999px; overflow: hidden; }
html.theme-b textarea, html.theme-b input, html.theme-b select.input, html.theme-b .select { border-radius: 14px; background: var(--paper); }
html.theme-b .chip { border-radius: 999px; }
html.theme-b .chip[aria-pressed="true"] { background: var(--olive-4); border-color: var(--olive-4); }
html.theme-b .assure svg { stroke: var(--olive-2); }

/* checkout */
html.theme-b .pay-opt { border-radius: 16px; overflow: hidden; }
html.theme-b .pay-opt:has(input:checked) { border-color: var(--olive-4); box-shadow: inset 0 0 0 1px var(--olive-4); }
html.theme-b .co-block h2 { font-size: clamp(30px, 3vw, 42px); }
html.theme-b .co-block h2 span { font-family: "Instrument Serif", serif; }
html.theme-b .summary { background: var(--paper); box-shadow: 0 1px 0 var(--line); }
html.theme-b .modal__card { border-radius: 24px; }
html.theme-b .pay { border-radius: 6px; }
html.theme-b .drawer { border-start-start-radius: 0; }
html.theme-b .drawer__head h2 { font-size: 34px; }

/* page hero */
html.theme-b .page-hero { padding-block: clamp(56px, 8vw, 120px) clamp(32px, 4vw, 56px); }
html.theme-b .page-hero h1 { animation: b-rise 1.2s var(--ease) both; }
html.theme-b .page-hero .lede { animation: b-rise 1.2s .12s var(--ease) both; }
@keyframes b-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* steps + ticks */
html.theme-b .step__n { color: var(--olive-1); font-family: "Instrument Serif", serif; }
html.theme-b .ticks li span:first-child { font-family: "Instrument Serif", serif; }

/* reveal: rise with a soft blur */
html.theme-b .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
html.theme-b .reveal.in { opacity: 1; transform: none; }



@media (prefers-reduced-motion: reduce) {
  html.theme-b .page-hero h1, html.theme-b .page-hero .lede { animation: none; }
  html.theme-b .reveal { filter: none; }
}
@media (max-width: 560px) {
  html.theme-b .card__name { font-size: 22px; }
  html.theme-b .stage__name { font-size: 26vw; }
}

/* name stays legible behind white arrangements, and floats over the faded photos */
html.theme-b .stage__name { color: rgb(var(--on-deep-rgb) / .3); place-items: start center; padding-top: 9%; }
html.theme-b .stage:has(.stage__photo) .stage__name { z-index: 1; mix-blend-mode: soft-light; color: rgba(255, 255, 255, .75); }
html.theme-b .card__media .stage__name { display: none; }
/* checkout headings */
html.theme-b .summary h2 { font-size: clamp(28px, 2.6vw, 40px); }
html.theme-b[lang="ar"] .checkout + .modal h2, html.theme-b[lang="ar"] .summary h2 { line-height: 1.25; }
html.theme-b [data-checkout] ~ * h1, html.theme-b section:has(+ [data-checkout]) h1 { font-size: clamp(44px, 5vw, 76px); }

/* ---------- full-bleed photography (user, 26 Oct 2026) ----------
   --bleed = distance from the .wrap content edge to the screen edge, at any width */
html.theme-b { --bleed: calc((100vw - min(100vw, var(--max, 1320px))) / 2 + var(--gutter)); }
html.theme-b .card__media, html.theme-b .masonry figure, html.theme-b .mosaic figure, html.theme-b .pdp__media figure,
html.theme-b .split__media figure, html.theme-b .split > figure, html.theme-b .strip figure, html.theme-b .service figure { border-radius: 0; }

/* galleries (events, installations) and the shop grid run edge to edge with hairline gaps */
html.theme-b .masonry { margin-inline: calc(-1 * var(--bleed)); column-gap: 3px; }
html.theme-b .masonry figure { margin-bottom: 3px; }
html.theme-b .products:not(.products--rail) { margin-inline: calc(-1 * var(--bleed)); gap: 3px; row-gap: 40px; }
html.theme-b .products:not(.products--rail) .card__row,
html.theme-b .products:not(.products--rail) .card__ar { padding-inline: 18px; }
html.theme-b .products--rail { margin-inline: calc(-1 * var(--bleed)); gap: 3px; padding-inline: 0; }
html.theme-b .products--rail .card__row, html.theme-b .products--rail .card__ar { padding-inline: 18px; }

/* product page: the image column runs to the screen edge */
html.theme-b .pdp__media { margin-inline-start: calc(-1 * var(--bleed)); gap: 3px; }
/* side photos on Workshops and About run to their screen edge */
html.theme-b .split > figure:first-child { margin-inline-start: calc(-1 * var(--bleed)) !important; }
html.theme-b .split > .mosaic:last-child { margin-inline-end: calc(-1 * var(--bleed)); gap: 3px; }

@media (max-width: 900px) {
  html.theme-b .pdp__media { margin-inline: calc(-1 * var(--bleed)); }
  html.theme-b .split > figure:first-child, html.theme-b .split > .mosaic:last-child { margin-inline: calc(-1 * var(--bleed)) !important; }
}

/* ---------- accounts, checkout extras, studio dashboard ---------- */
.acct, .admin { padding-bottom: 110px; }
.acct-msg { padding: 12px 16px; border-radius: 12px; background: #f3dcd2; color: #6b2f1c; margin-bottom: 18px; max-width: 520px; }
.acct-msg.is-ok { background: color-mix(in srgb, var(--olive-1) 35%, var(--paper)); color: var(--ink); }
.acct-auth { max-width: 460px; }
.acct-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--sand-2); margin-bottom: 22px; width: max-content; }
.acct-tabs button { border: 0; background: none; padding: 10px 20px; border-radius: 999px; font: inherit; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.acct-tabs [aria-selected="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }
.acct-form { gap: 12px; }
.acct-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.acct-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; align-items: start; }
.acct-card { background: var(--paper); border-radius: 18px; padding: clamp(20px, 3vw, 32px); display: grid; gap: 14px; }
.acct-card h3 { font-size: clamp(24px, 2.2vw, 30px); }
.acct-card--wide { grid-column: 1 / -1; }
.acct-addr { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.acct-addr__actions { display: flex; gap: 14px; align-items: start; white-space: nowrap; }
.acct-addr__actions .link { background: none; border: 0; border-bottom: 1px solid currentColor; padding: 0; font: inherit; font-size: 13px; cursor: pointer; color: inherit; }
.acct-tag { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--sand-2); }
.acct-add summary { list-style: none; cursor: pointer; width: max-content; margin-top: 6px; }
.acct-add summary::-webkit-details-marker { display: none; }
.acct-add[open] summary { margin-bottom: 14px; }
.acct-order { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.acct-order__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.acct-order__total { font-weight: 500; }
.status { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--sand-2); white-space: nowrap; }
.status--new { background: #f3e1c7; } .status--confirmed, .status--preparing { background: #e3e6d2; }
.status--out_for_delivery { background: #d9e4ea; } .status--delivered { background: #d7e8d3; } .status--cancelled { background: #eedad6; }
.btn.is-busy { opacity: .6; pointer-events: none; }
.co-saved { margin-bottom: 4px; }
.co-error { background: #f3dcd2 !important; color: #6b2f1c !important; margin-bottom: 12px; }
@media (max-width: 860px) { .acct-grid { grid-template-columns: 1fr; } }

.admin-hero { padding-block: 40px 20px; }
.admin-kpis { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 10px; margin-bottom: 18px; }
.admin-kpis > div { background: var(--paper); border-radius: 16px; padding: 18px 20px; display: grid; gap: 4px; }
.admin-kpis b { font-family: "Instrument Serif", serif; font-weight: 400; font-size: 34px; line-height: 1; }
.admin-live { align-content: center; display: flex !important; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.admin-live i { width: 9px; height: 9px; border-radius: 50%; background: var(--stone); }
.admin-live.is-on i { background: #3aa76d; box-shadow: 0 0 0 0 rgba(58, 167, 109, .5); animation: livepulse 2s infinite; }
@keyframes livepulse { 70% { box-shadow: 0 0 0 10px rgba(58, 167, 109, 0); } 100% { box-shadow: 0 0 0 0 rgba(58, 167, 109, 0); } }
.admin-filters { margin-bottom: 18px; }
.admin-filters b { font-weight: 500; opacity: .6; margin-inline-start: 4px; }
.admin-list { display: grid; gap: 10px; }
.ord { background: var(--paper); border-radius: 18px; padding: 18px 20px; display: grid; gap: 14px; border-inline-start: 4px solid var(--stone); }
.ord--new { border-inline-start-color: var(--accent); }
.ord--delivered, .ord--cancelled { opacity: .72; }
.ord__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.ord__no { font-family: "Instrument Serif", serif; font-weight: 400; font-size: 24px; }
.ord__top select { border: 1px solid var(--line); border-radius: 999px; background: var(--sand); padding: 8px 14px; font: inherit; font-size: 14px; }
.ord__grid { display: grid; grid-template-columns: 1.3fr 1.2fr 1fr .8fr; gap: 18px; font-size: 14px; }
.ord__lab { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
html[lang="ar"] .ord__lab { letter-spacing: 0; font-size: 12px; }
.ord__name { font-size: 20px; }
.ord__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ord__actions .btn { min-height: 40px; padding: 0 16px; font-size: 13.5px; }
.btn--wa { background: #25d366 !important; border-color: #25d366 !important; color: #fff !important; }
@media (max-width: 900px) { .ord__grid { grid-template-columns: 1fr 1fr; } .admin-kpis { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .ord__grid { grid-template-columns: 1fr; } }
/* the hidden attribute always wins over component display rules (forms, panes, notices) */
html.theme-b [hidden] { display: none !important; }

/* checkout: sign in / create account / continue as guest */
.co-gate { background: var(--paper); border-radius: 18px; padding: clamp(22px, 3vw, 32px); display: grid; gap: 12px; margin: 8px 0 6px; }
.co-gate h2 { font-size: clamp(28px, 2.8vw, 38px); }
.co-gate__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
[data-checkout].is-gated .co-block, [data-checkout].is-gated .co-who { display: none; }
.co-who { margin: 8px 0 0; }
.co-who .link, .acct-guest .link { background: none; border: 0; border-bottom: 1px solid currentColor; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.acct-guest { margin-top: 18px; color: var(--ink-2); }

/* studio dashboard: 2-step sign-in, tabs, products and pages editors */
.admin-auth { max-width: 460px; display: grid; gap: 14px; }
.admin-auth h2 { font-size: clamp(28px, 3vw, 38px); }
.admin-qr { width: 200px; height: 200px; background: #fff; border-radius: 14px; padding: 10px; }
.admin-auth code { font-size: 13px; word-break: break-all; background: var(--sand-2); padding: 2px 6px; border-radius: 6px; }
.admin-tabs { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.admin-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.admin-bar .note { margin: 0; max-width: 60ch; }
.admin-rows { display: grid; gap: 8px; margin-bottom: 18px; }
.admin-row { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; background: var(--paper); border-radius: 16px; padding: 10px 14px 10px 10px; }
.admin-row img, .admin-row__icon { width: 56px; height: 70px; object-fit: cover; border-radius: 10px; background: var(--sand-2); display: grid; place-items: center; font-size: 22px; color: var(--muted); }
.admin-row b.latin { font-size: 20px; font-weight: 400; }
.admin-row.is-off { opacity: .6; }
.admin-row__actions { display: flex; gap: 10px; align-items: center; }
.admin-row__actions .link { background: none; border: 1px solid var(--line); border-radius: 50%; width: 34px; height: 34px; cursor: pointer; font: inherit; color: inherit; }
.admin-row__actions .link:disabled { opacity: .3; cursor: default; }
.admin-row__actions .btn { min-height: 38px; padding: 0 16px; font-size: 13.5px; }
.admin-editor { margin-top: 8px; }
.admin-editor input:not([type=checkbox]):not([type=file]), .admin-editor textarea { background: var(--sand); }
.admin-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.fld { display: grid; gap: 6px; font-size: 14px; }
.fld > span { font-size: 13px; color: var(--ink-2); }
.fld small { font-size: 12px; color: var(--muted); }
.pic { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; }
.pic img { grid-row: span 2; width: 84px; height: 104px; object-fit: cover; border-radius: 10px; background: var(--sand-2); }
.pic input[type=file] { border: 0; padding: 0; background: none; font-size: 13px; }
.pic .link, .admin-danger { background: none; border: 0; border-bottom: 1px solid currentColor; padding: 0; font: inherit; font-size: 13px; cursor: pointer; color: inherit; justify-self: start; }
.admin-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.admin-danger { color: #9b3420; margin-inline-start: auto; }
@media (max-width: 700px) {
  .admin-cols { grid-template-columns: 1fr; }
  .admin-row { grid-template-columns: 48px 1fr; }
  .admin-row__actions { grid-column: 1 / -1; justify-content: flex-end; }
}
.admin button.link { background: none; border: 0; border-bottom: 1px solid currentColor; padding: 0; font: inherit; font-size: 14px; cursor: pointer; color: inherit; }
