/* ==========================================
   AÇAI + MAIS - STYLES ESTILO IFOOD (CLEAN)
   ========================================== */

/* Design Tokens & Variables */
:root {
  --bg-body: #f7f7f8;
  --bg-card: #ffffff;
  --text-main: #3e3e40;
  --text-dark: #1f1f23;
  --text-muted: #71717a;
  --color-primary: #5c0987;       /* Roxo Açaí oficial */
  --color-primary-light: #f5ebfa; /* Roxo suave para fundos/seleção */
  --color-primary-hover: #48056a;
  --color-success: #22c55e;       /* Verde iFood/WhatsApp */
  --color-success-light: #f0fdf4;
  --color-gold: #eab308;
  --border-light: #e4e4e7;
  --border-focus: #a855f7;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.02);
  --shadow-md: 0 4px 12px -2px rgba(0,0,0,0.08), 0 2px 6px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --font-main: 'Inter', sans-serif;
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --transition-fast: all 0.2s ease-out;
  --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Resets */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--text-dark);
  font-weight: 700;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

/* Layout Utilities */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

.margin-top-20 { margin-top: 20px; }
.margin-top-40 { margin-top: 40px; }
.margin-bottom-120 { margin-bottom: 120px; }

/* Custom Scrollbar for scrolling elements */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}

/* 1. Header Banner & Logo Section */
.store-banner-wrapper {
  width: 100%;
  height: 180px;
  overflow: hidden;
  position: relative;
}
.store-banner {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: brightness(0.85);
}

.store-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 20px;
  position: relative;
  z-index: 10;
}

.store-info-row {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  margin-top: -40px; /* Logo overlaps the banner */
}

.store-logo-container {
  width: 95px;
  height: 95px;
  background: var(--bg-card);
  border-radius: 16px;
  padding: 6px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.store-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.store-details-meta {
  flex-grow: 1;
  padding-bottom: 4px;
}
.store-title-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}
.store-title-badge h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.status-open-badge {
  background: var(--color-success-light);
  color: var(--color-success);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(34, 197, 94, 0.2);
}
.status-open-badge i {
  font-size: 6px;
}

.store-meta-text {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.store-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}
.store-stats strong {
  color: var(--text-dark);
}
.text-gold {
  color: var(--color-gold);
}
.dot-separator {
  color: var(--border-light);
}

/* 2. Catalog Tabs & Navigation */
.category-scroll-bar {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-light);
  padding: 16px 0;
  margin-bottom: 24px;
  background: var(--bg-body);
  position: sticky;
  top: 0;
  z-index: 20;
}
.category-tab {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  transition: var(--transition-fast);
}
.category-tab:hover, .category-tab.active {
  color: var(--bg-card);
  background: var(--color-primary);
  border-color: var(--color-primary);
}

/* 3. Loyalty Card Widget (Familiar style) */
.loyalty-widget-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 20px;
  margin: 24px 0;
  box-shadow: var(--shadow-sm);
}
.loyalty-widget-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.widget-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.club-badge {
  background: rgba(234, 179, 8, 0.15);
  color: #c29104;
  border: 1px solid rgba(234, 179, 8, 0.3);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 8px;
}
.loyalty-widget-header h4 {
  font-size: 16px;
  font-weight: 700;
}
.btn-reset-small {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition-fast);
}
.btn-reset-small:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.loyalty-widget-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.loyalty-stamps-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}
.stamp-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-body);
  border: 2px dashed var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--border-light);
  transition: var(--transition-normal);
}
.stamp-circle.active {
  background: var(--color-primary);
  border: 2px solid var(--color-primary);
  color: var(--bg-card);
  box-shadow: 0 4px 10px rgba(92, 9, 135, 0.2);
}
.gift-stamp {
  border: 2px dashed var(--color-gold);
  color: var(--color-gold);
  background: rgba(234, 179, 8, 0.05);
}
.gift-stamp.active {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--text-dark);
}

.loyalty-feedback-msg {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dark);
}

/* 4. iFood Product List Item Style */
.menu-category-group {
  margin-bottom: 24px;
}
.category-title {
  font-size: 20px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 8px;
}

.menu-items-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.menu-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}
.menu-item-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.item-card-content {
  flex-grow: 1;
}
.item-card-content h4 {
  font-size: 16px;
  margin-bottom: 6px;
  color: var(--text-dark);
}
.item-description {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
  max-width: 580px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.item-price-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.item-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
}
.unlimited-tag {
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}

.item-card-photo-wrapper {
  position: relative;
  width: 100px;
  height: 100px;
  flex-shrink: 0;
}
.item-card-photo {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border-light);
}

.btn-add-item-plus {
  position: absolute;
  bottom: -6px;
  right: -6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-primary);
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: var(--transition-fast);
}
.menu-item-card:hover .btn-add-item-plus {
  background: var(--color-primary-hover);
  transform: scale(1.1);
}

/* 5. iFood Promo Box Grid */
.promo-items-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.promo-item-box {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.promo-box-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--color-primary);
  color: white;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 8px;
}
.promo-box-badge.insta {
  background: linear-gradient(45deg, #f09433 0%, #dc2743 50%, #bc1888 100%);
}
.promo-box-content h5 {
  font-size: 16px;
  margin-bottom: 6px;
  padding-right: 60px;
}
.promo-box-content p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  flex-grow: 1;
}
.btn-action-promo {
  background: var(--color-primary-light);
  color: var(--color-primary);
  border: 1px solid rgba(92, 9, 135, 0.2);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
  width: 100%;
}
.btn-action-promo:hover {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

/* Store details box */
.info-box-details {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.info-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.info-row i {
  font-size: 18px;
  color: var(--color-primary);
  margin-top: 2px;
}
.info-row strong {
  font-size: 14px;
  color: var(--text-dark);
  display: block;
}
.info-row p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ==========================================
   PRODUCT CUSTOMIZER MODAL (iFood Layout)
   ========================================== */
.product-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.product-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.product-modal-container {
  background: var(--bg-card);
  width: 100%;
  max-width: 580px;
  height: 90%;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: translateY(30px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-modal-overlay.active .product-modal-container {
  transform: translateY(0);
}

.modal-header-sticky {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-light);
  padding: 16px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 20;
}
.btn-close-modal {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text-dark);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-title-text {
  font-weight: 700;
  font-size: 16px;
  margin-left: 16px;
}

.modal-body-scroll {
  flex-grow: 1;
  overflow-y: auto;
  padding-bottom: 24px;
}

.modal-product-hero {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
}

.modal-product-info {
  padding: 20px;
  border-bottom: 8px solid var(--bg-body);
}
.modal-product-info h3 {
  font-size: 22px;
  margin-bottom: 8px;
}
.modal-product-desc {
  font-size: 13px;
  color: var(--text-muted);
}

/* Customizer Section Groups (iFood bars) */
.customizer-section-group {
  border-bottom: 8px solid var(--bg-body);
}

.group-title-header {
  background: var(--bg-body);
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.group-title-header h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
}
.group-title-header p {
  font-size: 11px;
  color: var(--text-muted);
}

.required-badge {
  background: var(--color-primary);
  color: white;
  font-size: 9px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}
.free-badge {
  background: var(--color-success);
  color: white;
  font-size: 9px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
}
.optional-badge {
  background: #a1a1aa;
  color: white;
  font-size: 9px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
}

/* Options rows */
.selection-options-list, .checkbox-options-list, .paid-options-list {
  padding: 4px 0;
}

.radio-option-row, .check-option-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  position: relative;
  transition: var(--transition-fast);
}
.radio-option-row:last-child, .check-option-row:last-child {
  border-bottom: none;
}
.radio-option-row:hover, .check-option-row:hover {
  background: var(--bg-body);
}

.radio-option-row input[type="radio"], .check-option-row input[type="checkbox"] {
  position: absolute;
  opacity: 0;
}

.radio-details {
  display: flex;
  flex-direction: column;
}
.radio-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-dark);
}
.radio-price {
  font-size: 12px;
  color: var(--color-primary);
  font-weight: 700;
}

/* Custom visual dots for inputs */
.radio-custom-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border-light);
  display: inline-block;
  position: relative;
  transition: var(--transition-fast);
}
.radio-option-row input[type="radio"]:checked ~ .radio-custom-dot {
  border-color: var(--color-primary);
}
.radio-custom-dot::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  transform: scale(0);
  transition: var(--transition-fast);
}
.radio-option-row input[type="radio"]:checked ~ .radio-custom-dot::after {
  transform: scale(1);
}

.check-custom-square {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid var(--border-light);
  display: inline-block;
  position: relative;
  transition: var(--transition-fast);
}
.check-option-row input[type="checkbox"]:checked ~ .check-custom-square {
  border-color: var(--color-primary);
  background: var(--color-primary);
}
.check-custom-square::after {
  content: '✓';
  position: absolute;
  top: -1px;
  left: 2px;
  font-size: 10px;
  color: white;
  font-weight: 800;
  transform: scale(0);
  transition: var(--transition-fast);
}
.check-option-row input[type="checkbox"]:checked ~ .check-custom-square::after {
  transform: scale(1);
}

/* Modal Inner Category Tabs */
.modal-category-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border-light);
  padding: 10px 20px;
}
.modal-tab-btn {
  background: none;
  border: none;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 12px;
}
.modal-tab-btn.active {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.modal-tab-pane {
  display: none;
}
.modal-tab-pane.active {
  display: block;
}

/* Paid options rows in Modal */
.paid-option-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
}
.paid-option-row:last-child {
  border-bottom: none;
}
.paid-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-dark);
}
.paid-desc {
  font-size: 11px;
  color: var(--text-muted);
}
.paid-price {
  font-size: 13px;
  color: var(--color-primary);
  font-weight: 700;
}

.modal-select {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 8px 12px;
  font-family: inherit;
  outline: none;
  cursor: pointer;
}

/* Counters picker */
.quantity-picker {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 2px;
  background: white;
  gap: 8px;
}
.btn-picker {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: none;
  background: none;
  color: var(--color-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  transition: var(--transition-fast);
}
.btn-picker:hover {
  background: var(--color-primary-light);
}
.picker-val {
  font-size: 13px;
  font-weight: 700;
  min-width: 14px;
  text-align: center;
}

/* Sticky Modal Footer Add Button */
.modal-footer-sticky {
  background: var(--bg-card);
  border-top: 1px solid var(--border-light);
  padding: 16px;
  position: relative;
  z-index: 20;
}
.qty-total-row {
  display: flex;
  gap: 16px;
}
.quantity-picker.lg {
  padding: 6px;
}
.quantity-picker.lg .btn-picker {
  width: 32px;
  height: 32px;
  font-size: 14px;
}
.quantity-picker.lg .picker-val {
  font-size: 16px;
  min-width: 20px;
}

.btn-add-to-cart-primary {
  flex-grow: 1;
  background: var(--color-primary);
  border: none;
  color: white;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(92, 9, 135, 0.25);
  transition: var(--transition-fast);
}
.btn-add-to-cart-primary:hover {
  background: var(--color-primary-hover);
}

/* ==========================================
   FLOATING BOTTOM BAR (Ver Sacola)
   ========================================== */
.floating-sacola-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  width: calc(100% - 32px);
  max-width: 580px;
  background: var(--color-primary);
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(92, 9, 135, 0.35);
  z-index: 100;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
.floating-sacola-bar.active {
  transform: translateX(-50%) translateY(0);
}

.sacola-bar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
}

.sacola-bar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.sacola-badge-count {
  background: white;
  color: var(--color-primary);
  font-weight: 800;
  font-size: 13px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sacola-totals {
  display: flex;
  flex-direction: column;
}
.sacola-totals strong {
  color: white;
  font-size: 15px;
  line-height: 1.2;
}
.totals-delivery-status {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
}

.sacola-bar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
}
.sacola-total-price {
  font-weight: 800;
  font-size: 16px;
}

/* ==========================================
   SACOLA DRAWER (Cart slide-over layout)
   ========================================== */
.cart-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.cart-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer-container {
  background: var(--bg-card);
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 440px;
  height: 100%;
  box-shadow: -5px 0 25px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  z-index: 910;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.cart-drawer-overlay.active .cart-drawer-container {
  transform: translateX(0);
}

.drawer-header {
  border-bottom: 1px solid var(--border-light);
  padding: 20px;
  background: white;
}
.drawer-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.btn-close-drawer {
  background: none;
  border: none;
  font-size: 18px;
  color: var(--text-dark);
  cursor: pointer;
  padding: 4px;
}
.drawer-title-row h4 {
  font-size: 18px;
  font-weight: 700;
}

.drawer-body-scroll {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.drawer-section {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 20px;
}
.drawer-section:last-child {
  border-bottom: none;
}
.drawer-section-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Cart item row inside drawer */
.cart-item-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px dashed var(--border-light);
}
.cart-item-row:last-child {
  border-bottom: none;
}
.cart-item-details {
  flex-grow: 1;
  padding-right: 12px;
}
.cart-item-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-dark);
  margin-bottom: 2px;
}
.cart-item-sub-desc {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.3;
}
.cart-item-price-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}
.cart-item-price {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-dark);
}
.cart-item-buttons {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
.btn-edit-item, .btn-remove-item {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition-fast);
}
.btn-edit-item:hover {
  color: var(--color-primary);
  text-decoration: underline;
}
.btn-remove-item:hover {
  color: #ef4444;
  text-decoration: underline;
}

/* Delivery Tabs in drawer */
.delivery-mode-buttons {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.mode-label-btn {
  flex: 1;
  cursor: pointer;
  position: relative;
}
.mode-label-btn input[type="radio"] {
  position: absolute;
  opacity: 0;
}
.mode-btn-inner {
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition-fast);
}
.mode-label-btn:hover .mode-btn-inner {
  background: var(--bg-body);
}
.mode-label-btn input[type="radio"]:checked + .mode-btn-inner {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
  color: var(--color-primary);
}

/* Form Styles flat */
.form-group-flat {
  margin-bottom: 12px;
}
.form-group-flat label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  display: block;
  margin-bottom: 4px;
}
.form-input-flat, .form-select-flat {
  width: 100%;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  background: #fbfbfb;
  transition: var(--transition-fast);
}
.form-input-flat:focus, .form-select-flat:focus {
  border-color: var(--border-focus);
  background: white;
}
.form-row-flat {
  display: flex;
  gap: 12px;
}
.flex-8 { flex: 8; }
.flex-4 { flex: 4; }
.flex-6 { flex: 6; }

.pickup-details-box {
  background: var(--color-success-light);
  border: 1px solid rgba(34, 197, 94, 0.2);
  padding: 12px;
  border-radius: 8px;
}
.pickup-details-box p {
  font-size: 13px;
  color: var(--text-dark);
}
.pickup-time-eta {
  font-size: 11px;
  color: var(--color-success);
  font-weight: 700;
  display: block;
  margin-top: 4px;
}

/* Payment vertical flat options */
.payment-options-vertical {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.payment-option-row-flat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  position: relative;
  transition: var(--transition-fast);
}
.payment-option-row-flat:hover {
  background: var(--bg-body);
}
.payment-option-row-flat input[type="radio"] {
  position: absolute;
  opacity: 0;
}
.payment-option-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}
.payment-option-inner i {
  font-size: 20px;
}
.payment-desc {
  display: flex;
  flex-direction: column;
}
.payment-desc strong {
  font-size: 13px;
  color: var(--text-dark);
  line-height: 1.2;
}
.payment-desc span {
  font-size: 11px;
  color: var(--text-muted);
}

.payment-custom-check {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--border-light);
  position: relative;
  display: inline-block;
  transition: var(--transition-fast);
}
.payment-option-row-flat input[type="radio"]:checked ~ .payment-custom-check {
  border-color: var(--color-primary);
}
.payment-custom-check::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  transform: scale(0);
  transition: var(--transition-fast);
}
.payment-option-row-flat input[type="radio"]:checked ~ .payment-custom-check::after {
  transform: scale(1);
}

/* Observaçoes notes box flat */
.form-textarea-flat {
  width: 100%;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 8px 12px;
  font-family: inherit;
  font-size: 13px;
  outline: none;
  background: #fbfbfb;
  resize: vertical;
}
.form-textarea-flat:focus {
  border-color: var(--border-focus);
  background: white;
}

/* Coupon Box */
.coupon-apply-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.coupon-apply-row input {
  flex-grow: 1;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 13px;
  outline: none;
  background: #fbfbfb;
}
.coupon-apply-row input:focus {
  border-color: var(--border-focus);
}
.coupon-apply-row button {
  background: var(--color-primary-light);
  color: var(--color-primary);
  border: 1px solid rgba(92, 9, 135, 0.2);
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-fast);
}
.coupon-apply-row button:hover {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}
.coupon-applied-alert {
  background: var(--color-success-light);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: var(--color-success);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Financial totals */
.total-summary-section {
  background: #fafafb;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 16px;
}
.financial-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 6px;
}
.discount-text {
  color: var(--color-success);
  font-weight: 700;
}
.financial-divider {
  height: 1px;
  background: var(--border-light);
  margin: 10px 0;
}
.total-row {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-dark);
}

/* Sticky Drawer Footer */
.drawer-footer-sticky {
  background: var(--bg-card);
  border-top: 1px solid var(--border-light);
  padding: 16px;
}
.btn-finalize-whatsapp {
  width: 100%;
  background: var(--color-success);
  color: white;
  border: none;
  padding: 16px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
  transition: var(--transition-fast);
}
.btn-finalize-whatsapp:hover {
  background: #1cb052;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .store-info-row {
    margin-top: -30px;
  }
  .store-logo-container {
    width: 76px;
    height: 76px;
  }
  .store-title-badge h2 {
    font-size: 22px;
  }
}

@media (max-width: 767px) {
  .promo-items-grid {
    grid-template-columns: 1fr;
  }
  
  .product-modal-container {
    height: 100%;
    border-radius: 0;
    max-width: 100%;
  }

  .cart-drawer-container {
    max-width: 100%;
  }
}

/* Estilos para o banner de loja fechada inteligente */
.store-alert-banner {
  background: #fef2f2;
  border-left: 4px solid #ef4444;
  color: #991b1b;
  padding: 12px 16px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  border-radius: 8px;
  font-weight: 500;
}
.store-alert-banner i {
  font-size: 16px;
  color: #ef4444;
}

/* Badge de status fechado */
.status-closed-badge {
  background: #fef2f2;
  color: #ef4444;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.status-closed-badge i {
  font-size: 8px;
}

/* Status do frete por CEP */
.delivery-status-note {
  font-size: 12px;
  color: var(--text-dark);
  margin-top: -6px;
  margin-bottom: 12px;
  line-height: 1.4;
  background: var(--bg-body);
  padding: 10px;
  border-radius: 6px;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Botão de sacola do cabeçalho */
.btn-header-cart {
  position: relative;
  background: var(--color-primary-light);
  border: 1px solid var(--border-light);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  color: var(--color-primary);
  font-size: 20px;
  transition: var(--transition-fast);
  align-self: center;
  margin-left: auto;
}
.btn-header-cart:hover {
  transform: scale(1.05);
  background: var(--color-primary);
  color: white;
}
.header-cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--color-success);
  color: white;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-card);
}

/* Estado vazio da sacola */
.empty-cart-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}
.empty-cart-state i {
  font-size: 40px;
  color: var(--border-light);
  margin-bottom: 16px;
}
.empty-cart-state p {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}
.empty-cart-state span {
  font-size: 13px;
}

@media (max-width: 767px) {
  .btn-header-cart {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }
}

/* --- TEMA ESCURO PREMIUM (DARK THEME) --- */
body.dark-theme {
  background-color: #0f172a !important;
  background: #0f172a !important;
  color: #f1f5f9 !important;
}
body.dark-theme .top-header,
body.dark-theme .navbar-bottom,
body.dark-theme .category-bar,
body.dark-theme .menu-item-card,
body.dark-theme .product-modal-container,
body.dark-theme .cart-drawer-container,
body.dark-theme .about-modal-container,
body.dark-theme .order-details-card,
body.dark-theme .drawer-header,
body.dark-theme .drawer-footer-sticky {
  background-color: #1e293b !important;
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #f1f5f9 !important;
}
body.dark-theme .category-btn {
  background-color: #334155 !important;
  color: #cbd5e1 !important;
}
body.dark-theme .category-btn.active {
  background-color: var(--color-primary) !important;
  color: #ffffff !important;
}
body.dark-theme h1,
body.dark-theme h2,
body.dark-theme h3,
body.dark-theme h4,
body.dark-theme h5,
body.dark-theme .item-price,
body.dark-theme .item-description {
  color: #f8fafc !important;
}
body.dark-theme input,
body.dark-theme select,
body.dark-theme textarea {
  background-color: #334155 !important;
  color: #ffffff !important;
  border-color: #475569 !important;
}
body.dark-theme .cart-item-row {
  border-bottom-color: #334155 !important;
}
body.dark-theme .btn-add-item-plus {
  background-color: var(--color-primary) !important;
  color: white !important;
}
body.dark-theme .total-summary-section {
  background-color: #1e293b !important;
  border-color: #334155 !important;
  color: #ffffff !important;
}
body.dark-theme .mode-btn-inner {
  border-color: #334155 !important;
  background-color: #334155 !important;
}

/* Custom Client Layout Toggles */
body.hide-product-descriptions .item-description {
  display: none !important;
}

body.hide-product-images .item-card-photo-wrapper {
  display: none !important;
}
body.hide-product-images .menu-item-card {
  grid-template-columns: 1fr auto !important; /* Ajustar colunas se fotos estiverem ocultas */
}

/* Grid de catálogo de 2 colunas */
.grid-2-columns {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
}
.grid-2-columns .menu-item-card {
  flex-direction: column-reverse !important;
  display: flex !important;
  height: auto !important;
  padding: 10px !important;
  align-items: stretch !important;
  gap: 8px !important;
}
.grid-2-columns .item-card-photo-wrapper {
  width: 100% !important;
  height: 120px !important;
  margin-top: 0px !important;
}
.grid-2-columns .item-card-photo {
  border-radius: 6px !important;
}
.grid-2-columns .item-card-content {
  padding-right: 0 !important;
}
@media (max-width: 575px) {
  .grid-2-columns {
    grid-template-columns: 1fr 1fr !important;
  }
}

