.purchase-page { max-width: 1210px; }
.purchase-page h1 { margin: 0 0 18px; color: #142742; line-height: 1.15; }
.purchase-page h2 { margin: 0 0 12px; font-size: 1.08rem; color: #142742; }
.purchase-page a:not(.button):hover { text-decoration: underline; }
.purchase-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(275px,0.41fr); align-items: start; gap: 20px; }
.purchase-form { display: grid; gap: 16px; }
.purchase-card { min-width: 0; border: 1px solid #dce5ed; border-radius: 13px; background: #fff; padding: 20px; }
.purchase-card p { margin: 0 0 12px; }
.purchase-card p:last-child { margin-bottom: 0; }
.purchase-heading { display: flex; gap: 12px; justify-content: space-between; align-items: baseline; }
.purchase-heading a { color: #125d97; flex-shrink: 0; font-size: .87rem; }
.purchase-steps { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.purchase-steps > * { color: #3c536b; background: #ebf1f7; border-radius: 6px; padding: 8px 13px; font-size: .88rem; }
.purchase-steps [aria-current] { color: #fff; background: #165787; font-weight: 700; }
.checkout-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.checkout-fields[hidden] { display: none; }
.checkout-wide { grid-column: 1 / -1; }
.purchase-form label { display: grid; gap: 5px; color: #213855; font-weight: 650; }
.purchase-form input:not([type=radio]):not([type=checkbox]), .purchase-form select, .purchase-form textarea {
  width: 100%; min-height: 42px; padding: 9px 11px; font: inherit; font-weight: 400;
  color: #142742; border: 1px solid #aebfcf; border-radius: 7px; background: #fff;
}
.purchase-form input[type=email] { max-width: 425px; }
.purchase-form input[readonly] { background: #f1f5f9; }
.purchase-form textarea { resize: vertical; }
.checkout-choice { border: 0; margin: 0; padding: 0; display: flex; gap: 20px; flex-wrap: wrap; }
.checkout-choice legend { margin-bottom: 8px; padding: 0; }
.checkout-choice label, .purchase-form .checkout-check { display: flex; align-items: baseline; gap: 8px; font-weight: 500; }
.checkout-check a { text-decoration: underline; }
.checkout-spaced { margin-top: 14px; }
.purchase-shipment { display: flex; justify-content: space-between; gap: 10px; padding: 11px 13px; background: #eef4f8; border-radius: 7px; }
.purchase-sidebar { position: sticky; top: 15px; }
.checkout-totals { margin: 0 0 14px; }
.checkout-totals > div { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin: 7px 0; font-size: .9rem; }
.checkout-totals dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.checkout-totals > .checkout-total { font-weight: 750; font-size: 1.06rem; padding-top: 11px; border-top: 1px solid #dce5ed; }
.checkout-items { margin: 10px 0 16px; font-size: .875rem; }
.checkout-items summary { cursor: pointer; color: #155988; }
.checkout-items ul, .purchase-order-list { padding-left: 20px; line-height: 1.55; }
.purchase-submit { display: flex; width: 100%; margin: 10px 0; align-items: center; justify-content: center; }
.purchase-submit:disabled { opacity: .58; cursor: not-allowed; }
.purchase-notice, .purchase-alert { border-radius: 8px; padding: 11px 13px; background: #eaf4fa; color: #164768; font-size: .92rem; }
.purchase-alert { background: #fff2e0; color: #774109; }
.purchase-receipt { max-width: 760px; }
.purchase-receipt .button { margin: 4px 4px 0 0; }
.cart-table { padding: 0 16px; }
.shop-cart-row { display: grid; grid-template-columns: 66px minmax(0,1fr) minmax(90px,auto); gap: 6px 12px; align-items: center; padding: 14px 0; }
.shop-cart-row + .shop-cart-row { border-top: 1px solid #e5ecf2; }
.shop-cart-photo { grid-row: span 2; align-self: start; background: #f4f8fa; border-radius: 8px; display: grid; place-items: center; min-height: 66px; }
.shop-cart-photo img, .cart-confirmation-item img { object-fit: contain; border-radius: 7px; }
.shop-cart-product { grid-column: 2; min-width: 0; overflow-wrap: anywhere; }
.shop-cart-product a { font-weight: 700; }
.shop-cart-product small { display: block; color: #415c73; }
.shop-cart-product .stock-notice { color: #774109; }
.shop-cart-price { grid-column: 3; grid-row: auto; text-align: right; font-size: .91rem; }
.shop-cart-controls { grid-column: 2 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.shop-cart-stepper { display: inline-flex; border: 1px solid #bccedc; border-radius: 7px; overflow: hidden; }
.shop-cart-stepper input { padding: 0 5px; width: 45px; border: 0; text-align: center; font: inherit; appearance: textfield; }
.shop-cart-stepper input::-webkit-inner-spin-button { appearance: none; }
.shop-cart-stepper button { border: 0; min-width: 30px; min-height: 30px; background: #f1f6fa; color: #155988; font: inherit; cursor: pointer; }
.cart-text-button { border: 0; padding: 4px; background: transparent; color: #155988; font: inherit; font-size: .83rem; text-decoration: underline; cursor: pointer; }
.shop-cart-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.cart-confirmation { width: min(460px,calc(100% - 24px)); color: #142742; padding: 20px; border: 1px solid #cfdce6; border-top: 4px solid #28769c; border-radius: 14px; box-shadow: 0 16px 38px #1027412e; }
.cart-confirmation::backdrop { background: #10274099; }
.cart-confirmation-header { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 12px; }
.cart-confirmation-header h2 { margin: 0; font-size: 1.24rem; }
.close-confirmation { background: #eaf2f7; border: 0; border-radius: 50%; width: 34px; height: 34px; font: inherit; font-size: 1.25rem; cursor: pointer; }
.cart-confirmation-item { display: flex; gap: 12px; align-items: center; padding: 12px; background: #f3f7fb; border-radius: 8px; }
.cart-confirmation-item p { margin-bottom: 0; }
.cart-confirmation-actions { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cart-confirmation-actions .button { width: 100%; height: 100%; text-align: center; justify-content: center; font-size: .86rem; }
.whatsapp-home { z-index: 11; position: fixed; right: max(17px,env(safe-area-inset-right)); bottom: max(16px,env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 8px; padding: 10px 14px; color: white; background: #106646; border: 1px solid #095439; border-radius: 25px; font-size: .9rem; font-weight: 720; box-shadow: 0 4px 14px #1636293b; }
.whatsapp-home:hover { background: #095439; color: white; }
@media(max-width: 780px) {
  .purchase-grid { grid-template-columns: minmax(0,1fr); gap: 14px; }
  .purchase-sidebar { position: static; }
}
@media(max-width: 440px) {
  .purchase-card { padding: 14px; }
  .checkout-fields { grid-template-columns: minmax(0,1fr); }
  .shop-cart-row { grid-template-columns: 46px minmax(0,1fr) auto; gap: 6px 8px; }
  .shop-cart-photo { min-height: 46px; }
  .shop-cart-photo img { width: 46px; height: 46px; }
}
@media print {
  .site-header, .site-footer, .shop-cart-actions, .shop-cart-controls, .purchase-submit { display: none; }
}
