/* Default theme — mobile-first card grid */
* { box-sizing: border-box; }
body { margin: 0; background: #f9fafb; min-height: 100vh; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; }

.order-header {
  background: white; border-bottom: 1px solid #e5e7eb;
  padding: 1rem 1.25rem; text-align: center;
  position: sticky; top: 0; z-index: 10;
}
.order-header h1 { font-size: 1.1rem; font-weight: 700; margin: 0; }
.order-header p { font-size: 0.8rem; color: #6b7280; margin: 0.25rem 0 0; }
.order-body { max-width: 640px; margin: 0 auto; padding: 1rem; }

.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem; margin-bottom: 1.5rem;
}
.p-card {
  background: white; border-radius: 0.5rem; overflow: hidden;
  border: 1px solid #e5e7eb; cursor: pointer; transition: box-shadow 0.15s;
}
.p-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.p-card img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.p-card .no-img {
  width: 100%; aspect-ratio: 1; background: #f3f4f6;
  display: flex; align-items: center; justify-content: center; color: #d1d5db;
}
.p-card .no-img svg { width: 40%; height: 40%; }
.p-card-info { padding: 0.5rem 0.6rem; }
.p-card-name {
  font-size: 0.8rem; font-weight: 600; margin: 0 0 0.2rem; line-height: 1.2;
  overflow: hidden; text-overflow: ellipsis; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.p-card-price { font-size: 0.85rem; font-weight: 700; color: var(--primary); margin: 0; }
.p-card-desc { font-size: 0.72rem; color: #9ca3af; margin: 0.1rem 0 0; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

.cat-tab {
  white-space: nowrap; padding: 0.35rem 0.75rem;
  border: 1px solid #d1d5db; border-radius: 9999px;
  background: white; color: #111827; font-size: 0.8rem; font-weight: 600; cursor: pointer;
}
.cat-tab.active { background: var(--primary); color: white; border-color: var(--primary); }

.cart-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--primary); color: white;
  padding: 0.85rem 1.25rem; cursor: pointer;
  display: none; z-index: 20; text-align: center;
  font-weight: 700; font-size: 1rem;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
}
.cart-bar.visible { display: block; }

.cart-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 30;
}
.cart-overlay.open { display: flex; align-items: center; justify-content: center; }
.cart-sheet {
  background: white; width: 100%; max-width: 520px; margin: 1rem;
  border-radius: 1rem; max-height: 90vh; overflow-y: auto;
  padding: 1.5rem; box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
@media (max-width: 640px) {
  .cart-sheet { margin: 0.5rem; max-height: 92vh; }
}

.loc-card {
  display: block; padding: 1rem; border: 2px solid #e5e7eb; border-radius: 0.5rem;
  text-decoration: none; color: #111827; font-weight: 600; font-size: 0.95rem;
  transition: border-color 0.15s; text-align: center;
}
.loc-card:hover { border-color: var(--primary); }
.loc-card small { display: block; color: #6b7280; font-weight: 400; font-size: 0.8rem; margin-top: 0.25rem; }

.form-input, .form-select, .form-textarea {
  width: 100%; padding: 0.65rem 0.75rem; border: 1px solid #d1d5db;
  border-radius: 0.375rem; font-size: 0.9rem; outline: none;
  font-family: inherit;
}
.form-input:focus, .form-select:focus { border-color: var(--primary); }

.header-cart-btn { background: var(--primary); }
