/* ZOBDABOOK Beta 8 — ELEMENTOR category archive, fully scoped editorial design. */
.zdb-cat-page{--z8-ink:#38271f;--z8-muted:#71513a;--z8-gold:#b58b65;--z8-border:#e9dccc;--z8-bg:#f7f1e8;direction:rtl;color:var(--z8-ink);background:var(--z8-bg);padding:0 0 clamp(55px,6vw,95px);isolation:isolate;}
.zdb-cat-page *{box-sizing:border-box;}
.zdb-cat-page__shell{width:min(1320px,calc(100% - 44px));margin-inline:auto;}
.zdb-cat-page__hero{position:relative;display:flex;align-items:center;min-height:clamp(275px,29vw,400px);overflow:hidden;isolation:isolate;background:#332219;}
.zdb-cat-page__hero-photo{position:absolute;inset:0;z-index:-2;background:url('../modules/archive/assets/arabic-desktop.webp') left center/cover no-repeat;}
.zdb-cat-page__hero::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(270deg,rgba(35,22,16,.98) 0%,rgba(35,22,16,.88) 37%,rgba(35,22,16,.35) 78%,rgba(35,22,16,.14) 100%);}
.zdb-cat-page__hero .zdb-cat-page__shell{padding-block:clamp(54px,5vw,85px);position:relative;}
.zdb-cat-page__eyebrow{display:block;color:#e3bc84!important;-webkit-text-fill-color:#e3bc84!important;font-size:11px;font-weight:800;letter-spacing:.18em;direction:ltr;text-align:right;}
.zdb-cat-page__hero h1{color:#fff7e9!important;-webkit-text-fill-color:#fff7e9!important;font-size:clamp(29px,3.4vw,50px)!important;line-height:1.3!important;font-weight:800!important;margin:16px 0 14px!important;max-width:770px;}
.zdb-cat-page__hero p{color:#f2e4d1!important;-webkit-text-fill-color:#f2e4d1!important;font-size:clamp(13px,1vw,16px)!important;line-height:1.95!important;max-width:650px;}
.zdb-cat-page__body{padding-top:clamp(32px,4vw,64px);}
.zdb-cat-page__back{display:inline-flex;color:#71513a!important;font-weight:750;text-decoration:none!important;margin-bottom:22px;}
.zdb-cat-page__cats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(12px,1.4vw,19px);margin:0 0 clamp(34px,4vw,60px);}
.zdb-cat-page__cat{display:flex;align-items:center;gap:14px;min-width:0;min-height:105px;padding:14px;background:#fffdfa!important;border:1px solid var(--z8-border);border-radius:14px;color:var(--z8-ink)!important;text-decoration:none!important;box-shadow:0 7px 18px #38271f0a;transition:transform .22s,border-color .22s,box-shadow .22s;}
.zdb-cat-page__cat img{width:70px;height:78px;object-fit:contain;flex:none;border-radius:8px;}
.zdb-cat-page__symbol{display:grid;place-items:center;background:#f0e4d8;width:65px;height:65px;flex:none;border-radius:9px;color:#a8754c;}
.zdb-cat-page__cat span:not(.zdb-cat-page__symbol){font-size:clamp(13px,1vw,16px);font-weight:750;line-height:1.5;}
.zdb-cat-page__cat span:last-child{margin-inline-start:auto;color:#9b714e;}
.zdb-cat-page__heading{display:flex;flex-direction:column;gap:8px;padding-bottom:19px;margin:0 0 26px;border-bottom:1px solid #dfcfbc;}
.zdb-cat-page__heading>span{color:#9b6c49;font-size:12px;font-weight:700;}
.zdb-cat-page__heading h2{color:var(--z8-ink)!important;-webkit-text-fill-color:var(--z8-ink)!important;font-size:clamp(24px,2.6vw,34px)!important;line-height:1.5!important;margin:0!important;}
/* The WooCommerce shortcode outputs columns, but we control true responsive grid widths. */
.zdb-cat-page__products :is(.products,ul.products,.wd-products){display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:clamp(14px,1.6vw,23px)!important;align-items:stretch!important;clear:both!important;margin:0 0 38px!important;}
.zdb-cat-page__products :is(.products,ul.products,.wd-products)>:is(.product-grid-item,li.product,.product){width:100%!important;max-width:none!important;margin:0!important;float:none!important;min-width:0!important;flex:none!important;}
.zdb-cat-page__products .product-grid-item .product-wrapper,.zdb-cat-page__products ul.products li.product{height:100%;border:1px solid var(--z8-border)!important;border-radius:15px!important;overflow:hidden;background:#fffefa!important;box-shadow:0 7px 22px #38271f0a;}
.zdb-cat-page__products :is(.product-grid-item .product-element-top,.product-grid-item .product-image-link){background:#f4eee7!important;}
.zdb-cat-page__products :is(.product-grid-item img,ul.products li.product img){object-fit:contain!important;object-position:center!important;max-height:320px;}
.zdb-cat-page__products :is(.wd-entities-title,.wd-entities-title a,.woocommerce-loop-product__title){color:var(--z8-ink)!important;font-weight:750!important;font-size:clamp(13px,.92vw,16px)!important;line-height:1.65!important;}
.zdb-cat-page__products :is(.price,.amount){color:#71513a!important;}
.zdb-cat-page__products :is(.woocommerce-pagination,.wd-pagination){margin-top:35px;}
.zdb-cat-notice{background:#fff7ed;color:#38271f;padding:30px;border:1px solid #e3d1bb;}
.zdb-cat-page :is(a,button):focus-visible{outline:3px solid #a8754c;outline-offset:3px;}
@media(hover:hover){.zdb-cat-page__cat:hover{transform:translateY(-2px);border-color:var(--z8-gold);box-shadow:0 13px 30px #38271f17;}}
@media(max-width:1024px){.zdb-cat-page__products :is(.products,ul.products,.wd-products){grid-template-columns:repeat(3,minmax(0,1fr))!important;}.zdb-cat-page__cats{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:700px){.zdb-cat-page__hero{min-height:285px;}.zdb-cat-page__hero-photo{background-image:url('../modules/archive/assets/arabic-mobile.webp');background-position:center;}.zdb-cat-page__hero::before{background:linear-gradient(0deg,rgba(35,22,16,.96),rgba(35,22,16,.35));}.zdb-cat-page__shell{width:calc(100% - 30px)}.zdb-cat-page__cats{grid-template-columns:1fr}.zdb-cat-page__cat{min-height:85px}.zdb-cat-page__products :is(.products,ul.products,.wd-products){grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:11px!important;}}
@media(prefers-reduced-motion:reduce){.zdb-cat-page *{animation:none!important;transition:none!important;}}
