:root {
  --primary: #F5B800;
  --bg: #FFF8E7;
  --text: #3B2A14;
  --accent: #EE6F6A; /* the coral of the logo's Arabic name */
  /* deep honey: dark enough for text on the cream background (≥4.5:1) */
  --primary-deep: color-mix(in srgb, var(--primary) 48%, #2a1a00);
  --primary-soft: color-mix(in srgb, var(--primary) 22%, var(--bg));
  --card: color-mix(in srgb, #fff 70%, var(--bg));
  --muted: color-mix(in srgb, var(--text) 70%, var(--bg));
  --line: color-mix(in srgb, var(--text) 14%, var(--bg));
  --wa: #11793f;
  --font: "Cairo";
  --radius: 18px;
  --shadow-soft: 0 10px 28px -14px color-mix(in srgb, var(--text) 55%, transparent);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}
[hidden] { display: none !important; }
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scrollbar-color: color-mix(in srgb, var(--primary) 70%, var(--text)) var(--bg); accent-color: var(--primary-deep); }
/* keep section titles visible below the sticky header when jumping to them */
section, footer { scroll-margin-top: 80px; }
body {
  font-family: var(--font), system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  caret-color: var(--primary-deep);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  /* iPhone notch/camera in landscape */
  padding-inline: env(safe-area-inset-left) env(safe-area-inset-right);
}
::selection { background: color-mix(in srgb, var(--primary) 55%, var(--bg)); color: #2a1a00; }
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 4px; }
:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; border-radius: 6px; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.skip {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 30;
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

/* header */
.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px max(16px, 4vw);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-block-end: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; font-size: 1.25rem; min-width: 0; }
.brand img { height: 46px; width: auto; }
.brand-tag {
  font-size: .9rem; font-weight: 600; color: var(--muted);
  padding-inline-start: 14px; border-inline-start: 1px solid var(--line);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lang {
  font: inherit; font-weight: 600; cursor: pointer; flex: none;
  border: 1.5px solid var(--text); background: transparent; color: var(--text);
  padding: 6px 18px; border-radius: 999px; min-height: 44px;
  transition: background .2s, color .2s;
}
@media (hover: hover) { .lang:hover { background: var(--text); color: var(--bg); } }

/* hero */
.hero {
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(28px, 5vw, 64px);
  max-width: 1160px; margin: 0 auto; padding: clamp(32px, 7vw, 88px) max(16px, 4vw);
}
.hero h1 { font-size: clamp(2rem, 5.2vw, 3.6rem); line-height: 1.25; font-weight: 800; margin-block-end: 18px; text-wrap: balance; letter-spacing: -0.01em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; margin-block-end: 30px; text-wrap: pretty; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  background: var(--primary); color: #2a1a00;
  padding: 12px 30px; border-radius: 999px; border: 0; min-height: 50px;
  box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--primary-deep) 80%, transparent);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background .2s;
}
/* hover effects only on devices with a real mouse; on iPhone a tap would leave them stuck */
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -10px color-mix(in srgb, var(--primary-deep) 85%, transparent); }
  .card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
  .card:hover .pic img { transform: scale(1.04); }
}
.btn:active { transform: translateY(0); box-shadow: 0 4px 10px -6px var(--primary-deep); }

.hero-art {
  aspect-ratio: 1; border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%;
  background-color: var(--primary-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 66L0 50V16L28 0l28 16v34zM28 100L0 84V50' fill='none' stroke='%23F5B800' stroke-opacity='.55' stroke-width='2.5'/%3E%3C/svg%3E");
  background-size: 56px 100px;
  background-position: center;
  background-repeat: repeat;
  overflow: hidden;
  box-shadow: 0 30px 60px -36px color-mix(in srgb, var(--text) 60%, transparent);
}
.hero-art.has-img { background-image: none; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }

/* products */
.products, .about { max-width: 1160px; margin: 0 auto; padding: 24px max(16px, 4vw) 56px; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 800; line-height: 1.3; margin-block-end: 18px; text-wrap: balance; }
.search { position: relative; max-width: 460px; margin-block-end: 16px; }
.search .icon { position: absolute; inset-inline-start: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input {
  font: inherit; font-size: 16px; /* 16px+ so iPhone Safari doesn't zoom in */
  width: 100%; min-height: 50px; padding: 10px 18px; padding-inline-start: 48px;
  border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); color: var(--text);
  -webkit-appearance: none; appearance: none; transition: border-color .2s, box-shadow .2s;
}
.search input::placeholder { color: var(--muted); opacity: 1; }
.search input:focus { outline: none; border-color: var(--primary-deep); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 30%, transparent); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-block-end: 28px; }
.chip {
  font: inherit; font-weight: 600; cursor: pointer; min-height: 44px; white-space: nowrap;
  padding: 6px 20px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--card); color: var(--text);
  transition: background .2s, border-color .2s;
}
.chip:hover { border-color: var(--primary-deep); }
.chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary-deep); color: #2a1a00; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.card .pic { aspect-ratio: 1; background: var(--primary-soft); position: relative; overflow: hidden; }
/* Her photos carry the logo printed at the top: anchor the crop to the bottom so it stays out of the frame. */
.card .pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; transition: transform .6s var(--ease-out); }
.card .pic.ph { display: grid; place-items: center; }
.card .pic.ph svg { width: 38%; opacity: .6; }
.card .badge {
  position: absolute; top: 10px; inset-inline-start: 10px;
  background: var(--accent); color: #2a1a00; font-weight: 800; font-size: .82rem;
  padding: 3px 12px; border-radius: 999px;
  box-shadow: 0 4px 12px -4px color-mix(in srgb, var(--accent) 70%, #000);
}
.card .body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { font-size: 1.08rem; font-weight: 700; line-height: 1.45; text-wrap: balance; }
.card .desc { color: var(--muted); font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .price { font-weight: 800; color: var(--primary-deep); margin-block-start: auto; padding-block-start: 6px; font-variant-numeric: tabular-nums; }
.card .price.ask { font-weight: 600; color: var(--muted); font-size: .9rem; }
.card .order {
  margin-block-start: 10px; text-align: center; text-decoration: none; font-weight: 700;
  background: var(--wa); color: #fff; padding: 10px 14px; border-radius: 12px; min-height: 46px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: filter .2s, transform .2s var(--ease-out);
}
.card .order:hover { filter: brightness(1.12); }
.card .order:active { transform: scale(.98); }
.empty { color: var(--muted); padding: 24px 0; }

/* about, delivery, faq + footer */
.about { background: var(--primary-soft); border-radius: var(--radius); margin-block-end: 48px; padding-block: 40px; max-width: calc(1160px - 2 * max(16px, 4vw)); }
.about p { max-width: 46em; font-size: 1.1rem; white-space: pre-line; }
.faq { max-width: 1160px; margin: 0 auto; padding: 0 max(16px, 4vw) 48px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-block-end: 10px; max-width: 820px; }
.faq summary {
  cursor: pointer; font-weight: 700; font-size: 1.05rem; padding: 14px 18px; min-height: 52px;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; font-weight: 400; color: var(--primary-deep); transition: transform .25s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 18px 16px; color: var(--muted); white-space: pre-line; max-width: 50em; }

.foot { background: var(--text); color: var(--bg); padding: 52px max(16px, 4vw) 32px; text-align: center; }
.foot h2 { margin-block-end: 18px; }
.contacts { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 12px; margin-block-end: 28px; }
.contacts a, .contacts .plain {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--bg) 22%, transparent);
  color: var(--primary); font-weight: 600; text-decoration: none; transition: background .2s, border-color .2s;
}
.contacts a:hover { background: color-mix(in srgb, var(--bg) 10%, transparent); border-color: var(--primary); }
.contacts .plain { color: var(--bg); }
.copy { font-size: .9rem; opacity: .75; }

/* floating WhatsApp button (phones only) */
.fab {
  position: fixed; z-index: 20;
  /* clear of the iPhone home bar */
  bottom: calc(16px + env(safe-area-inset-bottom));
  inset-inline-end: calc(16px + env(safe-area-inset-right));
  display: none; align-items: center; gap: 8px;
  background: var(--wa); color: #fff; text-decoration: none; font-weight: 700;
  padding: 12px 18px; min-height: 52px; border-radius: 999px;
  box-shadow: 0 12px 28px -10px color-mix(in srgb, var(--wa) 80%, #000);
}

@media (max-width: 900px) {
  .brand-tag { display: none; }
}
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-block-start: 24px; }
  .hero-art { order: -1; max-width: 300px; margin-inline: auto; width: 70%; }
  .about { margin-inline: max(16px, 4vw); }
  /* one swipeable row of categories instead of three wrapped rows */
  .chips {
    flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
    margin-inline: calc(-1 * max(16px, 4vw)); padding-inline: max(16px, 4vw); padding-block-end: 4px;
  }
  .chips::-webkit-scrollbar { display: none; }
  .chip { scroll-snap-align: start; }
  /* two products per row so the catalogue doesn't take endless scrolling */
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card { border-radius: 14px; }
  .card .body { padding: 10px 10px 12px; gap: 4px; }
  .card h3 { font-size: .95rem; }
  .card .desc { font-size: .84rem; -webkit-line-clamp: 2; }
  .card .price, .card .price.ask { font-size: .84rem; }
  .card .order { font-size: .84rem; padding: 8px 6px; gap: 6px; min-height: 44px; }
  .card .badge { font-size: .8rem; padding: 2px 10px; top: 8px; inset-inline-start: 8px; }
  .fab { display: inline-flex; }
  .foot { padding-block-end: calc(96px + env(safe-area-inset-bottom)); } /* room for the floating button */
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
