/* ============================================================
   style.css — Template "Bebidas Express" (be-)
   Paleta: Amber #f59e0b + Green #22c55e
   Fonte: Figtree (display + body)
   Cart: Bottom-sheet (translate-y pattern)
   ============================================================ */

/* ===== Reset + Base ===== */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}

:root {
  --be-amber: #f59e0b;
  --be-amber-dark: #d97706;
  --be-amber-light: #fbbf24;
  --be-green: #22c55e;
  --be-green-dark: #16a34a;
  --be-bg: #f8fafc;
  --be-white: #ffffff;
  --be-text: #1e293b;
  --be-text-light: #64748b;
  --be-text-muted: #94a3b8;
  --be-border: #e2e8f0;
  --be-shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --be-shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
  --be-radius: 16px;
  --be-radius-sm: 10px;
  --be-radius-xs: 6px;
  --be-font: 'Figtree', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --be-transition: .2s ease;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100% }
body {
  font-family: var(--be-font);
  background: var(--be-bg);
  color: var(--be-text);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block }
a { color: inherit; text-decoration: none }
button { cursor: pointer; border: none; background: none; font-family: inherit }

/* ===== Header / Navbar ===== */
.be-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--be-white);
  border-bottom: 1px solid var(--be-border);
  box-shadow: var(--be-shadow);
}
.be-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  max-width: 1200px;
  margin: 0 auto;
}
.be-header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.be-header__logo {
  font-size: 24px;
  line-height: 1;
}
.be-header__name {
  font-weight: 700;
  font-size: 16px;
  color: var(--be-text);
}
.be-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.be-header__search-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--be-text-light);
  transition: var(--be-transition);
}
.be-header__search-toggle:hover {
  background: #f1f5f9;
  color: var(--be-amber);
}
.be-header__back {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--be-text);
  transition: var(--be-transition);
}
.be-header__back:hover { background: #f1f5f9 }

/* ===== Store Info Panel ===== */
.be-store-info {
  padding: 20px 16px 16px;
  text-align: center;
  background: linear-gradient(180deg, var(--be-white) 0%, var(--be-bg) 100%);
}
.be-store-info__rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 10px;
}
.be-store-info__stars {
  color: var(--be-amber);
  font-size: 16px;
  letter-spacing: 2px;
}
.be-store-info__score {
  font-size: 18px;
  font-weight: 800;
  color: var(--be-amber);
}
.be-store-info__count {
  font-size: 12px;
  color: var(--be-text-light);
}
.be-store-info__details {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.be-store-info__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  background: #dcfce7;
  color: var(--be-green-dark);
}
.be-store-info__badge--closed {
  background: #fee2e2;
  color: #ef4444;
}
.be-store-info__delivery {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: #fef3c7;
  color: var(--be-amber-dark);
}
.be-store-info__fee {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  background: #dcfce7;
  color: var(--be-green-dark);
}

/* ===== Search ===== */
.be-search {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  padding: 0 16px;
}
.be-search--visible {
  max-height: 120px;
  padding: 8px 16px 12px;
}
.be-search__inner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--be-white);
  border: 1px solid var(--be-border);
  border-radius: var(--be-radius);
  padding: 10px 16px;
  transition: var(--be-transition);
  position: relative;
}
.be-search__inner:focus-within {
  border-color: var(--be-amber);
  box-shadow: 0 0 0 3px rgba(245,158,11,.15);
}
.be-search__icon { color: var(--be-text-muted); flex-shrink: 0 }
.be-search__input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 14px;
  font-family: var(--be-font);
  background: transparent;
  color: var(--be-text);
}
.be-search__input::placeholder { color: var(--be-text-muted) }
.be-search__clear {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--be-text-muted);
  background: #f1f5f9;
  flex-shrink: 0;
  transition: var(--be-transition);
}
.be-search__clear:hover { background: #e2e8f0 }

/* Search dropdown */
.be-search__results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--be-white);
  border: 1px solid var(--be-border);
  border-radius: var(--be-radius-sm);
  box-shadow: var(--be-shadow-lg);
  z-index: 110;
  max-height: 280px;
  overflow-y: auto;
}
.be-search__result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  transition: var(--be-transition);
}
.be-search__result-item:hover { background: #f8fafc }
.be-search__result-item img {
  width: 36px;
  height: 36px;
  border-radius: var(--be-radius-xs);
  object-fit: contain;
  background: #f1f5f9;
  flex-shrink: 0;
}
.be-search__result-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.be-search__result-text span:first-child {
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.be-search__result-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--be-green);
}

/* ===== Categories ===== */
.be-categories {
  position: sticky;
  top: 57px;
  z-index: 90;
  background: var(--be-bg);
  padding: 12px 0;
}
.be-categories__scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.be-categories__scroll::-webkit-scrollbar { display: none }
.be-categories__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 72px;
  padding: 8px 4px;
  border-radius: var(--be-radius-sm);
  font-size: 11px;
  font-weight: 500;
  color: var(--be-text-light);
  white-space: nowrap;
  transition: var(--be-transition);
  flex-shrink: 0;
  background: none;
}
.be-categories__item--active {
  color: var(--be-amber-dark);
  font-weight: 700;
}
.be-categories__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--be-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  background: var(--be-white);
  transition: var(--be-transition);
}
.be-categories__img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--be-border);
  transition: var(--be-transition);
}
.be-categories__item--active .be-categories__icon,
.be-categories__item--active .be-categories__img {
  border-color: var(--be-amber);
  box-shadow: 0 0 0 3px rgba(245,158,11,.2);
}
.be-categories__label {
  font-size: 11px;
  line-height: 1.2;
}

/* ===== Menu / Products ===== */
.be-menu {
  padding: 0 0 120px;
  min-height: 400px;
  contain: layout style;
}
.be-menu__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 12px;
  padding: 12px 16px 16px;
}
@media (min-width: 768px) {
  .be-menu__grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px }
}
@media (min-width: 1024px) {
  .be-menu__grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px }
}
.be-menu__empty {
  text-align: center;
  padding: 48px 16px;
  color: var(--be-text-muted);
  font-size: 14px;
}
.be-menu__loading {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 12px;
  padding: 12px 16px;
}

/* ===== Skeleton Loading ===== */
.be-skeleton {
  background: var(--be-white);
  border-radius: var(--be-radius);
  overflow: hidden;
  position: relative;
}
.be-skeleton--card {
  height: 240px;
}
.be-skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.04) 50%, transparent 100%);
  transform: translateX(-100%);
  animation: be-shimmer 1.5s ease-in-out infinite;
  will-change: transform;
}
@keyframes be-shimmer { 100% { transform: translateX(100%) } }

/* ===== Product Card ===== */
.be-card {
  position: relative;
  background: var(--be-white);
  border-radius: var(--be-radius);
  overflow: hidden;
  box-shadow: var(--be-shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.be-card:active { transform: scale(.98) }

.be-card__tag {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .3px;
  z-index: 1;
  background: var(--be-amber);
  color: #fff;
}
.be-card__tag--promo { background: #ef4444 }
.be-card__tag--blue { background: #3b82f6 }
.be-card__tag--green { background: var(--be-green) }
.be-card__tag--purple { background: #8b5cf6 }
.be-card__tag--gray { background: #6b7280 }

.be-card__img-wrap {
  aspect-ratio: 1;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}
.be-card__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.be-card__info { padding: 10px 12px 12px }
.be-card__name {
  font-size: 13px;
  font-weight: 500;
  color: var(--be-text);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 34px;
  margin: 0;
}
.be-card__price-row {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  margin-top: 6px;
}
.be-card__old-price {
  font-size: 11px;
  color: var(--be-text-muted);
  text-decoration: line-through;
  line-height: 1;
}
.be-card__price {
  font-size: 16px;
  font-weight: 700;
  color: var(--be-green);
  line-height: 1;
}
.be-card__add {
  width: 100%;
  padding: 8px;
  border-radius: var(--be-radius-xs);
  background: var(--be-green);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  transition: var(--be-transition);
  box-shadow: 0 2px 6px rgba(34,197,94,.3);
}
.be-card__add:hover { background: var(--be-green-dark) }

/* ===== Reviews Section ===== */
.be-reviews {
  padding: 24px 16px;
  margin: 0 16px 16px;
  background: var(--be-white);
  border-radius: var(--be-radius);
  box-shadow: var(--be-shadow);
}
.be-reviews__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--be-text);
  margin-bottom: 16px;
  text-align: center;
}
.be-reviews__grid {
  display: grid;
  gap: 12px;
}
@media (min-width: 768px) {
  .be-reviews__grid { grid-template-columns: repeat(3, 1fr) }
}
.be-reviews__card {
  background: var(--be-bg);
  border-radius: var(--be-radius-sm);
  padding: 14px;
}
.be-reviews__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.be-reviews__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--be-amber);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.be-reviews__stars-sm {
  color: var(--be-amber);
  font-size: 12px;
  letter-spacing: 1px;
}
.be-reviews__text {
  font-size: 13px;
  color: var(--be-text-light);
  line-height: 1.5;
}

/* ===== Bottom Sheet Cart ===== */
.be-cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.be-cart-overlay--visible {
  opacity: 1;
  visibility: visible;
}
.be-cart {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 201;
  background: var(--be-white);
  border-radius: 24px 24px 0 0;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.32,.72,0,1);
  box-shadow: 0 -4px 20px rgba(0,0,0,.15);
}
.be-cart--open { transform: translateY(0) }
.be-cart__handle {
  display: flex;
  justify-content: center;
  padding: 12px 0 8px;
  flex-shrink: 0;
  cursor: pointer;
}
.be-cart__handle span {
  width: 40px;
  height: 5px;
  border-radius: 3px;
  background: var(--be-border);
  display: block;
}
.be-cart__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px 12px;
  border-bottom: 1px solid var(--be-border);
}
.be-cart__title {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
}
.be-cart__close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--be-text-light);
  transition: var(--be-transition);
}
.be-cart__close:hover { background: #e2e8f0 }
.be-cart__body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 20px;
  -webkit-overflow-scrolling: touch;
}
.be-cart__empty {
  text-align: center;
  padding: 32px 0;
  color: var(--be-text-muted);
  font-size: 14px;
}
.be-cart__items {
  display: flex;
  flex-direction: column;
}
.be-cart__footer {
  padding: 16px 20px;
  border-top: 1px solid var(--be-border);
  background: var(--be-white);
}
.be-cart__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  margin-bottom: 12px;
}
.be-cart__total strong {
  font-size: 20px;
  color: var(--be-green);
}
.be-cart__checkout-btn {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--be-green);
  color: #fff;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--be-radius-sm);
  transition: var(--be-transition);
  text-decoration: none;
}
.be-cart__checkout-btn:hover { background: var(--be-green-dark) }

/* Cart items */
.be-cart__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--be-border);
  position: relative;
}
.be-cart__item:last-child { border-bottom: none }
.be-cart__item-img {
  width: 52px;
  height: 52px;
  border-radius: var(--be-radius-xs);
  object-fit: contain;
  background: #f1f5f9;
  flex-shrink: 0;
}
.be-cart__item-info { flex: 1; min-width: 0 }
.be-cart__item-name {
  display: block;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.be-cart__item-price {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--be-green);
  margin-top: 2px;
}
.be-cart__item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.be-cart__qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f1f5f9;
  font-size: 16px;
  font-weight: 600;
  color: var(--be-text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--be-transition);
}
.be-cart__qty-btn:hover { background: #e2e8f0 }
.be-cart__qty {
  font-size: 14px;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}
.be-cart__remove {
  position: absolute;
  top: 8px;
  right: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 14px;
  color: var(--be-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--be-transition);
}
.be-cart__remove:hover { color: #ef4444; background: #fee2e2 }

/* ===== Floating Cart Bar (mobile) ===== */
.be-cart-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--be-green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.32,.72,0,1);
  box-shadow: 0 -4px 12px rgba(0,0,0,.15);
}
.be-cart-bar.visible { transform: translateY(0) }
.be-cart-bar--pop {
  animation: be-cart-pop .3s ease;
}
@keyframes be-cart-pop {
  0% { transform: translateY(0) }
  50% { transform: translateY(-6px) }
  100% { transform: translateY(0) }
}
.be-cart-bar__info {
  display: flex;
  align-items: center;
  gap: 10px;
}
.be-cart-bar__count {
  background: rgba(255,255,255,.25);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}
.be-cart-bar__label { font-size: 14px; font-weight: 500 }
.be-cart-bar__btn {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: var(--be-font);
}

/* ===== Toast ===== */
.be-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--be-text);
  color: #fff;
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 500;
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
  white-space: nowrap;
  box-shadow: var(--be-shadow-lg);
}
.be-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ===== WhatsApp FAB ===== */
.be-whatsapp {
  position: fixed;
  bottom: 20px;
  right: 16px;
  z-index: 50;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37,211,102,.4);
  transition: var(--be-transition);
}
.be-whatsapp:hover { transform: scale(1.08) }

/* ===== Footer ===== */
.be-footer {
  background: var(--be-text);
  color: #fff;
  padding: 28px 16px;
  text-align: center;
  font-size: 13px;
}
.be-footer__inner {
  max-width: 600px;
  margin: 0 auto;
}
.be-footer__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}
.be-footer__logo {
  font-size: 20px;
  line-height: 1;
}
.be-footer__name {
  font-size: 16px;
  font-weight: 700;
}
.be-footer__address,
.be-footer__cnpj {
  opacity: .8;
  margin-bottom: 4px;
  font-size: 12px;
}
.be-footer__links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 12px 0;
}
.be-footer__links a {
  color: var(--be-amber-light);
  font-weight: 500;
  font-size: 13px;
  transition: var(--be-transition);
}
.be-footer__links a:hover { color: var(--be-amber) }
.be-footer__copy {
  opacity: .7;
  font-size: 12px;
  margin-bottom: 4px;
}
.be-footer__disclaimer {
  opacity: .6;
  font-size: 11px;
  margin-top: 8px;
}

/* ===== LGPD Banner ===== */
.be-lgpd {
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;
  z-index: 400;
  background: var(--be-text);
  color: #fff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  transition: bottom .4s ease;
}
.be-lgpd.show { bottom: 0 }
.be-lgpd a { color: var(--be-amber-light); text-decoration: underline }
.be-lgpd__accept,
.be-lgpd button {
  background: var(--be-amber);
  color: #fff;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  transition: var(--be-transition);
}
.be-lgpd__accept:hover,
.be-lgpd button:hover { background: var(--be-amber-dark) }

/* ============================================================
   CHECKOUT (be-checkout)
   ============================================================ */
.be-checkout {
  max-width: 520px;
  margin: 0 auto;
  padding: 16px;
}
.be-checkout__container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.be-checkout__section {
  background: var(--be-white);
  border-radius: var(--be-radius);
  padding: 20px 16px;
  box-shadow: var(--be-shadow);
}
.be-checkout__heading {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--be-text);
}
.be-checkout__summary {
  display: flex;
  flex-direction: column;
}
.be-checkout__summary-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 13px;
  gap: 8px;
}
.be-checkout__summary-item-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.be-checkout__summary-item-qty {
  color: var(--be-text-muted);
  flex-shrink: 0;
}
.be-checkout__summary-item-price {
  font-weight: 600;
  color: var(--be-green);
  flex-shrink: 0;
}
.be-checkout__total-row {
  display: flex;
  justify-content: space-between;
  padding-top: 10px;
  margin-top: 8px;
  border-top: 1px solid var(--be-border);
  font-weight: 700;
  font-size: 16px;
}
.be-checkout__total-row strong { color: var(--be-green) }
.be-checkout__label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--be-text-light);
  margin-bottom: 4px;
  margin-top: 12px;
}
.be-checkout__label:first-of-type { margin-top: 0 }
.be-checkout__input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--be-border);
  border-radius: var(--be-radius-xs);
  font-size: 14px;
  font-family: var(--be-font);
  color: var(--be-text);
  background: var(--be-white);
  transition: var(--be-transition);
}
.be-checkout__input:focus {
  outline: none;
  border-color: var(--be-amber);
  box-shadow: 0 0 0 3px rgba(245,158,11,.12);
}
.be-checkout__input--error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,.12);
}
.be-checkout__textarea {
  resize: vertical;
  min-height: 60px;
}
.be-checkout__pix-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  background: #f0fdfa;
  border-radius: var(--be-radius-sm);
  border: 1px solid #99f6e4;
  font-size: 14px;
  margin-bottom: 16px;
}
.be-checkout__submit {
  width: 100%;
  padding: 14px;
  background: var(--be-green);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: var(--be-radius-sm);
  transition: var(--be-transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.be-checkout__submit:hover { background: var(--be-green-dark) }
.be-checkout__submit:disabled {
  opacity: .6;
  cursor: not-allowed;
}
.be-checkout__spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: be-spin .6s linear infinite;
}
@keyframes be-spin { to { transform: rotate(360deg) } }
.be-checkout__fallback {
  margin-top: 16px;
  padding: 16px;
  background: #fef3c7;
  border-radius: var(--be-radius-sm);
  font-size: 13px;
  color: var(--be-amber-dark);
  text-align: center;
}

/* ============================================================
   PIX PAGE (be-pix)
   ============================================================ */
.be-pix {
  max-width: 420px;
  margin: 0 auto;
  padding: 20px 16px;
  text-align: center;
}
.be-pix__container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Timer */
.be-pix__timer-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.be-pix__timer {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--be-amber-dark);
}
.be-pix__timer-bar {
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
  overflow: hidden;
}
.be-pix__timer-fill {
  height: 100%;
  width: 100%;
  background: var(--be-amber);
  border-radius: 2px;
  transition: width 1s linear;
}

/* Amount */
.be-pix__amount-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.be-pix__amount-label {
  font-size: 13px;
  color: var(--be-text-light);
}
.be-pix__amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--be-green);
}

/* QR Code */
.be-pix__qr-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.be-pix__qr {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}
.be-pix__qr canvas, .be-pix__qr img {
  border-radius: var(--be-radius-sm);
}
.be-pix__qr-fallback {
  padding: 40px;
  color: var(--be-text-muted);
  font-size: 14px;
}

/* Code */
.be-pix__code-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.be-pix__code-label {
  font-size: 13px;
  color: var(--be-text-light);
  font-weight: 500;
}
.be-pix__code {
  background: #f1f5f9;
  padding: 10px 16px;
  border-radius: var(--be-radius-xs);
  font-size: 12px;
  font-family: monospace;
  color: var(--be-text-light);
  word-break: break-all;
}
.be-pix__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.be-pix__copy-btn {
  padding: 12px;
  background: var(--be-amber);
  color: #fff;
  border-radius: var(--be-radius-sm);
  font-weight: 700;
  font-size: 14px;
  transition: var(--be-transition);
}
.be-pix__copy-btn:hover { background: var(--be-amber-dark) }
.be-pix__new-order {
  padding: 10px;
  background: var(--be-green);
  color: #fff;
  border-radius: var(--be-radius-sm);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  display: block;
  text-align: center;
}

/* Order summary on pix page */
.be-pix__summary {
  background: #f8fafc;
  border-radius: var(--be-radius-sm);
  padding: 14px;
  text-align: left;
  font-size: 13px;
}
.be-pix__summary-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
}
.be-pix__summary-items {
  display: flex;
  flex-direction: column;
}
.be-pix__summary-item {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
}
.be-pix__summary-row {
  display: flex;
  justify-content: space-between;
  padding-top: 6px;
  margin-top: 6px;
  border-top: 1px solid var(--be-border);
  font-weight: 600;
}

/* Delivery info */
.be-pix__delivery-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 13px;
  color: var(--be-text-light);
}

/* Instructions */
.be-pix__instructions {
  background: var(--be-bg);
  border-radius: var(--be-radius-sm);
  padding: 16px;
  text-align: left;
  font-size: 13px;
}
.be-pix__instructions h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
}
.be-pix__instructions ol {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.be-pix__auto-detect {
  margin-top: 10px;
  font-size: 12px;
  color: var(--be-text-muted);
  text-align: center;
}
