/* shop.gonglogic.com (ShopPageController). Uses the theme's tokens, so dark mode comes with them. */
.shop-wrap { max-width: 72rem; margin: 0 auto; padding-inline: 1rem; }
.shop-narrow { max-width: 42rem; }
.shop-main { padding-block: 2rem 4rem; }

/* The theme draws every form as a panel; the shop's are a button and a field or two. */
.shop-main form { max-width: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.shop-btn, .shop-main form .shop-btn { display: inline-block; margin-top: .5rem; padding: .7rem 1.5rem; border: 0; border-radius: var(--radius-sm, 6px); background: var(--color-accent); color: #15151b; font: inherit; font-weight: var(--weight-semibold, 600); text-decoration: none; cursor: pointer; }
.shop-btn:hover, .shop-btn:focus-visible { background: var(--color-accent-hover, var(--color-accent)); color: #15151b; }

/* FormGuard's trap: a person must never see it. It is only hidden where a sheet says so. */
.shop-main .visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.shop-section h2 { font-size: 1.35rem; }
.shop-test { margin: 0; padding: .5rem 1rem; text-align: center; font-weight: var(--weight-semibold, 600); background: #fde68a; color: #1d1b17; }

.shop-bar { border-bottom: 1px solid var(--color-grey-200); }
.shop-bar__in { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: .6rem; }
.shop-bar__right { display: flex; gap: 1.25rem; }
.shop-bar__cart { font-weight: var(--weight-semibold, 600); }

.shop-head { padding-block: 2.5rem .5rem; }
.shop-head__title { margin: 0; font-size: clamp(2rem, 4vw, 2.75rem); }
.shop-head__lede { margin: .5rem 0 0; font-size: 1.1rem; color: var(--color-text-muted); }

.shop-shelf { margin-bottom: 2.5rem; }
.shop-shelf__name { margin: 0 0 1rem; font-size: 1.35rem; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.shop-card__link { display: flex; flex-direction: column; gap: .3rem; height: 100%; color: inherit; text-decoration: none; }
.shop-card__art { display: block; aspect-ratio: 8.5 / 11; overflow: hidden; border: 1px solid var(--color-grey-200); border-radius: var(--radius-sm, 6px); background: #fff; }
.shop-card__art img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: top; }
/* A pack's cover is 16:9 where a page of music is upright. */
.shop-card__art--wide { aspect-ratio: 16 / 9; background: none; }
.shop-card__link:hover .shop-card__name, .shop-card__link:focus-visible .shop-card__name { text-decoration: underline; }
.shop-card__name { font-weight: var(--weight-semibold, 600); line-height: 1.3; }
.shop-card__price { color: var(--color-text-muted); }

.shop-product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 2.5rem; align-items: start; }
.shop-product__art img { display: block; width: 100%; height: auto; border: 1px solid var(--color-grey-200); border-radius: var(--radius-sm, 6px); background: #fff; }
.shop-product__name { margin: 0; font-size: clamp(1.75rem, 3vw, 2.4rem); line-height: 1.15; }
.shop-product__price { margin: .5rem 0 1rem; font-size: 1.4rem; }
.shop-product__words { margin-top: 1.5rem; white-space: pre-line; }
.shop-product__heading { margin: 1.5rem 0 .4rem; font-size: 1.05rem; }
.shop-files { margin: 0; padding-left: 1.2rem; }
@media (max-width: 44rem) { .shop-product { grid-template-columns: minmax(0, 1fr); } }

.shop-lines { margin: 1rem 0; padding: 0; list-style: none; }
.shop-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1rem; padding: .7rem 0; border-bottom: 1px solid var(--color-grey-200); }
.shop-line__name { flex: 1 1 14rem; min-width: 0; }
.shop-line__price { font-variant-numeric: tabular-nums; }
.shop-line__remove, .shop-link { padding: 0; border: 0; background: none; color: var(--color-link, inherit); font: inherit; text-decoration: underline; cursor: pointer; }
.shop-total { display: flex; justify-content: space-between; margin: 1rem 0; font-size: 1.15rem; }
.shop-total--small { margin: .5rem 0; font-size: 1rem; color: var(--color-text-muted); }

.shop-eyebrow { margin: 0 0 .25rem; color: var(--color-text-muted); }
.shop-small { font-size: .92rem; color: var(--color-text-muted); }
.shop-note { padding: .7rem 1rem; border: 1px solid var(--color-grey-300); border-radius: var(--radius-sm, 6px); }
.shop-note--bad { border-color: #b91c1c; }
.shop-section { margin-top: 2.5rem; }

.shop-downloads { margin: 1.5rem 0; padding: 0; list-style: none; }
.shop-download { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1rem; margin-bottom: .5rem; padding: .8rem 1rem; border: 1px solid var(--color-accent, currentColor); border-radius: var(--radius-sm, 6px); font-weight: var(--weight-semibold, 600); overflow-wrap: anywhere; }
.shop-download__meta { font-weight: normal; color: var(--color-text-muted); }

.shop-receipt { margin-top: 2.5rem; padding: 1.25rem 1.5rem; border: 1px solid var(--color-grey-200); border-radius: var(--radius-sm, 6px); }
.shop-receipt h2 { margin: 0 0 .75rem; font-size: 1.15rem; }
.shop-receipt__facts { margin: 0; }
.shop-receipt__facts div { display: flex; gap: 1rem; padding: .15rem 0; }
.shop-receipt__facts dt { flex: 0 0 5.5rem; color: var(--color-text-muted); }
.shop-receipt__facts dd { margin: 0; overflow-wrap: anywhere; }

.shop-form label { display: block; margin: .9rem 0 .25rem; font-weight: var(--weight-semibold, 600); }
.shop-form input[type="email"], .shop-form input[type="text"], .shop-form input[type="password"] { display: block; width: 100%; max-width: 26rem; padding: .55rem .7rem; border: 1px solid var(--color-grey-300); border-radius: var(--radius-sm, 6px); background: transparent; color: inherit; font: inherit; }
.shop-form button, .shop-form input[type="submit"], .shop-form .btn-toolbar { margin-top: 1rem; }
.shop-form .message { margin: .5rem 0; }

@media print {
    .shop-bar, .shop-test, .shop-noprint, .shop-downloads, header, footer, nav { display: none !important; }
    .shop-receipt { border: 0; padding: 0; }
}
