/* ============================
   CACAU PRIME – iFood Style
   ============================ */

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

:root {
  --primary: #7B3F00;
  --primary-light: #A0522D;
  --accent: #D4A017;
  --accent-light: #F5D26B;
  --bg: #F5F0EB;
  --bg-card: #FFFFFF;
  --text: #1A1A1A;
  --text-muted: #6B6B6B;
  --text-light: #999;
  --green: #2E7D32;
  --green-light: #E8F5E9;
  --red: #C62828;
  --border: #E8E0D8;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 6px 24px rgba(0,0,0,0.14);
  --radius: 16px;
  --radius-sm: 10px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ============================
   HERO
   ============================ */
.hero {
  position: relative;
  height: 320px;
  background: url('imagens/bannerclean.webp') center center / cover no-repeat;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(212,160,23,0.25) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 40%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 24px 80px;
  max-width: 700px;
}

.hero-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.hero-content h1 {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 10px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.7), 0 1px 4px rgba(0,0,0,0.9);
}

.hero-content h1 span {
  color: var(--accent-light);
  text-shadow: 0 2px 12px rgba(0,0,0,0.7), 0 1px 4px rgba(0,0,0,0.9);
}

.hero-content p {
  color: rgba(255,255,255,0.95);
  font-size: 16px;
  font-weight: 500;
  text-shadow: 0 1px 6px rgba(0,0,0,0.8);
}

.hero-badge {
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* ============================
   STORE CARD
   ============================ */
.store-card-wrapper {
  position: relative;
  z-index: 10;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
  transform: translateY(-40px);
}

.store-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--border);
}

.logo-circle {
  width: 110px;
  height: 110px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(123,63,0,0.3);
  overflow: hidden;
  border: 2px solid var(--border);
}

.logo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer-logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}

.store-info {
  flex: 1;
}

.store-info h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.verified-badge {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.store-meta, .store-rating, .store-delivery {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.store-meta {
  font-size: 13px;
  color: var(--text-muted);
}

.stars {
  color: #F5A623;
  font-weight: 700;
  font-size: 14px;
}

.reviews {
  font-size: 13px;
  color: var(--text-muted);
}

.badge-super {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
}

.delivery-time {
  font-size: 13px;
  color: var(--text-muted);
}

.delivery-free {
  font-size: 13px;
  color: var(--green);
  font-weight: 600;
}

.dot {
  color: var(--border);
}

.store-arrow {
  font-size: 28px;
  color: var(--text-light);
  font-weight: 300;
  flex-shrink: 0;
}

/* ============================
   PROMO PRIMEIRO PEDIDO
   ============================ */
.promo-first-order {
  max-width: 960px;
  margin: -24px auto 0;
  padding: 0 16px 12px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.promo-first-order > div {
  background: #FFF3E0;
  border: 1px solid #FFCC80;
  border-left: 4px solid #F57C00;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  flex: 1;
}

.promo-first-icon {
  font-size: 26px;
  margin-top: 10px;
}

.promo-first-order strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #E65100;
  margin-bottom: 2px;
}

.promo-first-order p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================
   PROMO BANNER
   ============================ */
.promo-banner {
  max-width: 960px;
  margin: -24px auto 16px;
  padding: 0 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.promo-banner > div {
  background: #FFF8E1;
  border: 1px solid var(--accent-light);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  flex: 1;
}

.promo-icon {
  font-size: 28px;
  margin-top: 10px;
}

.promo-banner strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2px;
}

.promo-banner p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================
   CATEGORY NAV
   ============================ */
.category-nav {
  max-width: 960px;
  margin: 0 auto 8px;
  padding: 0 16px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  padding-top: 12px;
  padding-bottom: 12px;
}

.category-nav::-webkit-scrollbar {
  display: none;
}

.cat-btn {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--primary);
  background: #fff;
  border: 2px solid var(--border);
  white-space: nowrap;
  transition: all 0.2s;
}

.cat-btn:hover,
.cat-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ============================
   MAIN CONTENT
   ============================ */
.main-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 8px 16px 120px;
}

/* ============================
   PRODUCT SECTION
   ============================ */
.product-section {
  margin-bottom: 40px;
}

.section-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}

/* ============================
   PRODUCT GRID
   ============================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}

/* ============================
   PRODUCT CARD
   ============================ */
.product-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.22s ease;
  position: relative;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

.product-card * {
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}

.product-card .add-btn,
.product-card .product-image {
  pointer-events: auto;
}

.product-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  border-color: var(--primary-light);
}

.product-card.featured {
  border-color: var(--accent);
  background: linear-gradient(135deg, #FFF8E1 0%, #fff 100%);
}

.featured-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  background: var(--accent-light);
  padding: 2px 10px;
  border-radius: 20px;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.product-info {
  flex: 1;
  min-width: 0;
}

.product-info h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.3;
}

.product-info p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.price-current {
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}

.price-original {
  font-size: 13px;
  color: var(--text-light);
  text-decoration: line-through;
}

.discount-badge {
  background: #E8F5E9;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
}

.remaining {
  font-size: 12px;
  color: var(--red);
  display: block;
}

.remaining strong {
  font-weight: 700;
}

/* ============================
   PRODUCT IMAGE
   ============================ */
.product-image-wrap {
  position: relative;
  flex-shrink: 0;
}

.product-image {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  display: block;
  background: var(--border);
}

.add-btn {
  position: absolute;
  bottom: -8px;
  right: -8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: 2px solid #fff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  transition: all 0.18s;
}

.add-btn:hover {
  background: var(--accent);
  transform: scale(1.1);
}

.add-btn:active {
  transform: scale(0.96);
}

/* ============================
   CART BAR
   ============================ */
.cart-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: calc(100% - 32px);
  max-width: 480px;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.cart-bar-inner {
  background: var(--primary);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 32px rgba(123,63,0,0.4);
  cursor: pointer;
  transition: background 0.2s;
}

.cart-bar-inner:hover {
  background: var(--primary-light);
}

.cart-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-count {
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-label {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.cart-total {
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}

/* ============================
   TOAST
   ============================ */
.toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1A1A1A;
  color: #fff;
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
  z-index: 2000;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================
   FOOTER
   ============================ */
.footer {
  background: var(--primary);
  padding: 32px 16px;
  margin-top: 0;
}

.footer-content {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  font-size: 32px;
}

.footer-brand strong {
  display: block;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}

.footer-brand p {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
}

.footer-copy {
  color: rgba(255,255,255,0.5);
  font-size: 12px;
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 600px) {
  .hero {
    height: 260px;
  }

  .hero-content {
    padding-bottom: 64px;
  }

  .store-card {
    padding: 16px;
    gap: 12px;
  }

  .logo-circle {
    width: 64px;
    height: 64px;
    font-size: 22px;
  }

  .store-info h2 {
    font-size: 18px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-image {
    width: 88px;
    height: 88px;
  }
}

@media (min-width: 700px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================
   DRAWER
   ============================ */
.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1100;
  backdrop-filter: blur(2px);
}
.drawer-overlay.show { display: block; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 100vw;
  height: 100dvh;
  background: #fff;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
  box-shadow: -8px 0 40px rgba(0,0,0,0.15);
}
.drawer.open { transform: translateX(0); }

.drawer-step { display: flex; flex-direction: column; height: 100%; }
.drawer-step.hidden { display: none; }

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.drawer-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
}
.drawer-close-btn, .drawer-back-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.drawer-close-btn:hover, .drawer-back-btn:hover { background: var(--bg); }
.drawer-back-btn { font-size: 20px; font-weight: 700; }
.invisible { opacity: 0; pointer-events: none; }

.step-progress {
  display: flex;
  gap: 6px;
  padding: 10px 20px;
  flex-shrink: 0;
}
.sp {
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: var(--border);
  transition: background 0.3s;
}
.sp.active { background: var(--primary); }
.sp.done { background: var(--accent); }

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

.drawer-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  background: #fff;
}

.order-summary { margin-bottom: 12px; }
.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  color: var(--text-muted);
  padding: 4px 0;
}
.summary-row.total { font-weight: 800; font-size: 17px; color: var(--text); }

.btn-drawer-primary {
  width: 100%;
  padding: 15px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s;
}
.btn-drawer-primary:hover { background: var(--primary-light); }
.btn-confirm { background: #22c55e; }
.btn-confirm:hover { background: #16a34a; }

/* Delivery Options */
.delivery-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 4px;
}
.delivery-option {
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  background: #fff;
  user-select: none;
}
.delivery-option:hover {
  border-color: var(--primary-light);
  box-shadow: 0 2px 10px rgba(123,63,0,0.10);
}
.delivery-option.selected {
  border-color: var(--primary);
  background: #fdf6ef;
  box-shadow: 0 3px 12px rgba(123,63,0,0.13);
}
.delivery-option .do-label { font-weight: 700; font-size: 14px; color: #1A1A1A; }
.delivery-option .do-time  { font-size: 12px; color: #6b7280; margin-top: 2px; }
.delivery-option .do-price { font-size: 13px; font-weight: 700; margin-top: 5px; }
.delivery-option.selected .do-label { color: var(--primary); }
.do-price.free { color: #16a34a; }
.do-price.paid { color: var(--primary); }

/* Cart Items */
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 48px 0;
  color: var(--text-muted);
}
.cart-empty span { font-size: 48px; }
.cart-empty p { font-size: 15px; }

.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }

.cart-item-img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}
.cart-item-img-placeholder {
  width: 56px;
  height: 56px;
  background: var(--bg);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.cart-item-info {
  flex: 1;
  min-width: 0;
}
.cart-item-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-item-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
}
.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.qty-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: #fff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: all 0.15s;
  line-height: 1;
}
.qty-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.qty-val { font-size: 15px; font-weight: 700; min-width: 20px; text-align: center; }

/* Address Form */
.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.form-group input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  outline: none;
  transition: border-color 0.18s;
  background: #fff;
}
.form-group input:focus { border-color: var(--primary); }

.cep-row { display: flex; align-items: center; gap: 8px; }
.cep-row input { flex: 1; }
.cep-loading { font-size: 18px; animation: spin 1s linear infinite; display: inline-block; }

.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fg-small { max-width: 80px; }

.field-error { font-size: 12px; color: var(--red); display: block; margin-top: 4px; min-height: 16px; }

/* PIX */
.pix-items-list {
  background: var(--bg);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.pix-item-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--text-muted);
  padding: 4px 0;
}
.pix-total-row {
  font-weight: 800;
  font-size: 15px;
  color: var(--text);
  border-top: 1px solid var(--border);
  margin-top: 8px;
  padding-top: 8px;
}

.pix-box {
  background: #FFF8E1;
  border: 1.5px solid var(--accent-light);
  border-radius: 16px;
  padding: 20px;
}
.pix-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.pix-icon { font-size: 24px; }
.pix-header strong { font-size: 16px; font-weight: 800; color: var(--primary); }
.pix-instruction { font-size: 13px; color: var(--text-muted); margin-bottom: 14px; }

.pix-amount-box {
  background: #fff;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pix-amount-label { font-size: 13px; color: var(--text-muted); }
.pix-amount-value { font-size: 22px; font-weight: 800; color: var(--primary); }

.pix-key-box {
  background: #fff;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 14px;
}
.pix-key-label { font-size: 12px; color: var(--text-light); display: block; margin-bottom: 6px; }
.pix-key-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pix-key-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  word-break: break-all;
  flex: 1;
}
.pix-copy-btn {
  padding: 7px 16px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.18s;
}
.pix-copy-btn:hover { background: var(--primary-light); }
.pix-tip { font-size: 12px; color: var(--text-muted); line-height: 1.5; }

.pix-copy-full-btn {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 12px 0;
  transition: background 0.2s;
}
.pix-copy-full-btn:hover { background: var(--primary-light); }
.copy-icon { font-size: 18px; }

.pix-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.pix-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-muted);
}
.pix-status-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f59e0b;
  animation: pulse 1.4s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.7); }
}

/* ============================
   ORDER BUMPS
   ============================ */
.order-bumps {
  margin-bottom: 16px;
}
.ob-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ob-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.15s;
  position: relative;
  user-select: none;
}
.ob-card:hover {
  border-color: var(--primary-light);
  box-shadow: 0 2px 10px rgba(123,63,0,0.10);
}
.ob-card.selected {
  border-color: var(--primary);
  background: #fdf6ef;
  transform: scale(1.01);
  box-shadow: 0 3px 12px rgba(123,63,0,0.13);
}
.ob-card input[type="checkbox"] {
  display: none;
}
.ob-check-box {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid #d1d5db;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
  font-size: 13px;
  color: #fff;
}
.ob-card.selected .ob-check-box {
  background: var(--primary);
  border-color: var(--primary);
}
.ob-card.selected .ob-check-box::after {
  content: '✓';
}
.ob-info {
  flex: 1;
  min-width: 0;
}
.ob-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.ob-badge {
  font-size: 11px;
  font-weight: 700;
  background: #fff3cd;
  color: #92400e;
  border-radius: 20px;
  padding: 2px 8px;
}
.ob-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.ob-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ============================
   PRODUCT MODAL (BOTTOM SHEET)
   ============================ */
.product-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 1100;
}
.product-modal-overlay.active { display: block; }

.product-modal {
  position: fixed;
  bottom: -100%;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-radius: 24px 24px 0 0;
  z-index: 1101;
  max-height: 88vh;
  overflow-y: auto;
  transition: bottom 0.32s cubic-bezier(0.4,0,0.2,1);
}
.product-modal.active { bottom: 0; }

.product-modal-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 24px 24px 0 0;
  display: block;
}
.product-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: rgba(0,0,0,0.42);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  font-family: 'Inter', sans-serif;
}
.product-modal-body {
  padding: 18px 20px 36px;
}
.product-modal-body h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin: 8px 0 10px;
  line-height: 1.3;
}
.modal-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}
.product-modal-body .price-row { margin-bottom: 20px; }
.modal-add-btn {
  width: 100%;
  padding: 16px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background 0.2s;
}
.modal-add-btn:active { background: var(--primary-light); }

.modal-flavor-label {
  font-size: 13px;
  font-weight: 700;
  color: #374151;
  margin: 16px 0 4px;
}
.modal-flavor-hint {
  font-size: 12px;
  color: #6b7280;
  margin: 0 0 12px;
}
.modal-flavor-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 8px;
  border-top: 1px solid #f3f4f6;
}
.flavor-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
}
.flavor-row-img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.flavor-row-name {
  flex: 1;
  font-size: 14px;
  color: #1A1A1A;
}
.flavor-row-counter {
  display: flex;
  align-items: center;
  gap: 10px;
}
.fctr-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--primary);
  background: #fff;
  color: var(--primary);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fctr-btn:disabled {
  border-color: #d1d5db;
  color: #d1d5db;
  cursor: not-allowed;
}
.fctr-val {
  font-size: 15px;
  font-weight: 600;
  color: #1A1A1A;
  min-width: 16px;
  text-align: center;
}
