/* Isolate FiWEH archive cards from generic WooCommerce cover/link rules. */
body.fbp .fbp-shop-results ul.products{align-items:stretch!important;grid-auto-rows:auto;column-gap:24px!important;row-gap:32px!important}
body.fbp .fbp-shop-results ul.products>li.product{display:flex!important;align-items:stretch;min-width:0;height:auto!important;float:none!important;position:relative}
body.fbp .fbp-shop-results ul.products>li.product>.fbp-market-book{display:flex!important;flex-direction:column!important;flex:1 1 auto;min-width:0;width:100%;height:auto!important;gap:16px;box-sizing:border-box}
body.fbp .fbp-shop-results .fbp-market-book>.fbp-market-cover{position:relative!important;inset:auto!important;transform:none!important;display:flex!important;align-items:center!important;justify-content:center!important;flex:0 0 260px!important;width:100%!important;height:260px!important;min-height:0!important;padding:0!important;margin:0!important;box-sizing:border-box;overflow:hidden}
body.fbp .fbp-shop-results .fbp-market-cover>img{position:static!important;inset:auto!important;transform:none!important;display:block!important;width:auto!important;height:100%!important;max-width:100%!important;max-height:100%!important;margin:0!important;padding:0!important;object-fit:contain!important;box-sizing:border-box}
body.fbp .fbp-shop-results .fbp-market-book>.fbp-market-copy{position:static!important;inset:auto!important;transform:none!important;display:flex!important;flex-direction:column!important;flex:1 1 auto;min-width:0;width:100%;height:auto!important;gap:8px;margin:0!important;padding:0!important;opacity:1!important;visibility:visible!important;text-align:left}
body.fbp .fbp-shop-results .fbp-market-copy>:is(h3,p,.fbp-market-price,.fbp-market-rating,.fbp-market-actions){position:static!important;inset:auto!important;transform:none!important;float:none!important;max-width:100%;height:auto;opacity:1!important;visibility:visible!important;overflow-wrap:anywhere}
body.fbp .fbp-shop-results .fbp-market-copy>.fbp-market-actions{margin-top:auto!important;padding-top:12px;align-items:flex-start!important;justify-content:flex-start!important}
@media(max-width:600px){body.fbp .fbp-shop-results .fbp-market-book>.fbp-market-cover{flex-basis:210px!important;height:210px!important}}
/* Widget filters stay managed by their existing sidebar/widget area. */
body.fbp.woocommerce-shop .sidebar .sidebar_inner,body.fbp.tax-product_cat .sidebar .sidebar_inner,body.fbp.tax-product_tag .sidebar .sidebar_inner,body.fbp[class*="tax-pa_"] .sidebar .sidebar_inner{background:#fff!important;border:1px solid #dce0e5!important;border-radius:12px;padding:22px!important;box-sizing:border-box;color:#24364a;box-shadow:0 4px 18px #00000006}
body.fbp.woocommerce-shop .sidebar .widget,body.fbp.tax-product_cat .sidebar .widget,body.fbp.tax-product_tag .sidebar .widget{background:transparent!important;box-shadow:none!important;margin-bottom:24px}
body.fbp .fbp-shop-results ul.products>li.product>.fbp-market-book{background:var(--fbp-panel,#fff)!important;border:1px solid #dce0e5!important;border-radius:10px!important;padding:16px!important}
body.fbp .fbp-shop-results .fbp-market-author a{font-size:13px;color:var(--fbp-ink);text-decoration:none}
body.fbp .fbp-shop-results .fbp-market-copy h3{font-size:16px!important;line-height:1.4!important;min-height:2.8em;margin:0!important}
body.fbp .fbp-shop-results .fbp-market-actions{flex-direction:row!important;flex-wrap:wrap!important;gap:8px}
body.fbp .fbp-commerce-amazon .fbp-shop-results .fbp-market-book{border-radius:2px!important;border-color:transparent!important}
body.fbp .fbp-commerce-amazon .fbp-shop-results h3{font-family:Arial,sans-serif!important}
body.fbp :is(.fbp-commerce-barnes-noble,.fbp-commerce-classic,.fbp-commerce-indie-bookshop,.fbp-commerce-fiweh-original,.fbp-commerce-publisher) .fbp-shop-results h3{font-family:Georgia,serif!important}
body.fbp .fbp-commerce-bookshop-inspired .fbp-shop-results .fbp-market-book{border-radius:12px!important}
body.fbp .fbp-commerce-fiweh-original .fbp-shop-results .fbp-market-book{background:#ffffff!important;color:#24364a;--fbp-ink:#24364a;--fbp-panel:#fff}
/* Mockup heading: breadcrumb, plain title, intro, then a subtle divider. */
body.fbp .fbp-shop-mockup-heading{display:block!important;background:#fff!important;color:#24364a;--fbp-ink:#24364a;border:1px solid #dce2e8!important;border-radius:12px!important;padding:clamp(20px,4vw,40px)!important;margin:0 0 24px!important;box-shadow:0 5px 20px #00000008!important;text-align:left}
body.fbp .fbp-shop-mockup-heading .woocommerce-breadcrumb{display:block!important;position:static!important;margin:0 0 14px!important;padding:0!important;background:transparent!important;border:0!important;font:400 12px/1.5 Arial,sans-serif!important;color:#68747d!important}
body.fbp .fbp-shop-mockup-heading .woocommerce-breadcrumb a{color:#68747d!important;text-decoration:none}
body.fbp .fbp-shop-mockup-heading h1{margin:0 0 12px!important;padding:0!important;font-size:clamp(28px,3vw,36px)!important;line-height:1.2!important;color:var(--fbp-ink,#24364a)!important;text-transform:none!important;letter-spacing:normal!important}
body.fbp .fbp-shop-mockup-heading>p{margin:0!important;font:400 14px/1.6 Arial,sans-serif!important;color:var(--fbp-ink,#54616c);opacity:.8}
body.fbp .fbp-shop-mockup-heading>p:empty{display:none}
/* Shared parent container owns the heading and both columns. */
body.fbp .content_wrap:has(>.fbp-shop-mockup-heading){display:grid!important;grid-template-columns:minmax(0,1fr);gap:0 var(--fbp-shop-sidebar-gap,30px);align-items:start}
body.fbp .content_wrap:has(>.fbp-shop-mockup-heading):has(>.sidebar){grid-template-columns:minmax(180px,240px) minmax(0,1fr)}
body.fbp .content_wrap>.fbp-shop-mockup-heading{grid-column:1/-1;grid-row:1;float:none!important;width:100%!important;box-sizing:border-box}
body.fbp .content_wrap:has(>.fbp-shop-mockup-heading)>.content{grid-column:1;grid-row:2;float:none!important;width:100%!important;min-width:0;margin:0!important;box-sizing:border-box}
body.fbp .content_wrap:has(>.fbp-shop-mockup-heading):has(>.sidebar)>.content{grid-column:2}
body.fbp .content_wrap:has(>.fbp-shop-mockup-heading)>.sidebar{grid-column:1;grid-row:2;float:none!important;width:100%!important;min-width:0;margin:0!important;box-sizing:border-box}
body.fbp .content_wrap:has(>.fbp-shop-mockup-heading)>.clearfix{display:none!important}
body.fbp .fbp-shop-results ul.products{grid-template-columns:repeat(var(--fbp-shop-columns,4),minmax(0,1fr))!important;column-gap:var(--fbp-shop-item-gap,24px)!important}
body.fbp .fbp-shop-results ul.products>li.product{width:100%!important;max-width:var(--fbp-shop-card-width,100%);justify-self:center;margin:0!important;box-sizing:border-box}
@media(max-width:1000px){body.fbp .fbp-shop-results ul.products{grid-template-columns:repeat(min(var(--fbp-shop-columns,4),3),minmax(0,1fr))!important}}
@media(max-width:700px){body.fbp .content_wrap:has(>.fbp-shop-mockup-heading):has(>.sidebar){grid-template-columns:minmax(0,1fr)}body.fbp .content_wrap:has(>.fbp-shop-mockup-heading):has(>.sidebar)>.content{grid-column:1;grid-row:3}body.fbp .content_wrap:has(>.fbp-shop-mockup-heading)>.sidebar{grid-row:2;margin-bottom:24px!important}body.fbp .fbp-shop-results ul.products{grid-template-columns:repeat(min(var(--fbp-shop-columns,4),2),minmax(0,1fr))!important}}
@media(max-width:380px){body.fbp .fbp-shop-results ul.products{grid-template-columns:minmax(0,1fr)!important}}
/* Use the same palette borders as the shared FiWEH page title cards. */
body.fbp .fbp-shop-mockup-heading{border-color:var(--fbp-accent)!important;border-left:4px solid var(--fbp-brand)!important}
