/* Base Styles */
.categoriesContainer {
  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: hidden;
  text-align: center;
  height: 96px;
  overflow-x: auto;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: position, transform, opacity, filter;
  transform-origin: top center;
  gap: 16px;
}

.cover {
  width: 100%;
  height: "auto";
  object-fit: cover;
}

.logo {
  position: absolute;
  left: 33px;
  top: -64px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid var(--background);
  z-index: 10;
  overflow: hidden;
}

.leftShape {
  position: absolute;
  top: 133px;
  width: 47px;
  height: 50px;
  left: -11px;
  background-color: var(--background);
  clip-path: path("M 0 53 Q 50 50, 50 0 Q 50 50, 100 100 L 0 100 Z");
}

:global(.darkApp) .leftShape {
  background-color: var(--background);
}

.rightShape {
  position: absolute;
  top: 133px;
  width: 47px;
  height: 50px;
  left: 102px;
  background-color: var(--background);
  clip-path: path("M 0 53 Q 50 50, 50 0 Q 50 50, 100 100 L 0 100 Z");
  transform: scale(-1, 1);
}

:global(.darkApp) .rightShape {
  background-color: var(--background);
}

/* Menu Section Styles */
.menuSection:first-child h3 {
  margin-top: 0px !important;
}

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

/* Menu Items Grid Styles */
.menuItemsGrid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr 1fr;
  margin-bottom: 10px;
}

.menuItemsGridMobile {
  gap: 12px;
  grid-template-columns: 1fr;
}

.menuItemsGridTablet {
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 0 24px;
  margin-bottom: 20px;
}

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

/* Restaurant Header Skeleton */
.restaurantHeader {
  position: relative;
  margin-bottom: 24px;
}

/* Restaurant Info Skeleton */
.restaurantInfoSkeleton {
  text-align: center;
  padding: 0 16px;
  margin-top: 10px;
}

/* Loyalty Card Skeleton */
.loyaltySkeleton {
  margin-bottom: 16px;
  padding: 0 16px;
}

.loyaltyCardSkeleton {
  height: 115px;
  border-radius: 16px;
}

.loyaltyCardSkeleton :global(.ant-card-body) {
  height: 115px;
  padding: 12px 16px !important;
}

/* Page Container */
.pageContainer {
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Skeleton Loading Styles */
.skeletonContainer {
  animation: skeletonPulse 1.5s ease-in-out infinite;
}

.skeletonContainer .ant-skeleton {
  transition: all 0.3s ease;
}

.skeletonContainer .ant-skeleton-image {
  border-radius: 8px;
  overflow: hidden;
}

.skeletonContainer .ant-skeleton-input {
  border-radius: 6px;
}

.skeletonContainer .ant-skeleton-button {
  border-radius: 20px;
}

@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;
  }
}

.skeletonContainer .ant-skeleton-active .ant-skeleton-input,
.skeletonContainer .ant-skeleton-active .ant-skeleton-image,
.skeletonContainer .ant-skeleton-active .ant-skeleton-button {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200px 100%;
  animation: skeletonShimmer 1.5s infinite;
}

/* Dark theme skeleton styles */
:global(.darkApp) .skeletonContainer .ant-skeleton-active .ant-skeleton-input,
:global(.darkApp) .skeletonContainer .ant-skeleton-active .ant-skeleton-image,
:global(.darkApp) .skeletonContainer .ant-skeleton-active .ant-skeleton-button {
  background: linear-gradient(90deg, #181818 25%, #363636 50%, #181818 75%);
  background-size: 200px 100%;
  animation: skeletonShimmer 1.5s infinite;
}

:global(.darkApp) .skeletonContainer .ant-skeleton-input,
:global(.darkApp) .skeletonContainer .ant-skeleton-image,
:global(.darkApp) .skeletonContainer .ant-skeleton-button {
  background-color: #181818;
  border-color: #363636;
}

/* ===== AGGREGATED MEDIA QUERIES ===== */

/* Mobile Styles (max-width: 768px) */
@media (max-width: 768px) {
  .skeletonContainer .ant-skeleton {
    margin-bottom: 12px;
  }

  .skeletonContainer .ant-skeleton-image {
    border-radius: 4px;
  }

  .skeletonContainer .ant-skeleton-input {
    border-radius: 4px;
  }

  .skeletonContainer .ant-skeleton-button {
    border-radius: 16px;
  }

  .menuItemsGrid {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
    margin-bottom: 10px;
  }
}

/* Tablet Styles (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .logo {
    left: 40px;
    width: 80px;
    height: 80px;
  }

  .categoriesContainer {
    height: 160px;
    padding: 0 24px;
    gap: 16px;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
  }

  .categoriesSticky {
    padding: 12px 16px !important;
    height: 70px !important;
  }

  .leftShape {
    top: 150px;
    left: -3px;
  }

  .rightShape {
    top: 150px;
    left: 116px;
  }

  .menuSection h3 {
    margin: 40px 0px 20px 0px;
    font-size: 24px;
  }

  .menuItemsGrid {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
    margin-bottom: 10px;
  }

  .restaurantInfoSkeleton {
    padding: 0 24px;
  }

  .loyaltySkeleton {
    padding: 0 24px;
  }

  .restaurantHeader {
    margin-bottom: 32px;
  }

  .skeletonContainer .ant-skeleton {
    margin-bottom: 16px;
  }

  .skeletonContainer .ant-skeleton-image {
    border-radius: 6px;
  }

  .skeletonContainer .ant-skeleton-input {
    border-radius: 5px;
  }

  .skeletonContainer .ant-skeleton-button {
    border-radius: 18px;
  }
}

/* Desktop Styles (min-width: 1025px) */
@media (min-width: 1025px) {
  .logo {
    left: 33px;
    top: 141px;
    width: 150px !important;
    height: 150px !important;
  }

  .categoriesContainer {
    height: 180px;
    padding: 0 24px;
    max-width: 1200px;
    margin: 0 auto;
    gap: 16px;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
  }

  .categoriesSticky {
    padding: 16px 24px !important;
    height: 70px !important;
    max-width: 100vw !important;
    margin: 0 !important;
  }

  .leftShape {
    top: 170px;
    left: -10px;
  }

  .rightShape {
    top: 170px;
    left: 185px;
  }

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

  .pageContainer {
    /* padding: 32px; */
    max-width: 1200px;
    margin: 0 auto;
  }

  .restaurantInfoSkeleton {
    padding: 0 32px;
  }

  .loyaltySkeleton {
    padding: 0 32px;
  }

  .restaurantHeader {
    margin-bottom: 40px;
  }
}

/* Large Desktop Styles (min-width: 1280px) */
@media (min-width: 1280px) {
  .menuItemsGridDesktop {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 0 20px;
    margin-bottom: 28px;
  }
}
