@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;600;700&display=swap');

:root {
  --primary: #ec920e;
  --primary-dark: #d67e00;
  --primary-light: #fff8ee;
  --primary-contrast: #ffffff;
  --background: #f4f5f7;
  --card-bg: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
}

* {
  box-sizing: border-box;
  font-family: 'Rubik', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--background);
  color: var(--text-main);
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

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

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Hide Scrollbar helper */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Header & Banner */
.cover-banner {
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
}

@media (min-width: 768px) {
  .cover-banner {
    height: 240px;
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 1rem;
  }
}

.store-logo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 4px solid #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  object-fit: cover;
  background-color: #ffffff;
}

/* Category Card Tile (Clean Home Screen Layout) */
.category-card-tile {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #eef2f6;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.category-card-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  border-color: rgba(236, 146, 14, 0.4);
}

.category-card-img {
  height: 120px;
  width: 100%;
  object-fit: cover;
  background-color: #f8fafc;
}

@media (min-width: 640px) {
  .category-card-img {
    height: 140px;
  }
}

/* Sticky Navigation Bar */
.sticky-cat-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.cat-tab-item {
  white-space: nowrap;
  padding: 10px 16px;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
}

.cat-tab-item.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}

/* Badges */
.badge-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.badge-highlight {
  background-color: #fef3c7;
  color: #b45309;
}

.badge-new {
  background-color: #dcfce7;
  color: #15803d;
}

.badge-promo {
  background-color: #fee2e2;
  color: #b91c1c;
}

/* Product Card */
.product-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #edf2f7;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.product-img {
  width: 95px;
  height: 95px;
  border-radius: 8px;
  object-fit: cover;
  background-color: #f8fafc;
}

@media (min-width: 640px) {
  .product-img {
    width: 105px;
    height: 105px;
  }
}

/* Modals & Slide-overs */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(2px);
  z-index: 50;
  animation: fadeIn 0.2s ease-out;
}

.modal-content {
  position: fixed;
  z-index: 51;
  background: #ffffff;
  animation: slideUp 0.25s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* Floating Cart Bar */
.floating-cart-bar {
  position: fixed;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 640px;
  z-index: 35;
  background-color: var(--primary);
  color: #ffffff;
  border-radius: 12px;
  padding: 12px 20px;
  box-shadow: 0 8px 24px rgba(236, 146, 14, 0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.floating-cart-bar:hover {
  background-color: var(--primary-dark);
  transform: translateX(-50%) scale(1.01);
}

/* Fixed Bottom Navigation Bar (CardapioWeb Style) */
.bottom-nav-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background-color: #ffffff;
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.04);
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 100%;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 500;
  transition: color 0.15s ease;
  cursor: pointer;
  position: relative;
}

.bottom-nav-item i {
  font-size: 1.15rem;
  margin-bottom: 3px;
}

.bottom-nav-item.active {
  color: var(--primary);
  font-weight: 600;
}

/* Line Clamp helper */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

