.store-page { min-height: 100vh; display: flex; flex-direction: column; }
.store-page main { width: min(1100px, 100%); box-sizing: border-box; flex: 1; }
.store-page *, .store-page *::before, .store-page *::after { box-sizing: border-box; }
.store-page [hidden] { display: none !important; }
.store-page p { line-height: 1.6; }
.store-page h2 { font-size: 1.35rem; }
.store-page a:focus-visible, .store-page button:focus-visible, .store-page input:focus-visible { outline: 2px solid var(--theme-accent); outline-offset: 3px; }
.store-page .skip-link { position: absolute; left: 1rem; top: -5rem; padding: 0.75rem; background: var(--theme-panel); z-index: 100; }
.store-page .skip-link:focus { top: 0.5rem; }
.store-intro { max-width: 760px; margin-bottom: 2rem; }
.store-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; align-items: center; margin-bottom: 2rem; }
.store-feature figure { margin: 0; }
.store-feature img { width: 100%; max-height: 270px; object-fit: contain; }
.store-feature figcaption, .store-meta, .store-note { color: var(--theme-muted); font-size: 0.9rem; }
.store-feature figcaption { text-align: center; margin-top: 0.5rem; }
.store-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.store-card, .store-summary, .store-result { border: 1px solid var(--theme-border); border-radius: 6px; padding: 1.25rem; background: var(--theme-panel); }
.store-card { display: flex; flex-direction: column; }
.store-card h3 { margin: 0; font-size: 1.15rem; }
.store-card > a { margin-top: auto; }
.store-price { font-weight: 600; }
.store-add-form { display: grid; grid-template-columns: 1fr 5rem; gap: 0.75rem; align-items: center; margin-top: 1.25rem; }
.store-add-form button { grid-column: 1 / -1; }
.store-page input { width: 5rem; padding: 0.6rem; border: 1px solid var(--theme-border); border-radius: 4px; background: var(--theme-bg); color: var(--theme-text); font: inherit; }
.store-button { display: inline-block; padding: 0.7rem 1rem; border: 1px solid var(--theme-accent); border-radius: 4px; background: var(--theme-accent); color: #0f1720; font: inherit; font-weight: 600; text-align: center; cursor: pointer; }
.store-button:hover:not(:disabled) { filter: brightness(1.08); text-decoration: none; }
.store-button.secondary { background: transparent; color: var(--theme-accent); border-color: var(--theme-border); }
.store-page button:disabled, .store-page input:disabled { opacity: 0.5; cursor: not-allowed; }
.store-status { min-height: 1.6em; }
.store-page .is-error { color: #ffb1b1; }
.store-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; align-items: center; }
.cart-editor { border: 0; margin: 0; padding: 0; min-width: 0; }
.cart-items { list-style: none; margin: 1.5rem 0; padding: 0; color: var(--theme-text); }
.cart-item { display: grid; grid-template-columns: minmax(0, 1fr) auto 7rem; gap: 1.25rem; align-items: center; border-bottom: 1px solid var(--theme-border); padding: 1rem 0; }
.cart-item h2 { margin: 0; font-size: 1.15rem; }
.cart-item p { margin: 0.35rem 0; }
.cart-controls { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.cart-line-total { text-align: right; }
.store-summary { margin-top: 1.5rem; max-width: 640px; }
.store-summary dl { display: grid; grid-template-columns: 1fr auto; gap: 0.75rem; }
.store-summary dd { margin: 0; font-weight: 600; }
#paypal-buttons { max-width: 400px; margin-top: 1rem; }
.store-result { max-width: 720px; margin: 2rem auto; }
#payment-order { overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .store-grid, .store-feature { grid-template-columns: 1fr; }
  .store-feature { gap: 1rem; }
  .store-feature img { max-height: 210px; }
  .cart-item { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; }
  .cart-line-total { text-align: left; }
  .store-page .nav-links { gap: 0.25rem; }
  .store-page .nav-links a { display: inline-block; }
}
