/* =========================================================
   VIGGS BURGERS - Estilos Oficiales WebApp Móvil (Light Theme)
   ========================================================= */

:root {
  --brand-red: #E51920;
  --brand-red-dark: #C01017;
  --brand-red-light: #FFECEE;
  --brand-yellow: #FFB703;
  --brand-yellow-light: #FFF8E7;
  --text-main: #181A1F;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;
  --bg-page: #F8F9FA;
  --bg-card: #FFFFFF;
  --border-color: #EBECEF;
  --border-light: #F1F2F4;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.07);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.10);
  --shadow-bottom-bar: 0 -4px 20px rgba(0,0,0,0.08);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-full: 9999px;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.4;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* =========================================================
   DESKTOP VIEW: Exclusivo QR Screen (>= 768px)
   "no debes crear un demo en la version desktop solo version movile"
   ========================================================= */
#desktop-qr-container {
  display: none;
  min-height: 100vh;
  background: linear-gradient(135deg, #FFF5F5 0%, #FFFFFF 50%, #FFF0F1 100%);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

@media (min-width: 768px) {
  #desktop-qr-container {
    display: flex !important;
  }
  #mobile-app-container {
    display: none !important;
  }
}

.desktop-card {
  max-width: 520px;
  width: 100%;
  background: #FFFFFF;
  border-radius: 28px;
  padding: 2.5rem 2rem;
  box-shadow: 0 20px 50px rgba(229, 25, 32, 0.12), 0 4px 15px rgba(0,0,0,0.05);
  border: 1px solid rgba(229, 25, 32, 0.15);
  text-align: center;
}

.desktop-logo-wrap {
  width: 110px;
  height: 110px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: #FFFFFF;
  padding: 6px;
  box-shadow: 0 8px 24px rgba(229, 25, 32, 0.18);
  border: 3px solid var(--brand-red);
}

.desktop-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.desktop-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.desktop-slogan {
  color: var(--brand-red);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.desktop-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  padding: 0 1rem;
}

.qr-wrapper {
  background: #FFFFFF;
  padding: 1.2rem;
  border-radius: 20px;
  display: inline-block;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  border: 2px dashed #E51920;
  margin-bottom: 1.25rem;
}

.desktop-features {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-color);
}

.desktop-feat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.desktop-feat-item span:first-child {
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
}

.btn-copy-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--brand-red-light);
  color: var(--brand-red);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.65rem 1.25rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 0.5rem;
}

.btn-copy-link:hover {
  background: var(--brand-red);
  color: #FFFFFF;
}

/* =========================================================
   MOBILE WEBAPP CONTAINER (< 768px)
   ========================================================= */
#mobile-app-container {
  display: block;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background: #FFFFFF;
  position: relative;
  padding-bottom: 90px; /* Space for bottom floating bar */
  box-shadow: 0 0 40px rgba(0,0,0,0.04);
}

/* --- HEADER APP BAR --- */
.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-logo-small {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--brand-red);
  box-shadow: 0 2px 8px rgba(229, 25, 32, 0.2);
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
  letter-spacing: -0.3px;
}

.brand-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--brand-red);
  background: var(--brand-red-light);
  padding: 2px 6px;
  border-radius: 6px;
  display: inline-block;
}

.header-order-mode-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: #FFF0F1;
  border: 1px solid #FFCDD2;
  color: var(--brand-red);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.45rem 0.8rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.header-order-mode-btn:active {
  transform: scale(0.96);
}

/* --- SEARCH & QUICK FILTERS --- */
.search-container {
  padding: 0.4rem 1rem 0.75rem;
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 0.9rem;
  color: var(--text-light);
  font-size: 1rem;
  pointer-events: none;
}

.search-input {
  width: 100%;
  background: #F3F4F6;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 0.65rem 0.9rem 0.65rem 2.4rem;
  font-size: 0.88rem;
  color: var(--text-main);
  outline: none;
  transition: all 0.2s ease;
}

.search-input:focus {
  background: #FFFFFF;
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(229, 25, 32, 0.12);
}

.search-clear-btn {
  position: absolute;
  right: 0.75rem;
  background: #E5E7EB;
  border: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  cursor: pointer;
  display: none;
}

/* --- STICKY CATEGORY NAV (CAROUSEL) --- */
.category-nav-bar {
  display: flex;
  overflow-x: auto;
  white-space: nowrap;
  padding: 0.4rem 0.75rem 0.65rem;
  gap: 0.5rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  background: #FFFFFF;
}

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

.category-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  background: #F3F4F6;
  color: #4B5563;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.category-chip.active {
  background: var(--brand-red);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(229, 25, 32, 0.28);
}

.category-chip:active {
  transform: scale(0.95);
}

/* --- HERO WELCOME PROMO --- */
.hero-promo-card {
  margin: 0.85rem 1rem;
  background: linear-gradient(135deg, #E51920 0%, #C01017 100%);
  border-radius: 20px;
  padding: 1.15rem 1.25rem;
  color: #FFFFFF;
  box-shadow: 0 8px 20px rgba(229, 25, 32, 0.25);
  position: relative;
  overflow: hidden;
}

.hero-promo-card::after {
  content: "🔥";
  position: absolute;
  right: -10px;
  bottom: -20px;
  font-size: 5.5rem;
  opacity: 0.15;
  pointer-events: none;
}

.hero-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.hero-title {
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.35rem;
}

.hero-sub {
  font-size: 0.82rem;
  opacity: 0.92;
  line-height: 1.35;
}

/* --- CATEGORY SECTION BANNERS --- */
.category-section-banner {
  margin: 1.25rem 1rem 0.9rem;
  border-radius: 16px;
  padding: 1rem 1.15rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.04);
}

.banner-content {
  position: relative;
  z-index: 2;
}

.banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 0.25rem 0.55rem;
  border-radius: 9999px;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.banner-title {
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.banner-sub {
  font-size: 0.78rem;
  line-height: 1.35;
}

/* Light high-impact colors for banners without dark backgrounds */
.banner-theme-red {
  background: linear-gradient(135deg, #FFF1F2 0%, #FFE4E6 100%);
  border-left: 5px solid var(--brand-red);
}
.banner-theme-red .banner-badge {
  background: var(--brand-red);
  color: #FFFFFF;
}
.banner-theme-red .banner-title {
  color: #9F1239;
}
.banner-theme-red .banner-sub {
  color: #881337;
}

.banner-theme-amber {
  background: linear-gradient(135deg, #FFFBEB 0%, #FEF3C7 100%);
  border-left: 5px solid #F59E0B;
}
.banner-theme-amber .banner-badge {
  background: #D97706;
  color: #FFFFFF;
}
.banner-theme-amber .banner-title {
  color: #92400E;
}
.banner-theme-amber .banner-sub {
  color: #78350F;
}

.banner-theme-emerald {
  background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);
  border-left: 5px solid #10B981;
}
.banner-theme-emerald .banner-badge {
  background: #059669;
  color: #FFFFFF;
}
.banner-theme-emerald .banner-title {
  color: #065F46;
}
.banner-theme-emerald .banner-sub {
  color: #047857;
}

.banner-theme-orange {
  background: linear-gradient(135deg, #FFF7ED 0%, #FFEDD5 100%);
  border-left: 5px solid #EA580C;
}
.banner-theme-orange .banner-badge {
  background: #EA580C;
  color: #FFFFFF;
}
.banner-theme-orange .banner-title {
  color: #9A3412;
}
.banner-theme-orange .banner-sub {
  color: #7C2D12;
}

/* --- SECTION HEADERS --- */
.category-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem 0.4rem;
}

.category-title-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.category-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--brand-red-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.category-heading {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.2px;
}

.category-item-count {
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 600;
}

/* --- PRODUCT CARDS (LIGHT THEME, NO DARK BACKGROUNDS) --- */
.products-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0 1rem;
}

.product-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 1rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.2s ease;
}

.product-card:active {
  border-color: #FFCDD2;
}

.product-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.product-badge-pill {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--brand-red);
  background: var(--brand-red-light);
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  display: inline-block;
  margin-bottom: 0.3rem;
}

.product-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
}

.btn-favorite {
  background: #F9FAFB;
  border: 1px solid var(--border-color);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  flex-shrink: 0;
  color: #9CA3AF;
  font-size: 1.05rem;
}

.btn-favorite.active {
  color: #E51920;
  background: #FFF0F1;
  border-color: #FFCDD2;
  transform: scale(1.1);
}

.product-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.product-ingredients-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.85rem;
}

.ingredient-tag {
  font-size: 0.7rem;
  background: #F3F4F6;
  color: #4B5563;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  font-weight: 500;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.65rem;
  border-top: 1px dashed var(--border-color);
}

.product-price-box {
  display: flex;
  flex-direction: column;
}

.product-price-label {
  font-size: 0.68rem;
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
}

.product-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--brand-red);
}

.btn-add-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--brand-red);
  color: #FFFFFF;
  border: none;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.5rem 0.95rem;
  border-radius: 9999px;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(229, 25, 32, 0.25);
  transition: all 0.2s ease;
}

.btn-add-item:active {
  transform: scale(0.94);
  background: var(--brand-red-dark);
}

/* =========================================================
   FLOATING APP BOTTOM BAR (ESTILO APP NATIVA MC / KFC / BK)
   ========================================================= */
.floating-bottom-nav {
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 440px;
  background: #FFFFFF;
  border-radius: 24px;
  padding: 0.45rem 0.75rem;
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14), 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid rgba(229, 25, 32, 0.12);
  z-index: 90;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: #9CA3AF;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.3rem 0.6rem;
  border-radius: 14px;
  transition: all 0.2s ease;
  position: relative;
  text-decoration: none;
}

.nav-item-icon {
  font-size: 1.25rem;
  line-height: 1;
  margin-bottom: 0.2rem;
  transition: transform 0.2s ease;
}

.nav-item.active {
  color: var(--brand-red);
}

.nav-item.active .nav-item-icon {
  transform: translateY(-2px);
}

.nav-badge {
  position: absolute;
  top: 1px;
  right: 10px;
  background: var(--brand-red);
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 800;
  min-width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

/* Floating cart pulse bar above bottom nav when cart > 0 */
.floating-cart-bar {
  position: fixed;
  bottom: 78px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 440px;
  background: linear-gradient(135deg, var(--brand-red) 0%, #C01017 100%);
  color: #FFFFFF;
  border-radius: 18px;
  padding: 0.75rem 1.1rem;
  display: none;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 24px rgba(229, 25, 32, 0.35);
  z-index: 85;
  cursor: pointer;
  animation: slideUpFloat 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideUpFloat {
  from { transform: translate(-50%, 20px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

.floating-cart-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.floating-cart-count {
  background: rgba(255, 255, 255, 0.25);
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 800;
}

.floating-cart-title {
  font-size: 0.88rem;
  font-weight: 700;
}

.floating-cart-right {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 800;
  font-size: 0.95rem;
}

/* =========================================================
   BOTTOM SHEET MODALS (CUSTOMIZER & CART & INFO)
   ========================================================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal-backdrop.active {
  display: flex;
  opacity: 1;
  align-items: flex-end;
  justify-content: center;
}

.modal-sheet {
  width: 100%;
  max-width: 480px;
  background: #FFFFFF;
  border-radius: 28px 28px 0 0;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.18);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active .modal-sheet {
  transform: translateY(0);
}

.modal-drag-indicator {
  width: 40px;
  height: 5px;
  background: #E5E7EB;
  border-radius: 9999px;
  margin: 10px auto 4px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.modal-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
}

.btn-close-modal {
  background: #F3F4F6;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-body {
  padding: 1.25rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
}

.modal-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border-color);
  background: #FFFFFF;
}

/* Customizer components */
.customizer-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.customizer-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 1rem;
}

.customizer-section-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 0.6rem;
  margin-top: 0.85rem;
}

.options-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: #F9FAFB;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.option-row.selected {
  background: #FFF0F1;
  border-color: var(--brand-red);
}

.option-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
}

.option-radio {
  accent-color: var(--brand-red);
  width: 18px;
  height: 18px;
}

.option-price-tag {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--brand-red);
}

.mayo-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.mayo-check-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.8rem;
  background: #F9FAFB;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.mayo-check-box input {
  accent-color: var(--brand-red);
}

.instructions-input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  font-size: 0.85rem;
  outline: none;
  background: #F9FAFB;
  font-family: inherit;
  resize: none;
}

.instructions-input:focus {
  background: #FFFFFF;
  border-color: var(--brand-red);
}

.qty-counter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding: 0.5rem 0;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-qty {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: #F3F4F6;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.qty-value {
  font-size: 1.1rem;
  font-weight: 800;
  min-width: 20px;
  text-align: center;
}

.btn-primary-action {
  width: 100%;
  background: var(--brand-red);
  color: #FFFFFF;
  border: none;
  padding: 0.95rem 1.25rem;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(229, 25, 32, 0.3);
  transition: all 0.2s ease;
}

.btn-primary-action:active {
  transform: scale(0.97);
  background: var(--brand-red-dark);
}

/* --- CART / CHECKOUT FORM --- */
.order-type-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  background: #F3F4F6;
  padding: 4px;
  border-radius: 14px;
  margin-bottom: 1.25rem;
}

.order-type-tab {
  padding: 0.65rem;
  border-radius: 10px;
  border: none;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-muted);
  background: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.order-type-tab.active {
  background: #FFFFFF;
  color: var(--brand-red);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.checkout-field {
  margin-bottom: 0.9rem;
}

.checkout-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.3rem;
}

.checkout-input, .checkout-select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: #F9FAFB;
  font-size: 0.88rem;
  color: var(--text-main);
  outline: none;
  font-family: inherit;
  transition: all 0.2s ease;
}

.checkout-input:focus, .checkout-select:focus {
  background: #FFFFFF;
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(229, 25, 32, 0.12);
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.cart-item-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0.75rem 0.9rem;
  background: #F9FAFB;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-main);
}

.cart-item-details {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.cart-item-subtotal {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--brand-red);
  margin-top: 0.25rem;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: 0.75rem;
}

.btn-cart-qty {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  font-size: 0.95rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.cart-summary-box {
  background: #F9FAFB;
  border-radius: 14px;
  padding: 1rem;
  border: 1px solid var(--border-color);
  margin-top: 1rem;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}

.summary-line.total {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text-main);
  border-top: 1px dashed var(--border-color);
  padding-top: 0.65rem;
  margin-top: 0.45rem;
  margin-bottom: 0;
}

.summary-line.total .total-price {
  color: var(--brand-red);
}

/* Toast message */
.toast-notice {
  position: fixed;
  top: 75px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: #1F2937;
  color: #FFFFFF;
  padding: 0.65rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

/* Empty states */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
}

.empty-state-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.empty-state-text {
  font-size: 0.85rem;
  line-height: 1.4;
  margin-bottom: 1.2rem;
}
