/* Safy Kitchen header (all containers are full-width e-con-full: children are direct). Colours come from tokens.css = kit globals. */
.elementor-element.safy-header{padding:0;gap:0;margin:0;position:relative;z-index:40;font-family:Tajawal,sans-serif;color:var(--c-ink)}
.safy-header p{margin:0}
.elementor-element.safy-topbar{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:16px;min-height:44px;padding:0 max(24px,calc((100% - 1200px)/2));background:var(--grad-brand);color:var(--c-white);font-size:14px}
.safy-topbar>:first-child{justify-self:start}.safy-topbar>:last-child{justify-self:end}
.safy-topbar .elementor-widget-text-editor{color:var(--c-white)}
.elementor-element.safy-mainbar{flex-direction:row;position:relative;z-index:5;gap:32px;min-height:104px;padding:0 max(24px,calc((100% - 1200px)/2));background:var(--c-white);box-shadow:0 8px 24px rgba(126,34,161,.07)}
.safy-mainbar .elementor-widget-image{flex:none;width:150px}
.safy-mainbar .elementor-widget-image img{width:150px;height:auto;display:block}
.safy-mainbar .elementor-widget-nav-menu{flex:none;width:auto;margin-inline:24px auto}
.safy-mainbar .elementor-nav-menu--main .elementor-nav-menu{flex-wrap:nowrap;gap:36px}
.safy-mainbar .elementor-nav-menu--main .elementor-nav-menu>li{margin:0}
.safy-mainbar .elementor-nav-menu--main .elementor-item{padding:8px 0;font-size:17px;font-weight:500;color:var(--c-ink);white-space:nowrap}
.elementor-widget-nav-menu.elementor-widget .elementor-nav-menu--main .elementor-item:hover,.elementor-widget-nav-menu.elementor-widget .elementor-nav-menu--main .elementor-item.elementor-item-active{color:var(--c-primary)}
.elementor-widget-nav-menu.elementor-widget .e--pointer-underline .elementor-item::after,.elementor-widget-nav-menu.elementor-widget .e--pointer-underline .elementor-item::before{background-color:var(--c-primary);height:2px;border-radius:2px}
.elementor-element.safy-desktop-actions{flex:none;width:auto;gap:22px}
.safy-header .safy-account .elementor-icon{display:grid;place-items:center;width:42px;height:42px;border:1px solid var(--c-line);border-radius:50%;color:var(--c-purple);font-size:20px}
.safy-header .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__toggle_button{display:flex;flex-direction:column-reverse;align-items:center;gap:2px;border:0;background:transparent;color:var(--c-ink);padding:0;font-size:13px;line-height:1.2}
.safy-header .elementor-widget-woocommerce-menu-cart .elementor-button-icon{color:var(--c-primary);font-size:26px}
.safy-header .elementor-widget-woocommerce-menu-cart .elementor-button-icon-qty{background:var(--c-primary);color:var(--c-white);font-size:12px;font-weight:700}
.safy-header .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__toggle_button .elementor-button-text{font-weight:700;color:var(--c-purple)}
.safy-header .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__toggle_button .elementor-button-text::before{content:"السلة";display:block;font-weight:400;color:var(--c-ink)}
.safy-header .elementor-widget-button .elementor-button{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 22px;border:0;border-radius:999px;background:var(--grad-brand);color:var(--c-white);font-size:16px;font-weight:700}
.safy-header .elementor-widget-button .elementor-button:hover{filter:brightness(.93)}
.elementor-element.safy-mobile-controls{display:none}
.safy-call-popup{width:360px;max-width:calc(100vw - 32px);padding:20px;background:var(--c-white);border-radius:14px;box-shadow:0 16px 40px rgba(126,34,161,.2)}
.safy-call-popup .safy-branch{width:100%;padding:14px;background:var(--c-bg-soft);border-radius:14px}
.safy-phone-ltr{direction:ltr;text-align:right;color:var(--c-primary);font-weight:700}
.safy-drawer-popup .elementor-nav-menu--layout-vertical .elementor-item{border-bottom:1px solid var(--c-line);font-size:17px;font-weight:500;padding:13px 4px}
@media(max-width:1439px) and (min-width:1025px){.safy-mainbar .elementor-nav-menu--main .elementor-nav-menu{gap:24px}.elementor-element.safy-mainbar{gap:20px}.elementor-element.safy-desktop-actions{gap:14px}}
@media(max-width:1024px){.elementor-element.safy-mainbar .elementor-widget-nav-menu,.elementor-element.safy-desktop-actions{display:none}
.elementor-element.safy-mainbar{display:grid;grid-template-columns:44px 1fr 44px;gap:8px;min-height:84px;padding:0 20px}
.safy-mainbar .elementor-widget-image{grid-column:2;grid-row:1;justify-self:center;width:120px}.safy-mainbar .elementor-widget-image img{width:120px}
.elementor-element.safy-mobile-controls{display:contents}
.safy-mobile-controls .elementor-widget-button{grid-column:1;grid-row:1}.safy-mobile-controls .elementor-widget-woocommerce-menu-cart{grid-column:3;grid-row:1}
.safy-mobile-controls .elementor-widget-button .elementor-button{width:44px;height:44px;min-height:44px;padding:0;border-radius:14px;background:var(--grad-brand);box-shadow:0 6px 16px rgba(227,35,104,.28)}
.safy-mobile-controls .elementor-widget-button .elementor-button-text,.safy-mobile-controls .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__toggle_button .elementor-button-text{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.safy-mobile-controls .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__toggle_button .elementor-button-text::before{content:none}
.safy-mobile-controls .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__toggle_button{width:44px;height:44px;justify-content:center}}
@media(max-width:767px){.elementor-element.safy-topbar{display:none}.elementor-element.safy-mainbar{min-height:76px}.safy-mainbar .elementor-widget-image,.safy-mainbar .elementor-widget-image img{width:96px}}
.elementor-widget.elementor-widget-woocommerce-menu-cart .elementor-menu-cart__toggle_button .elementor-button-icon,.elementor-widget.elementor-widget-woocommerce-menu-cart .elementor-menu-cart__toggle_button svg{color:var(--c-primary);fill:var(--c-primary)}
.safy-call-popup .elementor-widget-heading .elementor-heading-title,.safy-drawer-popup .elementor-widget-heading .elementor-heading-title{font-size:18px;font-weight:700;color:var(--c-ink)}
.safy-branch .elementor-widget-text-editor{font-size:13px;color:var(--c-text-muted)}
.safy-branch .elementor-heading-title{font-size:16px;font-weight:700;color:var(--c-primary)}
.safy-chip .elementor-button,.safy-chip-wa .elementor-button{display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:0 14px;border:1px solid var(--c-primary);border-radius:8px;background:var(--c-white);color:var(--c-primary);font-size:14px;font-weight:700}
.safy-chip-wa .elementor-button{border-color:var(--c-whatsapp);color:#1c9c4d}
.safy-chip .elementor-button:hover{background:var(--c-tint-pink)}
.elementor-popup-modal:has(.safy-call-popup){background:rgba(31,21,48,.18)}
.elementor-popup-modal:has(.safy-call-popup) .dialog-widget-content{position:absolute;top:140px;left:max(24px,calc((100vw - 1200px)/2));margin:0;width:360px;max-width:calc(100vw - 32px);height:auto;border-radius:14px;overflow:visible}
.elementor-popup-modal:has(.safy-call-popup) .dialog-message{width:100%;height:auto}
/* logo keeps its proportions at every width (Elementor prints an explicit height) */
.safy-mainbar .elementor-widget-image img,.safy-drawer-popup .elementor-widget-image img{height:auto!important;object-fit:contain}
/* mobile drawer, same look as the approved prototype drawer */
.elementor-popup-modal:has(.safy-drawer-popup){background:rgba(31,21,48,.5)}
.elementor-popup-modal:has(.safy-drawer-popup) .dialog-widget-content{border-radius:0;box-shadow:var(--shadow-pop)}
.elementor-popup-modal:has(.safy-drawer-popup) .dialog-message{overflow-y:auto}
.elementor-element.safy-drawer-popup{gap:18px;padding:18px 20px 24px;background:var(--c-white)}
.safy-drawer-popup .elementor-widget-image{width:110px;flex:none}
.safy-drawer-popup .elementor-widget-image img{width:110px}
.safy-drawer-popup .elementor-widget-nav-menu{width:100%}
.safy-drawer-popup .elementor-nav-menu--layout-vertical .elementor-nav-menu>li{margin:0}
.safy-drawer-popup .elementor-nav-menu--layout-vertical .elementor-item{display:flex;padding:13px 4px;border-bottom:1px solid var(--c-line);font-size:17px;font-weight:500;color:var(--c-ink)}
.safy-drawer-popup .elementor-nav-menu--layout-vertical .elementor-item.elementor-item-active{font-weight:700;color:var(--c-primary)}
.safy-drawer-popup .elementor-widget-heading .elementor-heading-title{font-size:16px;margin-bottom:0}
.elementor-element.safy-drawer-popup .safy-branch{padding:12px 14px;background:linear-gradient(135deg,var(--c-tint-purple),var(--c-tint-pink));border-radius:14px}
.safy-drawer-popup .safy-branch .elementor-heading-title{margin:0;font-size:16px;color:var(--c-ink)}
.safy-drawer-popup .safy-phone-ltr{display:none}
.safy-drawer-popup>.elementor-widget-text-editor:last-child{margin-top:auto;padding-top:14px;border-top:1px solid var(--c-line);font-size:14px;color:var(--c-text-muted)}
.safy-chip .elementor-button-icon svg,.safy-chip-wa .elementor-button-icon svg{width:14px;height:14px;fill:currentColor}
.safy-chip .elementor-button-content-wrapper,.safy-chip-wa .elementor-button-content-wrapper{display:inline-flex;align-items:center;gap:6px;flex-direction:row-reverse}
/* hover/active exactly as the prototype: hover only recolours; the underline belongs to the active item */
.elementor-widget-nav-menu.elementor-widget .e--pointer-underline .elementor-item:not(.elementor-item-active)::after,.elementor-widget-nav-menu.elementor-widget .e--pointer-underline .elementor-item:not(.elementor-item-active)::before{opacity:0}
.safy-header .safy-account .elementor-icon:hover{border-color:var(--c-primary);color:var(--c-primary)}
.safy-header .safy-account .elementor-icon:hover svg{fill:var(--c-primary)}
.safy-header .elementor-widget-woocommerce-menu-cart .elementor-button-icon-qty{top:-8px;inset-inline-start:-8px;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background-color:var(--c-primary);font-size:12px;line-height:20px}
.safy-desktop-actions .elementor-widget-button .elementor-button-content-wrapper::after{content:"";width:16px;height:16px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat}
.safy-desktop-actions .elementor-widget-button .elementor-button-content-wrapper{display:inline-flex;align-items:center;gap:10px}
.safy-menu-cart{--items-indicator-background-color:var(--c-primary);--items-indicator-text-color:var(--c-white)}
.elementor-widget.elementor-widget-woocommerce-menu-cart .elementor-menu-cart__toggle .elementor-button-icon .elementor-button-icon-qty{position:absolute;top:-8px;inset-inline-start:-8px;inset-inline-end:auto;right:auto;min-width:20px;width:auto;height:20px;padding:0 5px;border-radius:999px;background-color:var(--c-primary);color:var(--c-white);font-size:12px;font-weight:700;line-height:20px;text-align:center}
/* ===== unified close button: drawer, call popup, cart drawer (36px square, line border, radius 8) ===== */
.safy-close .elementor-button,.elementor-menu-cart__main .elementor-menu-cart__close-button{display:grid;place-items:center;width:36px;height:36px;min-height:36px;padding:0;border:1px solid var(--c-line);border-radius:8px;background:var(--c-white);color:var(--c-ink);font-size:14px;line-height:1;cursor:pointer;transition:border-color .2s,color .2s}
.safy-close .elementor-button-text{display:none}
.safy-close svg,.elementor-menu-cart__main .elementor-menu-cart__close-button svg,.elementor-menu-cart__main .elementor-menu-cart__close-button i{width:14px;height:14px;font-size:14px;fill:currentColor;color:inherit}
.safy-close .elementor-button:hover,.elementor-menu-cart__main .elementor-menu-cart__close-button:hover{border-color:var(--c-primary);color:var(--c-primary)}
.elementor-element.safy-popup-head{flex-direction:row;align-items:center;justify-content:space-between;gap:12px}
.safy-popup-head .elementor-widget-heading .elementor-heading-title{margin:0}
/* ===== spacing grid: 4/8/12/16/24; nothing closer than 16px to the screen edge ===== */
.elementor-element.safy-call-popup{gap:16px;padding:20px}
.elementor-element.safy-drawer-popup{gap:16px;padding:20px}
.safy-mainbar .elementor-nav-menu--main .elementor-item{margin:0}
.safy-mainbar .elementor-nav-menu--main .elementor-nav-menu>li>a{margin:0}
@media(max-width:1024px){
.elementor-element.safy-mainbar{grid-template-columns:38px 1fr 38px;min-height:68px}
.safy-mobile-controls .elementor-widget-button .elementor-button{width:38px;height:38px;min-height:38px;border-radius:12px;box-shadow:0 4px 12px rgba(227,35,104,.25)}
.safy-mobile-controls .elementor-widget-button .elementor-button-icon svg{width:16px;height:16px}
.safy-mobile-controls .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__toggle_button{width:38px;height:38px}
.safy-mobile-controls .elementor-widget-woocommerce-menu-cart .elementor-button-icon{font-size:22px}}
/* ===== actions group: room between account / cart / call, badge on the cart icon's corner ===== */
.elementor-element.safy-desktop-actions{gap:28px}
.safy-desktop-actions .elementor-widget-woocommerce-menu-cart .elementor-menu-cart__toggle_button{min-width:56px;padding-inline:8px}
.safy-header .elementor-widget-woocommerce-menu-cart .elementor-button-icon{position:relative;display:inline-flex;overflow:visible}
.elementor-widget.elementor-widget-woocommerce-menu-cart .elementor-menu-cart__toggle .elementor-button-icon .elementor-button-icon-qty{top:-10px;inset-inline-start:-12px;inset-inline-end:auto;left:auto}
@media(max-width:1439px) and (min-width:1025px){.elementor-element.safy-desktop-actions{gap:20px}}
/* ===== menu effect (reference): hover = colour only, active = colour + a fixed line below; nothing moves ===== */
.safy-mainbar .elementor-nav-menu--main .elementor-item{position:relative;transition:color .15s}
.safy-mainbar .elementor-nav-menu--main .elementor-item.elementor-item-active::after{content:"";position:absolute;inset-inline:0;bottom:0;height:2px;border-radius:2px;background:var(--c-primary);opacity:1;transform:none;transition:none}
/* ===== close button: ONE drawing everywhere (box 36px + two 16x2 bars), popup buttons and the cart's own close ===== */
.safy-close .elementor-button{position:relative}
.safy-close .elementor-button-content-wrapper{display:none}
.safy-close .elementor-button::before,.safy-close .elementor-button::after,.elementor-menu-cart__main .elementor-menu-cart__close-button::before,.elementor-menu-cart__main .elementor-menu-cart__close-button::after{content:"";position:absolute;top:50%;left:50%;width:16px;height:2px;margin:-1px 0 0 -8px;border-radius:2px;background:currentColor;box-sizing:border-box}
.safy-close .elementor-button::before,.elementor-menu-cart__main .elementor-menu-cart__close-button::before{transform:rotate(45deg)}
.safy-close .elementor-button::after,.elementor-menu-cart__main .elementor-menu-cart__close-button::after{transform:rotate(-45deg)}
.elementor-menu-cart__main .elementor-menu-cart__close-button{position:absolute}
/* root cause of the menu jumping: Elementor/SmartMenus gives a:hover its own padding (13px 20px); keep one padding in every state */
.safy-mainbar .elementor-nav-menu--main .elementor-nav-menu a,.safy-mainbar .elementor-nav-menu--main .elementor-nav-menu a:hover,.safy-mainbar .elementor-nav-menu--main .elementor-nav-menu a:focus,.safy-mainbar .elementor-nav-menu--main .elementor-nav-menu a.highlighted{padding:8px 0;line-height:20px}
.safy-drawer-popup .elementor-nav-menu--layout-vertical .elementor-nav-menu a,.safy-drawer-popup .elementor-nav-menu--layout-vertical .elementor-nav-menu a:hover,.safy-drawer-popup .elementor-nav-menu--layout-vertical .elementor-nav-menu a:focus{padding:13px 4px}
.safy-drawer-popup .elementor-widget-heading+.safy-branch{margin-top:0}
.elementor-element.safy-drawer-popup>.elementor-widget-heading{margin-bottom:0}
/* ===== OnPage Menu in the bar: same place/size as the approved Nav Menu ===== */
.safy-mainbar .elementor-widget-opm-onpage-menu{flex:none;width:auto;margin-inline:24px auto}
.safy-mainbar .opm-menu .opm-list{gap:36px;flex-wrap:nowrap}
.safy-mainbar .opm-menu .opm-link{white-space:nowrap}
.safy-drawer-popup .elementor-widget-opm-onpage-menu{width:100%}
@media(max-width:1024px){.elementor-element.safy-mainbar .elementor-widget-opm-onpage-menu{display:none}}
/* the plugin's script clears is-active on plain links; the page we are on keeps its own marker */
.safy-mainbar .opm-item.safy-current .opm-link{color:var(--c-primary)}
.safy-mainbar .opm-item.safy-current .opm-link::before{opacity:1}
.safy-drawer-popup .opm-item.safy-current .opm-link{color:var(--c-primary);font-weight:700}
/* ===== tablet (768-1024), as the reference: logo, account + cart + call, burger at the end; phone keeps burger | logo | cart ===== */
@media(min-width:768px) and (max-width:1024px){
.elementor-element.safy-mainbar{display:flex;gap:16px;min-height:84px;padding:0 24px}
.elementor-element.safy-desktop-actions{display:flex;margin-inline-start:0;gap:16px}
.safy-mainbar .elementor-widget-image{grid-column:auto;justify-self:auto;width:120px}
.safy-mobile-controls .elementor-widget-woocommerce-menu-cart{display:none}
.safy-mobile-controls .elementor-widget-button{order:3;grid-column:auto;margin-inline-start:auto}
}
@media(max-width:767px){.elementor-element.safy-mainbar{min-height:64px}}
.safy-mainbar .elementor-widget-image{line-height:0}
/* ===== social icons (top bar, drawer): plain glyphs, no circle ===== */
.safy-social .elementor-social-icons-wrapper{display:flex;gap:12px}
.safy-social .elementor-social-icon{display:inline-grid;place-items:center;width:auto;height:auto;margin:0;padding:0;background:none;border-radius:0;font-size:16px;line-height:1}
.safy-social .elementor-social-icon svg{width:16px;height:16px;fill:currentColor}
.safy-social--bar .elementor-social-icon{color:var(--c-white)}
.safy-social--bar .elementor-social-icon:hover{opacity:.8}
.elementor-element.safy-topbar-social{flex-direction:row;align-items:center;gap:12px}
.safy-social--drawer .elementor-social-icon{color:var(--c-purple)}
.safy-social--drawer .elementor-social-icon:hover{color:var(--c-primary)}
.elementor-element.safy-drawer-foot{flex-direction:row;align-items:center;justify-content:space-between;margin-top:auto;padding-top:14px;border-top:1px solid var(--c-line);font-size:14px;color:var(--c-text-muted)}
.safy-drawer-popup>.elementor-widget-text-editor:last-child{margin-top:0;padding-top:0;border-top:0}
@media(max-width:767px){.elementor-element.safy-mainbar{padding-inline:16px}}
/* ===== call popup = the approved prototype dropdown (title + pink bar, cards with a round icon, chips, phone, support row) ===== */
.elementor-element.safy-call-popup{position:relative;gap:12px;padding:20px}
.elementor-element.safy-popup-head.safy-popup-head--center{flex-direction:row;align-items:flex-start;justify-content:flex-start;gap:0;padding-inline-end:48px}
.safy-popup-head--center .elementor-heading-title{font-size:18px;font-weight:700;line-height:34px;text-align:start;color:var(--c-ink)}
.safy-popup-head--center .elementor-widget-heading::after{content:"";display:block;width:40px;height:3px;margin:0 0 8px;background:var(--c-primary);border-radius:3px}
.safy-call-popup .safy-close{position:absolute;top:0;inset-inline-end:0}
.elementor-element.safy-call-card{padding:14px;background:var(--c-bg-soft);border-radius:14px}
.elementor-element.safy-call-support{padding:0}
.elementor-element.safy-disc{flex:none;width:52px;height:52px;padding:0;border-radius:50%;background:var(--c-white)}
.elementor-element.safy-disc--soft{background:var(--c-bg-soft)}
.safy-disc .elementor-icon{display:grid;place-items:center;color:var(--c-primary);font-size:22px}
.safy-disc svg{width:22px;height:22px;fill:currentColor}
.safy-call-card .elementor-heading-title,.safy-call-support .elementor-heading-title{margin:0;font-size:16px;font-weight:700;color:var(--c-ink)}
.safy-call-actions{margin-top:8px}
.safy-call-card .safy-phone-ltr{margin-top:6px;font-size:16px;font-weight:700;color:var(--c-ink)}
.safy-call-support .elementor-widget-text-editor{font-size:13px;color:var(--c-text-muted)}
/* logged in = logged out (library rule 9): Elementor already starts the popup layer below the admin bar; make it end at the screen edge */
.elementor-popup-modal:has(.safy-drawer-popup){height:calc(100vh - var(--wp-admin--admin-bar--height,0px))}
.elementor-popup-modal:has(.safy-drawer-popup) .dialog-widget-content{height:100%;max-height:100%}
/* ===== line icons of the approved header (prototype): pin + clock in the top bar, chevron after "المنتجات" ===== */
.safy-topbar>.elementor-widget:nth-child(1) .elementor-widget-container::before,.safy-topbar>.elementor-widget:nth-child(2) .elementor-widget-container::before{content:"";display:inline-block;width:16px;height:16px;margin-inline-end:8px;vertical-align:-3px;background:currentColor}
.safy-topbar>.elementor-widget:nth-child(1) .elementor-widget-container::before{-webkit-mask:var(--ico-pin) center/contain no-repeat;mask:var(--ico-pin) center/contain no-repeat}
.safy-topbar>.elementor-widget:nth-child(2) .elementor-widget-container::before{-webkit-mask:var(--ico-clock) center/contain no-repeat;mask:var(--ico-clock) center/contain no-repeat}
.safy-mainbar .opm-item:nth-child(2) .opm-label::after{content:"";display:inline-block;width:16px;height:16px;margin-inline-start:6px;vertical-align:-3px;background:currentColor;-webkit-mask:var(--ico-chevd) center/contain no-repeat;mask:var(--ico-chevd) center/contain no-repeat}
/* top bar line icons (the widgets have no inner container with optimised markup: the icon is a flex item of the widget) */
.safy-topbar>.elementor-widget:nth-child(1),.safy-topbar>.elementor-widget:nth-child(2){display:flex;align-items:center;gap:8px}
.safy-topbar>.elementor-widget:nth-child(1)::before,.safy-topbar>.elementor-widget:nth-child(2)::before{content:"";flex:none;width:16px;height:16px;background:currentColor}
.safy-topbar>.elementor-widget:nth-child(1)::before{-webkit-mask:var(--ico-pin) center/contain no-repeat;mask:var(--ico-pin) center/contain no-repeat}
.safy-topbar>.elementor-widget:nth-child(2)::before{-webkit-mask:var(--ico-clock) center/contain no-repeat;mask:var(--ico-clock) center/contain no-repeat}

/* ===== dropdown under "المنتجات" (the top product categories), same fade + 6px slide as the prototype call panel ===== */
.safy-mainbar .opm-item.has-submenu{position:relative}
.safy-mainbar .opm-item.has-submenu .safy-submenu{position:absolute;top:100%;inset-inline-start:-16px;z-index:60;min-width:240px;padding:8px;background:var(--c-white);border-radius:14px;box-shadow:var(--shadow-pop);opacity:0;visibility:hidden;transform:translateY(6px);transition:.2s}
.safy-mainbar .opm-item.has-submenu:hover .safy-submenu,.safy-mainbar .opm-item.has-submenu:focus-within .safy-submenu{opacity:1;visibility:visible;transform:none}
.safy-submenu ul{margin:0;padding:0;list-style:none}
.safy-submenu li a{display:block;padding:9px 12px;border-radius:8px;font-size:15px;font-weight:500;color:var(--c-ink);white-space:nowrap}
.safy-submenu li a:hover{background:var(--c-tint-pink);color:var(--c-primary)}
.safy-submenu .safy-submenu__all a{margin-top:6px;border-top:1px solid var(--c-line);border-radius:0 0 8px 8px;color:var(--c-primary)}

/* the dropdown must not be clipped by the menu widget */
.safy-mainbar .elementor-widget-opm-onpage-menu,.safy-mainbar .elementor-widget-opm-onpage-menu .elementor-widget-container,.safy-mainbar .opm-menu,.safy-mainbar .opm-panel,.safy-mainbar .opm-list{overflow:visible}

/* call popup: the pin sits BEFORE the branch name (icon first), drawn as a mask */
.elementor-popup-modal:has(.safy-call-popup) .dialog-widget-content{top:100px}
.safy-call-card__body>.elementor-widget-heading .elementor-heading-title{display:flex;align-items:center;gap:6px}
.safy-call-card__body>.elementor-widget-heading .elementor-heading-title::before{content:"";flex:none;width:16px;height:16px;background:var(--c-text-muted);-webkit-mask:var(--ico-pin) center/contain no-repeat;mask:var(--ico-pin) center/contain no-repeat}
.elementor-popup-modal:has(.safy-call-popup) .dialog-widget-content{top:134px}
/* call popup: no dark layer behind it, only the dropdown (like the prototype); WhatsApp chip hovers like the call chip, in its own green */
.elementor-popup-modal:has(.safy-call-popup){background:transparent!important}
.elementor-element.safy-chip-wa .elementor-button:hover,.elementor-element.safy-chip-wa .elementor-button:focus-visible{background:rgba(37,211,102,.12)!important;border-color:var(--c-whatsapp)!important;color:#1c9c4d!important}
.elementor-element.safy-chip .elementor-button:hover,.elementor-element.safy-chip .elementor-button:focus-visible{background:var(--c-tint-pink)!important;border-color:var(--c-primary)!important;color:var(--c-primary)!important}
/* call popup: the layer does not catch the mouse (the header button keeps its hand cursor); only the dropdown does */
.elementor-popup-modal:has(.safy-call-popup){pointer-events:none!important}
.elementor-popup-modal:has(.safy-call-popup) .dialog-widget-content,.elementor-popup-modal:has(.safy-call-popup) .dialog-widget-content *{pointer-events:auto!important}

/* call popup icons: outline line icons exactly as the prototype (the solid Font Awesome glyphs are hidden), same colours, nothing dark */
.safy-call-popup .safy-disc .elementor-icon svg,.safy-call-popup .safy-chip .elementor-button-icon svg,.safy-call-popup .safy-chip-wa .elementor-button-icon svg{display:none}
.safy-call-popup .safy-disc .elementor-icon::before,.safy-call-popup .safy-chip .elementor-button-icon::before,.safy-call-popup .safy-chip-wa .elementor-button-icon::before{content:"";display:block;background:currentColor;-webkit-mask:var(--m) center/contain no-repeat;mask:var(--m) center/contain no-repeat}
.safy-call-popup .safy-disc .elementor-icon::before{width:22px;height:22px;--m:var(--ico-store)}
.safy-call-popup .safy-disc--soft .elementor-icon::before{--m:var(--ico-headset)}
.safy-call-popup .safy-chip .elementor-button-icon::before{width:14px;height:14px;--m:var(--ico-phone)}
.safy-call-popup .safy-chip-wa .elementor-button-icon::before{width:14px;height:14px;--m:var(--ico-whatsapp)}
.safy-call-popup .safy-chip .elementor-button,.safy-call-popup .safy-chip-wa .elementor-button{font-weight:500}
/* icon BEFORE its text (owner rule): in the header call buttons the phone sits on the start side, the dropdown chevron stays last */
.safy-mainbar .elementor-widget-button .elementor-button-icon{order:1;margin:0}
.safy-mainbar .elementor-widget-button .elementor-button-text{order:0}
.safy-mainbar .elementor-widget-button .elementor-button-content-wrapper::after{order:-1}
.elementor-element.safy-chip .elementor-button-content-wrapper,.elementor-element.safy-chip-wa .elementor-button-content-wrapper{flex-direction:row!important}
.elementor-element.safy-chip .elementor-button-icon,.elementor-element.safy-chip-wa .elementor-button-icon{order:-1;margin:0}

/* Elementor's per-page CSS (kit accent #B91A55 on every button) loads after this file; the resting look of our own buttons is pinned so the load order can never repaint them */
.elementor-element.safy-chip .elementor-button,.elementor-element.safy-chip-wa .elementor-button{background-color:var(--c-white)!important;background-image:none!important}
.elementor-element.safy-chip .elementor-button{border-color:var(--c-primary)!important;color:var(--c-primary)!important}
.elementor-element.safy-chip-wa .elementor-button{border-color:var(--c-whatsapp)!important;color:#1c9c4d!important}
.elementor-element.safy-close .elementor-button{background-color:var(--c-white)!important;background-image:none!important;border:1px solid var(--c-line)!important;color:var(--c-ink)!important}
.elementor-element.safy-close .elementor-button:hover,.elementor-element.safy-close .elementor-button:focus-visible{background-color:var(--c-white)!important;border-color:var(--c-primary)!important;color:var(--c-primary)!important}
.elementor-element.safy-chip .elementor-button:hover,.elementor-element.safy-chip .elementor-button:focus-visible{background-color:var(--c-tint-pink)!important}
.elementor-element.safy-chip-wa .elementor-button:hover,.elementor-element.safy-chip-wa .elementor-button:focus-visible{background-color:rgba(37,211,102,.12)!important}

/* mobile menu drawer: branch name gets air above the buttons and its pin icon (like the call popup) */
.elementor-element.safy-drawer-popup .safy-branch{display:flex;flex-direction:column;gap:12px}
.safy-drawer-popup .safy-branch .elementor-widget-heading .elementor-heading-title{display:flex;align-items:center;gap:6px;margin:0}
.safy-drawer-popup .safy-branch .elementor-widget-heading .elementor-heading-title::before{content:"";flex:none;width:16px;height:16px;background:var(--c-text-muted);-webkit-mask:var(--ico-pin) center/contain no-repeat;mask:var(--ico-pin) center/contain no-repeat}

/* ===== header product search (build/plugins/safy-site-tools/assets/search.js): round button + a panel under the header bar with live suggestions ===== */
.safy-hs-toggle{display:grid;place-items:center;flex:none;width:42px;height:42px;padding:0;border:1px solid var(--c-line);border-radius:50%;background:var(--c-white);color:var(--c-purple);cursor:pointer}
.safy-hs-toggle::before{content:"";width:20px;height:20px;background:currentColor;-webkit-mask:var(--li-search) center/contain no-repeat;mask:var(--li-search) center/contain no-repeat}
.safy-hs-toggle:hover,.safy-hs-toggle:focus-visible,.safy-hs-toggle[aria-expanded=true]{border-color:var(--c-primary);background:var(--c-white);color:var(--c-primary)}
.safy-hs[hidden]{display:none}
.safy-hs{position:fixed;inset:var(--hs-top,0) 0 0 0;z-index:9990}
.safy-hs__back{position:absolute;inset:0;background:rgba(31,21,48,.45)}
.safy-hs__box{position:relative;width:min(100% - 32px,680px);margin:12px auto 0;padding:12px;border:1px solid var(--c-line);border-radius:var(--radius-l);background:var(--c-white);box-shadow:var(--shadow-pop)}
.safy-hs__form{display:flex;align-items:center;gap:8px;height:52px;padding:0 8px 0 12px;border:1px solid var(--c-line);border-radius:var(--radius-m);background:var(--c-white)}
.safy-hs__form:focus-within{border-color:var(--c-primary);box-shadow:0 0 0 3px rgba(227,35,104,.12)}
.safy-hs__ico{flex:none;width:22px;height:22px;background:var(--c-primary);-webkit-mask:var(--li-search) center/contain no-repeat;mask:var(--li-search) center/contain no-repeat}
.safy-hs__input{flex:1;min-width:0;height:100%;padding:0;border:0!important;outline:0;background:transparent!important;box-shadow:none!important;font:inherit;font-size:16px;color:var(--c-ink);text-align:right}
.safy-hs__input::placeholder{color:var(--c-text-muted)}
.safy-hs__input::-webkit-search-cancel-button{display:none}
.safy-hs__close{flex:none;width:36px;height:36px;padding:0;border:0;border-radius:10px;background:transparent;color:var(--c-text-muted);cursor:pointer}
.safy-hs__close::before{content:"";display:block;width:18px;height:18px;margin:auto;background:currentColor;-webkit-mask:var(--li-x) center/contain no-repeat;mask:var(--li-x) center/contain no-repeat}
.safy-hs__close:hover,.safy-hs__close:focus-visible{background:var(--c-tint-pink);color:var(--c-primary);border:0}
.safy-hs__list{max-height:min(60vh,420px);margin-top:8px;overflow:auto}
.safy-hs__msg{margin:0;padding:24px 12px;text-align:center;font-size:15px;color:var(--c-text-muted)}
.safy-hs__items{margin:0;padding:0;list-style:none;display:grid;gap:4px}
.safy-hs__item{display:flex;align-items:center;gap:12px;padding:8px;border-radius:var(--radius-m);color:var(--c-ink);text-decoration:none}
.safy-hs__item:hover,.safy-hs__item:focus-visible{background:var(--c-tint-pink);color:var(--c-primary)}
.safy-hs__pic{flex:none;width:56px;height:56px;border-radius:12px;background:var(--c-bg-soft);overflow:hidden}
.safy-hs__pic img{display:block;width:100%;height:100%;object-fit:cover}
.safy-hs__info{display:grid;gap:2px;min-width:0}
.safy-hs__name{font-size:15px;font-weight:700;line-height:1.5}
.safy-hs__price{font-size:14px;font-weight:700;color:var(--c-primary);direction:rtl;text-align:right}
.safy-hs__all{display:flex;align-items:center;justify-content:center;min-height:44px;margin-top:8px;border-radius:var(--radius-s);background:var(--grad-brand);background-origin:border-box;color:var(--c-white);font-weight:700;text-decoration:none}
.safy-hs__all:hover,.safy-hs__all:focus-visible{background:var(--grad-brand);color:var(--c-white);filter:brightness(.93)}
@media(max-width:767px){.safy-hs__box{margin-top:8px;padding:8px}.safy-hs__form{height:48px}}
/* phone: the search button sits beside the menu button (grid column 1), 52px from the edge */
.safy-mobile-controls .safy-hs-toggle{grid-column:2;grid-row:1;justify-self:end;align-self:center;width:34px;height:34px}
.safy-mobile-controls .safy-hs-toggle::before{width:17px;height:17px}
.safy-hs__input,.safy-hs__input:focus,.safy-hs__input:focus-visible{outline:0!important;border:0!important;box-shadow:none!important}
/* the "view all" button is pinned under the scrolling list, always visible */
.safy-hs__all[hidden]{display:none}
.safy-hs__list{max-height:min(52vh,380px)}
/* one search box = field + list + pinned view-all; used in the panel and (as a plain field) in the cart drawer */
.safy-hs__wrap{display:flex;flex-direction:column}
.safy-hs__list[hidden]{display:none}
.safy-hs-inline{margin:0 20px 16px}
.safy-hs-inline .safy-hs__form{height:46px;padding:0 12px}
.safy-hs-inline .safy-hs__list{max-height:34vh;margin-top:8px}
.safy-hs-inline .safy-hs__item{padding:6px}
.safy-hs-inline .safy-hs__pic{width:48px;height:48px}
/* phone menu button: bigger, bolder lines on a stronger gradient so it reads clearly (the light 1.5 icon looked washed out on it) */
.safy-mobile-controls .elementor-widget-button .elementor-button{background-image:linear-gradient(135deg,var(--c-purple),var(--c-primary))!important;box-shadow:0 6px 16px rgba(126,34,161,.35)}
.safy-mobile-controls .elementor-widget-button .elementor-button svg.e-font-icon-svg{width:20px;height:20px;background:var(--c-white);-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M4 7h16M4 12h16M4 17h16'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M4 7h16M4 12h16M4 17h16'/%3E%3C/svg%3E") center/contain no-repeat}
/* cart drawer: the search field never squeezes the cart content (empty message / lines) - it keeps its own height and the whole drawer scrolls if the screen is short */
.elementor-menu-cart__main{overflow-y:auto}
.elementor-menu-cart__main .safy-hs-inline{flex:none}
.elementor-menu-cart__main .widget_shopping_cart_content{flex:1 0 auto;min-height:160px;overflow-y:visible}
.safy-hs-inline .safy-hs__form{height:44px}
/* cart drawer: air between the title line and the search field */
.safy-hs-inline{margin:16px 20px 16px}
/* the X of the search box: a soft light-grey round chip with a darker X */
.safy-hs__close{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#EEEDF1;color:#6E6479}
.safy-hs__close::before{width:14px;height:14px}
.safy-hs__close[hidden]{display:none}
.safy-hs__close:hover,.safy-hs__close:focus-visible{background:#E2E0E8;color:var(--c-ink);border:0}
/* tablet (768+) uses the desktop actions row, which has its own search button: the phone one is hidden there */
@media(min-width:768px){.safy-mobile-controls .safy-hs-toggle{display:none}}
/* phone menu: the social icons at its end are soft round chips (42px), spaced like the footer's */
.safy-social--drawer .elementor-social-icons-wrapper{gap:10px}
.safy-social--drawer .elementor-social-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:var(--c-tint-pink);color:var(--c-primary)}
.safy-social--drawer .elementor-social-icon svg{width:18px;height:18px}
.safy-social--drawer .elementor-social-icon:hover{background:var(--c-bg-soft-2);color:var(--c-primary)}
