:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #151515;
  background: #f3f3f0;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: #f3f3f0;
}

button, input { font: inherit; }

.site-header {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4vw;
  border-bottom: 1px solid #d8d8d3;
  background: #f8f8f5;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #171717;
  text-decoration: none;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.05;
}

.brand-mark {
  position: relative;
  width: 29px;
  height: 34px;
  background: #111;
  clip-path: polygon(50% 0, 100% 24%, 100% 72%, 50% 100%, 0 72%, 0 24%);
}

.brand-mark span {
  position: absolute;
  top: 4px;
  left: 9px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #e31e24;
}

.sandbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #4a4a46;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1f9d63;
  box-shadow: 0 0 0 3px rgba(31, 157, 99, .12);
}

.sandbox-label strong[data-mode="live"] { color: #c6161d; }

.product-layout {
  min-height: calc(100vh - 76px);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(390px, .75fr);
}

.product-media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 620px;
  padding: 7vw;
  overflow: hidden;
  background: #d9dedb;
}

.product-media::before {
  content: "";
  position: absolute;
  inset: 9%;
  border: 1px solid rgba(20, 20, 20, .12);
}

.product-media img {
  position: relative;
  z-index: 1;
  width: min(72%, 620px);
  max-height: 68vh;
  object-fit: contain;
  filter: drop-shadow(0 24px 28px rgba(20, 24, 22, .22));
  transform: scale(1.25);
}

.media-index {
  position: absolute;
  right: 4vw;
  bottom: 32px;
  z-index: 2;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
}

.purchase-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(38px, 6vw, 86px);
  background: #fff;
  border-left: 1px solid #d8d8d3;
}

.eyebrow {
  margin: 0 0 18px;
  color: #c6161d;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
}

h1 {
  max-width: 640px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 4.4vw, 68px);
  font-weight: 500;
  line-height: .98;
  letter-spacing: 0;
}

.description {
  max-width: 590px;
  margin: 24px 0 30px;
  color: #60605b;
  font-size: 15px;
  line-height: 1.6;
}

.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 21px 0;
  border-top: 1px solid #d8d8d3;
  border-bottom: 1px solid #d8d8d3;
}

.price-row strong { font-size: 27px; }
.price-row span { color: #777770; font-size: 12px; }

form { margin-top: 28px; }
label, .quantity-field > span {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
}

input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #c9c9c3;
  border-radius: 4px;
  outline: none;
}

input:focus { border-color: #171717; box-shadow: 0 0 0 2px rgba(23, 23, 23, .08); }

.operator-field {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid #dc8d90;
  border-radius: 4px;
  background: #fff0f0;
}

.operator-field[hidden] { display: none; }
.operator-field p { margin: 8px 0 0; color: #8e171b; font-size: 11px; line-height: 1.4; }

.quantity-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 22px 0;
}

.quantity-field > span { margin: 0; }

.quantity-control {
  display: grid;
  grid-template-columns: 40px 46px 40px;
  height: 40px;
  border: 1px solid #c9c9c3;
  border-radius: 4px;
  overflow: hidden;
}

.quantity-control button {
  border: 0;
  background: #f5f5f2;
  cursor: pointer;
  font-size: 20px;
}

.quantity-control button:disabled { color: #b4b4af; cursor: default; }
.quantity-control output { display: grid; place-items: center; font-weight: 700; }

.checkout-button {
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border: 1px solid #151515;
  border-radius: 4px;
  color: #fff;
  background: #151515;
  font-weight: 750;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}

.checkout-button:hover:not(:disabled) { background: #c6161d; border-color: #c6161d; }
.checkout-button:active:not(:disabled) { transform: translateY(1px); }
.checkout-button:disabled { cursor: wait; opacity: .65; }

.payment-note {
  margin: 12px 0 0;
  color: #6b6b66;
  font-size: 11px;
  text-align: center;
}

.payment-note span { color: #1f9d63; }

.message {
  margin-top: 20px;
  padding: 14px;
  border: 1px solid #bcbcb6;
  border-radius: 4px;
  background: #f5f5f2;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.message[data-tone="success"] { border-color: #7eb99d; background: #eff8f3; color: #17633f; }
.message[data-tone="warning"] { border-color: #d8b66f; background: #fff8e9; color: #765311; }
.message[data-tone="error"] { border-color: #dc8d90; background: #fff0f0; color: #8e171b; }

.assurance-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid #e4e4df;
  color: #777770;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

@media (max-width: 900px) {
  .product-layout { grid-template-columns: 1fr; }
  .product-media { min-height: 46vh; padding: 64px 40px; }
  .product-media img { max-height: 38vh; transform: scale(1.15); }
  .purchase-panel { border-left: 0; border-top: 1px solid #d8d8d3; padding: 40px 24px 54px; }
  h1 { font-size: clamp(38px, 12vw, 58px); }
}

@media (max-width: 520px) {
  .site-header { height: 64px; padding: 0 18px; }
  .sandbox-label { font-size: 10px; }
  .product-layout { min-height: calc(100vh - 64px); }
  .product-media { min-height: 330px; padding: 58px 24px; }
  .product-media::before { inset: 24px; }
  .media-index { right: 20px; bottom: 16px; }
  .price-row { align-items: flex-end; }
  .price-row span { max-width: 120px; text-align: right; }
}
