/* ============================================================
   EOGstore layout — header, mega menu, footer, switchers, RTL.
   Loaded after eog-theme.css. Uses logical properties so the
   same rules work for dir="ltr" and dir="rtl".
   ============================================================ */

/* ---------- Arabic font ---------- */
[dir="rtl"] body { font-family: 'Cairo', system-ui, "Segoe UI", Tahoma, sans-serif; letter-spacing: 0; }

/* ---------- Top bar ---------- */
.eog-topbar__promises a:hover, .eogl-lang:hover { color: var(--eog-text); }
.eog-topbar__end { display: flex; align-items: center; gap: 12px; }
.eogl-switch { display: inline-flex; border: 1px solid var(--eog-line); border-radius: 999px; padding: 2px; }
.eogl-switch a { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--eog-muted); }
.eogl-switch a.is-on { background: var(--eog-accent-fill); color: var(--eog-accent-ink); }
.eogl-lang { font-weight: 600; }

/* ---------- Header ---------- */
.eog-header__logo img { height: 40px; width: auto; }
.eog-cart__badge { right: auto; inset-inline-end: -7px; }
.eog-cart__total { font-weight: 700; white-space: nowrap; }
.eog-search:focus-within { box-shadow: 0 0 0 3px rgb(var(--eog-accent-rgb) / .18); }
#eogMenuToggle { display: none; }

/* ---------- Mega menu ---------- */
.eogm-trigger { display: inline-flex !important; align-items: center; gap: 7px; }
.eogm-ico { width: 16px; height: 16px; flex: 0 0 auto; }
.eogm-panel {
    width: min(1240px, 96vw); inset-inline-start: 0; left: auto;
    padding: 18px 22px 22px; border-radius: 0 0 18px 18px; z-index: 60;
    box-shadow: 0 30px 70px rgba(0,0,0,.55);
}
.eogm-strip {
    display: flex; align-items: center; gap: 14px; padding: 13px 16px; margin-bottom: 16px;
    border: 1px solid rgb(var(--eog-accent-rgb) / .45); border-radius: 14px;
    background: linear-gradient(90deg, rgb(var(--eog-accent-rgb) / .16), rgb(var(--eog-accent-rgb) / .04));
}
[dir="rtl"] .eogm-strip { background: linear-gradient(-90deg, rgb(var(--eog-accent-rgb) / .16), rgb(var(--eog-accent-rgb) / .04)); }
.eogm-strip__txt b { display: block; font-size: 15px; }
.eogm-strip__txt small { color: var(--eog-muted); font-size: 12px; }
.eogm-strip__btn {
    margin-inline-start: auto; background: var(--eog-accent-fill); color: var(--eog-accent-ink);
    font-weight: 800; font-size: 13px; padding: 10px 16px; border-radius: 10px; white-space: nowrap;
}
[dir="rtl"] .eogm-arrow { display: inline-block; transform: scaleX(-1); }
.eogm-cols { display: grid; grid-template-columns: 230px 1fr; gap: 24px; }
.eogm-left { display: flex; flex-direction: column; gap: 2px; }
.eogm-all {
    display: flex; justify-content: space-between; align-items: center; padding: 9px 12px;
    border-radius: 10px; color: var(--eog-accent); font-weight: 700; font-size: 13px; margin-bottom: 6px;
}
.eogm-tab {
    display: flex; align-items: center; gap: 10px; padding: 11px 13px; border: 1px solid transparent;
    border-radius: 10px; background: transparent; color: var(--eog-muted); font: inherit; font-size: 13.5px; cursor: pointer;
}
.eogm-tab span { flex: 1; text-align: start; }
.eogm-tab.is-on { background: rgba(255,255,255,.05); color: var(--eog-text); border-color: var(--eog-line); }
.eogm-chev { opacity: .45; font-style: normal; }
[dir="rtl"] .eogm-chev { transform: scaleX(-1); }
.eogm-dot { width: 11px; height: 11px; border-radius: 4px; background: var(--t, var(--eog-accent)); flex: 0 0 auto; display: inline-block; }
.eogm-right { min-height: 300px; }
.eogm-body { display: none; }
.eogm-body.is-on { display: block; }
.eogm-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.eogm-head b { font-size: 22px; font-weight: 800; }
.eogm-head a { color: var(--eog-accent); font-size: 13px; }
.eogm-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.eogm-reg {
    display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: 1px solid var(--eog-line);
    border-radius: 10px; background: rgba(255,255,255,.03); font-size: 13.5px; font-weight: 600;
    transition: border-color .12s, transform .12s;
}
.eogm-reg:hover { border-color: var(--eog-accent); transform: translateY(-1px); }
.eogm-flag { width: 22px; height: 16px; object-fit: cover; border-radius: 2px; flex: 0 0 auto; }
.eogm-globe { width: 22px; text-align: center; flex: 0 0 auto; }

/* ---------- Footer ---------- */
.eog-footer__about img { height: 44px; width: auto; margin-bottom: 10px; }
.eog-footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.eog-footer__legal { display: flex; gap: 16px; }

/* ---------- Mobile ---------- */
@media (max-width: 920px) {
    #eogMenuToggle { display: inline-block; }
    .eog-menu { display: none; }
    #eogHeader.eog-menu--open .eog-menu { display: block; }
    .eog-menu__list { flex-direction: column; }
    .eog-menu__item--haspanel:hover .eog-panel { display: none; }
    .eog-menu__item--haspanel.is-open .eog-panel { display: block; position: static; width: auto; box-shadow: none; border-radius: 14px; }
    .eogm-cols { grid-template-columns: 1fr; }
    .eogm-left { flex-direction: row; flex-wrap: wrap; }
    .eogm-tab { flex: 0 0 auto; }
    .eogm-tab span { flex: none; }
    .eogm-chev { display: none; }
    .eogm-grid { grid-template-columns: repeat(2, 1fr); }
    .eogm-strip__btn { display: none; }
    .eog-header__bar { flex-wrap: wrap; }
    .eog-search { order: 10; flex-basis: 100%; }
    .eog-tool:not(.eog-acct) { display: none; }   /* the account entry stays visible at every width */
    .eog-header__tools { margin-inline-start: auto; }
}
@media (max-width: 560px) {
    .eog-topbar__promises li:not(:first-child) { display: none; }
    .eog-header__logo img { height: 34px; }
}
/* header search must stay visible on phones (eog-theme hid it ≤640px) */
@media (max-width: 920px) { .eog-header .eog-search { display: flex; order: 10; flex-basis: 100%; } }

/* floating WhatsApp button — bottom right on every page */
.eog-wafab{position:fixed;right:20px;bottom:20px;z-index:90;width:58px;height:58px;border-radius:50%;display:grid;place-items:center;background:#25d366;color:#fff;box-shadow:0 10px 26px rgba(37,211,102,.38),0 2px 6px rgba(0,0,0,.3);transition:transform .2s ease,box-shadow .2s ease}
.eog-wafab::before{content:"";position:absolute;inset:0;border-radius:50%;border:2px solid #25d366;animation:eogWaPulse 2.4s ease-out infinite;pointer-events:none}
.eog-wafab:hover{transform:translateY(-3px) scale(1.04);box-shadow:0 14px 32px rgba(37,211,102,.5),0 2px 6px rgba(0,0,0,.3);color:#fff}
.eog-wafab:focus-visible{outline:3px solid #fff;outline-offset:3px}
@keyframes eogWaPulse{0%{transform:scale(1);opacity:.7}100%{transform:scale(1.55);opacity:0}}
@media(max-width:640px){.eog-wafab{right:14px;bottom:14px;width:54px;height:54px}}
@media(prefers-reduced-motion:reduce){.eog-wafab::before{animation:none;opacity:0}}
/* page-level floating buttons (back-to-top on /gift-cards) sit above it */
.eog-fab{bottom:92px!important;right:24px!important;left:auto!important}
/* top menu section links (top-ups, streaming, chat) */
.eog-menu__list > li > a.eogm-link{display:inline-flex;align-items:center;gap:7px}
.eogm-emoji{font-size:15px;line-height:1}

/* section mega menus: brand logo in the tab, amounts for one-region brands */
.eogm-logo{width:22px;height:22px;border-radius:7px;background:var(--t,var(--eog-accent));display:inline-grid;place-items:center;flex:0 0 auto;overflow:hidden}
.eogm-logo img{width:14px;height:14px;object-fit:contain}
.eogm-amt{justify-content:space-between}
.eogm-amt small{color:var(--eog-muted);font-weight:600;white-space:nowrap}
/* every section menu opens under the menu bar (not under its own item) so later items never run off-screen */
@media (min-width: 921px) {
    .eog-menu__list { position: relative; }
    .eog-menu__list > .eog-menu__item--haspanel { position: static; }
    .eog-menu__list > .eog-menu__item--haspanel > .eogm-panel { inset-inline-start: 0; left: auto; right: auto; }
    [dir="ltr"] .eog-menu__list > .eog-menu__item--haspanel > .eogm-panel { left: 0; }
    [dir="rtl"] .eog-menu__list > .eog-menu__item--haspanel > .eogm-panel { right: 0; }
}
/* desktop mega menus are opened/closed by eog-layout.js with a small delay (hover intent), so moving the mouse
   down into the panel — or diagonally across another menu item — never closes it */
@media (min-width: 992px) {
    .eog-menu.eogm-js .eog-menu__item--haspanel:hover .eog-panel { display: none; }
    .eog-menu.eogm-js .eog-menu__item--haspanel.is-hover .eog-panel { display: block; }
    .eogm-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -26px; height: 26px; }   /* bridge over the gap */
}
/* announcement bar + footer social icons (edited in the dashboard) */
.eog-announce{background:var(--ann,#1560fa);color:#fff;text-align:center;font-size:13.5px;font-weight:700;padding:8px 16px}
.eog-announce a{color:#fff}
.eog-announce a:hover{text-decoration:underline}
.eog-footer__social{display:flex;gap:10px;flex-wrap:wrap;align-items:flex-start;align-content:flex-start}
.eog-footer__social a{width:38px;height:38px;border-radius:12px;border:1px solid var(--eog-line);display:grid;place-items:center;transition:border-color .2s,transform .2s}
.eog-footer__social a:hover{border-color:var(--eog-accent);transform:translateY(-2px)}

/* header menu: gold neon "Gift cards", section icons, bar centred under the search box (offset set by eog-layout.js) */
.eog-menu__list > li > a.eogm-gold{color:#ffd54a;border:1px solid rgba(255,206,64,.75);background:linear-gradient(180deg,rgba(255,206,64,.14),rgba(255,170,0,.06));
  box-shadow:0 0 8px rgba(255,200,40,.45),0 0 18px rgba(255,170,0,.22),inset 0 0 10px rgba(255,200,40,.14);text-shadow:0 0 8px rgba(255,210,70,.55);animation:eogGold 2.8s ease-in-out infinite}
.eog-menu__list > li > a.eogm-gold:hover,.eog-menu__item--haspanel.is-hover > a.eogm-gold{color:#fff3c4;background:linear-gradient(180deg,rgba(255,206,64,.24),rgba(255,170,0,.1));
  box-shadow:0 0 12px rgba(255,200,40,.7),0 0 28px rgba(255,170,0,.4),inset 0 0 12px rgba(255,200,40,.2)}
.eogm-gold .eogm-ico{filter:drop-shadow(0 0 4px rgba(255,200,40,.8))}
@keyframes eogGold{0%,100%{box-shadow:0 0 8px rgba(255,200,40,.45),0 0 18px rgba(255,170,0,.22),inset 0 0 10px rgba(255,200,40,.14)}50%{box-shadow:0 0 12px rgba(255,200,40,.65),0 0 26px rgba(255,170,0,.35),inset 0 0 12px rgba(255,200,40,.2)}}
@media(prefers-reduced-motion:reduce){.eog-menu__list > li > a.eogm-gold{animation:none}}
.eogm-link .eogm-ico{width:18px;height:18px;color:#8fb3ff}
@media (min-width: 921px) {
    .eog-menu { position: relative; }
    .eog-menu__list { position: static; width: max-content; max-width: 100%; }
}
@media (min-width: 921px) {   /* mega panels centred under the menu bar (margin auto — the fade-in animation owns transform) */
    .eog-menu .eog-menu__list > .eog-menu__item--haspanel > .eogm-panel { left: 0 !important; right: 0 !important; margin-inline: auto; }
}

/* header search suggestions */
.eog-header .eog-search{position:relative;overflow:visible}
.eog-sug{position:absolute;top:calc(100% + 6px);left:0;right:0;z-index:80;max-height:min(70vh,520px);overflow-y:auto;padding:6px;background:var(--eog-bg2,#101624);border:1px solid var(--eog-line);border-radius:14px;box-shadow:0 24px 60px rgba(0,0,0,.55)}
.eog-sug__h{padding:8px 10px 4px;font-size:11.5px;font-weight:700;letter-spacing:.4px;text-transform:uppercase;color:var(--eog-muted)}
.eog-sug__row{display:flex;align-items:center;gap:11px;padding:8px 10px;border-radius:10px;color:inherit;text-decoration:none}
.eog-sug__row:hover,.eog-sug__row.is-on{background:rgb(var(--eog-accent-rgb) / .12)}
.eog-sug__logo{width:34px;height:34px;flex:none;border-radius:9px;background:var(--t);display:grid;place-items:center;overflow:hidden;color:#fff;font-weight:800}
.eog-sug__logo img{width:22px;height:22px;object-fit:contain}
.eog-sug__txt{flex:1;min-width:0;display:flex;flex-direction:column}
.eog-sug__t{font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.eog-sug__t b{color:var(--eog-accent);font-weight:800}
.eog-sug__txt small{font-size:12px;color:var(--eog-muted)}
.eog-sug__price{font-size:13.5px;font-weight:800;white-space:nowrap;color:#7ee2a8}
.eog-sug__price.is-oos{color:var(--eog-muted);font-weight:600;font-size:12px}
.eog-sug__go{color:var(--eog-muted);font-size:18px}
[dir="rtl"] .eog-sug__go{transform:scaleX(-1)}
.eog-sug__none{padding:12px 10px;color:var(--eog-muted);font-size:13.5px}
.eog-sug__all{justify-content:center;margin-top:4px;border-top:1px solid var(--eog-line);border-radius:0 0 10px 10px;font-size:13.5px;font-weight:700;color:var(--eog-accent)}

/* mega panels never taller than the window: fixed height from eog-layout.js (--eogm-h), columns scroll inside */
@media (min-width: 992px) {
    .eogm-panel { max-height: var(--eogm-h, calc(100vh - 210px)); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }   /* touch / no-JS fallback */
    .eog-menu.eogm-js .eog-menu__item--haspanel.is-hover > .eogm-panel { display: flex; flex-direction: column; max-height: var(--eogm-h, calc(100vh - 170px)); overflow: hidden; }
    .eog-menu.eogm-js .eogm-panel > .eogm-strip { flex: none; }
    .eog-menu.eogm-js .eogm-panel > .eogm-cols { flex: 1 1 auto; min-height: 0; grid-template-rows: minmax(0, 1fr); }
    .eog-menu.eogm-js .eogm-panel .eogm-left,
    .eog-menu.eogm-js .eogm-panel .eogm-right { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgb(var(--eog-accent-rgb) / .45) transparent; padding-inline-end: 6px; }
    .eog-menu.eogm-js .eogm-panel .eogm-right { min-height: 0; }
    /* short windows (laptops, zoomed browsers): a slimmer header strip */
    @media (max-height: 760px) { .eogm-strip { padding: 9px 14px; margin-bottom: 10px; } .eogm-strip__txt small { display: none; } }
}
/* phones: comfortable tap targets (≥ 40px) for small links and icon buttons */
@media (max-width: 640px) {
    .eog-header .eog-acct { min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }
    .gcp-all, .tpq-more, .rgc-qb__all { display: inline-flex; align-items: center; min-height: 40px; padding: 0 4px; }
    .rgc-link { display: inline-flex; align-items: center; min-height: 40px; padding: 0 6px; }
    .eog-prose li > a:only-child { display: inline-block; padding: 8px 0; }
}
/* page width like the reference store: 1400px up to ~1920px screens, then ~71% of the screen (max 2400px) */
:root { --eog-max: min(2400px, max(1400px, 71vw)); }
.eog-wrap { max-width: var(--eog-max); }
.eogm-panel { width: min(calc(var(--eog-max) - 32px), 96vw); }

/* mega-menu placeholder until the panels arrive (first hover / tap) */
.eogm-lazy{min-height:140px;display:none}
.eogm-loading{display:block;width:28px;height:28px;margin:50px auto;border-radius:50%;border:3px solid rgb(var(--eog-accent-rgb) / .25);border-top-color:var(--eog-accent);animation:eogSpin .8s linear infinite}
@keyframes eogSpin{to{transform:rotate(360deg)}}

/* header account menu (signed-in customers) */
.eog-acctmenu { position: relative; }
.eog-acctmenu .eog-acct { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; }
.eog-acct__caret { font-size: 10px; opacity: .7; }
.eog-acctmenu__pop { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 210px; z-index: 60;
    display: flex; flex-direction: column; padding: 6px; border: 1px solid var(--eog-line); border-radius: 12px;
    background: var(--eog-card, #121826); box-shadow: 0 12px 32px rgba(0,0,0,.35); }
.eog-acctmenu__pop[hidden] { display: none; }
.eog-acctmenu__who { padding: 8px 12px 6px; font-size: 12.5px; color: var(--eog-muted, #9aa3b2); border-bottom: 1px solid var(--eog-line); margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eog-acctmenu__pop a, .eog-acctmenu__pop button { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 42px; padding: 0 12px;
    border: 0; border-radius: 8px; background: none; color: var(--eog-text); font: inherit; font-size: 14px; text-align: start; text-decoration: none; cursor: pointer; }
.eog-acctmenu__pop a:hover, .eog-acctmenu__pop button:hover, .eog-acctmenu__pop a:focus-visible, .eog-acctmenu__pop button:focus-visible { background: rgba(255,255,255,.06); outline: none; }
.eog-acctmenu__pop form { margin: 0; }
@media (max-width: 640px) { .eog-acct__caret { display: none; } }

/* combined regions ("EU/TR", "MY/SG"): small overlapping flags */
.eogm-flag.is-multi{width:16px;height:12px}
.eogm-flag.is-multi + .eogm-flag.is-multi{margin-inline-start:-6px;box-shadow:0 0 0 1.5px var(--eog-card,#111a2c)}

.eog-footer__credit{display:block;margin-top:6px;font-size:11.5px;color:var(--eog-muted)}
.eog-footer__credit a{color:inherit;text-decoration:underline}

/* currency icons (eog-layout.js) */
.eog-cur{display:inline-block;width:1em;height:1em;vertical-align:-.14em;margin-inline-end:.28em;flex:0 0 auto;line-height:0}
.eog-cur svg{width:100%;height:100%;display:block}
.rgc-amt__face .eog-cur{width:.85em;height:.85em;margin-inline-end:.2em}
.rgc-card__face .eog-cur{width:.72em;height:.72em;vertical-align:.02em;margin-inline-end:.18em}
@media(max-width:480px){.rgc-amt .rgc-amt__face{white-space:normal;overflow:visible;text-overflow:clip;line-height:1.25;font-size:13px}}
