/*
 * Tasty Bites modern customer theme
 * Shared by every public page through includes/favicon.php.
 * Keep the theme token-driven so the configured restaurant color remains the accent.
 */
:root {
  --modern-ink: #182235;
  --modern-muted: #667085;
  --modern-subtle: #f6f7fb;
  --modern-line: #e7eaf0;
  --modern-card-shadow: 0 18px 45px rgba(24, 34, 53, .07), 0 2px 8px rgba(24, 34, 53, .04);
  --modern-radius: 22px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--modern-subtle);
  scroll-behavior: auto;
}

body.bg-gray-50,
body.min-h-screen {
  background:
    radial-gradient(circle at 8% -8%, color-mix(in srgb, var(--tp, #f05a28) 9%, transparent), transparent 30rem),
    var(--modern-subtle) !important;
  color: var(--modern-ink);
  font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background: var(--modern-subtle);
  opacity: 0;
  transition: opacity .18s ease;
}

body.page-leaving::before {
  opacity: 1;
}

h1, h2, h3, h4, .font-black, .font-extrabold {
  font-family: "Plus Jakarta Sans", "DM Sans", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -.025em;
}

a {
  transition: color .18s ease, opacity .18s ease, transform .18s ease, box-shadow .18s ease;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--modern-ink);
  color: #fff !important;
  font-size: .8rem;
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform .18s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

button,
input,
select,
textarea {
  font: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--tp, #f05a28) 42%, white);
  outline-offset: 3px;
}

/* Navigation */
#main-header {
  background: #fff !important;
  border-bottom: 1px solid rgba(231, 234, 240, .9) !important;
  box-shadow: 0 8px 24px rgba(24, 34, 53, .06) !important;
}

#tn-desktop-row1,
#tn-mobile-row1 {
  background: transparent;
}

#tn-desktop-row1 > a:first-of-type img {
  max-height: 56px !important;
  max-width: 150px !important;
}

#tn-desktop-row1 > a:first-of-type > div {
  min-width: 56px !important;
  min-height: 56px !important;
  border-radius: 16px !important;
}

#tn-mobile-row1 > a:first-of-type img {
  max-height: 46px !important;
  max-width: 120px !important;
}

#tn-mobile-row1 > a:first-of-type > div {
  min-width: 46px !important;
  min-height: 46px !important;
  border-radius: 14px !important;
}

#tn-desktop-row2,
#tn-mobile-row2 {
  background: rgba(248, 249, 252, .88) !important;
  border-top-color: var(--modern-line) !important;
}

#tn-addr-bar,
#tn-info-box {
  background: #f8f9fc !important;
  border-color: var(--modern-line) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}

#tn-info-box {
  appearance: none;
  text-align: left;
  color: inherit;
  cursor: pointer;
}

#tn-addr-bar:focus-within,
#tn-info-box:hover {
  border-color: color-mix(in srgb, var(--tp, #f05a28) 65%, white) !important;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--tp, #f05a28) 12%, transparent);
}

.tn-type-big {
  border-color: var(--modern-line) !important;
  background: #fff !important;
  min-height: 42px;
  border-radius: 13px !important;
  color: var(--modern-muted) !important;
}

.tn-type-big.active {
  background: var(--tp) !important;
  border-color: var(--tp) !important;
  color: #fff !important;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--tp, #f05a28) 24%, transparent) !important;
}

.tn-type-big:not(.active):hover {
  color: var(--tp) !important;
  border-color: color-mix(in srgb, var(--tp, #f05a28) 48%, white) !important;
  transform: translateY(-1px);
}

#tn-drawer-inner {
  box-shadow: 24px 0 60px rgba(24, 34, 53, .18) !important;
}

.welcome-modal-card {
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 28px 80px rgba(12, 20, 35, .28) !important;
}

.welcome-modal-header {
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--tp, #f05a28) 10%, transparent), transparent 11rem),
    #fff !important;
}

.welcome-logo-shell {
  width: 78px;
  height: 78px;
  margin: 0 auto;
  padding: 5px;
  border: 1px solid color-mix(in srgb, var(--tp, #f05a28) 18%, #e7eaf0);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--tp, #f05a28) 14%, transparent);
}

.welcome-logo,
.welcome-logo-fallback {
  width: 100%;
  height: 100%;
  border-radius: 18px;
}

.welcome-modal-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 14px;
  color: #98a2b3;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.welcome-modal-hint span {
  width: 18px;
  height: 1px;
  background: #dfe3ea;
}

.welcome-choice-list {
  background: #fbfcfe;
}

.welcome-choice {
  min-height: 92px;
  border-color: #e9edf3 !important;
  background: #fff;
  box-shadow: 0 4px 12px rgba(24,34,53,.035);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease !important;
}

.welcome-choice:hover {
  border-color: color-mix(in srgb, var(--tp, #f05a28) 46%, #e9edf3) !important;
  background: color-mix(in srgb, var(--tp, #f05a28) 3%, #fff);
  box-shadow: 0 12px 24px rgba(24,34,53,.09);
  transform: translateY(-2px);
}

.welcome-choice:active {
  transform: scale(.985) !important;
}

.welcome-choice-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 7px 14px rgba(24,34,53,.1);
  transition: transform .2s ease;
}

.welcome-choice:hover .welcome-choice-icon {
  transform: scale(1.06) rotate(-3deg);
}

.welcome-choice-icon-pickup {
  background: linear-gradient(145deg, #ff7162, #e62d31);
}

.welcome-choice-icon-delivery {
  background: linear-gradient(145deg, #ff7162, #e62d31);
}

.welcome-choice-copy {
  min-width: 0;
}

.welcome-choice-copy p:first-child {
  font-size: .95rem;
  letter-spacing: -.015em;
}

.welcome-choice-copy p:last-child {
  color: #8b95a5 !important;
  line-height: 1.35;
}

.welcome-choice-arrow {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #b9c1cc;
  background: #f5f7fa;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.welcome-choice:hover .welcome-choice-arrow {
  color: var(--tp);
  background: color-mix(in srgb, var(--tp, #f05a28) 11%, white);
  transform: translateX(2px);
}

.tn-link {
  border-radius: 14px !important;
  margin: 2px 10px;
  min-height: 44px;
}

.tn-link:hover {
  background: color-mix(in srgb, var(--tp, #f05a28) 9%, white) !important;
}

/* Shared page surfaces */
#page-content,
main {
  animation: modernPageIn .42s ease both;
}

body.page-leaving #page-content,
body.page-leaving main,
body.page-leaving footer {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .16s ease, transform .16s ease;
}

.bg-white.rounded-2xl,
.bg-white.rounded-3xl,
.bg-white.rounded-xl {
  border-color: var(--modern-line) !important;
  box-shadow: var(--modern-card-shadow) !important;
}

.bg-white.rounded-2xl {
  border-radius: var(--modern-radius) !important;
}

.bg-white.rounded-3xl {
  border-radius: 28px !important;
}

main > h1,
main > .flex > h1 {
  color: var(--modern-ink);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.2;
}

main > h1::after,
main > .flex > h1::after {
  content: "";
  display: block;
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: var(--tp);
  margin-top: 10px;
  opacity: .78;
}

input:not([type="radio"]):not([type="checkbox"]),
select,
textarea {
  border-color: var(--modern-line) !important;
  border-radius: 14px !important;
  color: var(--modern-ink);
  background: #fff !important;
  min-height: 44px;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

textarea {
  padding-top: 12px !important;
}

input:not([type="radio"]):not([type="checkbox"]):hover,
select:hover,
textarea:hover {
  border-color: #cbd2df !important;
}

input:not([type="radio"]):not([type="checkbox"]):focus,
select:focus,
textarea:focus {
  border-color: var(--tp) !important;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--tp, #f05a28) 12%, transparent) !important;
  outline: none;
}

button.tp-bg,
a.tp-bg,
.btn-primary {
  border-radius: 14px !important;
  box-shadow: 0 9px 18px color-mix(in srgb, var(--tp, #f05a28) 18%, transparent);
  font-weight: 800;
}

button.tp-bg:hover,
a.tp-bg:hover,
.btn-primary:hover {
  box-shadow: 0 12px 24px color-mix(in srgb, var(--tp, #f05a28) 25%, transparent);
  transform: translateY(-1px);
}

button:not(:disabled),
a.tp-bg,
.btn-primary {
  -webkit-tap-highlight-color: transparent;
}

button:not(:disabled):active,
a.tp-bg:active,
.btn-primary:active {
  transform: translateY(0) scale(.975);
}

button:disabled {
  cursor: not-allowed;
}

.tn-link,
.footer-link,
.prod-card,
#tn-menu-btn,
#tn-menu-btn-m,
#tn-cart-badge {
  -webkit-tap-highlight-color: transparent;
}

.bg-gray-100 {
  background-color: #f0f2f6 !important;
}

.bg-gray-100:hover {
  background-color: #e7eaf0 !important;
}

/* Home/menu content */
.site-footer {
  border-top: 1px solid rgba(231, 234, 240, .9);
}

#cat-ribbon {
  background: #fff !important;
  border-bottom-color: var(--modern-line) !important;
  box-shadow: 0 8px 18px rgba(24,34,53,.04);
}

.prod-card {
  border-color: var(--modern-line) !important;
  box-shadow: 0 12px 30px rgba(24,34,53,.07) !important;
  border-radius: 20px !important;
}

.prod-card:hover {
  box-shadow: 0 18px 38px rgba(24,34,53,.12) !important;
  transform: translateY(-3px);
}

.add-to-cart-btn {
  box-shadow: 0 8px 16px color-mix(in srgb, var(--tp, #f05a28) 18%, transparent);
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease, background .18s ease !important;
}

.add-to-cart-btn:hover {
  box-shadow: 0 12px 22px color-mix(in srgb, var(--tp, #f05a28) 24%, transparent);
  transform: translateY(-2px);
}

.add-to-cart-btn:active {
  transform: translateY(0) scale(.97) !important;
}

.qty-ctrl {
  border-color: color-mix(in srgb, var(--tp, #f05a28) 68%, white) !important;
  box-shadow: 0 5px 14px color-mix(in srgb, var(--tp, #f05a28) 12%, transparent);
  background: #fff;
}

.qty-ctrl button {
  min-width: 42px;
  min-height: 42px;
  transition: background .18s ease, transform .18s ease;
}

.qty-ctrl button:active {
  transform: scale(.9);
}

.sec-pill {
  box-shadow: 0 4px 10px color-mix(in srgb, var(--tp, #f05a28) 10%, transparent);
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease !important;
}

.sec-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 14px color-mix(in srgb, var(--tp, #f05a28) 17%, transparent);
}

#vp-modal,
#ym-vp-modal,
#order-review-modal {
  box-shadow: 0 -14px 32px rgba(24,34,53,.12);
}

#vp-modal > div,
#ym-vp-modal > div,
#order-review-modal > div {
  border-top: 1px solid rgba(255,255,255,.85);
}

#vp-overlay,
#ym-vp-overlay,
#order-review-overlay {
  transition: opacity .22s ease;
}

#tn-cart-badge {
  box-shadow: 0 4px 10px color-mix(in srgb, var(--tp, #f05a28) 28%, transparent);
}

.poster-wrap,
#banner-wrap {
  box-shadow: 0 16px 34px rgba(24,34,53,.09);
}

.cat-heading {
  border-bottom-color: color-mix(in srgb, var(--tp, #f05a28) 18%, transparent) !important;
}

/* Status and alert surfaces retain meaning but feel less harsh. */
.bg-red-50 { background-color: #fff5f4 !important; }
.bg-amber-50 { background-color: #fff9ed !important; }
.bg-green-50 { background-color: #effbf4 !important; }
.bg-blue-50 { background-color: #f1f7ff !important; }

footer {
  background: rgba(255,255,255,.7) !important;
  border-top-color: var(--modern-line) !important;
}

footer.site-footer {
  background: #121b2d !important;
  color: #e8edf5 !important;
  border-top: 0 !important;
}

footer.site-footer .text-white {
  color: #fff !important;
}

footer.site-footer .text-gray-400,
footer.site-footer .footer-link {
  color: #aab5c7 !important;
}

footer.site-footer .footer-link:hover {
  color: #fff !important;
}

footer.site-footer .border-white\/10 {
  border-color: rgba(255,255,255,.12) !important;
}

@keyframes modernPageIn {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 767px) {
  #tn-desktop-row1,
  #tn-mobile-row1 {
    min-height: 64px !important;
  }

  main {
    padding-top: 20px !important;
  }

  .bg-white.rounded-2xl {
    border-radius: 18px !important;
  }

  .prod-card:hover {
    transform: none;
  }

  .welcome-modal-card {
    width: min(92%, 390px);
  }

  .welcome-choice {
    min-height: 88px;
    padding: 13px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }

  body::before,
  body.page-leaving #page-content,
  body.page-leaving main,
  body.page-leaving footer {
    transition: none !important;
  }
}