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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 20px;
}

header {
  width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
  padding: 10px 0;
}

#cart {
  background: white;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s;
  color: #667eea;
}



#cart i {
  margin-right: 8px;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s;
}

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

.modal-content {
  background: white;
  width: 90%;
  max-width: 500px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideDown 0.3s;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  padding: 25px;
  border-bottom: 2px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  font-size: 24px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-header h2 i {
  color: #667eea;
}

.close-btn {
  background: none;
  border: none;
  font-size: 32px;
  color: #999;
  cursor: pointer;
  transition: all 0.3s;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.close-btn:hover {
  background: #f0f0f0;
  color: #333;
}

.cart-items-container {
  padding: 20px;
  max-height: 400px;
  overflow-y: auto;
  flex: 1;
}

.empty-cart {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 12px;
  margin-bottom: 12px;
}

.cart-item-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cart-item-info {
  flex: 1;
}

.cart-item-info h4 {
  font-size: 15px;
  color: #333;
  margin-bottom: 5px;
}

.cart-item-price {
  font-size: 16px;
  color: #667eea;
  font-weight: 700;
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  padding: 5px 15px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cart-item-quantity span {
  font-weight: 600;
  color: #333;
}

.modal-footer {
  padding: 20px 25px;
  border-top: 2px solid #f0f0f0;
  background: #fafafa;
  border-radius: 0 0 20px 20px;
}

.total-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  font-weight: 600;
}

.total-price {
  color: #667eea;
  font-size: 24px;
  font-weight: 700;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 20px;
}

.form-panel {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  height: fit-content;
}

.form-panel h2 {
  font-size: 24px;
  color: #333;
  margin-bottom: 25px;
}

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

.form-group label {
  display: block;
  font-size: 14px;
  color: #555;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="number"] {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.3s;
}

.form-group input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input::placeholder {
  color: #aaa;
}

.checkbox-group {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.checkbox-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  cursor: pointer;
}

.checkbox-group label {
  font-size: 14px;
  color: #555;
  cursor: pointer;
}

.btn-submit {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  margin-bottom: 10px;
}


.btn-cancel {
  width: 100%;
  padding: 14px;
  background: #95a5a6;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-cancel:hover {
  background: #7f8c8d;
}

.product-panel {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.product-panel h2 {
  font-size: 24px;
  color: #333;
  margin-bottom: 25px;
}

.empty-state {
  text-align: center;
  padding: 80px 20px;
}

.empty-state .icon {
  font-size: 80px;
  margin-bottom: 20px;
}

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

.empty-state p {
  font-size: 16px;
  color: #999;
}

.product-table {
  width: 100%;
  overflow-x: auto;
}

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

thead tr {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

thead th {
  padding: 15px 10px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

thead th:first-child {
  border-radius: 10px 0 0 0;
}

thead th:last-child {
  border-radius: 0 10px 0 0;
}

tbody tr {
  border-bottom: 1px solid #f0f0f0;
}

tbody td {
  padding: 20px 10px;
}

.product-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-name {
  font-size: 16px;
  font-weight: 500;
  color: #333;
}

.price-container {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.original-price {
  font-size: 13px;
  color: #999;
  text-decoration: line-through;
}

.current-price {
  font-size: 18px;
  font-weight: 700;
  color: #4750eb;
}

.discount-badge {
  background: #e74c3c;
  color: white;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 5px;
  display: inline-block;
  font-weight: 600;
  margin-top: 3px;
}

.quantity-text {
  font-size: 14px;
  color: #555;
}

.promo-badge {
  background: #27ae60;
  color: white;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 20px;
  display: inline-block;
  font-weight: 600;
}

.no-promo {
  color: #ccc;
  font-size: 18px;
}

.action-buttons {
  display: flex;
  gap: 8px;
}

.btn-edit {
  background: #27ae60;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}



.btn-delete {
  background: #e74c3c;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}