/*
Theme Name: BoiBikroy BD
Version: 2.4.0
Description: Compact Bengali WooCommerce bookstore with guest checkout.
Text Domain: boibikroybd
*/
:root{--blue:#0964d8;--ink:#172b42;--muted:#637083;--line:#e5eaf0;--green:#08734f}
*{box-sizing:border-box}body{margin:0;font-family:"Noto Sans Bengali",Arial,sans-serif;color:var(--ink);background:#fff;line-height:1.65}a{color:var(--blue);text-decoration:none}img{max-width:100%;height:auto}button,input,select,textarea{font:inherit}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #1769cf;outline-offset:3px}.screen-reader-text,.bb-skip{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.bb-skip:focus{position:fixed;top:8px;left:8px;width:auto;height:auto;padding:10px;background:white;clip:auto;z-index:99999}
.bb-header{border-bottom:1px solid var(--line);background:#fff}.bb-header-inner{max-width:1200px;width:calc(100% - 40px);margin:auto;display:flex;align-items:center;gap:30px;padding:22px 0}.bb-logo{flex-shrink:0}.bb-logo a{font-size:25px;font-weight:800}.bb-logo img{display:block;width:150px;max-height:70px;object-fit:contain}.bb-search{flex:1;min-width:0}.bb-search form{width:100%;display:flex;border:1px solid #d9e2ed;border-radius:12px;background:#f8fafc;overflow:hidden}.bb-search input[type=search]{flex:1;width:0;min-width:0;padding:12px 16px;border:0;background:transparent;color:var(--ink)}.bb-search button{display:grid;place-items:center;flex:0 0 52px;border:0;background:var(--blue);color:white;cursor:pointer}.bb-menu{display:flex;align-items:center;gap:20px;flex-shrink:0}.bb-menu a{font-size:14px;color:var(--ink);font-weight:600;white-space:nowrap}.bb-menu .bb-header-cart{padding:8px 14px;background:#edf5ff;border-radius:9px;color:var(--blue)}
.bb-hero{width:calc(100% - 40px);max-width:1200px;height:430px;margin:30px auto;position:relative;border-radius:22px;overflow:hidden}.bb-hero>img{width:100%;height:100%;object-fit:cover}.bb-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(10,28,24,.83),rgba(10,28,24,.15))}.bb-hero-text{position:absolute;top:50%;left:48px;right:32px;transform:translateY(-50%);max-width:620px;color:#fff}.bb-hero-text h1{font-size:46px;line-height:1.35;margin:0 0 18px}.bb-hero-text p{font-size:18px;margin:0 0 26px}.bb-buttons{display:flex;gap:12px;flex-wrap:wrap}.bb-buttons a{padding:12px 22px;border-radius:10px;color:white;font-weight:700}.new-book-btn{background:var(--blue)}.old-book-btn{background:#a94e00}.bb-discover{width:calc(100% - 40px);max-width:1200px}.bb-discover .bb-discover-grid{grid-template-columns:repeat(7,minmax(0,1fr))}
.bb-promos,.bb-home-books{width:calc(100% - 40px);max-width:1200px;margin:32px auto 44px}.bb-promos{display:grid;grid-template-columns:1fr 1fr;gap:22px}.bb-promo{border-radius:18px;padding:30px;border:1px solid #d9eae3}.bb-promo-new{background:#edf8f1}.bb-promo-old{background:#fff3e7;border-color:#f2e0ca}.bb-promo>span,.bb-section-title span{font-size:13px;color:var(--muted)}.bb-promo h2{font-size:28px;margin:8px 0}.bb-promo p{margin:0 0 20px;color:#526174;max-width:400px}.bb-promo a{display:inline-block;padding:10px 16px;border-radius:9px;background:#17684b;color:white;font-weight:600}.bb-promo-old a{background:#944810}.bb-section-title{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}.bb-section-title h2{font-size:28px;margin:3px 0}.bb-section-title>a{font-weight:600;font-size:14px}
main.bb-store-page{width:calc(100% - 40px);max-width:1200px;min-height:50vh;margin:36px auto 60px}.bb-store-page::after{content:"";display:table;clear:both}.bb-store-page .woocommerce-products-header{padding:24px;border:1px solid var(--line);border-radius:16px;background:#f3f7fc;margin-bottom:24px}.bb-store-page h1{font-size:30px;line-height:1.5;margin:0 0 12px}.bb-store-page .term-description{color:var(--muted)}.bb-store-page .term-description p{margin:0}.bb-store-page .woocommerce-result-count{font-size:14px;color:var(--muted)}.bb-store-page .woocommerce-ordering select{max-width:100%;padding:10px 14px;border:1px solid var(--line);border-radius:9px;background:white}
.woocommerce .bb-store-page ul.products,.bb-home-books.woocommerce ul.products{clear:both;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px;width:100%;padding:0;margin:0 0 30px;list-style:none}.woocommerce .bb-store-page ul.products::before,.woocommerce .bb-store-page ul.products::after,.bb-home-books.woocommerce ul.products::before,.bb-home-books.woocommerce ul.products::after{display:none;content:none}
.woocommerce .bb-store-page ul.products li.product,.bb-home-books.woocommerce ul.products li.product{float:none;clear:none;position:relative;display:flex;flex-direction:column;width:auto;min-width:0;margin:0;padding:16px;border:1px solid var(--line);border-radius:16px;background:white;box-shadow:0 4px 16px #192d4b08}
.woocommerce .bb-store-page ul.products li.product a img,.bb-home-books.woocommerce ul.products li.product a img{width:100%;height:230px;object-fit:contain;padding:10px;background:#f8fafc;border-radius:10px;margin:0 0 14px}
.woocommerce .bb-store-page ul.products li.product .woocommerce-loop-product__title,.bb-home-books.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:16px;line-height:1.6;color:var(--ink);padding:0 0 10px;overflow-wrap:anywhere}
.woocommerce .bb-store-page ul.products li.product .price,.bb-home-books.woocommerce ul.products li.product .price{font-size:18px;color:var(--green);font-weight:700;margin:0 0 16px}.woocommerce .bb-store-page .price del,.bb-home-books.woocommerce .price del{font-size:14px;color:var(--muted);opacity:1;margin-right:5px}.woocommerce .bb-store-page .price ins,.bb-home-books.woocommerce .price ins{background:none;text-decoration:none}
.woocommerce .bb-store-page ul.products li.product .button,.bb-home-books.woocommerce ul.products li.product .button{display:block;width:100%;margin:auto 0 0;padding:12px 10px;border-radius:9px;background:var(--blue);color:white;text-align:center;font-size:14px;line-height:1.5}.bb-home-books .added_to_cart,.bb-store-page .added_to_cart{padding-top:10px;text-align:center}
.woocommerce .bb-store-page span.onsale,.bb-home-books.woocommerce span.onsale{top:12px;left:12px;right:auto;z-index:2;min-width:0;min-height:0;margin:0;padding:6px 10px;border-radius:7px;background:var(--green);font-size:12px;line-height:1.5}
.woocommerce .bb-store-page div.product div.images{float:left;width:44%;margin:0 0 32px;padding:22px;border:1px solid var(--line);border-radius:18px;background:#f8fafc}.woocommerce .bb-store-page div.product div.images .woocommerce-product-gallery__image img{width:100%;height:auto;max-height:490px;object-fit:contain}.woocommerce .bb-store-page div.product div.summary{float:right;width:51%;min-width:0;margin:0 0 32px;padding:12px 0;overflow-wrap:anywhere}.woocommerce .bb-store-page div.product .product_title{font-size:30px;color:var(--ink);line-height:1.5;margin-bottom:16px}.woocommerce .bb-store-page div.product p.price{color:var(--green);font-size:27px}.bb-store-page .woocommerce-product-details__short-description{color:#526174;line-height:1.9;margin:20px 0}.woocommerce .bb-store-page .quantity .qty{width:76px;min-height:46px;margin-right:10px;padding:8px;border:1px solid #d7e0ea;border-radius:8px}.woocommerce .bb-store-page button.single_add_to_cart_button{min-height:46px;padding:12px 24px;border-radius:9px;background:var(--blue);color:white;line-height:1.5}.bb-store-page .product_meta{padding-top:18px;border-top:1px solid var(--line);font-size:14px;color:var(--muted)}.bb-store-page .product_meta>span{display:block;margin-bottom:6px}.bb-store-page .variations select{max-width:100%;min-height:44px}.bb-store-page .woocommerce-tabs,.bb-store-page .related,.bb-store-page .up-sells{clear:both;padding-top:24px}.bb-store-page .woocommerce-Tabs-panel{line-height:1.9;overflow-wrap:anywhere}.bb-store-page .related>h2{font-size:24px;margin-bottom:22px}.bb-store-page input,.bb-store-page textarea{max-width:100%}
.bb-footer{background:#f3f7fc;border-top:1px solid var(--line);padding:36px 0}.bb-footer-inner{width:calc(100% - 40px);max-width:1200px;margin:auto}.bb-footer h2{font-size:23px;margin:0 0 8px;color:var(--blue)}.bb-footer p{color:var(--muted);font-size:14px}.bb-footer nav{display:flex;flex-wrap:wrap;gap:20px;font-size:14px}.bb-copyright{border-top:1px solid #dfe6ef;padding-top:18px;margin-top:24px}
@media(max-width:1024px){.bb-header-inner{gap:18px;flex-wrap:wrap}.bb-search{min-width:280px}.bb-menu{gap:18px}.woocommerce .bb-store-page ul.products,.bb-home-books.woocommerce ul.products{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.bb-discover .bb-discover-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:768px){.bb-header-inner{width:calc(100% - 28px);padding:14px 0;gap:12px}.bb-logo a{font-size:21px}.bb-logo img{width:120px}.bb-menu{margin-left:auto;gap:12px}.bb-menu a{font-size:12px}.bb-menu>a:first-child{display:none}.bb-search{order:3;flex-basis:100%;min-width:0}.bb-hero{width:calc(100% - 28px);height:390px;margin:20px auto;border-radius:16px}.bb-hero-text{left:24px;right:24px}.bb-hero-text h1{font-size:33px}.bb-hero-text p{font-size:15px}.bb-buttons a{padding:10px 14px;font-size:14px}.bb-discover{width:calc(100% - 28px)}.bb-discover .bb-discover-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.bb-promos,.bb-home-books{width:calc(100% - 28px);margin:24px auto 32px}.bb-promos{grid-template-columns:1fr;gap:14px}.bb-promo{padding:24px}.bb-promo h2{font-size:25px}main.bb-store-page{width:calc(100% - 28px);margin:24px auto 40px}.woocommerce .bb-store-page ul.products,.bb-home-books.woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.woocommerce .bb-store-page ul.products li.product,.bb-home-books.woocommerce ul.products li.product{padding:10px}.woocommerce .bb-store-page ul.products li.product a img,.bb-home-books.woocommerce ul.products li.product a img{height:175px;padding:6px}.woocommerce .bb-store-page ul.products li.product .woocommerce-loop-product__title,.bb-home-books.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:14px}.woocommerce .bb-store-page .woocommerce-result-count,.woocommerce .bb-store-page .woocommerce-ordering{float:none}.bb-store-page .woocommerce-ordering select{width:100%}.woocommerce .bb-store-page div.product div.images,.woocommerce .bb-store-page div.product div.summary{float:none;width:100%}.woocommerce .bb-store-page div.product div.images .woocommerce-product-gallery__image img{max-height:360px}.woocommerce .bb-store-page div.product .product_title{font-size:24px}.bb-footer-inner{width:calc(100% - 28px)}}

/* Simple guest checkout and cart */
.bb-checkout-intro{margin:0 0 28px;color:#637083}.woocommerce-checkout .bb-store-page{max-width:1100px}.bb-store-page .woocommerce form.checkout #customer_details{width:54%;float:left;padding:24px;background:#f8fafc;border:1px solid #e5eaf0;border-radius:16px}.bb-store-page .woocommerce form.checkout #customer_details .col-1{width:100%;float:none}.bb-store-page .woocommerce form.checkout #customer_details .col-2{display:none}.bb-store-page .woocommerce form.checkout #order_review_heading,.bb-store-page .woocommerce form.checkout #order_review{width:42%;float:right}.bb-store-page .woocommerce form.checkout::after{content:"";display:table;clear:both}.bb-store-page .woocommerce form .form-row{padding:0;margin-bottom:18px}.bb-store-page .woocommerce form .form-row label{font-size:14px;font-weight:600;margin-bottom:7px;color:#25364a}.bb-store-page .woocommerce form .form-row input.input-text,.bb-store-page .woocommerce form .form-row textarea,.bb-store-page .woocommerce form .form-row select{width:100%;min-height:48px;padding:11px 13px;background:white;border:1px solid #cbd5e1;border-radius:9px;color:#172b42}.bb-store-page .woocommerce form .form-row textarea{min-height:112px;resize:vertical}.bb-store-page .select2-container .select2-selection--single{height:48px;border:1px solid #cbd5e1;border-radius:9px}.bb-store-page .select2-container .select2-selection--single .select2-selection__rendered{line-height:46px;padding-left:13px}.bb-store-page .select2-container .select2-selection--single .select2-selection__arrow{height:46px}.bb-store-page .woocommerce h3{font-size:21px;margin:0 0 20px}.bb-store-page .woocommerce table.shop_table{border:1px solid #e5eaf0;border-radius:12px;border-collapse:separate;background:white}.bb-store-page .woocommerce table.shop_table th,.bb-store-page .woocommerce table.shop_table td{padding:14px 12px}.bb-store-page .woocommerce #payment{background:#edf7f1;border-radius:12px}.bb-store-page .woocommerce #payment div.payment_box{background:#fff;color:#324657}.bb-store-page .woocommerce #payment div.payment_box::before{border-bottom-color:#fff}.bb-store-page .woocommerce #place_order,.bb-store-page .woocommerce .checkout-button{width:100%;padding:16px;border-radius:10px;background:#08734f;color:#fff;font-size:17px;line-height:1.5}.bb-store-page .woocommerce-cart-form .product-thumbnail img{width:65px;max-height:90px;object-fit:contain}.bb-store-page .woocommerce .cart_totals{padding:24px;background:#f8fafc;border:1px solid #e5eaf0;border-radius:16px}.bb-store-page .woocommerce .button{border-radius:8px}.bb-store-page .woocommerce .woocommerce-error{border-top-color:#b42318;background:#fff4f2}.bb-store-page .woocommerce .woocommerce-invalid input{border-color:#b42318!important}.bb-store-page .woocommerce-privacy-policy-text{font-size:13px;color:#526174}.bb-header-cart{display:inline-flex;align-items:center;gap:6px}.bb-header-cart svg{flex-shrink:0}
@media(max-width:768px){.bb-store-page .woocommerce form.checkout #customer_details,.bb-store-page .woocommerce form.checkout #order_review_heading,.bb-store-page .woocommerce form.checkout #order_review{width:100%;float:none}.bb-store-page .woocommerce form.checkout #customer_details{padding:18px;margin-bottom:26px}.bb-store-page .woocommerce form .form-row-first,.bb-store-page .woocommerce form .form-row-last{float:none;width:100%}.bb-store-page .woocommerce .cart_totals{padding:16px}.bb-store-page .woocommerce table.shop_table th,.bb-store-page .woocommerce table.shop_table td{padding:12px 8px}}
/* Optional notes and persistent order receipt */
.bb-store-page .woocommerce form.checkout #customer_details .col-2{display:block;float:none;width:100%;margin-top:20px}.bb-order-success{display:block;margin:18px 0 30px;padding:26px;border:1px solid #a7dbc0;border-radius:16px;background:#edf9f1;color:#174e37}.bb-order-success strong{display:block;font-size:25px;line-height:1.5;margin-bottom:12px}.bb-order-success>span{display:block;line-height:1.9}.bb-order-success .bb-success-payment{margin-top:14px;padding-top:14px;border-top:1px solid #c8e8d4;font-weight:600;font-size:14px}.bb-store-page #order_comments{min-height:100px}.bb-store-page select:disabled{background:#eef1f5;color:#667085}
@media(max-width:768px){.bb-order-success{padding:20px}.bb-order-success strong{font-size:21px}}

/* Personalised COD receipt: inline markup remains valid inside WooCommerce's notice. */
.bb-receipt{display:block;border:1px solid #dce8e2;border-radius:20px;overflow:hidden;background:#fff;margin:20px 0 32px;color:#172b42;box-shadow:0 8px 30px #173a2510}.bb-receipt-head{display:block;background:#eef9f2;padding:28px;text-align:center}.bb-receipt-head>span,.bb-receipt-head>strong{display:block}.bb-receipt-head .bb-receipt-check{display:grid;place-items:center;width:48px;height:48px;border-radius:50%;background:#08734f;color:#fff;font-size:28px;margin:0 auto 14px}.bb-receipt-head>strong{font-size:27px;color:#155c40;overflow-wrap:anywhere}.bb-receipt-title{font-size:20px;font-weight:600;margin:6px 0 12px}.bb-receipt-head>span:last-child{max-width:730px;margin:auto;color:#476253;font-size:15px}.bb-receipt-meta{display:grid;grid-template-columns:1fr 1fr;background:#f8fafb;border-bottom:1px solid #e5eaf0;padding:18px 28px;gap:16px}.bb-receipt-meta>span{display:block;color:#637083;font-size:13px}.bb-receipt-meta b{display:block;color:#172b42;font-size:17px}.bb-receipt-body{display:block;padding:24px 28px}.bb-receipt-section{display:block;font-size:20px;margin-bottom:12px}.bb-receipt-item{display:flex;align-items:center;gap:16px;padding:16px 0;border-bottom:1px solid #e5eaf0}.bb-receipt-cover{flex:0 0 64px}.bb-receipt-cover img{display:block;width:64px;height:84px;object-fit:contain;border:1px solid #e5eaf0;border-radius:7px;background:#f8fafc;padding:4px}.bb-receipt-book{flex:1;min-width:0;overflow-wrap:anywhere}.bb-receipt-book>b,.bb-receipt-book>span{display:block}.bb-receipt-book>span{font-size:14px;color:#637083;margin-top:5px}.bb-receipt-price{font-weight:600;text-align:right}.bb-receipt-total{display:flex;justify-content:space-between;align-items:center;gap:16px;padding-top:20px;font-size:22px}.bb-receipt-total b{color:#08734f}.bb-receipt-paynote{display:block;text-align:right;font-size:13px;color:#637083}.bb-receipt-help{display:block;padding:24px 28px;background:#f6f9fc;border-top:1px solid #e5eaf0;text-align:center}.bb-receipt-help>strong,.bb-receipt-help>span,.bb-receipt-help>small{display:block}.bb-receipt-help>strong{font-size:19px}.bb-receipt-help>span{font-size:14px;color:#637083;margin:5px 0 16px}.bb-receipt-help a.bb-whatsapp-button{display:inline-flex;align-items:center;justify-content:center;gap:12px;background:#08734f;color:#fff;padding:13px 22px;border-radius:10px;font-weight:700;text-decoration:none;line-height:1.6}.bb-receipt-help a.bb-whatsapp-button:hover{background:#065d40}.bb-receipt-help>small{font-size:12px;color:#637083;margin-top:10px}@media(max-width:600px){.bb-receipt-head,.bb-receipt-body,.bb-receipt-help{padding:20px 16px}.bb-receipt-head>strong{font-size:23px}.bb-receipt-title{font-size:18px}.bb-receipt-meta{padding:16px;gap:12px}.bb-receipt-meta b{font-size:15px}.bb-receipt-item{gap:10px;flex-wrap:wrap}.bb-receipt-book{font-size:14px}.bb-receipt-price{font-size:14px;margin-left:auto}.bb-receipt-total{font-size:20px}.bb-receipt-help a.bb-whatsapp-button{width:100%;font-size:14px;padding:13px 10px}}

.bb-receipt-help .bb-receipt-actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin:0}.bb-receipt-help a.bb-call-button{display:inline-flex;align-items:center;justify-content:center;gap:12px;border:1px solid #0964d8;background:#fff;color:#0964d8;padding:12px 22px;border-radius:10px;font-weight:700;text-decoration:none;line-height:1.6}.bb-receipt-help a.bb-call-button:hover{background:#eaf3ff}@media(max-width:600px){.bb-receipt-help a.bb-call-button{width:100%;font-size:14px}}

.bb-delivery-notice{display:block;background:#fff8e8;border:1px solid #efdaad;border-radius:10px;color:#72501d;padding:13px 16px;margin:16px 0;font-size:14px;line-height:1.8}.bb-receipt-total>span{font-size:17px}

.bb-receipt-shipping{display:block;margin-top:16px;color:#526174;font-size:14px}.woocommerce ul#shipping_method li{padding:8px 0;line-height:1.7}.woocommerce ul#shipping_method label{display:inline!important}

/* Category collections */
.bb-category-browser{clear:both;padding:24px;margin:0 0 28px;border:1px solid #e2e9f1;background:#f8fafc;border-radius:16px}.bb-category-browser h2{font-size:22px;margin:0 0 16px}.bb-category-browser h3{font-size:17px;margin:20px 0 12px}.bb-category-chips{display:flex;flex-wrap:wrap;gap:10px}.bb-category-chip{display:inline-flex;align-items:center;min-height:44px;padding:9px 17px;border:1px solid #dce4ef;border-radius:10px;background:#fff;color:#25364a;font-size:14px;font-weight:600}.bb-category-chip:hover{border-color:#0964d8;color:#0964d8}.bb-category-chip.is-active{color:#fff;background:#0964d8;border-color:#0964d8}.bb-discover .bb-discover-grid{grid-template-columns:repeat(8,minmax(0,1fr))}@media(max-width:1024px){.bb-discover .bb-discover-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:768px){.bb-discover .bb-discover-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.bb-category-browser{padding:18px 14px}.bb-category-browser h2{font-size:19px}.bb-category-chip{padding:9px 12px;font-size:13px}}

/* Compact, context-preserving category navigation. */
.bb-category-browser{padding:16px 18px;margin:0 0 22px;border-radius:14px;background:linear-gradient(120deg,#f5f9ff,#fff);box-shadow:0 4px 18px rgba(23,43,66,.035)}
.bb-filter-label{font-size:12px;font-weight:700;color:#637083;margin-bottom:9px}.bb-category-browser h3{font-size:13px;color:#637083;margin:14px 0 9px}.bb-category-browser h3:first-child{margin-top:0}.bb-category-chips{gap:8px}.bb-category-chip{border-radius:24px;padding:8px 15px;min-height:42px;line-height:1.5;transition:background .15s,border-color .15s}.bb-category-chip.is-active{box-shadow:0 3px 8px #0964d822}
.bb-discover .bb-discover-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}.bb-discover .bb-discover-item{border:1px solid #eaf0f6;border-radius:16px;background:#fff;padding:17px 8px}.bb-discover .bb-discover-item:hover{background:#f5f9ff;border-color:#bbd7f9}
@media(max-width:768px){.bb-discover .bb-discover-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.bb-discover .bb-discover-item{padding:12px 5px;border-radius:12px}.bb-category-browser{padding:12px;margin-bottom:18px}.bb-category-chips{flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;padding:2px 2px 7px;scrollbar-width:thin;scrollbar-color:#bfd0e6 transparent}.bb-category-chip{flex:0 0 auto;white-space:nowrap;font-size:13px;min-height:44px;padding:8px 13px}.bb-category-browser h3{margin-top:10px}}
@media(prefers-reduced-motion:reduce){.bb-category-chip{transition:none}}
