/* PostgreSQL storefront compatibility layer. The visual baseline comes from
   the archived 2026-07-18 23:21 SQLite build (style.css/header-search.css). */
.pagination{display:flex;align-items:center;justify-content:center;gap:18px;margin:28px 0 48px}.pagination a{padding:10px 14px;border:1px solid #d9cbbd;border-radius:11px;background:#fffaf3;color:#a94737;font-weight:750;text-decoration:none}.pagination span{color:#81746a}
.nav{overflow:visible}.site-search{overflow:visible}.site-search .header-filters-button{height:42px;border-radius:11px;white-space:nowrap}.site-search-submit{height:42px}
.notice{margin:14px 0}
/* .card-quick-actions/.heart-button/.card-cart-button/.unified-book-card
   (and everything under it)/.book-grid/.collection-grid all moved to
   book-card.css 2026-07-22 (single source of truth for the card component). */
.collection-section{margin:34px 0 48px}.collection-section>header,.catalog-heading{display:flex;align-items:end;justify-content:space-between;gap:18px;margin:0 0 16px}.collection-section>header h2,.catalog-heading h1{margin:4px 0 0}.collection-section>header span,.result-count{color:#81746a}.collection-section>header>a{font-weight:750;color:#a94737}.welcome{display:none}
.book-summary{position:relative;display:grid;grid-template-columns:270px minmax(0,1fr);align-items:start;gap:30px;margin:28px 0;padding:28px;border-radius:24px;background:#fffaf3}.book-summary-cover{display:grid;height:390px;place-items:center}.book-summary-cover img{width:auto;max-width:100%;height:100%;object-fit:contain;border-radius:12px;box-shadow:0 12px 28px rgba(45,31,22,.18)}.book-summary-author{font-size:1.1rem;color:#77695e}.book-summary-author a{color:inherit;text-underline-offset:4px}.book-category-list{display:flex;gap:7px;flex-wrap:wrap;margin-top:14px}.book-category-list .badge{text-decoration:none}.book-summary-about{margin-top:18px;padding-top:15px;border-top:1px solid #e6dbce}.book-summary-about h2{margin:0 0 7px;font:800 .78rem Onest,sans-serif;letter-spacing:.05em;text-transform:uppercase}.book-summary-description{position:relative;color:#62574f;line-height:1.55}.book-summary-about.is-collapsible:not(.is-expanded) .book-summary-description{display:-webkit-box;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:3}.book-about-toggle{margin-top:8px;padding:0;border:0;background:transparent;color:#a94737;font-weight:750;cursor:pointer}.book-summary-actions{margin-top:16px}.book-summary-actions form{margin:0}.wishlist-primary{display:inline-flex;align-items:center;gap:7px;padding:10px 14px;border:1px solid #d9cbbd;border-radius:11px;background:#fff;color:#5b4c41;font-weight:750;text-decoration:none;cursor:pointer}
.work-editions-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin:36px 2px 17px}.work-editions-head h2{margin:3px 0 0}.work-edition{display:grid;grid-template-columns:112px minmax(0,1fr);gap:18px;padding:16px;border:1px solid #e5d8ca;border-radius:20px;background:#fffaf3}.work-edition.format-electronic{border-color:#c8d9ee;background:linear-gradient(120deg,#f5f9ff,#edf5ff)}.work-edition+.work-edition{margin-top:14px}.work-edition-cover{display:grid;min-height:145px;place-items:center;align-self:start}.work-edition-cover img{width:auto;max-width:100%;height:145px;object-fit:contain;border-radius:8px;box-shadow:0 7px 15px rgba(45,31,22,.18)}.work-edition-content{min-width:0}.work-edition-heading{display:flex;align-items:start;justify-content:space-between;gap:16px}.work-edition-heading h3{margin:8px 0 5px;font-family:Literata,Georgia,serif}.edition-card-chips{display:flex;gap:6px;flex-wrap:wrap}.edition-card-chips span{display:inline-flex;height:25px;align-items:center;padding:0 9px;border:1px solid #e4d6c7;border-radius:999px;background:#f4ebe1;font-size:.64rem;font-weight:750}.edition-card-chips .edition-language-chip{background:#e6f0e4;color:#3e6c42}.edition-heading-meta{color:#81746a;font-size:.78rem}.work-edition-price{text-align:right;white-space:nowrap}.work-edition-price strong{display:block;color:#a94737;font-family:Literata,Georgia,serif;font-size:1.35rem}.work-edition-price span{font-size:.7rem;color:#81746a}.edition-offers{margin-top:14px}.offer-row-modern{display:grid;grid-template-columns:minmax(155px,.8fr) minmax(105px,.45fr) minmax(220px,1.2fr) auto;align-items:center;gap:16px;padding:14px;border-top:1px solid #ece2d6;background:rgba(255,255,255,.58)}.offer-row-modern:first-child{border-radius:12px 12px 0 0;border-top:0}.offer-row-modern:last-child{border-radius:0 0 12px 12px}.offer-row-modern.unavailable{opacity:.72}.offer-shop{display:flex;flex-direction:column;align-items:flex-start;gap:5px}.stock-pill{padding:4px 8px;border-radius:999px;background:#e3f2e4;color:#2e7a4d;font-size:.68rem}.stock-pill.out{background:#eee9e3;color:#7b7067}.offer-price-main{font:800 1.2rem Literata,serif}.offer-price-old{margin-left:7px;color:#978b80;font:400 .72rem Onest,sans-serif;text-decoration:line-through}.offer-programs-modern{display:flex;gap:5px;flex-wrap:wrap}.offer-updated{margin-top:4px;color:#91857a;font-size:.65rem}.offer-actions{display:flex;align-items:center;gap:7px}.offer-actions form{margin:0}.offer-cart-button{display:grid;width:40px;height:40px;place-items:center;padding:0;border:1px solid #d9cbbd;border-radius:11px;background:#fff;color:#176d4f;font-size:1.2rem;text-decoration:none;cursor:pointer}.store-link{padding:10px 12px;border-radius:11px;background:#eee9e3;color:#352a23;font-weight:750;text-decoration:none;white-space:nowrap}
.filter-overlay[hidden]{display:none}.filter-overlay{position:fixed;z-index:80;inset:0;background:rgba(38,29,22,.28);backdrop-filter:blur(3px)}.filter-sheet{position:absolute;top:82px;left:50%;box-sizing:border-box;width:min(1180px,calc(100vw - 32px));max-height:calc(100vh - 100px);padding:22px;transform:translateX(-50%);overflow:visible auto;border:1px solid #dfd2c5;border-radius:20px;background:#fffaf3;box-shadow:0 24px 65px rgba(45,31,22,.22)}.filter-sheet>header{display:flex;justify-content:space-between}.filter-sheet>header h2{margin:4px 0}.filter-sheet>header p{margin:4px 0 16px;color:#7a6e65}.filter-sheet>header button{border:0;background:transparent;font-size:1.6rem}.filter-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.facet{position:relative}.facet summary{display:flex;height:42px;box-sizing:border-box;align-items:center;justify-content:space-between;padding:0 12px;border:1px solid #ded2c6;border-radius:10px;background:#fff;cursor:pointer;list-style:none}.facet summary span{font-size:.68rem;color:#9a8775}.facet-popover{position:fixed;z-index:100;width:300px;padding:10px;border:1px solid #dfd2c5;border-radius:12px;background:#fffdf9;box-shadow:0 16px 38px rgba(65,45,30,.18)}.facet-popover>input{box-sizing:border-box;width:100%;height:38px;margin-bottom:8px}.facet-options{max-height:300px;overflow:auto}.facet-options label{display:flex;align-items:center;gap:8px;padding:8px;border-radius:8px}.facet-options label:hover{background:#f6ede4}.price-field{display:flex;flex-direction:column;gap:5px}.stock-check{display:flex;align-items:center;gap:8px}.filter-sheet>footer{display:flex;align-items:center;justify-content:flex-end;gap:15px;margin-top:18px}.filter-sheet>footer button{padding:11px 18px}.card-cart-dialog{width:min(420px,calc(100vw - 32px));padding:24px;border:1px solid #dfd2c5;border-radius:20px;background:#fffaf3;box-shadow:0 24px 65px rgba(45,31,22,.28)}.card-cart-dialog::backdrop{background:rgba(38,29,22,.42)}.dialog-close-row{display:flex;justify-content:flex-end}.dialog-close-row button{border:0;background:transparent;font-size:1.5rem}.cart-format-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.cart-format-actions button{padding:13px}.cart-format-actions button:disabled{opacity:.4}
@media(max-width:1100px){.filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:900px){.offer-row-modern{grid-template-columns:1fr 120px}.offer-programs-modern,.offer-updated{grid-column:1}.offer-actions{grid-column:2;grid-row:1/3}.book-summary{grid-template-columns:210px minmax(0,1fr)}.book-summary-cover{height:320px}}@media(max-width:820px){.filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.nav-links{display:none}}@media(max-width:650px){.book-summary{grid-template-columns:1fr;padding:18px}.book-summary-cover{height:300px}.work-edition{grid-template-columns:76px minmax(0,1fr);gap:12px}.work-edition-cover img{height:110px}.work-edition-heading{display:block}.work-edition-price{margin-top:9px;text-align:left}.offer-row-modern{grid-template-columns:1fr}.offer-actions,.offer-programs-modern,.offer-updated{grid-column:1;grid-row:auto}}@media(max-width:600px){.site-search .header-filters-button{font-size:0;width:42px;padding:0}.site-search .header-filters-button span{font-size:1rem}.filter-grid{grid-template-columns:1fr}.filter-sheet{top:70px}}

.icon{display:block;width:21px;height:21px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.nav-links{display:flex;align-items:center;gap:7px}.nav-icon{position:relative;display:grid;width:42px;height:42px;place-items:center;border:1px solid transparent;border-radius:12px;color:#55483e}.nav-icon:hover{border-color:#dfd2c5;background:#f4ece2}.nav-icon>b{position:absolute;top:-5px;right:-5px;display:grid;min-width:19px;height:19px;place-items:center;padding:0 5px;border:2px solid #fffaf3;border-radius:999px;background:#ad4937;color:#fff;font-size:10px;line-height:1}.site-search-icon .icon{width:20px;height:20px}.header-filters-button{display:flex;align-items:center;gap:6px}.header-filters-button .icon{width:18px;height:18px}
body.filters-visible{overflow:auto}.filter-overlay{position:fixed;z-index:80;inset:66px 0 auto;display:flex;justify-content:center;padding:10px 18px;background:transparent;backdrop-filter:none;pointer-events:none}.filter-overlay[hidden]{display:none}.filter-sheet{position:static;width:min(1080px,calc(100vw - 36px));max-height:calc(100vh - 90px);margin:0;padding:16px 18px;transform:none;overflow:visible auto;border-radius:17px;box-shadow:0 18px 48px rgba(45,31,22,.2);pointer-events:auto}.filter-sheet>header p,.filter-sheet>header .eyebrow{display:none}.filter-sheet h2{font-size:1.25rem!important}.filter-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;margin-top:9px}.facet summary,.price-field,.stock-check{min-height:44px!important;height:44px!important}.filter-sheet>footer{margin-top:12px}.facet-popover{max-height:330px}.facet-options{max-height:245px}
/* .card-quick-actions/.edition-card-price/.edition-price-format sizing
   moved to book-card.css 2026-07-22. .card-count was dead (not used by
   any current template). */
@media(max-width:1100px){.filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:700px){.filter-overlay{inset:62px 0 auto;padding:8px}.filter-sheet{width:calc(100vw - 16px);max-height:calc(100vh - 76px)}.filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.nav-links{gap:2px}.nav-icon{width:36px;height:36px}}

.wishlist-grid{align-items:start}.wishlist-card-wrap{min-width:0}.wishlist-settings{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:14px 5px 0;padding:13px;border:1px solid #dfd2c5;border-radius:14px;background:#fffaf3;font-size:.72rem}.wishlist-settings label:first-child{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between}.wishlist-settings input[type=number]{width:105px;padding:7px;border:1px solid #ded2c6;border-radius:8px}.wishlist-settings button{padding:8px;border:0;border-radius:8px;background:#176d4f;color:#fff;font-weight:750}.wishlist-settings .link-danger{background:transparent;color:#a94737}
.cart-heading p{max-width:720px;color:#77695e}.cart-summary{display:flex;flex-direction:column;align-items:flex-end}.cart-summary strong{color:#176d4f;font:800 2rem Literata,serif}.cart-summary span,.cart-summary small{color:#81746a}.cart-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:22px;align-items:start}.cart-main{display:grid;gap:17px}.cart-store,.cart-aside{border:1px solid #dfd2c5;border-radius:20px;background:#fffaf3}.cart-store>header{display:flex;align-items:end;justify-content:space-between;padding:18px 20px;border-bottom:1px solid #e8ddd1}.cart-store h2{margin:3px 0 0}.cart-store>header>strong{font:800 1.35rem Literata,serif;color:#176d4f}.cart-product{display:grid;grid-template-columns:62px minmax(0,1fr) auto auto;align-items:center;gap:14px;padding:14px 20px;border-bottom:1px solid #eee4d9}.cart-product:last-child{border-bottom:0}.cart-product>img{width:58px;height:78px;object-fit:contain;border-radius:7px}.cart-product h3{margin:0;font-size:.9rem}.cart-product p,.cart-product span{margin:3px 0;color:#81746a;font-size:.72rem}.cart-product>strong{white-space:nowrap}.cart-product-actions{display:flex;flex-direction:column;align-items:flex-end;gap:6px;font-size:.7rem;font-weight:700}.cart-product-actions button{padding:0;border:0;background:transparent;color:#a94737}.cart-aside{position:sticky;top:82px;padding:22px}.cart-aside h2{margin:5px 0 20px}.cart-total-row{display:flex;justify-content:space-between;padding:14px 0;border-block:1px solid #e5d9cc}.cart-aside>p{color:#81746a;font-size:.76rem;line-height:1.5}.single-store-option{display:flex;flex-direction:column;gap:4px;margin-top:18px;padding:13px;border-radius:12px;background:#edf4ed}.single-store-option small{color:#627366}.empty-state>a{display:inline-block;margin-top:8px;color:#a94737;font-weight:750}
.admin-links .panel{transition:.18s ease}.admin-links .panel:hover{transform:translateY(-3px);box-shadow:0 12px 30px rgba(54,38,25,.09)}
@media(max-width:1000px){.cart-layout{grid-template-columns:1fr}.cart-aside{position:static;order:-1}}@media(max-width:820px){.nav-links{display:flex;grid-column:1/-1;justify-content:flex-end}}@media(max-width:650px){.cart-product{grid-template-columns:48px 1fr auto;padding:12px}.cart-product>img{width:45px;height:64px}.cart-product-actions{grid-column:2/-1;flex-direction:row;justify-content:space-between}.wishlist-settings{grid-template-columns:1fr}}
.secondary-action{padding:10px 14px;border:1px solid #d8cabb;border-radius:11px;background:#fffaf3;color:#493d34;font-weight:750}.notification-item{position:relative}.notification-meta{display:flex;align-items:center;justify-content:space-between;color:#8c7d70;font-size:.72rem}.notification-meta b{padding:4px 8px;border-radius:999px;background:#e7f1e9;color:#246243}.notification-item h2{margin:9px 0 5px;font-size:1.15rem}.notification-item p{color:#74675d}.notification-item>a{color:#a94737;font-weight:750}.wishlist-primary .icon,.offer-cart-button .icon{width:19px;height:19px}

/* Search controls: compact icon actions with a calm, continuous field. */
.nav .site-search{max-width:820px;height:48px;border-radius:15px}.site-search>input{padding-inline:8px;font-size:.88rem}.site-search .header-filters-button,.site-search .site-search-submit{display:grid;width:48px;min-width:48px;height:40px;padding:0;place-items:center;border-left:1px solid #e4d8cc;border-radius:0;background:#fff;color:#69594c}.site-search .site-search-submit{margin-left:0;border-radius:0 11px 11px 0;background:#ad4937;color:#fff}.site-search .header-filters-button:hover{background:#f4ece2}.site-search .site-search-submit:hover{background:#963b2e}.site-search .icon{width:21px;height:21px}

/* The filter surface is one stable dropdown; option panels float without reflow. */
.filter-overlay{inset:72px 0 auto;padding-top:6px}.filter-sheet{width:min(1120px,calc(100vw - 32px));padding:14px 16px 16px;overflow:visible}.filter-sheet>header{align-items:center}.filter-sheet>header h2{margin:0!important;font:800 1.1rem Onest,sans-serif!important}.filter-sheet>header button{display:grid;width:34px;height:34px;place-items:center;border-radius:9px;background:#f2e9df!important;color:#5d4f44}.filter-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-top:10px}.facet{min-width:0}.facet>summary{height:46px!important;min-height:46px!important;padding:0 12px!important;border-color:#ded2c6!important;border-radius:11px!important}.facet>summary strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.facet>summary span{flex:none}.facet-popover{box-sizing:border-box;width:320px;max-height:352px;padding:10px;overflow:hidden;border-radius:14px}.facet-popover>input{height:41px;padding:0 11px;border:1px solid #d8cabb;border-radius:9px}.facet-options{max-height:282px;padding-right:3px}.facet-options label{box-sizing:border-box;display:flex;min-height:40px;align-items:center;padding:7px 8px;line-height:1.25}.facet-options label[hidden]{display:none}.facet-options label input{flex:0 0 18px}.price-field,.stock-check{box-sizing:border-box;height:46px!important;min-height:46px!important;padding:5px 11px!important;border:1px solid #ded2c6!important;border-radius:11px!important;background:#fff!important}.price-field input{font-size:.8rem}.filter-sheet>footer{margin-top:11px;padding-top:11px;border-top:1px solid #eadfd4}.filter-sheet>footer button{padding:10px 15px;border:0;border-radius:10px;background:#ad4937;color:#fff;font-weight:800}

.cart-edition-picker{display:grid;gap:8px;margin-top:15px}.cart-edition-choice{display:flex;width:100%;align-items:center;justify-content:space-between;gap:16px;padding:13px;border:1px solid #dcd0c3;border-radius:13px;background:#fff;color:#332921;text-align:left}.cart-edition-choice:hover{border-color:#8aac93;background:#f2f7f2}.cart-edition-choice.format-electronic{border-color:#c7d8ec;background:#f4f8ff}.cart-edition-choice span{display:flex;min-width:0;flex-direction:column}.cart-edition-choice small{margin-top:3px;overflow:hidden;color:#81746a;text-overflow:ellipsis;white-space:nowrap}.cart-edition-choice b{flex:none;color:#176d4f}.cart-edition-choice.format-electronic b{color:#2c63ae}.ui-toast{position:fixed;z-index:300;right:24px;bottom:24px;padding:12px 16px;border-radius:12px;background:#263c32;color:#fff;box-shadow:0 14px 35px rgba(32,24,18,.25);opacity:0;transform:translateY(12px);pointer-events:none;transition:.18s ease}.ui-toast.is-visible{opacity:1;transform:none}

.work-edition-price-actions{display:flex;align-items:center;gap:11px}.edition-cart-button{display:grid;width:44px;height:44px;place-items:center;border:1px solid #cbdacb;border-radius:12px;background:#e7f1e9;color:#176d4f;cursor:pointer}.edition-cart-button:hover{background:#d9eadc}.edition-cart-button .icon{width:21px;height:21px}.work-edition.format-electronic .edition-cart-button{border-color:#c4d5eb;background:#e4effd;color:#2c63ae}.offer-actions{justify-content:flex-end}

.cart-editor{margin-bottom:18px;border:1px solid #dfd2c5;border-radius:18px;background:#fffaf3}.cart-editor>header{display:flex;align-items:center;justify-content:space-between;padding:15px 18px;border-bottom:1px solid #e8ddd1}.cart-editor h2{margin:0;font-size:1.1rem}.cart-editor>header span{color:#81746a;font-size:.72rem}.cart-editor>article{display:grid;grid-template-columns:48px minmax(0,1fr) auto auto;align-items:center;gap:12px;padding:10px 18px;border-bottom:1px solid #eee4d9}.cart-editor>article:last-child{border-bottom:0}.cart-editor img{width:43px;height:58px;object-fit:contain;border-radius:5px}.cart-editor article>div{display:flex;min-width:0;flex-direction:column}.cart-editor article>div strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cart-editor article>div span{color:#81746a;font-size:.7rem}.cart-editor form{display:flex;align-items:end;gap:6px}.cart-editor label{display:flex;flex-direction:column;gap:3px;color:#81746a;font-size:.65rem}.cart-editor input{width:64px;padding:7px;border:1px solid #d8cabb;border-radius:8px}.cart-editor button{padding:8px 10px;border:0;border-radius:8px;background:#eee5db;color:#493d34;font-weight:700}.cart-editor .link-danger{background:transparent;color:#a94737}.cart-plan-tabs{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:18px}.cart-plan-tabs button{display:grid;grid-template-columns:1fr auto;gap:3px 14px;padding:15px 18px;border:1px solid #dfd2c5;border-radius:15px;background:#fffaf3;color:#493d34;text-align:left}.cart-plan-tabs button.is-active{border-color:#83aa8f;background:#edf5ef;box-shadow:0 0 0 2px rgba(73,130,91,.08)}.cart-plan-tabs span{font-weight:800}.cart-plan-tabs strong{grid-row:1/3;grid-column:2;align-self:center;font:800 1.2rem Literata,serif;color:#176d4f}.cart-plan-tabs small{color:#81746a}.cart-plan-panel[hidden]{display:none}
@media(max-width:900px){.filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:700px){.nav .site-search{height:44px}.filter-overlay{inset:64px 0 auto}.filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cart-plan-tabs{grid-template-columns:1fr}.cart-editor>article{grid-template-columns:42px 1fr}.cart-editor form{grid-column:2}.cart-editor>article>form:last-child{grid-column:2;justify-self:end;margin-top:-41px}}@media(max-width:430px){.filter-grid{grid-template-columns:1fr}.filter-sheet{max-height:calc(100vh - 72px);overflow:auto}.facet-popover{width:calc(100vw - 20px)}.site-search .header-filters-button,.site-search .site-search-submit{width:42px;min-width:42px}}

/* Stable multi-select feedback: choices stay aligned and the popover may
   escape the compact filter sheet without forcing a second scrollbar. */
.facet.has-selection>summary{border-color:#7da58a!important;background:#f1f7f2!important}
.facet.has-selection>summary span{color:#176d4f!important;font-weight:800}
.facet-options label:has(input:checked){background:#edf5ef;color:#176d4f;font-weight:700}
.facet-popover{overscroll-behavior:contain}
.facet-popover>input:focus{outline:3px solid rgba(44,99,174,.15);border-color:#6d8fbd}
.filter-sheet>footer a{padding:9px 4px;color:#6e5c4e;font-weight:700}
