:root {
  --cream: #f3f8f7;
  --blush: #d7ecea;
  --rose: #1a6b73;
  --rose-deep: #0d3d44;
  --choc: #0d3d44;
  --gold: #c9a227;
  --text: #14363a;
  --muted: #5f7a7d;
  --line: #d5e4e2;
  --white: #fffdfb;
  --shadow: 0 16px 40px rgba(13, 61, 68, 0.14);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Cairo", sans-serif; background: var(--cream); color: var(--text);
  min-height: 100vh; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font-family: inherit; font-size: 16px; }
img { display: block; max-width: 100%; }
.container { width: min(1180px, calc(100% - 24px)); margin-inline: auto; }

header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(243, 248, 247, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; min-width: max-content; }
.logo-img { width: 48px; height: 48px; border-radius: 14px; object-fit: cover; cursor: zoom-in; }
.brand h1 { font-size: 18px; line-height: 1.1; }
.brand small { color: var(--muted); }
.search {
  display: flex; align-items: center; flex: 1; min-width: 180px; max-width: 360px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px;
}
.search input { border: 0; outline: 0; width: 100%; background: transparent; color: var(--text); }
.links { display: flex; flex-wrap: nowrap; gap: 6px; font-weight: 700; overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
.links a {
  padding: 7px 12px; border-radius: 999px; color: var(--muted);
  border: 1px solid transparent; white-space: nowrap;
}
.links a.active, .links a:hover {
  background: var(--blush); color: var(--rose-deep); border-color: #b7d8d5;
}
.icon-btn, .primary, .ghost, .chip, .fav-btn, .size-btn {
  cursor: pointer; border: 0;
}
.icon-btn {
  position: relative; background: var(--choc); color: #fff;
  border-radius: 999px; padding: 9px 16px; font-weight: 700;
}
.badge {
  position: absolute; top: -8px; left: -8px; min-width: 20px; height: 20px;
  border-radius: 999px; background: var(--gold); color: var(--choc);
  font-size: 12px; font-weight: 800; display: grid; place-items: center; padding: 0 5px;
}
.head-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.hero { padding: 28px 0 18px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 22px; align-items: center; }
.kicker { color: var(--rose); font-weight: 800; margin-bottom: 6px; }
.hero h2, .page-head h2 {
  font-family: "Playfair Display", "Cairo", serif;
  font-size: clamp(28px, 4.5vw, 48px); line-height: 1.25; margin-bottom: 10px;
}
.hero p, .page-head p { color: var(--muted); margin-bottom: 16px; }
.page-head { padding: 28px 0 18px; }
.primary {
  background: linear-gradient(135deg, var(--rose), var(--rose-deep));
  color: #fff; border-radius: 999px; padding: 11px 20px; font-weight: 800; display: inline-block;
}
.ghost {
  background: #fff; color: var(--choc); border: 1px solid var(--line);
  border-radius: 999px; padding: 10px 16px; font-weight: 700;
}
.hero-card { background: #fff; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.hero-card img { width: 100%; height: 220px; object-fit: cover; cursor: zoom-in; }
.hero-card .meta { padding: 14px 16px; display: flex; justify-content: space-between; gap: 8px; }

.slider-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 0 12px; }
.slider-wrap { overflow: hidden; padding: 4px 0 20px; }
.slider {
  display: flex; flex-wrap: nowrap; gap: 14px; width: max-content;
  direction: ltr;
  animation: latest-marquee 48s linear infinite;
}
.slider-wrap:hover .slider { animation-play-state: paused; }
@keyframes latest-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.slider .card { width: 220px; min-width: 220px; flex: 0 0 220px; }
.slider .card:hover { transform: none; }
.menu-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px; padding: 8px 0 40px;
}
.menu-card {
  background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  display: flex; flex-direction: column;
}
.menu-card img { width: 100%; height: 150px; object-fit: cover; }
.menu-card div { padding: 14px; }
.menu-card h3 { margin-bottom: 6px; }
.menu-card p { color: var(--muted); font-size: 14px; }

.toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip {
  background: #fff; color: var(--muted); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 14px; font-weight: 700;
}
.chip.active { background: var(--blush); color: var(--rose-deep); border-color: #b7d8d5; }
.group-title { margin: 8px 0 12px; font-size: 22px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; padding-bottom: 40px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; position: relative; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); transition: .2s ease; }
.card img { width: 100%; height: 168px; object-fit: cover; cursor: zoom-in; }
.card-body { padding: 13px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.cat-label { color: var(--gold); font-size: 12px; font-weight: 800; }
.price { color: var(--rose-deep); font-weight: 800; font-size: 18px; }
.sizes { display: flex; flex-wrap: wrap; gap: 6px; }
.size-btn {
  background: #eef6f5; border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 10px; font-size: 12px; font-weight: 700; color: var(--muted); cursor: pointer;
}
.size-btn.active { background: var(--choc); color: #fff; border-color: var(--choc); }
.add-btn {
  margin-top: auto; width: 100%;
  background: linear-gradient(135deg, var(--rose), var(--rose-deep));
  color: #fff; border: 0; border-radius: 999px; padding: 10px 12px;
  font-weight: 800; cursor: pointer;
}
.add-btn.added { background: #1f8a4c; }

.flavor-block { display: flex; flex-direction: column; gap: 6px; }
.flavor-note {
  font-size: 12px; font-weight: 800; color: var(--rose-deep);
  background: #fff8e1; border: 1px dashed #f0dca0; border-radius: 10px; padding: 5px 8px;
}
.flavors { display: flex; flex-wrap: wrap; gap: 6px; }
.flavor-btn {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 10px; font-size: 12px; font-weight: 700; color: var(--muted); cursor: pointer;
}
.flavor-btn.active { background: var(--rose-deep); color: #fff; border-color: var(--rose-deep); }
.flavor-warn { color: #b3261e; font-size: 12px; font-weight: 800; }
.flavors.shake { animation: flavor-shake .4s; }
@keyframes flavor-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}
.fav-btn {
  position: absolute; top: 10px; left: 10px;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--muted); font-size: 18px; font-weight: 800;
}
.fav-btn.on { color: #c0392b; background: #fff; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-bottom: 50px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px; }
.panel h3 { margin-bottom: 10px; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.social {
  background: var(--choc); color: #fff; border-radius: 999px;
  padding: 9px 14px; font-weight: 700; display: inline-flex;
}
.social.alt { background: #fff; color: var(--choc); border: 1px solid var(--line); }
.socials-brand { gap: 10px; }
.social.brand { gap: 8px; background: #fff; color: #fff; padding: 8px 16px 8px 12px; border: none; }
.social.brand svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.social.facebook { background: #1877f2; }
.social.instagram { background: linear-gradient(45deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888); }
.social.tiktok { background: #010101; }
.social.brand:hover { filter: brightness(1.08); }

.cart-layout { display: grid; grid-template-columns: 1.25fr .85fr; gap: 16px; padding-bottom: 50px; align-items: start; }
.cart-left { display: flex; flex-direction: column; gap: 14px; }
.cart-list { display: flex; flex-direction: column; gap: 12px; }
.cart-row {
  display: grid; grid-template-columns: 84px 1fr auto; gap: 12px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 12px;
}
.cart-row img { width: 84px; height: 84px; object-fit: cover; border-radius: 14px; cursor: zoom-in; }
.cart-info h3 { font-size: 15px; margin-bottom: 4px; }
.cart-info p { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.qty { display: flex; align-items: center; gap: 8px; }
.qty span { min-width: 22px; text-align: center; font-weight: 800; }
.qty-btn {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line);
  background: #eef6f5; color: var(--choc); font-weight: 800; cursor: pointer;
}
.cart-line { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.cart-line strong { color: var(--rose-deep); white-space: nowrap; }
.remove-btn {
  background: #fff; border: 1px solid var(--line); color: #b3261e;
  border-radius: 999px; padding: 5px 12px; font-weight: 700; cursor: pointer;
}
.cart-summary { position: sticky; top: 90px; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 8px; color: var(--muted); }
.summary-row.total { color: var(--text); font-weight: 800; font-size: 20px; margin-top: 10px; }
.summary-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.summary-actions .ghost { text-align: center; }
.notice {
  background: #fff8e1; border: 1px solid #f0dca0; color: #7a5c00;
  border-radius: 14px; padding: 10px 12px; font-size: 13px; line-height: 1.8; margin-bottom: 10px;
}
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form .row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-size: 13px; font-weight: 700; color: var(--muted); }
.field .req { color: #b3261e; }
.form input:invalid:not(:placeholder-shown) { border-color: #e0a3a0; }
.done-msg { display: none; color: #1f8a4c; font-weight: 800; }
.hours-banner {
  background: #fff3f0; border: 1px solid #f0b3a8; color: #8a1f16;
  border-radius: 16px; padding: 12px 14px; font-weight: 800; margin-bottom: 12px;
}
.loc-row { display: flex; gap: 8px; align-items: stretch; }
.loc-row input { flex: 1; }
.hours-locked .cart-row .qty-btn,
.hours-locked .cart-row .remove-btn { pointer-events: none; opacity: .45; }
.hours { color: var(--muted); margin: 8px 0; }
.form { display: flex; flex-direction: column; gap: 10px; }
.form input, .form textarea {
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff; color: var(--text);
}
.map-layout { display: grid; grid-template-columns: 320px 1fr; gap: 14px; padding-bottom: 50px; min-height: 560px; }
.branch-list { display: flex; flex-direction: column; gap: 8px; overflow: auto; max-height: 560px; }
.branch {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px; cursor: pointer; text-align: right;
}
.branch.active { border-color: var(--rose); background: #eef7f6; }
.branch h3 { margin-bottom: 4px; }
.branch p { color: var(--muted); font-size: 13px; margin-bottom: 4px; }
.map-frame {
  border: 1px solid var(--line); border-radius: 20px; overflow: hidden; min-height: 560px; background: #fff;
}
.map-frame iframe { width: 100%; height: 100%; min-height: 560px; border: 0; }

.lightbox {
  display: none; position: fixed; inset: 0; z-index: 90;
  background: rgba(8, 30, 34, 0.9);
  align-items: center; justify-content: center; padding: 20px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(920px, 92vw); max-height: 86vh; object-fit: contain; border-radius: 16px; }
.lightbox-close {
  position: absolute; top: 16px; left: 16px;
  background: #fff; color: var(--choc); border: 0; border-radius: 999px;
  padding: 8px 14px; font-weight: 800; cursor: pointer;
}
.empty { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; margin-bottom: 40px; }
footer { padding: 24px 0 90px; color: var(--muted); text-align: center; }

.mobile-nav {
  display: none; position: fixed; bottom: 0; inset-inline: 0; z-index: 50;
  background: #fff; border-top: 1px solid var(--line);
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  justify-content: space-around; gap: 4px;
}
.mobile-nav a { font-size: 12px; font-weight: 800; color: var(--muted); text-align: center; padding: 6px 4px; }
.mobile-nav a.active { color: var(--rose-deep); }

@media (max-width: 1100px) {
  .links { order: 4; width: 100%; padding-bottom: 4px; }
  .search { max-width: none; }
}
@media (max-width: 900px) {
  .hero, .contact-grid, .map-layout, .cart-layout { grid-template-columns: 1fr; }
  .mobile-nav { display: flex; }
  .map-frame, .map-frame iframe, .branch-list { min-height: 320px; max-height: none; }
  .brand small { display: none; }
  .cart-summary { position: static; }
}
@media (max-width: 520px) {
  .icon-btn { padding: 8px 12px; font-size: 13px; }
  .logo-img { width: 42px; height: 42px; }
  .form .row2, .form .row3 { grid-template-columns: 1fr; }
  .cart-row { grid-template-columns: 72px 1fr; }
  .cart-row img { width: 72px; height: 72px; }
  .cart-line { grid-column: 2; flex-direction: row; justify-content: space-between; align-items: center; }
}
