
/*
Theme Name: Bookstore Dev Free
Author URI: https://codenirvaan.com/
Author: CodeNirvaan
Description: Responsive WooCommerce bookstore theme with book catalog navigation, storefront customization and author and publisher archive templates.
Version: 1.0.4
Requires at least: 6.5
Requires PHP: 8.1
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tested up to: 6.8
Tags: e-commerce, full-site-editing, block-patterns, custom-logo
Text Domain: bookstore-dev-free
*/

/* Bookstore Dev storefront header */

.bp-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.bp-topbar {
    background: #173b78;
    color: #ffffff;
    padding: 8px 20px;
    font-size: 13px;
}

.bp-topbar p {
    margin: 0;
}

.bp-main-header {
    padding: 22px 20px;
    gap: 24px;
}

.bp-main-header .wp-block-site-title {
    font-size: 28px;
    font-weight: 800;
}

.bp-main-header .wp-block-search {
    flex: 1;
    max-width: 600px;
}

.bp-main-header .wp-block-search__input {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 12px;
}

.bp-main-header .wp-block-search__button {
    background: #2346a0;
    color: white;
    border-radius: 6px;
}

.bp-header .wp-block-navigation {
    padding: 12px 20px;
    border-top: 1px solid #e5e7eb;
}

@media (max-width: 768px) {
    .bp-main-header {
        flex-direction: column;
        align-items: stretch;
    }

    .bp-main-header .wp-block-search {
        max-width: 100%;
    }

    .bp-topbar {
        font-size: 11px;
    }
}

/* Bookstore Pro - Homepage Layout */

.bp-home-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 70px;
}

.bp-home-content h1 {
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.2;
    margin-bottom: 12px;
}

.bp-home-content h2 {
    font-size: 26px;
    margin-top: 40px;
    margin-bottom: 24px;
}

.bp-home-content .wp-block-woocommerce-product-collection {
    width: 100%;
}

.bp-home-content .wc-block-product {
    min-width: 0;
}

.bp-home-content .wc-block-components-product-image img {
    width: 100%;
    height: 280px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .bp-home-content {
        padding: 24px 16px 48px;
    }

    .bp-home-content h2 {
        font-size: 22px;
    }
}

/* v1.0.1: Responsive WooCommerce shortcode product grid */
.bp-home-content .woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
}
.bp-home-content .woocommerce ul.products::before,
.bp-home-content .woocommerce ul.products::after { display: none; }
.bp-home-content .woocommerce ul.products li.product {
  float: none;
  width: auto;
  margin: 0;
  min-width: 0;
}
.bp-home-content .woocommerce ul.products li.product img {
  width: 100%;
  height: 280px;
  object-fit: contain;
}
@media (max-width: 900px) {
  .bp-home-content .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .bp-home-content .woocommerce ul.products { grid-template-columns: minmax(0, 1fr); }
}

/* Bookstore Pro v1.0.2 — storefront design */
:root{--bp-ink:#17243a;--bp-blue:#2446a5;--bp-muted:#66748a;--bp-line:#e6eaf1;--bp-bg:#f6f8fc;--bp-orange:#f4a51c}
body{margin:0;color:var(--bp-ink);background:#fff;font-family:Arial,sans-serif}
.bp-header{max-width:none!important;width:100%;border-bottom:1px solid var(--bp-line)}
.bp-header>.wp-block-group{box-sizing:border-box}
.bp-topbar{background:#173b78!important;color:#fff;max-width:none!important;padding:8px max(20px,calc((100vw - 1240px)/2))!important;min-height:20px}
.bp-main-header{max-width:1240px!important;margin:0 auto!important;padding:18px 22px!important;gap:26px;align-items:center}
.bp-main-header .wp-block-site-title{font-size:28px;font-weight:800;white-space:nowrap}
.bp-main-header .wp-block-site-title a{color:var(--bp-ink);text-decoration:none}
.bp-main-header .wp-block-search{max-width:650px;min-width:230px;flex:1}
.bp-main-header .wp-block-search__inside-wrapper{border:1px solid #d7deeb;border-radius:9px;overflow:hidden;padding:4px;background:#fff}
.bp-main-header .wp-block-search__input{border:0!important;outline:0}
.bp-main-header .wp-block-search__button{background:var(--bp-blue);border:0;border-radius:7px;padding:12px 18px}
.bp-header .wp-block-navigation{max-width:1240px;margin:0 auto;padding:12px 22px;border-top:1px solid var(--bp-line);gap:28px}
.bp-header .wp-block-navigation a{text-decoration:none;font-weight:600;font-size:14px}
.bp-header .wp-block-navigation a:hover{color:var(--bp-blue)}
.bp-home-content{max-width:1240px!important;margin:0 auto!important;padding:30px 22px 65px!important}
.bp-home-content h1{font-size:clamp(32px,4vw,54px);line-height:1.12;letter-spacing:-.035em}
.bp-home-content h2{font-size:clamp(23px,2.4vw,30px);letter-spacing:-.025em;margin:0 0 20px}
.bp-hero{background:linear-gradient(115deg,#eef3ff 0%,#f8faff 63%,#fff3dc 100%);border-radius:18px;padding:clamp(26px,4vw,62px);margin:8px 0 36px;min-height:260px;display:flex;align-items:center;position:relative;overflow:hidden}
.bp-hero:after{content:'📚';position:absolute;right:7%;top:12%;font-size:clamp(90px,12vw,175px);opacity:.85;transform:rotate(-9deg)}
.bp-hero-content{max-width:620px;position:relative;z-index:1}.bp-eyebrow{font-size:13px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--bp-blue)}
.bp-hero p{font-size:17px;color:#52627b;max-width:500px;line-height:1.65}.bp-btn{display:inline-block;background:var(--bp-blue);color:#fff!important;text-decoration:none;font-weight:700;border-radius:9px;padding:13px 24px;margin-top:12px}.bp-btn:hover{background:#15347f}
.bp-benefits{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:0 0 45px}.bp-benefit{border:1px solid var(--bp-line);border-radius:12px;padding:18px 20px;background:#fff;font-size:14px}.bp-benefit strong{display:block;font-size:16px;margin-bottom:5px}.bp-benefit span{color:var(--bp-muted)}
.bp-section{margin:0 0 46px}.bp-section-head{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-bottom:20px}.bp-section-head h2{margin:0}.bp-section-head a{font-weight:700;color:var(--bp-blue);text-decoration:none;font-size:14px}
.bp-category-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.bp-category{display:block;border:1px solid var(--bp-line);background:var(--bp-bg);padding:24px 18px;border-radius:13px;text-decoration:none;color:var(--bp-ink);font-weight:700;text-align:center;transition:transform .15s,border-color .15s}.bp-category:hover{transform:translateY(-2px);border-color:#bdc9e8}.bp-category .bp-category-icon{display:block;font-size:35px;margin-bottom:12px}.bp-category small{display:block;font-weight:400;color:var(--bp-muted);margin-top:7px}
.bp-home-content .woocommerce ul.products{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px;list-style:none;padding:0!important;margin:0!important}.bp-home-content .woocommerce ul.products:before,.bp-home-content .woocommerce ul.products:after{display:none!important}.bp-home-content .woocommerce ul.products li.product{float:none!important;width:auto!important;margin:0!important;min-width:0;border:1px solid var(--bp-line);border-radius:13px;padding:16px!important;position:relative;transition:box-shadow .2s;background:#fff;display:flex;flex-direction:column}.bp-home-content .woocommerce ul.products li.product:hover{box-shadow:0 12px 30px rgba(26,48,84,.09)}.bp-home-content .woocommerce ul.products li.product a.woocommerce-LoopProduct-link{text-decoration:none}.bp-home-content .woocommerce ul.products li.product img{width:100%!important;height:240px!important;object-fit:contain!important;margin:0 0 15px!important;background:#f8f9fc}.bp-home-content .woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:16px!important;line-height:1.4!important;min-height:45px;color:var(--bp-ink);font-weight:700;padding:0!important}.bp-home-content .woocommerce ul.products li.product .price{font-size:16px!important;color:var(--bp-blue)!important;font-weight:800!important;margin:10px 0 14px!important}.bp-home-content .woocommerce ul.products li.product .price del{color:#8792a4;font-weight:400;font-size:13px}.bp-home-content .woocommerce ul.products li.product .button{margin-top:auto!important;display:block;text-align:center;background:var(--bp-blue);color:#fff;border-radius:8px;padding:12px 10px;font-size:13px}.bp-home-content .woocommerce span.onsale{background:#f0a11b;color:#17243a;min-height:0;min-width:0;line-height:1.2;border-radius:5px;padding:7px 9px;font-size:11px;top:12px;left:auto;right:12px}
.bp-publisher-promo{background:#172f62;color:white;border-radius:16px;padding:34px 40px;margin:48px 0}.bp-publisher-promo h2{color:#fff}.bp-publisher-promo p{color:#dce5ff;max-width:650px}.bp-publisher-promo .bp-btn{background:#fff;color:#173b78!important}
.bp-footer{background:#14233e;color:#e7ebf3;padding:48px 22px 20px}.bp-footer-inner{max-width:1240px;margin:auto;display:grid;grid-template-columns:2fr 1fr 1fr;gap:34px}.bp-footer h3{color:#fff;font-size:18px;margin:0 0 15px}.bp-footer p{line-height:1.7;color:#d0d9e7}.bp-footer a{color:#dce5ff;text-decoration:none;display:block;margin-bottom:10px}.bp-footer-bottom{max-width:1240px;margin:30px auto 0;border-top:1px solid #40516d;padding-top:20px;color:#bac6d9;font-size:12px}
@media(max-width:900px){.bp-home-content .woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr))}.bp-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.bp-hero:after{opacity:.25}.bp-main-header{gap:12px}}
@media(max-width:600px){.bp-topbar p:last-child{display:none}.bp-main-header{flex-direction:column;align-items:stretch;padding:12px 16px!important}.bp-main-header .wp-block-search{min-width:0;max-width:100%}.bp-header .wp-block-navigation{padding:10px 16px}.bp-home-content{padding:18px 14px 40px!important}.bp-hero{padding:28px 22px;min-height:0}.bp-hero:after{font-size:90px;right:-18px;top:20px;opacity:.17}.bp-hero p{font-size:15px}.bp-benefits{grid-template-columns:1fr}.bp-category-grid{gap:9px}.bp-category{padding:17px 8px;font-size:13px}.bp-home-content .woocommerce ul.products{gap:10px}.bp-home-content .woocommerce ul.products li.product{padding:10px!important}.bp-home-content .woocommerce ul.products li.product img{height:165px!important}.bp-home-content .woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:13px!important}.bp-home-content .woocommerce ul.products li.product .button{font-size:11px;padding:10px 5px}.bp-footer-inner{grid-template-columns:1fr}.bp-publisher-promo{padding:26px 22px}}


/* v1.0.3 — WooCommerce catalogue stabilization */
:root { --bp-shop-width:1240px; }
body.post-type-archive-product .wp-site-blocks,
body.tax-product_cat .wp-site-blocks,
body.tax-product_tag .wp-site-blocks { overflow-x:clip; }
.bp-shop-main { max-width:var(--bp-shop-width)!important; margin:0 auto!important; padding:34px 22px 72px!important; min-width:0; box-sizing:border-box; }
.bp-shop-main .woocommerce { width:100%; }
.bp-shop-main .woocommerce-breadcrumb { margin:0 0 20px!important; font-size:13px; color:var(--bp-muted); }
.bp-shop-main .woocommerce-products-header { margin:0 0 24px; }
.bp-shop-main .woocommerce-products-header__title.page-title { font-size:clamp(30px,3vw,42px); line-height:1.2; margin:0 0 12px; color:var(--bp-ink); }
.bp-shop-main .woocommerce-result-count { float:none!important; margin:0!important; font-size:14px; color:var(--bp-muted); }
.bp-shop-main .woocommerce-ordering { float:none!important; margin:0!important; }
.bp-shop-main .woocommerce-ordering select { border:1px solid #d7deeb; border-radius:8px; padding:11px 34px 11px 12px; max-width:100%; background:#fff; color:var(--bp-ink); }
.bp-shop-main .bp-shop-toolbar { display:flex; justify-content:space-between; align-items:center; gap:14px; margin:0 0 22px; }
/* The WooCommerce legacy archive emits count and sorting as adjacent elements. */
.bp-shop-main .woocommerce:has(> .woocommerce-result-count) { display:flow-root; }
.bp-shop-main .woocommerce > .woocommerce-result-count { float:left!important; margin:8px 0 22px!important; }
.bp-shop-main .woocommerce > .woocommerce-ordering { float:right!important; margin:0 0 22px!important; }
.bp-shop-main .woocommerce ul.products { clear:both; display:grid!important; grid-template-columns:repeat(4,minmax(0,1fr)); gap:22px; list-style:none; padding:0!important; margin:0 0 30px!important; }
.bp-shop-main .woocommerce ul.products::before,.bp-shop-main .woocommerce ul.products::after { display:none!important; }
.bp-shop-main .woocommerce ul.products li.product { float:none!important; width:auto!important; margin:0!important; min-width:0; display:flex; flex-direction:column; box-sizing:border-box; border:1px solid var(--bp-line); border-radius:13px; padding:16px!important; background:#fff; position:relative; }
.bp-shop-main .woocommerce ul.products li.product:hover { box-shadow:0 12px 30px rgba(26,48,84,.09); }
.bp-shop-main .woocommerce ul.products li.product a.woocommerce-LoopProduct-link { display:block; text-decoration:none; }
.bp-shop-main .woocommerce ul.products li.product img { width:100%!important; height:240px!important; object-fit:contain!important; margin:0 0 15px!important; background:#f8f9fc; }
.bp-shop-main .woocommerce ul.products li.product .woocommerce-loop-product__title { font-size:16px!important; line-height:1.4!important; min-height:45px; color:var(--bp-ink); font-weight:700; padding:0!important; }
.bp-shop-main .woocommerce ul.products li.product .price { font-size:16px!important; color:var(--bp-blue)!important; font-weight:800!important; margin:10px 0 14px!important; }
.bp-shop-main .woocommerce ul.products li.product .price del { color:#8792a4; font-weight:400; font-size:13px; }
.bp-shop-main .woocommerce ul.products li.product .button { margin-top:auto!important; display:block; text-align:center; background:var(--bp-blue); color:#fff; border-radius:8px; padding:12px 10px; font-size:13px; }
.bp-shop-main .woocommerce span.onsale { background:var(--bp-orange); color:var(--bp-ink); min-height:0; min-width:0; line-height:1.2; border-radius:5px; padding:7px 9px; font-size:11px; top:12px; left:auto; right:12px; }
.bp-shop-main .woocommerce nav.woocommerce-pagination { margin:25px 0; }
.bp-shop-main .woocommerce nav.woocommerce-pagination ul { border:0; display:flex; gap:8px; }
.bp-shop-main .woocommerce nav.woocommerce-pagination ul li { border:1px solid var(--bp-line); border-radius:6px; overflow:hidden; }
.bp-shop-main .woocommerce nav.woocommerce-pagination ul li a,.bp-shop-main .woocommerce nav.woocommerce-pagination ul li span { padding:10px 14px; }
/* Footer and header refinements apply to all templates. */
.bp-header .bp-topbar { box-sizing:border-box; }
.bp-main-header { min-height:0; }
.bp-footer { box-sizing:border-box; }
.bp-home-content .woocommerce ul.products li.product img { height:230px!important; }
@media (max-width:1000px) { .bp-shop-main .woocommerce ul.products { grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; } }
@media (max-width:760px) { .bp-shop-main .woocommerce ul.products { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; } .bp-shop-main { padding:24px 16px 48px!important; } .bp-shop-main .woocommerce ul.products li.product { padding:12px!important; } .bp-shop-main .woocommerce ul.products li.product img { height:190px!important; } }
@media (max-width:420px) { .bp-shop-main .woocommerce ul.products li.product img { height:145px!important; } .bp-shop-main .woocommerce ul.products li.product .woocommerce-loop-product__title { font-size:13px!important; min-height:38px; } .bp-shop-main .woocommerce ul.products li.product .button { font-size:12px; padding:10px 5px; } .bp-shop-main .woocommerce > .woocommerce-result-count,.bp-shop-main .woocommerce > .woocommerce-ordering { float:none!important; display:block; margin:0 0 14px!important; } }

/* v1.0.4: stable catalogue toolbar and book detail layout */
.bp-shop-main .woocommerce:has(> .woocommerce-result-count) {display:flow-root}
.bp-shop-main .woocommerce > .woocommerce-result-count {float:left!important;display:block;margin:10px 0 22px!important}
.bp-shop-main .woocommerce > .woocommerce-ordering {float:right!important;display:block;margin:0 0 22px!important}
.bp-shop-main .woocommerce > ul.products {clear:both!important}
.bp-shop-main .woocommerce ul.products li.product img {object-fit:contain!important;object-position:center;background:#f8f9fc;padding:12px;box-sizing:border-box}
.bp-single-main{max-width:1240px!important;margin:0 auto!important;padding:36px 22px 70px!important;box-sizing:border-box}
.bp-single-main .woocommerce{width:100%}
.bp-single-main .woocommerce-breadcrumb{font-size:13px;color:var(--bp-muted);margin-bottom:25px}
.bp-single-main .woocommerce div.product{display:flow-root}
.bp-single-main .woocommerce div.product div.images{width:43%;margin-bottom:38px}
.bp-single-main .woocommerce div.product div.images img{max-height:580px;object-fit:contain;background:#f8f9fc;border:1px solid var(--bp-line);border-radius:14px;padding:22px;box-sizing:border-box}
.bp-single-main .woocommerce div.product div.summary{width:52%;margin-bottom:40px}
.bp-single-main .product_title{font-size:clamp(28px,3vw,42px);line-height:1.2;color:var(--bp-ink);margin:0 0 18px}
.bp-single-main .summary .price{font-size:27px!important;color:var(--bp-blue)!important;font-weight:800;margin:0 0 20px!important}
.bp-single-main .summary .price del{font-size:17px;color:#8491a5;font-weight:400}
.bp-single-main .woocommerce-product-details__short-description{color:#52627b;line-height:1.75;margin:18px 0}
.bp-single-main .summary .stock{font-weight:700}
.bp-single-main .summary .single_add_to_cart_button{background:var(--bp-blue)!important;border-radius:8px!important;padding:16px 28px!important}
.bp-single-main .summary .quantity .qty{padding:10px;border:1px solid var(--bp-line);border-radius:7px}
.bp-single-main .woocommerce-tabs{clear:both;padding-top:25px;border-top:1px solid var(--bp-line)}
.bp-single-main .woocommerce-tabs ul.tabs{padding:0!important}
.bp-single-main .woocommerce-tabs ul.tabs::before{border-bottom-color:var(--bp-line)!important}
.bp-single-main .related.products{clear:both;margin-top:45px}
.bp-single-main .related.products>h2{font-size:27px;margin-bottom:25px}
.bp-single-main .woocommerce ul.products{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;padding:0!important;list-style:none}
.bp-single-main .woocommerce ul.products:before,.bp-single-main .woocommerce ul.products:after{display:none!important}
.bp-single-main .woocommerce ul.products li.product{float:none!important;width:auto!important;margin:0!important;min-width:0;border:1px solid var(--bp-line);border-radius:12px;padding:15px!important;box-sizing:border-box}
.bp-single-main .woocommerce ul.products li.product img{height:220px;object-fit:contain;background:#f8f9fc}
.bp-single-main .woocommerce ul.products li.product .button{background:var(--bp-blue);color:#fff;border-radius:7px}
.bp-book-specs{width:100%;border-collapse:collapse;margin:16px 0 28px}
.bp-book-specs th,.bp-book-specs td{border-bottom:1px solid var(--bp-line);padding:12px 10px;text-align:left;vertical-align:top;font-size:14px}
.bp-book-specs th{width:34%;color:#52627b;font-weight:600}
.bp-book-specs td{color:var(--bp-ink)}
@media(max-width:900px){.bp-single-main .woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.bp-single-main{padding:24px 16px 48px!important}.bp-single-main .woocommerce div.product div.images,.bp-single-main .woocommerce div.product div.summary{width:100%;float:none}.bp-single-main .woocommerce div.product div.images img{max-height:430px}.bp-shop-main .woocommerce>.woocommerce-result-count,.bp-shop-main .woocommerce>.woocommerce-ordering{float:none!important;margin:0 0 12px!important}.bp-single-main .woocommerce ul.products li.product img{height:175px}}

/* v1.0.13 — target the actual legacy-template DOM: #primary > #main > div.product.
   There is no required .woocommerce ancestor in this template. */
.bp-single-main div.product {
  display:grid!important;
  grid-template-columns:320px minmax(0,1fr)!important;
  gap:0 38px!important;
  align-items:start!important;
  position:relative!important;
}
.bp-single-main div.product > .woocommerce-product-gallery,
.bp-single-main div.product > div.images {
  grid-column:1!important;grid-row:1!important;
  float:none!important;width:320px!important;max-width:320px!important;
  min-width:0!important;margin:0 0 28px!important;
  position:relative!important;box-sizing:border-box!important;
}
.bp-single-main div.product > div.summary {
  grid-column:2!important;grid-row:1!important;
  float:none!important;width:100%!important;max-width:none!important;
  min-width:0!important;margin:0 0 30px!important;
}
.bp-single-main div.product > .woocommerce-tabs,
.bp-single-main div.product > .related,
.bp-single-main div.product > .upsells {
  grid-column:1/-1!important;
}
.bp-single-main div.product div.images .flex-viewport,
.bp-single-main div.product div.images .woocommerce-product-gallery__wrapper,
.bp-single-main div.product div.images .woocommerce-product-gallery__image,
.bp-single-main div.product div.images .woocommerce-product-gallery__image > a {
  width:100%!important;max-width:320px!important;box-sizing:border-box!important;
}
.bp-single-main div.product div.images img {
  display:block!important;width:100%!important;max-width:320px!important;
  height:auto!important;max-height:460px!important;object-fit:contain!important;
  padding:8px!important;margin:0!important;box-sizing:border-box!important;
}
.bp-single-main div.product div.images .woocommerce-product-gallery__trigger {
  position:absolute!important;top:10px!important;right:10px!important;
  left:auto!important;z-index:20!important;margin:0!important;
}
.bp-single-main div.product > span.onsale {
  position:absolute!important;top:10px!important;left:10px!important;
  right:auto!important;z-index:21!important;margin:0!important;
  min-height:0!important;min-width:0!important;line-height:1.2!important;
  border-radius:6px!important;padding:8px 10px!important;
  background:#f0a11b!important;color:#17243a!important;font-size:12px!important;
}
.bp-single-main .bpbd-book-info {margin-top:16px!important}
@media(max-width:700px) {
  .bp-single-main div.product {
    grid-template-columns:minmax(0,1fr)!important;gap:0!important;
  }
  .bp-single-main div.product > .woocommerce-product-gallery,
  .bp-single-main div.product > div.images {
    grid-column:1!important;grid-row:1!important;
    width:min(100%,320px)!important;max-width:320px!important;
    margin:0 auto 24px!important;
  }
  .bp-single-main div.product > div.summary {
    grid-column:1!important;grid-row:2!important;width:100%!important;
  }
  .bp-single-main div.product > span.onsale {
    left:max(10px,calc((100% - 320px)/2 + 10px))!important;
  }
}


/* v1.0.14 — presentation polish. Preserve the tested v1.0.13 gallery geometry. */
.bp-single-main div.product > .woocommerce-tabs {
  margin-top:30px!important;
  padding-top:26px!important;
  width:100%!important;
  min-width:0!important;
}
.bp-single-main div.product > .woocommerce-tabs .panel {
  line-height:1.8;
  color:var(--bp-ink);
  max-width:100%;
  overflow-wrap:anywhere;
}
.bp-single-main div.product > .woocommerce-tabs .panel h2 {font-size:clamp(21px,2vw,27px);margin:0 0 18px}
.bp-single-main div.product > .woocommerce-tabs .panel p {max-width:90ch}
.bp-single-main div.product > .woocommerce-tabs ul.tabs li a {font-weight:700}
.bp-single-main div.product > .related.products,
.bp-single-main div.product > .upsells.products {margin-top:36px!important;padding-top:16px}
.bp-single-main .bp-delivery-note {
  margin:20px 0 14px;
  padding:13px 16px;
  border:1px solid var(--bp-line);
  border-radius:10px;
  background:#f8fafd;
  color:var(--bp-ink);
  font-size:14px;
  line-height:1.55;
}
.bp-single-main .bp-delivery-note strong {display:block;margin-bottom:3px}
.bp-single-main .bp-delivery-note span {color:#52627b}
.bp-single-main div.product .product_meta {line-height:1.8;overflow-wrap:anywhere}
@media(max-width:700px){
 .bp-single-main div.product > .woocommerce-tabs {margin-top:15px!important}
 .bp-single-main div.product > .woocommerce-tabs ul.tabs li {margin-bottom:5px!important}
 .bp-single-main .bp-book-specs th {width:42%}
}

/* Bookstore Pro 1.0.15: accessible, product-only header search */
.bp-main-header .wp-block-shortcode {flex:1; min-width:240px; max-width:850px;}
.bp-book-search {display:flex; align-items:center; gap:5px; width:100%; box-sizing:border-box; border:1px solid #d7deeb; border-radius:10px; padding:5px; background:#fff;}
.bp-book-search input[type=search] {flex:1; min-width:0; width:100%; border:0; background:transparent; padding:13px 15px; font:inherit; color:#17253e; outline-offset:2px;}
.bp-book-search button {border:0; border-radius:8px; background:#2947ad; color:#fff; padding:13px 20px; cursor:pointer; font:inherit;}
.bp-book-search button:hover {background:#1a358c;}
.bp-book-search input:focus-visible,.bp-book-search button:focus-visible {outline:2px solid #2947ad; outline-offset:2px;}
@media(max-width:600px){.bp-main-header .wp-block-shortcode{min-width:0;max-width:100%;width:100%;}.bp-book-search input[type=search]{padding:10px 8px}.bp-book-search button{padding:11px 12px}}


/* v1.0.16 — WooCommerce Cart & Checkout blocks; visual-only, no payment overrides. */
/* Keep the bookstore header compact on cart and other standard pages. */
.bp-main-header > .wp-block-shortcode,
.bp-main-header .wp-block-shortcode {
  flex:1 1 440px!important;
  width:auto!important;
  min-width:0!important;
  max-width:650px!important;
  margin:0!important;
}
.bp-main-header .bp-book-search {max-width:650px;margin:0 auto;}
.bp-main-header > .wp-block-woocommerce-mini-cart {flex:0 0 auto;}
@media(max-width:760px){
 .bp-main-header > .wp-block-shortcode,.bp-main-header .wp-block-shortcode{flex:1 1 100%!important;width:100%!important;max-width:100%!important;}
 .bp-main-header .bp-book-search{max-width:100%;}
}
/* WordPress/WooCommerce page layouts: no full-bleed cart contents. */
body.woocommerce-cart main,body.woocommerce-cart .wp-site-blocks > main,
body.woocommerce-checkout main,body.woocommerce-checkout .wp-site-blocks > main{
  box-sizing:border-box;
}
body.woocommerce-cart .wp-block-woocommerce-cart,
body.woocommerce-cart .wc-block-cart,
body.woocommerce-checkout .wp-block-woocommerce-checkout,
body.woocommerce-checkout .wc-block-checkout{
  width:min(100% - 40px,1240px)!important;
  max-width:1240px!important;
  margin:32px auto 64px!important;
  box-sizing:border-box;
  font-family:inherit;
  color:#17243a;
}
body.woocommerce-cart .wp-block-post-title,
body.woocommerce-checkout .wp-block-post-title{
  max-width:1240px;margin:32px auto 10px;padding:0 20px;
  box-sizing:border-box;font-size:clamp(28px,3vw,38px);
}
/* Cart: book thumbnail, product details, summary and controls. */
.wc-block-cart .wc-block-cart-items,
.wc-block-cart .wc-block-cart__totals-title,
.wc-block-cart .wc-block-components-totals-wrapper,
.wc-block-checkout .wc-block-components-sidebar,
.wc-block-checkout .wc-block-components-checkout-step{
  border-color:#e3e8f1;
}
.wc-block-cart .wc-block-cart-items__row{border-bottom:1px solid #e3e8f1;}
.wc-block-cart .wc-block-cart-item__image img{
  width:85px!important;max-width:85px!important;height:125px!important;
  object-fit:contain;background:#f8fafd;border-radius:6px;
}
.wc-block-cart .wc-block-components-product-name,
.wc-block-checkout .wc-block-components-product-name{
  color:#17243a;font-weight:700;text-decoration:none;line-height:1.4;
}
.wc-block-cart .wc-block-components-product-metadata__description,
.wc-block-checkout .wc-block-components-product-metadata__description{
  display:none!important;
}
.wc-block-cart .wc-block-cart__sidebar,
.wc-block-checkout .wc-block-components-sidebar{
  background:#f8fafd;border:1px solid #e3e8f1;border-radius:12px;
  padding:22px!important;box-sizing:border-box;
}
.wc-block-cart .wc-block-components-totals-footer-item,
.wc-block-checkout .wc-block-components-totals-footer-item{font-size:19px;font-weight:700;}
.wc-block-cart .wc-block-components-button:not(.is-link),
.wc-block-checkout .wc-block-components-button:not(.is-link){
  background:#2947ad!important;color:#fff!important;border:0!important;
  border-radius:8px!important;min-height:48px;font-weight:700;
}
.wc-block-cart .wc-block-components-button:hover:not(.is-link),
.wc-block-checkout .wc-block-components-button:hover:not(.is-link){background:#193783!important;}
.wc-block-cart .wc-block-components-quantity-selector,
.wc-block-checkout .wc-block-components-text-input input,
.wc-block-checkout .wc-block-components-combobox .wc-block-components-combobox-control input{
  border-radius:7px!important;
}
/* Checkout: respect WooCommerce's simplified checkout header and payment components. */
body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar{min-width:0;}
.wc-block-checkout .wc-block-components-checkout-step__heading-title{font-size:21px;font-weight:750;color:#17243a;}
.wc-block-checkout .wc-block-components-checkout-step{padding-bottom:22px;margin-bottom:20px;}
.wc-block-checkout .wc-block-components-order-summary-item__image img{
  max-width:70px;height:auto;object-fit:contain;border-radius:5px;
}
.wc-block-checkout .wc-block-components-form .wc-block-components-text-input input:focus,
.wc-block-checkout .wc-block-components-combobox-control input:focus{border-color:#2947ad!important;}
/* Legacy shortcode cart/checkout fallbacks. */
body.woocommerce-cart .woocommerce:not(.woocommerce-product-gallery),
body.woocommerce-checkout .woocommerce:not(.woocommerce-product-gallery){max-width:1240px;margin-left:auto;margin-right:auto;}
body.woocommerce-cart .woocommerce-cart-form,body.woocommerce-cart .cart-collaterals{
  box-sizing:border-box;
}
@media(max-width:780px){
 body.woocommerce-cart .wp-block-woocommerce-cart,
 body.woocommerce-cart .wc-block-cart,
 body.woocommerce-checkout .wp-block-woocommerce-checkout,
 body.woocommerce-checkout .wc-block-checkout{width:calc(100% - 24px)!important;margin:22px auto 44px!important;}
 .wc-block-cart .wc-block-cart__sidebar,
 .wc-block-checkout .wc-block-components-sidebar{padding:16px!important;}
 .wc-block-cart .wc-block-cart-item__image img{width:65px!important;max-width:65px!important;height:95px!important;}
}

/* v1.0.17 — compact cart/checkout spacing and checkout identity.
   Presentation only: WooCommerce Blocks own checkout, payment and order logic. */
body.woocommerce-cart .wp-site-blocks > main,
body.woocommerce-checkout .wp-site-blocks > main {
  padding-top:0!important;
  margin-top:0!important;
}
/* Checkout's WooCommerce template uses a minimal header; preserve it for focus. */
body.woocommerce-checkout .wp-site-blocks > header,
body.woocommerce-checkout header.wp-block-template-part {
  margin-bottom:0!important;
}
body.woocommerce-checkout .wp-block-woocommerce-checkout,
body.woocommerce-checkout .wc-block-checkout {
  margin-top:12px!important;
  margin-bottom:40px!important;
}
body.woocommerce-cart .wp-block-woocommerce-cart,
body.woocommerce-cart .wc-block-cart {
  margin-top:12px!important;
  margin-bottom:44px!important;
}
/* Limit excessive blank area introduced by WooCommerce block layout wrappers. */
body.woocommerce-checkout .wp-block-woocommerce-checkout > .wc-block-checkout,
body.woocommerce-cart .wp-block-woocommerce-cart > .wc-block-cart {
  padding-top:0!important;
}
body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar,
body.woocommerce-cart .wc-block-cart__main,
body.woocommerce-cart .wc-block-cart__sidebar {
  margin-top:0!important;
}
body.woocommerce-checkout .wc-block-checkout__main .wc-block-components-checkout-step:first-child {
  margin-top:0!important;
  padding-top:0!important;
}
body.woocommerce-cart .wp-block-post-title {
  margin-top:18px!important;
  margin-bottom:4px!important;
}
body.woocommerce-cart .wp-block-woocommerce-cart .wc-block-cart-items {
  margin-top:0!important;
}
body.woocommerce-checkout .wc-block-checkout .wc-block-components-sidebar,
body.woocommerce-cart .wc-block-cart .wc-block-cart__sidebar {
  box-shadow:0 4px 18px rgba(23,40,74,.035);
}
/* Checkout identity: compact site name, without the full browsing navigation. */
body.woocommerce-checkout .wp-block-site-title,
body.woocommerce-checkout .wc-block-checkout__header .wc-block-components-title {
  color:#17243a;
  font-weight:800;
}
@media (max-width:780px) {
  body.woocommerce-cart .wp-block-woocommerce-cart,
  body.woocommerce-cart .wc-block-cart,
  body.woocommerce-checkout .wp-block-woocommerce-checkout,
  body.woocommerce-checkout .wc-block-checkout {
    margin-top:8px!important;
    margin-bottom:28px!important;
  }
  body.woocommerce-checkout .wc-block-checkout .wc-block-components-sidebar,
  body.woocommerce-cart .wc-block-cart .wc-block-cart__sidebar {
    padding:14px!important;
  }
}

/* v1.0.18 catalogue filter panel */
.bp-catalogue-filters{max-width:1240px;margin:18px auto 26px;padding:0 16px;box-sizing:border-box}
.bp-filter-details{border:1px solid #dfe6f2;border-radius:12px;background:#f8faff;padding:15px 18px}
.bp-filter-details>summary{font-size:18px;font-weight:750;color:#17243a;cursor:pointer}
.bp-filter-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:16px;align-items:end}
.bp-filter-form label{display:flex;flex-direction:column;gap:6px;color:#33435e;font-size:14px;font-weight:650}
.bp-filter-form input,.bp-filter-form select{width:100%;min-width:0;box-sizing:border-box;padding:11px 12px;border:1px solid #ccd5e4;border-radius:8px;background:white;font:inherit;color:#17243a}
.bp-price-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.bp-filter-actions{display:flex;align-items:center;gap:16px}
.bp-filter-actions button{border:0;border-radius:8px;padding:12px 20px;background:#2947ad;color:white;font-weight:700;cursor:pointer}
.bp-filter-actions a{color:#2947ad;text-decoration:underline}
@media(max-width:850px){.bp-filter-form{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.bp-catalogue-filters{margin:12px auto 18px}.bp-filter-details{padding:12px}.bp-filter-form{grid-template-columns:1fr;gap:12px}}


/* v1.0.19 — Legacy WooCommerce archive renders #primary without a .woocommerce ancestor.
   Scope to catalogue template only; never affect single product, cart or checkout. */
.bp-shop-main.wp-block-group,
main.bp-shop-main {
  width: min(100% - 40px, 1320px) !important;
  max-width: 1320px !important;
  margin-inline: auto !important;
  padding: 28px 0 64px !important;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(225px, 260px) minmax(0, 1fr);
  column-gap: 28px;
  align-items: start;
}
.bp-shop-main > .wp-block-shortcode {grid-column:1;grid-row:1 / span 2;min-width:0;margin:0!important;}
.bp-shop-main > #primary,
.bp-shop-main > .wp-block-woocommerce-legacy-template,
.bp-shop-main > .wp-block-woocommerce-legacy-template-wrapper {grid-column:2;grid-row:1;min-width:0;width:100%;max-width:100%;margin:0!important;}
.bp-shop-main #main,.bp-shop-main #primary {min-width:0;max-width:100%;}
.bp-shop-main .bp-catalogue-filters {margin:0;padding:0;max-width:none;}
.bp-shop-main .bp-filter-details {padding:16px;background:#f8faff;}
.bp-shop-main .bp-filter-form {grid-template-columns:minmax(0,1fr);gap:14px;}
.bp-shop-main .bp-price-fields {grid-template-columns:repeat(2,minmax(0,1fr));}
.bp-shop-main .bp-filter-actions {flex-wrap:wrap;gap:12px;}
.bp-shop-main .bp-filter-actions button {width:100%;}
.bp-shop-main .woocommerce-breadcrumb {margin:0 0 18px!important;}
.bp-shop-main .woocommerce-products-header__title.page-title,
.bp-shop-main h1.page-title {font-size:clamp(26px,3vw,36px);margin:0 0 20px;color:#17243a;}
.bp-shop-main .woocommerce-result-count {float:left!important;margin:10px 0 20px!important;}
.bp-shop-main .woocommerce-ordering {float:right!important;margin:0 0 20px!important;}
.bp-shop-main .woocommerce-ordering select {border:1px solid #d7deeb;border-radius:8px;padding:10px;background:#fff;}
.bp-shop-main ul.products,
.bp-shop-main .woocommerce ul.products {display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:18px!important;clear:both!important;padding:0!important;margin:0 0 28px!important;list-style:none!important;width:100%;}
.bp-shop-main ul.products::before,.bp-shop-main ul.products::after {display:none!important;}
.bp-shop-main ul.products li.product,
.bp-shop-main .woocommerce ul.products li.product {float:none!important;width:auto!important;max-width:100%!important;min-width:0!important;margin:0!important;padding:14px!important;border:1px solid #e1e7f1;border-radius:12px;background:#fff;box-sizing:border-box;display:flex;flex-direction:column;position:relative;overflow:hidden;}
.bp-shop-main ul.products li.product a.woocommerce-LoopProduct-link {display:block;min-width:0;}
.bp-shop-main ul.products li.product img,
.bp-shop-main .woocommerce ul.products li.product img {display:block;width:100%!important;max-width:100%!important;height:205px!important;object-fit:contain!important;object-position:center;background:#f8f9fc;box-sizing:border-box;margin:0 0 12px!important;padding:8px!important;}
.bp-shop-main ul.products li.product .woocommerce-loop-product__title {font-size:15px!important;line-height:1.45!important;color:#17243a;padding:0!important;}
.bp-shop-main ul.products li.product .price {color:#2947ad!important;font-weight:750!important;margin:10px 0!important;}
.bp-shop-main ul.products li.product .button {display:block;text-align:center;background:#2947ad;color:#fff;border-radius:7px;padding:11px 8px;margin-top:auto!important;}
.bp-shop-main ul.products li.product .onsale {position:absolute;top:10px;right:10px;left:auto;background:#f5b83d;color:#17243a;padding:5px 8px;border-radius:5px;min-height:0;min-width:0;line-height:1.3;z-index:2;}
.bp-shop-main nav.woocommerce-pagination {grid-column:2;clear:both;}
@media(max-width:1050px){
  main.bp-shop-main {grid-template-columns:220px minmax(0,1fr);gap:20px;}
  .bp-shop-main ul.products,.bp-shop-main .woocommerce ul.products {grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media(max-width:720px){
  main.bp-shop-main {display:block;width:calc(100% - 28px)!important;padding:20px 0 48px!important;}
  .bp-shop-main > .wp-block-shortcode {margin-bottom:20px!important;}
  .bp-shop-main .bp-filter-details:not([open]) .bp-filter-form {display:none;}
  .bp-shop-main .woocommerce-result-count,.bp-shop-main .woocommerce-ordering {float:none!important;display:block;margin:0 0 12px!important;}
  .bp-shop-main ul.products,.bp-shop-main .woocommerce ul.products {gap:12px!important;}
  .bp-shop-main ul.products li.product,.bp-shop-main .woocommerce ul.products li.product {padding:10px!important;}
  .bp-shop-main ul.products li.product img,.bp-shop-main .woocommerce ul.products li.product img {height:175px!important;}
}
@media(max-width:400px){.bp-shop-main ul.products li.product img,.bp-shop-main .woocommerce ul.products li.product img {height:145px!important;}}


/* v1.0.20: Actual legacy WooCommerce search markup is #primary > #main,
   not necessarily inside .bp-shop-main. Restrict to product catalogues. */
body.bp-catalogue-view #primary {
  width:calc(100% - 40px)!important;max-width:1280px!important;
  margin:30px auto 64px!important;float:none!important;box-sizing:border-box;
}
body.bp-catalogue-view #primary #main {
  display:grid!important;grid-template-columns:250px minmax(0,1fr);
  column-gap:26px;align-items:start;min-width:0;
}
body.bp-catalogue-view #main > .woocommerce-breadcrumb,
body.bp-catalogue-view #main > .woocommerce-products-header,
body.bp-catalogue-view #main > .woocommerce-notices-wrapper,
body.bp-catalogue-view #main > h1,
body.bp-catalogue-view #main > .page-title {grid-column:1/-1;min-width:0;}
body.bp-catalogue-view #main > .bp-catalogue-filters {
  grid-column:1;grid-row:4 / span 4;min-width:0;
  padding:0;margin:0 0 24px;max-width:100%;
}
body.bp-catalogue-view #main .bp-filter-form {grid-template-columns:minmax(0,1fr);}
body.bp-catalogue-view #main .bp-price-fields {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
body.bp-catalogue-view #main .bp-filter-actions {flex-wrap:wrap;}
body.bp-catalogue-view #main .bp-filter-actions button {width:100%;}
body.bp-catalogue-view #main > .woocommerce-result-count {
  grid-column:2;grid-row:4;justify-self:start;float:none!important;margin:8px 0 18px!important;
}
body.bp-catalogue-view #main > .woocommerce-ordering {
  grid-column:2;grid-row:4;justify-self:end;float:none!important;margin:0 0 18px!important;
}
body.bp-catalogue-view #main > .woocommerce-ordering select {
  border:1px solid #cbd5e1;border-radius:8px;background:white;padding:9px 12px;
}
body.bp-catalogue-view #main > ul.products {
  grid-column:2;grid-row:5;display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:18px!important;
  width:100%!important;min-width:0;max-width:100%;padding:0!important;
  margin:0 0 28px!important;list-style:none;clear:both!important;
}
body.bp-catalogue-view #main > ul.products::before,
body.bp-catalogue-view #main > ul.products::after {display:none!important;}
body.bp-catalogue-view #main > ul.products > li.product {
  float:none!important;width:auto!important;max-width:100%!important;min-width:0;
  margin:0!important;padding:14px!important;box-sizing:border-box;
  border:1px solid #e1e7f1;border-radius:12px;background:#fff;
  display:flex;flex-direction:column;overflow:hidden;position:relative;
}
body.bp-catalogue-view #main > ul.products > li.product img {
  display:block!important;width:100%!important;max-width:100%!important;
  height:205px!important;object-fit:contain!important;object-position:center;
  padding:8px!important;box-sizing:border-box;background:#f8f9fc;margin:0 0 12px!important;
}
body.bp-catalogue-view #main > ul.products > li.product .woocommerce-loop-product__title {
  font-size:15px!important;line-height:1.45!important;padding:0!important;
}
body.bp-catalogue-view #main > ul.products > li.product .onsale {
  position:absolute!important;top:9px!important;right:9px!important;left:auto!important;
  min-width:0;min-height:0;line-height:1.3;padding:5px 8px;border-radius:5px;
}
body.bp-catalogue-view #main > ul.products > li.product .button {
  background:#2947ad;color:white;border-radius:7px;text-align:center;margin-top:auto!important;
}
body.bp-catalogue-view #main > .woocommerce-pagination {grid-column:2;grid-row:6;}
@media(max-width:1080px) {
  body.bp-catalogue-view #primary #main {grid-template-columns:220px minmax(0,1fr);gap:18px;}
  body.bp-catalogue-view #main > ul.products {grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media(max-width:720px) {
  body.bp-catalogue-view #primary {width:calc(100% - 28px)!important;margin:18px auto 40px!important;}
  body.bp-catalogue-view #primary #main {display:block!important;}
  body.bp-catalogue-view #main > .bp-catalogue-filters {margin:0 0 18px;}
  body.bp-catalogue-view #main > .woocommerce-result-count,
  body.bp-catalogue-view #main > .woocommerce-ordering {display:block;float:none!important;margin:0 0 12px!important;}
  body.bp-catalogue-view #main > ul.products {gap:12px!important;}
  body.bp-catalogue-view #main > ul.products > li.product {padding:10px!important;}
  body.bp-catalogue-view #main > ul.products > li.product img {height:165px!important;}
}


/* v1.0.21 — robust catalogue rendering across WooCommerce legacy search,
   archive and taxonomy markup. Descendant selectors intentionally avoid
   assuming #primary/#main or a specific block template wrapper. */
body.bp-catalogue-view .wp-site-blocks > main,
body.bp-catalogue-view main.bp-shop-main,
body.bp-catalogue-view #primary,
body.bp-catalogue-view .woocommerce.archive,
body.bp-catalogue-view .woocommerce-page.archive {
  box-sizing:border-box;
  max-width:1320px;
  margin-left:auto!important;
  margin-right:auto!important;
}
body.bp-catalogue-view .wp-site-blocks > main:not(.bp-shop-main) {padding-left:24px!important;padding-right:24px!important;}
body.bp-catalogue-view .woocommerce-breadcrumb,
body.bp-catalogue-view .woocommerce-products-header,
body.bp-catalogue-view .woocommerce-result-count {max-width:100%;}
body.bp-catalogue-view .bp-catalogue-filters {box-sizing:border-box;max-width:1280px;margin:18px auto 24px!important;clear:both;}
body.bp-catalogue-view .bp-filter-details {padding:16px 20px;}
body.bp-catalogue-view .bp-filter-form {grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 16px;}
body.bp-catalogue-view .bp-filter-form input,
body.bp-catalogue-view .bp-filter-form select {min-height:42px;}
body.bp-catalogue-view .woocommerce-ordering select {border:1px solid #cbd5e1;border-radius:8px;background:#fff;padding:9px 12px;}
/* Target both WooCommerce's own product list and a list emitted without
   the usual .woocommerce ancestor. Never match single-product galleries. */
body.bp-catalogue-view ul.products,
body.bp-catalogue-view .woocommerce ul.products,
body.bp-catalogue-view .wp-block-woocommerce-legacy-template ul.products {
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:18px!important;
  width:100%!important;max-width:1280px!important;
  margin:20px auto 32px!important;padding:0!important;
  clear:both!important;list-style:none!important;
  box-sizing:border-box;
}
body.bp-catalogue-view ul.products::before,
body.bp-catalogue-view ul.products::after {display:none!important;content:none!important;}
body.bp-catalogue-view ul.products > li.product,
body.bp-catalogue-view .woocommerce ul.products > li.product {
  box-sizing:border-box!important;float:none!important;clear:none!important;
  width:auto!important;min-width:0!important;max-width:none!important;
  margin:0!important;padding:14px!important;
  border:1px solid #e1e7f1;border-radius:12px;
  background:#fff;display:flex!important;flex-direction:column!important;
  position:relative;overflow:hidden;
}
body.bp-catalogue-view ul.products > li.product a.woocommerce-LoopProduct-link {display:block;min-width:0;}
body.bp-catalogue-view ul.products > li.product img,
body.bp-catalogue-view ul.products > li.product a img,
body.bp-catalogue-view .woocommerce ul.products > li.product img {
  display:block!important;width:100%!important;max-width:100%!important;
  height:245px!important;max-height:245px!important;
  object-fit:contain!important;object-position:center!important;
  margin:0 0 12px!important;padding:8px!important;
  box-sizing:border-box!important;background:#f8f9fc;
}
body.bp-catalogue-view ul.products > li.product .woocommerce-loop-product__title {
  font-size:16px!important;line-height:1.4!important;
  color:#17243a!important;padding:0!important;margin:6px 0!important;
}
body.bp-catalogue-view ul.products > li.product .price {color:#2947ad!important;font-weight:700!important;margin:8px 0 14px!important;}
body.bp-catalogue-view ul.products > li.product .button {
  display:block!important;align-self:stretch;margin-top:auto!important;
  text-align:center;border-radius:8px;background:#2947ad!important;color:#fff!important;
  padding:11px 12px!important;
}
body.bp-catalogue-view ul.products > li.product .onsale {
  position:absolute!important;top:12px!important;right:12px!important;
  left:auto!important;min-height:0!important;min-width:0!important;
  line-height:1.3!important;padding:5px 9px!important;border-radius:5px!important;
  background:#f5b83d!important;color:#17243a!important;z-index:2;
}
@media(max-width:1100px){
  body.bp-catalogue-view ul.products {grid-template-columns:repeat(3,minmax(0,1fr))!important;}
}
@media(max-width:800px){
  body.bp-catalogue-view ul.products {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;}
  body.bp-catalogue-view .bp-filter-form {grid-template-columns:repeat(2,minmax(0,1fr));}
  body.bp-catalogue-view ul.products > li.product img {height:205px!important;max-height:205px!important;}
}
@media(max-width:520px){
  body.bp-catalogue-view .wp-site-blocks > main:not(.bp-shop-main) {padding-left:12px!important;padding-right:12px!important;}
  body.bp-catalogue-view .bp-filter-form {grid-template-columns:minmax(0,1fr);}
  body.bp-catalogue-view ul.products > li.product {padding:9px!important;}
  body.bp-catalogue-view ul.products > li.product img {height:170px!important;max-height:170px!important;}
  body.bp-catalogue-view ul.products > li.product .woocommerce-loop-product__title {font-size:14px!important;}
}

/* v1.0.24: linked author and publisher catalogue pages */
.bp-product-people { display:flex; flex-wrap:wrap; gap:8px 20px; margin:14px 0; font-size:14px; }
.bp-product-people a { color:#2947ad; text-decoration:underline; text-underline-offset:2px; }
body.tax-bp_book_author .bp-shop-main, body.tax-bp_book_publisher .bp-shop-main { max-width:1240px; margin-inline:auto; }

/* v1.0.27: author / publisher profile details, responsive and scoped. */
body.tax-bp_book_author .bp-profile-intro,body.tax-bp_book_publisher .bp-profile-intro{display:flex;align-items:flex-start;gap:24px;padding:24px;margin:12px 0 28px;background:#f7f9fd;border:1px solid #e2e9f4;border-radius:14px;max-width:100%;box-sizing:border-box}
.bp-profile-image{width:140px;height:140px;object-fit:contain;flex-shrink:0;background:#fff;border-radius:10px}
.bp-profile-copy{min-width:0;line-height:1.65;color:#34445d}.bp-profile-description p:first-child{margin-top:0}.bp-profile-copy a{color:#2947ad;text-decoration:underline}
@media(max-width:600px){body.tax-bp_book_author .bp-profile-intro,body.tax-bp_book_publisher .bp-profile-intro{flex-direction:column;padding:16px;gap:12px}.bp-profile-image{width:110px;height:110px}}

/* v1.0.28: profile belongs to the full-width catalogue header. */
body.tax-bp_book_author .woocommerce-products-header .bp-profile-intro,
body.tax-bp_book_publisher .woocommerce-products-header .bp-profile-intro {
  width:100%;max-width:100%;display:grid;grid-template-columns:180px minmax(0,1fr);
  align-items:start;gap:28px;padding:24px;margin:22px 0 30px;
}
body.tax-bp_book_author .woocommerce-products-header .bp-profile-image,
body.tax-bp_book_publisher .woocommerce-products-header .bp-profile-image {
  width:180px;height:auto;max-height:240px;object-fit:contain;
}
body.tax-bp_book_author .woocommerce-products-header .bp-profile-copy,
body.tax-bp_book_publisher .woocommerce-products-header .bp-profile-copy {
  min-width:0;overflow-wrap:break-word;font-size:16px;line-height:1.75;
}
@media(max-width:600px) {
 body.tax-bp_book_author .woocommerce-products-header .bp-profile-intro,
 body.tax-bp_book_publisher .woocommerce-products-header .bp-profile-intro {
  grid-template-columns:minmax(0,1fr);gap:14px;padding:16px;
 }
 body.tax-bp_book_author .woocommerce-products-header .bp-profile-image,
 body.tax-bp_book_publisher .woocommerce-products-header .bp-profile-image {width:140px;max-height:190px;}
}

/* v1.0.29 — Author and publisher directories */
.bp-directory{max-width:1200px;margin:0 auto;padding:36px 22px 70px;color:#17243e}
.bp-directory-breadcrumb{font-size:14px;color:#64748b;margin-bottom:24px}
.bp-directory-breadcrumb a{color:#2949aa}
.bp-directory h1{font-size:clamp(30px,4vw,46px);margin:0 0 10px;line-height:1.2}
.bp-directory-subtitle{color:#596a83;margin:0 0 30px}
.bp-directory-search{max-width:650px;margin-bottom:22px}
.bp-directory-search label{display:block;font-weight:650;margin-bottom:9px}
.bp-directory-search>div{display:flex;gap:10px}
.bp-directory-search input{flex:1;min-width:0;border:1px solid #cbd5e1;border-radius:10px;padding:14px 16px;font-size:16px}
.bp-directory-search button{border:0;background:#2949aa;color:white;border-radius:10px;padding:12px 25px;font-weight:650;cursor:pointer}
.bp-directory-count{color:#64748b;font-size:14px;margin-bottom:20px}
.bp-directory-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.bp-directory-card{border:1px solid #e0e7f1;border-radius:16px;background:#fff;overflow:hidden;min-width:0}
.bp-directory-card-link{display:flex;align-items:flex-start;gap:16px;padding:20px;height:100%;color:inherit;text-decoration:none}
.bp-directory-image,.bp-directory-placeholder{width:104px;height:120px;flex:0 0 104px;object-fit:contain;border-radius:10px;background:#f2f5fa}
.bp-directory-placeholder{display:flex;align-items:center;justify-content:center;font-size:42px;font-weight:700;color:#2949aa}
.bp-directory-card-copy{display:flex;flex-direction:column;gap:7px;min-width:0}
.bp-directory-card-copy strong{font-size:19px;line-height:1.3}
.bp-directory-book-count{font-size:13px;color:#64748b}
.bp-directory-excerpt{font-size:14px;line-height:1.5;color:#46546a}
.bp-directory-view{font-weight:650;color:#2949aa;font-size:14px;margin-top:4px}
.bp-directory-pagination{display:flex;gap:8px;margin-top:28px;flex-wrap:wrap}
.bp-directory-pagination a{border:1px solid #cbd5e1;padding:8px 14px;border-radius:8px;text-decoration:none}
.bp-directory-pagination a[aria-current=page]{background:#2949aa;color:#fff}
@media(max-width:900px){.bp-directory-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.bp-directory-grid{grid-template-columns:1fr}.bp-directory{padding:25px 16px 50px}.bp-directory-search>div{flex-direction:column}.bp-directory-card-link{padding:16px}}

/* v1.0.30: Standard WordPress pages render their own content, not the home template. */
.bp-standard-page { padding-top: 36px; padding-bottom: 64px; min-height: 45vh; }
.bp-standard-page .bp-directory { max-width: 1240px; margin-inline: auto; }
@media (max-width: 767px) { .bp-standard-page { padding-top: 22px; padding-bottom: 40px; } }

/* v1.0.36 — Phase 1B: remove phantom outer sidebar from catalogue archives.
 * WooCommerce's legacy archive supplies the real filter/sidebar within #main.
 * The former .bp-shop-main two-column grid reserved an empty first column and
 * pushed #primary into the second, creating a large unused left gutter.
 * Scoped to catalogues so product details and other page templates are intact. */
body.bp-catalogue-view main.bp-shop-main {
  display:block!important;
  width:calc(100% - 40px)!important;
  max-width:1320px!important;
  margin:0 auto!important;
  padding:28px 0 64px!important;
  min-width:0;
}
body.bp-catalogue-view main.bp-shop-main > #primary,
body.bp-catalogue-view main.bp-shop-main > .wp-block-woocommerce-legacy-template,
body.bp-catalogue-view main.bp-shop-main > .wp-block-woocommerce-legacy-template-wrapper {
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  margin:0!important;
  min-width:0;
}
body.bp-catalogue-view main.bp-shop-main #primary {
  width:100%!important;
  max-width:100%!important;
  margin:0!important;
}
body.bp-catalogue-view main.bp-shop-main #primary #main {
  display:grid!important;
  grid-template-columns:250px minmax(0,1fr)!important;
  column-gap:26px!important;
  align-items:start;
  width:100%;
  min-width:0;
}
body.bp-catalogue-view main.bp-shop-main #main > .bp-catalogue-filters {
  grid-column:1!important;
  grid-row:4 / span 4!important;
  width:100%!important;
  max-width:100%!important;
  margin:0 0 24px!important;
  clear:none!important;
}
body.bp-catalogue-view main.bp-shop-main #main > ul.products {
  grid-column:2!important;
  grid-row:5!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  max-width:100%!important;
  margin:0 0 30px!important;
}
@media(max-width:1080px) {
  body.bp-catalogue-view main.bp-shop-main #primary #main {grid-template-columns:220px minmax(0,1fr)!important;column-gap:18px!important;}
  body.bp-catalogue-view main.bp-shop-main #main > ul.products {grid-template-columns:repeat(2,minmax(0,1fr))!important;}
}
@media(max-width:720px) {
  body.bp-catalogue-view main.bp-shop-main {width:calc(100% - 28px)!important;padding:20px 0 48px!important;}
  body.bp-catalogue-view main.bp-shop-main #primary #main {display:block!important;}
  body.bp-catalogue-view main.bp-shop-main #main > .bp-catalogue-filters {margin:0 0 18px!important;}
  body.bp-catalogue-view main.bp-shop-main #main > ul.products {grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;}
}

/* v1.0.37: Bookstore Pro professional navigation — scoped to header only. */
.bp-header{width:100%;max-width:none!important;background:#fff;box-shadow:0 1px 6px rgba(20,35,70,.055)}
.bp-header .bp-main-header{max-width:1360px!important;padding:16px 24px!important;display:flex;flex-wrap:nowrap;align-items:center;gap:26px}
.bp-main-header .wp-block-site-title{font-size:clamp(22px,2vw,30px);letter-spacing:-.035em;line-height:1.15}
.bp-main-header .wp-block-shortcode:has(.bp-book-search){flex:1 1 auto;max-width:none;min-width:180px}
.bp-main-header .bp-book-search{max-width:750px;width:100%}
.bp-main-header .wp-block-shortcode:has(.bp-header-actions){flex:0 0 auto;min-width:0;max-width:none}
.bp-header-actions{display:flex;align-items:center;gap:16px;white-space:nowrap}
.bp-header-actions a{display:inline-flex;align-items:center;gap:7px;text-decoration:none;color:#17243a;font-size:14px;font-weight:650}
.bp-header-actions a:hover,.bp-pro-nav a:hover{color:#2446a5}
.bp-header-actions a>span:first-child{font-size:21px}
.bp-cart-count{background:#2446a5;color:white;border-radius:20px;padding:1px 6px;font-size:11px;min-width:12px;text-align:center}
.bp-pro-nav{border-top:1px solid #e6eaf1;border-bottom:1px solid #e6eaf1;background:#fff;position:relative;z-index:30}
.bp-pro-nav-inner{max-width:1360px;margin:0 auto;padding:0 24px;display:flex;align-items:center;gap:30px;min-height:49px}
.bp-pro-nav-link,.bp-category-menu>summary{color:#17243a;font-weight:650;font-size:14px;text-decoration:none;cursor:pointer}
.bp-category-menu{position:relative}
.bp-category-menu>summary{list-style:none;display:flex;align-items:center;gap:9px;padding:15px 0}
.bp-category-menu>summary::-webkit-details-marker{display:none}
.bp-category-menu-panel{position:absolute;left:0;top:100%;background:white;border:1px solid #dfe5ef;border-radius:0 0 12px 12px;box-shadow:0 15px 35px rgba(20,35,70,.12);padding:15px 20px;min-width:300px;max-width:min(85vw,650px);z-index:50}
.bp-category-menu-panel ul{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(2,minmax(140px,1fr));gap:6px 24px}
.bp-category-menu-panel a{display:block;padding:9px 6px;color:#24344f;text-decoration:none;font-size:14px}
.bp-category-menu-panel a:hover{background:#f3f6fd;border-radius:5px}
.bp-category-menu-panel p{font-size:13px;color:#66748a;margin:0}
.bp-pro-nav :focus-visible,.bp-header-actions a:focus-visible{outline:3px solid #f4a51c;outline-offset:3px}
@media(max-width:800px){.bp-header .bp-main-header{flex-wrap:wrap;gap:12px;padding:12px 16px!important}.bp-main-header .wp-block-shortcode:has(.bp-book-search){order:3;flex-basis:100%;min-width:0}.bp-main-header .wp-block-shortcode:has(.bp-header-actions){margin-left:auto}.bp-header-actions{gap:12px}.bp-pro-nav-inner{padding:0 16px;gap:20px;overflow-x:auto;white-space:nowrap}.bp-category-menu-panel{position:fixed;left:12px;right:12px;top:auto;min-width:0;max-width:none}.bp-header .bp-topbar{padding:7px 16px!important}}
@media(max-width:480px){.bp-header-actions a{font-size:12px}.bp-header-actions a>span:first-child{font-size:17px}.bp-pro-nav-inner{gap:17px}.bp-category-menu-panel ul{grid-template-columns:1fr 1fr}}


/* v1.0.38: visual polish after desktop screenshots and HTML review. */
.bp-header .bp-main-header {gap:20px!important; padding:14px 24px!important; min-height:0!important;}
.bp-main-header .wp-block-shortcode:has(.bp-brand){flex:0 0 auto!important;max-width:270px!important;min-width:0!important;margin:0!important;}
.bp-brand{display:inline-flex;align-items:center;max-width:270px;min-height:48px;text-decoration:none!important;color:#17243a!important;}
.bp-brand-image{display:block;width:auto;max-width:240px;height:auto;max-height:65px;object-fit:contain;}
.bp-brand-text{font-size:clamp(22px,2vw,30px);font-weight:800;letter-spacing:-.035em;line-height:1.1;white-space:nowrap;}
.bp-pro-nav-inner{gap:28px!important;min-height:50px!important;}
.bp-pro-nav-links{display:flex;align-items:center;gap:30px;flex-wrap:wrap;min-width:0;}
.bp-pro-nav-links .bp-pro-nav-link{display:inline-flex;align-items:center;padding:13px 0;white-space:nowrap;line-height:1.3;}
.bp-pro-nav-inner > p{margin:0!important;}
.bp-category-menu>summary{padding:13px 0!important;white-space:nowrap;}
.bp-category-menu-panel{padding:12px 16px!important;}
.bp-category-menu-panel ul{gap:3px 18px!important;}
.bp-category-menu-panel a{line-height:1.35;}
/* Home: compact, portrait-oriented book cards without stretching the covers. */
.bp-home-content .woocommerce ul.products li.product{display:flex!important;flex-direction:column!important;min-width:0!important;}
.bp-home-content .woocommerce ul.products li.product a.woocommerce-LoopProduct-link{display:block!important;text-decoration:none;}
.bp-home-content .woocommerce ul.products li.product img{display:block!important;width:100%!important;height:275px!important;object-fit:contain!important;object-position:center!important;padding:10px!important;box-sizing:border-box!important;background:#f7f8fb!important;margin:0 0 12px!important;}
.bp-home-content .woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:15px!important;line-height:1.4!important;min-height:0!important;margin:0 0 9px!important;padding:0!important;}
.bp-home-content .woocommerce ul.products li.product .price{display:block!important;margin:8px 0 14px!important;line-height:1.5!important;}
.bp-home-content .woocommerce ul.products li.product .button{margin-top:auto!important;}
@media(max-width:800px){.bp-header .bp-main-header{gap:12px!important;padding:12px 16px!important}.bp-pro-nav-inner{gap:18px!important}.bp-pro-nav-links{gap:20px;flex-wrap:nowrap}.bp-brand-image{max-width:180px;max-height:52px}.bp-home-content .woocommerce ul.products li.product img{height:220px!important}}
@media(max-width:480px){.bp-brand-text{font-size:21px}.bp-brand-image{max-width:145px}.bp-pro-nav-links{gap:17px}.bp-home-content .woocommerce ul.products li.product img{height:185px!important;padding:5px!important}}


/* v1.0.39 — product experience refinement; scoped to WooCommerce single-product pages. */
body.single-product .woocommerce div.product {max-width:1320px;margin:0 auto;}
body.single-product .woocommerce div.product div.images {margin-bottom:28px;}
body.single-product .woocommerce div.product div.images .woocommerce-product-gallery__image,
body.single-product .woocommerce div.product div.images .flex-viewport {background:#f7f9fc;border-radius:14px;}
body.single-product .woocommerce div.product div.images img {width:100%;height:auto;max-height:620px;object-fit:contain;object-position:center;}
body.single-product .woocommerce div.product .summary {min-width:0;}
body.single-product .woocommerce div.product .summary .product_title {font-size:clamp(30px,3vw,46px);line-height:1.16;letter-spacing:-.025em;margin:0 0 18px;}
body.single-product .woocommerce div.product .summary > .price {font-size:clamp(25px,2.3vw,34px);font-weight:750;color:#2848ae;margin:0 0 18px;}
body.single-product .woocommerce div.product .summary > .price del {font-size:.65em;color:#8995a7;font-weight:400;margin-right:8px;}
body.single-product .woocommerce div.product .summary .stock.in-stock {display:inline-flex;align-items:center;gap:8px;color:#176e43;background:#edf8f1;border:1px solid #d0ead9;border-radius:999px;padding:7px 12px;font-weight:650;margin:12px 0 18px;}
body.single-product .woocommerce div.product .summary .stock.in-stock:before {content:'✓';font-weight:800;}
body.single-product .woocommerce div.product form.cart {display:flex;align-items:stretch;flex-wrap:wrap;gap:12px;margin:0 0 22px!important;}
body.single-product .woocommerce div.product form.cart .quantity {margin:0!important;float:none!important;}
body.single-product .woocommerce div.product form.cart .quantity input.qty {min-height:52px;width:84px;border:1px solid #d8e0ee;border-radius:10px;background:#fff;font-size:17px;}
body.single-product .woocommerce div.product form.cart .single_add_to_cart_button {float:none!important;min-height:52px;padding:12px 28px!important;border-radius:10px!important;background:#2949af!important;color:#fff!important;font-size:16px!important;font-weight:700!important;}
body.single-product .woocommerce div.product form.cart .single_add_to_cart_button:hover {background:#18388f!important;}
body.single-product .woocommerce div.product .bp-delivery-note {border-radius:12px;border:1px solid #e1e7f0;background:#f8fafd;padding:18px 20px;margin:8px 0 20px;line-height:1.55;}
body.single-product .woocommerce div.product .bp-delivery-note strong {display:block;margin-bottom:4px;color:#17243a;}
body.single-product .woocommerce div.product .product_meta {border-top:1px solid #e5eaf2;padding:18px 0;margin-top:16px;display:flex;flex-wrap:wrap;gap:8px 24px;color:#50617a;font-size:14px;}
body.single-product .woocommerce div.product .product_meta > span {display:inline-block;}
body.single-product .woocommerce div.product .woocommerce-tabs {clear:both;padding-top:26px;margin-top:34px;border-top:1px solid #e5eaf2;}
body.single-product .woocommerce div.product .woocommerce-tabs ul.tabs {padding:0!important;display:flex;flex-wrap:wrap;gap:8px;border-bottom:1px solid #e5eaf2;}
body.single-product .woocommerce div.product .woocommerce-tabs ul.tabs:before,
body.single-product .woocommerce div.product .woocommerce-tabs ul.tabs li:before,
body.single-product .woocommerce div.product .woocommerce-tabs ul.tabs li:after {display:none!important;}
body.single-product .woocommerce div.product .woocommerce-tabs ul.tabs li {border:1px solid #e5eaf2!important;background:#f7f9fc!important;border-radius:9px 9px 0 0!important;margin:0!important;padding:0!important;}
body.single-product .woocommerce div.product .woocommerce-tabs ul.tabs li.active {background:#fff!important;border-bottom-color:#fff!important;}
body.single-product .woocommerce div.product .woocommerce-tabs ul.tabs li a {padding:12px 18px!important;}
body.single-product .woocommerce div.product .woocommerce-tabs .panel {line-height:1.75;max-width:100%;}
body.single-product .woocommerce div.product .related.products {clear:both;padding-top:28px;}
body.single-product .woocommerce div.product .related.products ul.products li.product img {height:245px!important;object-fit:contain!important;object-position:center!important;background:#f7f9fc;padding:10px;box-sizing:border-box;}
@media(max-width:767px){body.single-product .woocommerce div.product .summary .product_title{font-size:30px}body.single-product .woocommerce div.product div.images img{max-height:450px}body.single-product .woocommerce div.product form.cart .single_add_to_cart_button{flex:1 1 170px}body.single-product .woocommerce div.product .related.products ul.products li.product img{height:190px!important}}


/* v1.0.40 — category-led, data-driven storefront */
.bp-home-content{max-width:1320px!important;margin-inline:auto!important;padding:26px 22px 52px!important}
.bp-merch-hero{display:flex;justify-content:space-between;align-items:center;gap:30px;background:linear-gradient(110deg,#eef3ff,#f9faff 65%,#fff4e0);background-position:center;background-size:cover;border-radius:18px;padding:clamp(25px,3vw,45px);margin:0 0 34px;min-height:220px}
.bp-merch-hero h1{font-size:clamp(29px,3.3vw,47px);line-height:1.13;margin:13px 0 12px;max-width:700px;color:#17243a}.bp-merch-hero p{font-size:16px;color:#53637b;max-width:640px;margin:0}.bp-merch-hero-art{font-size:clamp(65px,10vw,130px);line-height:1;flex:none}
.bp-merch-section{margin:0 0 44px}.bp-merch-section .bp-section-head{margin-bottom:18px}.bp-merch-categories{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}
.bp-merch-category{display:flex;align-items:center;gap:13px;border:1px solid #e1e7f0;border-radius:12px;padding:16px;text-decoration:none!important;color:#17243a!important;background:#f8faff;min-width:0;flex-wrap:wrap}.bp-merch-category:hover{border-color:#8ca4df;background:#eef3ff}.bp-merch-category img,.bp-merch-category-placeholder{width:55px;height:65px;object-fit:contain;flex:none;display:grid;place-items:center;font-size:32px}.bp-merch-category strong{font-size:15px;line-height:1.3;flex:1 1 120px}.bp-merch-category small{color:#68768c;flex-basis:100%;padding-left:68px;margin-top:-10px}
.bp-merch-section .woocommerce ul.products{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:16px!important;list-style:none;padding:0!important;margin:0!important}.bp-merch-section .woocommerce ul.products li.product{width:auto!important;float:none!important;margin:0!important;min-width:0}
.bp-merch-discover{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:28px 34px;border-radius:14px;background:#173b78;color:white;margin-top:20px}.bp-merch-discover h2{color:white;margin:0 0 8px;font-size:26px}.bp-merch-discover p{margin:0;color:#dfe9fa}.bp-merch-discover>div:last-child{display:flex;gap:12px;flex-wrap:wrap}.bp-merch-discover a{display:inline-block;padding:11px 15px;background:white;border-radius:8px;color:#173b78;text-decoration:none;font-weight:700}
.bp-footer-v140 .bp-footer-inner{grid-template-columns:2fr 1fr 1fr 1.2fr}.bp-footer-v140 a:focus-visible,.bp-merch-category:focus-visible,.bp-merch-discover a:focus-visible{outline:3px solid #f59e0b;outline-offset:3px}
@media(max-width:950px){.bp-merch-categories{grid-template-columns:repeat(2,minmax(0,1fr))}.bp-merch-section .woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr))!important}.bp-footer-v140 .bp-footer-inner{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.bp-home-content{padding:18px 14px 38px!important}.bp-merch-hero{min-height:0;padding:24px 20px}.bp-merch-hero-art{display:none}.bp-merch-hero h1{font-size:30px}.bp-merch-categories{gap:9px}.bp-merch-category{padding:12px;gap:8px}.bp-merch-category img,.bp-merch-category-placeholder{width:36px;height:48px;font-size:24px}.bp-merch-category strong{font-size:13px;flex-basis:75px}.bp-merch-category small{padding-left:0;margin-top:0;font-size:11px}.bp-merch-section .woocommerce ul.products{gap:10px!important}.bp-merch-discover{display:block;padding:24px 20px}.bp-merch-discover>div:last-child{margin-top:18px}.bp-footer-v140 .bp-footer-inner{grid-template-columns:1fr}}

/* v1.0.43: mobile-first category navigation, hero cropping and cards. */
.bp-mobile-nav>summary{display:none}
.bp-merch-hero-has-image{background-image:linear-gradient(rgba(238,243,255,var(--bp-hero-overlay,0)),rgba(238,243,255,var(--bp-hero-overlay,0))),var(--bp-hero-desktop)!important;background-position:center,var(--bp-hero-position,right center)!important;background-size:cover!important;background-repeat:no-repeat!important}
.bp-merch-hero-image-only{padding:0!important;min-height:0!important;aspect-ratio:1400/340}
.bp-merch-hero-image-only>.bp-merch-hero-content{display:none}
@media(max-width:800px){
 .bp-mobile-nav>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;list-style:none;padding:14px 18px;font-size:16px;font-weight:700;color:#17243a;min-height:48px}
 .bp-mobile-nav>summary::-webkit-details-marker{display:none}
 .bp-mobile-nav:not([open])>.bp-pro-nav-inner{display:none!important}
 .bp-pro-nav-inner{display:flex!important;flex-direction:column;align-items:stretch!important;gap:0!important;overflow:visible!important;white-space:normal!important;padding:0 16px 16px!important}
 .bp-category-menu{position:static!important}
 .bp-category-menu>summary{min-height:48px;padding:12px!important}
 .bp-category-menu-panel{position:static!important;inset:auto!important;min-width:0!important;max-width:none!important;width:100%!important;box-sizing:border-box;box-shadow:none!important;border-radius:10px!important;padding:8px!important}
 .bp-category-menu-panel ul{grid-template-columns:1fr!important;gap:0!important}
 .bp-category-menu-panel a{min-height:44px;display:flex;align-items:center;padding:10px 12px!important;font-size:15px!important}
 .bp-pro-nav-links{display:flex!important;flex-direction:column;align-items:stretch!important;gap:0!important}
 .bp-pro-nav-link{display:flex;align-items:center;min-height:48px;padding:10px 12px!important}
 .bp-merch-hero-has-image{background-image:linear-gradient(rgba(238,243,255,var(--bp-hero-overlay,0)),rgba(238,243,255,var(--bp-hero-overlay,0))),var(--bp-hero-mobile)!important;background-position:center,var(--bp-hero-position,right center)!important}
 .bp-merch-hero-image-only{aspect-ratio:1400/600;min-height:0!important}
 .bp-merch-hero:not(.bp-merch-hero-image-only){min-height:300px}
 .bp-merch-section .woocommerce ul.products li.product{min-width:0;display:flex;flex-direction:column}
 .bp-merch-section .woocommerce ul.products li.product .woocommerce-loop-product__title{overflow-wrap:anywhere;line-height:1.4;min-height:2.8em}
 .bp-merch-section .woocommerce ul.products li.product .button{margin-top:auto;white-space:normal;min-height:42px;display:flex;align-items:center;justify-content:center;text-align:center}
}
@media(max-width:480px){
 .bp-merch-hero-has-image:not(.bp-merch-hero-image-only){background-position:center,var(--bp-hero-position,right center)!important}
 .bp-merch-section .woocommerce ul.products li.product{padding:10px!important}
 .bp-merch-section .woocommerce ul.products li.product img{height:175px!important;object-fit:contain!important}
 .bp-merch-section .woocommerce ul.products li.product .button{font-size:12px!important;padding:9px 5px!important}
}

/* v1.0.44: desktop navigation must not live inside a closed details element. */
.bp-mobile-nav-wrap{display:none!important}
.bp-desktop-nav{display:block!important}
@media(max-width:800px){
 .bp-desktop-nav{display:none!important}
 .bp-mobile-nav-wrap{display:block!important}
 .bp-mobile-nav-wrap .bp-mobile-nav>summary{display:flex!important}
}

/* v1.0.46: optional book details and genuine store links */
.bp-book-info{clear:both;margin:28px 0;padding:22px;border:1px solid #e3e9f2;border-radius:14px;background:#f8fafd}
.bp-book-info h2{font-size:1.45rem;margin:0 0 15px}
.bp-book-info dl{margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 22px}
.bp-book-info-row{display:flex;gap:10px;border-bottom:1px solid #e3e9f2;padding:9px 0;min-width:0}
.bp-book-info dt{font-weight:700;min-width:115px}.bp-book-info dd{margin:0;overflow-wrap:anywhere}
.bp-product-store-links{margin:16px 0;padding:14px 18px;border:1px solid #e3e9f2;border-radius:10px}
.bp-product-store-links strong{display:block;margin-bottom:8px}
.bp-product-store-links div{display:flex;flex-wrap:wrap;gap:8px 18px}
@media(max-width:680px){.bp-book-info dl{grid-template-columns:1fr}.bp-book-info{padding:15px}.bp-book-info-row{flex-wrap:wrap}.bp-book-info dt{min-width:100px}}

/* v1.0.47: Readable book specifications in narrow WooCommerce content columns. */
body.single-product .bp-book-info{box-sizing:border-box;width:100%;max-width:100%;min-width:0;clear:both}
body.single-product .bp-book-info dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 22px;min-width:0}
body.single-product .bp-book-info-row{display:block;min-width:0;max-width:100%;padding:10px 0}
body.single-product .bp-book-info dt{display:block;min-width:0;margin:0 0 5px;font-weight:700}
body.single-product .bp-book-info dd{display:block;min-width:0;margin:0;overflow-wrap:break-word;word-break:normal;white-space:normal;line-height:1.5}
@media(max-width:900px){body.single-product .bp-book-info dl{grid-template-columns:1fr}}

/* v1.0.49: restrained search results context */
.bp-search-summary{margin:0 0 18px;padding:18px 20px;background:#f8faff;border:1px solid #e1e8f4;border-radius:12px}
.bp-search-summary h2{margin:0 0 6px;font-size:clamp(19px,2.4vw,25px);line-height:1.3;color:#17243a;overflow-wrap:anywhere}
.bp-search-summary p{margin:0;color:#53627a;font-size:14px}
.bp-search-empty-hint{padding:8px 0 24px;color:#33435e}
.bp-search-empty-hint a{display:inline-block;margin-top:5px;color:#2947ad;font-weight:700;text-decoration:underline}
@media(max-width:600px){.bp-search-summary{padding:14px 16px}}

/* v1.0.50: focused empty-results experience, preserving existing catalogue styling. */
.bp-empty-search{max-width:760px;margin:22px auto 38px;padding:30px 24px;text-align:center;background:#f8faff;border:1px solid #e1e8f4;border-radius:14px;color:#17243a}
.bp-empty-search__icon{display:inline-flex;align-items:center;justify-content:center;width:54px;height:54px;margin-bottom:10px;border-radius:50%;background:#e8eefb;font-size:27px}
.bp-empty-search h2{font-size:clamp(22px,3vw,29px);line-height:1.3;margin:5px 0 10px}
.bp-empty-search p{max-width:560px;margin:0 auto 12px;color:#53627a;line-height:1.65;overflow-wrap:anywhere}
.bp-empty-search__count{font-size:14px;font-weight:700;color:#52617a}
.bp-empty-search__actions{margin-top:20px}
.bp-empty-search__actions a{display:inline-block;padding:12px 22px;border-radius:8px;background:#2947ad;color:#fff!important;font-weight:700;text-decoration:none}
.bp-empty-search__actions a:hover,.bp-empty-search__actions a:focus{background:#1e367f}
@media(max-width:600px){.bp-empty-search{margin:14px 0 24px;padding:24px 16px}.bp-empty-search__actions a{width:100%;box-sizing:border-box}}

/* v1.0.52: Compact empty product-search results. */
.bp-search-no-results .bp-empty-search { max-width: 720px; margin: 26px 0 48px; padding: 28px 30px; border: 1px solid #e3e9f2; border-radius: 12px; background: #fff; }
.bp-search-no-results .bp-empty-search__icon { display: block; font-size: 28px; margin-bottom: 10px; }
.bp-search-no-results .bp-empty-search h2 { margin: 0 0 6px; font-size: 25px; color: #112341; }
.bp-search-no-results .bp-empty-search__count { font-weight: 700; color: #3153ad; margin: 0 0 14px; }
.bp-search-no-results .bp-empty-search p { line-height: 1.6; }
.bp-search-no-results .bp-empty-search__actions { margin-top: 22px; }
.bp-search-no-results .bp-empty-search__actions a { display: inline-block; background: #2949ad; color: #fff; border-radius: 8px; padding: 11px 20px; text-decoration: none; font-weight: 600; }
@media(max-width:600px) { .bp-search-no-results .bp-empty-search { padding: 20px; margin: 20px 0 30px; } .bp-search-no-results .bp-empty-search h2 { font-size: 22px; } }

/* v1.0.53: No-results block also works inside WooCommerce Product Collection. */
.wp-block-woocommerce-product-collection .bp-empty-search { max-width: 720px; }

/* v1.0.54: Compact responsive category discovery above the product grid. */
.bp-category-discovery { margin: 14px 0 26px; padding: 14px 0; border-bottom: 1px solid #e5eaf3; }
.bp-category-discovery__label { display: block; font-size: 14px; font-weight: 700; color: #142645; margin-bottom: 11px; }
.bp-category-discovery__links { display: flex; flex-wrap: wrap; gap: 9px; }
.bp-category-discovery__links a { display: inline-block; border: 1px solid #d9e2f0; border-radius: 999px; padding: 7px 13px; font-size: 13px; line-height: 1.4; color: #173b7a; text-decoration: none; background: #f8faff; }
.bp-category-discovery__links a:hover,.bp-category-discovery__links a:focus-visible { background: #e9f0ff; border-color: #8ea7dd; text-decoration: underline; }
@media (max-width: 600px) { .bp-category-discovery { margin: 10px 0 18px; } .bp-category-discovery__links { gap: 7px; } .bp-category-discovery__links a { padding: 7px 11px; } }

/* v1.0.55 — Compact catalog sorting and price controls */
.bp-catalog-filters { display:flex; flex-wrap:wrap; align-items:end; gap:12px; margin:18px 0 24px; padding:16px; border:1px solid #e1e8f1; border-radius:10px; background:#f8faff; }
.bp-catalog-filters label { display:flex; flex-direction:column; gap:5px; font-size:13px; font-weight:600; color:#172b49; }
.bp-catalog-filters select,.bp-catalog-filters input { box-sizing:border-box; height:40px; min-width:145px; max-width:100%; border:1px solid #cbd5e1; border-radius:6px; background:white; padding:6px 10px; font-size:14px; }
.bp-catalog-filters button { min-height:40px; padding:8px 18px; border:0; border-radius:7px; background:#2949ad; color:#fff; font-weight:600; cursor:pointer; }
.bp-catalog-filters__reset { padding:9px 6px; color:#2949ad; }
@media(max-width:600px){.bp-catalog-filters { gap:10px; padding:12px; }.bp-catalog-filters label { flex:1 1 130px; }.bp-catalog-filters select,.bp-catalog-filters input { width:100%; min-width:0; }}

/* v1.0.57: mobile-only filter disclosure and active-filter indicators. */
.bp-mobile-catalog-filter__toggle,.bp-mobile-catalog-filter__trigger{display:none}
.bp-mobile-catalog-filter__active{display:flex;flex-wrap:wrap;gap:7px;margin:0 0 10px}
.bp-mobile-catalog-filter__chip{display:inline-flex;align-items:center;border-radius:999px;padding:5px 10px;font-size:12px;background:#e9effd;color:#243f7d;border:1px solid #d4e0fa;max-width:100%;overflow-wrap:anywhere}
.bp-mobile-catalog-filter__badge{border-radius:999px;background:#2949ad;color:white;padding:2px 8px;font-size:12px;line-height:1.5}
@media(max-width:700px){
 .bp-mobile-catalog-filter{margin:14px 0 22px}
 .bp-mobile-catalog-filter__toggle{position:absolute;opacity:0;width:1px;height:1px;display:block}
 .bp-mobile-catalog-filter__trigger{display:flex;align-items:center;gap:10px;padding:13px 15px;border:1px solid #d9e2f0;border-radius:10px;background:#f8faff;font-weight:700;color:#173b78;cursor:pointer;min-height:48px;box-sizing:border-box}
 .bp-mobile-catalog-filter__chevron{margin-left:auto;font-size:22px;line-height:1}
 .bp-mobile-catalog-filter__toggle:focus-visible + .bp-mobile-catalog-filter__trigger{outline:3px solid #7da2ff;outline-offset:2px}
 .bp-mobile-catalog-filter__toggle:checked + .bp-mobile-catalog-filter__trigger .bp-mobile-catalog-filter__chevron{transform:rotate(180deg)}
 .bp-mobile-catalog-filter .bp-catalog-filters{display:none;margin:0;padding:14px 12px;border-radius:0 0 10px 10px;border-top:0}
 .bp-mobile-catalog-filter__toggle:checked ~ .bp-catalog-filters{display:flex}
 .bp-mobile-catalog-filter__toggle:checked + .bp-mobile-catalog-filter__trigger{border-radius:10px 10px 0 0}
 .bp-mobile-catalog-filter .bp-catalog-filters label{flex:1 1 100%;min-width:0}
 .bp-mobile-catalog-filter .bp-catalog-filters select,.bp-mobile-catalog-filter .bp-catalog-filters input{width:100%;min-height:44px}
 .bp-mobile-catalog-filter .bp-catalog-filters button{flex:1 1 100%;min-height:46px}
 .bp-mobile-catalog-filter .bp-catalog-filters__reset{flex:1 1 100%;text-align:center;min-height:44px;box-sizing:border-box}
 .bp-mobile-catalog-filter__active{margin-top:10px}
}

/* v1.0.58: international postal-code coverage and low-stock indicator. */
.bp-delivery-checker{max-width:560px;margin:15px 0;padding:16px;border:1px solid #dfe5ef;border-radius:10px;background:#fbfcff}
.bp-delivery-checker>strong{display:block;margin-bottom:12px;font-size:15px}
.bp-delivery-checker__form{display:flex;align-items:end;flex-wrap:wrap;gap:10px}
.bp-delivery-checker__form label{display:flex;flex:1 1 150px;flex-direction:column;gap:5px;font-size:13px;font-weight:600}
.bp-delivery-checker__form select,.bp-delivery-checker__form input{width:100%;min-width:0;min-height:42px;box-sizing:border-box;border:1px solid #cbd5e1;border-radius:7px;padding:8px;background:#fff}
.bp-delivery-checker__form button{min-height:42px;border:0;border-radius:7px;padding:9px 14px;background:#2949ad;color:#fff;font-weight:600;cursor:pointer}
.bp-delivery-checker__form button:disabled{opacity:.65;cursor:wait}
.bp-delivery-checker__result{margin:10px 0 0;font-size:13px;line-height:1.5}
.bp-low-stock{font-size:14px;font-weight:650;color:#a84b0c;margin:9px 0}
@media(max-width:480px){.bp-delivery-checker{padding:13px}.bp-delivery-checker__form label,.bp-delivery-checker__form button{flex:1 1 100%}}


/* v1.0.59 — premium product details refinement; preserve existing cover dimensions. */
body.single-product .bp-single-main .woocommerce div.product .summary .product_title{
  font-size:clamp(27px,2.7vw,39px);line-height:1.18;letter-spacing:-.025em;
  margin-bottom:12px;color:#152747;
}
body.single-product .bp-single-main .woocommerce div.product .summary > .price{
  display:flex;flex-wrap:wrap;align-items:baseline;gap:8px;
  font-size:clamp(26px,2.4vw,34px)!important;line-height:1.3;
  margin:12px 0 14px!important;color:#2449a6!important;
}
body.single-product .bp-single-main .summary > .price ins{text-decoration:none;font-weight:800}
body.single-product .bp-single-main .summary > .price del{font-size:17px;opacity:.8;font-weight:500}
body.single-product .bp-single-main .bp-product-people{margin:8px 0 14px;line-height:1.65}
body.single-product .bp-single-main .woocommerce-product-details__short-description{margin:12px 0 16px;line-height:1.65}
body.single-product .bp-single-main .woocommerce div.product form.cart{margin:14px 0 16px!important;gap:10px}
body.single-product .bp-single-main .woocommerce div.product form.cart .single_add_to_cart_button{
  min-height:48px;border-radius:9px!important;font-weight:750;box-shadow:0 3px 9px rgba(30,65,140,.12)
}
body.single-product .bp-single-main .woocommerce div.product form.cart .quantity .qty{min-height:46px;border-radius:8px}
body.single-product .bp-single-main .bp-delivery-note{
  margin:12px 0 8px;padding:12px 15px;font-size:13px;line-height:1.5
}
body.single-product .bp-single-main .bp-product-store-links{
  margin:8px 0;padding:11px 15px;font-size:13px;line-height:1.55
}
body.single-product .bp-single-main .bp-product-store-links strong{margin-bottom:4px}
body.single-product .bp-single-main .bp-delivery-checker{
  max-width:none;margin:10px 0 12px;padding:13px 15px;background:#f8faff
}
body.single-product .bp-single-main .bp-delivery-checker>strong{margin-bottom:8px}
body.single-product .bp-single-main .bp-delivery-checker__form{gap:8px}
body.single-product .bp-single-main .bp-delivery-checker__form select,
body.single-product .bp-single-main .bp-delivery-checker__form input,
body.single-product .bp-single-main .bp-delivery-checker__form button{min-height:40px}
body.single-product .bp-single-main .woocommerce div.product .summary .bp-book-info{
  float:none;clear:none;width:100%;max-width:100%;min-width:0;
  box-sizing:border-box;margin:14px 0 16px;padding:17px 19px;
  border:1px solid #e0e7f1;border-radius:12px;background:#f8faff
}
body.single-product .bp-single-main .woocommerce div.product .summary .bp-book-info h2{
  font-size:18px;line-height:1.35;margin:0 0 10px;color:#192e4f
}
body.single-product .bp-single-main .woocommerce div.product .summary .bp-book-info dl{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px;margin:0
}
body.single-product .bp-single-main .woocommerce div.product .summary .bp-book-info-row{
  display:flex;flex-wrap:wrap;gap:5px 9px;align-items:baseline;
  padding:8px 0;border-bottom:1px solid #e2e8f1;min-width:0
}
body.single-product .bp-single-main .woocommerce div.product .summary .bp-book-info dt{
  min-width:0;flex:0 0 auto;font-size:13px;color:#425673
}
body.single-product .bp-single-main .woocommerce div.product .summary .bp-book-info dd{
  min-width:0;margin:0;font-size:13px;color:#152747;overflow-wrap:anywhere
}
body.single-product .bp-single-main .woocommerce div.product .woocommerce-tabs{
  clear:both;margin-top:14px;padding-top:10px
}
body.single-product .bp-single-main .woocommerce div.product .related.products{clear:both}
@media(max-width:780px){
  body.single-product .bp-single-main .woocommerce div.product .summary .bp-book-info dl{grid-template-columns:1fr}
  body.single-product .bp-single-main .woocommerce div.product .summary .bp-book-info{padding:14px}
  body.single-product .bp-single-main .woocommerce div.product .woocommerce-tabs{margin-top:8px}
}
@media(max-width:480px){
  body.single-product .bp-single-main .woocommerce div.product form.cart .single_add_to_cart_button{min-height:48px}
  body.single-product .bp-single-main .bp-delivery-checker{padding:12px}
  body.single-product .bp-single-main .woocommerce div.product .summary .product_title{font-size:28px}
}

/* v1.0.60 — approved Design A; existing image sizing remains unchanged. */
body.single-product .bp-single-main .woocommerce div.product .summary .bp-product-people{margin:0 0 13px;color:#53647b;font-size:14px}
body.single-product .bp-single-main .woocommerce div.product .summary .bp-product-people a{font-weight:650}
body.single-product .bp-single-main .woocommerce div.product .summary .product_title{margin-bottom:5px}
body.single-product .bp-single-main .woocommerce div.product .summary .bp-delivery-checker{margin:16px 0 8px;background:#f9fbff}
body.single-product .bp-single-main .bp-delivery-intro{font-size:13px;color:#52647b;margin:0 0 12px;line-height:1.5}
body.single-product .bp-single-main .bp-delivery-checker__fineprint{font-size:12px;color:#64748b;margin:10px 0 0;line-height:1.5}
body.single-product .bp-single-main .woocommerce div.product .summary .bp-book-info{margin:12px 0;padding:17px 19px;background:#fff}
body.single-product .bp-single-main .woocommerce div.product .summary .bp-book-info dl{grid-template-columns:1fr;gap:0}
body.single-product .bp-single-main .woocommerce div.product .summary .bp-book-info-row{display:grid;grid-template-columns:minmax(105px,35%) 1fr;gap:12px;align-items:start}
body.single-product .bp-single-main .woocommerce div.product .summary .bp-book-info dt{font-weight:600}
body.single-product .bp-single-main .woocommerce div.product .summary .bp-book-info dd{font-size:14px}
body.single-product .bp-single-main .bp-product-store-links{border:0;border-top:1px solid #e2e8f0;border-radius:0;padding:12px 0 0;margin:8px 0 16px;background:transparent}
body.single-product .bp-single-main .bp-product-store-links div{gap:8px 16px}
body.single-product .bp-single-main .woocommerce div.product .woocommerce-tabs{margin-top:10px}
@media(max-width:480px){body.single-product .bp-single-main .woocommerce div.product .summary .bp-book-info-row{grid-template-columns:minmax(85px,38%) 1fr;gap:8px}}

/* v1.0.61 — Premium cart design. Visual styles only: WooCommerce owns all cart state. */
body.woocommerce-cart .bp-standard-page,
body.woocommerce-cart main.wp-block-group {max-width:1240px;margin-inline:auto}
body.woocommerce-cart .wp-block-post-title,
body.woocommerce-cart .entry-title {font-size:clamp(28px,3vw,39px);line-height:1.18;letter-spacing:-.025em;margin:24px 0 22px;color:#172b49}
body.woocommerce-cart .wp-block-woocommerce-cart,
body.woocommerce-cart .woocommerce {color:#26374f}
body.woocommerce-cart .wc-block-cart,
body.woocommerce-cart .woocommerce-cart-form {margin-top:18px}
body.woocommerce-cart .wc-block-components-main,
body.woocommerce-cart .woocommerce-cart-form {min-width:0}
body.woocommerce-cart .wc-block-cart-items,
body.woocommerce-cart .woocommerce-cart-form table.shop_table {width:100%;border:1px solid #e3e9f2;border-radius:14px;background:#fff;box-shadow:0 6px 24px rgba(23,43,73,.035);overflow:hidden;border-collapse:separate;border-spacing:0}
body.woocommerce-cart .wc-block-cart-items th,
body.woocommerce-cart .woocommerce-cart-form table.shop_table th {background:#f6f8fc;color:#53637b;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.055em;padding:15px 18px}
body.woocommerce-cart .wc-block-cart-items td,
body.woocommerce-cart .woocommerce-cart-form table.shop_table td {padding:20px 16px;border-color:#e9edf4;vertical-align:middle}
body.woocommerce-cart .wc-block-cart-item__image img,
body.woocommerce-cart .woocommerce-cart-form .product-thumbnail img {width:76px;max-width:100%;height:auto;object-fit:contain;border-radius:5px;box-shadow:0 4px 12px rgba(25,42,65,.08)}
body.woocommerce-cart .wc-block-components-product-name,
body.woocommerce-cart .woocommerce-cart-form .product-name a {color:#172b49;font-weight:700;font-size:16px;line-height:1.45;text-decoration:none}
body.woocommerce-cart .wc-block-components-product-name:hover,
body.woocommerce-cart .woocommerce-cart-form .product-name a:hover {color:#2059a5;text-decoration:underline}
body.woocommerce-cart .wc-block-components-product-metadata,
body.woocommerce-cart .wc-block-components-product-details {color:#66758b;font-size:12px}
body.woocommerce-cart .wc-block-components-quantity-selector,
body.woocommerce-cart .woocommerce-cart-form .quantity {border:1px solid #dce4ee;border-radius:9px;min-height:39px;background:#fff}
body.woocommerce-cart .wc-block-components-quantity-selector input,
body.woocommerce-cart .woocommerce-cart-form input.qty {font-weight:650;color:#182c49;min-height:38px}
body.woocommerce-cart .wc-block-cart-item__remove-link,
body.woocommerce-cart .woocommerce-cart-form .product-remove a {color:#68788d;text-decoration:underline;text-underline-offset:3px;font-size:12px}
body.woocommerce-cart .wc-block-cart-item__remove-link:hover,
body.woocommerce-cart .woocommerce-cart-form .product-remove a:hover {color:#ae3434}
body.woocommerce-cart .wc-block-components-sidebar,
body.woocommerce-cart .cart-collaterals .cart_totals {border:1px solid #e1e8f2;border-radius:15px;background:#f8faff;padding:22px;box-shadow:0 7px 25px rgba(23,43,73,.04);box-sizing:border-box}
body.woocommerce-cart .wc-block-components-sidebar .wc-block-components-totals-wrapper {border-color:#e0e6ef}
body.woocommerce-cart .wc-block-components-sidebar .wc-block-components-totals-item__label,
body.woocommerce-cart .cart-collaterals .cart_totals th {color:#53647b}
body.woocommerce-cart .wc-block-components-sidebar .wc-block-components-totals-footer-item__value,
body.woocommerce-cart .cart-collaterals .order-total .amount {color:#142b4c;font-weight:800;font-size:21px}
body.woocommerce-cart .wc-block-components-checkout-place-order-button,
body.woocommerce-cart .wc-block-cart__submit-button,
body.woocommerce-cart .cart-collaterals .checkout-button {display:flex;justify-content:center;align-items:center;width:100%;min-height:49px;box-sizing:border-box;border:0;border-radius:9px;background:#174c94;color:#fff;font-weight:700;font-size:15px;text-align:center;text-decoration:none;transition:background .15s ease,transform .15s ease}
body.woocommerce-cart .wc-block-cart__submit-button:hover,
body.woocommerce-cart .cart-collaterals .checkout-button:hover {background:#0d356c;color:#fff;transform:translateY(-1px)}
body.woocommerce-cart .wc-block-components-totals-coupon__form input,
body.woocommerce-cart .woocommerce-cart-form .coupon input.input-text {min-height:42px;border:1px solid #d7e0eb;border-radius:8px;padding:9px 12px;box-sizing:border-box}
body.woocommerce-cart .wc-block-components-totals-coupon__button,
body.woocommerce-cart .woocommerce-cart-form .coupon button,
body.woocommerce-cart .woocommerce-cart-form button[name="update_cart"] {min-height:42px;border-radius:8px;font-weight:650}
body.woocommerce-cart .wc-block-components-notice-banner {border-radius:10px}
body.woocommerce-cart .wc-block-cart__empty-cart__title {font-size:clamp(24px,3vw,34px);color:#172b49}
body.woocommerce-cart .wc-block-cart__empty-cart__title + p {color:#5d6b80}
body.woocommerce-cart a:focus-visible,
body.woocommerce-cart button:focus-visible,
body.woocommerce-cart input:focus-visible {outline:3px solid #ffb547;outline-offset:2px}
@media(max-width:780px){
  body.woocommerce-cart .bp-standard-page,body.woocommerce-cart main.wp-block-group{padding-inline:14px}
  body.woocommerce-cart .wc-block-components-sidebar,body.woocommerce-cart .cart-collaterals .cart_totals{padding:18px;margin-top:18px}
  body.woocommerce-cart .wc-block-cart-items td,body.woocommerce-cart .woocommerce-cart-form table.shop_table td{padding:13px 10px}
  body.woocommerce-cart .wc-block-cart-item__image img,body.woocommerce-cart .woocommerce-cart-form .product-thumbnail img{width:62px}
  body.woocommerce-cart .wc-block-components-product-name,body.woocommerce-cart .woocommerce-cart-form .product-name a{font-size:14px}
}
@media(max-width:480px){
  body.woocommerce-cart .wp-block-post-title,body.woocommerce-cart .entry-title{margin:16px 0;font-size:27px}
  body.woocommerce-cart .wc-block-cart-items{border-radius:10px}
  body.woocommerce-cart .wc-block-components-sidebar{border-radius:11px;padding:15px}
  body.woocommerce-cart .wc-block-cart__submit-button,body.woocommerce-cart .cart-collaterals .checkout-button{min-height:50px}
}
@media(prefers-reduced-motion:reduce){body.woocommerce-cart .wc-block-cart__submit-button,body.woocommerce-cart .cart-collaterals .checkout-button{transition:none;transform:none}}

/* Copyright (C) 2026 CodeNirvaan. Licensed under GPL-2.0-or-later. */


/* v0.1.12-dev: conservative responsive formatting for imported theme-test content.
   Scoped to standard page/post content; storefront components are unchanged. */
:where(.wp-block-post-content, .entry-content, .bp-standard-page) {
  min-width: 0;
  overflow-wrap: break-word;
}
:where(.wp-block-post-content, .entry-content, .bp-standard-page) :where(img, video, iframe, embed, object) {
  max-width: 100%;
}
:where(.wp-block-post-content, .entry-content, .bp-standard-page) :where(pre, .wp-block-preformatted, .wp-block-code) {
  max-width: 100%;
  overflow-x: auto;
}
:where(.wp-block-post-content, .entry-content, .bp-standard-page) :where(table, .wp-block-table) {
  max-width: 100%;
}
:where(.wp-block-post-content, .entry-content, .bp-standard-page) .wp-block-table {
  overflow-x: auto;
}
@media (max-width: 781px) {
  :where(.wp-block-post-content, .entry-content, .bp-standard-page) :where(ul, ol) {
    padding-inline-start: 1.4em;
  }
  :where(.wp-block-post-content, .entry-content, .bp-standard-page) :where(li, blockquote, p, a, td, th) {
    overflow-wrap: anywhere;
  }
  :where(.wp-block-post-content, .entry-content, .bp-standard-page) blockquote {
    max-width: 100%;
    box-sizing: border-box;
    margin-inline: 0;
    padding-inline: 1em;
  }
  :where(.wp-block-post-content, .entry-content, .bp-standard-page) :where(table, .wp-block-table table) {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
/* Responsive preformatted content */
/* Responsive preformatted and code blocks */
pre,
.wp-block-preformatted,
.wp-block-code,
.wp-block-verse {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    box-sizing: border-box;
}
/* Release candidate: allow long site titles to wrap without overlapping search. */
.bp-main-header { min-width: 0; }
.bp-main-header > * { min-width: 0; }
.bp-main-header .wp-block-site-title { overflow-wrap: anywhere; word-break: normal; }
.bp-main-header .wp-block-search,
.bp-main-header .bp-book-search { min-width: min(100%, 240px); }
@media (max-width: 780px) {
  .bp-main-header { align-items: stretch; }
  .bp-main-header .wp-block-search,
  .bp-main-header .bp-book-search { flex: 1 1 100%; max-width: 100%; }
}

/* Native block storefront — editor and frontend use the same structural blocks. */
.bp-main-header{display:flex;align-items:center;gap:18px;flex-wrap:wrap;padding:20px 22px;max-width:1280px;margin:auto}
.bp-main-header .wp-block-site-title{min-width:0;overflow-wrap:anywhere;flex:0 1 260px;font-weight:800;font-size:clamp(18px,2vw,28px);margin:0}
.bp-main-header .wp-block-search{flex:1 1 280px;min-width:170px;max-width:650px}
.bp-main-header .wp-block-navigation{flex:0 1 auto}
.bp-native-nav{border-top:1px solid #e3e7ef;padding:12px 20px}
.bp-native-hero{display:block;min-height:250px;padding:clamp(24px,4vw,58px);background:linear-gradient(115deg,#eef3ff,#fff3dc);border-radius:18px;margin:8px 0 36px;position:relative;overflow:hidden}
.bp-native-hero:after{content:'📚';position:absolute;right:8%;top:18%;font-size:clamp(60px,10vw,150px);opacity:.7;pointer-events:none}
.bp-native-hero>*{max-width:620px;position:relative;z-index:1}
.bp-native-hero .wp-block-button__link{background:#2346a0;color:#fff;border-radius:9px}
.bp-native-products .wp-block-post-template{gap:20px}
.bp-native-product{border:1px solid #e3e7ef;border-radius:12px;padding:14px;height:100%}
.bp-native-product img{max-height:260px;object-fit:contain}
.bp-native-footer{background:#14233e;color:#e7ebf3;padding:40px max(22px,calc((100vw - 1240px)/2));max-width:none!important}
.bp-native-footer a,.bp-native-footer h3,.bp-native-footer .wp-block-site-title a{color:#fff}
@media(max-width:650px){.bp-main-header{padding:14px}.bp-native-hero:after{opacity:.15}.bp-native-products .wp-block-post-template{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* v0.1.20: native-block storefront visual regression corrections. */
.bp-header .bp-main-header {
  display: grid;
  grid-template-columns: minmax(0,auto) minmax(0,1fr) minmax(250px,2fr) auto;
  align-items: center;
  gap: clamp(12px,2vw,24px);
  width: min(100%,1280px);
  box-sizing: border-box;
  margin-inline: auto;
}
.bp-header .bp-main-header > * { min-width: 0; max-width: 100%; }
.bp-header .bp-main-header .wp-block-site-title {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.15;
  flex: initial;
  max-width: 290px;
}
.bp-header .bp-main-header .wp-block-search {
  width: 100%; min-width: 0; max-width: none; margin: 0;
}
.bp-header .bp-main-header > .wp-block-navigation { padding: 0; border: 0; margin: 0; }
.bp-native-home .bp-native-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  box-sizing: border-box;
  width: 100%;
  min-height: 300px;
  background-image: linear-gradient(115deg,#eef3ff 0%,#f8faff 63%,#fff3dc 100%);
  background-size: cover;
  background-position: right center;
}
.bp-native-home .bp-native-hero > * { width: min(100%,620px); margin-left: 0; margin-right: auto; }
.bp-native-home .bp-native-hero h1 { text-align: left; margin-top: 8px; }
.bp-native-home .bp-native-hero .wp-block-buttons { justify-content: flex-start; }
.bp-native-home .bp-native-hero:after { right: 7%; top: 12%; }
.bp-native-home .bp-native-hero.bp-native-hero-image { background-image: linear-gradient(90deg,rgba(247,249,255,.95),rgba(247,249,255,var(--bp-native-overlay,.35))),var(--bp-native-hero-url); background-position: center,var(--bp-native-hero-position,right center); }
.bp-native-home .bp-native-hero.bp-native-hero-image:after { content: none; }
@media (max-width: 1050px) {
  .bp-header .bp-main-header { grid-template-columns: auto minmax(0,1fr); }
  .bp-header .bp-main-header .wp-block-search { grid-column: 1 / -1; grid-row: 2; }
  .bp-header .bp-main-header > .wp-block-navigation { justify-self: end; }
}
@media (max-width: 650px) {
  .bp-header .bp-main-header { grid-template-columns: minmax(0,1fr) auto; gap: 12px; }
  .bp-header .bp-main-header .wp-block-site-logo { grid-column: 1; }
  .bp-header .bp-main-header .wp-block-site-title { grid-column: 1 / -1; max-width: none; }
  .bp-header .bp-main-header .wp-block-search { grid-column: 1 / -1; grid-row: auto; }
  .bp-header .bp-main-header > .wp-block-navigation { grid-column: 2; grid-row: 1; }
  .bp-native-home .bp-native-hero { min-height: 240px; }
  .bp-native-home .bp-native-hero.bp-native-hero-image { background-image: linear-gradient(90deg,rgba(247,249,255,.94),rgba(247,249,255,.72)),var(--bp-native-hero-mobile-url,var(--bp-native-hero-url)); }
}

/* Native homepage: WooCommerce category tiles rendered by its built-in shortcode. */
.bp-native-home .bp-native-category-section {margin-block: 1.25rem 2rem;}
.bp-native-home .bp-native-category-section ul.products {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1.25rem;margin:0;padding:0;list-style:none;}
.bp-native-home .bp-native-category-section ul.products::before,.bp-native-home .bp-native-category-section ul.products::after {display:none;}
.bp-native-home .bp-native-category-section ul.products li.product-category {box-sizing:border-box;float:none!important;width:auto!important;margin:0!important;list-style:none;border:1px solid #e1e7f1;border-radius:14px;padding:1rem;background:#fff;text-align:center;}
.bp-native-home .bp-native-category-section li.product-category a {display:block;color:#172b4d;text-decoration:none;}
.bp-native-home .bp-native-category-section li.product-category img {display:block;max-width:100%;height:160px;object-fit:contain;margin:0 auto .75rem;}
.bp-native-home .bp-native-category-section li.product-category h2 {font-size:1.1rem;line-height:1.4;margin:0;}
@media(max-width:900px){.bp-native-home .bp-native-category-section ul.products{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:480px){.bp-native-home .bp-native-category-section ul.products{grid-template-columns:1fr 1fr;gap:.65rem;}.bp-native-home .bp-native-category-section ul.products li.product-category{padding:.65rem;}.bp-native-home .bp-native-category-section li.product-category img{height:100px;}}

/* v0.1.22: compact, non-stretching homepage category tiles */
.bp-native-home .bp-native-category-section ul.products {grid-template-columns:repeat(auto-fill,minmax(125px,155px))!important;gap:12px!important;justify-content:start!important;}
.bp-native-home .bp-native-category-section ul.products li.product-category {width:100%!important;max-width:155px!important;min-height:0!important;padding:10px!important;border-radius:10px!important;}
.bp-native-home .bp-native-category-section li.product-category img {width:100%!important;height:90px!important;object-fit:contain!important;margin:0 auto 8px!important;}
.bp-native-home .bp-native-category-section li.product-category h2 {font-size:14px!important;line-height:1.3!important;}
@media(max-width:480px){.bp-native-home .bp-native-category-section ul.products{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;}.bp-native-home .bp-native-category-section ul.products li.product-category{max-width:155px!important;padding:8px!important;}.bp-native-home .bp-native-category-section li.product-category img{height:76px!important;}}


/* v0.1.23: six compact square category images, one horizontal row */
.bp-native-home .bp-native-category-section ul.products {
 display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;
 gap:14px!important;overflow-x:auto!important;overflow-y:hidden!important;
 padding:4px 2px 12px!important;margin:0!important;scroll-snap-type:x proximity;
}
.bp-native-home .bp-native-category-section ul.products::before,
.bp-native-home .bp-native-category-section ul.products::after{display:none!important;}
.bp-native-home .bp-native-category-section ul.products li.product-category {
 float:none!important;clear:none!important;box-sizing:border-box!important;
 width:100%!important;max-width:none!important;min-width:0!important;
 margin:0!important;padding:6px!important;border:0!important;background:transparent!important;
 box-shadow:none!important;text-align:center!important;scroll-snap-align:start;
}
.bp-native-home .bp-native-category-section li.product-category a {display:block;text-decoration:none;}
.bp-native-home .bp-native-category-section li.product-category img {
 display:block!important;width:100%!important;max-width:112px!important;
 height:auto!important;aspect-ratio:1/1!important;object-fit:cover!important;
 border-radius:10px!important;margin:0 auto 8px!important;background:#f1f2f3;
}
.bp-native-home .bp-native-category-section li.product-category h2 {
 font-size:13px!important;line-height:1.35!important;margin:0!important;
 text-align:center!important;overflow-wrap:anywhere;
}
@media(max-width:767px){
 .bp-native-home .bp-native-category-section ul.products {
  grid-template-columns:repeat(6,minmax(105px,1fr))!important;gap:10px!important;
 }
 .bp-native-home .bp-native-category-section ul.products li.product-category {padding:4px!important;}
 .bp-native-home .bp-native-category-section li.product-category img {max-width:94px!important;}
}


/* v0.1.24: Scoped overrides for WooCommerce category shortcode, including global product-image rules. */
body .bp-native-home .bp-native-category-section .woocommerce ul.products,
body .bp-native-home .bp-native-category-section ul.products {
 display:grid!important;grid-template-columns:repeat(6,minmax(0,128px))!important;
 gap:16px!important;justify-content:start!important;align-items:start!important;
 overflow-x:auto!important;overflow-y:hidden!important;list-style:none!important;
 margin:0!important;padding:6px 0 12px!important;
}
body .bp-native-home .bp-native-category-section .woocommerce ul.products li.product-category,
body .bp-native-home .bp-native-category-section ul.products li.product-category {
 float:none!important;clear:none!important;display:block!important;
 width:128px!important;max-width:128px!important;min-width:0!important;
 height:auto!important;min-height:0!important;max-height:none!important;
 margin:0!important;padding:0!important;border:0!important;
 box-shadow:none!important;background:transparent!important;text-align:center!important;
}
body .bp-native-home .bp-native-category-section ul.products li.product-category a {
 display:flex!important;flex-direction:column!important;align-items:center!important;
 width:100%!important;text-decoration:none!important;
}
body .bp-native-home .bp-native-category-section .woocommerce ul.products li.product-category a img,
body .bp-native-home .bp-native-category-section .woocommerce ul.products li.product-category img,
body .bp-native-home .bp-native-category-section ul.products li.product-category img {
 display:block!important;box-sizing:border-box!important;
 width:112px!important;min-width:112px!important;max-width:112px!important;
 height:112px!important;min-height:112px!important;max-height:112px!important;
 aspect-ratio:1 / 1!important;object-fit:cover!important;object-position:center!important;
 padding:0!important;margin:0 auto 8px!important;border-radius:10px!important;
 background:#f3f5f8!important;
}
body .bp-native-home .bp-native-category-section ul.products li.product-category h2,
body .bp-native-home .bp-native-category-section ul.products li.product-category .woocommerce-loop-category__title {
 font-size:13px!important;line-height:1.4!important;margin:0!important;padding:0!important;
 min-height:0!important;text-align:center!important;
}
body .bp-native-home .bp-native-category-section ul.products li.product-category h2 .count {display:none!important;}
@media(max-width:767px){
 body .bp-native-home .bp-native-category-section .woocommerce ul.products,
 body .bp-native-home .bp-native-category-section ul.products {
  grid-template-columns:repeat(6,104px)!important;gap:12px!important;
 }
 body .bp-native-home .bp-native-category-section ul.products li.product-category {
  width:104px!important;max-width:104px!important;
 }
 body .bp-native-home .bp-native-category-section ul.products li.product-category img,
 body .bp-native-home .bp-native-category-section .woocommerce ul.products li.product-category img {
  width:94px!important;min-width:94px!important;max-width:94px!important;
  height:94px!important;min-height:94px!important;max-height:94px!important;
 }
}

/* v0.1.25: prevent unnecessary vertical gaps after category tiles. */
.bp-native-home .bp-native-category-section,
.bp-native-home .bp-native-category-section .woocommerce,
.bp-native-home .bp-native-category-section .woocommerce ul.products {min-height:0!important;height:auto!important;}
.bp-native-home .bp-native-category-section {margin-block:12px 4px!important;padding-block:0!important;}
.bp-native-home .bp-native-category-section ul.products {align-content:start!important;}


/* v0.1.26: compact category row and readable hero; all rules scoped to homepage. */
.bp-native-home .bp-native-category-section{margin:8px 0 0!important;padding:0!important;min-height:0!important;}
.bp-native-home .bp-native-category-section .woocommerce{margin:0!important;padding:0!important;min-height:0!important;}
.bp-native-home .bp-native-category-section ul.products{margin:0!important;padding:0!important;align-items:start!important;align-content:start!important;grid-auto-rows:max-content!important;}
.bp-native-home .bp-native-category-section ul.products li.product-category{margin:0!important;padding:0!important;min-height:0!important;align-self:start!important;}
.bp-native-home .bp-native-category-section ul.products li.product-category a{gap:8px!important;}
.bp-native-home .bp-native-category-section ul.products li.product-category img{margin:0 auto!important;aspect-ratio:1/1!important;object-fit:cover!important;}
.bp-native-home .bp-native-category-section ul.products li.product-category .woocommerce-loop-category__title{margin:0!important;padding:0!important;line-height:1.35!important;}
.bp-native-home .bp-native-category-section + .wp-block-paragraph{margin-top:8px!important;margin-bottom:20px!important;}
.bp-native-home .bp-native-hero{padding:clamp(28px,4vw,58px)!important;min-height:280px!important;}
.bp-native-home .bp-native-hero > *{max-width:550px!important;}
.bp-native-home .bp-native-hero h1{font-size:clamp(30px,3.7vw,54px)!important;line-height:1.12!important;max-width:540px!important;text-wrap:balance;}
.bp-native-home .bp-native-hero.bp-native-hero-image{background-position:center right!important;}
.bp-native-home .bp-native-hero.bp-native-hero-image::before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,rgba(255,255,255,.83) 0%,rgba(255,255,255,.70) 45%,rgba(255,255,255,.12) 100%);pointer-events:none;z-index:0;}
.bp-native-home .bp-native-hero.bp-native-hero-image > *{position:relative;z-index:1;}
@media(max-width:767px){.bp-native-home .bp-native-hero.bp-native-hero-image::before{background:rgba(255,255,255,.70);}}

/* v0.1.27: Category tile spacing correction. WooCommerce product-card rules
   must not stretch the category link or reserve a product-image height. */
body .bp-native-home .bp-native-category-section .woocommerce ul.products {
  grid-template-columns:repeat(6,128px)!important;
  grid-auto-rows:max-content!important;
  align-items:start!important;
  align-content:start!important;
  gap:12px!important;
  margin:0!important;
  padding:0 0 4px!important;
}
body .bp-native-home .bp-native-category-section .woocommerce ul.products li.product-category {
  display:block!important;
  height:auto!important;
  min-height:0!important;
  padding:0!important;
  margin:0!important;
  align-self:start!important;
}
body .bp-native-home .bp-native-category-section .woocommerce ul.products li.product-category > a {
  display:flex!important;
  flex-direction:column!important;
  justify-content:flex-start!important;
  align-items:center!important;
  gap:8px!important;
  height:auto!important;
  min-height:0!important;
  padding:0!important;
  margin:0!important;
}
body .bp-native-home .bp-native-category-section .woocommerce ul.products li.product-category > a > img {
  display:block!important;
  flex:0 0 112px!important;
  width:112px!important;
  height:112px!important;
  min-height:112px!important;
  max-height:112px!important;
  margin:0!important;
  padding:0!important;
  object-fit:cover!important;
}
body .bp-native-home .bp-native-category-section .woocommerce ul.products li.product-category > a > .woocommerce-loop-category__title {
  display:block!important;
  position:static!important;
  margin:0!important;
  padding:0!important;
  min-height:0!important;
  height:auto!important;
  line-height:1.35!important;
}
@media(max-width:767px){
 body .bp-native-home .bp-native-category-section .woocommerce ul.products{grid-template-columns:repeat(6,104px)!important;gap:12px!important;}
 body .bp-native-home .bp-native-category-section .woocommerce ul.products li.product-category > a > img{flex-basis:94px!important;width:94px!important;height:94px!important;min-height:94px!important;max-height:94px!important;}
}
