/* San Remo Restaurant - Static Export Styles */
/* ========================================= */

:root {
  --background: hsl(0, 0%, 98%);
  --foreground: hsl(207, 50%, 11%);
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(207, 50%, 11%);
  --primary: hsl(207, 50%, 11%);
  --primary-foreground: hsl(0, 0%, 98%);
  --secondary: hsl(190, 60%, 29%);
  --secondary-foreground: hsl(0, 0%, 98%);
  --muted: hsl(210, 20%, 94%);
  --muted-foreground: hsl(207, 20%, 40%);
  --accent: hsl(40, 80%, 52%);
  --accent-foreground: hsl(0, 0%, 98%);
  --border: hsl(210, 20%, 88%);
  --destructive: hsl(0, 84%, 60%);
  --radius: 0.5rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Roboto', sans-serif;
  background: var(--background);
  color: var(--foreground);
  line-height: 1.5;
  padding-bottom: 60px;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
img { max-width: 100%; display: block; }

.container { max-width: 1152px; margin: 0 auto; padding: 0 16px; }

/* ─── TOP BAR ─── */
.top-bar {
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 8px 0;
  font-size: 13px;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar a { opacity: 0.9; }
.top-bar a:hover { opacity: 1; }
.lang-btn {
  background: hsla(0,0%,100%,0.15);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  color: var(--primary-foreground);
  display: inline-flex; align-items: center; gap: 6px;
}

/* ─── HEADER ─── */
.header {
  background: var(--card);
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.header .container { display: flex; align-items: center; gap: 24px; }
.header-logo {
  width: 80px; height: 80px; border-radius: 50%; overflow: hidden;
  background: var(--primary); flex-shrink: 0; box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.header-logo img { width: 100%; height: 100%; object-fit: cover; }
.header h1 { font-size: 1.75rem; font-weight: 700; }
.header-hours { display: flex; align-items: center; gap: 8px; color: var(--muted-foreground); font-size: 14px; margin-top: 4px; }
.review-links { display: flex; gap: 12px; margin-top: 4px; }
.review-links a { font-size: 12px; font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }
.review-links a:hover { opacity: 0.7; }
.review-label { font-size: 12px; color: var(--muted-foreground); margin-top: 8px; }

/* ─── CATEGORY NAV ─── */
.category-nav {
  position: sticky; top: 0; z-index: 30;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.category-nav .scroll-wrap {
  display: flex; gap: 6px; overflow-x: auto;
  -ms-overflow-style: none; scrollbar-width: none;
}
.category-nav .scroll-wrap::-webkit-scrollbar { display: none; }
.category-nav button, .category-nav a {
  padding: 6px 14px; border-radius: 20px;
  font-size: 13px; font-weight: 500; white-space: nowrap;
  color: var(--muted-foreground);
  transition: all 0.2s;
  display: inline-block;
}
.category-nav a.active,
.category-nav button.active {
  background: var(--secondary);
  color: var(--secondary-foreground);
}
.category-nav a:hover, .category-nav button:hover { background: var(--muted); }
.category-nav a.active:hover, .category-nav button.active:hover { background: var(--secondary); }

/* ─── FOOD SECTIONS ─── */
.food-section { padding: 24px 0; }
.food-section h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 16px; }
.cards-carousel {
  display: flex; gap: 12px; overflow-x: auto;
  -ms-overflow-style: none; scrollbar-width: none;
  padding-bottom: 8px;
}
.cards-carousel::-webkit-scrollbar { display: none; }

/* ─── DISH CARD ─── */
.dish-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s;
  min-width: 170px;
  width: 170px;
  flex-shrink: 0;
  display: flex; flex-direction: column;
}
.dish-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.dish-card-image {
  height: 144px; background: var(--muted);
  position: relative; overflow: hidden; cursor: pointer;
}
.dish-card-image img { width: 100%; height: 100%; object-fit: cover; }
.dish-card-badges { position: absolute; top: 8px; left: 8px; display: flex; gap: 4px; }
.badge-veg {
  background: #16a34a; color: #fff; font-size: 10px;
  padding: 2px 6px; border-radius: 4px; font-weight: 500;
}
.badge-spicy {
  background: #dc2626; color: #fff; font-size: 10px;
  padding: 2px 6px; border-radius: 4px; font-weight: 500;
}
.dish-card-body { padding: 12px; display: flex; flex-direction: column; flex: 1; }
.dish-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 4px; }
.dish-card-name { font-size: 14px; font-weight: 600; line-height: 1.3; }
.dish-card-name sup { font-size: 10px; color: var(--muted-foreground); margin-left: 4px; }
.dish-card-grams { font-size: 12px; color: var(--muted-foreground); white-space: nowrap; }
.dish-card-ingredients {
  font-size: 12px; color: var(--muted-foreground); margin-top: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  flex: 1;
}
.dish-card-price { margin-top: 12px; font-size: 14px; font-weight: 700; }
.dish-card-price .bgn { font-size: 12px; font-weight: 400; color: var(--muted-foreground); margin-left: 4px; }
.btn-add {
  margin-top: 8px; width: 100%;
  background: var(--secondary); color: var(--secondary-foreground);
  padding: 6px 0; border-radius: var(--radius);
  font-size: 12px; font-weight: 500;
  transition: opacity 0.2s;
}
.btn-add:hover { opacity: 0.9; }

/* ─── DRINKS / WINE SECTIONS ─── */
.drinks-section, .wine-section { padding: 24px 0; }
.drinks-section h2, .wine-section h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 16px; }
.tab-nav {
  display: flex; gap: 4px; overflow-x: auto; margin-bottom: 16px;
  -ms-overflow-style: none; scrollbar-width: none;
}
.tab-nav::-webkit-scrollbar { display: none; }
.tab-btn {
  padding: 6px 12px; border-radius: 20px;
  font-size: 12px; font-weight: 500; white-space: nowrap;
  color: var(--muted-foreground); transition: all 0.2s;
}
.tab-btn.active { background: var(--secondary); color: var(--secondary-foreground); }
.tab-btn:hover { background: var(--muted); }
.tab-btn.active:hover { background: var(--secondary); }
.tab-content { display: none; }
.tab-content.active { display: block; }
.list-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; border-radius: var(--radius);
  transition: background 0.2s;
}
.list-item:hover { background: hsla(210,20%,94%,0.5); }
.list-item-name { font-size: 14px; font-weight: 500; flex: 1; min-width: 0; }
.list-item-meta { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.list-item-price { font-size: 14px; font-weight: 700; }
.list-item-price .bgn { font-size: 12px; font-weight: 400; color: var(--muted-foreground); margin-left: 4px; }
.btn-add-circle {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--secondary); color: var(--secondary-foreground);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 400; line-height: 1;
  transition: opacity 0.2s; flex-shrink: 0;
}
.btn-add-circle:hover { opacity: 0.9; }

/* Wine badges */
.wine-badge {
  font-size: 10px; padding: 2px 6px; border-radius: 10px; font-weight: 500;
  display: inline-block; margin-right: 6px;
}
.wine-badge-champagne { background: rgba(180,130,20,0.2); color: #92620a; }
.wine-badge-sparkling { background: rgba(34,197,94,0.2); color: #166534; }
.wine-badge-white { background: rgba(234,179,8,0.15); color: #854d0e; }
.wine-badge-rose { background: rgba(236,72,153,0.2); color: #9d174d; }
.wine-badge-red { background: rgba(239,68,68,0.2); color: #991b1b; }
.country-flag { font-size: 11px; margin-right: 2px; }

/* ─── ALLERGENS ─── */
.allergens-section { padding: 24px 0; }
.allergens-section h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 16px; }
.allergens-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px;
}
.allergen-item { font-size: 13px; padding: 6px 0; }
.allergen-item strong { margin-right: 4px; }
.price-disclaimer { margin-top: 16px; font-size: 11px; color: var(--muted-foreground); line-height: 1.6; }

/* ─── FOOTER ─── */
.footer {
  background: var(--primary); color: var(--primary-foreground);
  padding: 32px 0;
}
.footer .container { display: flex; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.footer-logo {
  width: 64px; height: 64px; border-radius: 50%;
  background: hsla(0,0%,100%,0.2); display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px; flex-shrink: 0; overflow: hidden;
}
.footer-logo img { width: 100%; height: 100%; object-fit: cover; }
.footer-info { flex: 1; }
.footer-info h3 { font-size: 18px; font-weight: 700; }
.footer-info a, .footer-info p { font-size: 14px; opacity: 0.8; margin-top: 4px; display: flex; align-items: flex-start; gap: 8px; }
.footer-info a:hover { opacity: 1; }
.footer-bottom {
  margin-top: 24px; padding-top: 16px;
  border-top: 1px solid hsla(0,0%,100%,0.2);
  text-align: center; font-size: 12px; opacity: 0.6; width: 100%;
}

/* ─── MOBILE BOTTOM BAR ─── */
.mobile-bottom-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  background: var(--card); border-top: 1px solid var(--border);
  box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
  display: none; /* shown via media query */
}
.mobile-bottom-bar .bar-items {
  display: flex; align-items: center; justify-content: space-around; padding: 8px 0;
}
.mobile-bottom-bar a, .mobile-bottom-bar button {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: var(--muted-foreground); font-size: 10px; transition: color 0.2s;
}
.mobile-bottom-bar a:hover, .mobile-bottom-bar button:hover { color: var(--foreground); }

/* ─── ORDER BUTTON & MODAL ─── */
.order-fab {
  position: fixed; bottom: 16px; right: 16px; z-index: 50;
  background: var(--secondary); color: var(--secondary-foreground);
  padding: 12px 20px; border-radius: 24px;
  font-size: 14px; font-weight: 600;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  display: none; /* shown by JS when items > 0 */
  transition: transform 0.2s;
}
.order-fab:hover { transform: scale(1.05); }
.order-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 60;
  display: none; align-items: center; justify-content: center;
}
.order-modal-overlay.show { display: flex; }
.order-modal {
  background: var(--card); border-radius: var(--radius);
  width: 90%; max-width: 480px; max-height: 80vh; overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.order-modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px; border-bottom: 1px solid var(--border);
}
.order-modal-header h3 { font-size: 18px; font-weight: 700; }
.order-modal-close { font-size: 24px; color: var(--muted-foreground); padding: 4px; }
.order-items { padding: 8px 16px; }
.order-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.order-item-info { flex: 1; }
.order-item-name { font-size: 14px; font-weight: 500; }
.order-item-price { font-size: 13px; color: var(--muted-foreground); }
.order-item-controls { display: flex; align-items: center; gap: 8px; }
.qty-btn {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--foreground); background: var(--card);
}
.qty-btn:hover { background: var(--muted); }
.qty-val { font-size: 14px; font-weight: 600; min-width: 20px; text-align: center; }
.order-remove { color: var(--destructive); font-size: 12px; margin-left: 8px; }
.order-total {
  padding: 16px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 16px; font-weight: 700;
}
.order-note {
  padding: 0 16px 16px; font-size: 11px; color: var(--muted-foreground); font-style: italic;
}

/* ─── IMAGE MODAL ─── */
.image-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 70;
  display: none; align-items: center; justify-content: center;
}
.image-modal-overlay.show { display: flex; }
.image-modal {
  background: var(--card); border-radius: var(--radius);
  width: 90%; max-width: 500px; overflow: hidden;
}
.image-modal img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.image-modal-body { padding: 16px; }
.image-modal-body h3 { font-size: 18px; font-weight: 600; }
.image-modal-body .meta { font-size: 12px; color: var(--muted-foreground); margin-top: 4px; }
.image-modal-body .ingredients { font-size: 14px; color: var(--muted-foreground); margin-top: 8px; }
.image-modal-body .price { font-size: 16px; font-weight: 700; margin-top: 8px; }
.image-modal-close {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(25,101,123,0.5); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}

/* ─── RESPONSIVE ─── */
@media (min-width: 768px) {
  .dish-card { width: 220px; min-width: 220px; }
  .dish-card-image { height: 176px; }
}
@media (max-width: 767px) {
  .mobile-bottom-bar { display: block; }
  .order-fab { bottom: 72px; }
  .header h1 { font-size: 1.5rem; }
  .header-logo { width: 64px; height: 64px; }
}
