/* ═══════════════════════════════════════════════════
   BEEF CLUB – Online-Bestellplattform
   Mobile-first · Premium Dark · Gold Accents
   ═══════════════════════════════════════════════════ */

/* Tokens erben vom Design-System (design-system.css).
   Alte Variablen gemappt für Abwärtskompatibilität mit order.js-generiertem HTML. */
:root {
  --bg:        var(--bc-black);
  --bg2:       #111111;
  --surface:   var(--bc-black-card);
  --surface2:  #1f1a14;
  --border:    rgba(200,162,78,0.18);
  --border-h:  rgba(200,162,78,0.45);
  --gold:      var(--bc-gold);
  --gold-l:    var(--bc-gold-light);
  --gold-d:    var(--bc-gold-dark);
  --text:      var(--bc-white);
  --muted:     var(--bc-gray-300);
  --danger:    #e63946;
  --success:   #2a9d5c;
  --radius:    var(--bc-radius-lg);
  --radius-sm: var(--bc-radius-sm);
  --shadow:    var(--bc-shadow-md);
  --trans:     var(--bc-transition);
  --header-h:  64px;
  --cart-w:    340px;
}

[hidden] { display: none !important; }

button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.bc-gold { color: var(--gold); }
.bc-muted { color: var(--muted); font-size: 0.875rem; }

/* ── BUTTONS ─────────────────────────────────────── */
.bc-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 28px;
  border-radius: var(--radius-sm); font-weight: 700; font-size: 1rem;
  transition: all var(--trans); white-space: nowrap; cursor: pointer;
}
.bc-btn:active { transform: scale(0.97); }

.bc-btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-l) 100%);
  color: #0a0a0a;
  box-shadow: 0 4px 16px rgba(215,168,63,0.30);
}
.bc-btn-gold:hover {
  box-shadow: 0 6px 24px rgba(215,168,63,0.45);
  filter: brightness(1.07);
}
.bc-btn-outline {
  background: transparent; color: var(--gold);
  border: 2px solid var(--gold);
}
.bc-btn-outline:hover { background: rgba(215,168,63,0.10); }
.bc-btn-lg  { padding: 18px 40px; font-size: 1.1rem; border-radius: var(--radius); }
.bc-btn-block { width: 100%; }

.bc-btn-text {
  background: none; color: var(--muted); font-size: 0.9rem;
  padding: 8px; text-decoration: underline; cursor: pointer;
  display: block; text-align: center; margin-top: 12px;
  transition: color var(--trans);
}
.bc-btn-text:hover { color: var(--text); }

/* ── HEADER ──────────────────────────────────────── */
.bc-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.bc-header-inner {
  max-width: 1200px; margin: 0 auto;
  height: 100%; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.bc-logo-link {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
}
.bc-logo { width: 38px; height: 38px; object-fit: contain; }
.bc-logo-text {
  font-weight: 800; font-size: 1.05rem; color: var(--text);
  display: flex; flex-direction: column; line-height: 1.1;
}
.bc-logo-sub { font-size: 0.68rem; font-weight: 500; color: var(--gold); letter-spacing: 0.04em; }

.bc-cart-trigger {
  position: relative; padding: 10px; color: var(--text);
  display: flex; align-items: center;
}
.bc-cart-trigger svg { width: 22px; height: 22px; }
.bc-cart-badge {
  position: absolute; top: 4px; right: 4px;
  background: var(--gold); color: #0a0a0a;
  font-size: 0.7rem; font-weight: 800;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ── LUNCH BANNER ────────────────────────────────── */
.bc-lunch-banner {
  background: linear-gradient(135deg, #2a1a00 0%, #3a2400 100%);
  border-bottom: 1px solid rgba(215,168,63,0.35);
  padding: 12px 20px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: 0.9rem; color: var(--gold-l);
}
.bc-lunch-icon { font-size: 1.1rem; }
.bc-lunch-cta {
  margin-left: auto; padding: 6px 16px;
  background: var(--gold); color: #0a0a0a;
  border-radius: var(--radius-sm); font-weight: 700; font-size: 0.85rem; cursor: pointer;
}

/* ── OFFLINE BANNER ──────────────────────────────── */
.bc-offline-banner {
  background: #1a0808; border-bottom: 1px solid rgba(230,57,70,0.35);
  padding: 14px 20px; text-align: center;
  color: #f08080; font-size: 0.95rem;
}
.bc-pause-banner {
  background: #1a1000; border-bottom: 1px solid rgba(255,165,0,0.35);
  padding: 14px 20px; text-align: center;
  color: #ffb347; font-size: 0.95rem;
}
.bc-pause-banner-sub {
  margin: 4px 0 0; font-size: 0.85rem; opacity: 0.85;
}

/* ── HERO ────────────────────────────────────────── */
.bc-hero {
  position: relative; min-height: 480px;
  display: flex; align-items: center;
  overflow: hidden;
}
.bc-hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.bc-hero-img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
}
.bc-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    100deg,
    rgba(10,10,10,0.92) 0%,
    rgba(10,10,10,0.75) 50%,
    rgba(10,10,10,0.40) 100%
  );
}
.bc-hero-content {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto; padding: 60px 24px;
  max-width: 560px; margin-left: 5vw;
}
.bc-hero-kicker {
  color: var(--gold); font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 12px;
}
.bc-hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900;
  line-height: 1.1; margin-bottom: 16px; color: var(--text);
}
.bc-hero-sub {
  color: #c8c0b0; font-size: 1rem; margin-bottom: 32px; line-height: 1.5;
}
@media (max-width: 600px) {
  .bc-hero { min-height: 360px; }
  .bc-hero-content { margin-left: 0; padding: 40px 20px; }
}

/* ── ORDER TYPE ──────────────────────────────────── */
.bc-section { padding: 40px 0; }
.bc-section-title {
  font-size: 1.3rem; font-weight: 800; margin-bottom: 20px; text-align: center;
}
.bc-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.bc-order-type-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 480px; margin: 0 auto;
}
.bc-order-type-card {
  background: var(--surface); border: 2px solid var(--border);
  border-radius: var(--radius); padding: 28px 20px; text-align: center;
  transition: all var(--trans); cursor: pointer;
}
.bc-order-type-card:hover { border-color: var(--border-h); background: var(--surface2); }
.bc-order-type-card.active {
  border-color: var(--gold);
  background: rgba(215,168,63,0.08);
  box-shadow: 0 0 0 1px var(--gold);
}
.bc-ot-icon { font-size: 2rem; margin-bottom: 8px; }
.bc-ot-label { font-weight: 800; font-size: 1.05rem; margin-bottom: 4px; }
.bc-ot-sub { color: var(--muted); font-size: 0.82rem; }

/* ── CATEGORY NAV ────────────────────────────────── */
.bc-cat-nav {
  position: sticky; top: var(--header-h); z-index: 90;
  background: rgba(10,10,10,0.95); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.bc-cat-nav::-webkit-scrollbar { display: none; }
.bc-cat-nav-inner {
  display: flex; gap: 4px; padding: 10px 16px; min-width: max-content;
}
.bc-cat-btn {
  padding: 8px 16px; border-radius: 20px; font-weight: 600; font-size: 0.88rem;
  background: transparent; color: var(--text);
  transition: all var(--trans); white-space: nowrap; cursor: pointer;
  border: 1px solid var(--border);
}
.bc-cat-btn:hover { color: var(--gold); border-color: rgba(215,168,63,0.35); }
.bc-cat-btn.active {
  background: rgba(215,168,63,0.15); color: var(--gold);
  border-color: rgba(215,168,63,0.35);
}
.bc-cat-lunch { color: var(--gold-d); }

/* ── MAIN LAYOUT ─────────────────────────────────── */
.bc-main { padding-bottom: 100px; }
.bc-menu-layout {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  display: grid; grid-template-columns: 1fr var(--cart-w); gap: 32px;
  align-items: start;
}
@media (max-width: 960px) {
  .bc-menu-layout { grid-template-columns: 1fr; }
  .bc-cart-sidebar { display: none; }
}

/* ── CATEGORY SECTIONS ───────────────────────────── */
.bc-cat-section { padding: 40px 0 8px; }
.bc-cat-title {
  font-size: 1.4rem; font-weight: 800; margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--border); padding-bottom: 12px;
}
.bc-cat-badge-lunch {
  font-size: 0.72rem; font-weight: 600; color: var(--gold);
  background: rgba(215,168,63,0.12); border: 1px solid rgba(215,168,63,0.3);
  padding: 3px 10px; border-radius: 20px; letter-spacing: 0.03em;
}
.bc-lunch-unavail {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; margin-bottom: 16px;
  color: var(--muted); line-height: 1.6; font-size: 0.9rem;
}

/* ── PRODUCT GRID ────────────────────────────────── */
.bc-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
@media (max-width: 480px) {
  .bc-product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* ── PRODUCT CARD ────────────────────────────────── */
.bc-prod-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  transition: all var(--trans); display: flex; flex-direction: column;
  position: relative;
}
.bc-prod-card:hover {
  border-color: var(--border-h);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}
.bc-prod-card.unavailable { opacity: 0.5; pointer-events: none; }
.bc-sold-out-label {
  position: absolute; top: 10px; left: 10px;
  background: rgba(0,0,0,0.75); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  padding: 3px 8px; border-radius: 4px; text-transform: uppercase;
  pointer-events: none; z-index: 2;
}

.bc-prod-img-wrap {
  width: 100%; aspect-ratio: 4/3; overflow: hidden;
  background: var(--surface2);
  display: flex; align-items: center; justify-content: center;
}
.bc-prod-img {
  width: 100%; height: 100%;
  object-fit: contain; object-position: center;
  transition: transform 0.3s ease;
}
.bc-prod-card:hover .bc-prod-img { transform: scale(1.04); }
.bc-prod-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface2) 100%);
}

.bc-prod-body { padding: 12px; flex: 1; display: flex; flex-direction: column; }
.bc-prod-badges { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 6px; }
.bc-badge {
  font-size: 0.65rem; font-weight: 700; padding: 2px 7px; border-radius: 10px;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.bc-badge-hot   { background: rgba(220,60,40,0.15); color: #f06050; border: 1px solid rgba(220,60,40,0.25); }
.bc-badge-spicy { background: rgba(220,120,40,0.15); color: #e8924a; border: 1px solid rgba(220,120,40,0.25); }
.bc-badge-veg   { background: rgba(42,157,92,0.15); color: #4caf80; border: 1px solid rgba(42,157,92,0.25); }
.bc-badge-pop   { background: rgba(215,168,63,0.15); color: var(--gold); border: 1px solid var(--border); }
.bc-badge-lunch { background: rgba(215,168,63,0.12); color: var(--gold-l); border: 1px solid rgba(215,168,63,0.3); }
.bc-badge-new   { background: rgba(80,140,255,0.15); color: #80aeff; border: 1px solid rgba(80,140,255,0.25); }

.bc-prod-name { font-weight: 700; font-size: 0.95rem; margin-bottom: 4px; line-height: 1.25; }
.bc-prod-desc { color: var(--muted); font-size: 0.78rem; line-height: 1.4; flex: 1; margin-bottom: 8px; }
.bc-prod-footer { display: flex; align-items: center; justify-content: space-between; }
.bc-prod-price {
  color: var(--gold); font-weight: 700; font-size: 0.95rem;
}
.bc-prod-price-from { font-size: 0.7rem; color: var(--muted); font-weight: 400; }
.bc-prod-add {
  background: rgba(215,168,63,0.15); color: var(--gold);
  border: 1px solid rgba(215,168,63,0.3);
  padding: 6px 12px; border-radius: var(--radius-sm);
  font-size: 0.82rem; font-weight: 700; cursor: pointer;
  transition: all var(--trans);
}
.bc-prod-add:hover { background: rgba(215,168,63,0.25); }

@media (max-width: 480px) {
  .bc-prod-name { font-size: 0.85rem; }
  .bc-prod-desc { font-size: 0.72rem; }
  .bc-prod-add  { padding: 5px 9px; font-size: 0.75rem; }
}

/* ── CART SIDEBAR ────────────────────────────────── */
.bc-cart-sidebar {
  position: sticky; top: calc(var(--header-h) + 56px);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  max-height: calc(100vh - var(--header-h) - 80px);
  display: flex; flex-direction: column;
}
.bc-cart-header {
  padding: 16px 20px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.bc-cart-header h3 { font-weight: 800; font-size: 1.05rem; }
.bc-cart-count { color: var(--muted); font-size: 0.82rem; }

.bc-cart-items {
  flex: 1; overflow-y: auto; padding: 12px;
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.bc-cart-empty { padding: 24px; text-align: center; color: var(--muted); line-height: 1.6; }

.bc-cart-item {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px; margin-bottom: 10px;
}
.bc-cart-item-row { display: flex; align-items: flex-start; gap: 8px; }
.bc-cart-item-info { flex: 1; min-width: 0; }
.bc-cart-item-name { font-weight: 700; font-size: 0.9rem; line-height: 1.3; }
.bc-cart-item-detail { color: var(--muted); font-size: 0.75rem; margin-top: 2px; line-height: 1.4; }
.bc-cart-item-price { color: var(--gold); font-weight: 700; font-size: 0.9rem; white-space: nowrap; }

.bc-cart-item-actions {
  display: flex; align-items: center; justify-content: space-between; margin-top: 8px;
}
.bc-cart-qty-ctrl { display: flex; align-items: center; gap: 8px; }
.bc-cart-qty-btn {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); font-size: 1rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--trans);
}
.bc-cart-qty-btn:hover { border-color: var(--gold); color: var(--gold); }
.bc-cart-qty-num { font-weight: 700; min-width: 20px; text-align: center; }
.bc-cart-del {
  background: none; border: 1px solid rgba(230,57,70,0.25);
  color: var(--muted); font-size: 0.75rem; font-weight: 600; cursor: pointer;
  padding: 4px 10px; border-radius: var(--radius-sm);
  transition: all var(--trans);
}
.bc-cart-del:hover {
  color: var(--danger); border-color: rgba(230,57,70,0.55);
  background: rgba(230,57,70,0.08);
}
.bc-cart-fav {
  background: none; border: none;
  color: var(--muted); font-size: 0.9rem; cursor: pointer; padding: 4px;
  transition: color var(--trans);
}
.bc-cart-fav:hover { color: var(--gold); }

.bc-cart-upsell {
  border-top: 1px solid var(--border); padding: 12px 16px;
  background: rgba(215,168,63,0.04);
}
.bc-upsell-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 6px 0; font-size: 0.82rem; color: var(--muted);
}
.bc-upsell-row button {
  color: var(--gold); font-size: 0.78rem; font-weight: 700;
  padding: 3px 8px; border: 1px solid rgba(215,168,63,0.3);
  border-radius: var(--radius-sm); background: rgba(215,168,63,0.08);
  cursor: pointer; white-space: nowrap;
}

.bc-cart-footer {
  padding: 16px; border-top: 1px solid var(--border);
}
.bc-cart-total-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px; font-weight: 700;
}
.bc-cart-total { color: var(--gold); font-size: 1.1rem; }

/* ── MOBILE CART BAR ─────────────────────────────── */
.bc-mobile-cart {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 80;
  padding: 12px 16px 20px; /* safe area bottom */
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgba(10,10,10,1) 0%, rgba(10,10,10,0.95) 100%);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.bc-mobile-cart-inner {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-l) 100%);
  color: #0a0a0a; border-radius: var(--radius);
  padding: 16px 20px; width: 100%;
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  font-weight: 700;
}
.bc-mobile-cart-qty {
  background: rgba(0,0,0,0.15); border-radius: 20px;
  padding: 2px 10px; font-size: 0.9rem;
}
.bc-mobile-cart-label { flex: 1; text-align: center; }
.bc-mobile-cart-total { font-size: 1rem; }

/* ── MODAL BACKDROP ──────────────────────────────── */
.bc-modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.75); backdrop-filter: blur(4px);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0;
  overflow-y: auto;
}
@media (min-width: 640px) {
  .bc-modal-backdrop { align-items: center; padding: 20px; }
}

/* ── PRODUCT MODAL ───────────────────────────────── */
.bc-modal {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
  width: 100%; max-width: 520px; max-height: 92vh;
  overflow-y: auto; position: relative;
  scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
@media (min-width: 640px) {
  .bc-modal { border-radius: var(--radius); max-height: 90vh; }
}
.bc-modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 10;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0,0,0,0.5); color: var(--text);
  font-size: 1.1rem; display: flex; align-items: center; justify-content: center;
  transition: background var(--trans);
}
.bc-modal-close:hover { background: rgba(0,0,0,0.8); }

.bc-modal-img-wrap {
  width: 100%; aspect-ratio: 16/9; background: var(--surface2);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.bc-modal-img {
  width: 100%; height: 100%; object-fit: contain; object-position: center;
}
.bc-modal-body { padding: 20px; }
.bc-modal-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.bc-modal-title { font-size: 1.4rem; font-weight: 900; margin-bottom: 6px; }
.bc-modal-desc { color: var(--muted); font-size: 0.9rem; line-height: 1.5; margin-bottom: 20px; }

.bc-modal-group { margin-bottom: 18px; }
.bc-modal-label {
  display: block; font-weight: 700; font-size: 0.85rem; margin-bottom: 8px;
  color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em;
}

.bc-size-grid { display: flex; gap: 8px; flex-wrap: wrap; }
.bc-size-btn {
  flex: 1; min-width: 80px; padding: 10px 8px;
  background: var(--surface2); border: 2px solid var(--border);
  border-radius: var(--radius-sm); text-align: center;
  color: var(--text); font-weight: 600; font-size: 0.88rem;
  transition: all var(--trans); cursor: pointer;
}
.bc-size-btn.active {
  border-color: var(--gold); background: rgba(215,168,63,0.12); color: var(--gold);
}
.bc-size-btn:hover:not(.active) { border-color: var(--border-h); }
.bc-size-sub { font-size: 0.72rem; color: var(--muted); margin-top: 2px; }

.bc-type-grid { display: flex; gap: 8px; }
.bc-type-btn {
  flex: 1; padding: 10px 12px;
  background: var(--surface2); border: 2px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  font-weight: 600; font-size: 0.9rem;
  transition: all var(--trans); cursor: pointer; text-align: center;
}
.bc-type-btn.active {
  border-color: var(--gold); background: rgba(215,168,63,0.12); color: var(--gold);
}
.bc-type-menu-price { color: var(--muted); font-size: 0.78rem; }

.bc-upsell-hint {
  background: rgba(215,168,63,0.06); border: 1px solid rgba(215,168,63,0.2);
  border-radius: var(--radius-sm); padding: 10px 14px;
  font-size: 0.85rem; color: var(--gold-l);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-bottom: 12px;
}
.bc-upsell-action {
  padding: 5px 12px; background: rgba(215,168,63,0.15); color: var(--gold);
  border: 1px solid rgba(215,168,63,0.3); border-radius: var(--radius-sm);
  font-size: 0.8rem; font-weight: 700; cursor: pointer; white-space: nowrap;
}

.bc-select {
  width: 100%; padding: 11px 14px;
  background: var(--surface2); border: 2px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text); font-size: 0.95rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%238a8070' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 36px; cursor: pointer;
  transition: border-color var(--trans);
}
.bc-select:focus { border-color: var(--gold); outline: none; }

.bc-extras-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bc-extra-btn {
  padding: 9px 10px; background: var(--surface2);
  border: 2px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); font-size: 0.82rem; font-weight: 600;
  text-align: left; cursor: pointer; transition: all var(--trans);
  line-height: 1.2;
}
.bc-extra-btn.active {
  border-color: var(--gold); background: rgba(215,168,63,0.12); color: var(--gold);
}
.bc-extra-btn:hover:not(.active):not(:disabled) { border-color: var(--border-h); }
.bc-extra-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.bc-input {
  width: 100%; padding: 11px 14px;
  background: var(--surface2); border: 2px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text); font-size: 0.95rem;
  transition: border-color var(--trans);
}
.bc-input:focus { border-color: var(--gold); outline: none; }
.bc-input::placeholder { color: var(--muted); }

.bc-modal-footer {
  display: flex; align-items: center; gap: 12px;
  margin-top: 24px; flex-wrap: wrap;
}
.bc-qty-ctrl {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 6px 10px;
}
.bc-qty-btn {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--trans);
}
.bc-qty-btn:hover { border-color: var(--gold); color: var(--gold); }
.bc-qty-val { font-weight: 800; font-size: 1rem; min-width: 28px; text-align: center; }
.bc-modal-price { font-size: 1.2rem; font-weight: 800; color: var(--gold); flex: 1; text-align: center; }
.bc-modal-footer .bc-btn { flex: 1; }

/* ── BOTTOM SHEET ────────────────────────────────── */
.bc-sheet {
  background: var(--surface); border-radius: var(--radius) var(--radius) 0 0;
  width: 100%; max-width: 520px; max-height: 90vh;
  display: flex; flex-direction: column; overflow: hidden;
}
.bc-sheet-handle {
  width: 40px; height: 4px; border-radius: 2px;
  background: var(--border); margin: 12px auto 0;
}
.bc-sheet-close {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--surface2); color: var(--text);
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.bc-sheet-items { flex: 1; overflow-y: auto; padding: 12px; }

/* ── CHECKOUT MODAL ──────────────────────────────── */
.bc-checkout-modal {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
  width: 100%; max-width: 540px; max-height: 94vh;
  overflow-y: auto; position: relative; padding: 28px 24px 32px;
}
@media (min-width: 640px) {
  .bc-checkout-modal { border-radius: var(--radius); max-height: 90vh; }
}
.bc-checkout-title { font-size: 1.4rem; font-weight: 900; margin-bottom: 20px; }

.bc-co-type-row { display: flex; gap: 10px; margin-bottom: 20px; }
.bc-co-type-btn {
  flex: 1; padding: 11px; border: 2px solid var(--border);
  border-radius: var(--radius-sm); font-weight: 700; font-size: 0.9rem;
  color: var(--muted); background: var(--surface2); cursor: pointer;
  transition: all var(--trans);
}
.bc-co-type-btn.active { border-color: var(--gold); color: var(--gold); background: rgba(215,168,63,0.08); }

.bc-co-form { display: flex; flex-direction: column; gap: 16px; }
.bc-form-group { display: flex; flex-direction: column; gap: 6px; }
.bc-form-label { font-weight: 600; font-size: 0.85rem; color: var(--muted); }
.bc-zone-info {
  font-size: 0.82rem; padding: 8px 12px; border-radius: var(--radius-sm);
  border: 1px solid transparent; line-height: 1.4;
}
.bc-zone-info.ok    { background: rgba(42,157,92,0.1); color: #4caf80; border-color: rgba(42,157,92,0.25); }
.bc-zone-info.warn  { background: rgba(215,168,63,0.1); color: var(--gold-l); border-color: rgba(215,168,63,0.3); }
.bc-zone-info.error { background: rgba(220,60,40,0.1); color: #f06050; border-color: rgba(220,60,40,0.25); }

.bc-payment-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.bc-pay-btn {
  padding: 10px 8px; background: var(--surface2); border: 2px solid var(--border);
  border-radius: var(--radius-sm); color: var(--muted);
  font-size: 0.8rem; font-weight: 600; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  transition: all var(--trans);
}
.bc-pay-btn.active { border-color: var(--gold); color: var(--gold); background: rgba(215,168,63,0.08); }
.bc-pay-icon { font-size: 1.2rem; }

.bc-consent-block {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px;
}
.bc-checkbox-label {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.82rem; color: var(--muted); line-height: 1.4; cursor: pointer;
}
.bc-checkbox { margin-top: 2px; accent-color: var(--gold); }

.bc-co-cart-summary {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px;
  font-size: 0.85rem; color: var(--muted); line-height: 1.8;
}
.bc-co-total-row {
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 800; font-size: 1.05rem; padding: 8px 0;
}
.bc-co-total { color: var(--gold); }
.bc-co-hint { color: var(--muted); font-size: 0.8rem; text-align: center; margin-top: 8px; }

/* Step 2: Code */
.bc-code-input-wrap { display: flex; justify-content: center; margin: 24px 0; }
.bc-code-input {
  width: 200px; text-align: center; font-size: 2rem; font-weight: 900;
  letter-spacing: 8px; padding: 16px;
  background: var(--surface2); border: 2px solid var(--gold);
  border-radius: var(--radius-sm); color: var(--gold); font-family: monospace;
}
.bc-co-error {
  background: rgba(230,57,70,0.1); border: 1px solid rgba(230,57,70,0.3);
  color: #f08080; border-radius: var(--radius-sm);
  padding: 10px 14px; font-size: 0.85rem; margin-bottom: 12px;
}

/* Loading */
.bc-loading-wrap { text-align: center; padding: 40px; color: var(--muted); }
.bc-spinner {
  width: 40px; height: 40px; border-radius: 50%;
  border: 3px solid var(--border); border-top-color: var(--gold);
  animation: spin 0.8s linear infinite; margin: 0 auto 20px;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bc-bounce { 0%,100% { transform: scale(1); } 40% { transform: scale(1.4); } 70% { transform: scale(0.9); } }
.bc-bounce { animation: bc-bounce 0.4s ease; }

/* ── CONFIRMATION CARD ───────────────────────────── */
.bc-confirm-card {
  background: var(--surface); border: 1px solid rgba(215,168,63,0.35);
  border-radius: var(--radius); width: 100%; max-width: 420px;
  padding: 36px 28px; text-align: center;
  box-shadow: 0 0 60px rgba(215,168,63,0.15);
}
.bc-confirm-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-l) 100%);
  color: #0a0a0a; font-size: 1.8rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.bc-confirm-title { font-size: 1.5rem; font-weight: 900; margin-bottom: 16px; }
.bc-confirm-number {
  font-size: 1rem; color: var(--muted); margin-bottom: 20px;
}
.bc-confirm-number strong { color: var(--gold); font-size: 1.3rem; }
.bc-confirm-eta {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px;
  margin-bottom: 24px; display: flex; flex-direction: column; gap: 4px;
}
.bc-confirm-eta-label { color: var(--muted); font-size: 0.82rem; }
.bc-confirm-eta-val { color: var(--gold); font-size: 1.3rem; font-weight: 800; }
.bc-confirm-btns { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }

/* ── AI FLOATING BUTTON ──────────────────────────── */
.bc-ai-fab {
  position: fixed; bottom: calc(90px + env(safe-area-inset-bottom));
  right: 20px; z-index: 150;
  background: linear-gradient(135deg, var(--gold-d) 0%, var(--gold) 100%);
  color: #0a0a0a; border-radius: 28px;
  padding: 12px 18px; display: flex; align-items: center; gap: 8px;
  box-shadow: 0 6px 24px rgba(215,168,63,0.35);
  font-weight: 700; font-size: 0.85rem;
  transition: all var(--trans); cursor: pointer;
}
.bc-ai-fab:hover { box-shadow: 0 8px 32px rgba(215,168,63,0.5); transform: translateY(-2px); }
@media (min-width: 960px) {
  .bc-ai-fab { bottom: 30px; }
}

/* ── AI PANEL ────────────────────────────────────── */
.bc-ai-panel {
  position: fixed; bottom: 0; right: 0; z-index: 160;
  width: 100%; max-width: 380px;
  height: 520px; max-height: 80vh;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow);
}
@media (min-width: 640px) {
  .bc-ai-panel {
    right: 24px; bottom: 24px;
    border-radius: var(--radius);
  }
}
.bc-ai-panel-header {
  padding: 14px 16px; border-bottom: 1px solid var(--border);
  display: flex; align-items: flex-start; justify-content: space-between;
}
.bc-ai-panel-header h3 { font-weight: 800; font-size: 1rem; }
.bc-ai-sub { font-size: 0.75rem; margin-top: 2px; }

.bc-ai-messages {
  flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px;
}
.bc-ai-msg {
  max-width: 85%; border-radius: var(--radius-sm);
  padding: 10px 14px; font-size: 0.88rem; line-height: 1.5;
}
.bc-ai-msg-bot { background: var(--surface2); color: var(--text); align-self: flex-start; }
.bc-ai-msg-user { background: rgba(215,168,63,0.15); color: var(--gold-l); align-self: flex-end; }
.bc-ai-msg-typing {
  background: var(--surface2); align-self: flex-start;
  padding: 12px 16px; border-radius: var(--radius-sm);
  color: var(--muted); font-size: 0.85rem;
}

.bc-ai-suggestion {
  border-top: 1px solid var(--border); padding: 12px;
  background: rgba(215,168,63,0.04);
}
.bc-ai-sug-title { font-weight: 700; font-size: 0.82rem; color: var(--gold); margin-bottom: 8px; }
.bc-ai-sug-items { font-size: 0.82rem; color: var(--muted); line-height: 1.7; margin-bottom: 6px; }
.bc-ai-sug-total { color: var(--gold); font-weight: 700; font-size: 0.9rem; margin-bottom: 10px; }
.bc-ai-sug-btns { display: flex; gap: 8px; }
.bc-ai-sug-btns .bc-btn { flex: 1; padding: 10px 16px; font-size: 0.88rem; }

.bc-ai-input-row {
  display: flex; gap: 8px; padding: 12px;
  border-top: 1px solid var(--border);
}
.bc-ai-input { flex: 1; }
.bc-ai-send {
  padding: 11px 14px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-l) 100%);
  color: #0a0a0a; flex-shrink: 0;
}
