:root {
  --gold: #FF9F1C;
  --gold-soft: #ffc568;
  --gold-dim: rgba(207, 172, 100, .18);
  --brown: #657F72;
  --brown-dark: #3A6D5E;
  --bg: #263a34;
  --bg-2: #1d302b;
  --card: #30473f;
  --card-2: #395248;
  --text: #F8F9FA;
  --text-dim: #d6e2dc;
  --danger: #e2574c;
  --success: #4caf7d;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family:
    "Vazirmatn",
    "Segoe UI",
    Tahoma,
    sans-serif;
  -webkit-tap-highlight-color: transparent;
}
button,
.filter-chip,
.action-btn,
.quantity-btn,
.item-incart button,
.remove-item,
.cart-btn,
.cart-btn-header,
.contact-btn,
.header-round-btn {
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}
html {
  scroll-behavior: smooth;
}
body {
  background:
    radial-gradient(
      1200px 600px at 50% -10%,
      rgba(207, 172, 100, .10),
      transparent 60%),
    var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}
.splash-screen {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(
      900px 500px at 50% 20%,
      rgba(207, 172, 100, .12),
      transparent 60%),
    var(--bg);
  z-index: 5000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transition: opacity .5s ease-out;
}
.splash-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.splash-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.splash-logo {
  width: 150px;
  height: 150px;
  object-fit: contain;
  padding: 20px;
  border-radius: 50%;
  background:
    linear-gradient(
      140deg,
      var(--gold-soft) 0%,
      var(--gold) 55%,
      #e98217 100%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .25);
  animation: bounce-logo 2s infinite ease-in-out;
}
.splash-logo-name {
  width: 190px;
  height: auto;
  margin-top: 20px;
  filter: brightness(0) invert(1);
  opacity: .92;
}
@keyframes bounce-logo {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}
.loading-text {
  margin-top: 18px;
  font-size: 16px;
  font-weight: bold;
  color: var(--gold);
  letter-spacing: .5px;
}
.app-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background:
    linear-gradient(
      135deg,
      #023B2E 0%,
      #3A6D5E 100%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .15);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .8rem;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(10px);
}
.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  justify-content: center;
  cursor: pointer;
  animation: logoGlow 3s ease-in-out infinite alternate;
}
@keyframes logoGlow {
  0% {
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, .3));
  }
  100% {
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, .6));
  }
}
.logo-img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  padding: 5px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, .2);
  transition: all .3s ease;
}
.logo-container:hover .logo-img {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 25px rgba(0, 0, 0, .3);
}
.logo-text-img {
  height: 32px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 1;
  transition: transform .3s ease, filter .3s ease;
}
.logo-container:hover .logo-text-img {
  transform: scale(1.05);
  filter: brightness(0) invert(1) drop-shadow(3px 3px 6px rgba(0, 0, 0, .4));
}
.contact-btn,
.header-round-btn {
  background:
    linear-gradient(
      135deg,
      #FF9F1C 0%,
      #FF8C00 100%);
  color: #fff;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: .4rem;
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
  box-shadow: 0 4px 15px rgba(255, 159, 28, .3);
}
.cart-btn-header {
  position: relative;
  width: 56px;
  height: 48px;
  justify-content: center;
  flex-shrink: 0;
  background:
    linear-gradient(
      135deg,
      #28a745 0%,
      #20c997 100%);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, .1);
  border-radius: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: all .4s cubic-bezier(.4, 0, .2, 1);
  box-shadow: 0 6px 20px rgba(40, 167, 69, .4), inset 0 1px 0 rgba(255, 255, 255, .2);
  backdrop-filter: blur(10px);
}
.contact-btn {
  padding: .55rem 1rem;
  flex-shrink: 0;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-shrink: 0;
}
.header-round-btn {
  width: 42px;
  height: 42px;
  padding: 0;
  justify-content: center;
  flex-shrink: 0;
}
.header-round-btn i {
  font-size: 16px;
}
.waiter-btn {
  position: relative;
}
.waiter-btn::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  top: 7px;
  right: 8px;
  background: var(--danger);
  box-shadow: 0 0 0 2px var(--gold);
}
.cart-btn-header:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 35px rgba(40, 167, 69, .5), inset 0 1px 0 rgba(255, 255, 255, .3);
  background:
    linear-gradient(
      135deg,
      #20c997 0%,
      #17a2b8 50%,
      #007bff 100%);
  border-color: rgba(255, 255, 255, .3);
}
.contact-btn:hover,
.header-round-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 159, 28, .4);
  background:
    linear-gradient(
      135deg,
      #FF8C00 0%,
      #FF7F00 100%);
}
.cart-btn-header:active,
.contact-btn:active,
.header-round-btn:active {
  transform: translateY(0) scale(.96);
}
.cart-btn-header i {
  font-size: 18px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .2));
  transition: all .3s ease;
}
.cart-btn-header:hover i {
  transform: rotate(10deg) scale(1.1);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .3));
}
.contact-btn i {
  font-size: 15px;
}
.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background:
    linear-gradient(
      135deg,
      #dc3545 0%,
      #e74c3c 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  box-shadow: 0 3px 12px rgba(220, 53, 69, .4), inset 0 1px 0 rgba(255, 255, 255, .2);
  animation: cartBadgePulse 2s infinite;
}
@keyframes cartBadgePulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 3px 12px rgba(220, 53, 69, .4), inset 0 1px 0 rgba(255, 255, 255, .2);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(220, 53, 69, .6), inset 0 1px 0 rgba(255, 255, 255, .3);
  }
}
.table-banner {
  margin: .8rem auto 0;
  max-width: 900px;
  padding: .5rem 1rem;
  text-align: center;
  font-size: 13px;
  color: var(--gold-soft);
  background: var(--gold-dim);
  border: 1px dashed rgba(207, 172, 100, .45);
  border-radius: 999px;
  width: fit-content;
  display: none;
}
.table-banner.show {
  display: block;
}
.search-bar {
  padding: .9rem 1rem .2rem;
  max-width: 900px;
  margin: 0 auto;
}
.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.search-input {
  width: 100%;
  padding: 12px 44px 12px 40px;
  border: 1px solid rgba(207, 172, 100, .35);
  border-radius: 999px;
  background-color: var(--card);
  color: var(--text);
  font-size: 14px;
  box-sizing: border-box;
  outline: none;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.search-input::placeholder {
  color: var(--text-dim);
}
.search-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(207, 172, 100, .14);
}
.search-icon {
  position: absolute;
  right: 16px;
  color: var(--gold);
  font-size: 14px;
  pointer-events: none;
}
.search-clear {
  position: absolute;
  left: 12px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: none;
  padding: 0 4px;
}
.search-clear.show {
  display: block;
}
.search-clear:hover {
  color: var(--danger);
}
.filter-section {
  padding: 1rem;
  position: sticky;
  top: 82px;
  z-index: 998;
  background: #023B2E;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(101, 127, 114, .1);
}
.filter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .8rem;
  max-width: 100%;
  transition: all .4s cubic-bezier(.4, 0, .2, 1);
}
.filter-grid.row-mode {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: .5rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}
.filter-grid.row-mode::-webkit-scrollbar {
  display: none;
}
.filter-grid.row-mode .filter-chip {
  min-width: auto;
  min-height: 40px;
  padding: .5rem 1rem;
  font-size: .85rem;
  flex-shrink: 0;
  flex-direction: row;
  white-space: nowrap;
}
.filter-grid.row-mode .filter-chip i {
  font-size: 1rem;
}
.filter-chip {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1rem;
  min-height: 60px;
  border-radius: 12px;
  border: 2px solid transparent;
  background: rgba(217, 183, 183, .18);
  color: #e0e0e0;
  font-size: .9rem;
  font-weight: 400;
  cursor: pointer;
  text-align: center;
  transform: scale(1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
}
.filter-chip img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  opacity: .8;
  transition: all .3s ease;
}
.filter-chip i {
  font-size: 1.2rem;
  opacity: .8;
}
.filter-chip:hover {
  transform: translateY(-2px) scale(1.02);
  background: rgba(101, 127, 114, .1);
  border-color: rgba(101, 127, 114, .3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, .1);
}
.filter-chip:hover img {
  opacity: 1;
  transform: scale(1.1);
}
.filter-chip.active {
  background: rgba(255, 255, 255, .219);
  color: #fff;
  border-color: #023B2E;
  box-shadow: 0 6px 20px rgba(101, 127, 114, .3);
}
.filter-chip.active img {
  opacity: 1;
  filter: brightness(0) invert(1);
}
.filter-chip.active i {
  opacity: 1;
  color: #fff;
}
.filter-chip.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, .7),
      transparent);
  animation: filter-shine 2s infinite;
}
.filter-chip.highlight {
  background: rgba(255, 159, 28, .9);
  color: #fff;
  border-color: #FF9F1C;
}
@keyframes filter-shine {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .6);
  transform: scale(0);
  animation: ripple-animation .6s linear;
  pointer-events: none;
}
@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}
.menu-container {
  max-width: 900px;
  margin: 0 auto;
  padding: .5rem 1rem 7rem;
}
.category-section {
  margin-bottom: 1.6rem;
  scroll-margin-top: 150px;
}
.category-header {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin: 1rem 0 .8rem;
}
.category-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--gold);
  white-space: nowrap;
}
.category-header::after {
  content: "";
  flex: 1;
  height: 1px;
  background:
    linear-gradient(
      90deg,
      rgba(207, 172, 100, .5),
      transparent);
}
.menu-items {
  display: flex;
  flex-direction: column;
  gap: .7rem;
}
.menu-item {
  display: flex;
  gap: .8rem;
  padding: .7rem;
  background:
    linear-gradient(
      145deg,
      var(--card) 0%,
      var(--card-2) 100%);
  border: 1px solid rgba(207, 172, 100, .16);
  border-radius: var(--radius);
  transition:
    transform .25s ease,
    box-shadow .25s ease,
    border-color .25s ease;
}
.menu-item:hover {
  transform: translateY(-3px);
  border-color: rgba(207, 172, 100, .45);
  box-shadow: var(--shadow);
}
.item-image {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
  background: #241a13;
  transition: transform .3s ease;
}
.menu-item:hover .item-image {
  transform: scale(1.04);
}
.item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .5rem;
}
.item-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.5;
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.item-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--gold);
  white-space: nowrap;
  flex: 0 0 auto;
}
.item-desc {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: .2rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
}
.item-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: auto;
  padding-top: .4rem;
}
.action-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: none;
  background:
    linear-gradient(
      135deg,
      var(--gold) 0%,
      #e98217 100%);
  color: #263a34;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .28);
}
.action-btn:hover {
  transform: translateY(-2px) scale(1.05);
}
.action-btn:active {
  transform: scale(.92);
}
.item-incart {
  display: flex;
  align-items: center;
  gap: .45rem;
  background: rgba(207, 172, 100, .14);
  border: 1px solid rgba(207, 172, 100, .4);
  border-radius: 12px;
  padding: .15rem .3rem;
}
.item-incart button {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 9px;
  background: var(--gold);
  color: #263a34;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  line-height: 1;
}
.item-incart .qty {
  min-width: 22px;
  text-align: center;
  font-weight: 800;
  color: var(--gold-soft);
}
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-dim);
}
.empty-state i {
  font-size: 42px;
  color: var(--gold);
  opacity: .5;
  margin-bottom: .8rem;
  display: block;
}
.cart-btn {
  position: fixed;
  bottom: 22px;
  left: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  background:
    linear-gradient(
      135deg,
      var(--gold) 0%,
      #e98217 100%);
  color: #263a34;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .45);
  z-index: 950;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .25s ease;
}
.cart-btn:hover {
  transform: scale(1.08);
}
.cart-btn:active {
  transform: scale(.94);
}
.cart-modal,
.contact-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
}
.cart-overlay,
.contact-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .65);
  backdrop-filter: blur(3px);
}
.cart-center-box,
.contact-content {
  position: relative;
  max-width: 520px;
  margin: 4vh auto;
  padding: 0 1rem;
  height: 92vh;
  height: 92dvh;
  display: flex;
  align-items: center;
}
.cart-content,
.contact-content > div,
.contact-inner {
  width: 100%;
}
.cart-content {
  background:
    linear-gradient(
      145deg,
      var(--card) 0%,
      var(--bg-2) 100%);
  border: 1px solid rgba(207, 172, 100, .3);
  border-radius: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  max-height: 88vh;
  max-height: 88dvh;
  min-height: 0;
  overflow: hidden;
  animation: modalIn .28s ease;
}
.cart-header,
.cart-footer {
  flex: 0 0 auto;
}
@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.cart-header,
.contact-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid rgba(207, 172, 100, .22);
  background: rgba(0, 0, 0, .18);
}
.cart-header h3,
.contact-header h3 {
  font-size: 16px;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.cart-header-actions {
  display: flex;
  align-items: center;
  gap: .3rem;
}
.close-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 0 .3rem;
  transition: color .2s ease;
}
.close-btn:hover {
  color: var(--danger);
}
.clear-cart-btn {
  background: transparent;
  border: none;
  color: var(--danger);
  font-size: 16px;
  cursor: pointer;
  padding: .3rem .5rem;
  border-radius: 8px;
}
.clear-cart-btn:hover {
  background: rgba(226, 87, 76, .12);
}
.cart-items {
  padding: .8rem 1rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 auto;
  min-height: 0;
}
.cart-item {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(207, 172, 100, .16);
  border-radius: 14px;
  padding: .7rem;
  margin-bottom: .6rem;
}
.cart-item-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .5rem;
}
.cart-item-name {
  font-size: 14px;
  font-weight: 700;
  flex: 1;
}
.remove-item {
  background: transparent;
  border: none;
  color: var(--danger);
  cursor: pointer;
  font-size: 15px;
  padding: .2rem .35rem;
  border-radius: 8px;
}
.remove-item:hover {
  background: rgba(226, 87, 76, .12);
}
.cart-item-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: .5rem;
  gap: .5rem;
}
.cart-item-quantity {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: rgba(207, 172, 100, .12);
  border-radius: 10px;
  padding: .15rem .3rem;
}
.quantity-btn {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 8px;
  background: var(--gold);
  color: #263a34;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  line-height: 1;
}
.quantity-btn:active {
  transform: scale(.9);
}
.cart-item-quantity .quantity {
  min-width: 24px;
  text-align: center;
  font-weight: 800;
}
.cart-item-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--gold);
}
.cart-item-note {
  margin-top: .55rem;
  width: 100%;
  background: rgba(0, 0, 0, .22);
  border: 1px dashed rgba(207, 172, 100, .35);
  border-radius: 10px;
  color: var(--text);
  font-size: 12px;
  padding: .5rem .7rem;
  resize: vertical;
  min-height: 38px;
  outline: none;
  font-family: inherit;
}
.cart-item-note::placeholder {
  color: var(--text-dim);
  opacity: .8;
}
.cart-item-note:focus {
  border-color: var(--gold);
  border-style: solid;
}
.cart-footer {
  padding: .9rem 1.2rem 1.1rem;
  border-top: 1px solid rgba(207, 172, 100, .22);
  background: rgba(0, 0, 0, .18);
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .8rem;
  font-size: 15px;
}
.cart-total {
  color: var(--gold);
  font-weight: 800;
  font-size: 17px;
}
.primary-btn {
  width: 100%;
  padding: .85rem;
  border: none;
  border-radius: 14px;
  background:
    linear-gradient(
      135deg,
      var(--gold) 0%,
      #e98217 100%);
  color: #263a34;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  transition: transform .2s ease, filter .2s ease;
}
.primary-btn:hover {
  filter: brightness(1.07);
  transform: translateY(-2px);
}
.primary-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}
.discount-box {
  border: 1px dashed rgba(207, 172, 100, .35);
  border-radius: 12px;
  padding: .65rem;
  margin-bottom: .7rem;
  background: rgba(207, 172, 100, .06);
}
.discount-box label {
  display: block;
  color: var(--gold-soft);
  font-size: 12px;
  margin-bottom: .35rem;
}
.discount-input-row {
  display: flex;
  gap: .35rem;
}
.discount-input-row input,
.sheet-body input,
.sheet-body textarea,
.sheet-body select {
  min-width: 0;
  flex: 1;
  background: rgba(0, 0, 0, .24);
  color: var(--text);
  border: 1px solid rgba(207, 172, 100, .32);
  border-radius: 10px;
  padding: .62rem .7rem;
  outline: none;
  font-family: inherit;
}
.discount-input-row input {
  direction: ltr;
  text-transform: uppercase;
}
.discount-input-row button {
  border: 0;
  border-radius: 10px;
  background: var(--gold);
  color: #263a34;
  padding: .55rem .7rem;
  font-weight: 800;
  cursor: pointer;
}
.discount-result {
  font-size: 12px;
  margin-top: .4rem;
  color: var(--success);
}
.discount-result.error {
  color: var(--danger);
}
.active-discount-list {
  display: none;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .45rem;
}
.active-discount-list.show {
  display: flex;
}
.discount-chip {
  border: 1px solid rgba(207, 172, 100, .4);
  background: var(--card);
  color: var(--gold-soft);
  border-radius: 999px;
  padding: .3rem .55rem;
  font-size: 11px;
  cursor: pointer;
}
.discount-total-row {
  color: var(--success);
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  margin-bottom: .3rem;
}
.sheet-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2600;
}
.sheet-modal.open {
  display: block;
}
.sheet-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .7);
  backdrop-filter: blur(4px);
}
.sheet-card {
  position: relative;
  width: calc(100% - 2rem);
  max-width: 560px;
  max-height: 90dvh;
  margin: 5dvh auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(207, 172, 100, .34);
  border-radius: 20px;
  background:
    linear-gradient(
      145deg,
      var(--card),
      var(--bg-2));
  box-shadow: var(--shadow);
  animation: modalIn .25s ease;
}
.compact-sheet {
  max-width: 430px;
}
.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 1rem;
  border-bottom: 1px solid rgba(207, 172, 100, .2);
}
.sheet-header h3 {
  color: var(--gold);
  font-size: 15px;
}
.sheet-body {
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.sheet-body textarea {
  resize: vertical;
  min-height: 80px;
}
.sheet-hint {
  color: var(--text-dim);
  font-size: 12px;
}
.form-label {
  color: var(--gold-soft);
  font-size: 12px;
}
.phone-field {
  direction: ltr;
  display: flex;
  align-items: center;
  gap: .35rem;
}
.phone-prefix {
  padding: .62rem .65rem;
  border-radius: 10px;
  background: rgba(207, 172, 100, .15);
  color: var(--gold);
}
.inline-form {
  display: flex;
  gap: .45rem;
  align-items: stretch;
}
.small-btn {
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
  border-radius: 10px;
  padding: .4rem .6rem;
  font-family: inherit;
  cursor: pointer;
}
.profile-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
}
.summary-card {
  border: 1px solid rgba(207, 172, 100, .18);
  background: rgba(255, 255, 255, .04);
  border-radius: 12px;
  padding: .65rem;
  font-size: 12px;
}
.summary-card strong {
  display: block;
  color: var(--gold);
  font-size: 14px;
  margin-top: .2rem;
}
.profile-section {
  border-top: 1px solid rgba(207, 172, 100, .18);
  padding-top: .65rem;
}
.profile-section-title {
  color: var(--gold-soft);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: .45rem;
}
.profile-edit-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: .45rem;
  align-items: center;
}
.profile-edit-form input,
.profile-edit-form textarea {
  min-width: 0;
}
.profile-edit-form textarea {
  grid-column: 1 / -1;
  resize: vertical;
}
.profile-edit-form .required-field {
  border-color: #d94b4b;
  box-shadow: 0 0 0 3px rgba(217, 75, 75, .16);
}
.table-banner.takeaway {
  background:
    linear-gradient(
      135deg,
      #657F72,
      #E8851A);
}
.history-card {
  border: 1px solid rgba(207, 172, 100, .16);
  border-radius: 11px;
  padding: .55rem;
  margin-bottom: .4rem;
  font-size: 12px;
  background: rgba(255, 255, 255, .035);
}
.history-card .muted {
  color: var(--text-dim);
}
.profile-order-card {
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.profile-order-card:hover,
.profile-order-card[aria-expanded=true] {
  border-color: rgba(207, 172, 100, .48);
  background: rgba(207, 172, 100, .07);
}
.profile-order-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
}
.profile-order-chevron {
  color: var(--gold);
  transition: transform .22s ease;
}
.profile-order-card[aria-expanded=true] .profile-order-chevron {
  transform: rotate(180deg);
}
.profile-order-details {
  border-top: 1px dashed rgba(207, 172, 100, .25);
  margin-top: .55rem;
  padding-top: .45rem;
}
.profile-order-item {
  padding: .45rem .1rem;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.profile-order-item:last-child {
  border-bottom: 0;
}
.profile-order-item-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .6rem;
}
.profile-order-item-main span {
  color: var(--text);
  line-height: 1.7;
  min-width: 0;
  overflow-wrap: anywhere;
}
.profile-order-item-main b,
.profile-order-item-total {
  color: var(--gold-soft);
  white-space: nowrap;
}
.profile-order-item-total {
  margin-top: .2rem;
  font-size: 11px;
}
.profile-order-item-note {
  color: var(--text-dim);
  margin-top: .25rem;
  line-height: 1.7;
}
.profile-order-item-note i {
  color: var(--gold);
  margin-left: .3rem;
}
@media (max-width: 560px) {
  .profile-edit-form {
    grid-template-columns: 1fr;
  }
  .profile-edit-form .small-btn {
    width: 100%;
  }
}
.code-value {
  direction: ltr;
  display: inline-block;
  color: var(--gold);
  font-weight: 800;
  letter-spacing: 1px;
}
.logout-btn {
  color: var(--danger);
  border-color: rgba(226, 87, 76, .6);
}
.contact-content {
  display: block;
  max-width: 560px;
  margin: 5vh auto;
  height: auto;
  max-height: 90vh;
  background:
    linear-gradient(
      145deg,
      var(--card) 0%,
      var(--bg-2) 100%);
  border: 1px solid rgba(207, 172, 100, .3);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: modalIn .28s ease;
}
.contact-body {
  padding: 1rem 1.2rem 1.4rem;
  overflow-y: auto;
  max-height: 74vh;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-item {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(207, 172, 100, .16);
  border-radius: 14px;
  padding: .8rem;
}
.contact-item > i {
  color: var(--gold);
  font-size: 18px;
  margin-top: .25rem;
  width: 22px;
  text-align: center;
  flex-shrink: 0;
}
.contact-details {
  flex: 1;
  min-width: 0;
}
.contact-details h4 {
  font-size: 14px;
  color: var(--gold-soft);
  margin-bottom: .25rem;
}
.contact-details p {
  font-size: 13px;
  color: var(--text-dim);
}
.phone-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.phone-number {
  color: var(--text);
  text-decoration: none;
  direction: ltr;
}
.phone-number:hover {
  color: var(--gold);
}
.phone-number p {
  margin: 0;
  direction: ltr;
}
.separator {
  color: rgba(255, 255, 255, .25);
}
.instagram-link {
  color: inherit;
  text-decoration: none;
}
.instagram-link:hover {
  color: #E1306C;
}
.map-placeholder {
  margin-top: .5rem;
}
.map-placeholder iframe {
  width: 100%;
  height: 210px;
  border-radius: 12px;
  border: 1px solid rgba(207, 172, 100, .25);
  filter: saturate(.9) contrast(1.05);
}
.map-buttons {
  display: flex;
  gap: .5rem;
  margin-top: .6rem;
  flex-wrap: wrap;
}
.map-btn {
  flex: 1;
  min-width: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .6rem;
  border-radius: 12px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  background: rgba(207, 172, 100, .14);
  border: 1px solid rgba(207, 172, 100, .35);
  color: var(--text);
  transition: background .2s ease, transform .2s ease;
}
.map-btn:hover {
  background: rgba(207, 172, 100, .25);
  transform: translateY(-2px);
}
#toast-container {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  width: calc(100% - 2rem);
  max-width: 400px;
  pointer-events: none;
}
.toast-message {
  display: flex;
  align-items: center;
  gap: .6rem;
  background:
    linear-gradient(
      145deg,
      var(--card-2) 0%,
      var(--bg-2) 100%);
  border: 1px solid rgba(207, 172, 100, .35);
  color: var(--text);
  padding: .7rem .9rem;
  border-radius: 12px;
  font-size: 13px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: auto;
}
.toast-message.show {
  opacity: 1;
  transform: translateY(0);
}
.toast-message.success {
  border-color: rgba(76, 175, 125, .6);
}
.toast-message.error {
  border-color: rgba(226, 87, 76, .6);
}
.toast-icon i {
  color: var(--gold);
  font-size: 15px;
}
.toast-message.success .toast-icon i {
  color: var(--success);
}
.toast-message.error .toast-icon i {
  color: var(--danger);
}
.toast-content {
  flex: 1;
}
.toast-close {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 13px;
}
.variant-options {
  display: grid;
  gap: .65rem;
}
.variant-option {
  width: 100%;
  border: 1px solid rgba(207, 172, 100, .4);
  border-radius: 14px;
  background:
    linear-gradient(
      135deg,
      rgba(207, 172, 100, .16),
      rgba(125, 100, 71, .1));
  color: var(--text);
  padding: .85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  transition:
    transform .18s ease,
    border-color .18s ease,
    background .18s ease;
}
.variant-option strong {
  color: var(--gold);
  white-space: nowrap;
}
.variant-option:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  background: rgba(207, 172, 100, .24);
}
.choose-variant {
  width: auto;
  padding-inline: .7rem;
  font-size: 11px;
}
@media (max-width: 768px) {
  .app-bar {
    padding: .8rem 1rem;
    min-height: 70px;
  }
  .logo-img {
    width: 44px;
    height: 44px;
  }
  .logo-text-img {
    height: 28px;
  }
  .contact-btn {
    padding: .5rem .7rem;
    font-size: 12px;
  }
  .contact-btn span {
    display: none;
  }
  .contact-btn i {
    font-size: 17px;
  }
  .cart-btn-header {
    width: 40px;
    height: 40px;
  }
  .header-round-btn {
    width: 38px;
    height: 38px;
  }
  .header-actions {
    gap: .25rem;
  }
  .logo-container {
    gap: .25rem;
  }
  .logo-text-img {
    max-width: 86px;
  }
  .filter-section {
    top: 70px;
    padding: .8rem;
  }
  .search-bar {
    padding: .7rem .7rem .1rem;
  }
  .menu-container {
    padding: .3rem .7rem 6.5rem;
  }
  .item-image {
    width: 70px;
    height: 70px;
  }
  .item-title {
    font-size: 13px;
  }
  .item-price {
    font-size: 13px;
  }
  .item-desc {
    font-size: 11px;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
  .filter-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: .6rem;
  }
  .filter-chip {
    padding: .6rem .8rem;
    font-size: .8rem;
    min-height: 50px;
    flex-direction: column;
    gap: .3rem;
  }
  .filter-chip img {
    width: 40px;
    height: 40px;
  }
  .cart-center-box {
    margin: 0;
    padding: 0;
    height: 100vh;
    height: -webkit-fill-available;
    height: 100dvh;
    align-items: flex-end;
  }
  .cart-content {
    max-height: 90vh;
    max-height: 90dvh;
    border-radius: 20px 20px 0 0;
    border-bottom: none;
  }
  .cart-footer {
    padding-bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px));
  }
  .contact-content {
    margin: 0;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }
  .contact-body {
    max-height: calc(100vh - 70px);
    max-height: calc(100dvh - 70px);
    padding-bottom: calc(1.4rem + env(safe-area-inset-bottom, 0px));
  }
  .cart-btn {
    width: 52px;
    height: 52px;
    font-size: 19px;
    bottom: 18px;
    left: 18px;
  }
  #toast-container {
    bottom: 80px;
  }
  .sheet-card {
    width: 100%;
    max-width: none;
    margin: 0;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }
  .compact-sheet {
    height: auto;
    max-height: 80dvh;
    position: absolute;
    bottom: 0;
    border-radius: 20px 20px 0 0;
  }
}
@media (max-width: 400px) {
  .app-bar {
    padding: .6rem .8rem;
    min-height: 60px;
  }
  .logo-img {
    width: 38px;
    height: 38px;
  }
  .logo-text-img {
    height: 24px;
  }
  .item-image {
    width: 62px;
    height: 62px;
  }
  .filter-section {
    top: 60px;
    padding: .6rem;
  }
  .filter-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: .5rem;
  }
  .filter-chip {
    padding: .5rem;
    font-size: .75rem;
    min-height: 45px;
    gap: .2rem;
  }
  .filter-chip img {
    width: 40px;
    height: 40px;
  }
}
