/* Snackbar */
#snackbar-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
}

.snackbar {
  padding: 12px 24px;
  border-radius: 10px;
  color: var(--white);
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content {
  background: var(--white);
  border-radius: var(--radius-xl);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: fadeIn 0.3s ease;
}

.confirm-dialog {
  padding: 24px;
}

.confirm-dialog h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.confirm-dialog p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.confirm-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 14px;
  transition: all var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
  color: var(--white);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-orange {
  background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
  color: var(--white);
}

.btn-success {
  background: var(--green-600);
  color: var(--white);
}

.btn-danger {
  background: var(--red-600);
  color: var(--white);
}

.btn-outline {
  background: var(--white);
  border: 1px solid var(--grey-300);
  color: var(--text-primary);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: var(--white);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

/* Product Card */
.product-card {
  background: linear-gradient(135deg, var(--white), var(--grey-50));
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform var(--transition);
}

.product-card:hover {
  transform: scale(0.98);
}

.product-card-inner {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card-image {
  position: relative;
  aspect-ratio: 1;
  background: linear-gradient(180deg, var(--grey-100), var(--grey-200));
  overflow: hidden;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card-no-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--grey-200), var(--grey-300));
}

.product-card-no-image .material-icons-round {
  font-size: 50px;
  color: var(--grey-400);
}

.product-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.badge {
  padding: 2px 5px;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 700;
  color: var(--white);
}

.badge-blue { background: var(--blue-500); }
.badge-orange { background: var(--orange-500); }
.badge-purple { background: var(--purple-500); }
.badge-red { background: var(--red-500); }

.favorite-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.favorite-btn .material-icons-round {
  font-size: 18px;
  color: var(--grey-600);
}

.favorite-btn.active .material-icons-round {
  color: var(--red-500);
}

.product-card-info {
  padding: 10px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 4px;
}

.product-name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-prices {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.price-current {
  font-weight: 700;
  color: var(--green-700);
  font-size: 13px;
}

.price-original {
  text-decoration: line-through;
  color: var(--grey-500);
  font-size: 11px;
}

.add-cart-btn {
  margin-top: auto;
  width: 100%;
  padding: 6px 10px;
  border-radius: 7px;
  background: var(--blue-600);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.add-cart-btn .material-icons-round {
  font-size: 14px;
}

.add-cart-btn.in-cart {
  background: var(--orange-600);
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.3);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 0 16px;
}

.products-grid-horizontal {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 20px 8px;
  scroll-snap-type: x mandatory;
}

.products-grid-horizontal .product-card {
  min-width: 160px;
  max-width: 160px;
  scroll-snap-align: start;
  flex-shrink: 0;
}

.loading-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px;
  gap: 16px;
  color: var(--text-secondary);
}

/* Form */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--grey-300);
  border-radius: var(--radius-lg);
  background: var(--grey-50);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group .error {
  color: var(--red-500);
  font-size: 12px;
  margin-top: 4px;
}

.form-row {
  display: flex;
  gap: 12px;
}

.form-row .form-group {
  flex: 1;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.checkbox-item input {
  width: auto;
}
