/* ==========================================================================
   MEGA MARKET ULTIMATE FOOD UI & SPEED STYLESHEET
   Sleek, Appetizing, High-Performance Responsive Grid & Hero Experience
   ========================================================================== */

:root {
  --mm-primary: #ff4757;
  --mm-primary-hover: #ff6b81;
  --mm-accent: #ffa502;
  --mm-dark: #2f3542;
  --mm-light-bg: #f8f9fa;
  --mm-card-bg: #ffffff;
  --mm-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --mm-shadow-md: 0 6px 20px rgba(0, 0, 0, 0.08);
  --mm-shadow-hover: 0 12px 28px rgba(0, 0, 0, 0.12);
  --mm-radius-sm: 10px;
  --mm-radius-md: 16px;
  --mm-radius-lg: 24px;
}

/* --- Global Clean Spacing & Typography --- */
body {
  font-family: 'Poppins', 'Open Sans', system-ui, -apple-system, sans-serif;
  background-color: #f4f6f8;
  color: #333;
}

/* --- Hero Section & Banners --- */
.restaurant_hero_box {
  position: relative;
  border-radius: var(--mm-radius-lg);
  overflow: hidden;
  box-shadow: var(--mm-shadow-md);
  margin-bottom: 24px;
  background: #fff;
}

.restaurant_hero_cover {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background-size: cover;
  background-position: center;
  position: relative;
}

@media (min-width: 992px) {
  .restaurant_hero_cover {
    height: 320px;
  }
}

.restaurant_hero_overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.7) 100%);
}

.restaurant_profile_card {
  position: relative;
  margin-top: -60px;
  padding: 0 20px 20px 20px;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.restaurant_profile_thumb {
  width: 100px;
  height: 100px;
  border-radius: var(--mm-radius-md);
  border: 4px solid #fff;
  box-shadow: var(--mm-shadow-md);
  object-fit: cover;
  background: #fff;
}

@media (min-width: 992px) {
  .restaurant_profile_thumb {
    width: 130px;
    height: 130px;
    border-radius: var(--mm-radius-lg);
  }
}

.restaurant_profile_info {
  flex: 1;
  min-width: 240px;
  color: var(--mm-dark);
}

.restaurant_profile_info h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: #1a1a1a;
}

/* Status & Cuisine Badges */
.badge_status_open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(46, 213, 115, 0.15);
  color: #2ed573;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.badge_status_closed {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 71, 87, 0.15);
  color: #ff4757;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* --- Category Navigation Bar (Pill Bar) --- */
.category_sticky_bar {
  position: sticky;
  top: 60px;
  z-index: 99;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  margin-bottom: 24px;
}

.category_pills_wrapper {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 4px 2px;
}

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

.cat_pill_item {
  white-space: nowrap;
  padding: 8px 18px;
  border-radius: 30px;
  background: #f1f2f6;
  color: var(--mm-dark);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.25s ease;
  cursor: pointer;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cat_pill_item:hover, .cat_pill_item.active {
  background: var(--mm-primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 71, 87, 0.3);
  transform: translateY(-1px);
}

/* --- Appetizing Food Grid (Mega Market Experience) --- */
.items_row {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px !important;
  margin-bottom: 30px;
}

@media (max-width: 576px) {
  .items_row {
    grid-template-columns: repeat(1, 1fr) !important;
    gap: 14px !important;
  }
}

@media (min-width: 1200px) {
  .items_row {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 22px !important;
  }
}

/* Food Card Design */
.modern_item_card {
  background: #ffffff;
  border-radius: var(--mm-radius-md);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--mm-shadow-sm);
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.modern_item_card:hover {
  transform: translateY(-4px);
  box-shadow: var(--mm-shadow-hover);
  border-color: rgba(255, 71, 87, 0.2);
}

/* Item Image Box */
.item_img_box {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  cursor: pointer;
  background: #f1f2f6;
}

.item_img_box img, .item_img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.modern_item_card:hover .item_img {
  transform: scale(1.06);
}

/* Badges */
.new_badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--mm-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Item Details */
.item_details {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.item_title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 6px;
  line-height: 1.3;
}

.item_desc {
  font-size: 0.85rem;
  color: #747d8c;
  line-height: 1.4;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.item_price_action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed #f1f2f6;
}

.item_price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--mm-primary);
}

/* Modern Add Button */
.add_btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--mm-primary);
  color: #ffffff !important;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 20px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(255, 71, 87, 0.25);
  text-decoration: none !important;
}

.add_btn:hover {
  background: var(--mm-primary-hover);
  transform: scale(1.04);
}

/* --- Section Headings --- */
.singleCategoryHeader {
  margin: 30px 0 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #f1f2f6;
  padding-bottom: 8px;
}

.singleCategoryHeader h4 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #2f3542;
  position: relative;
}

.singleCategoryHeader h4::after {
  content: '';
  position: absolute;
  bottom: -10px;
  right: 0;
  width: 50px;
  height: 3px;
  background: var(--mm-primary);
  border-radius: 2px;
}
