:root {
  --bg-gray-clr: rgb(243, 244, 246);
  --bg-dark-clr: rgb(44, 44, 44);
  --bg-trp-clr: rgba(0, 0, 0, 0);
  --bg-spcl-clr: rgb(189, 127, 86);
  --bg-wht-clr: #fff;
  --border-clr: rgb(222, 224, 227);
  --txt-gray-clr: #b4b4b4;
  --txt-dark-clr: rgb(0, 0, 0);
  --txt-light-clr: rgb(255, 255, 255);
  --fnt-montserrat: "Montserrat", sans-serif;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--fnt-montserrat);
}

.bg-gray-clr {
  background-color: var(--bg-gray-clr);
}
.bg-dark-clr {
  background-color: var(--bg-dark-clr);
}
.bg-trp-clr {
  background-color: var(--bg-trp-clr);
}
.bg-spcl-clr {
  background-color: var(--bg-spcl-clr);
}
.border {
  border: 1px solid var(--border-clr);
}

a {
  color: var(--mt20-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

.restaurant-header {
  position: relative;
  z-index: 5;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-icon-btn {
  height: calc(0.25rem * 7);
  outline: none;
  cursor: pointer;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-size: 0.75rem;
  font-weight: 500;
}

.header-waiter-btn {
  background: var(--bg-dark-clr);
  color: var(--txt-light-clr);
  border: 1px solid rgba(255, 255, 255, 0.15);
  width: 36px;
  height: 36px;
  padding: 0;
  justify-content: center;
  box-shadow: var(--mt20-shadow-soft);
}
.header-waiter-btn svg {
  stroke: currentColor;
}

.icon-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-label {
  font-weight: 600;
  letter-spacing: 0.03em;
}

.home-search-inner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.categories {
  background-color: var(--mt20-categories-bg);
  border-radius: 20px;
  margin-top: 20px;
}

.categories#menu {
  padding: 4px 0 80px;
}

.home-category-tabs-wrapper {
  background-color: var(--bg-wht-clr);
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 8px 0 8px;
  margin: 0 12px;
}

.container {
  --cx: 16px;
  padding-inline: var(--cx);
}

.home-category-tabs-wrapper {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  margin-inline: calc(-1 * var(--cx));
  padding-inline: var(--cx);
}

.home-category-sticky {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  margin-inline: calc(-1 * var(--cx));
  padding: 8px var(--cx) 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.home-category-tabs-scroll {
  display: flex;
  gap: 8px;
  padding: 2px 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.home-category-tabs-scroll::-webkit-scrollbar {
  display: none;
}

.home-category-tab {
  border: none;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  background-color: var(--bg-trp-clr);
  color: var(--txt-gray-clr);
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.12s ease, box-shadow 0.18s ease;
}

.home-category-tab.is-active {
  background: var(--mt20-tab-active-bg);
  color: var(--mt20-tab-active-text);
  transform: translateY(-1px);
}

#footer {
  margin-top: 16px;
}

.footer-bottom-section {
  padding: 10px 16px 18px;
  font-size: 12px;
  color: var(--mt20-text-soft);
}

.footer-bottom-section .color-white {
  color: var(--mt20-accent-strong);
}

.fullscreen-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--mt20-anim-slow) ease;
}

.fullscreen-modal.is-open {
  opacity: 0.98;
  pointer-events: auto;
  z-index: 100000 !important;
}

.fullscreen-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.fullscreen-modal.is-open .fullscreen-modal-content {
  transform: translateY(0);
}

.fullscreen-modal-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 600px;
  max-height: 100%;
  border-radius: 22px 22px 0 0;
  background: var(--bg-wht-clr);
  padding: 14px 14px 18px;
  display: flex;
  flex-direction: column;
  transform: translateY(16px);
  transition: transform var(--mt20-anim-slow) cubic-bezier(0.22, 0.61, 0.36, 1);
}

.fullscreen-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.fullscreen-modal-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--mt20-text-dark);
}

.fullscreen-modal-body {
  font-size: 13px;
  color: var(--mt20-text-muted);
}

.fullscreen-close-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--mt20-text-muted);
}

.dish-modal-content {
  border-radius: 22px 22px 0 0;
  padding: 10px 14px 16px;
}

.dish-modal-close-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  position: absolute;
  top: 10px;
  right: 12px;
  color: var(--mt20-text-muted);
}

.dish-modal-image-wrapper {
  width: 100%;
  overflow: hidden;
  margin-bottom: 10px;
  max-height: 270px;
}

.dish-modal-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dish-modal-info {
  padding: 4px 2px 0;
}

.dish-modal-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.dish-modal-description {
  font-size: 13px;
  color: var(--mt20-text-soft);
  margin-bottom: 6px;
}

.dish-modal-price {
  font-size: 15px;
  font-weight: 600;
  color: var(--mt20-accent-strong);
}

.modal-help-text {
  font-size: 12px;
  color: var(--mt20-text-soft);
  margin-bottom: 10px;
}

.lang-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lang-item {
  width: 100%;
  border-radius: 14px;
  padding: 8px 10px;
  border: 1px solid var(--mt20-border-subtle);
  background: rgba(15, 23, 42, 0.96);
  color: var(--mt20-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
}

.lang-item.is-current {
  border-color: rgba(249, 115, 22, 0.85);
  box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.6);
}

.lang-code {
  font-weight: 700;
  letter-spacing: 0.06em;
}

.lang-name {
  flex: 1;
  color: var(--mt20-text-muted);
}

.lang-current-label {
  display: flex;
  align-items: center;
}

.search-input {
  flex: 1;
  color: var(--mt20-text);
  padding: 7px 12px;
  font-size: 14px;
  background-color: var(--bg-gray-clr);
  border-radius: 8px;
  border: none;
}

.header-btn {
  display: flex;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
}

.header-btn img {
    max-width:90%;
    object-fit:cover;
}

.up-section-right {
    display:flex;
    justify-content: space-between;
    gap:4px;
}

.home-search-section {
  margin: 0 20px;
}

.search-section-up {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-modal-content {
  border-radius: 22px 22px 0 0;
  padding: 12px 0 12px;
}

.sidebar-panel {
  padding: 0 16px 4px;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}

.sidebar-body > p {
  color: var(--mt20-text-dark);
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-logo h4 {
  color: var(--mt20-text-dark);
}

.sidebar-logo-img {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.98);
  overflow: hidden;
}

.sidebar-logo-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-header h4 {
  font-size: 15px;
  font-weight: 600;
}

.sidebar-subtitle {
  font-size: 13px;
  color: var(--mt20-text-soft);
  margin-bottom: 6px;
}

.sidebar-contact {
  margin-top: 12px;
  color: var(--mt20-text-dark);
}

.sidebar-contact h5 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px dashed var(--mt20-border-subtle);
  gap: 6px;
}

.contact-content {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.contact-content a {
  color: var(--mt20-text-muted);
}

.sidebar-theme-toggle {
  margin-top: 14px;
}

.sidebar-theme-btn {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--mt20-border-subtle);
  padding: 7px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.98);
  cursor: pointer;
  font-size: 13px;
  color: #f5f5f5;
}

.theme-icon {
  font-size: 16px;
}

.call-waiter-modal-content {
  border-radius: 22px 22px 0 0;
}

.form-group {
  margin-bottom: 10px;
}

.form-group label {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

.form-input,
.form-textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--mt20-border-strong);
  background: rgba(15, 23, 42, 0.98);
  color: var(--mt20-text);
  font-size: 13px;
  padding: 7px 10px;
}

.form-textarea {
  resize: vertical;
}

.call-waiter-submit-btn {
  width: 100%;
  border-radius: 999px;
  border: none;
  padding: 9px 12px;
  background: linear-gradient(135deg, #f97316, #fb923c);
  color: #111827;
  font-weight: 600;
  cursor: pointer;
  margin-top: 6px;
}

.call-waiter-message {
  margin-top: 8px;
  font-size: 12px;
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.98);
  color: var(--mt20-text-soft);
}

.call-waiter-message.is-error {
  background: rgba(127, 29, 29, 0.85);
  color: #fee2e2;
}

.call-waiter-success {
  margin-top: 10px;
  padding: 10px;
  border-radius: 16px;
  background: var(--mt20-success-soft-bg);
  border: 1px solid var(--mt20-success-soft-border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.cw-success-icon {
  position: relative;
  width: 34px;
  height: 34px;
}

.cw-success-circle {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--mt20-success-soft-glow);
}

.cw-success-check {
  position: absolute;
  inset: 5px;
  border-radius: 999px;
  border: 2px solid var(--mt20-success);
  box-shadow: 0 0 0 3px var(--mt20-success-soft-border);
}

.cw-success-text {
  font-size: 13px;
}

.is-hidden {
  display: none !important;
}

.menu-category-section {
  padding: 8px 10px 16px;
}

.menu-category-titles {
  padding: 4px 2px 6px;
}

.menu-category-main-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--mt20-text);
  width: max-content;
  background-color: var(--mt20-card-bg);
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid var(--mt20-text);
}

.menu-subcategory-block {
  margin-top: 8px;
}

.menu-subcategory-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--txt-dark-clr);
  margin: 4px 4px 6px;
}

.home-subcategory-tabs-scroll {
  margin-top: 6px;
  padding: 2px 4px 0;
  display: none;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 6px;
  white-space: nowrap;
}

.home-subcategory-tabs-scroll::-webkit-scrollbar {
  display: none;
}

.home-subcategory-tab {
  border: 1px solid var(--border-clr);
  padding: 12px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  background: var(--toastify-color-transparent);
  color: var(--mt20-text-muted);
  white-space: nowrap;
  cursor: pointer;
  margin-right: 6px;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, opacity .15s ease;
}

.home-subcategory-tab.is-active {
  background: var(--bg-spcl-clr);
  color: var(--mt20-tab-active-text);
  border-color: rgba(249, 115, 22, 0.75);
}

.form-group-inline {
  display: flex;
  gap: 10px;
}

.form-group-half {
  flex: 1;
}

.scroll-to-top-btn {
  position: fixed;
  right: 16px;
  bottom: 140px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: none;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  z-index: 200;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.scroll-to-top-btn.is-visible {
  display: flex;
  opacity: 0.98;
  transform: translateY(0);
}

.scroll-to-top-btn.is-hidden {
  opacity: 0;
  transform: translateY(8px);
}

.cart-bar {
  transform: translateX(0);
  opacity: 1;
  transition: transform var(--mt20-anim-slow) ease, opacity var(--mt20-anim-slow) ease;
}

.cart-bar.is-collapsed {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}

#cartBar.cart-bar {
  transform-origin: right center;
  transform: perspective(800px) rotateY(0deg) scaleX(1);
  opacity: 1;
  transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.25s ease-out;
}

#cartBar.cart-bar.is-collapsed {
  transform: perspective(800px) rotateY(90deg) scaleX(0.2);
  opacity: 0;
  pointer-events: none;
}

#basketBar.basket-bar-floating {
  transform-origin: right center;
  transform: perspective(800px) rotateY(90deg) scaleX(0.2);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.25s ease-out;
}

#basketBar.basket-bar-floating.is-visible {
  transform: perspective(800px) rotateY(0deg) scaleX(1);
  opacity: 1;
}

.fullscreen-modal-dialog {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.order-modal-content {
  border-radius: 22px 22px 0 0;
  background: var(--bg-wht-clr);
  box-shadow: 0 -18px 50px rgba(0, 0, 0, 0.7);
  padding: 12px 14px 10px;
  display: flex;
  flex-direction: column;
  max-height: 85vh;
}

.order-modal-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 4px 10px;
  border-bottom: 1px solid var(--mt20-border-subtle);
}

.order-modal-header h3 {
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

.order-modal-body {
  padding: 10px 2px 4px;
  margin: 0 4px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.6) transparent;
}

.order-modal-body::-webkit-scrollbar {
  width: 4px;
}

.order-modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.order-modal-body::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.6);
  border-radius: 999px;
}

.order-modal-section {
  margin-bottom: 10px;
}

.order-modal-label {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: var(--txt-dark-clr);
  margin-bottom: 4px;
}

.order-modal-input,
.order-modal-textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border-clr);
  background: var(--bg-gray-clr);
  color: var(--txt-wht-clr);
  font-size: 13px;
  padding: 8px 10px;
}

.order-modal-input::placeholder,
.order-modal-textarea::placeholder {
  color: var(--mt20-text-soft);
}

.order-modal-textarea {
  resize: vertical;
  min-height: 70px;
}

.order-type-buttons {
  display: flex;
  gap: 6px;
}

.order-type-btn {
  flex: 1;
  border-radius: 999px;
  border: 1px solid var(--mt20-border-subtle);
  background: rgba(15, 23, 42, 0.96);
  color: var(--mt20-text-muted);
  font-size: 12px;
  padding: 7px 10px;
  cursor: pointer;
  font-weight: 500;
}

.order-type-btn.is-active {
  background: var(--mt20-tab-active-bg);
  color: var(--mt20-tab-active-text);
  box-shadow: 0 10px 30px var(--mt20-tab-active-shadow);
  border-color: transparent;
}

[data-order-table-row] {
  transition: opacity 0.18s ease, max-height 0.18s ease;
}

[data-order-table-row][style*="display: none"] {
  opacity: 0;
  max-height: 0;
}

.order-modal-footer {
  padding: 8px 4px 2px;
  border-top: 1px solid var(--mt20-border-subtle);
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.order-modal-btn {
  flex: 1;
  border-radius: 999px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.order-modal-btn-secondary {
  background: transparent;
  border-color: var(--border-clr);
  color: var(--mt20-text-muted);
}

.order-modal-btn-secondary:hover {
  background: rgba(15, 23, 42, 0.9);
}

.order-modal-btn-primary {
  background: var(--bg-spcl-clr);
  color: var(--txt-wht-clr);
  border: none;
  box-shadow: 0 14px 40px rgba(34, 197, 94, 0.35);
}

.order-modal-btn-primary:hover {
  filter: brightness(1.05);
}

.order-modal-btn.is-loading {
  opacity: 0.7;
  cursor: default;
}

.order-modal-summary {
  background: var(--bg-wht-clr);
  border-radius: 18px;
  padding: 8px 8px 6px;
  border: 1px solid var(--mt20-border-subtle);
}

.order-summary-list {
  max-height: 210px;
  overflow-y: auto;
  padding-right: 2px;
  margin-bottom: 6px;
}

.order-summary-empty {
  font-size: 12px;
  color: var(--mt20-text-soft);
  padding: 4px 6px;
}

.order-summary-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--mt20-border-subtle);
  padding-top: 4px;
  margin-top: 4px;
}

.order-summary-total-label {
  font-size: 13px;
  font-weight: 500;
}

.order-summary-total-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--mt20-accent-strong);
}

.order-cart-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 4px;
  border-radius: 12px;
}

.order-cart-item + .order-cart-item {
  margin-top: 3px;
}

.order-cart-item-image {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(15, 23, 42, 0.9);
}

.order-cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.order-cart-item-image--placeholder {
  background: rgba(15, 23, 42, 0.5);
}

.order-cart-item-main {
  flex: 1;
  min-width: 0;
}

.order-cart-item-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 6px;
}

.order-cart-item-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--mt20-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-cart-item-line-price {
  font-size: 13px;
  font-weight: 600;
  color: var(--mt20-accent-strong);
  white-space: nowrap;
}

.order-cart-item-unit {
  font-size: 11px;
  color: var(--mt20-text-soft);
  margin-top: 2px;
}

.order-cart-item-qty {
  align-self: stretch;
  display: flex;
  align-items: center;
}

.order-cart-qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--border-clr);
  border-radius: 999px;
  padding: 2px 4px;
  background: var(--bg-gray-clr);
}

.order-cart-qty-btn {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--mt20-text);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.order-cart-qty-btn-plus {
  background: #facc15;
  color: #111827;
}

.order-cart-qty-number {
  min-width: 18px;
  text-align: center;
  font-size: 13px;
}

.cart-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 10px;
  height: 60px;
  padding: 0 10px;
  border-radius: 8px;
  background: #1c1c1c;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: var(--mt20-shadow-soft);
  z-index: 80;
  transform: translateY(0);
  transition: transform var(--mt20-anim-slow) cubic-bezier(0.22, 0.61, 0.36, 1);
}

.cart-bar.is-collapsed {
  transform: translateY(120%);
}

.cart-bar-info {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  color: var(--mt20-text-soft);
}

.cart-bar-info span:first-child {
  font-weight: 500;
  color: var(--mt20-text);
}

.cart-bar-submit {
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  min-width: 130px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: var(--mt20-tab-active-bg);
  color: #052e16;
  box-shadow: 0 14px 40px rgba(34, 197, 94, 0.35);
}

.basket-bar-floating {
  position: fixed;
  right: 16px;
  bottom: 10px;
  z-index: 85;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.9);
  transition: opacity var(--mt20-anim-slow) ease, transform var(--mt20-anim-slow) ease;
}

.basket-bar-floating.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.basket-bar-btn {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: none;
  background: var(--bg-spcl-clr);
  color: var(--txt-wht-clr);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--mt20-shadow-soft);
  position: relative;
  cursor: pointer;
}

.basket-bar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.basket-bar-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.order-toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--mt20-bottom-nav-height) + 26px);
  transform: translateX(-50%) translateY(16px);
  opacity: 0;
  pointer-events: none;
  z-index: 90;
  min-width: 240px;
  max-width: 320px;
  padding: 8px 10px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.98);
  box-shadow: var(--mt20-shadow-soft);
  display: flex;
  align-items: center;
  gap: 10px;
}

.order-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.order-success-icon {
  position: relative;
  width: 34px;
  height: 34px;
}

.order-success-circle {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.2);
}

.order-success-check {
  position: absolute;
  inset: 5px;
  border-radius: 999px;
  border: 2px solid var(--mt20-success);
  box-shadow: 0 0 0 3px var(--mt20-success-soft-border);
}

.order-toast-text {
  flex: 1;
  min-width: 0;
}

.order-success-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}

.order-success-text {
  font-size: 12px;
  color: var(--mt20-text-soft);
}

.scroll-to-top-btn {
  position: fixed;
  right: 15px;
  bottom: 75px;
  width: 45px;
  height: 45px;
  border-radius: 5px;
  border: none;
  background: var(--bg-spcl-clr);
  color: var(--txt-wht-clr);
  font-size: 16px;
  cursor: pointer;
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity var(--mt20-anim-normal) ease, transform var(--mt20-anim-normal) ease;
  transform: rotate(180deg);
}

.scroll-to-top-btn.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.dish-modal .dish-modal-content {
  position: fixed;
  inset: 0;
  margin: 0;
  width: 100%;
  max-width: none;
  height: 100vh;
  border-radius: 0;
  padding: 0;
  background: var(--mt20-bg);
  display: flex;
  flex-direction: column;
}

.dish-modal .dish-modal-image-wrapper {
  flex: 0 0 50vh;
  position: relative;
  overflow: hidden;
}

.dish-modal .dish-modal-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dish-modal .dish-modal-info {
  flex: 1 1 auto;
  background: var(--bg-wht-clr);
  color: var(--mt20-text);
  padding: 16px 16px 110px;
  margin-top: -16px;
  overflow-y: auto;
}

.dish-modal .dish-modal-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.dish-modal .dish-modal-description {
  font-size: 14px;
  color: var(--mt20-text-soft);
  margin-bottom: 10px;
}

.dish-modal .dish-modal-price {
  font-size: 16px;
  font-weight: 600;
  color: var(--mt20-accent-strong);
}

.dish-modal .dish-modal-close-btn {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 20;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  border: none;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.dish-modal-bottom-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 16px 18px;
  background: var(--bg-wht-clr);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.25);
  z-index: 40;
}

.dish-modal-qty-box {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-radius: 999px;
  border: 1px solid var(--mt20-border-subtle);
  padding: 6px 10px;
  background: var(--mt20-bg-softer);
}

.dish-modal-qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: none;
  background: var(--mt20-card-bg);
  color: var(--mt20-text);
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.dish-modal-qty-value {
  min-width: 22px;
  text-align: center;
  font-weight: 500;
  color: var(--mt20-text);
}

.dish-modal-add-btn {
  flex: 1 1 auto;
  border-radius: 999px;
  border: none;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--mt20-tab-active-bg);
  color: var(--mt20-tab-active-text);
}

.dish-modal-add-price {
  font-weight: 600;
}

.menu-category-titles,
.menu-subcategory-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.menu-category-all-btn,
.menu-subcategory-all-btn {
  border: none;
  outline: none;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  color: #084db5;
  background-color: #e7f0ff;
}

.category-all-modal .category-all-modal-content {
  position: fixed;
  inset: 0;
  margin: 0;
  width: 100%;
  max-width: none;
  height: 100vh;
  border-radius: 0;
  padding: 0;
  background: var(--mt20-bg);
  display: flex;
  flex-direction: column;
}

.category-all-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px 8px;
  border-bottom: 1px solid var(--mt20-border-subtle);
}

.category-all-back-btn {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  border: none;
  background: rgba(15, 23, 42, 0.9);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

body.light-mode .category-all-back-btn {
  background: rgba(0, 0, 0, 0.06);
  color: #111;
}

.category-all-title {
  flex: 1;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--mt20-heading-color);
}

.category-all-header-spacer {
  width: 32px;
  height: 32px;
}

.category-all-list {
  flex: 1;
  padding: 10px 12px 18px;
  overflow-y: auto;
  scrollbar-width: none;
}

.category-all-list::-webkit-scrollbar {
  display: none;
}

.category-all-modal .menu-item-row {
  width: 100%;
  height: 205px;
  margin-bottom: 10px;
}

#cartBarCount,
#cartBarTotal {
  color: White;
  object-fit: cover;
}

.header-logo-wrapper {
  position: relative;
  left: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.header-subtitle {
  color: var(--mt20-categories-bg);
  margin: 0 auto;
}

.logo-status-btn {
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  cursor: default;
  display: inline-flex;
  border-radius: 999px;
}

.logo-image {
  width: 52px;
  height: 52px;
  object-fit: cover;
}

body.light-mode .logo-image {
  border-color: #fff;
}

.post-title {
  margin: 0;
  font-size: 22px;
  color: var(--mt20-categories-bg);
}

@keyframes mt21StatusBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

.status-modal .fullscreen-modal-content {
  padding: 0;
  background: #000;
}

.status-modal-content {
  position: relative;
  width: 100%;
  max-width: 480px;
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: #000;
  color: #fff;
}

.status-progress-wrap {
  display: flex;
  gap: 4px;
  padding: 10px 8px 6px;
}

.status-progress-segment {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  overflow: hidden;
}

.status-progress-fill {
  width: 0%;
  height: 100%;
  background: #fff;
  border-radius: inherit;
  transition: width 0.08s linear;
}

.status-image-wrapper {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 0 16px;
}

.status-image-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.status-touch-layer {
  position: absolute;
  inset: 0;
  background: transparent;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

.status-close-btn {
  position: absolute;
  top: 10px;
  left: 12px;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}

.theme20-banners-strip {
  display: flex;
  gap: 10px;
  padding: 10px 15px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.theme20-banners-strip::-webkit-scrollbar {
  display: none;
}

.theme20-banner-card {
  flex: 0 0 90px;
  height: 90px;
  cursor: pointer;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background: #111;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  transition: transform .2s, box-shadow .2s;
}

.theme20-banner-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}

.theme20-banner-img-wrap {
  width: 100%;
  height: 100%;
  position: relative;
}

.theme20-banner-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.theme20-banner-title {
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 4px;
  padding: 2px 4px;
  font-size: 10px;
  font-weight: 600;
  text-align: center;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  word-wrap: break-word;
}

.theme20-banner-modal {
  position: fixed;
  inset: 0;
  padding: 20px;
  background: rgba(0, 0, 0, 0.82);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10060;
  box-sizing: border-box;
}

.theme20-banner-modal-inner {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: 100%;
  background: #111;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
}

.theme20-banner-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: none;
  background: rgba(0, 0, 0, 0.9);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme20-banner-modal-image-wrap {
  width: 100%;
  max-height: 230px;
  overflow: hidden;
  background: #000;
  flex-shrink: 0;
}

.theme20-banner-modal-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.theme20-banner-modal-content {
  padding: 14px 14px 16px;
  color: #fff;
  overflow-y: auto;
}

.theme20-banner-modal-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  text-align: left;
}

.theme20-banner-box {
  background: #181818;
  border-radius: 12px;
  padding: 10px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.theme20-banner-subtitle {
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  color: #f5f5f5;
}

.theme20-banner-desc {
  font-size: 14px;
  line-height: 1.5;
  color: #cccccc;
  text-align: left;
}

.theme20-banner-price {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  text-align: left;
}

.theme20-banner-file {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(77, 163, 255, 0.5);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  background: rgba(77, 163, 255, 0.08);
  color: #4da3ff !important;
  text-decoration: none !important;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
  transition: all 0.2s ease;
}

.theme20-banner-file::before {
  content: "📎";
  font-size: 14px;
  line-height: 1;
}

.theme20-banner-file:hover {
  background: #4da3ff;
  color: #050816 !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  transform: translateY(-1px);
}

body[dark="dark"] .theme20-banner-modal-inner {
  background: #111;
  color: #fff;
}

body[dark="dark"] .theme20-banner-box {
  background: #181818;
  border-color: rgba(255, 255, 255, 0.12);
}

body[dark="dark"] .theme20-banner-desc {
  color: #ccc;
}

body[dark="dark"] .theme20-banner-price {
  color: #fff;
}

body[dark="dark"] .theme20-banner-file {
  background: rgba(77, 163, 255, 0.07);
  border-color: rgba(77, 163, 255, 0.55);
  color: #4da3ff !important;
}

body[dark="light"] .theme20-banner-modal-inner {
  background: #ffffff;
  color: #000;
}

body[dark="light"] .theme20-banner-box {
  background: #f7f7f7;
  border-color: #e3e3e3;
}

body[dark="light"] .theme20-banner-modal-title,
body[dark="light"] .theme20-banner-subtitle,
body[dark="light"] .theme20-banner-desc,
body[dark="light"] .theme20-banner-price {
  color: #000;
}

body[dark="light"] .theme20-banner-file {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 102, 204, 0.28);
  color: #0066cc !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

body[dark="light"] .theme20-banner-file:hover {
  background: #0066cc;
  color: #ffffff !important;
}

.home-subcategory-tabs-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.home-subcategory-layout-toggle {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light-clr, #fff);
  border: none;
  color: var(--txt-dark-clr, #1f1f1f);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.home-subcategory-layout-toggle:active {
  transform: scale(0.97);
}

.home-subcategory-layout-toggle .layout-icon {
  display: none;
}

.home-subcategory-layout-toggle .layout-icon-list {
  display: block;
}

body.menu-layout-grid .home-subcategory-layout-toggle .layout-icon-list {
  display: none;
}

body.menu-layout-grid .home-subcategory-layout-toggle .layout-icon-grid {
  display: block;
}

.home-subcategory-tabs-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  padding: 2px 2px 8px 2px;
  width: 100%;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.home-subcategory-tabs-scroll::-webkit-scrollbar {
  display: none;
}

.home-subcategory-tab {
  flex: 0 0 auto;
}

.lazy-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .18s ease;
}

.lazy-img.is-loaded {
  opacity: 1;
}

/* =========================================
   MENU ITEM - LIST VIEW (Default)
   ========================================= */

.menu-item-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 10px 4px;
}

.menu-item-row {
  display: flex;
  align-items: stretch;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  background: var(--mt20-card-bg, #fff);
  box-shadow: 0 6px 26px #3a3c3f1f;
  box-sizing: border-box;
}

/* Şəkil - List view: 86x86 kvadrat */
.menu-item-image-wrapper {
  flex: 0 0 86px;
  width: 86px;
  height: 86px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-trp-clr);
}

.menu-item-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Footer - List view: sağ tərəfdə column layout */
.menu-item-footer {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  gap: 4px;
}

/* Footer Main - Ad və Description */
.menu-item-footer-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Ad - List view: 1 sətir, overflow ellipsis */
.menu-item-name {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--txt-dark-clr);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Description - List view: 2 sətir */
.menu-item-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--mt20-text-soft, #6b7280);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Qty Badge - Price solda, Controls sağda */
.menu-item-qty-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--bg-gray-clr);
  border-radius: 10px;
  padding: 8px 10px;
  margin-top: auto;
  border: 1px solid var(--border-clr);
}

/* Price */
.menu-item-price {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--txt-dark-clr);
  white-space: nowrap;
}

/* Qty Controls Container */
.qty-badge-active {
    width:100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* Qty Buttons */
.qty-minus,
.qty-plus {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.qty-plus {
  background: transparent;
}

.qty-value {
  min-width: 20px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--txt-dark-clr);
}

/* is-empty state: minus və value gizli */
.menu-item-qty-badge.is-empty .qty-minus,
.menu-item-qty-badge.is-empty .qty-value {
  display: none;
}

/* is-active state: hamısı görünür */
.menu-item-qty-badge.is-active .qty-minus,
.menu-item-qty-badge.is-active .qty-value {
  display: flex;
}

.menu-item-qty-badge.is-active .qty-value {
  display: inline-block;
}

/* Minus disabled */
.qty-minus.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* =========================================
   MENU ITEM - GRID VIEW
   ========================================= */

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

@media (min-width: 768px) {
  body.menu-layout-grid .menu-item-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1100px) {
  body.menu-layout-grid .menu-item-list {
    grid-template-columns: repeat(4, 1fr);
  }
}

body.menu-layout-grid .menu-item-row {
  flex-direction: column;
  padding: 6px;
  gap: 8px;
  height: auto;
}

/* Şəkil - Grid view: tam en, aspect ratio */
body.menu-layout-grid .menu-item-image-wrapper {
  flex: none;
  width: 100%;
  height: 0;
  padding-top: 75%;
  position: relative;
  border-radius: 14px;
}

body.menu-layout-grid .menu-item-image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Footer - Grid view */
body.menu-layout-grid .menu-item-footer {
  flex: 1;
  padding: 4px 6px 6px;
}

/* Ad - Grid view: 2 sətir */
body.menu-layout-grid .menu-item-name {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 40px;
}

/* Description - Grid view: gizli */
body.menu-layout-grid .menu-item-desc {
  display: none;
}

/* Qty Badge - Grid view */
body.menu-layout-grid .menu-item-qty-badge {
  margin-top: 8px;
  padding: 6px 8px;
}
/* ==============================
   PRICE placement rules
   ============================== */

/* Default = layout */
.menu-item-price--inside {
    display: none;
}
.menu-item-price--outside {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

/* Grid mode: body-də class gələndə */
body.menu-layout-grid .menu-item-price--inside {
    display: inline-flex;
    align-items: center;
}
body.menu-layout-grid .menu-item-price--outside {
    display: none;
}

.no-ordering {
  padding:5px 0 5px 5px;
}

/* Grid mode + ordering disabled: show outside price */
body.menu-layout-grid .menu-item-footer-bottom.no-ordering .menu-item-price--outside {
  display: inline-flex;
  align-items: center;
}

/* Grid mode + qty active:
   + kliklənəndə price badge içində gizlənsin */
body.menu-layout-grid .menu-item-qty-badge.is-active .menu-item-price--inside {
    display: none !important;
}

/* Grid mode + qty active:
   badge bütün width-i tutsun */
body.menu-layout-grid .menu-item-qty-badge.is-active {
    width: 100% !important;
}
body.menu-layout-grid .menu-item-footer-bottom {
    width: 100%;
}

body.menu-layout-grid .menu-item-qty-badge {
    width:100%;
    max-width: 100%;
}
/* =========================================
   GRID STABILITY PATCH (fix uneven widths)
   ========================================= */

/* 1fr əvəzinə minmax(0,1fr) — uzun mətn/price problemi bitir */
body.menu-layout-grid .menu-item-list {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

@media (min-width: 768px) {
  body.menu-layout-grid .menu-item-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  body.menu-layout-grid .menu-item-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Grid item-ları zorla sütunu doldursun */
body.menu-layout-grid .menu-item-row {
  width: 100% !important;
  max-width: 100%;
  min-width: 0;
  justify-self: stretch;
  align-self: stretch;
  box-sizing: border-box;
}

/* Uzun ad/price grid hesabını pozmasın */
body.menu-layout-grid .menu-item-name,
body.menu-layout-grid .menu-item-price,
body.menu-layout-grid .menu-item-price--inside,
body.menu-layout-grid .menu-item-price--outside {
  min-width: 0;
}

body.menu-layout-grid .menu-item-name {
  word-break: break-word;
}

/* =========================================
   FIX: footer-bottom display override bug
   + GRID: price ilə + düyməsi space-between
   ========================================= */

/* footer-bottom həmişə row olsun */
.menu-item-footer-bottom{
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

/* price selector-ları düzgün yazılır */
.menu-item-footer-bottom .menu-item-price--outside,
.menu-item-footer-bottom {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  flex: 0 0 auto;
}

/* GRID mode: badge içində price solda, controls sağda */
body.menu-layout-grid .menu-item-qty-badge{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

/* GRID mode: controls container full width olmasın */
body.menu-layout-grid .menu-item-qty-badge .qty-badge-active{
  width: auto !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
  flex: 0 0 auto;
}

/* GRID + is-empty: yalnız + görünəndə onu sağa itələ */
body.menu-layout-grid .menu-item-qty-badge.is-empty .qty-plus{
  margin-left: auto;
}

/* GRID + is-empty: + düyməsini gizlət, yalnız qiymət qalsın */
body.menu-layout-grid .menu-item-qty-badge.is-empty .qty-badge-active{
  display: none !important;
}

/* footer-bottom stabil qalsın */
body.menu-layout-grid .menu-item-footer-bottom{
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

/* Grid-də badge footer-bottom-da sahəni rahat tutsun */
body.menu-layout-grid .menu-item-footer-bottom .menu-item-qty-badge{
  width: 100%;
  max-width: 100%;
}

/* ƏSAS HƏLL:
   - 1 + row tam enə yayılsın */
body.menu-layout-grid .menu-item-footer-bottom .qty-badge-active{
  width: 100% !important;
  display: flex !important;
  align-items: center;
  justify-content: space-between !important;
  gap: 0 !important;
}

/* ===== Crack Modal ===== */

.crack-modal-content{
    max-width: 520px;
    width: calc(100% - 28px);
    margin: 0 auto;
    border-radius: 18px;
    background: #fff;
    position: relative;
    padding: 18px 16px 22px;
    box-shadow: 0 10px 40px rgba(0,0,0,.12);
}

.crack-modal-inner{
    position: relative;
    text-align: center;
}

.crack-modal-close{
    position: absolute;
    top: 6px;
    right: 6px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: none;
    background: var(--bg-trp-clr);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

.crack-modal-hero img{
    width: 140px;
    height: auto;
    margin: 14px auto 10px;
    display: block;
}

.crack-modal-text{
    font-size: 16px;
    font-weight:700;
    color: var(--txt-dark-clr);
}

.crack-modal-again{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,.08);
    background: #f7f7f7;
    cursor: pointer;
    font-weight: 600;
}

.crack-modal-again:active{
    transform: translateY(1px);
}
/* ================================
   FULLSCREEN MODAL SLIDE-UP (2s)
   ================================ */

/* Əgər səndə .fullscreen-modal üçün display:none varsa,
   bunu ləğv etməlisən. Animasiya üçün overlay həmişə mövcud olsun. */
.fullscreen-modal{
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: flex;              /* vacib */
    justify-content: center;
    align-items: flex-end;      /* content aşağıdan qalxsın */

    /* overlay görünməsin */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: opacity .25s ease, visibility .25s ease;
}

/* Açıq vəziyyət */
.fullscreen-modal.is-open{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Content-in özünü aşağıdan gətiririk */
.fullscreen-modal .fullscreen-modal-content{
    width: 100%;
    max-height: 100%;
    transform: translateY(100%);
    transition: transform 1s ease; /* SƏNİN istədiyin 2 saniyə */
}

/* Açılarkən 0-a gəlir */
.fullscreen-modal.is-open .fullscreen-modal-content{
    transform: translateY(0);
}

/* Order modal-da dialog wrapper var, onu da animasiyaya qat */
.fullscreen-modal .fullscreen-modal-dialog{
    width: 100%;
    transform: translateY(100%);
    transition: transform 2s ease;
}
.fullscreen-modal.is-open .fullscreen-modal-dialog{
    transform: translateY(0);
}
/* ================================
   THEME20 BANNER MODAL SLIDE-UP
   ================================ */

.theme20-banner-modal{
    /* display: none ilə gizlətmə - JS idarə edəcək */
    align-items: flex-end; /* aşağıdan qalxsın */
}

.theme20-banner-modal-inner{
    transform: translateY(100%);
    transition: transform 1s ease;
}

/* JS .is-open verəndə inner yuxarı qalxsın */
.theme20-banner-modal.is-open .theme20-banner-modal-inner{
    transform: translateY(0);
}
/* ===== Language dropdown (replaces lang modal) ===== */
.lang-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.lang-dropdown-btn {
    gap: 6px;
}

.lang-flag {
    font-size: 14px;
    line-height: 1;
}

.lang-caret {
    font-size: 12px;
    opacity: 0.8;
    margin-left: 2px;
}

/* menu panel */
.lang-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--bg-wht-clr);
    border: 1px solid var(--border-clr);
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.08);
    padding: 6px;
    display: none;
    z-index: 9999;
}

.lang-dropdown.is-open .lang-dropdown-menu {
    display: block;
}

/* item */
.lang-dropdown-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    background: transparent;
    border: 0;
    cursor: pointer;
    text-align: left;
    font-family: var(--fnt-montserrat);
}

.lang-dropdown-item:hover {
    background: rgba(0,0,0,0.05);
}

.lang-dropdown-item.is-current {
    background: var(--bg-gray-clr);
}

.lang-dropdown-flag {
    font-size: 16px;
    line-height: 1;
}

.lang-dropdown-code {
    font-weight: 600;
}

.lang-dropdown-name {
    font-size: 12px;
    opacity: 0.8;
    margin-left: auto;
    margin-right: 6px;
}

.lang-dropdown-check {
    font-weight: 700;
    color: rgb(255, 161, 27);
}

.crack-modal {
    align-items:center;
}
/* =========================
   DISH MODAL QTY BADGE
   ========================= */

.dish-modal .dish-modal-bottom-bar{
    position: sticky;
    bottom: 0;
    background: var(--bg-wht-clr);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px solid var(--border-clr);
    z-index: 5;
}

/* Vahid qiymət */
.dish-modal .dish-modal-bottom-unit-price{
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

/* Badge container */
.dish-modal .dish-qty-badge{
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;

    height: 38px;
    min-width: 110px;
    padding: 4px 8px;

    border: 1px solid var(--border-clr);
    border-radius: 12px;
    background: var(--bg-gray-clr);

    flex: 0 0 auto; /* böyüyüb bütün yeri tutmasın */
}

/* Empty state */
.dish-modal .dish-qty-badge.is-empty{
    display:flex;
    justify-content: flex-end;
    opacity: 1;
    min-width: auto !important;
    border:none !important;
    background:transparent;
}

/* Buttons */
.dish-modal .dish-qty-btn{
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 0;
    background: var(--bg-wht-clr);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Value */
.dish-modal .dish-qty-value{
    min-width: 22px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    color: var(--txt-dark-clr);
}

/* Add button */
.dish-modal .dish-add-btn{
    height: 38px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid var(--border-clr);
    background: var(--bg-gray-clr);
    color: var(--txt-light-clr);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.dish-modal .dish-add-btn-price{
    font-weight: 700;
    white-space: nowrap;
}

/* ===== DISH MODAL 2-STEP ADD UI ===== */

#dishModal.dish-empty-state #dishModalAddBtn,
#dishModal.dish-empty-state #dishModalAddBtnPrice {
    display: none !important;
}

#dishModal.dish-empty-state .dish-qty-controls {
    display: none !important;
}

#dishModal.dish-empty-state .dish-qty-init-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid var(--border-clr);
    background: var(--bg-wht-clr);
    font-size: 22px;
    line-height: 1;
    font-weight: 600;
}

/* Qty aktiv olduqda */
#dishModal.dish-has-qty .dish-qty-init-btn {
    display: none !important;
}

#dishModal.dish-has-qty .dish-qty-controls {
    display: inline-flex !important;
    gap: 10px;
    align-items: center;
}

#dishModal.dish-has-qty #dishModalAddBtn,
#dishModal.dish-has-qty #dishModalAddBtnPrice {
    display: inline-flex !important;
}

/* =========================
   DISH IMAGE EXPAND BUTTON
   ========================= */
.dish-modal-image-wrapper {
    position: relative;
}

.dish-image-expand-btn {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.35);
    background: rgba(0,0,0,0.45);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: transform .15s ease, opacity .15s ease;
}

.dish-image-expand-btn:active {
    transform: scale(0.96);
}

.dish-image-expand-btn:hover {
    opacity: 0.9;
}


/* =========================
   DISH IMAGE VIEWER MODAL
   ========================= */
.dish-image-viewer-modal .dish-image-viewer-content {
    position: relative;
    width: 100%;
    height: 100%;
    background: #0f0f10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Close btn */
.dish-image-viewer-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.06);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

/* Image stage */
.dish-image-viewer-stage {
    position: relative;
    flex: 1;
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 52px 16px 90px; /* toolbar üçün alt boşluq */
}

#dishImageViewerImg {
    max-width: 100%;
    max-height: 100%;
    transform-origin: center center;
    will-change: transform;
    transition: transform 0.12s ease;
    user-select: none;
    -webkit-user-drag: none;
}

/* Toolbar */
.dish-image-viewer-toolbar {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;

    display: flex;
    gap: 8px;
    align-items: center;

    padding: 8px 10px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.viewer-btn {
    min-width: 44px;
    height: 34px;
    padding: 0 10px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    color: #fff;
    font-size: 13px;
    cursor: pointer;
}

.viewer-btn:active {
    transform: scale(0.98);
}

.viewer-sep {
    width: 1px;
    height: 18px;
    background: rgba(255,255,255,0.18);
    margin: 0 2px;
}

/* =========================
   MENU SEARCH DROPDOWN
========================= */
.home-search-wrap{
    position: relative;
}

.menu-search-dropdown{
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    z-index: 9999;

    background: var(--bg-wht-clr);
    border: 1px solid var(--border-clr);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);

    max-height: 320px;
    overflow: auto;

    padding: 6px;
}

/* item */
.menu-search-item{
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 8px 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: background .15s ease;
}

.menu-search-item:hover{
    background: var(--bg-gray-clr);
}

/* image */
.menu-search-item-img{
    width: 44px;
    height: 44px;
    border-radius: 10px;
    overflow: hidden;
    flex: 0 0 44px;
    background: var(--bg-gray-clr);
}

.menu-search-item-img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* text area */
.menu-search-item-body{
    flex: 1;
    min-width: 0;
}

.menu-search-item-name{
    font-size: 14px;
    font-weight: 600;
    color: var(--txt-dark-clr);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.menu-search-item-price{
    font-size: 12px;
    color: var(--txt-gray-clr);
    margin-top: 2px;
}

/* empty state */
.menu-search-empty{
    padding: 12px 10px;
    font-size: 13px;
    color: var(--txt-gray-clr);
}

/* optional highlight (istəsən) */
.menu-item-row.is-search-highlight{
    outline: 2px solid var(--bg-spcl-clr);
    outline-offset: 2px;
    border-radius: 12px;
}

/* Force price visibility in grid when ordering is disabled */
body.menu-layout-grid .menu-item-footer-bottom.no-ordering .menu-item-price--outside {
  display: inline-flex !important;
  align-items: center;
}
body.menu-layout-grid .menu-item-footer-bottom.no-ordering .menu-item-price--inside {
  display: none !important;
}
body.menu-layout-grid .menu-item-footer-bottom:not(.no-ordering) .menu-item-price--outside {
  display: none !important;
}
body.menu-layout-grid .menu-item-price--force {
  display: inline-flex !important;
  align-items: center;
}
