:root {
    --red: #d30808;
    --ink: #1c1c1c;
    --muted: #6a625c;
    --line: #e4ddd4;
    --bar: #241f1c;
    --paper: #f6f3ee;
    --max: 1180px;
    --serif: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font: 15px/1.5 "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

:focus-visible {
    outline: 2px solid var(--red);
    outline-offset: 2px;
}

a { color: inherit; }

img { max-width: 100%; height: auto; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.stripe { height: 4px; background: var(--red); }

.mast {
    position: sticky;
    top: 0;
    z-index: 40;
    background: #fff;
    box-shadow: 0 1px 0 var(--line);
}

.topbar {
    background: var(--bar);
    color: #fff;
    padding-top: env(safe-area-inset-top);
}

.topbar .wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 40px;
    font-size: 13px;
}

.langs { display: flex; gap: 2px; align-items: center; flex: 0 0 auto; }

.lang {
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1;
    opacity: 0.62;
    padding: 8px 7px;
}

.lang.is-on { opacity: 1; box-shadow: inset 0 -2px 0 #fff; }

.topbar a { color: #fff; text-decoration: none; }

.session-links {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    min-width: 0;
}

.admin-link {
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    padding: 3px 9px;
    font-size: 12px;
    letter-spacing: 0.04em;
}

.account-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    max-width: 34vw;
}

.top-logout { margin: 0; flex: 0 0 auto; }

.top-logout button {
    font: inherit;
    cursor: pointer;
    background: transparent;
    color: #fff;
    border: 0;
    padding: 4px 2px;
    font-size: 12px;
    letter-spacing: 0.04em;
}

.account-link svg { width: 16px; height: 16px; flex: 0 0 auto; }

.account-link span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

.header { background: #fff; }

.bar {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 28px;
    min-height: 76px;
}

.nav-check {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.shop-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 6px;
    align-items: center;
}

.shop-nav a {
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #4a453f;
    padding: 8px 10px;
    border-radius: 999px;
}

.shop-nav a:hover,
.shop-nav a.is-on { color: var(--red); }

.shop-nav a.is-on { background: #fdecec; }

.nav-more,
.menu-btn { display: none; }

.logo {
    display: flex;
    align-items: center;
    min-width: 0;
    max-width: 220px;
    padding: 8px 0;
}

.logo img {
    display: block;
    height: 62px;
    width: auto;
    max-width: 100%;
}

.tools { display: flex; align-items: center; gap: 2px; }

.bag {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    text-decoration: none;
    color: var(--ink);
}

.bag:hover { background: var(--paper); }

.bag svg { width: 24px; height: 24px; }

.bag .count {
    position: absolute;
    top: 2px;
    right: -2px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--red);
    color: #fff;
    box-shadow: 0 0 0 2px #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}

.menu-btn {
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    cursor: pointer;
    color: var(--ink);
}

.menu-btn:hover { background: var(--paper); }

.bar:has(.nav-check:focus-visible) .menu-btn {
    outline: 2px solid var(--red);
    outline-offset: 2px;
}

.bars,
.bars::before,
.bars::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
    position: relative;
}

.bars::before,
.bars::after {
    content: "";
    position: absolute;
    left: 0;
}

.bars::before { top: -6px; }

.bars::after { top: 6px; }

.bar:has(.nav-check:checked) .bars { background: transparent; }

.bar:has(.nav-check:checked) .bars::before { top: 0; transform: rotate(45deg); }

.bar:has(.nav-check:checked) .bars::after { top: 0; transform: rotate(-45deg); }

.searchbar {
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.search-form {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 12px 0;
}

.query { position: relative; flex: 1; min-width: 0; }

.query-ico {
    position: absolute;
    left: 12px;
    top: 50%;
    width: 16px;
    height: 16px;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
}

.searchbar select,
.searchbar input,
.field input,
.field select,
.field textarea,
.qty input,
.refine select,
.refine input {
    font: inherit;
    color: var(--ink);
    background-color: #fff;
    border: 1px solid #d5cdc3;
    border-radius: 4px;
    padding: 9px 12px;
}

.searchbar select,
.field select,
.refine select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    padding-right: 2.6rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%236a625c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M3.5 6 8 10.5 12.5 6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    background-size: 14px 14px;
}

.searchbar select { flex: 0 0 240px; max-width: 34%; }

.query input { width: 100%; padding-left: 36px; }

.searchbar button,
.refine button,
.btn {
    font: inherit;
    cursor: pointer;
    border: 0;
    border-radius: 2px;
    background: var(--red);
    color: #fff;
    padding: 9px 18px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.btn.quiet,
button.quiet {
    background: transparent;
    color: var(--muted);
    text-transform: none;
    letter-spacing: 0;
    padding: 8px 0;
    border: 0;
    font: inherit;
    cursor: pointer;
}

.btn.block {
    display: block;
    width: 100%;
    text-align: center;
    text-decoration: none;
    box-sizing: border-box;
}

.line-btn,
button.line-btn {
    font: inherit;
    cursor: pointer;
    background: #fff;
    color: var(--ink);
    border: 1px solid #d5cdc3;
    border-radius: 4px;
    padding: 8px 12px;
    letter-spacing: 0;
    text-transform: none;
}

.line-btn:hover,
button.line-btn:hover { border-color: var(--ink); }

.banner {
    display: block;
    width: 100%;
    margin: 22px 0 4px;
    border-radius: 6px;
}

.section {
    margin: 22px 0 0;
    font-family: var(--serif);
    font-weight: 500;
    font-size: 1.45rem;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 0 2px;
}

.chip,
.alpha a,
.matches a {
    flex: 0 0 auto;
    text-decoration: none;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
    color: var(--ink);
}

.chip.is-on,
.alpha a.is-on {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

.alpha {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 14px 0;
}

.alpha a {
    min-width: 2rem;
    padding: 6px 8px;
    text-align: center;
    border-radius: 4px;
}

.listing-head h1 { margin-bottom: 0.2rem; }

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 8px 0 0;
}

.active-filters span {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 13px;
}

.active-filters a,
.refine .clear,
.crumb a,
.more a {
    color: var(--red);
}

.refine {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: end;
    margin: 8px 0 18px;
}

.refine label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    color: var(--muted);
}

.refine select,
.refine input { min-width: 220px; }

.refine .clear {
    align-self: end;
    padding-bottom: 9px;
    text-decoration: none;
}

.matches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
}

.people {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 28px;
    list-style: none;
    padding: 0;
    margin: 8px 0 28px;
}

.people a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    text-decoration: none;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
}

.people a:hover { color: var(--red); }

.people .count { color: var(--muted); font-variant-numeric: tabular-nums; }

.crumb { margin: 18px 0 0; font-size: 13px; }

.more { display: flex; gap: 18px; margin: 0 0 12px; }

.more a { text-decoration: none; }

.spotlight { margin: 32px 0 0; }

.spotlight > h2 {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 22px;
    font-family: var(--serif);
    font-weight: 500;
    font-size: 1.35rem;
    line-height: 1.2;
}

.spotlight > h2::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

.spotlight .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    margin: 0;
    column-gap: 28px;
    row-gap: 0;
}

.spotlight .card {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 5;
}

.spotlight .card a {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 4;
}

.spotlight .cover {
    width: min(100%, 236px);
    height: auto;
    margin: 0 auto;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    align-items: stretch;
    box-shadow: 0 16px 30px rgba(40, 24, 16, 0.14);
    transition: transform 0.18s ease;
}

.spotlight .card a:hover img { transform: none; }

.spotlight .card a:hover .cover { transform: translateY(-4px); }

.spotlight .cover img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center;
    box-shadow: none;
}

.spotlight .eur {
    margin: 14px 0 0;
    font-size: 1.25rem;
    line-height: 1.15;
}

.spotlight .bgn { margin-top: 3px; }

.spotlight .card h2 {
    max-width: 18em;
    margin: 8px auto 0;
    font-size: 1.05rem;
    line-height: 1.3;
    text-wrap: balance;
}

.spotlight .by { margin-top: 5px; }

.spotlight + .grid { margin-top: 44px; }

.home-more {
    display: flex;
    justify-content: center;
    margin: -8px 0 36px;
}

.home-more .btn { min-width: 240px; text-align: center; }

.empty { margin: 22px 0; }

.grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 36px 22px;
    margin: 22px 0 36px;
}

.card { text-align: center; }

.card a { text-decoration: none; }

.cover {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 260px;
    margin-bottom: 12px;
}

.cover img {
    max-height: 260px;
    width: auto;
    box-shadow: 0 8px 18px rgba(40, 24, 16, 0.16);
    transition: transform 0.18s ease;
}

.card a:hover img { transform: translateY(-4px); }

.no-cover {
    width: 120px;
    height: 180px;
    background: #f6f6f6;
    border: 1px solid var(--line);
}

.eur { margin: 8px 0 0; font-weight: 700; font-size: 15px; color: var(--red); }

.bgn { margin: 1px 0 0; color: #84786e; font-size: 13px; }

.card h2,
.by {
    margin: 8px 0 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
    font-family: var(--serif);
}

.by { font-family: inherit; font-style: italic; font-weight: 400; font-size: 13px; color: #84786e; }

.card a:hover h2 { color: var(--red); }

.mast,
.searchbar,
.foot { flex: 0 0 auto; }

main.page { flex: 1 0 auto; width: 100%; }

.page { padding-bottom: 48px; }

.page h1 {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 2rem;
    margin: 1.3rem 0 0.35rem;
}

.book {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    margin-top: 24px;
}

.book .cover {
    height: auto;
    align-self: start;
    align-items: flex-start;
    justify-content: flex-start;
}

.book .cover img { max-height: 420px; }

.prose { white-space: pre-wrap; }

.legal { max-width: 46rem; }

.legal h2 { font-size: 1.15rem; margin: 1.4rem 0 0.4rem; }

.legal h3 { font-size: 1rem; margin: 1.05rem 0 0.3rem; }

.legal p { margin: 0 0 0.75rem; }

.contact-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px 20px;
    max-width: 28rem;
    font-style: normal;
}

.contact-card p { margin: 0 0 8px; }

.contact-card a { color: var(--red); }

.cats { padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }

.cats a {
    text-decoration: none;
    border: 1px solid var(--line);
    padding: 4px 8px;
    font-size: 13px;
}

.buy { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 16px 0; }

.qty input { width: 70px; }

.muted { color: var(--muted); }

.reviews { list-style: none; padding: 0; }

.reviews li { border-top: 1px solid var(--line); padding: 12px 0; }

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
    align-items: start;
    margin-top: 8px;
}

.cart-line,
.summary-line {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: start;
}

.cart-line {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    margin: 0 0 12px;
}

.cart-line img,
.cart-cover {
    width: 72px;
    height: auto;
    border-radius: 2px;
}

.cart-cover { display: block; height: 96px; background: #efeae4; }

.cart-title {
    font-family: var(--serif);
    font-size: 1.15rem;
    text-decoration: none;
}

.cart-main .bgn { margin: 2px 0 0; }

.cart-sum { padding-top: 2px; }

.line-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.line-actions form { margin: 0; }

.qty-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.qty-form label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 13px;
}

.summary-line {
    align-items: center;
    border-bottom: 1px solid var(--line);
    padding: 8px 0;
}

.summary-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px 18px 18px;
    position: sticky;
    top: 88px;
}

.summary-card h2 { margin: 0 0 8px; font-size: 1.15rem; }

.summary-card .totals { margin: 8px 0 0; max-width: none; }

.summary-card .btn { margin-top: 14px; }

.checkout-form,
.pay-form,
.narrow {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
}

.narrow { max-width: 28rem; }

.pay-form { max-width: 28rem; }

.totals { margin-left: auto; max-width: 320px; }

.totals div,
.meta div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 6px 0;
    border-bottom: 1px solid var(--line);
}

.checkout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
    align-items: start;
}

.field { margin: 0 0 10px; }

.field label { display: block; font-size: 13px; margin-bottom: 4px; }

.field input,
.field textarea,
.field select { width: 100%; }

.checkout-form fieldset.field {
    border: 0;
    margin: 0 0 10px;
    padding: 0;
    min-inline-size: 0;
}

.checkout-form legend {
    padding: 0;
    font-size: 13px;
    margin-bottom: 6px;
}

.choices { display: flex; flex-direction: column; gap: 8px; }

.checkout-form .choices label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #d5cdc3;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    font-size: 15px;
}

.checkout-form .choices label:has(input:checked) {
    border-color: var(--red);
    box-shadow: inset 0 0 0 1px var(--red);
}

.checkout-form .choices input {
    width: 1.05rem;
    height: 1.05rem;
    margin: 0;
    padding: 0;
    flex: none;
    accent-color: var(--red);
    border: 0;
    background: transparent;
    box-shadow: none;
}

.errors { color: #a40000; padding-left: 18px; }

.account {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

a.btn {
    display: inline-block;
    text-decoration: none;
}

.desk-nav,
.desk-jump {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 18px;
}

.desk-nav a,
.desk-jump a {
    display: inline-block;
    text-decoration: none;
    background: #fff;
    border: 1px solid #d5cdc3;
    border-radius: 4px;
    padding: 8px 14px;
}

.desk-nav a.is-on {
    background: var(--bar);
    border-color: var(--bar);
    color: #fff;
}

.desk-nav a:hover,
.desk-jump a:hover { border-color: var(--ink); }

.desk-nav a.is-on:hover { border-color: var(--bar); color: #fff; }

.desk-jump a {
    padding: 6px 12px;
    font-size: 14px;
    color: var(--muted);
}

.desk-grid {
    display: grid;
    grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.desk-grid .summary-card { position: static; }

.desk-card dl { margin: 8px 0 4px; }

.desk-card dl div {
    display: grid;
    grid-template-columns: 7.2rem minmax(0, 1fr);
    gap: 8px;
    padding: 7px 0;
    border-bottom: 1px solid var(--line);
}

.desk-card dt { color: var(--muted); font-size: 13px; }

.desk-card dd { margin: 0; overflow-wrap: anywhere; }

.desk-card form { margin: 12px 0 0; }

.note {
    background: #fff;
    border: 1px solid var(--line);
    border-left: 3px solid var(--red);
    border-radius: 6px;
    padding: 10px 14px;
    margin: 0 0 14px;
}

.orders {
    list-style: none;
    padding: 0;
    margin: 0;
}

.orders li {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 10px 12px;
    margin: 0 0 8px;
}

.narrow h2 { font-size: 1.15rem; margin: 1.2rem 0 0.4rem; }

.narrow input[readonly] {
    background-color: #f3efe9;
    color: var(--muted);
}

.pager { margin: 10px 0 40px; }

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    padding: 0;
    justify-content: center;
}

.page-link {
    display: block;
    padding: 6px 10px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: var(--ink);
}

.page-item.active .page-link {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

.page-item.disabled .page-link { color: var(--muted); }

.foot {
    background: var(--bar);
    color: #efeae4;
    font-size: 14px;
    padding: 8px 0 calc(22px + env(safe-area-inset-bottom));
}

.foot-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px 48px;
    padding: 22px 0 8px;
}

.pay-mark {
    display: block;
    width: min(100%, 366px);
    height: auto;
    margin: 0 0 14px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 1px;
}

.tags a {
    color: #f3eee8;
    text-decoration: none;
    padding: 3px 5px;
    line-height: 1.35;
    border-radius: 2px;
}

.tags a:hover { color: #ff8a8a; }

.tags .w1 { font-size: 12px; }
.tags .w2 { font-size: 13px; }
.tags .w3 { font-size: 15px; }
.tags .w4 { font-size: 17px; font-weight: 600; }
.tags .w5 { font-size: 19px; font-weight: 700; }

.foot-menu,
.foot-social {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
}

.foot-menu {
    justify-content: center;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.foot-menu a,
.foot-social a,
.foot-copy a {
    color: #f3eee8;
    text-decoration: none;
}

.foot-menu a:hover,
.foot-social a:hover,
.foot-copy a:hover { color: #fff; }

.foot-base {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 24px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 13px;
}

.foot-copy { margin: 0; }

.balances { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 16px 0 24px; }

.balance {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px 16px;
}

.sheet-wrap { overflow-x: auto; margin: 8px 0 22px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }

.sheet { width: 100%; border-collapse: collapse; }

.sheet th,
.sheet td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }

.sheet th.num,
.sheet td.num { text-align: right; white-space: nowrap; }

.forgot { margin: 12px 0 0; font-size: 14px; }

.balance h2 { margin: 0 0 8px; }

.balance div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }

.setup { margin: 24px 0; }

@media (min-width: 761px) {
    .nav-check { display: none; }
}

@media (max-width: 1100px) {
    .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .logo img { height: 54px; }
    .bar { gap: 8px 16px; }
}

@media (max-width: 760px) {
    .bar {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: "logo tools" "nav nav";
        gap: 0 8px;
        min-height: 64px;
    }
    .logo { grid-area: logo; max-width: 168px; }
    .logo img { height: 48px; }
    .tools { grid-area: tools; }
    .menu-btn { display: grid; }
    .shop-nav {
        display: none;
        grid-area: nav;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 4px 0 8px;
        border-top: 1px solid var(--line);
    }
    .shop-nav a {
        border-radius: 0;
        padding: 13px 2px;
        border-bottom: 1px solid var(--line);
    }
    .shop-nav a.is-on { background: transparent; }
    .bar:has(.nav-check:checked) .shop-nav { display: flex; }
    .bar:has(.nav-check:checked) .nav-more { display: block; }
}

@media (max-width: 720px) {
    .wrap { padding-left: 14px; padding-right: 14px; }
    .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 10px; }
    .book,
    .checkout,
    .account,
    .desk-grid { display: block; }
    .desk-grid .summary-card { margin-top: 0; }
    .search-form {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
    }
    .searchbar select {
        grid-column: 1 / -1;
        max-width: none;
        width: 100%;
        margin: 0;
    }
    .query { grid-column: 1; }
    .search-form button { grid-column: 2; width: auto; margin: 0; align-self: stretch; }
    .refine button { width: 100%; margin-top: 8px; }
    .refine select,
    .refine input { width: 100%; min-width: 0; }
    .chips:not(.wrap) {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: thin;
        padding-bottom: 8px;
    }
    .balances,
    .people { grid-template-columns: 1fr; }
    .cover { height: 190px; }
    .cover img { max-height: 190px; }
    .spotlight .grid { grid-template-columns: 1fr 1fr; column-gap: 16px; }
    .spotlight .cover { width: min(100%, 200px); height: auto; }
    .spotlight .cover img { max-width: none; max-height: none; }
    .spotlight .by { margin-bottom: 26px; }
    .spotlight + .grid { margin-top: 8px; }
    .cart-layout { display: block; }
    .cart-line { grid-template-columns: 64px minmax(0, 1fr); }
    .cart-line img,
    .cart-cover { width: 64px; }
    .cart-sum { grid-column: 2; justify-self: start; }
    .summary-card { position: static; margin-top: 16px; }
    .totals { margin-left: 0; max-width: none; }
    .foot-top { grid-template-columns: 1fr; gap: 22px; }
    .foot-base { align-items: flex-start; }
}

.shelf {
    flex: 0 0 auto;
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 28px 0 36px;
}

.shelf-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) 232px;
    column-gap: 28px;
    row-gap: 28px;
    align-items: start;
}

.shelf-col { min-width: 0; }

.shelf-feature { grid-column: 4; grid-row: 1; }

.shelf-col h2 {
    margin: 0 0 6px;
    min-height: 2.4em;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.2;
    text-transform: uppercase;
}

.shelf-rows { list-style: none; margin: 0; padding: 0; }

.shelf-rows a {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    column-gap: 14px;
    align-items: center;
    min-height: 152px;
    text-decoration: none;
}

.shelf-rows a:hover strong { color: var(--red); }

.shelf-rows .thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 108px;
    aspect-ratio: 3 / 4;
    height: auto;
    overflow: hidden;
}

.shelf-rows img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center;
    box-shadow: 0 4px 12px rgba(40, 24, 16, 0.16);
}

.shelf-rows .no-cover { width: 100%; height: 100%; }

.shelf-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.shelf-copy strong {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.3;
}

.shelf-stars {
    display: flex;
    align-items: center;
    min-height: 14px;
}

.shelf-copy em {
    font-style: normal;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.2;
    color: var(--red);
    white-space: nowrap;
}

.stars { color: #d9d3cc; letter-spacing: 1px; font-size: 13px; line-height: 1; }

.stars .on { color: #e2a306; }

.shelf-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.shelf-feature .feature-cover {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    width: 100%;
    min-height: 180px;
    text-decoration: none;
}

.shelf-feature img {
    width: auto;
    max-width: 100%;
    max-height: 290px;
    box-shadow: 0 8px 18px rgba(40, 24, 16, 0.16);
}

.shelf-feature .no-cover { width: 140px; height: 200px; }

.shelf-feature .eur {
    margin: 14px 0 0;
    font-size: 1.25rem;
    line-height: 1.2;
}

.shelf-feature h2 {
    margin: 8px 0 0;
    max-width: 16em;
    font-family: var(--serif);
    font-weight: 500;
    font-size: 1.15rem;
    line-height: 1.3;
    text-transform: none;
    letter-spacing: 0;
    text-wrap: balance;
}

.shelf-feature h2 a { text-decoration: none; }

.shelf-feature .by { margin-top: 4px; }

.shelf-feature .stars { display: inline-block; margin-top: 8px; }

.shelf-feature form { margin: 12px 0 0; }

.shelf-feature .line-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.shelf-feature .line-btn svg { width: 18px; height: 18px; flex: none; }

@media (max-width: 980px) {
    .shelf-grid { grid-template-columns: 1fr 1fr; }
    .shelf-feature { grid-column: 1 / -1; grid-row: auto; order: -1; }
}

@media (max-width: 720px) {
    .shelf-grid { grid-template-columns: 1fr; }
    .shelf-feature { grid-column: auto; }
}
