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

body {
  font-family: "Noto Sans JP", sans-serif;
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.site-header {
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
}
.site-header .site-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #EA5532;
  text-decoration: none;
}

.site-main {
  padding: 2rem 0;
  min-height: calc(100vh - 200px);
}

.site-footer {
  background: #333;
  color: #fff;
  padding: 1rem 0;
  text-align: center;
  font-size: 0.875rem;
}

.page-header {
  margin-bottom: 2rem;
}

.page-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #333;
}

.alert {
  padding: 1rem;
  border-radius: 5px;
  margin-bottom: 1rem;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-info {
  flex: 1;
}

.product-name {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.product-code {
  color: #666;
  font-size: 0.875rem;
}

.product-model, .product-supplier {
  font-size: 0.875rem;
  color: #666;
}

.product-stock {
  font-size: 0.875rem;
  margin-top: 0.5rem;
}
.product-stock .stock-warning {
  color: #dc3545;
  font-weight: 700;
}

.add-to-cart-form {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
}
.add-to-cart-form .form-group {
  flex: 1;
}
.add-to-cart-form .form-group label {
  display: block;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}
.add-to-cart-form .quantity-input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

.btn-add-cart {
  background: #EA5532;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.875rem;
  white-space: nowrap;
}
.btn-add-cart:hover {
  background: rgb(211.3495575221, 57.7345132743, 21.6504424779);
}

.no-products {
  text-align: center;
  color: #666;
}

.cart-summary {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #333;
  color: #fff;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.btn-view-cart {
  background: #EA5532;
  color: #fff;
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
}
.btn-view-cart:hover {
  background: rgb(211.3495575221, 57.7345132743, 21.6504424779);
}

.cart-container {
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}
.cart-table th, .cart-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}
.cart-table th {
  background: #f5f5f5;
  font-weight: 500;
}

.update-quantity-form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.update-quantity-form .quantity-input {
  width: 80px;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.btn-update {
  background: #6c757d;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.75rem;
}
.btn-update:hover {
  background: rgb(84.3605150215, 91.3905579399, 97.6394849785);
}

.btn-remove {
  background: #dc3545;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.75rem;
}
.btn-remove:hover {
  background: rgb(189.2151898734, 32.7848101266, 47.7721518987);
}

.customer-form-container {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}
.customer-form-container h2 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.form-group .required {
  color: #dc3545;
  margin-left: 0.25rem;
}
.form-group input, .form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}
.form-group textarea {
  min-height: 100px;
  resize: vertical;
}
.form-group .error {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 2rem;
}

.btn-back {
  background: #6c757d;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
}
.btn-back:hover {
  background: rgb(84.3605150215, 91.3905579399, 97.6394849785);
}

.btn-confirm, .btn-order {
  background: #EA5532;
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
}
.btn-confirm:hover, .btn-order:hover {
  background: rgb(211.3495575221, 57.7345132743, 21.6504424779);
}

.confirm-container {
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.confirm-container h2 {
  font-size: 1.25rem;
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #EA5532;
}
.confirm-container h2:first-of-type {
  margin-top: 0;
}

.customer-info dt {
  font-weight: 500;
  color: #666;
  margin-bottom: 0.25rem;
}
.customer-info dd {
  margin-bottom: 1rem;
}

.confirm-actions {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #eee;
}

.complete-container {
  background: #fff;
  border-radius: 8px;
  padding: 3rem 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.complete-icon {
  color: #28a745;
  margin-bottom: 1rem;
}

.complete-message {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.order-number {
  font-size: 1.25rem;
  font-weight: 700;
  color: #EA5532;
  margin-bottom: 1rem;
}

.complete-note {
  color: #666;
  margin-bottom: 2rem;
}

.complete-actions {
  margin-top: 2rem;
}

.btn-home {
  background: #EA5532;
  color: #fff;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
}
.btn-home:hover {
  background: rgb(211.3495575221, 57.7345132743, 21.6504424779);
}
