/*
Theme Name: ب تولز
Version: 0.2.9
Requires at least: 6.3
Requires PHP: 8.0
Update URI: https://betools.ir/theme/betools/
Text Domain: betools
*/
*{box-sizing:border-box}body{direction:rtl;margin:0;color:#202a30;background:#f5f6f7;font:16px/1.8 Tahoma,sans-serif}a{color:inherit;text-decoration:none}a:hover{text-decoration:underline}.shell,main{width:min(1220px,94%);margin:auto}header,footer,.panel{background:white}.head,.links,.title{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.head{padding:20px 0}.brand{font-size:26px;font-weight:bold;color:var(--bt)}.head form{flex:1;display:flex;min-width:180px}.head input{width:100%;padding:12px;background:#f5f6f7;border:1px solid #ddd}button,.cta{background:var(--bt);color:white;border:0;padding:10px 18px;border-radius:5px}.links{padding:10px 0;border-top:1px solid #ddd}.cats{position:relative}.cats summary{cursor:pointer}.mega{position:absolute;z-index:5;top:100%;width:min(680px,90vw);background:white;border:1px solid #ddd;padding:20px;display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.hero{background:#1e323a;color:white;padding:clamp(26px,6vw,85px);border-radius:12px;margin:24px 0;position:relative;overflow:hidden}.hero img{width:100%;max-height:420px;object-fit:cover}.hero h1{font-size:clamp(28px,4vw,54px);margin:0}.tiles{display:flex;gap:12px;overflow:auto}.tiles a,.panel,.woocommerce ul.products li.product{background:white;border:1px solid #ddd;border-radius:9px;padding:15px}.tiles a{white-space:nowrap}.panel{margin:20px auto}.mobile{display:none}footer{padding:24px;margin-top:32px}main{min-height:45vh}.woocommerce .products img{aspect-ratio:1;object-fit:contain}@media(max-width:700px){.mobile{position:fixed;inset:auto 0 0;display:flex;justify-content:space-around;padding:10px;background:white;border-top:1px solid #ccc;z-index:10;font-size:13px}.head{gap:10px}.head form{order:3;flex-basis:100%}.links{font-size:14px}.mega{grid-template-columns:repeat(2,1fr)}footer{padding-bottom:76px}}
.mega small{display:block;color:#58636b}
.slider{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:12px;margin:20px 0}.slider>a{flex:0 0 100%;scroll-snap-align:start}.slider img{width:100%;display:block;border-radius:12px}
.shell,main{width:min(1210px,94%)}.head{flex-wrap:nowrap;min-height:68px;padding:9px 0;gap:10px}.head img{display:block;object-fit:contain;width:46px;height:46px}.brand{font-size:16px;max-width:125px}.head form{position:relative;max-width:560px;margin-inline-end:auto}.head input{border:0;border-radius:13px;padding:12px 40px 12px 15px}.head button{position:absolute;inset-inline-start:0;color:#647078;background:none;font-size:24px;line-height:1;padding:9px}.account,.basket{border:1px solid #ddd;border-radius:24px;padding:6px 12px;font-size:13px}.basket{color:white;background:#19191c}.account:before{content:"♙";margin-inline-end:5px}.basket:before{content:"▢";margin-inline-end:5px}.links{font-size:14px}.slider{margin:18px 0 38px;scrollbar-width:none}.slider img{aspect-ratio:3.35;object-fit:cover;border-radius:22px}.tiles{padding-block:12px}.mobile a:before{display:block;font-size:19px;line-height:1.2}.mobile a:nth-child(1):before{content:"⌂"}.mobile a:nth-child(2):before{content:"☰"}.mobile a:nth-child(3):before{content:"▢"}.mobile a:nth-child(4):before{content:"♙"}
@media(max-width:700px){.head{flex-wrap:wrap;gap:5px}.head .brand{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.head>a:first-child{margin-inline-end:auto}.head form{flex:0 0 100%;max-width:none}.head .account,.head .basket{height:33px;width:33px;padding:3px;text-align:center}.account span,.basket span{display:none}.account:before,.basket:before{margin:0;font-size:18px}header nav.links{display:none}.slider{gap:12px;margin:15px 0}.slider>a{flex-basis:92%}.slider img{aspect-ratio:1;object-fit:cover;border-radius:19px}.mobile{margin:0 10px 10px;bottom:0;border:1px solid #ddd;border-radius:16px;text-align:center;box-shadow:0 4px 18px #0001;align-items:center;font-size:11px}.tiles a{border-radius:15px}main h2{font-size:19px}}
.tiles a{display:flex;flex-direction:column;align-items:center;gap:6px}.tiles img{width:54px;height:54px;object-fit:contain}
.woocommerce div.product .bt-purchase{border:1px solid #e4e8e9;border-radius:16px;padding:18px;background:#f7f8fa}.bt-purchase h2{font-size:16px;margin:0}.bt-purchase dl{display:grid;grid-template-columns:1fr 1fr;font-size:13px;margin:12px 0}.bt-purchase dd{margin:0;text-align:end}.woocommerce div.product .bt-purchase .price{color:#151719;font-weight:bold}.woocommerce .bt-purchase button.button.alt{background:#141516;color:#fff;border-radius:12px}.woocommerce div.product .product_title{font-size:clamp(20px,2vw,29px)}.woocommerce div.product div.images{background:#f6f7fa;border-radius:16px;overflow:hidden}.woocommerce div.product div.images img{object-fit:contain}
@media(min-width:900px){.woocommerce div.product:has(>.summary){display:grid;grid-template-columns:minmax(220px,1fr) minmax(260px,1.2fr) minmax(200px,.76fr);gap:20px;align-items:start}.woocommerce div.product:has(>.summary)>*{grid-column:1/-1}.woocommerce div.product:has(>.summary)>div.images{grid-column:1;grid-row:1/10;width:100%;float:none}.woocommerce div.product div.summary{display:contents}.woocommerce div.product .summary>*{grid-column:2;margin-block:0}.woocommerce div.product .summary>.bt-purchase{grid-column:3;grid-row:1/10}.woocommerce div.product:has(>.summary):before,.woocommerce div.product:has(>.summary):after{display:none}}
.woocommerce div.product div.woocommerce-product-gallery{opacity:1!important}.bt-specs dl{display:grid;grid-template-columns:1fr 1fr;gap:5px}.bt-specs dd{margin:0}
.bt-support{margin-inline-start:auto;font-size:12px}.single-product main{width:min(1480px,97%)}.woocommerce .woocommerce-breadcrumb{padding:13px 0;margin:0;font-size:12px}.single-product .panel{border:0;padding:clamp(12px,2vw,28px)}
.account:before,.basket:before,.mobile a:before{font-family:dashicons;speak:never;font-weight:normal}.account:before,.mobile a:nth-child(4):before{content:"\f110"}.basket:before,.mobile a:nth-child(3):before{content:"\f174"}.mobile a:nth-child(1):before{content:"\f102"}.mobile a:nth-child(2):before{content:"\f180"}.mobile a:nth-child(5):before{content:"\f103"}.links ul{list-style:none;margin:0;border:0}.links details summary:focus-visible,.mobile a:focus-visible{outline:2px solid var(--bt);outline-offset:4px}
.bt-cat-title{display:flex;align-items:center;gap:10px;margin:24px 0 12px}.bt-cat-title h2{margin:0;font-size:19px}.bt-cat-title a{font-size:12px;color:#656c70}.bt-cat-title .dashicons{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;background:white;color:var(--bt);border:1px solid #e5ebeb}.category-tiles a{border:0;background:none;padding:2px;width:92px;flex:none;font-size:12px}.category-tiles img{width:72px;height:72px;padding:12px;background:#eaf1f2;border-radius:18px}.category-tiles span{max-width:100%;overflow:hidden;text-overflow:ellipsis}.category-tiles{gap:6px;scrollbar-width:thin}

.bt-header-mobile { display:none; }
.bt-header .bt-region { min-height:0; }
.bt-header .bt-region:has(.links):not(:has(.brand,form,.basket,.account)) { padding:0; }
.bt-header .bt-region > .links { flex:1 1 100%; }
.bt-footer-columns { display:grid; grid-template-columns:repeat(var(--bt-columns),minmax(0,1fr)); gap:20px; }
.bt-footer-column { min-width:0; overflow-wrap:anywhere; }
.bt-footer-columns + .bt-footer-bottom { border-block-start:1px solid #e5e7eb; margin-block-start:18px; padding-block-start:12px; }
@media(max-width:700px) {
 .bt-header-desktop { display:none; }
 .bt-header-mobile { display:block; }
 .bt-header-mobile .bt-region form { order:0; }
 .bt-header-mobile nav.links { display:flex; }
 .bt-footer-columns { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .bt-footer-columns[style="--bt-columns:1"] { grid-template-columns:minmax(0,1fr); }
}
@media(min-width:900px) {
 .woocommerce.bt-product-stacked div.product:has(>.summary) { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
 .woocommerce.bt-product-stacked div.product:has(>.summary)>div.images { grid-row:1; }
 .woocommerce.bt-product-stacked div.product div.summary { display:block; width:100%; grid-column:2; grid-row:1; float:none; }
 .woocommerce.bt-product-stacked div.product .summary>.bt-purchase { margin-block:18px 0; }
}
.bt-header .bt-region { width:var(--bt-region-width,100%); margin-inline:auto; }
.bt-footer-columns { grid-template-columns:var(--bt-tracks); }
.bt-minimal-specs { padding:0; list-style:none; display:flex; flex-wrap:wrap; gap:6px; }
.bt-minimal-specs li { padding:4px 8px; background:#f3f4f6; border-radius:8px; }
@media(max-width:700px) {
 .bt-header .bt-region { min-width:min(100%,250px); }
 .bt-footer-columns { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .bt-footer-columns[style^="--bt-columns:1;"] { grid-template-columns:minmax(0,1fr); }
}
body { font-family:var(--bt-font,Tahoma,sans-serif); }
.bt-catalog { display:grid; grid-template-columns:minmax(200px,245px) minmax(0,1fr); gap:16px; align-items:start; }
.bt-catalog-filters { width:100%; }
.bt-catalog-filters summary { cursor:pointer; font-weight:bold; }
.bt-catalog-results { width:100%; }
.bt-child-categories a { display:block; padding-block:2px; }
@media(max-width:740px) { .bt-catalog { grid-template-columns:minmax(0,1fr); gap:0; } .bt-catalog-filters { margin-block-end:0; } }
.bt-import-menu,.bt-import-menu ul { list-style:none; margin:0; padding:0; }
.links > .bt-import-menu,.mobile > .bt-import-menu,.bt-footer-imported { display:flex; flex-wrap:wrap; gap:12px; }
.mobile > .bt-import-menu { justify-content:space-around; width:100%; }
.bt-import-menu ul { padding-inline-start:12px; }
.bt-import-banners { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr)); gap:12px; margin-block:18px; }
.bt-import-banners img,.slider[data-boom-section] img { width:100%; height:auto; display:block; }
.slider[data-boom-section] > div { flex:0 0 100%; scroll-snap-align:start; }
body { color:var(--bt-secondary,#202a30); }
.bt-caption-slider > * { padding-block-end:12px; }
.bt-caption-slider h2,.bt-caption-slider p { padding-inline:12px; }
.bt-caption-category { font-weight:600; color:var(--bt-secondary,#202a30); }
.bt-import-spacer { height:min(var(--bt-space),12vw); }
@media(min-width:701px) { .bt-import-spacer { height:var(--bt-space); } }

.bt-category-page { width:min(1200px,100%); margin:auto; padding-inline:8px; }
.bt-category-heading,.bt-filter-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.bt-category-heading h1,.bt-filter-heading h2 { margin:0; font-size:clamp(18px,2vw,26px); }
.bt-category-heading button,.bt-filter-form button { cursor:pointer; white-space:nowrap; }
.bt-category-tiles { margin-block:14px; }
.bt-filter-fallback,.bt-filter-dialog { border:1px solid #e5e7eb; border-radius:14px; background:#fff; color:#202a30; padding:20px; }
.bt-filter-dialog { width:min(672px,calc(100% - 24px)); max-height:calc(100dvh - 24px); }
.bt-filter-dialog::backdrop { background:#11182788; }
.bt-filter-heading button { background:#edf0f2;color:#202a30;cursor:pointer; }
.bt-filter-form { display:grid; gap:14px; margin-block-start:18px; }
.bt-filter-form > label:not(.bt-filter-stock),.bt-filter-form fieldset label { display:grid; gap:4px; }
.bt-filter-form fieldset { min-width:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; border:1px solid #dfe4e6; border-radius:10px; }
.bt-filter-form input[data-bt-price],.bt-filter-form select { width:100%; min-width:0; font:inherit; padding:7px; border:1px solid #d1d5db; border-radius:7px; }
.bt-filter-actions { display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.bt-filter-actions a { text-decoration:underline; }
.bt-custom-filters { border-top:1px solid #e5e7eb; margin-block-start:16px; }
.woocommerce .bt-category-results ul.products,.woocommerce .bt-bestsellers ul.products,.bt-bestsellers .woocommerce ul.products { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; clear:both; }
.woocommerce .bt-category-results ul.products::before,.woocommerce .bt-category-results ul.products::after,.bt-bestsellers ul.products::before,.bt-bestsellers ul.products::after { display:none; }
.woocommerce .bt-category-results ul.products li.product,.bt-bestsellers .woocommerce ul.products li.product { width:auto; min-width:0; float:none; margin:0; background:#fff; border:0; }
.woocommerce .bt-category-results ul.products li.product { border-radius:18px; min-height:415px; padding:16px; }
.woocommerce .bt-category-results ul.products li.product img { width:min(250px,100%); aspect-ratio:1; object-fit:contain; margin-inline:auto; }
.bt-category-results .price del,.bt-bestsellers .price del { opacity:.75; }
.woocommerce .bt-category-results ul.products li.product .onsale,.bt-bestsellers ul.products li.product .onsale { background:#b42342; }
.bt-bestsellers { width:min(1248px,94vw); margin-block:26px; margin-inline:calc((100% - min(1248px,94vw))/2); }
.bt-bestsellers .woocommerce ul.products { gap:10px; }
.bt-bestsellers .woocommerce ul.products li.product { min-height:98px; padding:14px; border-radius:12px; }
.bt-bestsellers .woocommerce ul.products li.product > a.woocommerce-LoopProduct-link { display:grid; grid-template-columns:64px minmax(0,1fr); gap:2px 10px; align-items:center; }
.bt-bestsellers .woocommerce ul.products li.product img { grid-row:1 / span 2; width:64px; height:64px; object-fit:contain; margin:0; }
.bt-bestsellers .woocommerce ul.products li.product .woocommerce-loop-product__title { grid-column:2; padding:0; }
.bt-bestsellers .woocommerce ul.products li.product .price { grid-column:2; margin:0; }
.bt-bestsellers .woocommerce ul.products li.product > .button { display:none; }
.bt-bestsellers .woocommerce ul.products li.product .onsale { inset:auto auto 5px 5px; margin:0; min-height:0; line-height:1.4; border-radius:6px; }
@media(max-width:950px) { .woocommerce .bt-category-results ul.products,.bt-bestsellers .woocommerce ul.products { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) {
 .woocommerce .bt-category-results ul.products { gap:8px; }
 .woocommerce .bt-category-results ul.products li.product { min-height:0; padding:10px; }
 .bt-bestsellers .woocommerce ul.products { grid-template-columns:minmax(0,1fr); }
 .bt-filter-dialog { padding:14px; }
}

/* Selected storefront family: leave icon fonts and WordPress admin untouched. */
body, button, input, select, textarea, optgroup, .woocommerce, .woocommerce button, .woocommerce input, .woocommerce select, .woocommerce textarea, .wp-block-button__link, .wc-block-components-button, .wc-block-components-text-input input, .wc-block-components-select select { font-family:var(--bt-font,Tahoma,sans-serif); }
body :is(h1,h2,h3,h4,h5,h6) { font-family:var(--bt-font,Tahoma,sans-serif); font-weight:var(--bt-heading-weight,700); }
body h1 { font-weight:var(--bt-title-weight,700); }
body .woocommerce div.product .product_title { font-weight:var(--bt-title-weight,700); }
body :is(strong,b):not(.dashicons) { font-weight:var(--bt-heading-weight,700); }
.bt-font-hairline { font-weight:100; } .bt-font-light { font-weight:300; } .bt-font-regular { font-weight:400; } .bt-font-medium { font-weight:500; } .bt-font-bold { font-weight:700; } .bt-font-extra-bold { font-weight:800; } .bt-font-heavy { font-weight:900; } .bt-font-fat { font-weight:1000; }

/* Product category navigation and directory. */
.cats .mega{inset-inline-start:0;max-height:min(65vh,480px);overflow:auto;overscroll-behavior:contain;grid-template-columns:repeat(3,minmax(0,1fr));box-shadow:0 12px 30px #152b3026;border-radius:12px;z-index:20}
.cats .mega>div{min-width:0;overflow-wrap:anywhere}
.cats .mega>div>a{display:block;font-weight:700}
.bt-all-categories{grid-column:1/-1;color:var(--bt);font-weight:700}
.category-tiles .bt-category-icon{display:grid;place-items:center;width:72px;height:72px;margin-inline:auto;border-radius:18px;background:#eaf1f2;color:#205b65;font-size:30px}
.bt-category-directory{padding:clamp(12px,3vw,26px)}
.bt-category-directory-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:12px;align-items:start}
.bt-category-directory-grid>section{min-width:0;padding:12px;border:1px solid #e4e9ec;border-radius:12px}
.bt-category-directory-grid h2{margin:0;padding:0;overflow:visible}
.bt-category-directory-grid h2 a{width:auto;white-space:normal;text-align:start;font-size:inherit}
.bt-category-directory-grid h2 span{overflow:visible}
.bt-category-directory-grid ul{margin-block:5px;padding-inline-start:1.2em;overflow-wrap:anywhere}
.bt-category-heading button[hidden],.bt-filter-heading button[hidden]{display:none}
@media(max-width:700px){.bt-header-mobile .cats .mega{position:fixed;inset:auto 12px calc(58px + env(safe-area-inset-bottom)) 12px;width:auto;grid-template-columns:repeat(2,minmax(0,1fr));max-height:62vh}}
