
/* MARIO FOODLY PRO - Modern Design System 2024 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Noto+Sans+Georgian:wght@400;500;600;700&display=swap');

:root {
  /* Brand Colors */
  --primary: #3B82F6;
  --primary-dark: #1E40AF;
  --secondary: #10B981;
  --accent: #F59E0B;
  --danger: #EF4444;
  --warning: #F59E0B;
  --success: #10B981;
  
  /* Neutral Colors */
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --gray-900: #0F172A;
  
  /* Design System */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #3B82F6 0%, #1E40AF 100%);
  --gradient-success: linear-gradient(135deg, #10B981 0%, #059669 100%);
  --gradient-card: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
}

/* Global Styles */
html, body {
  font-family: 'Inter', 'Noto Sans Georgian', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
  line-height: 1.6;
}

/* Modern Header */
.modern-header .main-bar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.brand-title {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.action-btn .btn {
  transition: all 0.2s ease;
  border-width: 1.5px;
}

.action-btn .btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

/* Modern Menubar */
.modern-menubar {
  background: white;
  border-top: 1px solid var(--gray-200);
  padding: 8px 0;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.menubar-nav {
  padding: 0 16px;
}

.modern-nav-item {
  color: var(--gray-600);
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 8px 12px;
  border-radius: var(--radius-lg);
  min-width: 70px;
}

.modern-nav-item:hover {
  color: var(--primary-600);
  background: var(--primary-50);
}

.nav-icon-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 4px;
  height: 32px;
  width: 32px;
  margin: 0 auto 4px auto;
}

.nav-label {
  font-size: 11px;
  font-weight: 500;
  display: block;
}

.home-btn-circle {
  width: 32px;
  height: 32px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}

.home-btn-circle i {
  font-size: 14px !important;
}

.modern-nav-item.active .home-btn-circle {
  transform: scale(1.1);
  box-shadow: var(--shadow-xl);
}

.nav-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Modern Cards */
.card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--gray-300);
}

.card-img-top {
  transition: transform 0.4s ease;
}

.card:hover .card-img-top {
  transform: scale(1.05);
}

/* Like Button */
.like-btn {
  transition: all 0.2s ease;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.like-btn:hover {
  transform: scale(1.1);
  background: var(--danger) !important;
  color: white !important;
}

.like-btn:hover i {
  color: white !important;
}

/* Sale Badge */
.badge.bg-danger {
  background: var(--gradient-primary) !important;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Price Section */
.price-section .h5 {
  color: var(--success);
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Rating Badge */
.badge.bg-warning {
  background: var(--gradient-success) !important;
  color: white !important;
  font-weight: 600;
}

/* Modern Modal */
.modal-content {
  border: none;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.modal-header {
  background: var(--gradient-card);
  border-bottom: 1px solid var(--gray-200);
}

.modal-title {
  color: var(--gray-800);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.btn-close {
  background: var(--gray-100);
  border-radius: 50%;
  opacity: 0.8;
  transition: all 0.2s ease;
}

.btn-close:hover {
  background: var(--gray-200);
  transform: scale(1.1);
  opacity: 1;
}

/* Modern Buttons */
.btn-primary {
  background: var(--gradient-primary);
  border: none;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Modern Search Bar */
.modern-search {
  padding: 20px 0;
}

.search-input-group {
  position: relative;
  display: flex;
  align-items: center;
  background: white;
  border: 2px solid var(--gray-200);
  border-radius: 50px;
  padding: 4px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.search-input-group:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
  transform: translateY(-1px);
}

.search-icon-wrapper {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modern-search-input {
  border: none;
  background: transparent;
  padding: 12px 8px;
  font-size: 16px;
  font-weight: 500;
  flex: 1;
  outline: none;
  box-shadow: none !important;
}

.modern-search-input::placeholder {
  color: var(--gray-400);
  font-weight: 400;
}

.search-submit-btn {
  background: var(--gradient-primary);
  border: none;
  border-radius: 50px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.2s ease;
  box-shadow: var(--shadow);
}

.search-submit-btn:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

/* Categories - Modern Chips */
.categories-box {
  background: var(--gray-50);
  padding: 16px 12px;
  border-radius: var(--radius-lg);
  margin: 16px 0;
  box-shadow: var(--shadow-sm);
}

.categories-box .swiper {
  overflow: visible;
}

.categories-box .swiper-slide {
  width: auto !important;
}

.categore-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  height: 44px;
  min-width: 120px;
  max-width: 180px;
  background: white;
  border: 2px solid var(--gray-200);
  color: var(--gray-700);
  border-radius: 22px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.categore-box:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  background: var(--primary);
  color: white !important;
}

.categore-box h6 {
  color: inherit !important;
  margin: 0;
  font-weight: 500;
}

/* Title Bars */
.title-bar {
  margin: 24px 0 16px 0;
}

.title-bar .title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-800);
  letter-spacing: -0.02em;
}

/* Page Content */
.page-content {
  background: var(--gray-50);
  min-height: 100vh;
}

.container {
  padding: 0 16px;
}

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

.card {
  animation: fadeInUp 0.5s ease-out;
}

/* Category Cards */
.category-section {
  margin-bottom: 40px;
}

.section-header {
  position: relative;
  margin-bottom: 24px;
}

.section-title {
  font-size: 1.5rem;
  color: var(--gray-800);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

.category-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  height: 100%;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.category-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.category-image-wrapper {
  position: relative;
  height: 140px;
  overflow: hidden;
}

.category-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.category-placeholder {
  width: 100%;
  height: 100%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(59, 130, 246, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

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

.category-card:hover .category-image {
  transform: scale(1.1);
}

.category-info {
  padding: 16px;
  text-align: center;
}

.category-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800);
  margin: 0;
  letter-spacing: -0.01em;
}

/* Empty State */
.empty-state {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin: 20px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .brand-title {
    font-size: 1.2rem;
  }
  
  .container {
    padding: 0 12px;
  }
  
  .modern-menubar {
    margin: 0 4px;
  }
  
  .section-title {
    font-size: 1.3rem;
  }
  
  .category-image-wrapper {
    height: 120px;
  }
}

/* Product Page Styles */
.product-gallery-section {
  margin-bottom: 24px;
}

.gallery-wrapper {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.product-swiper {
  height: 300px;
}

.product-image-slide {
  width: 100%;
  height: 100%;
  position: relative;
}

.product-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-pagination {
  bottom: 16px !important;
}

.product-nav-btn {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  box-shadow: var(--shadow);
}

.product-nav-btn:after {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
}

.product-info-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
}

.product-title {
  font-size: 1.75rem;
  color: var(--gray-800);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.product-category .badge {
  font-size: 12px;
  font-weight: 500;
}

.description-text {
  color: var(--gray-600);
  line-height: 1.7;
  font-size: 15px;
}

.pricing-card {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 2px solid var(--gray-200);
}

.price-section.discount-active {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.original-price {
  font-size: 14px;
}

.current-price {
  font-size: 1.5rem;
  font-weight: 700;
}

.discount-badge {
  background: var(--gradient-primary);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  align-self: flex-start;
  margin-top: 8px;
}

.product-actions .btn {
  font-weight: 600;
  padding: 12px 24px;
  transition: all 0.3s ease;
}

.product-actions .btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Additional Product Card Styles */
.product-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-xl);
}

.product-image {
  height: 180px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.category-header {
  margin: 24px 0;
}

.category-title {
  font-size: 1.75rem;
  letter-spacing: -0.02em;
}

.category-divider {
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 2px;
  margin-top: 12px;
}

/* Navigation Buttons */
.category-navigation-wrapper {
  margin-bottom: 80px !important; /* Add space above menubar */
  padding-bottom: 20px;
}

.category-navigation-wrapper .btn {
  font-weight: 600;
  transition: all 0.3s ease;
  min-width: 140px;
}

.category-navigation-wrapper .btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Dark Theme Styles */
.dark-theme {
  background-color: #1a1a1a;
  color: #ffffff;
}

.dark-theme .header-content {
  background-color: #2d2d2d;
  border-bottom: 1px solid #404040;
}

.dark-theme .product-info-card,
.dark-theme .card {
  background-color: #2d2d2d;
  border-color: #404040;
  color: #ffffff;
}

.dark-theme .text-dark {
  color: #ffffff !important;
}

.dark-theme .text-muted {
  color: #b0b0b0 !important;
}

.dark-theme .bg-light {
  background-color: #404040 !important;
}

.dark-theme .menubar-area {
  background-color: #2d2d2d;
  border-top: 1px solid #404040;
}

.dark-theme .search-container input {
  background-color: #404040;
  border-color: #555555;
  color: #ffffff;
}

.dark-theme .search-container input::placeholder {
  color: #b0b0b0;
}

.dark-theme .pricing-card {
  background-color: #404040;
  border-color: #555555;
}

/* Search Results Page Styles */
.search-header {
  padding: 20px 0;
}

.search-divider {
  width: 100%;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 1px;
  margin-top: 16px;
}

.search-results-section {
  margin-top: 24px;
}

.results-count {
  margin-bottom: 20px;
}

.results-count .badge {
  font-size: 14px;
  font-weight: 600;
}

.empty-state {
  background: white;
  border-radius: var(--radius-xl);
  padding: 40px 20px;
  box-shadow: var(--shadow-lg);
  margin: 40px 0;
}

.empty-icon {
  opacity: 0.6;
}

/* Menubar Active State Fix */
.modern-nav-item.active {
  color: var(--primary-600) !important;
}

.modern-nav-item.active .nav-icon-wrapper i {
  color: var(--primary-600);
}

.home-btn-circle.active {
  background: var(--gradient-primary) !important;
  box-shadow: var(--shadow-lg);
}

/* Dark Theme for Search Results */
.dark-theme .search-header h2 {
  color: #ffffff !important;
}

.dark-theme .empty-state {
  background-color: #2d2d2d;
  color: #ffffff;
}
.package-box.box-1 span,
.categore-box span,
.categore-box .card-c-title {
  color: var(--text) !important;
  font-weight: 600;
  font-size: 14px;
  margin: 0;
}
.package-box.box-1:hover,
.categore-box:hover {
  transform: translateY(-1px);
  border-color: rgba(22,163,74,.45);
  box-shadow: 0 6px 20px rgba(22,163,74,.08);
}
/* Active state toggled by JS */
.package-box.box-1.is-active,
.categore-box.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.package-box.box-1.is-active span,
.categore-box.is-active span,
.categore-box.is-active .card-c-title {
  color: #fff !important;
}

/* 5) Product cards (menu/category.blade.php) */
.card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.card-img-top {
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.card .card-text {
  font-weight: 600;
  color: var(--text);
}
.price,
.text-accent {
  color: var(--brand) !important;
  font-weight: 700;
}
.label {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--accent);
  color: #fff;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 12px;
}

/* 6) Footer tone down */
.footer .main-footer {
  border-top: 1px solid var(--border);
}

/* 7) Utility */
.sticky-top-cta {
  position: sticky;
  bottom: 12px;
  z-index: 49;
}
.back-btn {
  border-radius: 12px;
}
/* Dark friendly surfaces (if .dark class is toggled on <html> later) */
.dark .header .main-bar { background: rgba(17,20,24,.85); }
.dark .categories-box { background: var(--surface-d); border-color: #1f2937; }
.dark .package-box.box-1,
.dark .categore-box { background: #0f1316; border-color: #1f2937; color: var(--text-d); }
.dark .card { background: #0f1316; border-color: #1f2937; }
.dark .card .card-text { color: var(--text-d); }
