/* ==========================================================================
   Aurora-4 · finish.css  (loaded LAST — final premium + smoothness layer)
   - Green AVAILABLE badge (and matching red UNAVAILABLE)
   - Smoother cards, buttons, tabs, focus, scrolling
   - Respects reduced-motion; no heavy blur (keeps scroll fast on phones)
   ========================================================================== */
:root {
  --fx-green: #34d399;
  --fx-green-deep: #059669;
  --fx-green-ink: #04281c;
  --fx-red: #fb7185;
  --fx-red-deep: #be123c;
  --fx-ease: cubic-bezier(.22, 1, .36, 1);
}

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 0; }
body { text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
::selection { background: rgba(217, 184, 122, .3); color: #fff; }

/* ---------- AVAILABLE / UNAVAILABLE pill ---------- */
.menu-item-photo .stock-pill {
  top: 12px !important; right: 12px !important;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px 6px 10px !important;
  border-radius: 999px !important;
  font-family: var(--lx-text, 'Manrope', system-ui, sans-serif);
  font-size: 10px !important; font-weight: 800 !important; letter-spacing: .1em !important;
  line-height: 1; white-space: nowrap;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  transition: transform .4s var(--fx-ease), box-shadow .4s var(--fx-ease);
}
.menu-item-photo .stock-pill::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; flex: none;
}
.menu-item-photo .stock-pill.is-in {
  color: #ecfff6 !important;
  background: linear-gradient(135deg, #10b981 0%, #047857 100%) !important;
  border: 1px solid rgba(110, 231, 183, .55);
  box-shadow: 0 6px 18px -6px rgba(16, 185, 129, .75), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.menu-item-photo .stock-pill.is-in::before {
  background: #bbf7d0;
  box-shadow: 0 0 0 0 rgba(187, 247, 208, .7);
  animation: fxPulse 2.4s ease-out infinite;
}
.menu-item-photo .stock-pill.is-out {
  color: #fff1f3 !important;
  background: linear-gradient(135deg, #e11d48 0%, #9f1239 100%) !important;
  border: 1px solid rgba(253, 164, 175, .5);
  box-shadow: 0 6px 18px -6px rgba(225, 29, 72, .7), inset 0 1px 0 rgba(255, 255, 255, .2);
}
.menu-item-photo .stock-pill.is-out::before { background: #fecdd3; }
.menu-item:hover .stock-pill { transform: translateY(-1px); }
@keyframes fxPulse {
  0% { box-shadow: 0 0 0 0 rgba(187, 247, 208, .65); }
  70%, 100% { box-shadow: 0 0 0 7px rgba(187, 247, 208, 0); }
}

/* unavailable card: calm, clearly out of stock */
.menu-item.is-unavailable .menu-item-photo img { filter: grayscale(.85) brightness(.6); }
.out-overlay { background: rgba(10, 7, 8, .55) !important; }
.out-overlay span {
  background: rgba(190, 18, 60, .92) !important; color: #fff;
  border-radius: 999px !important; padding: 9px 18px !important;
  font-weight: 800; letter-spacing: .16em; font-size: 11px;
  box-shadow: 0 10px 28px -10px rgba(190, 18, 60, .9);
}
.menu-item.is-unavailable .add-btn {
  background: rgba(255, 255, 255, .06) !important; color: var(--lx-mute, #a99d93) !important;
  border-color: rgba(255, 255, 255, .1) !important; box-shadow: none !important; opacity: 1 !important;
}

/* ---------- Menu cards: smoother, richer ---------- */
.menu-item {
  border-radius: 20px !important;
  transition: transform .6s var(--fx-ease), border-color .5s var(--fx-ease), box-shadow .6s var(--fx-ease) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, 0) 38%), var(--lx-card, #151011) !important;
}
.menu-item-photo {
  background: linear-gradient(110deg, #181112 30%, #241a1b 50%, #181112 70%);
  background-size: 200% 100%; animation: fxSkeleton 1.6s linear infinite;
}
.menu-item-photo img { position: relative; z-index: 0; }
@keyframes fxSkeleton { to { background-position: -200% 0; } }
.menu-item-photo, .pizza-card .menu-item-photo { border-radius: 20px 20px 0 0; }

.menu-grid { gap: clamp(14px, 2vw, 24px) !important; }
.menu-category { scroll-margin-top: calc(var(--nav-live, 64px) + var(--bar-h, 64px) + 12px); }

/* ---------- Buttons ---------- */
.add-btn, .btn-primary, .cta-phone-btn, .wp-send-btn {
  transition: transform .45s var(--fx-ease), box-shadow .45s var(--fx-ease), filter .3s ease, background-position .6s var(--fx-ease) !important;
}
.add-btn:active, .qty-btn:active, .pizza-size:active, .cat-tab:active { transform: scale(.96) !important; }
.add-btn.added {
  background: linear-gradient(135deg, #34d399, #059669) !important; color: #04281c !important;
  box-shadow: 0 12px 28px -12px rgba(16, 185, 129, .9) !important;
}
.qty-btn { transition: background .3s ease, transform .3s var(--fx-ease); }

/* ---------- Category tabs ---------- */
.cat-tab { transition: background .4s var(--fx-ease), color .3s ease, border-color .4s var(--fx-ease), transform .4s var(--fx-ease) !important; }
.cat-tab.active { box-shadow: 0 10px 24px -12px rgba(217, 184, 122, .55); }
.cat-tabs::-webkit-scrollbar { display: none; }
.cat-tabs { scrollbar-width: none; }

/* ---------- Order sidebar ---------- */
.order-sidebar { transition: transform .6s var(--fx-ease) !important; }
.order-overlay { transition: opacity .5s ease !important; }
.order-line { transition: background .3s ease; }
.float-order-btn { transition: transform .5s var(--fx-ease), opacity .4s ease, box-shadow .4s ease !important; }

/* ---------- Admin: green availability toggle + status ---------- */
.availability input:checked + .availability-track {
  background: linear-gradient(135deg, #10b981, #047857) !important;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, .18) !important;
}
.availability input:checked + .availability-track::after { background: #ecfff6 !important; }
.availability input:not(:checked) + .availability-track { background: rgba(225, 29, 72, .35) !important; }

/* ---------- Accessibility + motion ---------- */
:focus-visible { outline: 2px solid var(--lx-gold, #d9b87a); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
@media (hover: none) {
  .menu-item:hover { transform: none !important; }
  .menu-item-photo { animation: none; }
}
@media (max-width: 560px) {
  .menu-item { border-radius: 16px !important; }
  .menu-item-photo, .pizza-card .menu-item-photo { border-radius: 16px 16px 0 0; }
  .menu-item-photo .stock-pill { font-size: 9px !important; padding: 5px 10px 5px 9px !important; }
}

/* ---------- About section ---------- */
#about, #gallery, #location, #signature { scroll-margin-top: calc(var(--nav-h, 80px) + var(--ticker-h, 34px) - 24px); }
.about-section { padding: clamp(64px, 9vw, 120px) 0; }
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.about-photo { margin: 0; border-radius: 24px; overflow: hidden; aspect-ratio: 4 / 5; border: 1px solid var(--lx-line, rgba(217,184,122,.16)); box-shadow: 0 40px 80px -40px rgba(0,0,0,.9); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-copy .section-title { margin: 12px 0 18px; }
.about-lead { font-size: clamp(16px, 1.5vw, 19px); line-height: 1.7; color: var(--lx-ink, #f5ede1); margin: 0 0 14px; max-width: 58ch; }
.about-copy .muted { line-height: 1.75; max-width: 58ch; }
.about-points { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.about-points li { padding: 16px 16px 18px; border: 1px solid var(--lx-line-soft, rgba(255,255,255,.07)); border-radius: 16px; background: rgba(255,255,255,.025); display: grid; gap: 6px; }
.about-points strong { font-family: var(--lx-display, Georgia, serif); font-size: 20px; color: var(--lx-gold-soft, #f3dfb4); font-weight: 600; }
.about-points span { font-size: 13px; line-height: 1.5; color: var(--lx-mute, #a99d93); }
.about-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
@media (max-width: 860px) {
  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .about-photo { aspect-ratio: 16 / 11; }
}
@media (max-width: 560px) {
  .about-points { grid-template-columns: minmax(0, 1fr); }
  .about-actions .luxury-btn { flex: 1 1 100%; justify-content: center; }
}
