/* ============================================================
   MENU DIGITAL — style.css
   Design premium restaurant / café
   ============================================================ */

/* ---- VARIABLES ---- */
:root {
  --primary:      #1a1a1a;
  --accent:       #c9a96e;
  --accent-light: rgba(201,169,110,0.15);
  --text:         #2a2a2a;
  --muted:        #888;
  --bg:           #faf9f7;
  --surface:      #ffffff;
  --border:       #e8e4de;
  --radius:       14px;
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.07);
  --shadow-md:    0 8px 32px rgba(0,0,0,0.12);
  --shadow-lg:    0 20px 60px rgba(0,0,0,0.18);
  --font-heading: 'Cormorant Garamond', serif;
  --font-body:    'Montserrat', sans-serif;
  /* Per-block overrides (set by block customizer) */
  --font-rest-name:  var(--font-heading);
  --font-menu-title: var(--font-heading);
  --font-item-name:  var(--font-heading);
  --font-price:      var(--font-body);
  --size-rest-name:  clamp(2.2rem, 7vw, 4rem);
  --size-menu-title: clamp(1.8rem, 5vw, 2.8rem);
  --size-item-name:  1.05rem;
  --size-price:      0.9rem;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.hidden { display: none !important; }
.font-heading { font-family: var(--font-heading); }
input, select, textarea, button { font-family: inherit; }
a { color: inherit; }

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }

/* ============================================================
   FRONT OFFICE
   ============================================================ */

.fo-wrapper { min-height: 100vh; background: var(--bg); }

/* HERO */
.fo-hero {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background-size: cover; background-position: center; background-attachment: fixed;
  overflow: hidden;
}
.fo-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.35) 60%, rgba(10,10,10,0.7) 100%);
}
.fo-hero-content {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  padding: 40px 24px; text-align: center;
  animation: fadeUp 0.8s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fo-logo-wrap { margin-bottom: 20px; }
.fo-logo { height: 88px; width: 88px; object-fit: cover; border-radius: 50%; border: 2px solid rgba(255,255,255,0.25); box-shadow: 0 4px 20px rgba(0,0,0,0.4); }
.fo-logo-text {
  width: 80px; height: 80px; border-radius: 50%;
  background: rgba(255,255,255,0.15); backdrop-filter: blur(8px);
  border: 2px solid rgba(255,255,255,0.35);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-size: 2.2rem; color: #fff;
}

/* Logo positionné en haut à gauche du hero */
.fo-logo-topleft {
  position: absolute; top: 20px; left: 20px; z-index: 2;
}
.fo-logo-topleft .fo-logo {
  height: 72px; width: 72px;
  object-fit: cover; border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,0.5);
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
}
.fo-logo-topleft .fo-logo-text {
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(255,255,255,0.15); backdrop-filter: blur(8px);
  border: 2.5px solid rgba(255,255,255,0.4);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-size: 1.9rem; color: #fff;
}
.fo-name {
  font-size: var(--size-rest-name);
  font-family: var(--font-rest-name);
  color: #fff; font-weight: 600;
  letter-spacing: 0.04em; line-height: 1.1;
  text-shadow: 0 2px 16px rgba(0,0,0,0.5);
}
.fo-tagline {
  color: var(--accent); font-size: 0.82rem;
  letter-spacing: 0.3em; text-transform: uppercase;
  margin-top: 8px;
}
.fo-divider {
  width: 48px; height: 2px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
  margin: 16px auto;
}
.fo-desc { color: rgba(255,255,255,0.8); font-size: 0.9rem; max-width: 400px; }
.fo-scroll-btn {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: rgba(255,255,255,0.75); font-size: 0.75rem; letter-spacing: 0.12em;
  text-transform: uppercase; text-decoration: none; cursor: pointer;
  transition: color 0.2s;
  animation: bounceY 2s ease-in-out infinite;
}
.fo-scroll-btn:hover { color: var(--accent); }
@keyframes bounceY {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* MENU SECTION */
.fo-menu-section { padding: 48px 16px 80px; max-width: 1100px; margin: 0 auto; }
.fo-menu-header { text-align: center; margin-bottom: 32px; }
.fo-menu-title { font-size: var(--size-menu-title); font-family: var(--font-menu-title); color: var(--primary); font-weight: 600; }
.fo-menu-divider {
  width: 56px; height: 2px; margin: 12px auto 0;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
}

/* LANG BAR */
.fo-lang-bar {
  display: flex; justify-content: center; gap: 8px;
  margin-bottom: 28px; flex-wrap: wrap;
}
.fo-lang-btn {
  padding: 7px 18px; border-radius: 100px;
  border: 1.5px solid var(--border);
  background: var(--surface); color: var(--muted);
  font-size: 0.78rem; font-weight: 500;
  cursor: pointer; transition: all 0.2s;
}
.fo-lang-btn.active, .fo-lang-btn:hover {
  background: var(--primary); color: #fff; border-color: var(--primary);
}

/* TABS */
.fo-tabs-wrap { overflow-x: auto; padding-bottom: 4px; margin-bottom: 28px; }
.fo-tabs-wrap::-webkit-scrollbar { height: 0; }
.fo-tabs {
  display: flex; gap: 8px; flex-wrap: nowrap;
  min-width: max-content; padding: 4px 2px;
}
.fo-tab {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 20px; border-radius: 100px;
  border: 1.5px solid var(--border);
  background: var(--surface); color: var(--muted);
  font-size: 0.82rem; font-weight: 500;
  cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.fo-tab img { width: 22px; height: 22px; object-fit: cover; border-radius: 50%; }
.fo-tab.active, .fo-tab:hover {
  background: var(--primary); color: #fff;
  border-color: var(--primary); box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* ITEMS GRID */
.fo-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

/* ITEM CARD */
.fo-item-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden; position: relative;
  display: flex; flex-direction: column;
  transition: transform 0.22s, box-shadow 0.22s;
  animation: fadeUp 0.4s ease both;
  box-shadow: var(--shadow-sm);
}
.fo-item-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.fo-item-card.unavailable { opacity: 0.6; }

/* Bouton INFO */
.fo-item-info-btn {
  position: absolute; top: 10px; right: 10px; z-index: 10;
  width: 30px; height: 30px; border-radius: 50%;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.9);
  color: var(--accent);
  transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.fo-item-info-btn:hover {
  background: var(--accent);
  color: #fff;
  transform: scale(1.18);
  box-shadow: 0 4px 16px rgba(201,169,110,0.45), inset 0 1px 0 rgba(255,255,255,0.3);
}
.fo-item-info-btn svg {
  display: block; flex-shrink: 0;
  filter: drop-shadow(0 0 1px rgba(0,0,0,0.05));
}

.fo-item-unavailable-tag {
  position: absolute; top: 10px; left: 10px; z-index: 10;
  background: rgba(220,38,38,0.9); color: #fff;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 100px;
}

.fo-item-img { width: 100%; height: 170px; object-fit: cover; display: block; }
.fo-item-img-placeholder {
  width: 100%; height: 140px;
  display: flex; align-items: center; justify-content: center;
  background: #f4f2ef; overflow: hidden;
}
.fo-item-img-placeholder img { width: 100%; height: 100%; object-fit: cover; }
.fo-item-placeholder-bg { background: var(--accent-light); }
.fo-item-placeholder-bg span { font-size: 2.4rem; }

.fo-item-body { padding: 14px 14px 8px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.fo-item-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.fo-item-name { font-family: var(--font-item-name); font-size: var(--size-item-name); font-weight: 600; color: var(--primary); line-height: 1.25; flex: 1; }
.fo-item-price { font-family: var(--font-price); font-size: var(--size-price); font-weight: 700; color: var(--accent); white-space: nowrap; }
.fo-item-desc { font-size: 0.76rem; color: var(--muted); line-height: 1.5; }
.fo-item-badge {
  display: inline-block; font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 100px;
  background: var(--accent-light); color: var(--accent);
  width: fit-content;
}

.fo-item-footer { padding: 10px 14px 14px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.fo-item-qty-wrap { display: flex; align-items: center; }
.fo-item-qty { display: flex; align-items: center; gap: 6px; }
.fo-item-qty-btn {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid var(--border); background: var(--surface);
  font-size: 1rem; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s; color: var(--primary);
}
.fo-item-qty-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.fo-item-qty-num { font-size: 0.9rem; font-weight: 700; min-width: 20px; text-align: center; }
.fo-item-add-btn {
  padding: 8px 18px; border-radius: 100px;
  border: 1.5px solid var(--primary);
  background: var(--primary); color: #fff;
  font-size: 0.78rem; font-weight: 600;
  cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.fo-item-add-btn:hover { background: var(--accent); border-color: var(--accent); }
.fo-item-add-btn.in-cart { background: var(--accent-light); color: var(--accent); border-color: var(--accent); }

/* FOOTER */
.fo-footer {
  background: var(--primary); color: rgba(255,255,255,0.75);
  text-align: center; padding: 48px 24px 36px;
  margin-top: 60px;
}
.fo-footer-logo {
  font-family: var(--font-heading); font-size: 1.8rem; color: #fff; margin-bottom: 6px;
  display: flex; align-items: center; justify-content: center;
}
.fo-footer-logo img {
  width: 64px; height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid rgba(255,255,255,0.35);
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.fo-footer-logo-text {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,255,255,0.12); border: 2.5px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-size: 1.8rem; color: #fff;
}
.fo-footer-name { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-bottom: 12px; }
.fo-footer-copy { font-size: 0.74rem; color: rgba(255,255,255,0.4); }
.fo-review-btn {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 18px auto 12px;
  padding: 10px 24px; border-radius: 100px;
  border: 1.5px solid rgba(255,255,255,0.25);
  background: transparent; color: #fff;
  font-size: 0.82rem; cursor: pointer; transition: all 0.2s;
}
.fo-review-btn:hover { background: var(--accent); border-color: var(--accent); }
.fo-footer-links { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.fo-footer-link {
  color: rgba(255,255,255,0.55); font-size: 0.78rem;
  text-decoration: none; transition: color 0.2s;
  border-bottom: 1px solid transparent;
}
.fo-footer-link:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* ============================================================
   CART
   ============================================================ */
.cart-fab {
  position: fixed; bottom: 28px; right: 20px; z-index: 100;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--primary); color: #fff;
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
  transition: transform 0.2s, background 0.2s;
}
.cart-fab:hover { transform: scale(1.08); background: var(--accent); }
.cart-fab-count {
  position: absolute; top: 2px; right: 2px;
  background: var(--accent); color: #fff;
  font-size: 0.68rem; font-weight: 700;
  width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--surface);
}
.cart-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.45); backdrop-filter: blur(3px);
}
.cart-panel {
  position: fixed; right: 0; top: 0; bottom: 0; z-index: 300;
  width: min(420px, 100vw);
  background: var(--surface);
  display: flex; flex-direction: column;
  box-shadow: -8px 0 48px rgba(0,0,0,0.18);
  animation: slideInRight 0.28s ease;
}
@keyframes slideInRight {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}
.cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 22px; border-bottom: 1px solid var(--border);
}
.cart-header h3 { font-size: 1.2rem; }
.cart-close {
  background: none; border: none; cursor: pointer;
  color: var(--muted); font-size: 1.1rem; padding: 4px 8px;
  border-radius: 6px; transition: color 0.15s;
}
.cart-close:hover { color: var(--primary); }
.cart-table-row {
  padding: 12px 22px; border-bottom: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 5px;
}
.cart-table-row label { font-size: 0.74rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.cart-table-row select, .cart-table-row input {
  border: 1.5px solid var(--border); border-radius: 8px;
  padding: 8px 12px; font-size: 0.85rem; background: var(--bg); color: var(--text);
  outline: none; transition: border-color 0.15s;
}
.cart-table-row select:focus, .cart-table-row input:focus { border-color: var(--accent); }
.cart-items { flex: 1; overflow-y: auto; padding: 12px 22px; }
.cart-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 48px 0; color: var(--muted); text-align: center; }
.cart-empty p { font-size: 0.92rem; font-weight: 500; }
.cart-empty span { font-size: 0.78rem; }
.cart-item-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.cart-item-thumb {
  width: 44px; height: 44px; border-radius: 8px; flex-shrink: 0;
  background: var(--accent-light); display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; overflow: hidden;
}
.cart-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { font-size: 0.88rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-price { font-size: 0.76rem; color: var(--muted); margin-top: 2px; }
.cart-item-controls { display: flex; align-items: center; gap: 6px; }
.cart-qty-btn {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid var(--border); background: var(--bg);
  font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.cart-qty-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.cart-qty-num { font-size: 0.85rem; font-weight: 700; min-width: 20px; text-align: center; }
.cart-footer { padding: 16px 22px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
.cart-totals { display: flex; flex-direction: column; gap: 4px; }
.cart-total-row { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--muted); }
.cart-total-row.total { font-size: 1rem; font-weight: 700; color: var(--primary); margin-top: 4px; }
.cart-order-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px; border-radius: 10px;
  border: none; background: var(--primary); color: #fff;
  font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.cart-order-btn:hover { background: var(--accent); }
.cart-clear-btn {
  background: none; border: none; color: var(--muted);
  font-size: 0.78rem; cursor: pointer; text-align: center; padding: 4px;
  transition: color 0.15s;
}
.cart-clear-btn:hover { color: #dc2626; }

/* ============================================================
   MODALS
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(0,0,0,0.55); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-box {
  background: var(--surface); border-radius: 20px;
  padding: 32px 28px; max-width: 480px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalPop 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes modalPop {
  from { opacity: 0; transform: scale(0.88) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.order-confirm { text-align: center; }
.order-confirm-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent-light); color: var(--accent);
  font-size: 1.6rem; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.order-confirm h3 { font-size: 1.4rem; margin-bottom: 8px; }
.order-confirm p { color: var(--muted); font-size: 0.85rem; margin-bottom: 14px; }
.order-confirm-details { background: var(--bg); border-radius: 10px; padding: 14px 16px; margin-bottom: 18px; }
.order-detail-row { display: flex; justify-content: space-between; font-size: 0.83rem; padding: 4px 0; }
.order-total-line { display: flex; justify-content: space-between; font-size: 0.9rem; font-weight: 700; padding-top: 8px; margin-top: 6px; border-top: 1px solid var(--border); }

/* REVIEW MODAL */
.review-modal-box { max-width: 500px; }
.review-modal-box label { display: block; font-size: 0.74rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-top: 14px; margin-bottom: 6px; }
.review-modal-box textarea { width: 100%; border: 1.5px solid var(--border); border-radius: 10px; padding: 10px 12px; resize: vertical; outline: none; transition: border-color 0.15s; font-size: 0.88rem; }
.review-modal-box textarea:focus { border-color: var(--accent); }
.review-table-badge { display: inline-block; font-size: 0.8rem; color: var(--muted); background: var(--accent-light); padding: 5px 14px; border-radius: 100px; }
.star-input { display: flex; gap: 4px; }
.star-btn { background: none; border: none; font-size: 1.6rem; cursor: pointer; color: #d4d0ca; transition: all 0.15s; padding: 0 1px; }
.star-btn.active, .star-btn:hover { color: var(--accent); transform: scale(1.15); }
.review-items-list { display: flex; flex-direction: column; gap: 8px; max-height: 200px; overflow-y: auto; }
.review-item-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; background: var(--bg); border-radius: 8px; }
.review-item-name { font-size: 0.82rem; font-weight: 500; }
.form-row { display: flex; gap: 10px; }
.form-row button { flex: 1; }

/* ITEM DETAIL MODAL */
.item-detail-box { padding: 0; overflow: hidden; max-width: 440px; }
.item-detail-img-wrap { width: 100%; height: 220px; overflow: hidden; }
.item-detail-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.item-detail-body { padding: 24px 24px 20px; }
.item-detail-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.item-detail-name { font-size: 1.35rem; font-weight: 600; color: var(--primary); }
.item-detail-price { font-size: 1.1rem; font-weight: 700; color: var(--accent); white-space: nowrap; }
.item-detail-desc { font-size: 0.85rem; color: var(--muted); line-height: 1.6; margin-bottom: 12px; }
.item-detail-cat { font-size: 0.75rem; color: var(--muted); background: var(--bg); padding: 4px 12px; border-radius: 100px; display: inline-block; margin-bottom: 14px; }
.item-detail-unavail { background: #fee2e2; color: #dc2626; padding: 8px 14px; border-radius: 8px; font-size: 0.8rem; font-weight: 600; margin-bottom: 14px; }
.item-detail-actions { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.item-detail-close {
  display: block; width: 100%; padding: 11px;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: 10px; cursor: pointer; font-size: 0.85rem; font-weight: 500; color: var(--muted);
  transition: all 0.15s; text-align: center; margin-top: 8px;
}
.item-detail-close:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.item-detail-qty-num { color: var(--primary); }

/* PAGE MODAL */
.page-modal-box { max-width: 560px; padding: 0; overflow: hidden; }
.page-modal-box .item-detail-close { border-radius: 0 0 20px 20px; }
.page-modal-header { text-align: center; padding: 32px 28px 20px; border-bottom: 1px solid var(--border); }
.page-modal-logo { height: 60px; object-fit: contain; margin-bottom: 12px; }
.page-modal-header h2 { font-size: 1.6rem; color: var(--primary); }
.page-modal-divider { width: 40px; height: 2px; background: var(--accent); margin: 12px auto 0; border-radius: 2px; }
.page-modal-avg { font-size: 1.1rem; color: var(--accent); font-weight: 700; margin-top: 8px; }
.page-modal-avg span { color: var(--muted); font-size: 0.8rem; font-weight: 400; }
.page-modal-img { width: 100%; max-height: 240px; object-fit: cover; display: block; }
.page-modal-text { padding: 16px 28px; font-size: 0.9rem; line-height: 1.7; color: var(--text); }
.page-modal-section { padding: 12px 28px; }
.page-modal-section-title { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 8px; }
.page-modal-contact-row { display: flex; gap: 10px; flex-wrap: wrap; padding: 12px 28px; }
.page-modal-contact-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px; border-radius: 100px;
  border: 1.5px solid var(--border); background: var(--bg);
  font-size: 0.82rem; text-decoration: none; color: var(--text);
  transition: all 0.2s;
}
.page-modal-contact-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.page-modal-maps-btn {
  display: inline-block; margin: 8px 28px;
  color: var(--accent); font-size: 0.85rem; text-decoration: none; font-weight: 600;
}
.page-review-card { padding: 14px 0; border-bottom: 1px solid var(--border); }
.page-review-stars { color: var(--accent); font-size: 1rem; letter-spacing: 1px; }
.page-review-comment { font-size: 0.85rem; color: var(--text); margin-top: 6px; font-style: italic; }
.page-review-date { font-size: 0.72rem; color: var(--muted); margin-top: 4px; }

/* BUTTONS */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 22px; border-radius: 10px;
  border: none; background: var(--primary); color: #fff;
  font-size: 0.86rem; font-weight: 600; cursor: pointer; transition: all 0.2s;
}
.btn-primary:hover { background: var(--accent); }
.btn-secondary {
  padding: 10px 22px; border-radius: 10px;
  border: 1.5px solid var(--border); background: var(--bg); color: var(--text);
  font-size: 0.86rem; font-weight: 500; cursor: pointer; transition: all 0.2s;
}
.btn-secondary:hover { border-color: var(--primary); }
.btn-danger {
  padding: 7px 16px; border-radius: 8px;
  border: 1.5px solid #fecaca; background: #fff1f1; color: #dc2626;
  font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: all 0.15s;
}
.btn-danger:hover { background: #dc2626; color: #fff; border-color: #dc2626; }
.btn-edit {
  padding: 7px 16px; border-radius: 8px;
  border: 1.5px solid var(--border); background: var(--bg); color: var(--text);
  font-size: 0.8rem; font-weight: 500; cursor: pointer; transition: all 0.15s;
}
.btn-edit:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-success {
  padding: 7px 16px; border-radius: 8px;
  border: 1.5px solid #bbf7d0; background: #f0fdf4; color: #16a34a;
  font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: all 0.15s;
}
.btn-success:hover { background: #16a34a; color: #fff; border-color: #16a34a; }

/* TOAST */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 9999; padding: 11px 24px; border-radius: 100px;
  background: var(--primary); color: #fff;
  font-size: 0.83rem; font-weight: 500;
  box-shadow: 0 6px 24px rgba(0,0,0,0.22);
  animation: toastIn 0.3s ease;
  pointer-events: none;
}
.toast.success { background: #16a34a; }
.toast.error   { background: #dc2626; }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ============================================================
   BACK OFFICE
   ============================================================ */
.bo-wrapper {
  display: flex; min-height: 100vh; background: #f4f2ef;
}

/* SIDEBAR */
.bo-sidebar {
  width: 240px; flex-shrink: 0;
  background: var(--primary); color: rgba(255,255,255,0.8);
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  transition: transform 0.28s;
}
.bo-brand {
  display: flex; align-items: center; gap: 12px;
  padding: 22px 18px 18px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.bo-brand-logo {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-size: 1.2rem; font-weight: 600; color: #fff;
  flex-shrink: 0; overflow: hidden;
}
.bo-brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.bo-brand-name { font-size: 0.9rem; font-weight: 600; color: #fff; flex: 1; }
.bo-sidebar-close {
  display: none; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 8px;
  background: rgba(255,255,255,0.1); border: none; color: rgba(255,255,255,0.7);
  cursor: pointer; transition: background 0.15s, color 0.15s; flex-shrink: 0;
}
.bo-sidebar-close:hover { background: rgba(255,255,255,0.2); color: #fff; }
.bo-nav { padding: 12px 10px; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.bo-nav-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  border: none; background: none; color: rgba(255,255,255,0.6);
  font-size: 0.83rem; cursor: pointer; text-align: left; width: 100%;
  transition: all 0.15s; position: relative;
}
.bo-nav-btn:hover  { background: rgba(255,255,255,0.08); color: #fff; }
.bo-nav-btn.active { background: rgba(255,255,255,0.14); color: #fff; }
.bo-badge {
  margin-left: auto; background: #ef4444; color: #fff;
  font-size: 0.65rem; font-weight: 700;
  min-width: 18px; height: 18px; border-radius: 100px;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.bo-exit-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px; color: rgba(255,255,255,0.5); font-size: 0.8rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  transition: color 0.15s;
}
.bo-exit-btn:hover { color: #fff; }
.bo-sidebar-toggle {
  display: none; position: fixed; top: 14px; left: 14px; z-index: 500;
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--primary); color: #fff; border: none; cursor: pointer;
  align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
}

/* MAIN */
.bo-main { flex: 1; overflow: hidden; padding: 28px 24px; max-width: 1100px; }
.bo-section { display: none; }
.bo-section.active { display: block; }
.bo-section-title { font-family: var(--font-heading); font-size: 1.7rem; color: var(--primary); margin-bottom: 22px; }

/* STATS */
.bo-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat-card { background: var(--surface); border-radius: var(--radius); padding: 18px 16px; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.stat-num { font-family: var(--font-heading); font-size: 1.7rem; color: var(--primary); font-weight: 600; }
.stat-label { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 2px; }
.bo-preview-card { background: var(--surface); border-radius: var(--radius); padding: 22px 24px; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.bo-preview-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; color: var(--primary); }
.bo-preview-card p { font-size: 0.85rem; color: var(--muted); margin-bottom: 16px; }
.bo-preview-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* FORM */
.bo-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 800px) { .bo-form-grid { grid-template-columns: 1fr; } }
.bo-form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .bo-form-grid-2 { grid-template-columns: 1fr; } }
.bo-form-card {
  background: var(--surface); border-radius: var(--radius);
  padding: 22px; border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.bo-form-card h3 { font-size: 1rem; font-weight: 600; color: var(--primary); margin-bottom: 14px; }
.bo-form-card label {
  display: block; font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); margin-bottom: 5px; margin-top: 14px;
}
.bo-form-card label:first-child, .bo-form-card h3 + label { margin-top: 0; }
.bo-form-card input[type=text], .bo-form-card input[type=number], .bo-form-card input[type=password],
.bo-form-card select, .bo-form-card textarea {
  width: 100%; padding: 9px 12px; border-radius: 8px;
  border: 1.5px solid var(--border); background: var(--bg);
  color: var(--text); font-size: 0.86rem; outline: none; transition: border-color 0.15s;
}
.bo-form-card input:focus, .bo-form-card select:focus, .bo-form-card textarea:focus { border-color: var(--accent); }
.color-row { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.color-row input[type=color] { width: 38px; height: 38px; border: none; border-radius: 8px; cursor: pointer; padding: 2px; background: var(--bg); border: 1.5px solid var(--border); }
.color-row span { font-size: 0.8rem; color: var(--muted); font-family: monospace; }
.mt { margin-top: 18px !important; }
.mb { margin-bottom: 18px !important; }

/* FONT GRID */
.font-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin-top: 6px; }
.font-option {
  border: 1.5px solid var(--border); border-radius: 10px;
  padding: 10px 8px; cursor: pointer; text-align: center;
  background: var(--bg); transition: all 0.15s;
}
.font-option:hover, .font-option.selected { border-color: var(--accent); background: var(--accent-light); }
.font-option-preview { font-size: 1.15rem; color: var(--primary); line-height: 1.2; }
.font-option-name { font-size: 0.68rem; color: var(--muted); margin-top: 4px; }

/* UPLOAD ZONE */
.upload-zone {
  border: 2px dashed var(--border); border-radius: 10px;
  padding: 28px 16px; text-align: center; cursor: pointer;
  background: var(--bg); transition: border-color 0.15s;
  position: relative; overflow: hidden;
}
.upload-zone:hover { border-color: var(--accent); }
.upload-zone.small { padding: 16px; }
.upload-icon { font-size: 1.8rem; margin-bottom: 6px; }
.upload-zone p { font-size: 0.82rem; color: var(--muted); }
.upload-hint { font-size: 0.72rem; color: #bbb; }
.upload-preview { width: 100%; max-height: 150px; object-fit: cover; border-radius: 6px; }
.logo-preview { max-height: 80px; object-fit: contain; border-radius: 6px; }

/* LANG TABS */
.lang-tabs-admin {
  display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap;
}
.lang-tab-admin {
  padding: 5px 14px; border-radius: 100px;
  border: 1.5px solid var(--border); background: var(--bg);
  font-size: 0.75rem; font-weight: 600; cursor: pointer; transition: all 0.15s;
  color: var(--muted);
}
.lang-tab-admin.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.rtl-input { direction: rtl; }

/* LIST */
.bo-list { display: flex; flex-direction: column; gap: 8px; }
.bo-list-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border-radius: var(--radius);
  padding: 12px 14px; border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); transition: box-shadow 0.15s;
}
.bo-list-item:hover { box-shadow: var(--shadow-md); }
.bo-list-item-icon {
  width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0;
  background: var(--accent-light); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.bo-list-item-thumb {
  width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0;
  overflow: hidden; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
}
.bo-list-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bo-list-item-info { flex: 1; min-width: 0; }
.bo-list-item-name { font-size: 0.88rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bo-list-item-sub { font-size: 0.75rem; color: var(--muted); margin-top: 2px; }
.bo-list-item-actions { display: flex; gap: 6px; flex-shrink: 0; }
.bo-filter-bar { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.bo-filter-bar select, .bo-filter-bar input {
  border: 1.5px solid var(--border); border-radius: 8px;
  padding: 8px 12px; font-size: 0.84rem; background: var(--surface); outline: none;
  transition: border-color 0.15s;
}
.bo-filter-bar select:focus, .bo-filter-bar input:focus { border-color: var(--accent); }

/* ORDERS */
.orders-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.orders-filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.order-filter {
  padding: 7px 16px; border-radius: 100px;
  border: 1.5px solid var(--border); background: var(--surface);
  font-size: 0.78rem; font-weight: 500; cursor: pointer; transition: all 0.15s; color: var(--muted);
}
.order-filter.active, .order-filter:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.order-card { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border); padding: 16px 18px; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.order-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; gap: 10px; }
.order-card-id { font-weight: 700; font-size: 0.92rem; color: var(--primary); }
.order-card-time { font-size: 0.75rem; color: var(--muted); margin-top: 3px; }
.order-card-table { font-size: 0.78rem; color: var(--muted); }
.order-status {
  font-size: 0.7rem; font-weight: 700; padding: 4px 10px; border-radius: 100px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.order-status.pending   { background: #fef3c7; color: #d97706; }
.order-status.confirmed { background: #dbeafe; color: #1d4ed8; }
.order-status.done      { background: #dcfce7; color: #16a34a; }
.order-status.cancelled { background: #fee2e2; color: #dc2626; }
.order-items-list { background: var(--bg); border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; }
.order-item-line { display: flex; justify-content: space-between; font-size: 0.82rem; padding: 3px 0; color: var(--text); }
.order-note { font-size: 0.78rem; color: var(--muted); font-style: italic; margin-bottom: 8px; }
.order-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* REVIEWS */
.reviews-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.reviews-filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.review-filter {
  padding: 7px 16px; border-radius: 100px;
  border: 1.5px solid var(--border); background: var(--surface);
  font-size: 0.78rem; font-weight: 500; cursor: pointer; transition: all 0.15s; color: var(--muted);
}
.review-filter.active, .review-filter:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.reviews-summary { background: var(--surface); border-radius: var(--radius); padding: 18px 20px; border: 1px solid var(--border); margin-bottom: 18px; display: flex; gap: 24px; flex-wrap: wrap; box-shadow: var(--shadow-sm); }
.reviews-summary-main { display: flex; align-items: center; gap: 16px; }
.reviews-avg-big { font-family: var(--font-heading); font-size: 2.8rem; color: var(--accent); font-weight: 600; }
.reviews-avg-label { font-size: 0.8rem; color: var(--muted); line-height: 1.6; }
.reviews-avg-label em { font-style: normal; font-weight: 600; color: var(--text); }
.reviews-prod-list { flex: 1; min-width: 200px; }
.reviews-prod-title { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 8px; }
.review-prod-stat { display: flex; justify-content: space-between; font-size: 0.83rem; padding: 4px 0; border-bottom: 1px solid var(--border); }
.review-prod-avg { color: var(--accent); font-weight: 600; }
.review-prod-avg em { font-style: normal; color: var(--muted); font-size: 0.72rem; font-weight: 400; }
.review-card { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border); padding: 14px 16px; margin-bottom: 10px; box-shadow: var(--shadow-sm); }
.review-card-header { display: flex; justify-content: space-between; margin-bottom: 8px; }
.review-service-stars { color: var(--accent); font-size: 1rem; letter-spacing: 1px; }
.review-table-tag { font-size: 0.72rem; color: var(--muted); margin-top: 3px; }
.review-card-date { font-size: 0.72rem; color: var(--muted); }
.review-comment { font-style: italic; font-size: 0.85rem; color: var(--text); margin-bottom: 6px; }
.review-item-ratings { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.review-item-chip {
  font-size: 0.72rem; background: var(--accent-light); color: var(--accent);
  padding: 3px 10px; border-radius: 100px;
}

/* PRINT MENU */
.print-layout { display: grid; grid-template-columns: 300px 1fr; gap: 20px; }
@media (max-width: 900px) { .print-layout { grid-template-columns: 1fr; } }
.print-preview-wrap { background: #e0ddd8; border-radius: var(--radius); padding: 16px; overflow: hidden; position: relative; }
.print-preview-label { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: #888; margin-bottom: 10px; }
.print-preview-frame { background: #fff; overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,0.2); transform-origin: top left; }
.print-options-panel { display: flex; flex-direction: column; gap: 0; }

/* QR */
.qr-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 700px) { .qr-layout { grid-template-columns: 1fr; } }
.qr-preview-wrap { display: flex; justify-content: center; padding: 20px 0; }
.qr-print-area { text-align: center; padding: 28px; background: #fff; border-radius: 14px; border: 1px solid var(--border); display: inline-block; }
.qr-print-logo { font-family: var(--font-heading); font-size: 1.3rem; color: var(--primary); margin-bottom: 6px; min-height: 24px; }
.qr-print-name { font-size: 0.78rem; color: var(--muted); margin-bottom: 12px; }
.qr-scan-hint { font-size: 0.72rem; color: var(--muted); margin-top: 10px; }
.qr-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

/* PAGINATION */
.bo-pagination {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 12px; padding: 20px 0 8px; margin-top: 12px;
  border-top: 1px solid var(--border);
}
.bo-pagination-info {
  font-size: 0.78rem; color: var(--muted); letter-spacing: 0.03em;
  background: var(--bg); padding: 5px 12px; border-radius: 100px;
  border: 1px solid var(--border);
}
.bo-pagination-btns { display: flex; gap: 5px; align-items: center; }
.bo-page-btn {
  min-width: 36px; height: 36px; border-radius: 10px;
  border: 1.5px solid var(--border); background: var(--surface);
  color: var(--text); font-size: 0.88rem; font-weight: 600;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  padding: 0 10px; transition: all 0.18s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.bo-page-btn:hover:not(:disabled) {
  border-color: var(--accent); color: var(--accent);
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}
.bo-page-btn.active {
  background: var(--primary); color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transform: translateY(-1px);
}
.bo-page-btn.disabled, .bo-page-btn:disabled {
  opacity: 0.3; cursor: not-allowed; transform: none; box-shadow: none;
}

/* THEME PRESETS */
.theme-presets {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px;
  margin-top: 8px;
}
.theme-preset-card {
  border-radius: 12px; overflow: hidden; cursor: pointer;
  border: 2px solid transparent; transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
}
.theme-preset-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.theme-preset-card.selected { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(201,169,110,0.2); }
.theme-preset-swatch {
  height: 52px; display: flex; align-items: center; justify-content: center; gap: 6px;
}
.theme-preset-dot {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
}
.theme-preset-label {
  padding: 7px 8px; background: #fff; font-size: 0.7rem; font-weight: 600;
  color: var(--text); text-align: center; letter-spacing: 0.03em;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .bo-sidebar {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 600;
    transform: translateX(-100%);
  }
  .bo-sidebar.open { transform: translateX(0); }
  .bo-sidebar-toggle { display: flex; }
  .bo-sidebar-close { display: flex; }
  .bo-main { padding: 72px 16px 24px; }
  .fo-items { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 12px; }
  .fo-menu-section { padding: 36px 12px 60px; }
  .cart-panel { width: 100vw; }
  .modal-box { padding: 24px 18px; }
}

/* RTL adjustments */
[dir="rtl"] .fo-item-info-btn { right: auto; left: 10px; }
[dir="rtl"] .cart-fab { right: auto; left: 20px; }
[dir="rtl"] .cart-panel { right: auto; left: 0; }
[dir="rtl"] .bo-sidebar { left: auto; right: 0; transform: translateX(0); }
[dir="rtl"] .bo-sidebar-toggle { left: auto; right: 14px; }
