/* ZOBDABOOK Beta 8 — WooCommerce ORIGINAL product_cat category / premium editorial direction */
body.tax-product_cat{--z8-ink:#38271f;--z8-mid:#71513a;--z8-caramel:#b58b65;--z8-ivory:#f7f1e8;--z8-border:#eadfd3;--z8-card:#fffefa;}
body.tax-product_cat .main-page-wrapper{background:var(--z8-ivory)!important;}
/* WoodMart original title area: photographs and true RTL content direction. Avoid hiding native breadcrumb. */
body.tax-product_cat .page-title{
 position:relative;isolation:isolate;overflow:hidden;min-height:clamp(245px,27vw,350px)!important;
 background:linear-gradient(270deg,rgba(32,21,17,.98) 0%,rgba(40,26,20,.91) 37%,rgba(40,26,20,.49) 69%,rgba(40,26,20,.22) 100%),url('arabic-desktop.webp') left center/cover no-repeat!important;
 display:flex;align-items:center;text-align:right;
}
body.tax-product_cat .page-title .container{position:relative;z-index:1;width:min(1320px,calc(100% - 40px));max-width:1320px;margin-inline:auto;}
body.tax-product_cat .page-title :is(h1,.entry-title,.title){color:#fff7e9!important;-webkit-text-fill-color:#fff7e9!important;text-shadow:0 2px 15px rgba(0,0,0,.19);font-size:clamp(30px,3.7vw,49px)!important;line-height:1.35!important;}
body.tax-product_cat .page-title :is(.woocommerce-breadcrumb,.breadcrumbs,.woocommerce-breadcrumb a,.breadcrumbs a){color:#ead4bd!important;-webkit-text-fill-color:#ead4bd!important;}
/* Width: use existing sidebar only when present; don't silently delete working filters. */
body.tax-product_cat .site-content,body.tax-product_cat .shop-content-area{min-width:0;}
body.tax-product_cat .shop-content-area>.woocommerce,body.tax-product_cat .woocommerce-notices-wrapper{min-width:0;}
/* Category intro from taxonomy term — visibly separate, typographic and elegant. */
body.tax-product_cat .zdb-native-category{position:relative;display:flex;gap:clamp(18px,3vw,40px);align-items:center;justify-content:space-between;
 min-width:0;margin:clamp(24px,3vw,45px) 0 clamp(32px,4vw,60px);padding:clamp(20px,3vw,38px);border:1px solid var(--z8-border);border-radius:20px;
 background:linear-gradient(110deg,#fffcf8 0%,#f3e9dd 100%);box-shadow:0 14px 44px rgba(56,39,31,.045);color:var(--z8-ink);overflow:hidden;}
body.tax-product_cat .zdb-native-category::before{content:"";position:absolute;inset-inline-start:0;top:18%;height:64%;width:3px;background:var(--z8-caramel);border-radius:10px;}
body.tax-product_cat .zdb-native-category__content{flex:1;min-width:0;}
body.tax-product_cat .zdb-native-category__eyebrow{display:block;color:#946642!important;font-size:clamp(10px,.7vw,12px);font-weight:800;letter-spacing:.14em;direction:ltr;text-align:right;}
body.tax-product_cat .zdb-native-category__tag{margin:12px 0 0!important;color:var(--z8-ink)!important;-webkit-text-fill-color:var(--z8-ink)!important;font-weight:700;font-size:clamp(15px,1.6vw,21px);line-height:1.85;max-width:680px;}
body.tax-product_cat .zdb-native-category__image{display:block;width:clamp(90px,12vw,175px);height:clamp(90px,12vw,175px);object-fit:contain;border-radius:12px;flex:none;}
/* Make WooCommerce result count / sorting visibly legible and arranged as responsive toolbar. */
body.tax-product_cat .woocommerce-result-count{color:#765d4d!important;font-size:13px!important;font-weight:600;margin:0 0 22px!important;}
body.tax-product_cat .woocommerce-ordering{margin:0 0 22px!important;max-width:320px;}
body.tax-product_cat .woocommerce-ordering select{min-height:46px;padding:9px 14px;background:#fff!important;color:var(--z8-ink)!important;border:1px solid var(--z8-border)!important;border-radius:10px!important;}
/* Geometry: override theme floats/limited column width that produce giant empty spaces with two books. */
body.tax-product_cat :is(.products,.wd-products,ul.products){
 display:grid!important;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))!important;
 column-gap:clamp(14px,1.6vw,24px)!important;row-gap:clamp(20px,2vw,30px)!important;
 clear:both!important;align-items:stretch!important;margin-block:0 40px!important;}
body.tax-product_cat :is(.products,.wd-products,ul.products) > :is(.product-grid-item,li.product,.product){
 width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;float:none!important;flex:none!important;}
body.tax-product_cat .product-grid-item .product-wrapper,body.tax-product_cat ul.products li.product{
 height:100%;background:var(--z8-card)!important;border:1px solid var(--z8-border)!important;border-radius:16px!important;overflow:hidden;
 box-shadow:0 8px 24px rgba(56,39,31,.045);transition:transform .24s ease,box-shadow .24s ease,border-color .24s ease;}
body.tax-product_cat .product-grid-item .product-element-top,body.tax-product_cat .product-grid-item .product-image-link{background:#f4eee7!important;}
body.tax-product_cat .product-grid-item .product-element-top img,body.tax-product_cat ul.products li.product img{
 width:100%;max-height:310px;object-fit:contain!important;object-position:center!important;}
body.tax-product_cat :is(.product-grid-item .wd-entities-title,.product-grid-item .wd-entities-title a,.product-grid-item .product-title,.product-grid-item .product-title a,ul.products li.product .woocommerce-loop-product__title){color:var(--z8-ink)!important;font-size:clamp(14px,.95vw,16px)!important;line-height:1.65!important;font-weight:750!important;}
body.tax-product_cat .product-grid-item .price,body.tax-product_cat ul.products li.product .price{color:#6f432e!important;font-weight:800!important;}
body.tax-product_cat :is(.woocommerce-pagination,.wd-pagination){margin-block:30px 55px;}
body.tax-product_cat :is(.woocommerce-pagination,.wd-pagination) :is(a,span):focus-visible{outline:3px solid #9e6b3d;outline-offset:3px;}
@media(hover:hover){body.tax-product_cat .product-grid-item:hover .product-wrapper,body.tax-product_cat ul.products li.product:hover{transform:translateY(-3px);border-color:#caaa8b!important;box-shadow:0 18px 38px rgba(56,39,31,.11);}}
@media(max-width:767px){body.tax-product_cat .page-title{min-height:235px!important;background:linear-gradient(0deg,rgba(32,21,17,.95),rgba(32,21,17,.4)),url('arabic-mobile.webp') center/cover no-repeat!important}body.tax-product_cat .zdb-native-category{border-radius:14px;padding:18px;margin-block:18px 30px}body.tax-product_cat .zdb-native-category__image{width:78px;height:100px}body.tax-product_cat :is(.products,.wd-products,ul.products){grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}body.tax-product_cat .woocommerce-ordering{max-width:none;width:100%;}body.tax-product_cat .product-grid-item .product-element-top img{max-height:230px;}}
@media(max-width:360px){body.tax-product_cat :is(.products,.wd-products,ul.products){grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;}}
@media(prefers-reduced-motion:reduce){body.tax-product_cat .product-grid-item .product-wrapper,body.tax-product_cat ul.products li.product{transition:none!important;transform:none!important;}}
