/* ============================================================
   MONSTER BURGER – style00.css (COMPLETO + OTIMIZADO)
   - Compatibilidade Cross-Browser: Chrome, Firefox, Safari, Edge, IE11+
   - Mobile-First otimizado
   - Animações premium e responsividade
   - Loading states e otimizações para conexões lentas
   - Efeitos de transição entre abas
============================================================ */

/* THEME & RESET */
:root {
  --bg: #0a0a0d;
  --card: #14121a;
  --bg-card: #1a1823;
  --bg-dark: rgba(255, 255, 255, 0.05);
  --muted: #9c94aa;
  --accent: #8a4bff;
  --accent-light: #b48aff;
  --white: #ffffff;
  --radius: 12px;
  --transition: 150ms ease-out;
  font-family: "Inter", sans-serif;
  font-size: 16px;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
body {
  background: var(--bg);
  color: var(--white);
  -webkit-overflow-scrolling: touch;
}

/* LOADING STATES */
.loading {
  text-align: center;
  padding: 40px 20px;
  display: none;
}
.loading.show { display: block; }
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255,255,255,0.1);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* OTIMIZAÇÕES PARA CONEXÃO LENTA */
.slow-connection .product-img {
  filter: blur(1px);
  transition: filter 0.3s ease;
}
.slow-connection .product-card:hover {
  transform: none;
}
.slow-connection .hero-carousel {
  display: none;
}
.product-img.loading {
  background: linear-gradient(90deg, #1a1823 25%, #2a2633 50%, #1a1823 75%);
  background-size: 200% 100%;
  animation: loading-shimmer 1.5s infinite;
}
@keyframes loading-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* LAYOUT */
main { padding: 14px; }
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 12px;
}

/* HEADER */
.topbar {
  position: sticky;
  top: 0;
  z-index: 2000;
  background: rgba(24, 21, 31, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 10px 10px;
}
.topbar-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  justify-content: center;
}
.brand-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  padding: 7px;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-name {
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--accent-light);
  letter-spacing: 0.2px;
  text-align: center;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  justify-content: center;
}
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  padding: 10px 12px;
  width: 100%;
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}
.search-icon { opacity: .85; font-size: 1rem; }
.search-input {
  width: 100%;
  border: none;
  background: transparent;
  color: #fff;
  outline: none;
  font-size: 0.95rem;
}
.search-clear {
  border: none;
  background: rgba(255,255,255,0.08);
  color: #fff;
  border-radius: 12px;
  padding: 8px 10px;
  cursor: pointer;
  transition: transform .15s ease-out, opacity .15s ease-out;
}
.search-clear:hover {
  transform: translateY(-1px);
  opacity: .92;
}

/* NAVIGATION */
.tabs {
  display: flex;
  gap: 6px;
  padding: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.06);
  color: var(--muted);
  font-weight: 600;
  flex-shrink: 0;
  transition: var(--transition);
  cursor: pointer;
  font-size: .9rem;
}
.tab.active {
  background: linear-gradient(135deg, var(--accent), rgba(180,138,255,0.65));
  box-shadow: 0 10px 20px rgba(138,75,255,0.18);
  color: #fff;
}

/* CAROUSEL - APENAS NA ABA HOME */
.hero-carousel {
  width: 100%;
  min-height: 260px;
  margin-bottom: 10px;
  border-radius: var(--radius);
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  display: none;
}
.hero-carousel.show {
  opacity: 1;
  transform: translateY(0);
  display: block;
}
.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* PRODUCTS */
.product-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  grid-auto-rows: auto;
  align-items: start;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.product-grid.show {
  opacity: 1;
  transform: translateY(0);
}
.product-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 10px 22px rgba(0,0,0,0.18);
  width: 100%;
  height: auto;
  overflow: visible;
  opacity: 0;
  transform: translateY(10px);
  animation: slideInUp 0.5s ease forwards;
}
@keyframes slideInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0,0,0,0.28);
}
.product-img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}
.product-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.card-actions { margin-top: 0; }
.product-info h3 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.2px;
  text-align: left;
  line-height: 1.2;
  min-height: calc(1.2em * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-price {
  margin: 0;
  color: var(--accent-light);
  font-weight: 900;
  font-size: 0.95rem;
  text-align: left;
  margin-top: -2px;
}

/* BUTTONS */
.btn {
  padding: 12px 14px;
  width: 100%;
  border: none;
  border-radius: 14px;
  background: #22202a;
  color: #fff;
  font-weight: 800;
  font-size: 0.875rem;
  transition: opacity .15s, transform .08s;
  cursor: pointer;
}
.btn:hover { opacity: .88; }
.btn:active { transform: scale(0.99); }
.primary {
  background: linear-gradient(135deg, var(--accent), rgba(180,138,255,0.72));
  box-shadow: 0 10px 18px rgba(138,75,255,0.20);
}

/* MODAL */
#modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 3200;
}
#modal.show { display: flex; }
.modal-card {
  width: 90%;
  max-width: 420px;
  background: var(--bg-card);
  padding: 18px;
  border-radius: 14px;
  animation: pop .18s ease-out;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
@keyframes pop {
  from { transform: scale(.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.modal-img {
  width: 100%;
  height: 180px;
  border-radius: 14px;
  object-fit: cover;
}
#modal-name {
  font-size: 1.25rem;
  color: var(--accent-light);
  text-align: center;
  margin: 0;
  line-height: 1.15;
  font-weight: 900;
}
#modal-desc {
  font-weight: 300;
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.35;
  color: rgba(255,255,255,0.82);
}
.qty-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0;
  margin-top: 20px;
}
.qty-row button {
  width: 25px;
  height: 25px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform .08s ease, opacity .12s ease, border-color .12s ease;
}
.qty-row button:hover {
  opacity: .92;
  border-color: rgba(180,138,255,0.35);
}
.qty-row button:active { transform: scale(0.98); }
#qty-value {
  height: 30px;
  min-width: 32px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.07);
  font-weight: 900;
  font-size: 1rem;
}
.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
}
.modal-actions .price {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 800;
}
.modal-actions .price span {
  color: var(--accent-light);
  font-weight: 900;
}
#modal-add {
  padding: 14px 14px;
  border-radius: 16px;
  font-weight: 900;
  letter-spacing: .2px;
}
.modal-close {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.14);
  color: #fff;
  font-size: 1.125rem;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 10px 18px rgba(0,0,0,0.18);
}
.modal-close:hover { opacity: .92; }

/* MODAL OPTIONS */
#modal-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}
.mb-section { width: 100%; }
.mb-section-title {
  font-weight: 900;
  margin-bottom: 6px;
}
.mb-select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--white);
  outline: none;
  height: 46px;
}
.mb-toggle {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--white);
  font-weight: 900;
  text-align: left;
  cursor: pointer;
  transition: opacity .12s ease, transform .12s ease, border-color .12s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  will-change: transform, box-shadow, border-color, background;
}
.mb-toggle:hover {
  opacity: .92;
  border-color: rgba(180,138,255,0.20);
}
.mb-toggle--danger { color: #ff4d4d; }
.mb-toggle--normal { color: var(--white); }
.mb-chevron {
  font-weight: 900;
  opacity: .85;
  transition: transform .18s ease, opacity .18s ease;
}
.mb-toggle.is-open .mb-chevron {
  transform: rotate(180deg);
  opacity: 1;
}
.mb-dropdown {
  max-height: 0;
  opacity: 0;
  transform: translateY(-4px);
  overflow: hidden;
  margin-top: 8px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,0.00);
  border-radius: 12px;
  background: rgba(255,255,255,0.00);
  transition: max-height .22s ease, opacity .18s ease, transform .18s ease, background .18s ease, border-color .18s ease, padding .18s ease;
  will-change: max-height, opacity, transform;
}
.mb-dropdown.is-open {
  max-height: min(260px, 38vh);
  opacity: 1;
  transform: translateY(0);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px 12px;
  padding-right: 10px;
  border-color: rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.035);
  animation: mbDropIn .20s ease-out;
}
@keyframes mbDropIn {
  from { transform: translateY(-6px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.mb-dropdown.is-open::-webkit-scrollbar { width: 8px; }
.mb-dropdown.is-open::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.16);
  border-radius: 10px;
}
.mb-dropdown.is-open::-webkit-scrollbar-track { background: transparent; }
.mb-dropdown.is-open {
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.18) transparent;
}
.mb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background-color 0.2s ease;
}
.mb-row:hover {
  background: rgba(255,255,255,0.02);
  border-radius: 8px;
  padding-left: 8px;
  padding-right: 8px;
}
.mb-row:last-child { border-bottom: none; }
.mb-row-text {
  font-size: 0.95rem;
  flex: 1;
  margin-right: 10px;
  transition: color 0.2s ease;
}
.mb-row:hover .mb-row-text { color: var(--accent-light); }
.mb-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.muted-small {
  font-size: 0.82rem;
  opacity: .75;
}

/* OVERLAY */
#overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 3000;
  display: none;
}
#overlay.show { display: block; }

/* CART BUBBLE */
#cart-bubble {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: linear-gradient(135deg, var(--accent), #9d5cff);
  padding: 12px 16px;
  border-radius: 40px;
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 3050;
  border: none;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 10px 28px rgba(138, 75, 255, 0.45), 0 0 0 1px rgba(255,255,255,0.06);
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}
#cart-bubble:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 16px 36px rgba(138, 75, 255, 0.60), 0 0 0 2px rgba(255,255,255,0.10);
}
#cart-bubble:active { transform: translateY(-2px) scale(0.98); }

/* CART SIDEBAR */
.cart-sidebar {
  position: fixed;
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 20px;
  width: 360px;
  max-width: 90%;
  right: -400px;
  top: 20px;
  bottom: 20px;
  transition: right .28s ease-out;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 18px rgba(0,0,0,.4);
  z-index: 3100;
}
.cart-sidebar.open { right: 20px; }
.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
#cart-close {
  background: var(--accent);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  color: #fff;
  font-size: 1.125rem;
  cursor: pointer;
}
.cart-items {
  list-style: none;
  flex-grow: 1;
  overflow-y: auto;
  margin-bottom: 16px;
  padding-right: 8px;
}
.cart-item {
  background: var(--bg-dark);
  padding: 12px;
  border-radius: var(--radius);
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}
.cart-item > div:first-child {
  flex: 1 1 auto;
  margin-right: 10px;
}
.cart-item strong { font-size: 1rem; }
.cart-item .muted-small { font-size: 0.8125rem; }
.item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.item-actions > div {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 1rem;
}
.btn-itcart {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 1rem;
}
.btn-itcart:hover { background: var(--accent-light); }
.btn.remove {
  background: #dc3545;
  font-size: 0.875rem;
  padding: 6px 10px;
  width: auto;
}
.btn.remove:hover { background: #c82333; }

/* CHECKOUT */
.checkout-section {
  background: var(--bg-dark);
  padding: 12px;
  border-radius: var(--radius);
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.checkout-input {
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
  font-size: 0.9375rem;
  transition: 0.15s ease-out;
  -webkit-appearance: none;
}
.checkout-input::placeholder { color: rgba(255, 255, 255, 0.45); }
.checkout-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(138, 75, 255, 0.35);
}
#checkout-pagamento {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
  font-size: 0.9375rem;
  transition: 0.15s ease-out;
}
#checkout-pagamento option {
  background: #1a1823;
  color: var(--white);
}
@-moz-document url-prefix() {
  #checkout-pagamento option { background: #0f0e15; color: var(--white); }
}
.coupon-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.coupon-btn {
  width: auto;
  padding: 12px 14px;
}
#cart-total {
  display: block;
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  font-weight: 900;
  font-size: 1.15rem;
  color: var(--accent-light);
  text-align: right;
  letter-spacing: .2px;
}
.cart-actions {
  display: flex;
  gap: 10px;
  align-items: stretch;
  margin-top: 12px;
}
.cart-actions #cart-clear {
  width: 44px;
  min-width: 44px;
  padding: 12px 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff4d4d, #ff6666);
  box-shadow: 0 8px 18px rgba(255, 77, 77, 0.30);
  font-weight: 900;
  line-height: 1;
  font-size: 0;
  position: relative;
}
.cart-actions #cart-clear::before {
  content: "🗑️";
  font-size: 18px;
  display: inline-block;
  transform: translateY(1px);
}
.cart-actions #cart-clear:hover { filter: brightness(1.03); }
.cart-actions #cart-checkout {
  flex: 1;
  border-radius: 14px;
  font-weight: 900;
}
#coupon-feedback {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.85);
  font-weight: 700;
}
.checkout-section label::before { content: none !important; }
#coupon-apply {
  width: 56px;
  min-width: 56px;
  padding: 12px 0;
  font-size: 0;
  position: relative;
}
#coupon-apply::before {
  content: "✅";
  font-size: 18px;
  display: inline-block;
  transform: translateY(1px);
}

/* CAROUSEL */
.hero-carousel {
  width: 100%;
  min-height: 260px;
  margin-bottom: 10px;
  border-radius: var(--radius);
  overflow: hidden;
}
.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* TOAST */
#toast {
  position: fixed;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.85);
  color: #fff;
  padding: 10px 15px;
  border-radius: 10px;
  z-index: 4000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease-out;
}
#toast.show { opacity: 1; }

/* CHECKBOXES ANIMADOS */
.mb-dropdown input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 0;
  padding: 0;
  transform-origin: center;
}
.mb-dropdown input[type="checkbox"]::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  background: rgba(138, 75, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55), opacity 0.3s ease;
  pointer-events: none;
}
.mb-dropdown input[type="checkbox"]:hover {
  border-color: var(--accent-light);
  background: rgba(138, 75, 255, 0.15);
  transform: scale(1.08);
  box-shadow: 0 0 0 4px rgba(138, 75, 255, 0.1);
}
.mb-dropdown input[type="checkbox"]:active {
  transform: scale(0.95);
}
.mb-dropdown input[type="checkbox"]:active::before {
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0.6;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.mb-dropdown input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent-light);
  animation: checkboxPulse 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 0 2px rgba(138, 75, 255, 0.3), 0 4px 12px rgba(138, 75, 255, 0.4);
}
@keyframes checkboxPulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(138, 75, 255, 0.7); }
  50% { transform: scale(1.15); box-shadow: 0 0 0 10px rgba(138, 75, 255, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(138, 75, 255, 0); }
}
.mb-dropdown input[type="checkbox"]:checked::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  color: white;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  animation: checkmarkAppear 0.3s 0.1s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards;
}
@keyframes checkmarkAppear {
  0% { transform: translate(-50%, -50%) scale(0) rotate(-180deg); opacity: 0; }
  70% { transform: translate(-50%, -50%) scale(1.2) rotate(10deg); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); opacity: 1; }
}
.mb-dropdown input[type="checkbox"]:focus {
  outline: none;
  animation: focusGlow 1.5s infinite alternate;
}
@keyframes focusGlow {
  0% { box-shadow: 0 0 0 3px rgba(138, 75, 255, 0.3); }
  100% { box-shadow: 0 0 0 5px rgba(138, 75, 255, 0.5); }
}
input[type="checkbox"].remove-ingredient {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 100, 100, 0.3);
  border-radius: 50%;
  background: rgba(255, 100, 100, 0.1);
  cursor: pointer;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}
input[type="checkbox"].remove-ingredient::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 36px;
  background: rgba(255, 100, 100, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55), opacity 0.3s ease;
  pointer-events: none;
}
input[type="checkbox"].remove-ingredient:hover {
  border-color: #ff4d4d;
  background: rgba(255, 100, 100, 0.2);
  transform: scale(1.08);
  box-shadow: 0 0 0 4px rgba(255, 100, 100, 0.1);
}
input[type="checkbox"].remove-ingredient:active {
  transform: scale(0.95);
}
input[type="checkbox"].remove-ingredient:active::before {
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0.6;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
input[type="checkbox"].remove-ingredient:checked {
  background: #ff4d4d;
  border-color: #ff6666;
  animation: checkboxPulseRed 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 0 2px rgba(255, 100, 100, 0.3), 0 4px 12px rgba(255, 100, 100, 0.4);
}
@keyframes checkboxPulseRed {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 100, 100, 0.7); }
  50% { transform: scale(1.15); box-shadow: 0 0 0 10px rgba(255, 100, 100, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 100, 100, 0); }
}
input[type="checkbox"].remove-ingredient:checked::after {
  content: "✕";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  color: white;
  font-size: 12px;
  font-weight: 900;
  animation: xmarkAppear 0.3s 0.1s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards;
}
@keyframes xmarkAppear {
  0% { transform: translate(-50%, -50%) scale(0) rotate(180deg); opacity: 0; }
  70% { transform: translate(-50%, -50%) scale(1.2) rotate(-10deg); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1) rotate(0deg); opacity: 1; }
}
.mb-dropdown.is-open label {
  animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) backwards;
}
.mb-dropdown.is-open label {
  --i: 0;
  animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) backwards;
  animation-delay: calc(var(--i) * 0.05s);
}
@keyframes slideIn {
  0% { opacity: 0; transform: translateX(-10px); }
  100% { opacity: 1; transform: translateX(0); }
}
.mb-dropdown input[type="checkbox"]:not(:checked) {
  animation: subtleBreathe 3s infinite ease-in-out;
}
@keyframes subtleBreathe {
  0%, 100% { border-color: rgba(255, 255, 255, 0.2); }
  50% { border-color: rgba(255, 255, 255, 0.3); }
}
.mb-toggle::after {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(circle at 30% 30%, rgba(180,138,255,0.22), transparent 55%);
  opacity: 0;
  transform: scale(0.98);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
}
.mb-toggle:hover::after {
  opacity: 1;
  transform: scale(1);
}
.mb-toggle:active {
  transform: translateY(0) scale(0.985);
}
.mb-toggle.is-open {
  border-color: rgba(180,138,255,0.38);
  background: rgba(138,75,255,0.10);
  box-shadow: 0 14px 28px rgba(0,0,0,0.24), 0 0 0 2px rgba(138,75,255,0.10);
}
.mb-toggle.is-open::after { opacity: 1; }
.mb-toggle.is-open .mb-chevron {
  animation: mbChevronPop .22s ease-out;
}
@keyframes mbChevronPop {
  0% { transform: rotate(180deg) scale(.92); }
  100% { transform: rotate(180deg) scale(1); }
}
#modal .mb-dropdown input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
  cursor: pointer;
  position: relative;
}
#modal .mb-dropdown input[type="checkbox"].extra-check:checked {
  background: var(--accent);
  border-color: var(--accent-light);
  box-shadow: 0 0 0 2px rgba(138, 75, 255, 0.3);
}
#modal .mb-dropdown input[type="checkbox"].extra-check:checked::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-weight: 900;
  font-size: 14px;
  line-height: 1;
}
#modal .mb-dropdown input[type="checkbox"].remove-ingredient {
  border-color: rgba(255, 100, 100, 0.3);
  background: rgba(255, 100, 100, 0.1);
}
#modal .mb-dropdown input[type="checkbox"].remove-ingredient:checked {
  background: #ff4d4d;
  border-color: #ff6666;
  box-shadow: 0 0 0 2px rgba(255, 100, 100, 0.25);
}
#modal .mb-dropdown input[type="checkbox"].remove-ingredient:checked::after {
  content: "✕";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-weight: 900;
  font-size: 12px;
  line-height: 1;
}

/* RADIO PREMIUM */
#combo-drink-body input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin: 0;
  padding: 0;
  transform-origin: center;
}
#combo-drink-body input[type="radio"]::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  background: rgba(138, 75, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55), opacity 0.3s ease;
  pointer-events: none;
}
#combo-drink-body input[type="radio"]:hover {
  border-color: var(--accent-light);
  background: rgba(138, 75, 255, 0.15);
  transform: scale(1.08);
  box-shadow: 0 0 0 4px rgba(138, 75, 255, 0.1);
}
#combo-drink-body input[type="radio"]:active {
  transform: scale(0.95);
}
#combo-drink-body input[type="radio"]:active::before {
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0.6;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
#combo-drink-body input[type="radio"]:checked {
  background: var(--accent);
  border-color: var(--accent-light);
  animation: checkboxPulse 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 0 2px rgba(138, 75, 255, 0.3), 0 4px 12px rgba(138, 75, 255, 0.4);
}
#combo-drink-body input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  animation: drinkDotAppear 0.28s 0.08s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards;
}
@keyframes drinkDotAppear {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* BREAKPOINTS */
@media (max-width: 360px) {
  .product-grid { grid-template-columns: 1fr; }
}
@media (min-width: 768px) {
  .topbar { padding: 12px 14px; }
  .topbar-row {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
  }
  .brand {
    min-width: 180px;
    justify-content: flex-start;
  }
  .brand-logo {
    width: 54px;
    height: 54px;
    padding: 8px;
  }
  .brand-name {
    font-size: 1.15rem;
    text-align: left;
  }
  .topbar-actions { justify-content: flex-end; }
  .search {
    width: min(520px, 100%);
    border-radius: 16px;
  }
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
  .product-img { height: 160px; }
  .modal-card {
    max-width: 500px;
    padding: 24px;
  }
}
@media (min-width: 1100px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}
@media (min-width: 1440px) {
  .product-grid { grid-template-columns: repeat(5, 1fr); gap: 24px; }
  .product-img { height: 180px; }
}
@media (min-width: 1024px) {
  .hero-carousel { min-height: 360px; }
}
@media (max-width: 768px) {
  .mb-dropdown input[type="checkbox"] {
    width: 26px;
    height: 26px;
  }
  input[type="checkbox"].remove-ingredient {
    width: 24px;
    height: 24px;
  }
  .mb-dropdown input[type="checkbox"]:checked::after {
    font-size: 16px;
  }
  input[type="checkbox"].remove-ingredient:checked::after {
    font-size: 14px;
  }
  .mb-dropdown input[type="checkbox"]::before {
    width: 44px;
    height: 44px;
  }
  input[type="checkbox"].remove-ingredient::before {
    width: 40px;
    height: 40px;
  }
  #combo-drink-body input[type="radio"] { width: 26px; height: 26px; }
  #combo-drink-body input[type="radio"]::before { width: 44px; height: 44px; }
  #combo-drink-body input[type="radio"]:checked::after { width: 10px; height: 10px; }
}
@media (max-width: 480px) {
  .cart-sidebar {
    top: 8px;
    bottom: 8px;
    padding: 12px;
  }
  .cart-header { margin-bottom: 12px; padding-bottom: 10px; }
  .cart-item { padding: 12px; margin-bottom: 10px; }
  #cart-total { padding: 10px 12px; font-size: 1.05rem; }
  .cart-actions { margin-top: 10px; }
  .cart-actions #cart-checkout { padding: 12px 12px; }
  .cart-actions #cart-clear { padding: 12px 0; }
}
#cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  gap: 12px;
}
#cart-total::before {
  content: "VALOR";
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.6px;
  color: rgba(255,255,255,0.75);
}