.nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; }
.store-intro { background: #eef7f2; border-bottom: 1px solid var(--line); }
.store-intro-inner {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem 2rem;
  padding-block: clamp(2.5rem, 6vw, 4.9rem);
}
.store-intro h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); letter-spacing: -.055em; }
.store-lead { max-width: 34em; margin-top: .85rem; color: var(--muted); }
.store-section { padding-block: clamp(2.2rem, 5.5vw, 4.4rem); }
.store-section h2 { font-size: clamp(1.65rem, 3.3vw, 2.6rem); }
.store-notice {
  margin-top: 1rem;
  padding: .8rem 1rem;
  border-left: .25rem solid #39745e;
  background: #eff5f1;
  color: #294c3d;
}
.store-notice[data-kind="error"] { background: #fcf1eb; border-color: #ab533e; color: #6b3023; }
.store-products { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; margin-top: 1.35rem; }
.store-product {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: .75rem;
  background: #fff;
}
.store-product[data-highlighted] { box-shadow: 0 0 0 2px #168163; border-color: #168163; }
.store-cover-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .62rem;
  padding: .9rem 1rem;
  height: 10.35rem;
  background: #eef5f1;
}
.store-product:first-child .store-cover-stage { background: #f1eef9; }
.store-product:last-child .store-cover-stage { background: #e9f0f3; }
.store-cover-stage img {
  width: auto;
  height: 100%;
  max-width: calc((100% - 1.24rem) / 3);
  object-fit: contain;
  border-radius: .15rem;
  filter: drop-shadow(0 .28rem .35rem #07190940);
}
.store-cover-stage img:only-child { max-width: 100%; }
.store-cover-stage img:first-child:nth-last-child(2),
.store-cover-stage img:first-child:nth-last-child(2) ~ img { max-width: calc((100% - .62rem) / 2); }
.store-product-body { display: flex; flex: 1; flex-direction: column; align-items: start; gap: .65rem; padding: 1.25rem; }
.product-format { color: var(--accent); font-size: .875rem; font-weight: 770; }
.product-description { flex: 1; color: var(--muted); }
.product-price { margin-top: .45rem; color: var(--accent); font-size: 1.25rem; font-weight: 820; }
.product-note, .store-note, .recovery-card > p:not(.inline-status), .orders-heading p { color: var(--muted); }
.store-note { margin-top: .85rem; font-size: .925rem; }
.store-product .action { margin-top: .15rem; }
button.action { border: 1px solid transparent; cursor: pointer; font-family: inherit; }
button.secondary { border-color: #a0b4aa; }
button:disabled { cursor: default; opacity: .65; }
button.primary:disabled { background: #566963; }
button:focus-visible, input:focus-visible { outline: 3px solid #be5e24; outline-offset: 3px; }

.checkout-panel, .orders-grid { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: 1.5rem; }
.checkout-panel { border: 1px solid var(--line); border-radius: .85rem; padding: clamp(1rem,4vw,2rem); }
.order-totals { margin-top: 1rem; }
.order-totals div, .order-card-head, .orders-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .65rem 1.25rem;
  flex-wrap: wrap;
}
.order-totals div { padding: .5rem 0; border-bottom: 1px solid var(--line); }
.order-totals dt { color: var(--muted); }
.order-totals dd { font-weight: 800; }
.inline-status { margin-top: .7rem; color: var(--muted); font-size: .95rem; }
.inline-status:empty { display: none; }
.inline-status[data-kind="error"] { color: #813e2b; }
.recovery-card { align-self: start; padding: 1.2rem; border: 1px solid #d6e4dd; border-radius: .65rem; background: #f4f8f6; }
.recovery-card p { margin-top: .5rem; }
.recovery-card label { display: block; margin-top: .75rem; font-size: .925rem; font-weight: 740; }
.recovery-card input {
  width: 100%;
  min-width: 0;
  padding: .6rem .7rem;
  border: 1px solid #9eb2a8;
  border-radius: .35rem;
  margin-top: .25rem;
  background: white;
  color: var(--ink);
  font: inherit;
}
.recovery-card input[readonly] { font-family: ui-monospace, Consolas, monospace; font-size: .9rem; }
.recovery-card button { margin-top: .85rem; }
.store-orders { background: #f7faf8; border-top: 1px solid var(--line); }
.orders-heading p { margin-top: .6rem; }
.orders-grid { margin-top: 1.4rem; }
.payment-result button { margin-top: .65rem; }
.order-list { display: grid; gap: .8rem; padding: 0; margin: .85rem 0 0; list-style: none; }
.order-card { padding: 1rem; border: 1px solid var(--line); border-radius: .55rem; background: #fff; }
.order-card-head h3 { font-size: 1.1rem; }
.order-state { color: var(--muted); font-size: .875rem; font-weight: 750; }
.order-state[data-paid="true"] { color: var(--accent); }
.order-meta { margin-top: .4rem; color: var(--muted); font-size: .9rem; }
.order-id { display: block; margin-top: .35rem; font-size: .85rem; overflow-wrap: anywhere; }
.order-files { padding: .7rem 0 0; margin: .65rem 0 0; border-top: 1px solid var(--line); list-style: none; }
.order-files a { display: inline-block; padding-block: .3rem; color: var(--accent); font-weight: 680; }
[hidden] { display: none !important; }
@media (max-width: 52rem) {
  .store-products { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 39rem) {
  .store-intro-inner { align-items: start; flex-direction: column; }
  .store-products, .checkout-panel, .orders-grid { grid-template-columns: 1fr; }
  .store-cover-stage { height: 8.75rem; }
}
