/* ══ RESET ══ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }

:root {
  --orange:   #FF5A00;
  --orange-d: #D94A00;
  --yellow:   #FFB800;
  --green:    #25D366;
  --green-d:  #1EAA52;
  --dark:     #111111;
  --text:     #1C1C1C;
  --sub:      #6B6B6B;
  --line:     #EBEBEB;
  --bg:       #F7F4F0;
  --white:    #FFFFFF;
  --r:        14px;
  --r-sm:     10px;
  --hdr:      58px;
  --cats:     52px;
  --bar:      76px;
  --shadow:   0 2px 16px rgba(0,0,0,.09);
  --shadow-lg:0 6px 32px rgba(0,0,0,.14);
}

body {
  font-family: 'Cairo', sans-serif;
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  padding-bottom: var(--bar);
}

/* ══ HEADER ══ */
.header {
  position: sticky;
  top: 0;
  z-index: 90;
  height: var(--hdr);
  background: var(--white);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  gap: 8px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-flower { font-size: 26px; line-height: 1; }
.logo-img { width: 42px; height: 42px; object-fit: contain; flex-shrink: 0; }
.logo-name {
  display: block;
  font-size: 17px;
  font-weight: 900;
  color: var(--orange);
  line-height: 1.1;
}
.logo-loc {
  display: block;
  font-size: 11px;
  color: var(--sub);
  font-weight: 600;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #EDFBF2;
  border: 1px solid #B6F0CE;
  border-radius: 50px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #15803D;
  flex-shrink: 0;
}
.dot-live {
  width: 8px; height: 8px;
  background: #22C55E;
  border-radius: 50%;
  animation: blink 1.4s infinite;
}
@keyframes blink {
  0%,100% { opacity: 1; }
  50%      { opacity: 0.3; }
}
.status-text { white-space: nowrap; }

.header-call {
  font-size: 22px;
  text-decoration: none;
  flex-shrink: 0;
  padding: 4px;
}

/* ══ HERO ══ */
.hero {
  position: relative;
  height: 58vh;
  min-height: 320px;
  max-height: 500px;
  overflow: hidden;
}
.hero-img-wrap {
  position: absolute;
  inset: 0;
}
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,5,0,.92) 0%,
    rgba(10,5,0,.55) 50%,
    rgba(10,5,0,.2)  100%
  );
}
.hero-body {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 20px;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.28);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 50px;
  width: fit-content;
  margin-bottom: 10px;
  backdrop-filter: blur(8px);
}
.hero-title {
  color: #fff;
  font-size: clamp(32px, 8vw, 52px);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 6px;
}
.hero-title span { color: var(--yellow); }
.hero-sub {
  color: rgba(255,255,255,.75);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 18px;
  letter-spacing: .5px;
}
.hero-scroll-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--orange);
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 50px;
  width: fit-content;
  transition: background .2s, transform .15s;
  box-shadow: 0 4px 20px rgba(255,90,0,.5);
}
.hero-scroll-cta:hover { background: var(--orange-d); transform: translateY(-2px); }

/* ══ TICKER ══ */
.ticker {
  background: var(--orange);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  height: 36px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.ticker-track {
  display: flex;
  align-items: center;
  gap: 24px;
  white-space: nowrap;
  animation: ticker 28s linear infinite;
  padding-right: 100%;
}
.ticker-track .sep { opacity: .5; }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ══ CATEGORIES ══ */
.cats {
  position: sticky;
  top: var(--hdr);
  z-index: 80;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  height: var(--cats);
}
.cats-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 0 16px;
  height: 100%;
}
.cats-inner::-webkit-scrollbar { display: none; }

.cat {
  flex-shrink: 0;
  padding: 7px 18px;
  border-radius: 50px;
  border: 1.5px solid var(--line);
  background: transparent;
  font-family: 'Cairo', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--sub);
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.cat.active, .cat:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

/* ══ MENU ══ */
.menu-wrap {
  padding: 0 12px 16px;
}
.menu-section { padding-top: 24px; }
.sec-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.sec-title {
  font-size: 18px;
  font-weight: 900;
  padding-right: 4px;
}
.sec-note {
  font-size: 12px;
  color: var(--orange);
  font-weight: 700;
  background: #FFF3EC;
  border-radius: 50px;
  padding: 2px 10px;
  flex-shrink: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

/* ══ CARD ══ */
.card {
  background: var(--white);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform .2s, box-shadow .2s;
}
.card:active { transform: scale(.98); }
.card.hidden { display: none; }

.card-featured {
  border: 2px solid var(--yellow);
}

.card-soldout {
  opacity: .55;
  pointer-events: none;
}
.card-soldout::after {
  content: 'نفذت';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.45);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 900;
  border-radius: var(--r);
  letter-spacing: .5px;
}

.card-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  background: var(--yellow);
  color: var(--dark);
  font-size: 11px;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 50px;
  line-height: 1.4;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.card-img-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #f0ede8;
}
.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.card:hover .card-img-wrap img { transform: scale(1.04); }

.card-body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  gap: 8px;
}
.card-name {
  font-size: 14px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 2px;
}
.card-desc {
  font-size: 12px;
  color: var(--sub);
  line-height: 1.4;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}
.price {
  font-size: 16px;
  font-weight: 900;
  color: var(--orange);
}
.price small {
  font-size: 11px;
  font-weight: 700;
}

/* ══ QTY CONTROL ══ */
.qc {
  display: flex;
  align-items: center;
  gap: 0;
}

.qb {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: none;
  background: var(--orange);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, transform .1s;
  line-height: 1;
  flex-shrink: 0;
}
.qb:active { transform: scale(.9); }
.qminus { background: #F3F3F3; color: var(--dark); }
.qminus:active { background: #E0E0E0; }

.qn {
  min-width: 28px;
  text-align: center;
  font-size: 15px;
  font-weight: 900;
  color: var(--dark);
}

/* hide minus + count by default, show when active — must come after .qb rules */
.qminus, .qn { display: none; }
.qc.active .qminus,
.qc.active .qn { display: flex; align-items: center; justify-content: center; }

/* ══ HOW TO ORDER ══ */
.how {
  background: var(--white);
  margin: 20px 12px;
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 24px 20px;
}
.how h2 {
  font-size: 16px;
  font-weight: 900;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text);
}
.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
}
.step-icon {
  width: 52px; height: 52px;
  background: #FFF3EC;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.step p {
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  color: var(--text);
}
.step-line {
  flex: 0 0 28px;
  height: 2px;
  background: var(--line);
  margin-top: -20px;
}

/* ══ CONTACT ══ */
.contact {
  margin: 0 12px 20px;
}
.contact-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.ccard {
  background: var(--white);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow);
  padding: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 20px;
}
.ccard > span { flex-shrink: 0; }
.ccard div { display: flex; flex-direction: column; gap: 2px; }
.ccard strong { font-size: 11px; color: var(--sub); font-weight: 700; }
.ccard span, .ccard a {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.ccard a { color: var(--green); }

.map-wrap {
  border-radius: var(--r);
  overflow: hidden;
  height: 200px;
  box-shadow: var(--shadow);
}
.map-wrap iframe { width: 100%; height: 100%; border: none; display: block; }

/* ══ FOOTER ══ */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,.6);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}
.footer-copy { font-size: 12px; opacity: .6; }

/* ══ STICKY ORDER BAR ══ */
.order-bar {
  position: fixed;
  bottom: 0;
  left: 0; right: 0;
  z-index: 100;
  padding: 10px 12px 16px;
  background: var(--white);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 24px rgba(0,0,0,.1);
}

.ob-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  font-size: 14px;
  font-weight: 700;
  color: var(--sub);
}

.ob-btn {
  display: none;
  width: 100%;
  height: 52px;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  gap: 8px;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: background .2s, transform .15s;
}
.ob-btn:active { transform: scale(.99); background: var(--green-d); }
.ob-btn.visible { display: flex; }

.ob-badge {
  background: rgba(0,0,0,.2);
  min-width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  font-weight: 900;
  flex-shrink: 0;
}
.ob-mid {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}
.ob-total {
  font-size: 15px;
  font-weight: 900;
  flex-shrink: 0;
}

/* ══ DESKTOP GRID ══ */
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .menu-wrap { padding: 0 20px 20px; max-width: 900px; margin: 0 auto; }
  .how, .contact { max-width: 900px; margin-inline: auto; }
  .contact-cards { grid-template-columns: repeat(4, 1fr); }
  .map-wrap { height: 260px; }
}

@media (min-width: 1024px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
  .menu-wrap { max-width: 1100px; }
  .how, .contact { max-width: 1100px; }
}
