.book-shopping {
    --book-ink: #20323f;
    --book-muted: #536b76;
    --book-accent: #0a655f;
    --book-line: #c6dbdb;
    --book-paper: #ffffff;
    --book-shell-max: 1220px;
    --book-gutter: 16px;
    --book-grid-gap: 28px;
    --book-card-pad: 20px;
    --book-cover-width: 250px;
    background: linear-gradient(160deg, #edf6f5 0, #fff 38rem);
    color: var(--book-ink);
    padding: 32px 0 56px;
}
.book-shopping, .book-shopping *, .book-shopping *::before, .book-shopping *::after { box-sizing: border-box; }
#content.book-shopping { display: block; float: none; width: 100%; min-width: 0; max-width: none; margin: 0; }
/* Own the rail before legacy container CSS or theme initialization can affect it. */
.book-shopping > .book-shopping-shell { display: block; position: static; float: none; width: calc(100% - (var(--book-gutter) * 2)); max-width: var(--book-shell-max); min-width: 0; margin-left: auto; margin-right: auto; padding: 0; }
.book-shopping-shell > * { min-width: 0; }
.book-shopping-heading { max-width: 780px; border-left: 6px solid var(--book-accent); padding-left: 24px; margin-bottom: 28px; }
.book-shopping-heading h1 { font-family: inherit; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.12; letter-spacing: -.025em; }
.book-shopping p { max-width: 78ch; line-height: 1.65; }
.book-shopping a { color: var(--book-accent); text-decoration: underline; text-underline-offset: 3px; }
.book-shopping h2 { margin: 30px 0 12px; }
.book-shopping-guide { margin: 26px 0; }
.book-shopping-guide dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 18px 0; }
.book-shopping-guide dt { color: var(--book-accent); font-weight: 700; margin-bottom: 8px; }
.book-shopping-guide dd { margin: 0; line-height: 1.65; }
.book-shopping-help { margin: 16px 0; }
.book-shopping-help > summary { cursor: pointer; color: var(--book-accent); padding: 10px 0; font-weight: 600; }
.book-shopping-tools, .book-shopping-actions, .book-shopping-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin: 14px 0; overflow-wrap: anywhere; }
.book-shopping button, .book-shopping-dock button { border: 1px solid #0a655f; border-radius: 6px; background: #fff; color: #0a655f; padding: 9px 14px; cursor: pointer; font: inherit; line-height: 1.4; }
.book-shopping button[type=submit], .book-shopping button[aria-pressed=true] { background: var(--book-accent); color: white; }
.book-shopping :is(a, button, input, select):focus-visible, .book-shopping-table-wrap:focus-visible, .book-shopping-dock :focus-visible { outline: 3px solid #a05216; outline-offset: 3px; }
.book-shopping button:disabled { cursor: not-allowed; opacity: .65; }
.book-shopping button { max-width: 100%; overflow-wrap: anywhere; }
.book-shopping-notice { border-left: 3px solid var(--book-line); padding: 8px 14px; font-size: .92rem; color: var(--book-muted); }
.book-shopping-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; width: 100%; min-width: 0; background: var(--book-paper); border: 1px solid var(--book-line); padding: 24px; border-radius: 12px; }
.book-shopping-filters label { display: flex; flex-direction: column; gap: 7px; min-width: 0; font-weight: 600; margin: 0; }
.book-shopping-query { grid-column: 1 / -1; }
.book-shopping-filters :is(input, select) { min-height: 45px; width: 100%; min-width: 0; padding: 9px; border: 1px solid #7b969d; border-radius: 4px; background: white; color: var(--book-ink); font: inherit; }
.book-shopping-filters .book-shopping-actions { grid-column: 1 / -1; margin: 0; }
.book-shopping-free { padding: 18px 24px; border-block: 1px solid var(--book-line); background: #f2f8f7; margin: 28px 0; }
.book-shopping-free h2 { margin-top: 0; font-size: 1.35rem; }
.book-shopping-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--book-grid-gap); width: 100%; min-width: 0; margin: 20px 0; }
.book-shopping-card { display: flex; flex-direction: column; align-items: stretch; gap: 20px; background: var(--book-paper); border: 1px solid var(--book-line); border-radius: 10px; padding: var(--book-card-pad); width: 100%; min-width: 0; height: auto; }
.book-shopping-cover { display: flex; flex: none; justify-content: center; align-items: center; width: 100%; max-width: var(--book-cover-width); aspect-ratio: 3 / 4; margin: 0 auto; background: #edf3f3; text-align: center; }
.book-shopping-cover img { display: block; object-fit: contain; width: 100%; max-width: 100%; height: 100%; }
.book-shopping-card-body { flex: 1; width: 100%; min-width: 0; overflow-wrap: anywhere; }
.book-shopping-card h3 { margin: 0 0 10px; font-size: 1.05rem; line-height: 1.5; }
.book-shopping-card p { margin-bottom: 8px; }
.book-shopping-price { font-size: 1.3rem; font-weight: 700; }
.book-shopping-price span { font-size: .78rem; font-weight: 400; }
.book-shopping-card .book-shopping-actions { gap: 8px; align-items: stretch; margin-bottom: 0; }
.book-shopping-card button { padding: 7px 10px; font-size: .9rem; }
.book-shopping-pick { display: flex; flex-direction: column; min-width: 0; border-top: 4px solid var(--book-accent); padding-top: 14px; }
.book-shopping-pick > h3 { font-size: 1.2rem; }
.book-shopping-pick > .book-shopping-card { flex: 1; }
.book-shopping-empty { border: 1px dashed #7b969d; padding: 28px; margin: 28px 0; }
.book-shopping-empty h2 { margin-top: 0; }
.book-shopping-table-wrap { overflow-x: auto; width: 100%; min-width: 0; max-width: 100%; margin: 28px 0; }
.book-shopping-table { border-collapse: collapse; width: 100%; min-width: 640px; table-layout: fixed; }
.book-shopping-table caption { caption-side: top; text-align: left; color: var(--book-muted); padding: 12px 0; }
.book-shopping-table :is(th, td) { text-align: left; vertical-align: top; border: 1px solid var(--book-line); padding: 16px; overflow-wrap: anywhere; }
.book-shopping-table th[scope=row] { width: 160px; background: #edf6f5; }
.book-shopping-table .book-shopping-card { display: block; border: 0; border-radius: 0; padding: 0; font-weight: 400; }
.book-shopping-table .book-shopping-cover { width: 90px; max-width: 90px; margin: 0 0 12px; }
.book-shopping-table .book-shopping-cover img { width: 90px; height: 120px; }
.book-shopping-dock { position: fixed; bottom: 12px; left: 12px; right: 12px; z-index: 1200; margin: 0 auto; max-width: 850px; padding: 14px 18px; background: #f2f8f7; color: #20323f; border: 1px solid #7b969d; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; box-shadow: 0 3px 16px #20323f1a; }
.book-shopping-dock a { color: #0a655f; text-decoration: underline; }
.book-shopping [hidden], .book-shopping-dock[hidden] { display: none !important; }
@media (max-width: 1100px) { .book-shopping-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .book-shopping-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) {
    .book-shopping { padding-top: 24px; }
    .book-shopping-heading { padding-left: 16px; }
    .book-shopping-filters, .book-shopping-grid { grid-template-columns: minmax(0, 1fr); }
    .book-shopping-guide dl { grid-template-columns: minmax(0, 1fr); }
    .book-shopping-filters { padding: 18px; }
    .book-shopping-table :is(th, td) { padding: 12px; }
}
