/* ============================================
   SIPO API component styles
   Persian Charcoal Kitchen — black / red / Cinzel
   ============================================
   Covers only the elements injected or filled by
   the api/*.js modules. Page chrome lives in the
   <style> block of each HTML page.
   ============================================ */

/* ---------- status strip ---------- */

.status-strip {
  /* Stays pinned while the page scrolls. The header sticks directly
     beneath it using --strip-height, which statusManager.js measures
     and publishes on the root element. */
  position: sticky;
  top: 0;
  z-index: 90;
  background: #0b0b0b;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  font-family: "Cinzel", "Trajan Pro", "Times New Roman", serif;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .8);
}

.status-strip-inner {
  max-width: 1200px;
  margin-inline: auto;
  padding: 9px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
}

.status-strip-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .4);
}

.status-strip.open   { background: #071a0d; color: #d6f5df; }
.status-strip.closed { background: #1a0606; color: #f8dede; }
.status-strip.error  { background: #14100a; color: #f0e2c4; }

.status-strip.open   .status-strip-dot { background: #22c55e; box-shadow: 0 0 10px rgba(34, 197, 94, .8); }
.status-strip.closed .status-strip-dot { background: #ef4444; box-shadow: 0 0 10px rgba(239, 68, 68, .7); }
.status-strip.error  .status-strip-dot { background: #c9a227; }

.status-strip .countdown-timer {
  font-variant-numeric: tabular-nums;
  color: #fff;
}

/* ---------- offer ribbon (inline, never a pop-up) ---------- */

.offer-ribbon {
  position: relative;
  z-index: 50;            /* below .site-header so it scrolls underneath */
  background: linear-gradient(90deg, #2a0b0b, #4a1010);
  border-bottom: 1px solid rgba(201, 162, 39, .35);
}

.offer-ribbon-inner {
  max-width: 1200px;
  margin-inline: auto;
  padding: 10px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.offer-ribbon-img {
  height: 30px;
  width: auto;
  border-radius: 4px;
}

.offer-ribbon-text {
  font-family: "Cinzel", "Trajan Pro", serif;
  font-size: 13px;
  letter-spacing: .8px;
  color: #f3e7c9;
}

.offer-ribbon-cta {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 16px;
  border-radius: 15px;
  background: #d32525;
  color: #fff;
  font-family: "Cinzel", "Trajan Pro", serif;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
}

.offer-ribbon-cta:hover { background: #a81a1a; }

/* ---------- hours list (footer) ---------- */

.api-hours-list,
#footer-hours {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}

.api-hours-list li,
#footer-hours li {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-family: "Cinzel", "Trajan Pro", serif;
  font-size: 13px;
  color: rgba(255, 255, 255, .72);
}

.api-hours-list li.today,
#footer-hours li.today {
  color: #fff;
}

.api-hours-list li.today .day,
#footer-hours li.today .day {
  color: #ff2d2d;
}

.api-hours-list .closed-day,
#footer-hours .closed-day,
.api-hours-table .closed-day {
  color: rgba(255, 120, 120, .8);
}

/* ---------- hours table (contact page) ---------- */

.api-hours-table,
#contact-hours-table {
  display: grid;
  gap: 0;
  width: 100%;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 13px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  font-family: "Cinzel", "Trajan Pro", serif;
  font-size: 15px;
  color: rgba(255, 255, 255, .75);
  text-align: left;
}

.hours-row:last-child { border-bottom: 0; }

.hours-row .day { letter-spacing: .8px; }

.hours-row.today {
  color: #fff;
  background: rgba(211, 37, 37, .1);
  padding-inline: 12px;
  border-radius: 4px;
}

.hours-row.today .day { color: #ff2d2d; font-weight: 600; }

.hours-line {
  display: block;
  font-family: "Cinzel", "Trajan Pro", serif;
  font-size: 15px;
}

/* ---------- menu page: category tabs ---------- */

.menu-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
}

.menu-tab {
  padding: 9px 18px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 20px;
  background: transparent;
  color: rgba(255, 255, 255, .72);
  font-family: "Cinzel", "Trajan Pro", serif;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.menu-tab:hover { color: #fff; border-color: rgba(255, 255, 255, .45); }

.menu-tab.active {
  background: #d32525;
  border-color: #d32525;
  color: #fff;
}

/* ---------- menu page: item cards ---------- */

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 26px;
}

.menu-card {
  display: grid;
  grid-template-rows: auto 1fr;
  background: #0b0b0b;
  border: 1px solid rgba(255, 255, 255, .08);
  overflow: hidden;
}

.menu-card-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #111;
}

.menu-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}

.menu-card:hover .menu-card-img img { transform: scale(1.06); }

.menu-card-ph {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(211, 37, 37, .12), rgba(201, 162, 39, .08));
  color: #c9a227;
}

.menu-card-ph svg { width: 54px; height: 54px; opacity: .5; }

.menu-card-body {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 8px;
  padding: 16px 16px 18px;
}

.menu-card-body h3 {
  margin: 0;
  font-family: "Cinzel", "Trajan Pro", serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: #fff;
}

.menu-card-body p {
  margin: 0;
  font-size: 13.5px;
  font-weight: 300;
  line-height: 1.55;
  color: rgba(255, 255, 255, .62);
}

.menu-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.menu-card-footer .price {
  font-family: "Cinzel", "Trajan Pro", serif;
  font-size: 15px;
  font-weight: 600;
  color: #c9a227;
  white-space: nowrap;
}

.menu-card-footer .order-link {
  font-family: "Cinzel", "Trajan Pro", serif;
  font-size: 11px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: #ff4a4a;
  text-decoration: none;
  white-space: nowrap;
}

.menu-card-footer .order-link:hover { color: #fff; }

.menu-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: rgba(255, 255, 255, .6);
}

.menu-empty a { color: #ff4a4a; }

/* ---------- homepage cards injected into #menuGrid ---------- */

#menuGrid .card-media { position: relative; }

#menuGrid .card-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(0, 0, 0, .78);
  border: 1px solid rgba(201, 162, 39, .5);
  font-family: "Cinzel", "Trajan Pro", serif;
  font-size: 9.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #f3e7c9;
}

#menuGrid .card-price {
  font-family: "Cinzel", "Trajan Pro", serif;
  font-size: 15px;
  font-weight: 600;
  color: #c9a227;
}

/* ---------- loading skeleton ---------- */

.api-loading {
  text-align: center;
  padding: 2.5rem 1rem;
  font-family: "Cinzel", "Trajan Pro", serif;
  font-size: 13px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
}

/* ---------- ordering disabled ---------- */

body.ordering-disabled .order-link,
body.ordering-disabled [data-order-url] {
  opacity: .45;
  pointer-events: none;
}

/* ---------- responsive ---------- */

@media (max-width: 760px) {
  /* 23 categories wrap into a wall of pills on a phone — scroll them
     sideways instead so the dishes stay above the fold. */
  .menu-tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-inline: -18px;
    padding: 2px 18px 10px;
    margin-bottom: 28px;
  }
  .menu-tabs::-webkit-scrollbar { display: none; }
  .menu-tab { flex: 0 0 auto; scroll-snap-align: start; }

  .status-strip-inner { padding: 8px 16px; font-size: 11px; }
  .status-strip { font-size: 11px; letter-spacing: .8px; }
  .offer-ribbon-inner { padding: 9px 16px; gap: 9px; }
  .menu-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px; }
  .hours-row { font-size: 14px; padding: 11px 4px; }
}

@media (max-width: 420px) {
  .menu-grid { grid-template-columns: 1fr; }
}
