:root {
  --bg: #fbfbfb;
  --card: #ffffff;
  --muted: #666;
  --accent: #2e8b57;
  --accent-2: #3aa76b;
  --accent-hover: #246b47;
  --border: #e6e6e6;
  --radius: 12px;
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-hover: 0 4px 16px rgba(0,0,0,0.15);
  --transition: all 0.3s ease;
  --stock-available: #2e8b57;
  --stock-low: #ffc107;
  --stock-out: #dc3545;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: #222;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Header */
.site-header {
  padding: 2%;
  text-align: center;
  background: linear-gradient(180deg, #fff, #f7fff8);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.home-link {
  display: inline-block;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.home-link:hover {
  transform: scale(1.05);
}

.site-logo {
  height: 40px;
  max-width: 200px;
  object-fit: contain;
}

.cart-indicator-btn {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 8px;
  line-height: 1.2;
}

.cart-indicator-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

/* App Container & Steps */
.app-container {
  position: relative;
  min-height: calc(100dvh - 140px);
  max-width: 650px;
  margin: 0 auto;
}

.step {
  display: none;
}

.step.active {
  display: flex;
  flex-direction: column;
}

.step-container {
  flex: 1;
  padding: 0 0 20px 0;
}

.step.active .step-container {
  animation: slideInRight 0.4s ease-out;
}

/* Step Header */
.step-header {
  text-align: center;
  margin-bottom: 20px;
}

.step-header h2 {
  margin: 0 0 10px 0;
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 700;
}

.step-indicator {
  background: var(--accent);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 10px;
}

.selected-base {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 5px;
}

.success-message {
  color: var(--accent);
  font-weight: 600;
  margin-top: 10px;
}

/* Base Selection Cards */
.base-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.base-card {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.base-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}

.base-card.selected {
  border-color: var(--accent);
  background: #f0f8f0;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.base-image {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 5px;
  border: 1px solid var(--border);
}

.base-card-title {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  gap: 1rem;
}

.base-card h3 {
  margin: 0;
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 700;
}

.base-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0;
}

.base-desc {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

/* Option Cards (Protein/Sauce) */
.protein-options,
.sauce-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 30px;
}

/* Mobile: protein single column, sauce options single column */
@media (max-width: 768px) {
  .protein-options {
    grid-template-columns: 1fr;
  }
  
  .sauce-options {
    grid-template-columns: 1fr;
  }
}

.option-card {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
  min-height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.option-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}

.option-card.selected {
  border-color: var(--accent);
  background: #f0f8f0;
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}

.option-content h3 {
  margin: 0 0 5px 0;
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 600;
}

.option-content p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Add-ons Section */
.addon-sections {
  margin-bottom: 20px;
}

.addon-section {
  margin-bottom: 25px;
}

.addon-section h3 {
  margin: 0 0 15px 0;
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 600;
}

.addon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.addon-item {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 14px;
  transition: var(--transition);
  min-height: 52px;
  font-size: 0.9rem;
}

.addon-item-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.addon-item:hover {
  border-color: var(--accent);
  background: #f8f9fa;
}

.addon-item.has-quantity {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.addon-name {
  font-weight: 500;
  flex: 1;
  min-width: 0;
}

.addon-price {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(46, 139, 87, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.addon-item.has-quantity .addon-price {
  color: white;
  background: rgba(255, 255, 255, 0.2);
}

/* Quantity Controls for Add-ons */
.addon-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 6px;
  padding: 4px;
}

.addon-item.has-quantity .addon-qty {
  background: rgba(255, 255, 255, 0.95);
}

.qty-btn {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: white;
  color: var(--accent);
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  /* Prevent mobile double-tap issues */
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

.qty-btn:hover {
  background: var(--accent);
  color: white;
  transform: scale(1.05);
}

.qty-btn:active {
  transform: scale(0.95);
}

.qty-display {
  min-width: 24px;
  text-align: center;
  font-weight: 700;
  color: var(--accent);
  font-size: 14px;
}

.included-note {
  background: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
  margin-top: 20px;
  text-align: center;
}

.included-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Review Item */
.review-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border);
}

.review-header h3 {
  margin: 0;
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 700;
}

.review-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
}

.review-section {
  margin-bottom: 12px;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Menu Hub */
.cart-preview {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  margin-bottom: 30px;
  box-shadow: var(--shadow);
}

.cart-count {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
}

.hub-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

/* Cart & Checkout */
.add-more-btn {
  background: none;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.add-more-btn:hover {
  background: var(--accent);
  color: white;
}

.cart-items {
  margin-top: 20px;
  margin-bottom: 20px;
}

.cart-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  position: relative;
  box-shadow: var(--shadow);
}

.cart-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
  padding-top: 25px;
}

.cart-item-name {
  font-weight: 700;
  color: var(--accent);
  font-size: 0.9rem;
}

.cart-item-price {
  font-weight: 700;
  color: var(--accent);
  font-size: 0.9rem;
}

.cart-item-details {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.remove-item {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  color: #ff4757;
  border: none;
  width: 24px;
  height: 24px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.edit-item {
  position: absolute;
  top: 8px;
  right: 44px;
  background: none;
  color: var(--accent);
  border: none;
  width: 24px;
  height: 24px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-total {
  background: var(--card);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 15px;
  text-align: center;
  margin-bottom: 25px;
  box-shadow: var(--shadow);
}

.total-line {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
}

/* Customer Section */
.customer-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: var(--shadow);
}

.customer-section h3 {
  margin: 0 0 20px 0;
  color: var(--accent);
  font-size: 1.2rem;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 0.8rem;
  transition: var(--transition);
  background: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(46,139,87,0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.delivery-info {
  margin-top: 8px;
  padding: 8px 12px;
  background: #f0f8ff;
  border-radius: 4px;
}

.delivery-info small {
  color: #2c5282;
  line-height: 1.4;
}

.payment-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 8px;
}

.payment-option {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  background: white;
  min-height: 40px;
}

.payment-option:hover {
  border-color: var(--accent-2);
  background: #f7fff8;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.payment-option.selected {
  border-color: var(--accent);
  background: #f7fff8;
  box-shadow: 0 0 0 3px rgba(46,139,87,0.1);
}

.payment-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  line-height: 1.2;
}

.payment-option.selected .payment-text {
  color: var(--accent);
}

.payment-text small {
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 400;
}

/* Cash amount field styling */
.form-hint {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 4px;
  display: block;
}

@media (max-width: 480px) {
  .payment-options {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.order-info {
  background: #f0f8ff;
  border: 2px solid #ff6b35;
  border-radius: 8px;
  padding: 16px;
  margin-top: 15px;
  text-align: center;
  animation: pulseAttention 1s infinite;
}

.order-info h4 {
  margin: 0 0 8px 0;
  color: #ff6b35;
  font-size: 0.8rem;
  font-weight: 600;
}

.order-info p {
  margin: 0;
  color: #495057;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Action Buttons */
.step-actions {
  margin-top: 0px !important;
}

.action-group {
  display: none; /* Hidden by default */
  gap: 12px;
  padding: 0;
}

.action-group.active {
  display: flex;
}

/* Style action buttons like cards */
.action-card {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 2%;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
  text-align: center;
  font-size: 0.8rem;
}


.action-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}

.action-card.primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  flex: 1; /* Next button takes remaining 80% width */
}

.action-card.primary:hover {
  background: var(--accent-hover);
}

.action-card.secondary {
  background: var(--card);
  color: var(--accent);
  border-color: var(--accent);
  flex: 0 0 20%; /* Back button takes 20% width */
}

.action-card.secondary:hover {
  background: var(--accent);
  color: white;
}

.action-card.disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}

.checkout-actions {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 16px 20px;
  margin-top: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  justify-content: center;
}

.back-btn {
  flex: 0 0 auto;
  padding: 14px 20px;
  background: none;
  border: 2px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  min-height: 52px;
}

.back-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.next-btn,
.add-btn,
.primary-btn,
.secondary-btn,
.send-order-btn {
  flex: 1;
  padding: 4%;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.next-btn,
.add-btn,
.primary-btn,
.send-order-btn {
  background: var(--accent);
  color: white;
}

.next-btn:hover,
.add-btn:hover,
.primary-btn:hover,
.send-order-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(46,139,87,0.3);
}

.next-btn:disabled,
.add-btn:disabled,
.send-order-btn:disabled {
  background: #ccc;
  color: #999;
  cursor: not-allowed;
  box-shadow: none;
}

.secondary-btn {
  background: var(--card);
  border: 2px solid var(--accent);
  color: var(--accent);
}

.secondary-btn:hover {
  background: var(--accent);
  color: white;
}

.btn-icon {
  font-size: 1.2rem;
}

/* Toast Notifications */
.toast {
  position: fixed;
  left: 50%;
  bottom: 100px;
  transform: translateX(-50%);
  background: #111;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  opacity: 0;
  transition: var(--transition);
  z-index: 1000;
  max-width: 90%;
  text-align: center;
  font-weight: 500;
}

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

/* Loading States */
.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn-loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
  border: 2px solid transparent;
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 1s ease infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Animations */
.fade-in {
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from { 
    opacity: 0; 
    transform: translateY(20px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

.slide-in-right {
  animation: slideInRight 0.4s ease-out;
}

@keyframes slideInRight {
  from { 
    opacity: 0; 
    transform: translateX(30px); 
  }
  to { 
    opacity: 1; 
    transform: translateX(0); 
  }
}

.slide-in-left {
  animation: slideInLeft 0.4s ease-out;
}

@keyframes slideInLeft {
  from { 
    opacity: 0; 
    transform: translateX(-30px); 
  }
  to { 
    opacity: 1; 
    transform: translateX(0); 
  }
}

/* Desktop Adjustments */
@media(min-width: 768px) {
  .app-container {
    max-width: 750px;
    padding: 20px 20px;
  }
  
  .base-options {
    grid-template-columns: 1fr 1fr;
  }
  
  .addon-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hub-actions {
    grid-template-columns: 1fr 1fr;
  }
  
  
  .checkout-actions {
    border-radius: var(--radius);
  }
}

/* Mobile Optimizations */
@media(max-width: 767px) {
  
  .base-options {
    margin-bottom: 20px; /* Normal spacing */
  }
  
  .protein-options,
  .sauce-options {
    margin-bottom: 20px; /* Normal spacing */
  }
  
  .step-actions {
    margin-top: 20px;
    margin-bottom: 20px;
  }
  
}

/* Small Mobile Optimizations */
@media(max-width: 480px) {
  .step-container {
    padding: 16px 16px 0 16px;
  }
  
  .base-image {
    width: 100px;
    height: 100px;
  }
  
  .base-options {
    margin-bottom: 20px; /* Normal spacing */
  }
  
  .addon-grid {
    grid-template-columns: 1fr;
  }
  
  .addon-item {
    padding: 16px;
    min-height: 52px;
  }
  
  .action-card {
    padding: 3%;
    min-height: 32px;
  }
  
  .checkout-actions {
    padding: 12px 16px;
  }

  .step-header {
  text-align: center;
  margin: 0;
  }
}

/* Order Confirmation Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeInModal 0.3s ease-out;
}

.modal-content {
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  max-width: 90%;
  width: 400px;
  max-height: 82vh;
  overflow-y: auto;
  animation: slideInModal 0.3s ease-out;
}

.modal-header {
  padding: 15px;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 {
  margin: 0;
  color: var(--accent);
  font-size: 1.1rem;
  text-align: center;
}

.modal-body {
  padding: 15px;
}

.order-summary-preview {
  background: var(--bg);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  max-height: 174px;
  overflow-y: auto;
}

.confirmation-message p {
  margin: 0 0 8px 0;
  color: #333;
  line-height: 1.5;
}

.confirmation-message p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.modal-actions {
  padding: 16px 24px 24px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* Center modal actions on desktop */
@media (min-width: 768px) {
  .modal-actions {
    justify-content: center;
  }
}

.modal-actions button {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-size: 0.95rem;
}

.btn-secondary {
  background: #f5f5f5;
  color: #666;
}

.btn-secondary:hover {
  background: #e8e8e8;
  color: #333;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

@keyframes fadeInModal {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInModal {
  from { 
    opacity: 0; 
    transform: translateY(-20px) scale(0.95); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0) scale(1); 
  }
}

@keyframes pulseAttention {
  0% { 
    border-color: #ff6b35;
    box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.4);
  }
  50% { 
    border-color: #ff8c66;
    box-shadow: 0 0 0 6px rgba(255, 107, 53, 0.1);
  }
  100% { 
    border-color: #ff6b35;
    box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.4);
  }
}

/* Edit Item Modal */
.edit-item-form {
  padding: 0;
  min-height: min-content;
}

.edit-item-name {
  margin-bottom: 10px;
}

.edit-item-name h4 {
  margin: 0;
  color: var(--accent);
  font-size: 1rem;
  text-align: center;
}

.edit-form-group {
  margin-bottom: 10px;
}

.edit-form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--accent);
  font-size: 0.9rem;
}

.edit-select {
  width: 100%;
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.8rem;
  background: white;
  color: var(--text);
  position: relative;
  z-index: 1001;
  box-sizing: border-box;
  overflow: hidden;
  overflow-wrap: break-word;
}


/* Constrain dropdown options on mobile */
@media (max-width: 480px) {
  .modal-content {
    position: relative;
    overflow-y: auto;
    overflow-x: visible;
    z-index: 1000;
    max-height: 85vh;
  }
  
  .edit-form-group {
    position: relative;
    contain: layout style;
    overflow: visible;
  }
  
  .edit-select {
    width: 100%;
    max-width: 100%;
    contain: layout style;
  }
  
  .action-group {
  display: none; /* Hidden by default */
  gap: 12px;
  padding: 0% 4%;
  }
  /* Ensure modal stays above everything */
  #edit-item-modal {
    z-index: 9999 !important;
  }
  
  #edit-item-modal .modal-content {
    z-index: 10000 !important;
  }
  
  /* Force dropdown to respect container bounds */
  .edit-select option {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.edit-addons-list {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  overflow: hidden;
}

.edit-accordion-section {
  border-bottom: 1px solid var(--border);
}

.edit-accordion-section:last-child {
  border-bottom: none;
}

.edit-accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  line-height: 1;
  padding: 12px 16px;
  cursor: pointer;
  background: white;
  transition: background-color 0.2s ease;
}

.edit-accordion-header:hover {
  background: var(--bg);
}

.edit-accordion-indicators {
  display: flex;
  align-items: center;
  gap: 8px;
}

.edit-addon-counter {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: bold;
  min-width: 16px;
  text-align: center;
}

.edit-accordion-arrow {
  font-size: 0.8rem;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.edit-accordion-header.collapsed .edit-accordion-arrow {
  transform: rotate(-90deg);
}

.edit-accordion-content {
  padding: 0 16px 12px 16px;
  display: block;
  transition: all 0.2s ease;
  overflow: hidden;
}

.edit-accordion-content.collapsed {
  display: none;
}

.edit-addon-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.edit-addon-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.edit-addon-name {
  font-size: 0.8rem;
  color: var(--text);
  flex-grow: 1;
}

.edit-addon-price {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 12px;
}

.edit-qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.edit-qty-btn {
  width: 26px;
  height: 26px;
  border: 1px solid var(--border);
  background: white;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.edit-qty-btn:hover {
  background: var(--bg);
}

.edit-qty-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.edit-qty-display {
  min-width: 20px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
}

.edit-total {
  margin-top: 10px;
  padding-top: 10px;
  text-align: center;
  font-size: 1.1rem;
  color: #ff6b35;
}

/* Stock Indicator Styles */
.stock-indicator {
  display: block;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 auto 10px auto;
  text-align: center;
  width: fit-content;
}

.stock-indicator.available {
  background: var(--stock-available);
  color: white;
}

.stock-indicator.low-stock {
  background: var(--stock-low);
  color: #000;
}

.stock-indicator.out-of-stock {
  background: var(--stock-out);
  color: white;
}

.base-card {
  position: relative;
}

.option-card {
  position: relative;
}

.addon-item {
  position: relative;
}

/* Disabled state for out of stock items */
.base-card.out-of-stock,
.option-card.out-of-stock,
.addon-item.out-of-stock {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.base-card.out-of-stock .base-image,
.option-card.out-of-stock {
  filter: grayscale(100%);
}

/* Mobile stock indicators */
@media (max-width: 768px) {
  .stock-indicator {
    font-size: 0.5rem;
    padding: 3px 10px;
    margin-bottom: 8px;
    letter-spacing: 1px;
    border-radius: 6px;
  }
}

/* Mobile modal adjustments */
@media (max-width: 480px) {
  .modal-content {
    max-width: 95%;
    margin: 20px;
  }
  
  .modal-actions {
    flex-direction: column;
  }
  
  .modal-actions button {
    width: 100%;
  }
}