/* ============================================================
   LA BELLA CUCINA — Custom Frontend Styles
   Extends the Shopro theme with restaurant-specific design
   ============================================================ */

:root {
  --primary: #e74c3c;
  --primary-dark: #c0392b;
  --secondary: #2c3e50;
  --gold: #f39c12;
  --light-bg: #f8f9fa;
  --card-shadow: 0 4px 20px rgba(0,0,0,.08);
}

/* ── Global ─────────────────────────────────────────────── */
* { box-sizing: border-box; }
body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; }

/* ── Navbar ─────────────────────────────────────────────── */
.header-area { position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 15px rgba(0,0,0,.1); }
.bg-black { background: #1a1a2e !important; }
.top-link { font-size: 13px; }
.top-link a { color: #aaa; text-decoration: none; transition: color .2s; }
.top-link a:hover { color: #e74c3c; }
.main-header { background: #fff; padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
.nav-area { background: #e74c3c; }
.nav-area .main-menu nav ul li a {
  color: rgba(255,255,255,.9);
  padding: 14px 18px;
  display: block;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .3px;
  transition: color .2s;
}
.nav-area .main-menu nav ul li a:hover,
.nav-area .main-menu nav ul li.active > a { color: #fff; }
.nav-area .main-menu nav ul li ul {
  position: absolute;
  background: #fff;
  min-width: 180px;
  box-shadow: 0 8px 25px rgba(0,0,0,.12);
  border-radius: 0 0 8px 8px;
  z-index: 999;
  display: none;
}
.nav-area .main-menu nav ul li:hover > ul { display: block; }
.nav-area .main-menu nav ul li ul li a { color: #333 !important; padding: 10px 16px; font-size: 13px; border-bottom: 1px solid #f5f5f5; }
.nav-area .main-menu nav ul li ul li a:hover { color: #e74c3c !important; background: #fff9f9; }

/* ── Buttons ─────────────────────────────────────────────── */
.banner-btn {
  display: inline-block;
  padding: 12px 28px;
  background: #e74c3c;
  color: #fff !important;
  border: 2px solid #e74c3c;
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: all .2s;
  cursor: pointer;
}
.banner-btn:hover { background: #c0392b; border-color: #c0392b; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(231,76,60,.3); }
.btn-add-cart {
  background: #e74c3c;
  color: #fff;
  border: none;
  padding: 9px 18px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all .2s;
  white-space: nowrap;
}
.btn-add-cart:hover { background: #c0392b; transform: scale(1.03); }

/* ── Cards / Product Grid ─────────────────────────────────── */
.product-wrapper, .shop-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  background: #fff;
  transition: all .25s;
}
.product-wrapper:hover { transform: translateY(-5px); box-shadow: 0 12px 35px rgba(0,0,0,.12); }

/* ── Badges ─────────────────────────────────────────────── */
.badge-veg { background: #27ae60; color: #fff; padding: 2px 7px; border-radius: 3px; font-size: 10px; font-weight: 700; }
.badge-spicy { background: #e74c3c; color: #fff; padding: 2px 7px; border-radius: 3px; font-size: 10px; }
.badge-new { background: #3498db; color: #fff; padding: 2px 7px; border-radius: 3px; font-size: 10px; font-weight: 700; }
.badge-popular { background: #f39c12; color: #fff; padding: 2px 7px; border-radius: 3px; font-size: 10px; font-weight: 700; }
.badge-sale { background: #e74c3c; color: #fff; padding: 3px 10px; border-radius: 3px; font-size: 11px; font-weight: 700; }

/* ── Prices ─────────────────────────────────────────────── */
.price-sale { color: #e74c3c; font-weight: 800; font-size: 15px; }
.price-original { text-decoration: line-through; color: #bbb; font-size: 12px; margin-left: 4px; }

/* ── Search Box ─────────────────────────────────────────── */
.search-box { position: relative; }
.search-box input {
  width: 100%;
  padding: 10px 50px 10px 16px;
  border: 2px solid #f0f0f0;
  border-radius: 25px;
  font-size: 13px;
  transition: border-color .2s;
  outline: none;
}
.search-box input:focus { border-color: #e74c3c; }
.search-box button {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: #e74c3c;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  cursor: pointer;
}

/* ── Cart Icon ─────────────────────────────────────────── */
.cart-icon-wrap { position: relative; display: inline-block; }
.cart-badge {
  background: #e74c3c;
  color: #fff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -8px;
  right: -10px;
}

/* ── Toast Notifications ─────────────────────────────────── */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 99999; max-width: 320px; }
.toast-msg {
  background: #1e2a3b;
  color: #fff;
  padding: 13px 18px;
  border-radius: 8px;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 6px 20px rgba(0,0,0,.2);
  animation: slideInRight .3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}
.toast-msg.success { border-left: 4px solid #27ae60; }
.toast-msg.error   { border-left: 4px solid #e74c3c; }
.toast-msg.info    { border-left: 4px solid #3498db; }
@keyframes slideInRight {
  from { transform: translateX(60px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* ── Section Headings ─────────────────────────────────────── */
.section-title { font-weight: 800; font-size: 32px; color: #2c3e50; position: relative; margin-bottom: 10px; }
.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 4px;
  background: #e74c3c;
  border-radius: 2px;
  margin: 10px 0 0;
}
.section-title.center::after { margin-left: auto; margin-right: auto; }

/* ── Footer ─────────────────────────────────────────────── */
.footer-area { background: #1e2a3b; color: #ccc; }
.footer-top { padding: 60px 0 30px; }
.footer-title { color: #fff; font-size: 16px; font-weight: 700; margin-bottom: 18px; }
.widget-title { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 18px; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: 8px; }
.footer-list li a { color: #aaa; text-decoration: none; font-size: 13px; transition: color .2s; }
.footer-list li a:hover { color: #e74c3c; padding-left: 4px; }
.footer-list li i { margin-right: 6px; color: #e74c3c; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 15px;
  margin-right: 6px;
  text-decoration: none;
  transition: background .2s;
}
.footer-social a:hover { background: #e74c3c; }
.footer-bottom { background: #141d2b; padding: 14px 0; text-align: center; color: #666; font-size: 13px; }

/* ── Forms ─────────────────────────────────────────────── */
.form-control {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 14px;
  transition: border-color .2s, box-shadow .2s;
}
.form-control:focus {
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231,76,60,.1);
  outline: none;
}

/* ── Sticky nav behavior ─────────────────────────────────── */
.sticky-header { position: sticky; top: 0; z-index: 999; }

/* ── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #e74c3c; border-radius: 3px; }

/* ── Shop: Filters, Sorting, Grid/List, Live Search ───────── */
.filter-panel { background:#fff; border:1px solid #eee; border-radius:8px; padding:20px; margin-bottom:20px; }
.filter-panel h5 { font-weight:700; border-bottom:2px solid var(--primary); padding-bottom:8px; margin-bottom:14px; font-size:15px; }
.filter-check { display:flex; align-items:center; gap:9px; padding:5px 0; cursor:pointer; font-size:13.5px; color:#444; user-select:none; }
.filter-check input[type="checkbox"] { width:16px; height:16px; accent-color:var(--primary); cursor:pointer; flex-shrink:0; }
.filter-check .fc-count { margin-left:auto; color:#aaa; font-size:11.5px; }
.filter-check:hover { color:var(--primary); }
.filter-clear-btn {
  display:block; width:100%; text-align:center; padding:9px; border-radius:6px; margin-top:6px;
  background:#f5f5f5; color:#555; font-size:12.5px; font-weight:600; border:none; cursor:pointer; transition:.2s;
}
.filter-clear-btn:hover { background:#ececec; color:var(--primary); }

/* Dual-handle price range slider */
.price-range-wrap { padding:6px 4px 0; }
.price-range-values { display:flex; justify-content:space-between; font-size:13px; font-weight:700; color:var(--primary); margin-bottom:10px; }
.price-slider { position:relative; height:34px; }
.price-slider input[type="range"] {
  position:absolute; top:12px; left:0; width:100%; margin:0; pointer-events:none;
  -webkit-appearance:none; appearance:none; background:transparent; height:10px; z-index:2;
}
.price-slider input[type="range"]::-webkit-slider-thumb {
  pointer-events:auto; -webkit-appearance:none; appearance:none;
  width:18px; height:18px; border-radius:50%; background:var(--primary);
  border:3px solid #fff; box-shadow:0 1px 4px rgba(0,0,0,.35); cursor:pointer; margin-top:0;
}
.price-slider input[type="range"]::-moz-range-thumb {
  pointer-events:auto; width:18px; height:18px; border-radius:50%; background:var(--primary);
  border:3px solid #fff; box-shadow:0 1px 4px rgba(0,0,0,.35); cursor:pointer;
}
.price-slider input[type="range"]::-webkit-slider-runnable-track { background:transparent; }
.price-slider .track { position:absolute; top:16px; left:0; right:0; height:4px; background:#e8e8e8; border-radius:2px; }
.price-slider .track-fill { position:absolute; top:16px; height:4px; background:var(--primary); border-radius:2px; }

/* Toolbar: search, sort, view toggle */
.shop-toolbar { display:flex; flex-wrap:wrap; gap:12px; align-items:center; justify-content:space-between; background:#fff; padding:12px 15px; border-radius:8px; border:1px solid #eee; margin-bottom:20px; }
.live-search-wrap { position:relative; flex:1; min-width:200px; max-width:340px; }
.live-search-wrap input {
  width:100%; padding:9px 36px 9px 14px; border:1px solid #e2e2e2; border-radius:20px; font-size:13.5px; outline:none; transition:border-color .2s;
}
.live-search-wrap input:focus { border-color: var(--primary); }
.live-search-wrap .ls-icon { position:absolute; right:12px; top:50%; transform:translateY(-50%); color:#bbb; font-size:14px; pointer-events:none; }
.live-search-wrap .ls-spinner {
  position:absolute; right:12px; top:50%; transform:translateY(-50%); width:14px; height:14px;
  border:2px solid #eee; border-top-color:var(--primary); border-radius:50%; display:none; animation:spin .6s linear infinite;
}
@keyframes spin { to { transform:translateY(-50%) rotate(360deg); } }
.sort-select {
  padding:8px 32px 8px 12px; border:1px solid #e2e2e2; border-radius:6px; font-size:13px; background:#fff; cursor:pointer; outline:none;
}
.view-toggle { display:flex; border:1px solid #e2e2e2; border-radius:6px; overflow:hidden; }
.view-toggle button {
  width:36px; height:34px; border:none; background:#fff; color:#999; cursor:pointer; display:flex; align-items:center; justify-content:center; font-size:14px; transition:.15s;
}
.view-toggle button.active { background:var(--primary); color:#fff; }
.view-toggle button:hover:not(.active) { background:#f8f8f8; }

/* Results grid / list view (shared markup, CSS-driven layout switch) */
.results-grid { display:flex; flex-wrap:wrap; margin:0 -12.5px; }
.shop-item-col { padding:0 12.5px; margin-bottom:25px; width:33.333%; }
.shop-card { background:#fff; border:1px solid #eee; border-radius:10px; overflow:hidden; transition:.2s; height:100%; }
.shop-card:hover { transform:translateY(-4px); box-shadow:0 8px 25px rgba(0,0,0,.12); }
.shop-card-img { display:block; height:200px; background:#f1f2f3; position:relative; overflow:hidden; }
.shop-card-img img { width:100%; height:100%; object-fit:cover; }
.shop-card-body { padding:15px; }

.results-grid.view-list .shop-item-col { width:100%; }
.results-grid.view-list .shop-card { display:flex; }
.results-grid.view-list .shop-card-img { width:220px; height:auto; flex-shrink:0; }
.results-grid.view-list .shop-card-body { flex:1; display:flex; flex-direction:column; justify-content:center; }

.star-rating { color:#f39c12; font-size:12px; letter-spacing:1px; }
.star-rating .rc { color:#999; font-size:11px; margin-left:4px; letter-spacing:0; }

@media (max-width: 992px) { .shop-item-col { width:50%; } }
@media (max-width: 576px) {
  .shop-item-col { width:100%; }
  .results-grid.view-list .shop-card { flex-direction:column; }
  .results-grid.view-list .shop-card-img { width:100%; height:180px; }
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .section-title { font-size: 24px; }
  .banner-btn { padding: 10px 20px; font-size: 13px; }
  .pos-layout { flex-direction: column; height: auto; }
}
