.shop-intro {
  border-bottom: 1px solid var(--line);
  background: #f5f7f8;
}

.shop-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: 56px;
  align-items: center;
  padding-right: 20px;
  padding-left: 20px;
  padding-top: 56px;
  padding-bottom: 56px;
}

.shop-intro h1 {
  max-width: 700px;
}

.shop-intro .intro-lead {
  max-width: 640px;
}

.shop-intro .intro-note {
  color: #5e6d79;
}

.shop-page .brand small {
  font-size: .82rem;
}

.shop-page .main-nav a:not(.button):not(.system-switch):not([href="./"]) {
  display: inline-flex;
}

.shop-promise {
  border: 1px solid var(--line);
  border-top: 4px solid var(--yellow);
  padding: 22px 24px;
  background: var(--white);
}

.shop-promise h2 {
  margin-bottom: 12px;
  color: var(--navy);
  font-size: 1.15rem;
  font-weight: 900;
}

.shop-promise ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 22px;
  color: #405362;
  line-height: 1.5;
}

.shop-promise li::marker {
  color: var(--blue);
  font-weight: 900;
}

.shop-promise p {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.5;
}

.shop-section {
  padding: 52px 0 72px;
}

.shop-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.shop-section-heading h2 {
  margin-bottom: 4px;
  color: var(--navy);
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  font-weight: 900;
  letter-spacing: -.025em;
}

.shop-section-heading p {
  margin: 0;
  color: var(--muted);
}

.shop-currency {
  flex: 0 0 auto;
  font-size: .86rem;
  font-weight: 800;
}

.shop-status {
  min-height: 1.5em;
  margin: 0 0 16px;
  color: var(--muted);
  font-weight: 700;
}

.shop-status:empty {
  display: none;
}

.shop-status.error {
  color: #a12c20;
}

.shop-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, .42fr);
  gap: 28px;
  align-items: start;
}

.shop-layout[hidden] {
  display: none;
}

.shop-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.shop-product-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border: 1px solid var(--line);
  padding: 16px;
  background: var(--white);
}

.shop-product-card h3 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 1.17rem;
  font-weight: 900;
  line-height: 1.25;
}

.shop-product-image {
  width: 100%;
  height: clamp(150px, 17vw, 220px);
  margin-bottom: 16px;
  border: 1px solid #e8edf0;
  background: #f5f7f8;
  object-fit: contain;
}

.shop-product-category {
  margin: 0 0 5px;
  color: var(--blue);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.shop-product-description {
  margin: 0 0 8px;
  color: #475967;
  font-size: .92rem;
  line-height: 1.55;
}

.shop-product-details {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.45;
}

.shop-product-state {
  display: inline-flex;
  align-self: flex-start;
  margin: 0 0 12px;
  border: 1px solid #b8d5c1;
  padding: 4px 8px;
  background: #f2f8f3;
  color: #21643b;
  font-size: .75rem;
  font-weight: 900;
}

.shop-product-state.unavailable {
  border-color: #e7d8b2;
  background: #fff9e8;
  color: #765a16;
}

.shop-product-card .field {
  margin-top: auto;
}

.shop-product-card select,
.shop-product-card input {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 42px;
  border: 1px solid #cbd5dc;
  border-radius: 4px;
  padding: 8px 10px;
  background: var(--white);
  color: #243746;
}

.shop-product-card select {
  font-size: .9rem;
}

.shop-product-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 12px 0;
  color: var(--navy);
  font-size: .84rem;
}

.shop-product-price strong {
  font-size: 1.05rem;
  font-weight: 900;
}

.shop-add-button {
  width: 100%;
  min-height: 42px;
}

.shop-product-card .button:disabled {
  border-color: #cbd5dc;
  background: #edf1f3;
  color: #657482;
  cursor: not-allowed;
  opacity: 1;
}

.shop-cart-panel {
  position: sticky;
  top: 20px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--navy);
  padding: 20px;
  background: var(--white);
}

.shop-cart-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.shop-cart-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: 1.35rem;
  font-weight: 900;
}

.shop-cart-heading p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: .85rem;
}

.shop-cart-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--blue);
  font-size: .72rem;
  font-weight: 900;
}

.shop-cart-empty {
  margin: 0;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
}

.shop-cart-empty[hidden] {
  display: none;
}

.shop-cart-items {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shop-cart-items:empty {
  display: none;
}

.shop-cart-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.shop-cart-item-name {
  margin: 0;
  color: var(--navy);
  font-size: .9rem;
  font-weight: 900;
  line-height: 1.35;
}

.shop-cart-item-option {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: .81rem;
  line-height: 1.4;
}

.shop-cart-line-total {
  color: var(--navy);
  font-size: .88rem;
  font-weight: 900;
  text-align: right;
}

.shop-quantity-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  grid-column: 1 / -1;
}

.shop-quantity-controls button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  color: var(--navy);
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
}

.shop-quantity-controls button:hover:not(:disabled) {
  border-color: var(--navy);
  background: var(--paper);
}

.shop-quantity-controls button:disabled {
  color: #8996a0;
  cursor: not-allowed;
}

.shop-quantity-value {
  min-width: 2ch;
  color: #314352;
  font-size: .88rem;
  font-weight: 800;
  text-align: center;
}

.shop-remove-item {
  width: auto;
  height: auto;
  flex: 0 0 auto;
  margin-left: auto;
  border: 0;
  padding: 5px 0;
  background: transparent;
  color: #a12c20;
  font: inherit;
  font-size: .8rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
  cursor: pointer;
}

.shop-quantity-controls .shop-remove-item {
  width: auto;
  height: auto;
}

.shop-cart-total,
.shop-receipt-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0 0;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  color: var(--navy);
  font-weight: 900;
}

.shop-cart-total strong {
  font-size: 1.08rem;
  font-variant-numeric: tabular-nums;
}

.shop-checkout-form {
  display: grid;
  gap: 13px;
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.shop-checkout-form[hidden] {
  display: none;
}

.shop-checkout-form h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 900;
}

.shop-checkout-form .field label {
  font-size: .82rem;
}

.shop-checkout-form .field input {
  min-height: 42px;
}

.shop-checkout-note {
  margin: 0;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.5;
}

.shop-checkout-form .form-status {
  margin: -4px 0 0;
  font-size: .86rem;
}

.shop-confirmation {
  border-top: 1px solid var(--line);
  padding: 56px 0 72px;
  background: var(--paper);
}

.shop-confirmation[hidden] {
  display: none;
}

.shop-confirmation-inner {
  max-width: 1040px;
  padding-right: 20px;
  padding-left: 20px;
}

.shop-confirmation-heading {
  margin-bottom: 24px;
}

.shop-confirmation-heading h2 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -.03em;
}

.shop-confirmation-heading > p:last-child {
  max-width: 680px;
  margin: 0;
  color: #536574;
  line-height: 1.6;
}

.shop-confirmation-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 18px;
  align-items: start;
}

.shop-order-receipt {
  border: 1px solid var(--line);
  padding: 22px;
  background: var(--white);
}

.shop-order-receipt h3 {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: 1.1rem;
}

.shop-order-reference {
  display: grid;
  gap: 4px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: .84rem;
}

.shop-order-reference strong {
  color: var(--navy);
  font-size: .95rem;
  overflow-wrap: anywhere;
}

.shop-receipt-items {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shop-receipt-items li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 9px;
  color: #405362;
  font-size: .86rem;
}

.shop-receipt-items li strong {
  flex: 0 0 auto;
  color: var(--navy);
}

.shop-receipt-total {
  margin-top: 14px;
  font-size: 1rem;
}

.shop-pending-note {
  margin: 15px 0 0;
  color: #765a16;
  font-size: .87rem;
  font-weight: 800;
}

.shop-payment-panel {
  margin: 0;
  border-left: 1px solid var(--line);
  border-top: 4px solid #25834b;
}

.shop-payment-panel .payment-details {
  max-width: 520px;
}

.shop-payment-panel .payment-reference-form {
  max-width: none;
}

.shop-payment-panel .payment-status {
  margin-top: 12px;
}

@media (max-width: 900px) {
  .shop-intro-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .shop-promise {
    max-width: 560px;
  }

  .shop-layout {
    grid-template-columns: minmax(0, 1fr) minmax(270px, .72fr);
    gap: 18px;
  }

  .shop-product-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .shop-intro-grid {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .shop-layout,
  .shop-confirmation-grid {
    grid-template-columns: 1fr;
  }

  .shop-intro-grid,
  .shop-confirmation-inner {
    padding-right: 12px;
    padding-left: 12px;
  }

  .shop-cart-panel {
    position: static;
  }

  .shop-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .shop-section {
    padding: 40px 0 52px;
  }

  .shop-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .shop-product-grid {
    grid-template-columns: 1fr;
  }

  .shop-product-image {
    height: 210px;
  }

  .shop-confirmation {
    padding: 40px 0 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shop-product-card,
  .shop-cart-panel {
    scroll-behavior: auto;
  }
}
