/* Shared customer menu styles. Theme files (theme-a/b/c.css) set the look on top of this. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 120px; }
body { margin: 0; font-family: var(--pd-body); color: var(--pd-text); background: var(--pd-bg); line-height: 1.5; }
html[lang="ar"] body { font-family: 'Cairo', system-ui, sans-serif; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--pd-primary); outline-offset: 2px; }

/* Bilingual text: both languages are in the page; the inactive one is hidden. */
html[lang="en"] .l-ar, html[lang="ar"] .l-en { display: none; }

.skip { position: absolute; inset-inline-start: 8px; top: -60px; z-index: 100; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; }
.skip:focus { top: 8px; }

.preview-banner { position: sticky; top: 0; z-index: 60; background: #111; color: #fff; text-align: center; font: 600 13px/1.2 system-ui, sans-serif; padding: 8px; }

/* ===== Header and language toggle ===== */
.site-header__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 50%; }
.brand__name { font-weight: 800; font-size: 1.1rem; }
/* The smile brandmark, tinted with the brand red (digital minimum height 30px per the guidelines). */
.brand__mark { display: block; width: 47px; height: 32px; background: var(--pd-primary); -webkit-mask: url('../brand/smile.png') center / contain no-repeat; mask: url('../brand/smile.png') center / contain no-repeat; }
.lang-toggle { min-height: 44px; padding: 0 16px; border-radius: 999px; font-weight: 700; border: 2px solid currentColor; display: inline-flex; align-items: center; gap: 6px; }

/* ===== Category navigation ===== */
.cat-nav { position: sticky; top: 0; z-index: 40; }
.is-embed .cat-nav, body:has(.preview-banner) .cat-nav { top: 0; }
.cat-nav__scroller { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-block: 10px; }
.cat-nav__scroller::-webkit-scrollbar { display: none; }
.cat-nav__link { flex: none; min-height: 40px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; text-decoration: none; font-weight: 700; white-space: nowrap; }

/* ===== Product bits ===== */
.price { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
/* The riyal symbol takes the colour of the price next to it (red on cream, cream on red) instead of printing black. */
.sar { width: .9em; height: .9em; object-fit: contain; object-position: -999px 0; background: currentColor; -webkit-mask: url('../photos/sar.png') center / contain no-repeat; mask: url('../photos/sar.png') center / contain no-repeat; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: .8rem; }
.kcal { font-weight: 700; white-space: nowrap; display: inline-flex; align-items: center; gap: 2px; }
.allergens { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.allergen { font-size: .72rem; padding: 1px 8px; border-radius: 999px; background: rgba(0,0,0,.06); white-space: nowrap; display: inline-flex; align-items: center; gap: 3px; }
.soldout { display: inline-flex; align-items: center; gap: 3px; font-weight: 800; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; padding: 2px 8px; border-radius: 4px; background: var(--pd-primary); color: var(--pd-bg); }
.is-soldout img { filter: grayscale(.8); opacity: .7; }

/* ===== Footer ===== */
.site-footer { margin-top: 48px; padding: 40px 0 56px; text-align: center; }
.daily { max-width: 720px; margin: 0 auto 28px; }
.daily__title { font-size: 1.25rem; font-weight: 800; margin-bottom: 14px; }
.daily__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.daily__item { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; font-weight: 700; }
.daily__icon { font-size: 1.4rem; }
.reviews { margin: 28px auto 20px; max-width: 1100px; }
.social { display: flex; justify-content: center; gap: 12px; margin-bottom: 12px; }
.social a { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; }
.rights { font-size: .85rem; opacity: .8; }

/* ===== Details sheet ===== */
/* While the details sheet is open the page behind it must not scroll. */
html.sheet-open, html:has(dialog.sheet[open]) { overflow: hidden; }
.sheet { overscroll-behavior: contain; border: 0; padding: 0; width: min(560px, 100vw); max-height: 92vh; border-radius: 20px; background: var(--pd-bg); color: var(--pd-primary); box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.sheet::backdrop { background: rgba(0,0,0,.55); }
.sheet__close { position: absolute; inset-inline-end: 12px; top: 12px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; background: var(--pd-primary); color: var(--pd-bg); box-shadow: 0 2px 8px rgba(0,0,0,.2); display: grid; place-items: center; }
.sheet__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--pd-bg); }
.sheet__body { padding: 20px 22px 26px; }
.sheet__title { font-family: var(--pd-display-en); font-size: 1.6rem; font-weight: 800; line-height: 1.05; text-transform: uppercase; color: var(--pd-primary); padding-inline-end: 40px; }
html[lang="ar"] .sheet__title { font-family: var(--pd-display-ar); text-transform: none; }
.sheet__desc { margin-top: 6px; color: color-mix(in srgb, var(--pd-primary) 80%, #000); }
.sheet__price { margin-top: 12px; font-size: 1.3rem; }
.sheet__crust { font-size: .8em; text-transform: uppercase; opacity: .7; margin-inline-start: 14px; }
.sheet__crust:first-child { margin-inline-start: 0; }
.sheet__h { margin: 18px 0 8px; font-size: .95rem; font-weight: 800; display: flex; align-items: center; gap: 4px; }
.sheet__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.sheet__fact { background: color-mix(in srgb, var(--pd-primary) 8%, var(--pd-bg)); border-radius: 12px; padding: 10px 12px; }
.sheet__fact b { display: flex; align-items: center; gap: 4px; font-size: 1.15rem; color: var(--pd-primary); }
.sheet__table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.sheet__table td { padding: 6px 0; border-bottom: 1px solid color-mix(in srgb, var(--pd-primary) 18%, transparent); }
.sheet__table td:last-child { text-align: end; font-weight: 700; }
.sheet__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sheet__chips > span { display: inline-flex; align-items: center; gap: 4px; background: var(--pd-primary); color: var(--pd-bg); border-radius: 999px; padding: 3px 10px; font-weight: 700; font-size: .85rem; }
@media (max-width: 640px) {
    .sheet { margin: auto 0 0; width: 100vw; max-width: 100vw; border-radius: 20px 20px 0 0; max-height: 88vh; }
}

/* ===== Brand guidelines typography: Extra Bold headlines (Inter Tight / Cairo), Medium body (Inter). ===== */
.f-guidelines { font-weight: 500; }
.f-guidelines .hero__title, .f-guidelines .cat__title, .f-guidelines .item__name, .f-guidelines .band__title, .f-guidelines .dish__name { font-weight: 800; letter-spacing: -.02em; }
html[lang="ar"] .f-guidelines .hero__title, html[lang="ar"] .f-guidelines .cat__title, html[lang="ar"] .f-guidelines .item__name { letter-spacing: 0; }

/* ===== Brand slogan and logo pattern (guidelines 04 | Style elements) ===== */
.slogan { font-family: var(--pd-display-en); font-weight: 800; text-transform: uppercase; letter-spacing: -.02em; line-height: .95; font-size: clamp(2rem, 10vw, 4rem); color: var(--pd-primary); margin: 4px auto 28px; max-width: 9em; }
/* Rows of tilted smiles in brand red on cream, after the pattern on page 21. */
.brand-pattern { position: relative; height: 112px; overflow: hidden; margin: -24px 0 24px; background: var(--pd-bg); }
.brand-pattern::before { content: ""; position: absolute; inset: -60px -40px; background: var(--pd-primary); transform: rotate(-28deg);
    -webkit-mask: url('../brand/smile-pattern.png') 0 0 / 84px 70px repeat; mask: url('../brand/smile-pattern.png') 0 0 / 84px 70px repeat; }
@media print { .brand-pattern, .slogan { display: none !important; } }
