.container {
  display: flex;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  position: sticky;
  top: 0;
  background: var(--ant-bg-container);
  z-index: 10;
  border-bottom: 1px solid var(--ant-color-border);
  overflow: auto;
  transition: all 0.3s ease;
}

.container::-webkit-scrollbar {
  display: none;
}

.menuSections {
  margin-bottom: 105px !important;
  display: flex;
  flex-direction: column;
  padding: 0 1rem;
}

.menuSection:first-child h3 {
  margin-top: 0 !important;
}

.menuSection h3 {
  margin: 30px 0 15px 0;
  transition: color 0.3s ease;
}

.menuItemsGrid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Enhanced responsive menu section headers */
@media (min-width: 769px) and (max-width: 1024px) {
  .menuSection h3 {
    margin: 40px 0 20px 0;
    font-size: 24px;
  }

  .menuItemsGrid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 20px;
  }
}

@media (min-width: 1025px) {
  .menuSections {
    padding: 0;
  }

  .menuSection h3 {
    margin: 50px 0 25px 0;
    font-size: 28px;
  }

  .menuItemsGrid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 24px;
    grid-auto-rows: 1fr;
  }
}

/* Enhanced responsive menu items grid */
@media (min-width: 1280px) {
  .menuItemsGrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 28px;
    grid-auto-rows: 1fr;
  }
}

.popularMenuItemsGrid {
  display: flex;
  gap: 16px;
  overflow-x: hidden;
  scroll-behavior: smooth;
  padding: 8px 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.popularMenuItemsGrid::-webkit-scrollbar {
  display: none;
}

.menuItemImage {
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
  overflow: hidden;
}

.menuItemImage:hover {
  transform: scale(1.05);
}

/* Enhanced responsive menu item images */
@media (min-width: 769px) and (max-width: 1024px) {
  .menuItemImage {
    border-radius: 12px;
  }
}

@media (min-width: 1025px) {
  .menuItemImage {
    border-radius: 16px;
  }
}

.menuItemDetails {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .container {
    gap: 4px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    gap: 12px;
  }
}

.pageContainer {
  padding: 0 16px;
  transition: all 0.3s ease;
}

/* Enhanced responsive page container */
@media (min-width: 769px) and (max-width: 1024px) {
  .pageContainer {
    padding: 0 24px;
  }
}

@media (min-width: 1025px) {
  .pageContainer {
    padding: 0 32px;
    max-width: 1200px;
    margin: 0 auto;
  }
}

/* Sidebar state adjustments */
.sidebarCollapsed .pageContainer {
  margin-left: 80px;
}

.sidebarExpanded .pageContainer {
  margin-left: 200px;
}

@media (max-width: 768px) {
  .sidebarCollapsed .pageContainer,
  .sidebarExpanded .pageContainer {
    margin-left: 0;
  }
}

/* Enhanced Dark theme styles */
:global(.darkApp) .itemName {
  color: rgba(255, 255, 255, 0.95) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  transition: color 0.3s ease;
}

:global(.darkApp) .itemName:hover {
  color: var(--primary) !important;
}

:global(.darkApp) .itemDescription {
  color: rgba(255, 255, 255, 0.75) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

:global(.darkApp) .itemPrice {
  color: var(--primary) !important;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Enhanced dark theme for menu sections */
:global(.darkApp) .menuSection h3 {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

:global(.darkApp) .menuSection {
  background-color: #0a0a0a;
  color: #ffffff;
}

/* Enhanced dark theme for menu items */
:global(.darkApp) .menuItem {
  background-color: #181818 !important;
  border-color: #363636 !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

:global(.darkApp) .menuItem:hover {
  background-color: #363636 !important;
  border-color: #424242 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

/* Enhanced dark theme for popular menu items */
:global(.darkApp) .popularMenuItem {
  background-color: #181818 !important;
  border-color: #363636 !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

:global(.darkApp) .popularMenuItem:hover {
  background-color: #363636 !important;
  border-color: #424242 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

@keyframes activePulse {
  0%,
  100% {
    opacity: 0.1;
  }
  50% {
    opacity: 0.2;
  }
}

@keyframes darkActivePulse {
  0%,
  100% {
    opacity: 0.05;
  }
  50% {
    opacity: 0.15;
  }
}

@keyframes cardEntrance {
  0% {
    transform: translateY(20px) scale(0.95);
    opacity: 0.8;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes cardReturn {
  0% {
    transform: translateY(-5px) scale(0.98);
    opacity: 0.9;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

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

/* Enhanced dark theme animations */
:global(.darkApp) .menuItem,
:global(.darkApp) .popularMenuItem {
  animation: fadeInUp 0.3s ease-out;
}

/* Smooth transitions for all elements */
.container *,
.menuItem *,
.popularMenuItem * {
  transition: all 0.3s ease;
}

/* Enhanced responsive menu item cards */
@media (min-width: 769px) and (max-width: 1024px) {
  .menuItem {
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
  }

  .menuItem:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15) !important;
  }
}

@media (min-width: 1025px) {
  .menuItem {
    border-radius: 16px !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1) !important;
  }

  .menuItem:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
  }
}

/* Enhanced responsive focus states */
.menuItem:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

@media (min-width: 768px) {
  .menuItem:focus {
    outline-offset: 4px;
  }
}

/* Enhanced responsive print styles */
@media print {
  .menuItem {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
  }
}

@keyframes skeletonPulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
  100% {
    opacity: 1;
  }
}

@keyframes skeletonShimmer {
  0% {
    background-position: -200px 0;
  }
  100% {
    background-position: calc(200px + 100%) 0;
  }
}

.menuItemsGridSticky {
  height: 60;
}

/* Enhanced dark theme for container backgrounds */
:global(.darkApp) .container {
  background-color: #0a0a0a !important;
  border-bottom-color: #363636 !important;
}

.categoryMenuItemImage {
  width: 100%;
  object-fit: cover;
  border-radius: 8px;
  text-align: center;
  overflow: hidden;
}
