* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f4f5f7;
  color: #222;
}

.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px;
}

.card {
  background: #fff;
  padding: 28px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

h1 {
  margin: 0 0 8px;
}

.intro {
  margin: 0 0 24px;
  color: #555;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.product-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

.product-controls label {
  font-weight: 600;
}

.product-controls select {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px;
  border: 1px solid #bbb;
  border-radius: 6px;
  font: inherit;
  background: #fff;
}

@media (max-width: 650px) {
  .product-controls {
    grid-template-columns: 1fr;
  }
}

.products {
  display: grid;
  gap: 12px;
  margin-bottom: 32px;
}

.product-row {
  display: grid;
  grid-template-columns: 90px 1fr 120px;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
}

.product-row img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  background: #fafafa;
  border-radius: 8px;
}

.product-title {
  font-weight: 700;
  margin-bottom: 4px;
}

.product-sku {
  color: #666;
  font-size: 14px;
}

.qty label {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
}

.qty input {
  width: 100%;
}

.customer {
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
}

.customer h2 {
  margin: 0;
}

label {
  font-weight: 600;
}

input,
textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px;
  border: 1px solid #bbb;
  border-radius: 6px;
  font: inherit;
}

.back-to-details {
  display: inline-block;
  margin-bottom: 14px;
  font-weight: 700;
  color: #222;
  text-decoration: underline;
}

.back-to-details:hover {
  color: #000;
}

button {
  width: 100%;
  padding: 14px;
  border: 0;
  border-radius: 8px;
  background: #222;
  color: white;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  background: #000;
}

.message {
  margin-top: 16px;
  font-weight: 700;
}

@media (max-width: 650px) {
  .product-row {
    grid-template-columns: 70px 1fr;
  }

  .product-row img {
    width: 70px;
    height: 70px;
  }

  .qty {
    grid-column: 1 / -1;
  }
}
