* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: #111827;
  background-color: #f9fafb;
  min-height: 100vh;
}
.btn {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border: none;
  border-radius: 0.375rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 150ms ease-in-out;
  text-decoration: none;
  text-align: center;
}
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.btn-primary {
  background: #2563eb;
  color: #ffffff;
}
.btn-primary:hover:not(:disabled) {
  background: #1e40af;
}
.btn-secondary {
  background: #e5e7eb;
  color: #374151;
}
.btn-secondary:hover:not(:disabled) {
  background: #d1d5db;
}
.btn-danger {
  background: #ef4444;
  color: #ffffff;
}
.btn-danger:hover:not(:disabled) {
  background: #eb1515;
}
.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}
.btn-block {
  width: 100%;
  display: block;
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}
.form-group small {
  display: block;
  color: #6b7280;
  font-size: 0.75rem;
  margin-top: 0.25rem;
}
.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="email"],
.form-group input[type="color"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.5rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 1rem;
  transition: border-color 150ms ease-in-out;
}
.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="number"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="color"]:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px #dbeafe;
}
.form-group input[type="checkbox"] {
  margin-right: 0.5rem;
}
.form-group textarea {
  resize: vertical;
  min-height: 100px;
}
.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1050;
  align-items: center;
  justify-content: center;
}
.modal.active {
  display: flex;
}
.modal-content {
  background: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #e5e7eb;
}
.modal-header h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
  margin: 0;
}
.modal-close {
  background: none;
  border: none;
  font-size: 1.875rem;
  color: #6b7280;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 150ms ease-in-out;
}
.modal-close:hover {
  color: #111827;
}
.modal-form {
  padding: 2rem;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  table-layout: fixed;
}
.data-table thead {
  background: #f9fafb;
  border-bottom: 2px solid #e5e7eb;
}
.data-table thead th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: #374151;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.data-table tbody tr {
  border-bottom: 1px solid #e5e7eb;
  transition: background 150ms ease-in-out;
}
.data-table tbody tr:hover {
  background: #f9fafb;
}
.data-table tbody td {
  padding: 0.5rem 1rem;
  color: #111827;
  font-size: 0.875rem;
  vertical-align: middle;
}
.data-table .table-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  white-space: nowrap;
}
.inline-input {
  padding: 0.25rem 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  background: #ffffff;
  width: 100%;
  box-sizing: border-box;
}
.inline-input:focus {
  outline: none;
  border-color: #2563eb;
}
.inline-price {
  width: 100px;
}
.inline-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  white-space: nowrap;
}
.inline-toggle input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.inline-toggle .toggle-label {
  font-size: 0.875rem;
  user-select: none;
}
.product-image-cell-td {
  width: 70px;
  min-width: 70px;
}
.product-image-cell {
  width: 50px;
  height: 50px;
  overflow: hidden;
  border-radius: 0.25rem;
}
.product-image-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-image-cell-placeholder {
  width: 50px;
  height: 50px;
  background: #f3f4f6;
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #9ca3af;
  text-align: center;
}
.badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #ffffff;
}
.status-active {
  color: #10b981;
  font-weight: 600;
}
.status-inactive {
  color: #9ca3af;
}
.drag-handle-header {
  width: 40px;
}
.drag-handle-cell {
  width: 40px;
  text-align: center;
}
.drag-handle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  cursor: grab;
  color: #9ca3af;
  font-size: 1.25rem;
  border-radius: 0.25rem;
  transition: all 150ms ease-in-out;
  user-select: none;
}
.drag-handle:hover {
  color: #4b5563;
  background: #f3f4f6;
}
.drag-handle:active {
  cursor: grabbing;
}
.drag-handle-disabled {
  cursor: not-allowed;
  opacity: 0.3;
}
.drag-handle-disabled:hover {
  color: #9ca3af;
  background: transparent;
}
.sortable-ghost {
  background: #dbeafe !important;
  opacity: 0.8;
}
.sortable-chosen {
  background: #eaf3fe;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.sortable-drag {
  background: #ffffff;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
}
.login-box {
  background: #ffffff;
  padding: 3rem;
  border-radius: 0.5rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  width: 100%;
  max-width: 400px;
}
.login-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
  text-align: center;
}
.login-subtitle {
  font-size: 1.125rem;
  color: #4b5563;
  margin-bottom: 2rem;
  text-align: center;
  font-weight: 400;
}
.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.alert {
  padding: 1rem;
  border-radius: 0.375rem;
  margin-bottom: 1.5rem;
}
.alert.alert-error {
  background: #fee2e2;
  color: #ef4444;
  border: 1px solid #ef4444;
}
.admin-body {
  background: #f3f4f6;
}
.admin-layout {
  display: flex;
  min-height: 100vh;
}
.admin-sidebar {
  width: 250px;
  background: #111827;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
}
.sidebar-header {
  padding: 2rem 1.5rem;
  border-bottom: 1px solid #374151;
}
.sidebar-title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.sidebar-user {
  font-size: 0.875rem;
  color: #9ca3af;
}
.sidebar-nav {
  flex: 1;
  padding: 1.5rem 0;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  color: #d1d5db;
  text-decoration: none;
  transition: all 150ms ease-in-out;
}
.sidebar-link:hover {
  background: #1f2937;
  color: #ffffff;
}
.sidebar-link.active {
  background: #2563eb;
  color: #ffffff;
}
.sidebar-icon {
  font-size: 1.25rem;
}
.sidebar-footer {
  padding: 1.5rem 0;
  border-top: 1px solid #374151;
}
.admin-main {
  flex: 1;
  margin-left: 250px;
  display: flex;
  flex-direction: column;
}
.admin-header {
  background: #ffffff;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.page-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
}
.admin-content {
  padding: 2rem;
  flex: 1;
}
.admin-section {
  background: #ffffff;
  border-radius: 0.5rem;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.section-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111827;
}
.filters-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #f9fafb;
  border-radius: 0.375rem;
}
.filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.filter-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #4b5563;
}
.filter-group select {
  padding: 0.25rem 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  background: #ffffff;
  min-width: 150px;
}
.filter-group select:focus {
  outline: none;
  border-color: #2563eb;
}
.product-category-group {
  margin-bottom: 1.5rem;
}
.product-category-group:last-child {
  margin-bottom: 0;
}
.category-group-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 1rem;
  background: #f3f4f6;
  border-radius: 0.25rem 0.25rem 0 0;
  border: 1px solid #e5e7eb;
  border-bottom: none;
  cursor: pointer;
  user-select: none;
  transition: background 150ms ease-in-out;
}
.category-group-header:hover {
  background: #e5e7eb;
}
.fold-toggle {
  font-size: 0.75rem;
  color: #6b7280;
  width: 16px;
  text-align: center;
}
.product-category-group.folded .data-table,
.variation-category-group.folded .data-table,
.product-category-group.folded .variations-table,
.variation-category-group.folded .variations-table {
  display: none;
}
.product-category-group.folded .category-group-header,
.variation-category-group.folded .category-group-header {
  border-radius: 0.25rem;
  border-bottom: 1px solid #e5e7eb;
}
.category-product-count {
  font-size: 0.875rem;
  color: #6b7280;
}
.variation-category-group {
  margin-bottom: 1.5rem;
}
.variation-category-group:last-child {
  margin-bottom: 0;
}
.category-group-header-new {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
}
.frontend-body {
  background: #f9fafb;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-y: scroll;
}
.frontend-main {
  flex: 1;
}
.frontend-header {
  background: #ffffff;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #111827;
}
.header-logo img {
  height: 40px;
  width: auto;
  object-fit: contain;
}
.header-title {
  font-size: 1.125rem;
  font-weight: 700;
  display: none;
}
@media (min-width: 640px) {
  .header-title {
    display: block;
  }
}
.header-nav {
  display: flex;
  gap: 0.25rem;
}
.nav-link {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  text-decoration: none;
  color: #4b5563;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 150ms ease-in-out;
}
.nav-link:hover {
  background: #f3f4f6;
  color: #111827;
}
.nav-link.active {
  background: #2563eb;
  color: #ffffff;
}
.basket-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.basket-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: #ef4444;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.frontend-footer {
  background: #1f2937;
  color: #9ca3af;
  padding: 1.5rem 1rem;
  margin-top: auto;
}
.footer-container {
  max-width: 1440px;
  margin: 0 auto;
  text-align: center;
  font-size: 0.875rem;
}
.closed-alert {
  position: fixed;
  top: 57px;
  left: 0;
  right: 0;
  width: 100%;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0 1.5rem;
  background: #ef4444;
  color: #ffffff;
  font-weight: 600;
  text-align: center;
  z-index: 999;
}
.closed-alert svg {
  flex-shrink: 0;
}
.has-closed-alert.menu-container {
  padding-top: 52px;
}
.has-closed-alert .category-nav {
  top: 109px;
}
.home-container.has-closed-alert {
  padding-top: 53.5px;
}
.basket-container.has-closed-alert {
  padding-top: 53px;
}
.home-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}
.hero-section {
  text-align: center;
  padding: 2rem 0;
}
.hero-logo {
  margin-bottom: 1.5rem;
}
.hero-logo img {
  max-width: 100%;
  height: auto;
}
.logo-placeholder {
  width: 180px;
  height: 180px;
  margin: 0 auto;
  background: #e5e7eb;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #6b7280;
  font-weight: 500;
}
.hero-content {
  margin-bottom: 2rem;
}
.hero-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 1rem;
}
@media (min-width: 640px) {
  .hero-title {
    font-size: 1.875rem;
  }
}
.hero-description {
  font-size: 1rem;
  color: #4b5563;
  line-height: 1.75;
}
.cta-section {
  margin-bottom: 3rem;
}
.cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem 1.5rem;
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 150ms ease-in-out;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.cta-button:hover {
  background: #1e40af;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
.cta-button:active {
  transform: translateY(0);
}
.cta-icon {
  font-size: 1.25rem;
}
.order-section {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 2rem 1.5rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  text-align: center;
}
.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
}
.section-description {
  font-size: 0.875rem;
  color: #4b5563;
  margin-bottom: 1.5rem;
}
.qr-container {
  margin-bottom: 1.5rem;
}
.qr-placeholder {
  width: 200px;
  height: 200px;
  margin: 0 auto;
  background: #f3f4f6;
  border: 2px dashed #d1d5db;
  border-radius: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.qr-icon {
  color: #9ca3af;
}
.qr-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: #4b5563;
}
.qr-subtext {
  font-size: 0.75rem;
  color: #9ca3af;
}
.whatsapp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: #25d366;
  color: #ffffff;
  border: none;
  border-radius: 9999px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 150ms ease-in-out;
}
.whatsapp-button:hover {
  background: #1da851;
  transform: scale(1.02);
}
.whatsapp-button svg {
  flex-shrink: 0;
}
.menu-container {
  max-width: 1440px;
  margin: 0 auto;
  cursor: default;
}
.menu-header {
  text-align: center;
  padding: 1.5rem 1rem;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}
.menu-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.25rem;
}
.menu-subtitle {
  font-size: 0.875rem;
  color: #6b7280;
}
.category-nav {
  position: sticky;
  top: 57px;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  padding: 0.5rem 1rem;
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  z-index: 999;
}
.category-nav::-webkit-scrollbar {
  display: none;
}
.category-tab {
  flex-shrink: 0;
  padding: 0.5rem 1rem;
  background: #f3f4f6;
  border: none;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: all 150ms ease-in-out;
  white-space: nowrap;
}
.category-tab:hover {
  background: #e5e7eb;
}
.category-tab.active {
  background: #2563eb;
  color: #ffffff;
}
.menu-content {
  margin-top: 10px;
}
.menu-loading,
.menu-empty,
.menu-error {
  text-align: center;
  padding: 4rem 1rem;
  color: #6b7280;
}
.spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto 1rem;
  border: 3px solid #e5e7eb;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.menu-category {
  margin-bottom: 2rem;
}
.category-header {
  padding: 0.5rem 1rem;
  margin-bottom: 1rem;
  border-left: 4px solid var(--category-color, #2563eb);
  background: #ffffff;
  border-radius: 0 0.375rem 0.375rem 0;
}
.category-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(352px, 1fr));
  gap: 10px;
}
.product-card {
  padding: 10px;
  background: #ffffff;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: box-shadow 150ms ease-in-out, transform 150ms ease-in-out;
  position: relative;
}
.product-card:hover {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}
.product-image {
  width: 120px;
  height: 120px;
  overflow: hidden;
  background: #f3f4f6;
  border-radius: 0.375rem;
  float: left;
  margin-right: 10px;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-image-placeholder {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  color: #d1d5db;
  border-radius: 0.375rem;
}
.product-info {
  position: absolute;
  top: 10px;
  bottom: 60px;
  left: 140px;
  right: 10px;
  overflow: hidden;
}
.product-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.25rem;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-price {
  flex: 1;
  height: 40px;
  line-height: 38px;
  text-align: right;
  padding-right: 10px;
  font-size: 16px;
  background-color: #f3f4f6;
  font-weight: 700;
  color: #2563eb;
}
.product-actions {
  display: flex;
  height: 40px;
  justify-content: space-between;
  align-items: center;
  position: absolute;
  bottom: 10px;
  left: 140px;
  right: 10px;
}
.add-to-basket-btn {
  width: 60px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 150ms ease-in-out;
  margin-left: 5px;
}
.add-to-basket-btn:hover {
  background: #1e40af;
}
.add-to-basket-btn:active {
  transform: scale(0.98);
}
.edit-product-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1f2937;
  color: #f3f4f6;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 150ms ease-in-out;
  flex-shrink: 0;
  margin-left: 5px;
}
.edit-product-btn:hover {
  background: #4b5563;
}
.edit-product-btn:active {
  transform: scale(0.98);
}
@media (max-width: 728px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 10px 0;
  }
}
.basket-toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.5rem;
  background: #111827;
  color: #ffffff;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  z-index: 1050;
  opacity: 0;
  transition: all 0.3s ease;
}
.basket-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.basket-toast svg {
  color: #4ade80;
}
.basket-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 1rem;
  min-height: calc(100vh - 200px);
  display: flex;
  flex-direction: column;
}
.basket-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
}
.basket-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
}
.clear-basket-btn {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  background: #f3f4f6;
  border: none;
  border-radius: 0.375rem;
  color: #4b5563;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 150ms ease-in-out;
}
.clear-basket-btn:hover {
  background: #fee2e2;
  color: #ef4444;
}
.basket-content {
  flex: 1;
}
.basket-empty {
  text-align: center;
  padding: 4rem 1rem;
  color: #9ca3af;
}
.basket-empty svg {
  margin-bottom: 1.5rem;
}
.basket-empty p {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}
.browse-menu-btn {
  display: inline-block;
  padding: 0.5rem 2rem;
  background: #2563eb;
  color: #ffffff;
  text-decoration: none;
  border-radius: 9999px;
  font-weight: 600;
  transition: all 150ms ease-in-out;
}
.browse-menu-btn:hover {
  background: #1e40af;
}
.basket-items {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.basket-item {
  display: grid;
  grid-template-columns: 60px 1fr auto auto auto;
  gap: 0.5rem;
  align-items: center;
  padding: 1rem;
  background: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
@media (max-width: 640px) {
  .basket-item {
    grid-template-columns: 50px 1fr auto;
    grid-template-rows: auto auto;
  }
}
.basket-item-variations {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 4px;
}
.variation-badge {
  display: inline-block;
  padding: 2px 8px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 0.75rem;
  border-radius: 9999px;
}
.basket-item-image {
  width: 60px;
  height: 60px;
  border-radius: 0.375rem;
  background: #f3f4f6;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
}
@media (max-width: 640px) {
  .basket-item-image {
    width: 50px;
    height: 50px;
  }
}
.basket-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.basket-item-info {
  min-width: 0;
}
@media (max-width: 640px) {
  .basket-item-info {
    grid-column: 2;
  }
}
.basket-item-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.basket-item-price {
  font-size: 0.75rem;
  color: #6b7280;
}
.basket-item-quantity {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
@media (max-width: 640px) {
  .basket-item-quantity {
    grid-column: 1 / 2;
    grid-row: 2;
    justify-self: start;
  }
}
.qty-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  border: none;
  border-radius: 0.375rem;
  color: #374151;
  cursor: pointer;
  transition: all 150ms ease-in-out;
}
.qty-btn:hover {
  background: #e5e7eb;
}
.qty-value {
  min-width: 24px;
  text-align: center;
  font-weight: 600;
}
.basket-item-subtotal {
  font-size: 1rem;
  font-weight: 700;
  color: #2563eb;
  min-width: 70px;
  text-align: right;
}
@media (max-width: 640px) {
  .basket-item-subtotal {
    grid-column: 2;
    grid-row: 2;
    text-align: left;
  }
}
.basket-item-actions {
  display: flex;
  gap: 0.25rem;
}
@media (max-width: 640px) {
  .basket-item-actions {
    grid-column: 3;
    grid-row: 1 / 3;
    flex-direction: column;
  }
}
.basket-item-edit,
.basket-item-remove {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 0.375rem;
  color: #9ca3af;
  cursor: pointer;
  transition: all 150ms ease-in-out;
}
.basket-item-edit:hover {
  background: #f3f4f6;
  color: #2563eb;
}
.basket-item-remove:hover {
  background: #f3f4f6;
  color: #ef4444;
}
.basket-actions {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e5e7eb;
}
.basket-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: #ffffff;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}
.basket-total span:first-child {
  font-size: 1.125rem;
  font-weight: 500;
  color: #374151;
}
.basket-total span:last-child {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
}
.basket-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.order-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 150ms ease-in-out;
  cursor: pointer;
}
.order-btn svg {
  flex-shrink: 0;
}
.whatsapp-order-btn {
  background: #25d366;
  color: #ffffff;
}
.whatsapp-order-btn:hover {
  background: #1da851;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.line-order-btn {
  background: #00b900;
  color: #ffffff;
}
.line-order-btn:hover {
  background: #009900;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.order-btn.disabled {
  background: #d1d5db;
  color: #6b7280;
  cursor: not-allowed;
  pointer-events: none;
}
.order-btn.disabled:hover {
  transform: none;
  box-shadow: none;
}
.basket-closed-message {
  text-align: center;
  padding: 1rem;
  background: #fee2e2;
  color: #ef4444;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  font-weight: 500;
}
.location-image-cell {
  width: 60px;
  height: 60px;
  overflow: hidden;
  border-radius: 0.375rem;
  background: #f3f4f6;
}
.location-image-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.location-image-placeholder {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  border-radius: 0.375rem;
  color: #9ca3af;
  font-size: 0.75rem;
}
.product-image-cell {
  width: 60px;
  height: 60px;
  overflow: hidden;
  border-radius: 0.375rem;
  background: #f3f4f6;
}
.product-image-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-image-cell-placeholder {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  border-radius: 0.375rem;
  color: #9ca3af;
  font-size: 0.75rem;
}
.image-upload-container .form-hint {
  display: block;
  color: #6b7280;
  font-size: 0.75rem;
  margin-top: 0.5rem;
}
.image-preview {
  position: relative;
  width: 150px;
  height: 150px;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #f3f4f6;
}
.image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.image-preview .image-remove-btn {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
}
.locations-table th:first-child,
.locations-table td:first-child {
  width: 80px;
}
.location-picker-section {
  margin-bottom: 1.5rem;
}
.location-picker-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 1rem;
}
.location-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.location-option {
  flex: 0 0 auto;
  min-width: 120px;
  padding: 1rem;
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 150ms ease-in-out;
  text-align: center;
}
.location-option:hover {
  border-color: #60a5fa;
  background: #dbeafe;
}
.location-option.selected {
  border-color: #2563eb;
  background: #dbeafe;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}
.location-option-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.25rem;
}
.location-option-city {
  font-size: 0.75rem;
  color: #6b7280;
}
.location-option-price {
  font-size: 0.75rem;
  font-weight: 500;
  color: #2563eb;
  margin-top: 0.25rem;
}
.delivery-notes {
  margin-top: 1rem;
}
.delivery-notes-input {
  width: 100%;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.875rem;
  color: #111827;
  background: #ffffff;
  resize: vertical;
  min-height: 60px;
  transition: border-color 150ms ease-in-out, box-shadow 150ms ease-in-out;
}
.delivery-notes-input::placeholder {
  color: #9ca3af;
}
.delivery-notes-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.basket-summary {
  background: #ffffff;
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
}
.basket-subtotal,
.basket-delivery,
.basket-summary .basket-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f3f4f6;
  margin-bottom: 0;
  background: transparent;
  border-radius: 0;
}
.basket-subtotal span:first-child,
.basket-delivery span:first-child,
.basket-summary .basket-total span:first-child {
  font-size: 0.875rem;
  color: #4b5563;
}
.basket-subtotal span:last-child,
.basket-delivery span:last-child,
.basket-summary .basket-total span:last-child {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
}
.basket-summary .basket-total {
  border-bottom: none;
  padding-top: 0.5rem;
}
.basket-summary .basket-total span:first-child {
  font-weight: 600;
  color: #111827;
}
.basket-summary .basket-total span:last-child {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
}
.variations-table .variation-input {
  padding: 0.25rem 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  background: #ffffff;
  width: 100%;
  box-sizing: border-box;
}
.variations-table .variation-input:focus {
  outline: none;
  border-color: #2563eb;
}
.variations-table .variation-pos {
  width: 60px;
  text-align: center;
}
.variations-table .variation-label {
  min-width: 150px;
}
.variations-table .variation-price {
  width: 100px;
  text-align: right;
}
.variations-table .variation-category {
  min-width: 120px;
}
.variations-table .variation-toggle {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  white-space: nowrap;
}
.variations-table .variation-toggle input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.variations-table .variation-toggle .toggle-label {
  font-size: 0.875rem;
  user-select: none;
}
.variations-table .variation-toggle input:checked + .toggle-label {
  color: #10b981;
}
.variations-table td {
  vertical-align: middle;
}
.product-edit-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #f9fafb;
  z-index: 1050;
  display: none;
  flex-direction: column;
}
.product-edit-modal.active {
  display: flex;
}
.product-edit-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
}
.product-edit-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 60px);
}
.product-edit-close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  border: none;
  border-radius: 9999px;
  font-size: 1.5rem;
  color: #4b5563;
  cursor: pointer;
  transition: all 150ms ease-in-out;
  flex-shrink: 0;
}
.product-edit-close:hover {
  background: #e5e7eb;
  color: #111827;
}
.product-edit-content {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}
.product-edit-body {
  max-width: 500px;
  margin: 0 auto;
}
.edit-modal-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem;
}
.edit-product-summary {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: #ffffff;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.edit-product-image {
  width: 100px;
  height: 100px;
  border-radius: 0.375rem;
  object-fit: cover;
  flex-shrink: 0;
}
.edit-product-image-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 0.375rem;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d1d5db;
  flex-shrink: 0;
}
.edit-product-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.edit-product-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.25rem;
}
.edit-product-base-price {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.25rem;
}
.edit-product-total-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2563eb;
}
.edit-variations-section {
  background: #ffffff;
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.edit-variations-title {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 1rem;
}
.edit-variations-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.edit-variation-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #f9fafb;
  border: 2px solid #e5e7eb;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 150ms ease-in-out;
}
.edit-variation-item:hover {
  border-color: #d1d5db;
}
.edit-variation-item.selected {
  background: #dbeafe;
  border-color: #2563eb;
}
.edit-variation-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
}
.edit-variation-item .variation-label {
  flex: 1;
  font-size: 0.875rem;
  color: #111827;
}
.edit-variation-item .variation-price {
  font-size: 0.875rem;
  font-weight: 600;
  color: #4b5563;
}
.edit-no-variations {
  background: #ffffff;
  border-radius: 0.5rem;
  padding: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: #6b7280;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.edit-modal-actions {
  position: sticky;
  bottom: 0;
  padding: 1rem 0;
  background: #f9fafb;
}
.btn-add-customized {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem 1.5rem;
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 150ms ease-in-out;
}
.btn-add-customized:hover {
  background: #1e40af;
}
.btn-add-customized:active {
  transform: scale(0.98);
}
