/* ════════════════════════════════════════════════════════════════════
   BF EMPOWERMENT CENTER — CART STYLES
   Uses the site's existing design tokens (--purple, --gold, --r-md, etc.)
   defined in each page's inline <style> block.
   ════════════════════════════════════════════════════════════════════ */

/* ── Cart icon button (nav) ─────────────────────────────────────── */
.bfe-cart-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: none;
  background: transparent;
  color: var(--ink, #1A1422);
  cursor: pointer;
  border-radius: 50%;
  transition: background .2s, color .2s;
  margin-right: 4px;
}
.bfe-cart-icon-btn:hover {
  background: var(--purple-lt, rgba(91,45,142,.08));
  color: var(--purple, #5B2D8E);
}
.bfe-cart-count-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 100px;
  background: var(--gold, #C9A84C);
  color: var(--ink, #1A1422);
  font-size: .65rem;
  font-weight: 800;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-family: Inter, sans-serif;
}

/* ── Mobile menu cart link ──────────────────────────────────────── */
.bfe-cart-mobile-link {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  margin-bottom: 10px;
  border: 1.5px solid var(--purple, #5B2D8E);
  border-radius: var(--r-pill, 100px);
  background: transparent;
  color: var(--purple, #5B2D8E);
  font-family: Inter, sans-serif;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.bfe-cart-mobile-link:hover { background: var(--purple, #5B2D8E); color: #fff; }
.bfe-cart-count-badge-inline {
  background: var(--gold, #C9A84C);
  color: var(--ink, #1A1422);
  border-radius: 100px;
  padding: 1px 7px;
  font-size: .72rem;
  font-weight: 800;
  display: none;
}

/* ── Overlay ─────────────────────────────────────────────────────── */
.bfe-cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,20,34,.5);
  backdrop-filter: blur(2px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.bfe-cart-overlay.open { opacity: 1; pointer-events: auto; }

/* ── Drawer ──────────────────────────────────────────────────────── */
.bfe-cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100vw);
  background: #fff;
  z-index: 999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.22,.68,0,1);
  box-shadow: -8px 0 40px rgba(26,20,34,.18);
}
.bfe-cart-drawer.open { transform: translateX(0); }

.bfe-cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--border, rgba(91,45,142,.12));
  flex-shrink: 0;
}
.bfe-cart-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink, #1A1422);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.bfe-cart-title-count {
  font-family: Inter, sans-serif;
  font-size: .8rem;
  font-weight: 600;
  color: var(--mid, #6B6278);
}
.bfe-cart-close {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--cream, #FAF8FC);
  border-radius: 50%;
  color: var(--mid, #6B6278);
  font-size: .9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s;
}
.bfe-cart-close:hover { background: var(--purple-lt, rgba(91,45,142,.1)); color: var(--purple, #5B2D8E); }

/* ── Body / line items ──────────────────────────────────────────── */
.bfe-cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 24px;
}

.bfe-cart-line {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border, rgba(91,45,142,.08));
  align-items: start;
}
.bfe-cart-line:last-child { border-bottom: none; }

.bfe-cart-line-img {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--cream, #FAF8FC);
  flex-shrink: 0;
}
.bfe-cart-line-img img { width: 100%; height: 100%; object-fit: cover; }

.bfe-cart-line-body { min-width: 0; }
.bfe-cart-line-name {
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink, #1A1422);
  line-height: 1.35;
  margin-bottom: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bfe-cart-line-price {
  font-size: .76rem;
  color: var(--mid, #6B6278);
  margin-bottom: 10px;
}
.bfe-cart-line-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.bfe-qty-stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--border, rgba(91,45,142,.15));
  border-radius: var(--r-pill, 100px);
  overflow: hidden;
}
.bfe-qty-btn {
  width: 26px;
  height: 26px;
  border: none;
  background: var(--cream, #FAF8FC);
  color: var(--purple, #5B2D8E);
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.bfe-qty-btn:hover { background: var(--purple-lt, rgba(91,45,142,.12)); }
.bfe-qty-val {
  min-width: 24px;
  text-align: center;
  font-size: .8rem;
  font-weight: 700;
  color: var(--ink, #1A1422);
}

.bfe-cart-remove {
  border: none;
  background: none;
  color: var(--mid, #6B6278);
  font-size: .75rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  transition: color .15s;
}
.bfe-cart-remove:hover { color: #C0392B; }

.bfe-cart-line-total {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: .92rem;
  font-weight: 700;
  color: var(--purple, #5B2D8E);
  white-space: nowrap;
  padding-top: 2px;
}

/* ── Empty state ─────────────────────────────────────────────────── */
.bfe-cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 64px 20px;
  height: 100%;
}
.bfe-cart-empty-icon { font-size: 2.6rem; margin-bottom: 14px; opacity: .7; }
.bfe-cart-empty-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink, #1A1422);
  margin: 0 0 6px;
}
.bfe-cart-empty-sub {
  font-size: .85rem;
  color: var(--mid, #6B6278);
  margin: 0;
  max-width: 240px;
  line-height: 1.6;
}

/* ── Footer / totals / checkout ─────────────────────────────────── */
.bfe-cart-footer {
  flex-shrink: 0;
  padding: 20px 24px 24px;
  border-top: 1px solid var(--border, rgba(91,45,142,.12));
  background: var(--cream, #FAF8FC);
}
.bfe-cart-subtotal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink, #1A1422);
  margin-bottom: 4px;
}
.bfe-cart-subtotal-row span:last-child {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--purple, #5B2D8E);
}
.bfe-cart-note {
  font-size: .72rem;
  color: var(--mid, #6B6278);
  margin: 0 0 16px;
}

.bfe-btn-cart-view {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px;
  margin-bottom: 10px;
  border: 1.5px solid var(--purple, #5B2D8E);
  border-radius: var(--r-pill, 100px);
  color: var(--purple, #5B2D8E);
  font-size: .85rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.bfe-btn-cart-view:hover { background: var(--purple, #5B2D8E); color: #fff; }

.bfe-btn-cart-checkout {
  display: block;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: var(--r-pill, 100px);
  background: var(--gold, #C9A84C);
  color: var(--ink, #1A1422);
  font-size: .9rem;
  font-weight: 800;
  font-family: Inter, sans-serif;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.bfe-btn-cart-checkout:hover { background: #A8872E; transform: translateY(-1px); }

/* ── Mobile responsive ──────────────────────────────────────────── */
@media (max-width: 480px) {
  .bfe-cart-drawer { width: 100vw; }
}

/* ── "Add to Cart" toast feedback ───────────────────────────────── */
.bfe-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink, #1A1422);
  color: #fff;
  padding: 13px 22px;
  border-radius: var(--r-pill, 100px);
  font-size: .85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.bfe-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.bfe-toast-icon { color: var(--gold, #C9A84C); }

/* ── Add to Cart button feedback state ──────────────────────────── */
.bfe-add-to-cart-btn.added {
  background: var(--gold, #C9A84C) !important;
  color: var(--ink, #1A1422) !important;
}
