:root {
  --pum-orange: #ff6600;
  --ink: #151515;
  --muted: #6f6f6f;
  --line: #e8e8e8;
  --soft: #f7f7f5;
  --white: #ffffff;
  --danger: #b42318;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Century Gothic", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
}

button, input, textarea { font: inherit; }

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 64px;
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  padding: 28px 0 40px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--pum-orange);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
}

h1, h2, p { margin-top: 0; }

h1 {
  margin-bottom: 12px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1;
}

.hero-copy {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.section-heading {
  margin: 36px 0 20px;
}

.section-heading h2 { margin-bottom: 6px; }
.section-heading p { margin-bottom: 0; color: var(--muted); }

.status {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--soft);
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.product-card {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
}

.product-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  padding: 0;
  background: var(--soft);
  border-right: 1px solid var(--line);
}

.product-card img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 390px;
  object-fit: contain;
  object-position: center;
  background: var(--white);
}

.product-card-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 28px 30px;
}

.product-title { font-size: 24px; margin-bottom: 12px; }
.product-description {
  margin-bottom: 22px;
  color: var(--muted);
  line-height: 1.55;
  white-space: pre-line;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.product-price { font-weight: 700; font-size: 20px; }

.select-button,
#continue-button {
  border: 0;
  border-radius: 999px;
  background: var(--pum-orange);
  color: #fff;
  font-weight: 700;
  padding: 12px 18px;
  cursor: pointer;
}

.select-button:hover,
#continue-button:hover { filter: brightness(.96); }

.customize { margin-top: 34px; }

.customize-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 26px;
  background: var(--white);
}

.customize-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: start;
  margin-bottom: 24px;
}

.price-display {
  font-size: 28px;
  font-weight: 700;
  white-space: nowrap;
}

.option-block {
  margin: 24px 0;
  padding: 20px;
  border-radius: 18px;
  background: var(--soft);
}

.option-title { margin-bottom: 12px; font-size: 16px; }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }

.choice-button {
  border: 1px solid #d8d8d8;
  border-radius: 999px;
  padding: 10px 14px;
  background: #fff;
  cursor: pointer;
}

.choice-button.is-selected {
  border-color: var(--pum-orange);
  box-shadow: inset 0 0 0 1px var(--pum-orange);
}

.custom-amount-row {
  display: grid;
  grid-template-columns: minmax(170px, auto) minmax(180px, 260px);
  align-items: start;
  gap: 12px 18px;
  margin-top: 16px;
}

.custom-amount-row > label {
  padding-top: 12px;
}

.custom-amount-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.custom-amount-input-wrap {
  position: relative;
}

.custom-amount-input-wrap input {
  padding-right: 40px;
}

.custom-amount-suffix {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.custom-amount-help {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.custom-amount-input-wrap input.is-invalid {
  border-color: var(--danger);
}

.custom-amount-input-wrap input.is-invalid + .custom-amount-suffix {
  color: var(--danger);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.field { display: flex; flex-direction: column; gap: 8px; }
.field-wide { grid-column: 1 / -1; }
label { font-size: 14px; font-weight: 700; }

input, textarea {
  width: 100%;
  border: 1px solid #d7d7d7;
  border-radius: 12px;
  padding: 13px 14px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

input:focus, textarea:focus { border-color: var(--pum-orange); }

.summary-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.summary-label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
}

#summary-total { font-size: 24px; }

.draft-output {
  margin-top: 18px;
  padding: 16px;
  border-radius: 14px;
  background: #fff6f0;
  border: 1px solid #ffd7bd;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .product-card { grid-template-columns: minmax(210px, 275px) 1fr; }
  .product-card-body { padding: 24px; }
  .product-card img { max-height: 360px; }
}

@media (max-width: 640px) {
  .page-shell { width: min(100% - 22px, 1180px); padding-top: 18px; }
  .hero { padding-top: 12px; }
  .product-card { display: flex; flex-direction: column; }
  .product-image-wrap {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .product-card img {
    width: 100%;
    height: auto;
    max-height: none;
  }
  .product-card-body { padding: 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .custom-amount-row { grid-template-columns: 1fr; }
  .custom-amount-row > label { padding-top: 0; }
  .customize-head, .summary-bar { flex-direction: column; align-items: stretch; }
  .price-display { font-size: 24px; }
  #continue-button { width: 100%; }
}
