/*
 * Zein Legal Publications — official identity v0.2.0
 * Dark burgundy, restrained gold, soft Cairo typography.
 */
:root{
  --zein-burgundy:#5B0F1A;
  --zein-burgundy-deep:#35070D;
  --zein-burgundy-mid:#7A1E27;
  --zein-gold:#C8A46A;
  --zein-gold-deep:#A7834F;
  --zein-gold-soft:#E7D4AF;
  --zein-paper:#FAF8F4;
  --zein-paper-deep:#F3ECE3;
  --zein-white:#FFFFFF;
  --zein-ink:#2B2325;
  --zein-muted:#75676A;
  --zein-border:#E7DAD5;
  --zein-shadow:0 18px 50px rgba(53,7,13,.09);
  --zein-shadow-soft:0 8px 26px rgba(53,7,13,.07);
}

html{scroll-behavior:smooth}
html,body,button,input,select,textarea{font-family:"Cairo",Tahoma,Arial,sans-serif!important}
body{font-weight:400;line-height:1.8;background:var(--zein-paper);color:var(--zein-ink);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
h1,h2,h3,h4,h5,h6,.aw-logo__name,.zein-sp__title{font-family:"Cairo",Tahoma,Arial,sans-serif!important;font-weight:600!important;letter-spacing:0!important}
a{transition:color .2s ease,background-color .2s ease,border-color .2s ease,transform .2s ease,box-shadow .2s ease}
.container,.zl-container{width:min(1240px,calc(100% - 44px));margin-inline:auto}
.zein-phone-number,[dir="ltr"]{unicode-bidi:isolate}

/* Header */
body .zl-header{position:relative!important;z-index:80;background:#fff!important;border:0!important;box-shadow:0 6px 24px rgba(53,7,13,.06)!important}
body .zl-topbar,body .aw-header__strip{background:var(--zein-burgundy-deep)!important;color:#fff!important}
.zl-topbar__inner{min-height:38px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.zl-topbar p{margin:0;color:rgba(255,255,255,.84);font-size:12px;font-weight:500}
.zl-topbar__contact{display:flex;align-items:center;gap:18px;direction:rtl}
.zl-topbar__contact a{display:inline-flex;align-items:center;gap:6px;color:rgba(255,255,255,.88)!important;text-decoration:none;font-size:11px;background:transparent!important}
.zl-topbar__contact a:hover{color:var(--zein-gold-soft)!important;background:transparent!important}
.zl-topbar__contact span{color:rgba(255,255,255,.55)}
.zl-topbar__contact b{font-weight:500;color:inherit;letter-spacing:.01em}

.zl-header-main{background:#fff}
body .zl-header-main__inner{min-height:100px;padding-block:17px;display:grid!important;grid-template-columns:230px minmax(260px,1fr) auto!important;gap:28px!important;align-items:center!important;background:#fff!important}
body a.zl-logo{display:flex!important;align-items:center!important;justify-content:flex-start!important;width:230px!important;max-width:230px!important;overflow:visible!important;line-height:0}
body a.zl-logo img.aw-logo__img{display:block!important;width:220px!important;max-width:220px!important;height:72px!important;object-fit:contain!important;object-position:right center!important;filter:none!important}

body .zl-search{min-width:0!important;width:100%!important}
body .zl-search__form{display:grid!important;grid-template-columns:minmax(0,1fr) 52px!important;min-height:50px!important;padding:0!important;border:1px solid #DED1CD!important;border-radius:14px!important;background:#FCFAF7!important;overflow:hidden!important;box-shadow:none!important}
body .zl-search__form:focus-within{border-color:var(--zein-gold)!important;box-shadow:0 0 0 4px rgba(200,164,106,.14)!important}
body .zl-search__form .aw-search__input{width:100%!important;min-width:0!important;min-height:48px!important;border:0!important;outline:0!important;background:transparent!important;padding:0 18px!important;color:var(--zein-ink)!important;font-size:14px!important;font-weight:400!important}
body .zl-search__form .aw-search__input::placeholder{color:#9A8D90;opacity:1}
body .zl-search__form .aw-search__btn{width:52px!important;min-width:52px!important;min-height:50px!important;border:0!important;border-radius:0!important;background:var(--zein-burgundy)!important;color:#fff!important;display:flex!important;align-items:center!important;justify-content:center!important;padding:0!important}
body .zl-search__form .aw-search__btn:hover{background:var(--zein-burgundy-deep)!important}
body .zl-search__form .aw-search__btn svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}

body .zl-header-actions{display:flex!important;align-items:center!important;gap:6px!important;flex-shrink:0!important}
body .zl-header-actions .aw-nav__link{position:relative;min-width:58px;min-height:50px;padding:6px 10px!important;border:1px solid transparent!important;border-radius:12px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:2px!important;text-decoration:none!important;color:var(--zein-burgundy-deep)!important;background:#fff!important}
body .zl-header-actions .aw-nav__link:hover{border-color:var(--zein-border)!important;background:var(--zein-paper)!important;color:var(--zein-burgundy)!important}
body .zl-header-actions .aw-nav__link svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
body .zl-header-actions .aw-nav__link span{font-size:11px;font-weight:500;white-space:nowrap}
body .zl-header-actions .aw-nav__link em{font-style:normal}
body .zl-header-actions .zl-cart-link{background:var(--zein-burgundy)!important;color:#fff!important;border-color:var(--zein-burgundy)!important;min-width:66px}
body .zl-header-actions .zl-cart-link:hover{background:var(--zein-burgundy-deep)!important;color:#fff!important;border-color:var(--zein-burgundy-deep)!important}
body .aw-nav__cart-count,body .zein-header-wishlist__count{position:absolute;top:-5px;left:-4px;min-width:19px;height:19px;padding:0 5px;border-radius:99px;background:var(--zein-gold)!important;color:var(--zein-burgundy-deep)!important;font-size:10px;line-height:19px;text-align:center;font-weight:600;box-shadow:0 2px 7px rgba(53,7,13,.18)}

body .zl-nav-wrap,body .aw-subnav{background:#fff!important;border-top:1px solid #EFE7E3!important;border-bottom:1px solid #E8DDDA!important;box-shadow:none!important}
body .zl-main-nav{display:flex!important;align-items:center!important;justify-content:center!important;gap:2px!important;min-height:52px!important;padding:5px 0!important;overflow:visible!important}
body .zl-main-nav ul,body .zl-main-nav .menu{display:flex!important;align-items:center!important;justify-content:center!important;gap:2px!important;margin:0!important;padding:0!important;list-style:none!important}
body .zl-main-nav li{list-style:none!important;margin:0!important;padding:0!important}
body .zl-main-nav>a,body .zl-main-nav li>a,body .zl-main-nav .aw-subnav__link{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:38px!important;padding:7px 16px!important;border:0!important;border-radius:9px!important;background:transparent!important;color:#3E3033!important;text-decoration:none!important;font-size:14px!important;font-weight:500!important;white-space:nowrap!important}
body .zl-main-nav>a:hover,body .zl-main-nav li>a:hover,body .zl-main-nav .current-menu-item>a,body .zl-main-nav .current_page_item>a{background:var(--zein-paper-deep)!important;color:var(--zein-burgundy)!important}
.zl-mobile-nav-head{display:none}

/* Buttons and WooCommerce */
body .button,body button,body input[type="submit"]{font-family:"Cairo",Tahoma,Arial,sans-serif;font-weight:600}
body .single_add_to_cart_button,body .checkout-button,body .button.alt{background:var(--zein-burgundy)!important;color:#fff!important;border-radius:10px!important}
body .single_add_to_cart_button:hover,body .checkout-button:hover,body .button.alt:hover{background:var(--zein-burgundy-deep)!important;color:#fff!important}
body .woocommerce-message,body .woocommerce-info{border-top-color:var(--zein-burgundy)!important}
body .woocommerce-message::before,body .woocommerce-info::before{color:var(--zein-burgundy)!important}
body ul.products li.product{background:#fff;border:1px solid var(--zein-border);border-radius:16px;padding:12px 12px 16px;box-shadow:0 6px 20px rgba(53,7,13,.055);transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;overflow:hidden}
body ul.products li.product:hover{transform:translateY(-4px);border-color:#D9C4BC;box-shadow:0 16px 38px rgba(53,7,13,.1)}
body ul.products li.product a img{border-radius:10px;background:#F7F3EF;aspect-ratio:2/3;object-fit:contain;margin-bottom:14px}
body ul.products li.product .woocommerce-loop-product__title{font-size:15px!important;line-height:1.7!important;color:var(--zein-ink)!important;font-weight:600!important;padding:0!important;margin:0 0 8px!important;min-height:50px}
body ul.products li.product .price{color:var(--zein-burgundy)!important;font-weight:600!important;font-size:15px!important;margin-bottom:10px!important}
body ul.products li.product .button{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;min-height:40px!important;padding:8px 12px!important;margin-top:8px!important;border-radius:9px!important;background:var(--zein-burgundy)!important;color:#fff!important;font-size:13px!important;text-decoration:none!important}
body ul.products li.product .button:hover{background:var(--zein-burgundy-deep)!important}
body .onsale{background:var(--zein-burgundy)!important;color:#fff!important;min-width:auto!important;min-height:auto!important;line-height:1.4!important;padding:6px 10px!important;border-radius:7px!important;font-size:11px!important}

/* Footer */
body .zl-footer,body footer.zl-footer{margin-top:0!important;padding:64px 0 0!important;background:linear-gradient(145deg,#2E060B 0%,#4B0B14 56%,#5B0F1A 100%)!important;color:rgba(255,255,255,.82)!important;position:relative;overflow:hidden}
body .zl-footer::after{content:"";position:absolute;width:420px;height:420px;border:1px solid rgba(200,164,106,.14);border-radius:50%;left:-210px;top:-190px;box-shadow:0 0 0 55px rgba(200,164,106,.035),0 0 0 110px rgba(200,164,106,.025);pointer-events:none}
.zl-footer__top{position:relative;z-index:1;display:grid;grid-template-columns:1.45fr .75fr .85fr 1.35fr;gap:42px;padding-bottom:46px}
.zl-footer__brand p{max-width:360px;margin:0 0 13px;color:rgba(255,255,255,.68)!important;font-size:13px;line-height:1.9}
.zl-footer__legal-name{color:var(--zein-gold-soft)!important;font-weight:500!important}
.zl-footer__logo{display:inline-flex!important;align-items:center!important;background:#fff!important;border:1px solid rgba(255,255,255,.3)!important;border-radius:12px!important;padding:10px 14px!important;margin-bottom:18px!important;box-shadow:0 14px 32px rgba(0,0,0,.18)!important}
.zl-footer__logo img{width:190px;height:62px;object-fit:contain;display:block}
.zl-footer h3{margin:0 0 18px;color:var(--zein-gold-soft)!important;font-size:15px;font-weight:600!important;padding-bottom:11px;border-bottom:1px solid rgba(255,255,255,.12)!important}
.zl-footer ul{list-style:none;margin:0;padding:0;display:grid;gap:9px}
.zl-footer ul li{margin:0;padding:0;list-style:none}
.zl-footer ul a{color:rgba(255,255,255,.76)!important;text-decoration:none;font-size:13px;background:transparent!important}
.zl-footer ul a::before{content:"‹";display:inline-block;margin-left:7px;color:var(--zein-gold)}
.zl-footer ul a:hover{color:#fff!important;background:transparent!important;padding-right:3px}
.zl-footer__contact{display:flex;flex-direction:column;gap:10px}
.zl-footer__contact h3{width:100%}
.zl-footer__contact-item{display:flex!important;align-items:flex-start!important;gap:10px!important;color:rgba(255,255,255,.76)!important;text-decoration:none!important;font-size:12px!important;line-height:1.75!important;background:transparent!important}
.zl-footer__contact-item:hover{color:#fff!important;background:transparent!important}
.zl-footer__contact-item svg{width:17px;height:17px;flex:0 0 17px;margin-top:4px;fill:none;stroke:var(--zein-gold-soft);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.zl-footer__contact-item b{font-weight:500;color:inherit}
.zl-footer .zein-social-links{display:flex;align-items:center;gap:8px;margin-top:18px}
.zl-footer .zein-social-links__link{width:36px;height:36px;border:1px solid rgba(255,255,255,.16);border-radius:10px;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.06)!important;color:#fff!important}
.zl-footer .zein-social-links__link:hover{background:var(--zein-gold)!important;color:var(--zein-burgundy-deep)!important;border-color:var(--zein-gold)!important;transform:translateY(-2px)}
.zl-footer .zein-social-links__link svg{width:16px;height:16px;fill:currentColor}
.zl-footer__bottom{position:relative;z-index:1;border-top:1px solid rgba(255,255,255,.1);min-height:62px;display:flex;align-items:center;justify-content:space-between;gap:20px;color:rgba(255,255,255,.52)!important;font-size:12px}

/* Remove obsolete translated/edited-book UI defensively */
a[href*="/translators/"],a[href*="/critical-editors/"],.zein-sp__translator-line,.zein-sp__critical-editor-line{display:none!important}

@media(max-width:1100px){
  body .zl-header-main__inner{grid-template-columns:190px minmax(220px,1fr) auto!important;gap:18px!important}
  body a.zl-logo{width:190px!important;max-width:190px!important}
  body a.zl-logo img.aw-logo__img{width:185px!important;max-width:185px!important;height:64px!important}
  .zl-footer__top{grid-template-columns:1.3fr 1fr 1fr;gap:34px}
  .zl-footer__contact{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 26px}
  .zl-footer__contact h3{grid-column:1/-1}
}

@media(max-width:860px){
  .container,.zl-container{width:min(100% - 30px,1240px)}
  .zl-topbar__legal{display:none}
  .zl-topbar__inner{justify-content:center;min-height:34px}
  .zl-topbar__contact{gap:12px;width:100%;justify-content:center;overflow-x:auto;scrollbar-width:none}
  .zl-topbar__contact::-webkit-scrollbar{display:none}
  .zl-topbar__contact a{flex:0 0 auto}
  .zl-topbar__contact a span{display:none}
  body .zl-header-main__inner{display:grid!important;grid-template-columns:160px minmax(0,1fr)!important;gap:12px!important;min-height:auto!important;padding-block:12px!important}
  body a.zl-logo{width:160px!important;max-width:160px!important}
  body a.zl-logo img.aw-logo__img{width:155px!important;max-width:155px!important;height:56px!important}
  body .zl-header-actions{justify-self:end}
  body .zl-search{grid-column:1/-1;grid-row:2}
  body .zl-header-actions .aw-nav__link{min-width:48px;min-height:44px;padding:5px 7px!important}
  body .zl-header-actions .aw-nav__link span{display:none}
  body .zl-header-actions .aw-nav__link svg{width:19px;height:19px}
  body .zl-header-actions .zl-cart-link{min-width:48px}
  .zl-mobile-nav-head{display:flex!important;align-items:center;justify-content:space-between;min-height:48px}
  .zl-mobile-nav-head .aw-mobile-home-link{color:var(--zein-burgundy)!important;text-decoration:none;font-size:14px;font-weight:600;background:transparent!important}
  .zl-mobile-nav-head .aw-mobile-menu-toggle{border:0;background:transparent;color:var(--zein-burgundy-deep);display:flex;align-items:center;gap:8px;padding:7px 0;font-size:13px}
  .aw-mobile-menu-toggle__icon{display:grid;gap:4px;width:20px}
  .aw-mobile-menu-toggle__icon i{display:block;height:1.5px;background:currentColor;border-radius:2px}
  body .zl-main-nav{display:none!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;min-height:0!important;padding:6px 0 14px!important}
  body.aw-mobile-menu-open .zl-main-nav{display:flex!important}
  body .zl-main-nav ul,body .zl-main-nav .menu{display:flex!important;flex-direction:column!important;align-items:stretch!important;width:100%!important}
  body .zl-main-nav>a,body .zl-main-nav li>a{justify-content:flex-start!important;width:100%!important;min-height:42px!important;padding:9px 12px!important}
  .zl-footer__top{grid-template-columns:1fr 1fr}
  .zl-footer__brand{grid-column:1/-1}
  .zl-footer__contact{grid-column:1/-1}
}

@media(max-width:580px){
  .container,.zl-container{width:min(100% - 24px,1240px)}
  .zl-topbar__contact a:nth-child(3){display:none}
  body .zl-header-main__inner{grid-template-columns:132px minmax(0,1fr)!important}
  body a.zl-logo{width:132px!important;max-width:132px!important}
  body a.zl-logo img.aw-logo__img{width:128px!important;max-width:128px!important;height:49px!important}
  body .zl-header-actions{gap:3px!important}
  body .zl-header-actions .aw-nav__link{min-width:42px;min-height:42px;padding:4px 6px!important}
  body .zl-search__form{grid-template-columns:minmax(0,1fr) 46px!important;min-height:46px!important}
  body .zl-search__form .aw-search__input{font-size:13px!important;padding:0 13px!important;min-height:44px!important}
  body .zl-search__form .aw-search__btn{width:46px!important;min-width:46px!important;min-height:46px!important}
  .zl-footer__top{grid-template-columns:1fr;gap:30px}
  .zl-footer__brand,.zl-footer__contact{grid-column:auto}
  .zl-footer__contact{display:flex}
  .zl-footer__bottom{flex-direction:column;justify-content:center;text-align:center;padding-block:15px}
}
