/* Menu Template Styles */

/* CSS Variables - will be injected dynamically */
:root {
  --primary-color: #e25621;
  --primary-light: #ff8a50;
  --text-dark: #333333;
  --text-light: #666666;
}

/* Base Styles */
body {
  font-family: 'Tajawal', sans-serif;
  background-color: #f8f8f8;
  color: var(--text-dark);
  overflow-x: hidden;
}

[dir="rtl"] {
  font-family: 'Tajawal', sans-serif;
}

[dir="ltr"] {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 10px;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(100%);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

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

/* Language Switch */
.lang-switch {
  position: relative;
  display: flex;
  width: 120px;
  height: 30px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  cursor: pointer;
  overflow: hidden;
}

.lang-switch span {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
  z-index: 1;
}

.lang-switch .slider {
  position: absolute;
  top: 2px;
  bottom: 2px;
  width: calc(100% / 3 - 4px);
  background-color: white;
  border-radius: 13px;
  transition: all 0.3s ease;
}

/* Positions for different languages */
[lang="ar"] .lang-switch .slider {
  right: 2px;
  left: auto;
  transform: translateX(0);
}

[lang="ku"] .lang-switch .slider {
  right: calc(100% / 3 + 2px);
  left: auto;
}

[lang="en"] .lang-switch .slider {
  left: 2px;
  right: auto;
  transform: translateX(200%);
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

.animate-bounce {
  animation: bounce 1s infinite;
}

/* Transition Effects */
.transition-smooth {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.transition-all-slow {
  transition: all 0.5s ease;
}

/* Skeleton Loading Styles */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-card {
  background: white;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.skeleton-image {
  width: 100%;
  height: 192px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.skeleton-text {
  height: 20px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.skeleton-text.short {
  width: 60%;
}

.skeleton-text.medium {
  width: 80%;
}

/* Loader Styles */
.loader-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: white;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.loader-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  animation: pulse 1.5s infinite;
  border-radius: 50%;
}

.loader-bar {
  width: 200px;
  height: 6px;
  background-color: #f0f0f0;
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.loader-progress {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

/* Ads slider */
.ads-slider-shell {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
  background: #fff;
}

.ads-slider-track {
  display: flex;
  transition: transform 0.45s ease;
  will-change: transform;
}

.ads-slide {
  min-width: 100%;
  position: relative;
  height: clamp(170px, 30vw, 230px);
}

.ads-slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ads-slide-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 45%, #c2410c 100%);
  color: rgba(255, 255, 255, 0.9);
  font-size: 34px;
}

.ads-slide-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 12px 14px 14px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.72) 78%);
  color: #fff;
}

.ads-slide-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.ads-slide-caption {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 600;
}

.ads-slide-cta {
  display: inline-flex;
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  color: #111827;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.ads-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: none;
  background: rgba(15, 23, 42, 0.42);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
  z-index: 3;
}

.ads-nav-btn:hover {
  background: rgba(15, 23, 42, 0.62);
}

.ads-nav-prev {
  left: 10px;
}

.ads-nav-next {
  right: 10px;
}

.ads-slider-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  display: flex;
  gap: 6px;
  justify-content: center;
  z-index: 3;
}

.ads-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
}

.ads-slider-dot.active {
  width: 18px;
  background: #fff;
}

/* Search + category tabs visual refinement */
#search-section {
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
  background: #ffffff;
}

#search-bar {
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: #f9fafb;
}

#search-bar:focus {
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(226, 86, 33, 0.1);
}

#search-suggestions {
  border-radius: 12px;
  border-color: rgba(148, 163, 184, 0.25);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
}

#search-keyword-chips button {
  border-radius: 9999px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

#category-tabs-wrap {
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
  padding: 8px 8px 4px;
}

.tab-button {
  min-width: 82px;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: #ffffff;
  box-shadow: 0 1px 6px rgba(15, 23, 42, 0.04);
}

.tab-button:hover {
  transform: translateY(-1px);
  border-color: rgba(226, 86, 33, 0.25);
  box-shadow: 0 7px 16px rgba(226, 86, 33, 0.1);
}

.tab-button.active {
  color: var(--primary-color);
  border-color: rgba(226, 86, 33, 0.3);
  background: linear-gradient(180deg, rgba(226, 86, 33, 0.11), rgba(226, 86, 33, 0.04));
  box-shadow: 0 8px 14px rgba(226, 86, 33, 0.12);
}

.tab-button > div {
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: #fff;
}

/* Dish Card Styles */
.dish-card {
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  border: 1px solid rgba(15, 23, 42, 0.08);
  transform: translateY(0);
  box-shadow: 0 5px 14px rgba(15, 23, 42, 0.07);
}

.dish-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
  z-index: 10;
}

.dish-content {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1 1 auto;
}

.dish-name {
  line-height: 1.35;
  line-clamp: 2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.35em * 2);
}

.dish-summary {
  line-height: 1.45;
  color: #64748b;
  line-clamp: 2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dish-meta {
  margin-top: auto;
}

.dish-price {
  letter-spacing: 0.1px;
}

.dish-card.selected {
  border: 1px solid var(--primary-color);
  box-shadow: 0 0 0 2px rgba(226, 86, 33, 0.2);
  transform: translateY(-1px);
}

.dish-card.search-match {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(226, 86, 33, 0.16);
}

.dish-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 15px;
  opacity: 0;
  transition: opacity 0.3s ease;
  text-align: center;
}

.dish-card:hover .dish-overlay {
  opacity: 1;
}

@media (hover: none) {
  .dish-overlay {
    opacity: 0 !important;
    pointer-events: none;
  }
}

/* Customization modal */
.customization-modal-shell {
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.22);
}

.customization-modal-enter {
  animation: customizationModalIn 180ms cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}

.customization-modal-leave {
  animation: customizationModalOut 170ms ease forwards;
}

@keyframes customizationModalIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes customizationModalOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
}

.customization-modal-header {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--primary-color) 92%, #000 8%) 0%, color-mix(in srgb, var(--primary-color) 70%, #4f46e5 30%) 100%);
}

.customization-price-chip {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.customization-submit-btn {
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary-color) 92%, #000 8%) 0%, color-mix(in srgb, var(--primary-color) 68%, #1d4ed8 32%) 100%);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--primary-color) 28%, transparent);
}

.customization-submit-btn:hover {
  transform: translateY(-1px);
}

.customization-footer {
  background: #fff;
}

.customization-category-card {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  padding: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.customization-option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 11px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #fff;
}

.customization-option-row:hover {
  border-color: color-mix(in srgb, var(--primary-color) 42%, #94a3b8);
  background: color-mix(in srgb, var(--primary-color) 4%, #ffffff);
}

.customization-option-row:has(input:checked) {
  border-color: color-mix(in srgb, var(--primary-color) 58%, #94a3b8);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary-color) 16%, transparent);
  background: color-mix(in srgb, var(--primary-color) 6%, #ffffff);
}

.customization-option-pulse {
  animation: customizationOptionPulse 240ms ease;
}

@keyframes customizationOptionPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.012);
  }
  100% {
    transform: scale(1);
  }
}

@media (max-width: 640px) {
  .customization-modal-shell {
    max-height: 92vh;
  }

  .customization-footer {
    position: sticky;
    bottom: 0;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(148, 163, 184, 0.28);
    box-shadow: 0 -8px 18px rgba(15, 23, 42, 0.06);
  }
}

/* Drawer Navigation */
.drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 320px;
  height: 100vh;
  background: white;
  z-index: 1000;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease;
  overflow-y: auto;
}

.drawer-open {
  right: 0;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.overlay-active {
  opacity: 1;
  pointer-events: auto;
}

/* Floating Cart Button */
.floating-cart-btn {
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.floating-cart-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.floating-cart-btn:active {
  transform: translateY(0) scale(0.98);
}

/* Phone Call Button Animation */
@keyframes phonePulse {
  0%, 100% {
    box-shadow: 0 6px 15px rgba(59, 130, 246, 0.4);
  }
  50% {
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6), 0 0 0 10px rgba(59, 130, 246, 0.1);
  }
}

@keyframes phoneRing {
  0%, 100% {
    transform: rotate(0deg);
  }
  10%, 30%, 50%, 70% {
    transform: rotate(-15deg);
  }
  20%, 40%, 60% {
    transform: rotate(15deg);
  }
  80% {
    transform: rotate(0deg);
  }
}

.floating-cart-btn.phone-btn {
  animation: phonePulse 2s infinite;
}

.floating-cart-btn.phone-btn:hover i {
  animation: phoneRing 1s ease-in-out;
}

/* Quantity Selector */
.quantity-selector {
  transition: all 0.3s ease;
  display: none;
}

.quantity-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f0f0f0;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quantity-btn:hover {
  background-color: #e0e0e0;
}

.quantity-btn:active {
  transform: scale(0.9);
}

.quantity-number {
  min-width: 25px;
  text-align: center;
  font-weight: 500;
}

.dish-card.selected .quantity-selector {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Navbar Gradient */
.navbar-gradient {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
}

/* Footer Social Icons */
.social-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-3px);
}

/* Responsive Grid */
@media (min-width: 640px) {
  .grid-responsive {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

@media (min-width: 1024px) {
  .grid-responsive {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Dark Mode Support - Auto */
@media (prefers-color-scheme: dark) {
  body.auto-theme {
    background-color: #1a1a1a;
    color: #e0e0e0;
  }
  
  body.auto-theme .dish-card {
    background-color: #2a2a2a;
    border-color: rgba(255, 255, 255, 0.1);
  }
  
  body.auto-theme .bg-white {
    background-color: #2a2a2a !important;
  }
  
  body.auto-theme .text-gray-800 {
    color: #e0e0e0 !important;
  }
  
  body.auto-theme .text-gray-600 {
    color: #b0b0b0 !important;
  }
  
  body.auto-theme .border-gray-200 {
    border-color: #404040 !important;
  }
}

/* Dark Mode - Manual Toggle */
body.dark-mode {
  background-color: #1a1a1a;
  color: #e0e0e0;
}

body.dark-mode .dish-card {
  background-color: #2a2a2a;
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .bg-white {
  background-color: #2a2a2a !important;
  color: #e0e0e0 !important;
}

body.dark-mode .text-gray-800,
body.dark-mode .text-gray-700,
body.dark-mode .text-gray-600,
body.dark-mode .text-gray-500 {
  color: #e0e0e0 !important;
}

body.dark-mode input,
body.dark-mode textarea {
  background-color: #333;
  color: #e0e0e0;
  border-color: #444;
}

body.dark-mode .drawer {
  background: #2a2a2a;
}

body.dark-mode .drawer h4 {
  color: #e0e0e0;
  border-color: #404040;
}

body.dark-mode .drawer a {
  color: #e0e0e0;
}

body.dark-mode .drawer a:hover {
  background-color: #353535;
}

body.dark-mode #dark-mode-toggle {
  background-color: transparent;
}

body.dark-mode #dark-mode-toggle:hover {
  background-color: #353535;
}

body.dark-mode .loader-container {
  background-color: #1a1a1a;
}

body.dark-mode .skeleton {
  background: linear-gradient(90deg, #2a2a2a 25%, #3a3a3a 50%, #2a2a2a 75%);
  background-size: 200% 100%;
}

body.dark-mode .skeleton-card {
  background: #2a2a2a;
}

body.dark-mode .quantity-btn {
  background-color: #444;
  color: #fff;
}

body.dark-mode .quantity-btn:hover {
  background-color: #555;
}

body.dark-mode ::-webkit-scrollbar-track {
  background: #2a2a2a;
}

/* Dark Mode Toggle Switch in Drawer */
#dark-mode-slider {
  background-color: #cbd5e0;
}

body.dark-mode #dark-mode-slider {
  background-color: var(--primary-color);
}

#dark-mode-dot {
  transition: transform 0.3s ease;
}

body.dark-mode #dark-mode-dot {
  transform: translateX(24px);
}

body.dark-mode #search-section {
  background: #2b2b2b;
  border-color: #4b5563;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
}

body.dark-mode .ads-slider-shell {
  background: #1f2937;
  border-color: #374151;
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.35);
}

body.dark-mode .ads-slide-fallback {
  background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
}

body.dark-mode #search-bar {
  background: #1f2937;
  border-color: #4b5563;
  color: #f3f4f6;
}

body.dark-mode #search-suggestions {
  background: #111827;
  border-color: #374151;
}

body.dark-mode #search-suggestions button {
  color: #f3f4f6;
}

body.dark-mode #search-suggestions button:hover {
  background: #1f2937;
}

body.dark-mode #category-tabs-wrap {
  background: #252f3f;
  border-color: #374151;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.3);
}

body.dark-mode .tab-button {
  background: #111827;
  border-color: #374151;
  color: #f3f4f6;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

body.dark-mode .tab-button > div {
  background: #1f2937;
  border-color: #4b5563;
}

body.dark-mode .tab-button.active {
  border-color: rgba(226, 86, 33, 0.45);
  background: linear-gradient(180deg, rgba(226, 86, 33, 0.18), rgba(226, 86, 33, 0.08));
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Loading Overlay for API Calls */
.api-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
}

.api-loading-overlay.active {
  display: flex;
}

.api-loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.api-loading-text {
  color: white;
  font-size: 18px;
  font-weight: 500;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Error & Success Messages */
.error-message {
  background: #fee;
  border: 1px solid #fcc;
  color: #c33;
  padding: 12px 16px;
  border-radius: 8px;
  margin: 10px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInDown 0.3s ease;
}

.error-message i {
  font-size: 20px;
}

.success-message {
  background: #efe;
  border: 1px solid #cfc;
  color: #3c3;
  padding: 12px 16px;
  border-radius: 8px;
  margin: 10px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInDown 0.3s ease;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translate(-50%, -20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* Improve Responsive for Small Devices */
@media (max-width: 480px) {
  .floating-cart-btn {
    width: 56px;
    height: 56px;
    font-size: 20px;
  }
  
  #cart-icon {
    bottom: 20px;
    left: 20px;
  }
  
  .phone-btn {
    bottom: 20px !important;
    left: 20px !important;
    right: auto !important;
  }
  
  .grid-responsive {
    grid-template-columns: 1fr !important;
  }

  #search-section {
    margin-right: 12px;
    margin-left: 12px;
    padding: 10px;
    border-radius: 14px;
  }

  #search-bar {
    font-size: 14px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  #category-tabs-wrap {
    padding: 6px 6px 3px;
    border-radius: 12px;
  }

  .tab-button {
    min-width: 72px;
    padding: 7px 8px;
    border-radius: 12px;
  }

  .tab-button span {
    font-size: 12px;
  }

  .tab-button > div {
    width: 52px !important;
    height: 52px !important;
    margin-bottom: 6px !important;
  }

  .tab-button > div img {
    width: 30px !important;
    height: 30px !important;
  }

  .dish-card .p-4 {
    padding: 0.75rem !important;
  }

  .dish-card .dish-name {
    font-size: 0.95rem;
    line-height: 1.3;
    min-height: calc(1.3em * 2);
  }

  .dish-card .dish-summary {
    font-size: 0.78rem;
    line-height: 1.35;
  }

  .dish-card .h-48 {
    height: 9.75rem !important;
  }

  .ads-slide {
    height: 170px;
  }

  .ads-slide-caption {
    font-size: 13px;
  }

  .ads-nav-btn {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 768px) {
  .floating-cart-btn {
    width: 58px;
    height: 58px;
    font-size: 20px;
  }

  #cart-icon {
    bottom: 16px;
    left: 16px;
  }

  .phone-btn {
    bottom: 16px !important;
    left: 16px !important;
    right: auto !important;
  }
}

/* Accessibility Improvements */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Enhanced Focus Styles */
*:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
  border-radius: 4px;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 3px;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Print Styles */
@media print {
  .floating-cart-btn,
  .drawer,
  nav,
  footer,
  #dark-mode-toggle {
    display: none !important;
  }
}

/* Order location map */
.order-location-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
  background: #f9fafb;
}

.order-map-container {
  width: 100%;
  height: 220px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  overflow: hidden;
}

body.dark-mode .order-location-card {
  background: #2f2f2f;
  border-color: #4b5563;
}

body.dark-mode .order-map-container {
  border-color: #4b5563;
}

#discount-code-block input {
  font-size: 13px;
}

#discount-feedback {
  line-height: 1.35;
}

#price-breakdown,
#order-discount-summary {
  border-radius: 10px;
}

body.dark-mode #discount-code-block input {
  background: #1f2937;
  border-color: #4b5563;
  color: #f3f4f6;
}

body.dark-mode #price-breakdown,
body.dark-mode #order-discount-summary {
  background: #1f2937 !important;
  border-color: #374151 !important;
}

body.dark-mode #price-breakdown span,
body.dark-mode #order-discount-summary span {
  color: #e5e7eb;
}
