/* ===========================================
   BAKERI BESTILLING v4 — Fresh & Airy
   Modern bakery ordering experience
   =========================================== */

/* Google Font loaded via PHP */

:root {
  /* Brand */
  --br:       #E8621A;
  --br-lt:    #F07A3E;
  --br-pale:  #FFF6F0;
  --br-bg:    #FEF0E7;

  /* Neutrals */
  --ink:      #1A1A1A;
  --ink-2:    #404040;
  --ink-3:    #6B6B6B;
  --muted:    #9A9A9A;
  --line:     #EBEBEB;
  --line-lt:  #F5F5F5;
  --paper:    #FAFAFA;
  --white:    #FFFFFF;

  /* Semantic */
  --ok:       #16A34A;
  --ok-bg:    #F0FDF4;
  --err:      #DC2626;
  --err-bg:   #FEF2F2;

  /* Radius */
  --r1: 6px;
  --r2: 10px;
  --r3: 16px;
  --r4: 24px;

  /* Shadow */
  --sh0: 0 1px 2px rgba(0,0,0,0.05);
  --sh1: 0 2px 8px rgba(0,0,0,0.06);
  --sh2: 0 8px 24px rgba(0,0,0,0.07);
  --sh3: 0 16px 48px rgba(0,0,0,0.09);
}

*, *::before, *::after { box-sizing: border-box; }

/* ═══════════════════════════════════════════
   WRAPPER
   ═══════════════════════════════════════════ */
#bakeri-app {
  font-family: 'DM Sans', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink);
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px 80px;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

/* ═══════════════════════════════════════════
   PAGE HEADER — compact, no hero
   ═══════════════════════════════════════════ */
.bb-page-hdr {
  display: flex; align-items: center; gap: 12px;
  padding: 28px 0 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}
.bb-page-hdr-ico {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--br-bg);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.bb-page-hdr-ico svg { width: 20px; height: 20px; stroke: var(--br); fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.bb-page-hdr h1 { font-size: 22px; font-weight: 700; color: var(--ink); margin: 0 0 2px; letter-spacing: -0.3px; }
.bb-page-hdr p  { font-size: 14px; color: var(--ink-3); margin: 0; }

/* ═══════════════════════════════════════════
   STEPPER — minimal pill style
   ═══════════════════════════════════════════ */
.bb-stepper {
  display: flex; align-items: center;
  max-width: 480px; margin: 0 auto 40px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 6px 6px;
  gap: 2px;
}
.bb-si {
  flex: 1; display: flex; align-items: center; justify-content: center;
  gap: 7px; padding: 9px 12px; border-radius: 100px;
  transition: all 0.25s; position: relative; cursor: default;
}
.bb-si-num {
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
  background: var(--line); color: var(--muted);
  transition: all 0.25s;
}
.bb-si-lbl { font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.bb-si.active {
  background: var(--br-bg);
}
.bb-si.active .bb-si-num { background: var(--br); color: #fff; }
.bb-si.active .bb-si-lbl { color: var(--br); font-weight: 700; }
.bb-si.done .bb-si-num {
  background: var(--br); color: #fff;
  font-size: 0;
}
.bb-si.done .bb-si-num::after {
  content: '';
  display: block; width: 10px; height: 6px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
}
.bb-si.done .bb-si-lbl { color: var(--ink-2); }

/* ═══════════════════════════════════════════
   LAYOUT — two column on desktop
   ═══════════════════════════════════════════ */
.bb-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  align-items: start;
}
.bb-main-col {}
.bb-side-col { position: sticky; top: 24px; }

/* ═══════════════════════════════════════════
   PANELS
   ═══════════════════════════════════════════ */
.bb-panel { display: none; }
.bb-panel.active { display: block; animation: bbFadeUp 0.3s ease; }
@keyframes bbFadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ═══════════════════════════════════════════
   SECTION — replaces "card" — lighter feel
   ═══════════════════════════════════════════ */
.bb-sec {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r3);
  margin-bottom: 16px;
  overflow: hidden;
}
.bb-sec-hd {
  display: flex; align-items: center; gap: 12px;
  padding: 20px 24px 18px;
  border-bottom: 1px solid var(--line-lt);
}
.bb-sec-ico {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--br-bg);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.bb-sec-ico svg { width: 18px; height: 18px; stroke: var(--br); fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.bb-sec-hd-txt h2 { font-size: 17px; font-weight: 700; margin: 0 0 2px; color: var(--ink); letter-spacing: -0.2px; }
.bb-sec-hd-txt p  { font-size: 13px; color: var(--ink-3); margin: 0; }
.bb-sec-bd { padding: 24px; }

/* ═══════════════════════════════════════════
   CUSTOMER TYPE TOGGLE
   ═══════════════════════════════════════════ */
.bb-type-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.bb-type-opt {
  display: flex; align-items: center; gap: 12px;
  padding: 16px; border-radius: var(--r2);
  border: 1.5px solid var(--line);
  cursor: pointer; transition: all 0.2s; background: var(--white); position: relative;
}
.bb-type-opt:hover { border-color: var(--br-lt); background: var(--br-pale); }
.bb-type-opt.on { border-color: var(--br); background: var(--br-bg); }
.bb-type-ico {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--line-lt); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; transition: background 0.2s;
}
.bb-type-ico svg { width: 18px; height: 18px; stroke: var(--ink-3); fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.2s; }
.bb-type-opt.on .bb-type-ico { background: rgba(232,98,26,0.12); }
.bb-type-opt.on .bb-type-ico svg { stroke: var(--br); }
.bb-type-txt h3 { font-size: 14px; font-weight: 700; margin: 0 0 2px; color: var(--ink); }
.bb-type-txt p  { font-size: 12px; color: var(--ink-3); margin: 0; }
.bb-type-check {
  position: absolute; top: 10px; right: 10px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--br); color: #fff;
  display: none; align-items: center; justify-content: center;
}
.bb-type-check svg { width: 10px; height: 10px; stroke: #fff; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.bb-type-opt.on .bb-type-check { display: flex; }

/* ═══════════════════════════════════════════
   FORM FIELDS
   ═══════════════════════════════════════════ */
.bb-fg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bb-fg { display: flex; flex-direction: column; gap: 6px; }
.bb-fg.col2 { grid-column: 1 / -1; }
.bb-lbl {
  font-size: 12px; font-weight: 600; color: var(--ink-3);
  letter-spacing: 0.2px; text-transform: none;
}
.bb-lbl em { color: var(--br); font-style: normal; }
.bb-inp {
  width: 100%; border: 1.5px solid var(--line);
  border-radius: var(--r1); padding: 10px 12px;
  font-size: 15px; font-family: inherit; color: var(--ink);
  background: var(--white); transition: border-color 0.15s, box-shadow 0.15s;
  outline: none; -webkit-appearance: none; appearance: none;
}
.bb-inp::placeholder { color: var(--muted); }
.bb-inp:focus {
  border-color: var(--br) !important;
  box-shadow: 0 0 0 3px rgba(232,98,26,0.1);
}
select.bb-inp {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpolyline points='1,2 6,7 11,2' fill='none' stroke='%236B6B6B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px;
}
textarea.bb-inp { min-height: 88px; resize: vertical; }

/* Invoice toggle */
.bb-inv-toggle {
  margin-top: 16px; display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border: 1.5px solid var(--line);
  border-radius: var(--r2); cursor: pointer; transition: all 0.2s; background: var(--white);
}
.bb-inv-toggle:hover { border-color: var(--br-lt); }
.bb-inv-toggle.on { border-color: var(--br); background: var(--br-bg); }
.bb-sw {
  width: 42px; height: 24px; border-radius: 12px;
  background: var(--line); flex-shrink: 0; position: relative; transition: background 0.22s;
}
.bb-sw::after {
  content: ''; position: absolute;
  width: 18px; height: 18px; background: #fff; border-radius: 50%;
  top: 3px; left: 3px; transition: transform 0.22s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.bb-inv-toggle.on .bb-sw { background: var(--br); }
.bb-inv-toggle.on .bb-sw::after { transform: translateX(18px); }
.bb-inv-lbl strong { font-size: 14px; font-weight: 600; color: var(--ink); display: block; margin-bottom: 1px; }
.bb-inv-lbl span   { font-size: 12px; color: var(--ink-3); }

/* Business section divider */
.bb-biz-wrap { margin-top: 20px; padding-top: 20px; border-top: 1px dashed var(--line); }
.bb-biz-hdr { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; color: var(--br); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 16px; }
.bb-biz-hdr svg { width: 14px; height: 14px; stroke: var(--br); fill: none; stroke-width: 2; }

/* ═══════════════════════════════════════════
   ACCORDION LOCATIONS
   ═══════════════════════════════════════════ */
.bb-acc-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.bb-acc-item {
  border: 1.5px solid var(--line); border-radius: var(--r2);
  background: var(--white); overflow: hidden; transition: border-color 0.2s;
}
.bb-acc-item:hover { border-color: #D4D4D4; }
.bb-acc-item.chosen { border-color: var(--br); background: var(--br-pale); }
.bb-acc-item.open { border-color: var(--ink-2); }
.bb-acc-item.chosen.open { border-color: var(--br); }
.bb-acc-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; cursor: pointer; user-select: none;
}
.bb-acc-left { display: flex; align-items: center; gap: 12px; }
.bb-acc-pin {
  width: 36px; height: 36px; border-radius: 9px; background: var(--paper);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background 0.2s;
}
.bb-acc-pin svg { width: 16px; height: 16px; stroke: var(--ink-3); fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.2s; }
.bb-acc-item.chosen .bb-acc-pin { background: var(--br-bg); }
.bb-acc-item.chosen .bb-acc-pin svg { stroke: var(--br); }
.bb-acc-name { font-size: 15px; font-weight: 700; color: var(--ink); }
.bb-acc-addr { font-size: 12px; color: var(--ink-3); margin-top: 1px; }
.bb-acc-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.bb-acc-pill {
  background: var(--br); color: #fff; font-size: 10px; font-weight: 700;
  padding: 3px 9px; border-radius: 20px; display: none;
}
.bb-acc-item.chosen .bb-acc-pill { display: block; }
.bb-acc-chev {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--paper); display: flex; align-items: center; justify-content: center;
  transition: transform 0.22s, background 0.2s;
}
.bb-acc-chev svg { width: 13px; height: 13px; stroke: var(--ink-3); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bb-acc-item.open .bb-acc-chev { transform: rotate(180deg); background: var(--line); }
.bb-acc-body { display: none; padding: 0 16px 16px; }
.bb-acc-item.open .bb-acc-body { display: block; }
.bb-hours-tbl { width: 100%; border-collapse: collapse; margin-bottom: 12px; }
.bb-hours-tbl td { padding: 5px 0; font-size: 13px; }
.bb-hours-tbl td:first-child { font-weight: 600; color: var(--ink-2); width: 90px; }
.bb-hours-tbl td:last-child { color: var(--ink-3); }
.bb-hours-tbl .h-closed { color: var(--err); font-style: italic; font-size: 12px; }
.bb-hours-tbl tr.today-row td:first-child { color: var(--br); }
.bb-hours-tbl tr { border-bottom: 1px solid var(--line-lt); }
.bb-hours-tbl tr:last-child { border-bottom: none; }

/* Date/time */
.bb-dt-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.bb-inp-hint { font-size: 11px; color: var(--muted); margin-top: 4px; }
.bb-msg { display: none; align-items: center; gap: 8px; padding: 10px 14px; border-radius: var(--r1); font-size: 13px; margin-top: 12px; }
.bb-msg.show { display: flex; animation: bbFadeUp 0.2s; }
.bb-msg svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; flex-shrink: 0; }
.bb-msg-err { background: var(--err-bg); border: 1px solid #FECACA; color: var(--err); }
.bb-msg-ok  { background: var(--ok-bg);  border: 1px solid #BBF7D0; color: var(--ok); }

/* ═══════════════════════════════════════════
   PRODUCTS
   ═══════════════════════════════════════════ */
.bb-cat-bar { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.bb-cat-btn {
  padding: 7px 16px; border-radius: 100px;
  border: 1.5px solid var(--line); background: var(--white);
  font-size: 13px; font-weight: 600; color: var(--ink-3);
  cursor: pointer; transition: all 0.18s; font-family: inherit;
}
.bb-cat-btn:hover { border-color: var(--br-lt); color: var(--br); }
.bb-cat-btn.on { background: var(--br); border-color: var(--br); color: #fff !important; }

.bb-prod-list { display: flex; flex-direction: column; gap: 8px; }
.bb-prod-row {
  display: flex; align-items: center;
  background: var(--white); border: 1.5px solid var(--line);
  border-radius: var(--r2); overflow: hidden;
  transition: border-color 0.18s;
}
.bb-prod-row:hover { border-color: #D4D4D4; }
.bb-prod-row.in-cart { border-color: var(--br); }
.bb-prod-thumb {
  width: 76px; min-width: 76px; height: 76px;
  background: var(--br-bg); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.bb-prod-row.in-cart .bb-prod-thumb { background: rgba(232,98,26,0.1); }
.bb-prod-thumb svg { width: 40px; height: 40px; }
.bb-prod-info { flex: 1; padding: 12px 14px; min-width: 0; }
.bb-prod-cat  { font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--br); margin-bottom: 2px; }
.bb-prod-name { font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bb-prod-desc { font-size: 12px; color: var(--muted); line-height: 1.4; }
.bb-prod-right { padding: 12px 14px 12px 8px; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.bb-prod-price { font-size: 15px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.bb-prod-price span { font-size: 11px; font-weight: 400; color: var(--muted); }
.bb-prod-min  { font-size: 10px; color: var(--muted); }

/* Qty */
.bb-qty { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--r1); overflow: hidden; }
.bb-qb {
  width: 30px; height: 30px; background: var(--paper); border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.15s; font-family: inherit; flex-shrink: 0;
}
.bb-qb svg { width: 13px; height: 13px; stroke: var(--ink-3); fill: none; stroke-width: 2.5; stroke-linecap: round; }
.bb-qb:hover { background: var(--br); }
.bb-qb:hover svg { stroke: #fff; }
.bb-qi {
  width: 36px; text-align: center; border: none;
  border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  height: 30px; font-size: 14px; font-weight: 700; color: var(--ink);
  background: var(--white); font-family: inherit; -moz-appearance: textfield; padding: 0;
}
.bb-qi::-webkit-inner-spin-button { -webkit-appearance: none; }
.bb-qi:focus { outline: none; }

/* Custom text per product */
.bb-prod-note { padding: 0 14px 12px; display: none; }
.bb-prod-row.in-cart .bb-prod-note { display: block; }
.bb-prod-note input {
  width: 100%; border: 1px solid var(--line); border-radius: var(--r1);
  padding: 6px 10px; font-size: 12px; font-family: inherit; color: var(--ink);
  background: var(--paper); outline: none;
}
.bb-prod-note input:focus { border-color: var(--br); }
.bb-prod-note label { font-size: 11px; color: var(--muted); display: block; margin-bottom: 4px; }

/* ═══════════════════════════════════════════
   SIDE PANEL
   ═══════════════════════════════════════════ */
.bb-side-panel {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r3); overflow: hidden;
}
.bb-side-top {
  background: var(--ink); padding: 18px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.bb-side-top-title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: #fff; }
.bb-side-top-title svg { width: 16px; height: 16px; stroke: var(--br-lt); fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.bb-cart-badge {
  background: var(--br); color: #fff; font-size: 11px; font-weight: 800;
  width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.bb-side-body { padding: 16px 18px; }
.bb-cart-rows { min-height: 40px; }
.bb-cart-row { display: flex; align-items: center; gap: 7px; padding: 8px 0; border-bottom: 1px solid var(--line-lt); font-size: 13px; }
.bb-cart-row:last-child { border-bottom: none; }
.bb-cr-name  { flex: 1; color: var(--ink-2); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bb-cr-qty   { background: var(--paper); border: 1px solid var(--line); border-radius: 5px; padding: 1px 7px; font-size: 11px; font-weight: 600; white-space: nowrap; flex-shrink: 0; }
.bb-cr-price { font-weight: 700; color: var(--br); font-size: 13px; white-space: nowrap; flex-shrink: 0; }
.bb-cart-empty { text-align: center; padding: 18px 0; color: var(--muted); font-size: 13px; }
.bb-cart-total { display: flex; justify-content: space-between; align-items: center; border-top: 1.5px solid var(--line); padding-top: 12px; margin-top: 4px; }
.bb-ct-lbl { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.bb-ct-val { font-size: 20px; font-weight: 700; color: var(--br); }

/* Summary widget */
.bb-side-summary { padding: 16px 18px; }
.bb-sum-title { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.bb-sum-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line-lt); font-size: 13px; }
.bb-sum-row:last-child { border-bottom: none; }
.bb-sum-lbl { color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.bb-sum-lbl svg { width: 13px; height: 13px; stroke: var(--muted); fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.bb-sum-val { font-weight: 600; color: var(--ink); text-align: right; }

/* ═══════════════════════════════════════════
   REVIEW
   ═══════════════════════════════════════════ */
.bb-rev-boxes { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.bb-rev-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r2); padding: 14px; }
.bb-rev-box-hd { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--br); margin-bottom: 8px; display: flex; align-items: center; gap: 5px; }
.bb-rev-box-hd svg { width: 12px; height: 12px; stroke: var(--br); fill: none; stroke-width: 2; }
.bb-rev-box p { font-size: 13px; color: var(--ink); margin: 0 0 3px; line-height: 1.5; }
.bb-itm-tbl { border-radius: var(--r2); overflow: hidden; border: 1px solid var(--line); margin-bottom: 14px; }
.bb-itm-hd { background: var(--ink); padding: 9px 14px; display: grid; grid-template-columns: 1fr 80px 100px; font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,0.45); }
.bb-itm-row { display: grid; grid-template-columns: 1fr 80px 100px; padding: 10px 14px; border-bottom: 1px solid var(--line-lt); font-size: 13px; background: var(--white); }
.bb-itm-row:last-child { border-bottom: none; }
.bb-total-bar { background: var(--br); border-radius: var(--r2); padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.bb-total-bar-lbl { color: rgba(255,255,255,0.85); font-size: 14px; font-weight: 600; }
.bb-total-bar-val { color: #fff; font-size: 22px; font-weight: 700; }
.bb-pay-badge { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r1); padding: 10px 14px; display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 16px; }
.bb-pay-badge svg { width: 15px; height: 15px; stroke: var(--br); fill: none; stroke-width: 1.75; }

/* ═══════════════════════════════════════════
   BUTTONS — with !important on text colors
   ═══════════════════════════════════════════ */
.bb-btn {
  display: inline-flex !important; align-items: center !important; justify-content: center !important; gap: 7px;
  padding: 11px 22px; border-radius: var(--r2);
  font-size: 14px !important; font-weight: 700 !important;
  cursor: pointer; border: none !important; transition: all 0.18s;
  font-family: inherit !important; letter-spacing: -0.1px;
  text-decoration: none !important; line-height: 1 !important;
}
.bb-btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.bb-btn-primary {
  background: var(--br) !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(232,98,26,0.25);
}
.bb-btn-primary:hover {
  background: #D9561A !important;
  color: #fff !important;
  box-shadow: 0 4px 16px rgba(232,98,26,0.35);
  transform: translateY(-1px);
}
.bb-btn-primary:active { transform: none; }
.bb-btn-primary svg { stroke: #fff !important; }
.bb-btn-primary:hover svg { stroke: #fff !important; }

.bb-btn-ghost {
  background: var(--white) !important;
  color: var(--ink-3) !important;
  border: 1.5px solid var(--line) !important;
}
.bb-btn-ghost:hover {
  border-color: var(--br) !important;
  color: var(--br) !important;
  background: var(--br-pale) !important;
}
.bb-btn-ghost:hover svg { stroke: var(--br) !important; }

.bb-btn-lg { padding: 13px 30px; font-size: 15px !important; }
.bb-btn:disabled { opacity: 0.5 !important; cursor: not-allowed !important; transform: none !important; }

.bb-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line-lt); }

/* ═══════════════════════════════════════════
   ALERT
   ═══════════════════════════════════════════ */
.bb-alert { display: none; align-items: center; gap: 8px; padding: 11px 14px; border-radius: var(--r1); font-size: 13px; margin-bottom: 16px; }
.bb-alert.show { display: flex; animation: bbFadeUp 0.22s; }
.bb-alert svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; flex-shrink: 0; }
.bb-alert-err { background: var(--err-bg); border: 1px solid #FECACA; color: var(--err); }

/* ═══════════════════════════════════════════
   NOTES SECTION
   ═══════════════════════════════════════════ */
.bb-notes-wrap { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line-lt); }
.bb-notes-wrap .bb-lbl { margin-bottom: 6px; }

/* ═══════════════════════════════════════════
   SUCCESS
   ═══════════════════════════════════════════ */
.bb-success-wrap { background: var(--white); border: 1px solid var(--line); border-radius: var(--r3); overflow: hidden; }
.bb-suc-top { background: var(--br); padding: 48px 32px; text-align: center; }
.bb-suc-icon { width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.bb-suc-icon svg { width: 32px; height: 32px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bb-suc-top h2 { font-size: 26px; font-weight: 700; color: #fff; margin: 0 0 8px; letter-spacing: -0.3px; }
.bb-suc-top p  { color: rgba(255,255,255,0.85); font-size: 15px; margin: 0; }
.bb-suc-num { display: inline-block; background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.35); color: #fff; font-size: 17px; font-weight: 700; padding: 8px 24px; border-radius: 100px; letter-spacing: 1.5px; margin-top: 16px; font-family: 'Courier New', monospace; }
.bb-suc-body { padding: 28px 24px; }
.bb-suc-dets { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 20px; }
.bb-sdet { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r2); padding: 16px; text-align: center; }
.bb-sdet-ico { margin-bottom: 6px; display: flex; justify-content: center; }
.bb-sdet-ico svg { width: 22px; height: 22px; stroke: var(--br); fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.bb-sdet-lbl { font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.bb-sdet-val { font-size: 13px; font-weight: 700; color: var(--ink); margin-top: 2px; }

/* ═══════════════════════════════════════════
   MOBILE STICKY BOTTOM BAR
   ═══════════════════════════════════════════ */
.bb-sticky-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--white); border-top: 1px solid var(--line);
  padding: 10px 14px;
  z-index: 9000; box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  align-items: center; gap: 10px;
}
.bb-sticky-cart-pill {
  display: flex !important; align-items: center !important; gap: 7px;
  background: var(--ink) !important; color: #fff !important;
  padding: 10px 14px; border-radius: var(--r2);
  font-size: 13px !important; font-weight: 700 !important;
  flex-shrink: 0; cursor: pointer; border: none !important;
  font-family: inherit !important; white-space: nowrap;
}
.bb-sticky-cart-pill svg { width:16px;height:16px;stroke:#fff !important;fill:none;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round; }
.bb-sticky-cnt {
  background: var(--br); color: #fff !important;
  min-width: 20px; height: 20px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 800; padding: 0 4px;
}
.bb-sticky-btn {
  flex: 1; padding: 12px; border-radius: var(--r2);
  background: var(--br) !important; color: #fff !important;
  border: none !important; font-size: 14px !important; font-weight: 700 !important;
  cursor: pointer; font-family: inherit !important;
  display: flex !important; align-items: center !important; justify-content: center !important; gap: 7px;
  box-shadow: 0 3px 10px rgba(232,98,26,0.25);
}
.bb-sticky-btn svg { width:15px;height:15px;stroke:#fff !important;fill:none;stroke-width:2;stroke-linecap:round;}
.bb-sticky-btn:disabled { opacity: 0.5; pointer-events: none; }

/* Cart drawer */
.bb-cart-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 9050; }
.bb-cart-overlay.open { display: block; }
.bb-cart-drawer {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--white); border-radius: 18px 18px 0 0;
  box-shadow: 0 -8px 32px rgba(0,0,0,0.12); z-index: 9100;
  max-height: 72vh; overflow-y: auto;
}
.bb-cart-drawer.open { display: block; animation: bbDrawerUp 0.28s cubic-bezier(0.16,1,0.3,1); }
@keyframes bbDrawerUp { from{transform:translateY(100%)} to{transform:translateY(0)} }
.bb-drawer-handle { width: 36px; height: 4px; border-radius: 2px; background: var(--line); margin: 12px auto 0; }
.bb-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 12px; border-bottom: 1px solid var(--line-lt); }
.bb-drawer-head h3 { font-size: 16px; font-weight: 700; margin: 0; color: var(--ink); }
.bb-drawer-close { background: var(--paper); border: 1px solid var(--line); border-radius: 50%; width: 28px; height: 28px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 14px; color: var(--ink-3); }
.bb-drawer-body { padding: 14px 18px; }
.bb-drawer-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line-lt); font-size: 13px; }
.bb-drawer-row:last-child { border-bottom: none; }
.bb-dr-name  { flex: 1; color: var(--ink-2); font-weight: 500; }
.bb-dr-qty   { background: var(--paper); border: 1px solid var(--line); border-radius: 5px; padding: 2px 8px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.bb-dr-price { font-weight: 700; color: var(--br); font-size: 13px; white-space: nowrap; }
.bb-drawer-empty { text-align: center; padding: 20px 0; color: var(--muted); font-size: 13px; }
.bb-drawer-total { display: flex; justify-content: space-between; align-items: center; border-top: 1.5px solid var(--line); padding-top: 12px; margin-top: 4px; }
.bb-drawer-total span:first-child { font-size: 14px; font-weight: 600; color: var(--ink-3); }
.bb-drawer-total span:last-child  { font-size: 20px; font-weight: 700; color: var(--br); }

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 900px) {
  .bb-layout   { grid-template-columns: 1fr; }
  .bb-side-col { display: none; }
  .bb-rev-boxes { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  #bakeri-app { padding: 0 12px 88px; }
  .bb-sticky-bar { display: flex; }

  /* Stepper — single row pill */
  .bb-stepper { max-width: 100%; margin-bottom: 20px; padding: 4px; }
  .bb-si { padding: 8px 6px; gap: 5px; }
  .bb-si-num { width: 20px; height: 20px; font-size: 10px; }
  .bb-si-lbl { font-size: 10px; }

  /* Sections */
  .bb-sec-hd { padding: 14px 16px 12px; }
  .bb-sec-bd { padding: 14px 16px; }

  /* Form */
  .bb-type-row, .bb-fg-grid, .bb-dt-row { grid-template-columns: 1fr; }
  .bb-fg.col2 { grid-column: 1; }
  .bb-rev-boxes { grid-template-columns: 1fr; }

  /* Product rows */
  .bb-prod-thumb { width: 60px; min-width: 60px; height: 60px; }
  .bb-prod-cat, .bb-prod-desc { display: none; }
  .bb-prod-name { font-size: 13px; }
  .bb-prod-info { padding: 10px; }
  .bb-prod-right { padding: 8px 10px 8px 6px; min-width: 88px; gap: 6px; }
  .bb-prod-price { font-size: 13px; }
  .bb-qb { width: 26px; height: 26px; }
  .bb-qi { width: 30px; height: 26px; font-size: 13px; }

  /* Nav */
  .bb-nav .bb-btn { flex: 1; justify-content: center !important; padding: 11px 8px; }
  .bb-btn-lg { font-size: 14px !important; }

  /* Success */
  .bb-suc-dets { grid-template-columns: 1fr 1fr; }
  .bb-suc-top  { padding: 36px 18px; }
  .bb-suc-body { padding: 20px 16px; }

  /* Page header */
  .bb-page-hdr h1 { font-size: 20px; }
}

@media (max-width: 380px) {
  .bb-si-lbl    { font-size: 9px; }
  .bb-prod-thumb { width: 52px; min-width: 52px; height: 52px; }
}
