:root {
  --paper: #f6ecd9;
  --paper-light: #fffaf0;
  --olive: #234d3a;
  --olive-dark: #173729;
  --walnut: #70431f;
  --clay: #c86d54;
  --gold: #b98042;
  --text: #513a28;
  --muted: #8b6b51;
  --line: rgba(112, 67, 31, 0.2);
  --shadow: 0 18px 48px rgba(80, 54, 29, 0.1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 7%, rgba(255,255,255,.66), transparent 24%),
    linear-gradient(180deg, #f9f0df 0%, var(--paper) 100%);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }

.checkout-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  padding: 12px max(24px, calc((100vw - 1240px) / 2));
  background: rgba(250, 242, 226, .95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.checkout-brand img { display: block; width: 195px; max-height: 58px; object-fit: contain; }
.back-link { color: var(--olive); font-weight: 750; }
.back-link:hover { color: var(--clay); }

.checkout-main { max-width: 1240px; margin: 0 auto; padding: 58px 24px 80px; }
.checkout-intro { max-width: 900px; margin: 0 auto 42px; text-align: center; }
.eyebrow, .summary-eyebrow { margin: 0 0 10px; color: var(--clay); font-family: Georgia, serif; font-size: 13px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; color: var(--olive); font-family: Georgia, "Times New Roman", serif; }
h1 { font-size: clamp(36px, 5vw, 58px); line-height: 1.04; }
.checkout-intro > p:last-child { max-width: 620px; margin: 18px auto 0; font-size: 18px; }

.order-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.order-content { display: grid; gap: 24px; }
.form-section, .order-summary { background: rgba(255, 250, 240, .82); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.form-section { padding: clamp(22px, 3vw, 34px); }
.section-title { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 26px; }
.section-title > span { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; color: #fff8ec; background: var(--olive); border-radius: 50%; font-weight: 800; }
.section-title h2 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; }
.section-title p { margin: 5px 0 0; color: var(--muted); }

.product-showcase { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .85fr); gap: clamp(24px, 3vw, 38px); align-items: start; }
.featured-products { min-width: 0; }
.featured-product { display: none; }
.featured-product.is-active { display: grid; gap: 22px; }
.featured-image { display: grid; place-items: center; min-height: 540px; padding: clamp(22px, 4vw, 42px); background: linear-gradient(145deg, #eee2ce, #fffaf0); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.featured-image img { display: block; width: auto; max-width: 100%; height: 460px; max-height: 58vw; object-fit: contain; filter: drop-shadow(0 18px 20px rgba(57,36,18,.2)); }
.featured-image.health-image { background: linear-gradient(145deg, #f7eee3, #fff); }
.featured-copy { min-width: 0; padding-inline: 4px; overflow-wrap: anywhere; hyphens: auto; }
.product-kicker { margin: 0 0 7px; color: var(--clay); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.featured-copy h3 { font-size: clamp(25px, 3vw, 34px); line-height: 1.12; }
.featured-copy > p:last-child { margin: 12px 0 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.product-picker { min-width: 0; padding: 20px; background: rgba(255,255,255,.5); border: 1px solid var(--line); border-radius: 16px; }
.product-picker > h3 { margin-bottom: 15px; font-size: 22px; }
.product-thumbnails { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.product-thumbnail { position: relative; min-width: 0; cursor: pointer; }
.product-thumbnail > input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.thumbnail-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; align-content: start; min-width: 0; max-width: 100%; gap: 4px; height: 100%; padding: 5px 6px 7px; color: var(--text); background: #fffaf1; border: 1px solid var(--line); border-radius: 10px; text-align: center; transition: border-color .2s, box-shadow .2s, transform .2s; }
.thumbnail-card img { display: block; min-width: 0; width: 100%; max-width: 100%; height: auto; max-height: 112px; object-fit: contain; }
.thumbnail-card > span { min-width: 0; max-width: 100%; align-self: start; font-size: 11px; font-weight: 750; line-height: 1.25; white-space: normal; overflow-wrap: anywhere; hyphens: auto; }
.thumbnail-card > .pressure-thumbnail-image { position: relative; display: block; width: 100%; aspect-ratio: 0.705; max-height: 112px; overflow: hidden; background: transparent; }
/* Remove the PNG's transparent padding, then stretch the complete cover to the thumbnail. */
.thumbnail-card .pressure-thumbnail-image img { position: absolute; left: -9.87%; top: -8.56%; width: 119.08%; max-width: none; height: 114.74%; max-height: none; object-fit: fill; background: transparent; transform: none; }
.thumbnail-card > i { position: absolute; top: 6px; right: 6px; display: none; place-items: center; width: 22px; height: 22px; color: #fff; background: var(--olive); border-radius: 50%; font-size: 13px; font-style: normal; }
.product-thumbnail input:checked + .thumbnail-card { border-color: var(--olive); box-shadow: 0 0 0 2px rgba(35,77,58,.14), 0 8px 20px rgba(73,48,25,.1); transform: translateY(-2px); }
.product-thumbnail input:checked + .thumbnail-card > i { display: grid; }
.product-thumbnail input:focus-visible + .thumbnail-card { outline: 3px solid rgba(200,109,84,.28); outline-offset: 2px; }
.cover-options { margin: 20px 0 0; padding: 18px 0 0; border: 0; border-top: 1px solid var(--line); }
.cover-options legend { padding: 0; color: var(--olive); font-size: 13px; font-weight: 800; }
.cover-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.cover-option { position: relative; cursor: pointer; }
.cover-option > input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.cover-option > span { display: grid; grid-template-columns: 18px 1fr; gap: 2px 8px; align-items: center; padding: 11px; background: #fffaf1; border: 1px solid var(--line); border-radius: 10px; }
.cover-option i { grid-row: 1 / 3; width: 18px; height: 18px; background: #fff; border: 2px solid rgba(35,77,58,.4); border-radius: 50%; }
.cover-option strong { color: var(--olive); font-size: 13px; }
.cover-option small { color: var(--walnut); font-size: 11px; font-weight: 750; }
.cover-option small del { color: var(--muted); font-weight: 400; }
.cover-option input:checked + span { border-color: var(--olive); background: rgba(35,77,58,.06); }
.cover-option input:checked + span i { border: 5px solid var(--olive); }
.cover-option input:focus-visible + span { outline: 3px solid rgba(200,109,84,.28); outline-offset: 2px; }
.cover-options[hidden] { display: none; }
.featured-image { position:relative; }
.checkout-new-sticker { position:absolute; z-index:2; top:18px; left:18px; padding:9px 15px; color:#fff; background:linear-gradient(135deg,#f05a35,#d92d27); border:2px solid #fff0b8; border-radius:999px; box-shadow:0 8px 20px rgba(178,38,29,.5); font-size:12px; font-weight:900; letter-spacing:.06em; text-transform:uppercase; }
.purchase-settings { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.setting-label { display: block; margin-bottom: 7px; color: var(--olive); font-size: 13px; font-weight: 800; }
.selected-price { min-width: 105px; text-align: right; }
.selected-price .product-price { text-align: right; }
.go-to-buyer { width: 100%; min-height: 48px; margin-top: 18px; color: #fff; background: var(--clay); border: 0; border-radius: 999px; cursor: pointer; font-weight: 800; transition: transform .2s, background .2s; }
.go-to-buyer:hover { background: #b95f48; transform: translateY(-1px); }
.go-to-buyer.is-added { background: var(--olive); }
.go-to-buyer:disabled { cursor: not-allowed; opacity: .58; transform: none; }
.required-note { margin: 13px 0 0; color: var(--muted); font-size: 12px; }
#buyer { scroll-margin-top: 105px; }

.quantity { display: grid; grid-template-columns: 32px 34px 32px; align-items: center; width: max-content; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: var(--paper-light); }
.quantity button { width: 32px; height: 34px; padding: 0; color: var(--olive); background: transparent; border: 0; cursor: pointer; font-size: 19px; }
.quantity button:hover { background: rgba(35,77,58,.08); }
.quantity output { display: grid; place-items: center; height: 34px; border-inline: 1px solid var(--line); font-weight: 750; }
.product-price { text-align: right; }
.product-price del { display: block; color: var(--muted); font-size: 12px; }
.product-price strong { display: block; color: var(--walnut); font-size: 20px; white-space: nowrap; }

.fields { display: grid; gap: 16px; }
.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fields label, .delivery-fields label, .comment-field { display: grid; gap: 7px; }
.fields label > span, .delivery-fields label > span { color: var(--olive); font-size: 14px; font-weight: 750; }
input, select, textarea { width: 100%; color: var(--text); background: rgba(255,255,255,.75); border: 1px solid var(--line); border-radius: 10px; outline: 0; }
input, select { min-height: 48px; padding: 0 14px; }
textarea { resize: vertical; padding: 14px; }
input:focus, select:focus, textarea:focus { border-color: var(--clay); box-shadow: 0 0 0 3px rgba(200,109,84,.13); }
input::placeholder, textarea::placeholder { color: #aa917c; }
input[aria-invalid="true"] { border-color: #b84f3e; background: #fff8f5; box-shadow: 0 0 0 3px rgba(184,79,62,.1); }
.field-error { color: #a43f31; font-size: 12px; line-height: 1.3; }

.choice-grid { display: grid; gap: 12px; }
.delivery-choices, .payment-choices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choice-card { position: relative; display: flex; align-items: flex-start; gap: 11px; min-height: 104px; padding: 15px; background: rgba(255,255,255,.55); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.choice-card:has(input:checked) { background: rgba(35,77,58,.06); border-color: var(--olive); }
.choice-card:has(input:disabled) { cursor: not-allowed; opacity: .55; }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.radio-mark { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 2px; border: 2px solid rgba(35,77,58,.42); border-radius: 50%; background: #fff; }
.choice-card input:checked + .radio-mark { border: 6px solid var(--olive); }
.choice-card input:focus-visible + .radio-mark { outline: 3px solid rgba(200,109,84,.28); outline-offset: 2px; }
.choice-card strong, .choice-card small { display: block; }
.choice-card strong { color: var(--olive); line-height: 1.25; }
.choice-card small { margin-top: 5px; color: var(--muted); line-height: 1.35; }
.address-base { margin-top: 22px; }
.delivery-fields { display: none; margin-top: 16px; }
.delivery-section:has(input[value="branch"]:checked) .branch-fields,
.delivery-section:has(input[value="courier"]:checked) .courier-fields,
.delivery-section:has(input[value="parcel"]:checked) .parcel-fields { display: grid; }
.api-note { display: flex; align-items: flex-start; gap: 10px; margin: 18px 0 0; padding: 13px 15px; color: #5d645d; background: rgba(35,77,58,.06); border-radius: 10px; font-size: 13px; }
.api-note > span:first-child { display: grid; place-items: center; flex: 0 0 20px; height: 20px; color: #fff; background: var(--olive); border-radius: 50%; font-family: Georgia, serif; font-weight: 700; }
.api-note.is-error { color: #8b3f32; background: rgba(200,109,84,.1); }
.api-note.is-error > span:first-child { background: var(--clay); }
.np-autocomplete { position: relative; }
.np-autocomplete > input[type="hidden"] { display: none; }
.np-suggestions { position: absolute; z-index: 12; top: calc(100% + 5px); left: 0; right: 0; max-height: 250px; overflow-y: auto; padding: 6px; background: #fffdf8; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 14px 34px rgba(57,36,18,.16); }
.np-suggestion { display: block; width: 100%; padding: 10px 11px; color: var(--text); background: transparent; border: 0; border-radius: 7px; cursor: pointer; text-align: left; font-size: 13px; line-height: 1.35; }
.np-suggestion:hover, .np-suggestion:focus-visible { color: var(--olive); background: rgba(35,77,58,.08); outline: 0; }
.np-suggestion small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
select:disabled, input:disabled { cursor: not-allowed; opacity: .62; }

.order-summary { position: sticky; top: 108px; padding: 26px; }
.order-summary h2 { font-size: 27px; line-height: 1.14; }
.summary-empty { display: grid; justify-items: center; gap: 6px; margin: 24px 0; padding: 20px 14px; color: var(--muted); background: rgba(35,77,58,.045); border-radius: 12px; text-align: center; }
.summary-empty > span { color: var(--clay); font-family: Georgia, serif; font-size: 36px; line-height: 1; }
.summary-empty p { margin: 0; font-size: 14px; }
.summary-items { display: grid; gap: 8px; margin: 22px 0 10px; }
.summary-item { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding: 12px 38px 12px 13px; color: var(--olive); background: rgba(35,77,58,.055); border-radius: 10px; }
.summary-item-name { min-width: 0; overflow-wrap: anywhere; hyphens: auto; font-size: 12px; font-weight: 750; line-height: 1.35; }
.summary-item-meta { color: var(--muted); font-size: 11px; }
.summary-item-price { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--walnut); font-size: 13px; font-weight: 800; white-space: nowrap; }
.summary-item-remove { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 24px; height: 24px; padding: 0; color: var(--muted); background: transparent; border: 0; border-radius: 50%; cursor: pointer; font-size: 18px; line-height: 1; }
.summary-item-remove:hover { color: #fff; background: var(--clay); }
.summary-row, .summary-total { display: flex; justify-content: space-between; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.summary-row strong { max-width: 170px; color: var(--olive); font-size: 13px; text-align: right; }
.summary-total { align-items: end; margin-top: 4px; }
.summary-total span { font-weight: 800; }
.summary-total strong { color: var(--walnut); font-family: Georgia, serif; font-size: 26px; }
.submit-order { width: 100%; min-height: 52px; margin-top: 18px; color: #fff; background: var(--clay); border: 0; border-radius: 999px; font-weight: 800; }
.submit-order:disabled { cursor: not-allowed; opacity: .52; }
.submit-order:not(:disabled) { cursor: pointer; }
.submit-order:not(:disabled):hover { background: #b95f48; }
.checkout-validation-message { margin: 12px 0 0; padding: 10px 12px; color: var(--olive); background: rgba(35,77,58,.07); border-radius: 8px; font-size: 12px; text-align: center; }
.checkout-validation-message.is-error { color: #8b3f32; background: rgba(200,109,84,.1); }
.prototype-note { margin: 14px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.checkout-footer { padding: 26px 24px; color: rgba(255,248,236,.78); background: var(--olive); text-align: center; }
.checkout-footer p { margin: 0; font-size: 13px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.order-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

@media (max-width: 1020px) {
  .order-layout { grid-template-columns: 1fr; }
  .order-summary { position: static; }
}
@media (min-width: 761px) {
  .checkout-intro h1 { font-size: clamp(36px, 4.8vw, 56px); white-space: nowrap; }
}
@media (max-width: 860px) {
  .product-showcase { grid-template-columns: 1fr; }
  .featured-image { min-height: 430px; }
  .featured-image img { height: 380px; }
}
@media (max-width: 760px) {
  .checkout-header { min-height: 72px; padding-inline: 18px; }
  .checkout-brand img { width: 160px; }
  .back-link { font-size: 14px; }
  .checkout-main { padding: 40px 14px 60px; }
  .delivery-choices, .payment-choices { grid-template-columns: 1fr; }
  .choice-card { min-height: auto; }
}
@media (max-width: 540px) {
  .checkout-header { align-items: flex-start; flex-direction: column; gap: 7px; padding-block: 10px; }
  .checkout-brand img { width: 145px; }
  h1 { font-size: 34px; }
  .checkout-intro > p:last-child { font-size: 16px; }
  .form-section, .order-summary { border-radius: 15px; }
  .form-section { padding: 19px 14px; }
  .section-title { gap: 11px; }
  .section-title > span { flex-basis: 36px; width: 36px; height: 36px; font-size: 13px; }
  .two-columns { grid-template-columns: 1fr; }
  .featured-image { min-height: 360px; padding: 18px; }
  .featured-image img { height: 325px; max-height: none; }
  .featured-copy h3 { font-size: 25px; }
  .product-picker { padding: 14px; }
  .product-thumbnails { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .thumbnail-card img { max-height: 120px; }
  .thumbnail-card > .pressure-thumbnail-image { max-height: 120px; }
  .thumbnail-card .pressure-thumbnail-image img { max-height: none; }
  .purchase-settings { align-items: center; }
  .product-price strong { font-size: 18px; }
}
