/* Matched pairs: curve only the two upper corners facing the pair's centre. */
.af-live .af7-directory .af7-count-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.af-live .af7-directory .af7-card .af7-artbox{border-radius:0!important}
.af-live.af-lang-ar .af7-directory .af7-card:nth-child(odd) .af7-artbox,
.af-live.af-lang-en .af7-directory .af7-card:nth-child(even) .af7-artbox{border-top-left-radius:28% 37.333%!important}
.af-live.af-lang-ar .af7-directory .af7-card:nth-child(even) .af7-artbox,
.af-live.af-lang-en .af7-directory .af7-card:nth-child(odd) .af7-artbox{border-top-right-radius:28% 37.333%!important}

/* Keep Arabic at the left; mirror the floating contact control in English. */
.af-live.af-lang-en .af9-whatsapp{left:auto;right:max(24px,env(safe-area-inset-right));border-radius:10px 22px 10px 22px}
.af-live.af-lang-en .af9-whatsapp>span{left:auto;right:calc(100% + 10px);transform:translateX(4px)}
.af-live.af-lang-en .af9-whatsapp:is(:hover,:focus-visible)>span{transform:none}
@media(max-width:620px){.af-live.af-lang-en .af9-whatsapp{left:auto;right:max(16px,env(safe-area-inset-right));border-radius:8px 20px 8px 20px}}

/* Five balanced positions: two equal controls, centred logo, two controls. */
@media(max-width:1150px){
 .af-live .af3-header .af3-head-row{display:grid!important;grid-template-columns:44px 44px minmax(72px,1fr) 44px 44px!important;gap:clamp(4px,1.5vw,14px)!important;align-items:center!important;direction:ltr;min-height:86px}
 .af-live .af3-header .af3-head-row>.af3-logo{grid-column:3;grid-row:1;justify-self:center;align-self:center;width:76px!important;height:52px;min-height:52px;max-width:100%;margin:0!important}
 .af-live .af3-header .af3-logo img{width:76px!important;height:44px!important;max-height:44px;object-fit:contain}
 .af-live .af3-header .af3-tools{display:contents!important}
 .af-live .af3-header .af3-mainnav,.af-live .af3-header .af7-desktop{display:none!important}
 .af-live .af3-header .af3-tools>.af3-cart{grid-column:1}
 .af-live .af3-header .af3-tools>.af3-search{grid-column:2}
 .af-live .af3-header .af3-tools>.af-language-wrap{grid-column:4}
 .af-live .af3-header .af3-tools>.af3-mobile-menu{grid-column:5;display:block!important}
 .af-live .af3-header .af3-tools>:is(.af3-cart,.af3-search,.af-language-wrap,.af3-mobile-menu){grid-row:1;align-self:center;justify-self:center;width:44px!important;height:44px!important;min-width:44px;margin:0!important;padding:0!important}
 .af-live .af3-header .af3-tools .af-language-wrap{display:flex!important;align-items:center;justify-content:center}
 .af-live .af3-header :is(.af3-search,.af3-mobile-menu)>summary,
 .af-live .af3-header .af3-cart>.mini-cart-link,
 .af-live .af3-header .af3-lang{display:flex!important;align-items:center!important;justify-content:center!important;width:44px!important;height:44px!important;min-height:44px!important;min-width:44px!important;padding:0!important;margin:0!important;line-height:1!important;border:0;background:transparent;color:#292421}
 .af-live .af3-header :is(.af3-search,.af3-mobile-menu)>summary i,
 .af-live .af3-header .af3-cart .cart-icon i{font-size:23px!important;width:26px;height:26px;line-height:26px;display:block;text-align:center}
 .af-live .af3-header .af3-cart .cart-icon{display:flex;align-items:center;justify-content:center;width:26px;height:26px}
 .af-live .af3-header .af3-lang{font-size:14px!important;font-weight:500}
 .af-live .af3-header .af3-cart{position:relative}
 .af-live .af3-header .af3-cart .cart-detail{left:0;right:auto;top:calc(100% + 16px);width:min(340px,calc(100vw - 36px));max-width:calc(100vw - 36px)}
 .af-live.af-lang-en .af3-header .af3-tools>.af3-cart{grid-column:5}
 .af-live.af-lang-en .af3-header .af3-tools>.af3-search{grid-column:4}
 .af-live.af-lang-en .af3-header .af3-tools>.af-language-wrap{grid-column:2}
 .af-live.af-lang-en .af3-header .af3-tools>.af3-mobile-menu{grid-column:1}
 .af-live.af-lang-en .af3-header .af3-cart .cart-detail{left:auto;right:0}
}
@media(max-width:620px){.af-live .af3-header .af3-head-row{min-height:78px}.af-live .af3-header .af3-head-row>.af3-logo{width:70px!important}.af-live .af3-header .af3-logo img{width:70px!important;height:41px!important}}

/* One control scale and a shared centre line on every screen. */
.af-live .af3-header .af3-head-row{align-items:center!important}
.af-live .af3-header .af3-head-row>.af3-logo{height:44px!important;min-height:44px!important;line-height:0;align-self:center!important}
.af-live .af3-header .af3-logo img{max-height:44px!important;object-fit:contain}
.af-live .af3-header .af3-tools{align-items:center!important;gap:10px}
.af-live .af3-header .af3-tools>:is(.af3-cart,.af3-search,.af-language-wrap,.af3-mobile-menu){width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;flex:0 0 44px;align-self:center;margin:0!important;padding:0!important}
.af-live .af3-header .af3-tools>.af-language-wrap{display:flex!important;align-items:center;justify-content:center}
.af-live .af3-header :is(.af3-search,.af3-mobile-menu)>summary,
.af-live .af3-header .af3-cart>.mini-cart-link,
.af-live .af3-header .af3-lang{display:flex!important;align-items:center!important;justify-content:center!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;margin:0!important;padding:0!important;border:0;background:transparent;color:#292421;line-height:1!important;text-decoration:none;box-sizing:border-box}
.af-live .af3-header :is(.af3-search,.af3-mobile-menu)>summary i,
.af-live .af3-header .af3-cart .cart-icon i{display:block;font-size:24px!important;width:26px!important;height:26px!important;line-height:26px!important;text-align:center;margin:0;padding:0}
.af-live .af3-header .af3-cart .cart-icon{display:flex;align-items:center;justify-content:center;width:26px;height:26px;line-height:1}
.af-live .af3-header .af3-lang{font-family:Arial,sans-serif!important;font-size:22px!important;font-weight:500!important;letter-spacing:-.035em;white-space:nowrap}
.af-live.af-lang-en .af3-header .af3-lang{font-family:Tajawal,Arial,sans-serif!important;font-size:20px!important;font-weight:600!important;letter-spacing:0}
.af-live .af3-header :is(.af3-search,.af3-mobile-menu)>summary:is(:hover,:focus-visible),
.af-live .af3-header .mini-cart-link:is(:hover,:focus-visible),
.af-live .af3-header .af3-lang:is(:hover,:focus-visible){color:#5b1e28}
.af-live .af3-header .af7-desktop{align-items:center}
.af-live .af3-header .af7-desktop>a,
.af-live .af3-header .af7-nav-group>summary{height:44px;min-height:44px;align-items:center;line-height:1.25}
@media(min-width:1151px){.af-live .af3-header .af3-tools{width:154px;justify-content:center}.af-live .af3-header .af3-logo img{width:76px!important;height:44px!important}}

/* Shared 26px canvas, visible bounds y=2..24 and 2px strokes for all four glyphs.
   Outline EN/AR avoids font-dependent cap heights, baselines and substitutions. */
.af-live .af3-header :is(.af3-search,.af3-mobile-menu)>summary i::before,
.af-live .af3-header .af3-cart .cart-icon i::before,
.af-live .af3-header .af3-lang::before{content:""!important;display:block!important;width:26px!important;height:26px!important;flex:0 0 26px;background:currentColor;-webkit-mask:var(--af-header-glyph) center/26px 26px no-repeat;mask:var(--af-header-glyph) center/26px 26px no-repeat}
.af-live .af3-header .af3-search>summary i{--af-header-glyph:url("assets/header/search.svg")}
.af-live .af3-header .af3-cart .cart-icon i{--af-header-glyph:url("assets/header/cart.svg")}
.af-live .af3-header .af3-mobile-menu>summary i{--af-header-glyph:url("assets/header/menu.svg")}
.af-live .af3-header .af3-lang{--af-header-glyph:url("assets/header/language-en.svg");font-size:0!important;line-height:0!important;letter-spacing:0!important}
.af-live.af-lang-en .af3-header .af3-lang{--af-header-glyph:url("assets/header/language-ar.svg");font-size:0!important;line-height:0!important}

/* Full Arabic label: outlined Tajawal Medium keeps its ink bounds stable.
   Reserve equal space for the opposite control to preserve logo symmetry. */
.af-live .af3-header{--af-glyph-size:26px;--af-word-size:74.7161px;--af-lang-slot:80px}
.af-live .af3-header :is(.af3-search,.af3-mobile-menu)>summary i,
.af-live .af3-header .af3-cart .cart-icon,
.af-live .af3-header .af3-cart .cart-icon i{width:var(--af-glyph-size)!important;height:var(--af-glyph-size)!important;line-height:var(--af-glyph-size)!important}
.af-live .af3-header :is(.af3-search,.af3-mobile-menu)>summary i::before,
.af-live .af3-header .af3-cart .cart-icon i::before,
.af-live .af3-header .af3-lang::before{width:var(--af-glyph-size)!important;height:var(--af-glyph-size)!important;flex:0 0 var(--af-glyph-size);-webkit-mask-size:contain;mask-size:contain}
.af-live.af-lang-en .af3-header .af3-lang{--af-header-glyph:url("assets/header/language-arabic.svg")}
.af-live.af-lang-en .af3-header .af3-lang::before{width:var(--af-word-size)!important;flex-basis:var(--af-word-size)}
.af-live .af3-header .af3-tools>.af-language-wrap,
.af-live .af3-header .af3-lang{width:var(--af-lang-slot)!important;min-width:var(--af-lang-slot)!important;flex-basis:var(--af-lang-slot)}
@media(min-width:1151px){
 .af-live .af3-header .af3-head-row{grid-template-columns:88px 188px minmax(0,1fr)!important}
 .af-live .af3-header .af3-tools{width:188px}
}
@media(min-width:1151px) and (max-width:1280px){.af-live .af3-header .af7-desktop{gap:10px;font-size:12px}}
@media(max-width:1150px){
 .af-live .af3-header .af3-head-row{grid-template-columns:44px var(--af-lang-slot) minmax(40px,1fr) var(--af-lang-slot) 44px!important;gap:clamp(4px,1.2vw,14px)!important}
 .af-live .af3-header .af3-tools>.af3-search{width:var(--af-lang-slot)!important}
 .af-live .af3-header .af3-search>summary{margin-inline:auto!important}
}
@media(max-width:620px){.af-live .af3-header{--af-glyph-size:22px;--af-word-size:63.2213px;--af-lang-slot:64px}}
@media(max-width:359px){
 .af-live .af3-header{--af-glyph-size:20px;--af-word-size:57.4739px;--af-lang-slot:58px}
 .af-live .af3-header .af3-head-row>.af3-logo{width:clamp(48px,calc(100vw - 272px),70px)!important}
 .af-live .af3-header .af3-logo img{width:100%!important;height:auto!important;max-height:41px!important}
}
