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

body {
  font-family: 'Open Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f8f8;
  color: #333;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.top-bar {
  background-color: #f9f9f9;
  color: #555;
  padding: 8px 20px;
  font-size: 0.85rem;
  border-bottom: 1px solid #ddd;
}

.top-bar-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
  flex: 1;
}

.error-message {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-weight: 500;
}

header {
  background: #f5f5f5;
  color: #222;
  padding: 30px 20px;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

header h1 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.8rem;
  margin-bottom: 5px;
  letter-spacing: 0;
  color: #000;
}

header p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 15px;
}

.header-nav {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
}

.nav-link {
  color: #0000EE;
  text-decoration: underline;
  padding: 10px 15px;
  font-weight: normal;
}

.nav-link:hover,
.nav-link.active {
  color: #0000CC;
}

.page-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.8rem;
  color: #333;
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 3px solid #8B0000;
  display: inline-block;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.menu-item {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.menu-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.menu-item h3 {
  font-size: 1.3rem;
  color: #333;
  font-weight: 700;
}

.menu-item .price {
  font-size: 1.4rem;
  color: #8B0000;
  font-weight: 700;
}

.menu-item .price span {
  font-size: 0.9rem;
  font-weight: 400;
  color: #666;
}

.item-desc {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 15px;
  flex: 1;
}

.btn-add {
  background: linear-gradient(135deg, #8B0000 0%, #a52a2a 100%);
  color: white;
  border: none;
  padding: 14px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s;
  width: 100%;
}

.btn-add:hover {
  background: linear-gradient(135deg, #a52a2a 0%, #8B0000 100%);
  transform: translateY(-1px);
}

.cart-link {
  display: inline-block;
  margin-top: 10px;
  color: #0000EE;
  text-decoration: underline;
  padding: 8px 16px;
}

.cart-link:hover {
  color: #0000CC;
}

.add-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.form-row {
  display: flex;
  gap: 10px;
}

.input-field {
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: border-color 0.2s;
  flex: 1;
}

.input-small {
  max-width: 80px;
  flex: 0 0 80px;
}

.input-field:focus {
  outline: none;
  border-color: #8B0000;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.cart-item {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-item-info h3 {
  color: #333;
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.cart-item-info p {
  margin: 4px 0;
  color: #666;
}

.btn-remove {
  background-color: #dc3545;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background-color 0.2s;
}

.btn-remove:hover {
  background-color: #c82333;
}

.cart-total {
  margin-top: 25px;
  padding: 25px;
  background: white;
  border-radius: 12px;
  text-align: right;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.cart-total h2 {
  color: #8B0000;
  font-size: 1.5rem;
}

.empty-cart {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.empty-cart h2 {
  color: #333;
  margin-bottom: 10px;
}

.empty-cart p {
  color: #666;
  margin-bottom: 20px;
}

.checkout-summary {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  margin-bottom: 25px;
}

.checkout-summary h2 {
  color: #333;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #eee;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
}

.summary-total {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 3px solid #8B0000;
  text-align: right;
  font-size: 1.3rem;
}

.checkout-form {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.checkout-form h2 {
  color: #333;
  margin-bottom: 20px;
}

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

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

.textarea {
  min-height: 100px;
  resize: vertical;
}

.btn-checkout {
  background: linear-gradient(135deg, #228B22 0%, #1e7b1e 100%);
  color: white;
  border: none;
  padding: 16px 30px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  width: 100%;
  transition: all 0.3s;
}

.btn-checkout:hover {
  background: linear-gradient(135deg, #1e7b1e 0%, #228B22 100%);
  transform: translateY(-1px);
}

.confirmation-box {
  background: white;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.confirmation-box h2 {
  color: #228B22;
  margin-bottom: 10px;
  font-size: 1.8rem;
}

.order-number {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 10px;
}

.order-status {
  margin-top: 10px;
  font-size: 1.1rem;
}

.status-badge {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 25px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.status-new {
  background-color: #ffc107;
  color: #333;
}

.status-in-progress {
  background-color: #fd7e14;
  color: white;
}

.status-ready {
  background-color: #28a745;
  color: white;
}

.status-collected,
.status-completed {
  background-color: #6c757d;
  color: white;
}

.confirmation-details,
.pickup-info {
  text-align: left;
  margin: 20px 0;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
}

.confirmation-details h3,
.pickup-info h3 {
  color: #333;
  margin-bottom: 15px;
}

.pickup-info p {
  margin: 8px 0;
}

.btn-proceed {
  display: inline-block;
  background: linear-gradient(135deg, #228B22 0%, #1e7b1e 100%);
  color: white;
  text-decoration: none;
  padding: 14px 30px;
  border-radius: 8px;
  margin-top: 15px;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-proceed:hover {
  background: linear-gradient(135deg, #1e7b1e 0%, #228B22 100%);
  transform: translateY(-1px);
}

.dashboard-header {
  background: #f5f5f5;
  color: #222;
  padding: 30px 20px;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 15px;
  margin-bottom: 30px;
}

.stat-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.stat-card h3 {
  font-size: 2.2rem;
  color: #8B0000;
  margin-bottom: 5px;
}

.stat-card p {
  color: #666;
  margin: 0;
  font-weight: 600;
}

.section-title {
  color: #333;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid #8B0000;
  display: inline-block;
}

.orders-table {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.orders-table table {
  width: 100%;
  border-collapse: collapse;
}

.orders-table th,
.orders-table td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.orders-table th {
  background-color: #f8f9fa;
  font-weight: 600;
  color: #333;
}

.orders-table tr:hover {
  background-color: #fafafa;
}

.btn-view {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: white;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-view:hover {
  transform: translateY(-1px);
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.empty-state h3 {
  color: #666;
  margin-bottom: 10px;
}

.order-detail-card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid #eee;
  flex-wrap: wrap;
  gap: 15px;
}

.order-header h2 {
  color: #333;
  margin: 0;
}

.order-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 25px;
}

.info-item {
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
}

.info-item strong {
  display: block;
  color: #666;
  font-size: 0.85rem;
  margin-bottom: 5px;
}

.info-item.full-width {
  grid-column: 1 / -1;
}

.items-list {
  margin: 20px 0;
}

.detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #eee;
}

.item-info strong {
  display: block;
  color: #333;
}

.item-info span {
  color: #666;
  font-size: 0.9rem;
}

.item-price {
  font-weight: bold;
  color: #8B0000;
  font-size: 1.1rem;
}

.order-total {
  text-align: right;
  font-size: 1.4rem;
  padding: 20px 0;
  border-top: 3px solid #8B0000;
  margin-top: 15px;
}

.order-actions {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 2px solid #eee;
}

.order-actions h3 {
  margin-bottom: 15px;
  color: #333;
}

.status-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-status {
  padding: 14px 28px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.2s;
}

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

.btn-in-progress {
  background: linear-gradient(135deg, #fd7e14 0%, #e96b02 100%);
  color: white;
}

.btn-in-progress:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn-ready {
  background: linear-gradient(135deg, #28a745 0%, #218838 100%);
  color: white;
}

.btn-ready:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn-collected {
  background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
  color: white;
}

.btn-collected:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn-print {
  display: inline-block;
  padding: 14px 28px;
  background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-print:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
}

.btn-checklist {
  background: linear-gradient(135deg, #6f42c1 0%, #5a32a3 100%);
  margin-left: 10px;
}

.btn-checklist:hover {
  box-shadow: 0 4px 12px rgba(111, 66, 193, 0.3);
}

.status-form {
  display: flex;
  gap: 10px;
  align-items: center;
}

.status-select {
  flex: 1;
  max-width: 200px;
}

.btn-update {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: background-color 0.2s;
}

.btn-update:hover {
  background-color: #218838;
}

footer {
  background-color: #f9f9f9;
  color: #555;
  padding: 40px 20px 20px;
  margin-top: auto;
  border-top: 1px solid #ddd;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-section h4 {
  color: #222;
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.footer-section p {
  margin: 5px 0;
  font-size: 0.9rem;
  color: #555;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #ddd;
  font-size: 0.85rem;
  color: #666;
}

@media (max-width: 768px) {
  .top-bar-content {
    justify-content: center;
    text-align: center;
  }
  
  header h1 {
    font-size: 2rem;
  }
  
  .header-nav {
    flex-wrap: wrap;
  }
  
  .nav-link {
    padding: 8px 20px;
    font-size: 0.9rem;
  }
  
  .menu-grid {
    grid-template-columns: 1fr;
  }
  
  .cart-item {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .order-header {
    flex-direction: column;
    text-align: center;
  }
  
  .status-buttons {
    justify-content: center;
  }
  
  .orders-table {
    overflow-x: auto;
  }
  
  .orders-table table {
    min-width: 600px;
  }
  
  .form-row {
    flex-direction: column;
  }
  
  .input-small {
    max-width: 100%;
    flex: 1;
  }
  
  .footer-content {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 15px;
  }
  
  header {
    padding: 20px 15px;
  }
  
  header h1 {
    font-size: 1.7rem;
  }
  
  .menu-item {
    padding: 20px;
  }
  
  .dashboard-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stat-card h3 {
    font-size: 1.8rem;
  }
}

.stores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
}

.store-card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.store-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.store-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.store-card h3 {
  font-size: 1.3rem;
  color: #333;
  margin-bottom: 10px;
  font-weight: 700;
}

.store-address {
  color: #666;
  margin: 3px 0;
}

.store-city {
  color: #666;
  margin: 3px 0;
}

.store-phone {
  color: #8B0000;
  font-weight: 600;
  margin: 10px 0;
}

.store-cta {
  margin-top: 15px;
  background: linear-gradient(135deg, #8B0000 0%, #a52a2a 100%);
  color: white;
  padding: 12px 30px;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s;
}

.store-card:hover .store-cta {
  background: linear-gradient(135deg, #a52a2a 0%, #8B0000 100%);
}

@media (max-width: 768px) {
  .stores-grid {
    grid-template-columns: 1fr;
  }
}

/* Simple Craigslist-style homepage */
body.simple-page {
  font-family: Arial, Helvetica, sans-serif;
  background-color: white;
  color: #222;
  line-height: 1.6;
  display: block;
  margin: 0;
  padding: 0;
}

.simple-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.simple-header {
  margin-bottom: 16px;
}

.simple-header h1 {
  font-size: 1.6rem;
  font-weight: bold;
  color: #000;
  margin: 0 0 8px 0;
}

.simple-header p {
  font-size: 0.95rem;
  color: #444;
  margin: 0;
}

.simple-container hr {
  border: none;
  border-top: 1px solid #aaa;
  margin: 20px 0;
}

.stores-section {
  margin: 24px 0;
}

.stores-section h2 {
  font-size: 1.1rem;
  font-weight: bold;
  color: #000;
  margin: 0 0 16px 0;
}

.store-listing {
  margin-bottom: 20px;
}

.store-listing p {
  margin: 4px 0;
  font-size: 0.95rem;
  color: #333;
}

.store-listing .store-name {
  font-size: 1rem;
  color: #000;
}

.store-listing .store-address,
.store-listing .store-phone {
  color: #555;
}

.store-listing a {
  color: #0000EE;
  text-decoration: underline;
}

.store-listing a:visited {
  color: #551A8B;
}

.store-listing a:hover {
  color: #0000CC;
}

hr.store-divider {
  border: none;
  border-top: 1px solid #ddd;
  margin: 24px 0;
}

.simple-footer {
  display: flex;
  gap: 40px;
  padding-top: 8px;
  flex-wrap: wrap;
  border-top: 1px solid #ccc;
  margin-top: 8px;
}

.footer-col {
  flex: 1;
  min-width: 180px;
  padding-top: 16px;
}

.footer-col h3 {
  font-size: 0.95rem;
  font-weight: bold;
  color: #000;
  margin: 0 0 8px 0;
}

.footer-col p {
  font-size: 0.85rem;
  color: #555;
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 600px) {
  .simple-container {
    padding: 16px;
  }
  
  .simple-header h1 {
    font-size: 1.4rem;
  }
  
  .simple-footer {
    flex-direction: column;
    gap: 16px;
  }
  
  .footer-col {
    min-width: 100%;
  }
}
