/* Shared structure. Every colour and face comes from the host concept's tokens:
   --y-bg --y-fg --y-muted --y-line --y-accent --y-accent-fg --y-surface --y-font --y-display */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
a { color: inherit; }
.y-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.y-skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--y-fg); color: var(--y-bg); text-decoration: none; }
.y-skip:focus { top: calc(env(safe-area-inset-top, 0px) + 12px); }
:focus-visible { outline: 2px solid var(--y-accent, currentColor); outline-offset: 3px; }
h1[tabindex="-1"]:focus { outline: none; }

/* ---------- preview chrome: concept switcher ---------- */
.yp-bar {
  position: fixed; z-index: 120; inset-inline-start: max(12px, env(safe-area-inset-left, 0px));
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 2px; padding: 4px;
  background: rgba(20, 5, 7, .86); color: #f4efe9; border: 1px solid rgba(244, 239, 233, .16);
  border-radius: 999px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font: 500 11px/1 system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif; letter-spacing: .06em;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
.yp-bar a, .yp-bar button { all: unset; cursor: pointer; padding: 8px 10px; border-radius: 999px; color: inherit; white-space: nowrap; }
.yp-bar a:hover, .yp-bar button:hover { background: rgba(244, 239, 233, .12); }
.yp-bar a[aria-current="page"] { background: #f4efe9; color: #140507; }
.yp-bar a:focus-visible, .yp-bar button:focus-visible { outline: 2px solid #c19a6b; outline-offset: 1px; }
.yp-bar .yp-all { padding-inline: 12px; border-inline-end: 1px solid rgba(244, 239, 233, .18); border-radius: 999px 0 0 999px; }
[dir="rtl"] .yp-bar .yp-all { border-radius: 0 999px 999px 0; }
@media (max-width: 420px) { .yp-bar .yp-name { display: none; } }

/* ---------- shared content blocks ---------- */
.y-price { display: inline-flex; gap: .6em; align-items: baseline; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.y-was { opacity: .55; font-size: .86em; }
.y-needed {
  display: block; margin: 0; padding: 12px 14px; border: 1px dashed currentColor; border-radius: 6px;
  font-size: 13px; line-height: 1.6; opacity: .8; max-width: 62ch;
}
.y-needed strong { display: inline-block; margin-inline-end: .5em; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; padding: 2px 6px; border: 1px solid currentColor; border-radius: 3px; }
.y-journey-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 0; }
.y-journey-step { display: grid; gap: 6px; padding: 12px 12px 12px 0; border-top: 1px solid var(--y-line, currentColor); min-width: 0; }
[dir="rtl"] .y-journey-step { padding: 12px 0 12px 12px; }
.y-journey-n { font-size: 11px; letter-spacing: .12em; opacity: .55; font-variant-numeric: tabular-nums; }
.y-journey-label { font-size: 14px; line-height: 1.35; }
.y-journey-label em { font-style: normal; opacity: .6; font-size: 12px; }
.y-journey-exit { margin: 10px 0 0; font-size: 12.5px; opacity: .7; }
.y-journey.is-compact .y-journey-steps { grid-template-columns: 1fr 1fr; }
.y-journey.is-compact .y-journey-step { padding-block: 8px; }

/* ---------- request sheets (dialog) ---------- */
.ys {
  --_bg: var(--ys-bg, #fff); --_fg: var(--ys-fg, #111); --_line: var(--ys-line, rgba(0,0,0,.14));
  --_accent: var(--ys-accent, #111); --_accent-fg: var(--ys-accent-fg, #fff); --_muted: var(--ys-muted, rgba(0,0,0,.6));
  --_field: var(--ys-field, transparent); --_radius: var(--ys-radius, 2px);
  margin: 0; padding: 0; border: 0; max-width: none; max-height: none; width: 100%; height: 100%;
  background: transparent; color: var(--_fg); overflow: hidden;
}
.ys::backdrop { background: rgba(10, 6, 5, .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.ys-panel {
  position: absolute; inset-block: 0; inset-inline-end: 0; width: min(500px, 100%);
  display: flex; flex-direction: column; background: var(--_bg); color: var(--_fg);
  font-family: var(--ys-font, system-ui, sans-serif);
  animation: ys-in .38s cubic-bezier(.2, .7, .1, 1) both;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
}
@keyframes ys-in { from { transform: translateX(var(--_dx, 100%)); } }
[dir="rtl"].ys { --_dx: -100%; }
.ys.is-closing .ys-panel { animation: ys-out .26s ease-in both; }
@keyframes ys-out { to { transform: translateX(var(--_dx, 100%)); } }
@media (max-width: 640px) {
  .ys-panel { inset: auto 0 0 0; width: 100%; max-height: 92%; border-radius: 14px 14px 0 0; animation-name: ys-up; }
  .ys.is-closing .ys-panel { animation-name: ys-down; }
  @keyframes ys-up { from { transform: translateY(100%); } }
  @keyframes ys-down { to { transform: translateY(100%); } }
}
@media (prefers-reduced-motion: reduce) { .ys-panel, .ys.is-closing .ys-panel { animation: none; } }
.ys-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 22px max(20px, env(safe-area-inset-right, 0px)) 16px max(20px, env(safe-area-inset-left, 0px)); border-bottom: 1px solid var(--_line); }
.ys-kicker { margin: 0 0 6px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--_muted); }
.ys-title { margin: 0; font-family: var(--ys-display, inherit); font-weight: var(--ys-display-weight, 500); font-size: 26px; line-height: 1.15; }
.ys-x { all: unset; cursor: pointer; width: 40px; height: 40px; display: grid; place-items: center; font-size: 26px; line-height: 1; border-radius: 50%; flex: none; }
.ys-x:hover { background: color-mix(in srgb, var(--_fg) 8%, transparent); }
.ys-x:focus-visible { outline: 2px solid var(--_accent); }
.ys-body { overflow-y: auto; overscroll-behavior: contain; padding: 18px 20px 28px; flex: 1; }
.ys-form { display: grid; gap: 18px; }
.ys-lede { margin: 0; line-height: 1.6; color: var(--_muted); }
.ys-product { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center; }
.ys-product.is-small { grid-template-columns: 52px 1fr; }
.ys-product img { width: 100%; height: auto; aspect-ratio: 3/4; object-fit: cover; border-radius: 2px; }
.ys-product-name { margin: 0; font-family: var(--ys-display, inherit); font-size: 20px; }
.ys-product-type { margin: 2px 0 6px; font-size: 13px; color: var(--_muted); }
.ys-choices { border: 0; margin: 0; padding: 0; min-width: 0; }
.ys-choices legend, .ys-field label { padding: 0; margin-bottom: 8px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--_muted); }
[lang="ar"] .ys-choices legend, [lang="ar"] .ys-field label, .ys[dir="rtl"] .ys-choices legend, .ys[dir="rtl"] .ys-field label { letter-spacing: 0; text-transform: none; font-size: 13.5px; }
.ys-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ys-chip { position: relative; display: inline-flex; align-items: center; gap: 8px; min-width: 48px; min-height: 44px; padding: 0 14px; justify-content: center; border: 1px solid var(--_line); border-radius: var(--_radius); cursor: pointer; font-size: 14px; }
.ys-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ys-chip:has(input:checked) { border-color: var(--_accent); background: var(--_accent); color: var(--_accent-fg); }
.ys-chip:has(input:focus-visible) { outline: 2px solid var(--_accent); outline-offset: 2px; }
.ys-swatch { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(127,127,127,.5); }
.ys-field { display: grid; min-width: 0; }
.ys-field input, .ys-field textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; font: inherit; font-size: 16px; color: var(--_fg);
  background: var(--_field); border: 1px solid var(--_line); border-radius: var(--_radius);
}
.ys-field textarea { resize: vertical; min-height: 110px; line-height: 1.55; border-radius: var(--ys-box-radius, 4px); }
.ys-field input:focus, .ys-field textarea:focus { outline: 2px solid var(--_accent); outline-offset: 0; border-color: transparent; }
.ys-field input[aria-invalid="true"] { border-color: #b4232e; }
.ys-req { color: inherit; opacity: .6; }
.ys-err { margin: 6px 0 0; font-size: 13px; color: var(--ys-error, #b4232e); min-height: 0; }
.ys-err:empty { display: none; }
.ys-hint { margin: 6px 0 0; font-size: 12.5px; color: var(--_muted); }
.ys-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 460px) { .ys-row { grid-template-columns: 1fr; } }
.ys-qty .ys-stepper { display: inline-grid; grid-template-columns: 44px 64px 44px; border: 1px solid var(--_line); border-radius: var(--_radius); width: max-content; }
.ys-stepper button { all: unset; cursor: pointer; display: grid; place-items: center; height: 44px; font-size: 18px; }
.ys-stepper button:focus-visible { outline: 2px solid var(--_accent); }
.ys-stepper input { border: 0 !important; border-inline: 1px solid var(--_line) !important; text-align: center; border-radius: 0 !important; min-height: 44px; padding: 0; -moz-appearance: textfield; appearance: textfield; }
.ys-stepper input::-webkit-inner-spin-button, .ys-stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.ys-link { all: unset; cursor: pointer; justify-self: start; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; color: var(--_fg); }
.ys-link:focus-visible { outline: 2px solid var(--_accent); outline-offset: 2px; }
.ys-summary { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--_line); border-radius: var(--ys-box-radius, 4px); }
.ys-summary p { margin: 0; display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.ys-summary span { color: var(--_muted); }
.ys-note { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--_muted); }
.ys-summary .ys-note { display: block; }
.ys-next summary, .ys-payload summary { cursor: pointer; font-size: 14px; padding: 6px 0; }
.ys-next .y-journey { margin-top: 10px; --y-line: var(--_line); }
.ys-btn {
  all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 22px; background: var(--_accent); color: var(--_accent-fg); border: 1px solid var(--_accent);
  border-radius: var(--_radius); font-size: 15px; letter-spacing: .04em; text-align: center; text-decoration: none;
}
.ys-btn:hover { filter: brightness(1.08); }
.ys-btn:focus-visible { outline: 2px solid var(--_accent); outline-offset: 3px; }
.ys-btn.is-ghost { background: transparent; color: var(--_fg); border-color: var(--_line); }
.ys-submit { width: 100%; }
.ys-actions { display: grid; gap: 10px; }
.ys-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.ys-thumbs figure { position: relative; margin: 0; width: 64px; height: 64px; }
.ys-thumbs img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.ys-thumbs button { all: unset; cursor: pointer; position: absolute; top: -6px; inset-inline-end: -6px; width: 22px; height: 22px; border-radius: 50%; background: var(--_fg); color: var(--_bg); display: grid; place-items: center; font-size: 14px; }
.ys-done { display: grid; gap: 14px; text-align: start; outline: none; }
.ys-done-mark { margin: 0; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--_accent); font-size: 20px; }
.ys-done-title { margin: 0; font-family: var(--ys-display, inherit); font-size: 24px; font-weight: var(--ys-display-weight, 500); }
.ys-preview-flag { margin: 0; padding: 12px 14px; border: 1px dashed var(--_line); border-radius: var(--ys-box-radius, 4px); font-size: 13.5px; line-height: 1.6; }
.ys-preview-flag strong { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; border: 1px solid currentColor; padding: 2px 6px; border-radius: 3px; margin-inline-end: 6px; }
.ys-ref { margin: 0; font-size: 14px; }
.ys-payload pre { margin: 8px 0 0; padding: 12px; max-height: 260px; overflow: auto; font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: color-mix(in srgb, var(--_fg) 6%, transparent); border-radius: 4px; white-space: pre; text-align: left; }

/* sheet on phones: page locked behind it, send button always within reach */
html.ys-lock, html.ys-lock body { overflow: hidden; }
@media (max-width: 640px) {
  .ys-head { padding-top: 26px; touch-action: none; }
  .ys-submit { position: sticky; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 2; box-shadow: 0 -14px 24px 6px var(--_bg); }
}

/* ---------- shopping bag (cart.js) ---------- */
.yb-lines { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 0; }
.yb-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--_line); }
.yb-line img { width: 64px; height: 84px; object-fit: cover; border-radius: var(--ys-box-radius, 4px); }
.yb-line-name { margin: 0; font-family: var(--ys-display, inherit); font-size: 19px; line-height: 1.2; }
.yb-line-meta { margin: 4px 0 8px; font-size: 13.5px; color: var(--_muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.yb-line-meta i { width: 11px; height: 11px; border-radius: 50%; box-shadow: 0 0 0 1px var(--_line); display: inline-block; }
.yb-line-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.yb-line-price { font-variant-numeric: tabular-nums; font-size: 15px; }
.ys-stepper.is-small { display: inline-flex; align-items: center; border: 1px solid var(--_line); border-radius: 999px; }
.ys-stepper.is-small button { all: unset; cursor: pointer; width: 40px; height: 40px; display: grid; place-items: center; font-size: 18px; border-radius: 50%; }
.ys-stepper.is-small button:disabled { opacity: .3; cursor: default; }
.ys-stepper.is-small button:focus-visible { outline: 2px solid var(--_accent); }
.ys-stepper.is-small output { min-width: 26px; text-align: center; font-variant-numeric: tabular-nums; }
.yb-rm { all: unset; cursor: pointer; width: 40px; height: 40px; display: grid; place-items: center; font-size: 22px; border-radius: 50%; color: var(--_muted); margin-top: -8px; }
.yb-rm:hover { color: var(--_fg); background: color-mix(in srgb, var(--_fg) 7%, transparent); }
.yb-rm:focus-visible { outline: 2px solid var(--_accent); }
.yb-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0 4px; font-size: 15px; }
.yb-total b { font-size: 22px; font-variant-numeric: tabular-nums; }
.yb-empty { display: grid; gap: 12px; padding: 24px 0; text-align: center; justify-items: center; }
.yb-empty p { margin: 0; color: var(--_muted); max-width: 34ch; line-height: 1.7; }
.yb-empty .yb-empty-title { font-family: var(--ys-display, inherit); font-size: 26px; color: var(--_fg); }
.yb-add-actions { grid-template-columns: 1fr; }
.yb-toast {
  position: fixed; z-index: 260; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 24px); opacity: 0;
  display: flex; align-items: center; gap: 14px; width: max-content; max-width: calc(100vw - 32px); padding: 10px 10px 10px 18px; border-radius: 999px;
  background: var(--ys-fg, #111); color: var(--ys-bg, #fff); font: 500 14px/1.3 var(--ys-font, system-ui, sans-serif);
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .45); transition: opacity .35s ease, transform .35s ease;
}
[dir="rtl"] .yb-toast { padding: 10px 18px 10px 10px; }
.yb-toast span { flex: 1; min-width: 0; }
.yb-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.yb-toast button { all: unset; cursor: pointer; padding: 9px 14px; border-radius: 999px; background: var(--ys-bg, #fff); color: var(--ys-fg, #111); white-space: nowrap; }
.yb-toast button:focus-visible { outline: 2px solid var(--ys-bg, #fff); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .yb-toast { transition: none; } }
