/* EgyGamer product page (approved mockup 2026-12-06). Scoped to body.eg-pdp. Logical properties only (the Arabic theme has no dir="rtl"). */
.eg-pdp {
    --eg-blue: #034ea2; --eg-blue-d: #053879; --eg-blue-l: #e8f0fa; --eg-blue-xl: #f6fbff;
    --eg-yellow: #ffcb08; --eg-yellow-l: #fff6cc;
    --eg-ink: #121826; --eg-ink-2: #4b5563; --eg-ink-3: #8a94a6; --eg-line: #e3e8ef; --eg-bg: #f3f5f8;
    --eg-green: #14894b; --eg-green-l: #e6f5ec; --eg-red: #b42318; --eg-red-l: #fdecea; --eg-amber: #b45309;
}
.eg-pdp [hidden], .eg-pdp .eg-hide { display: none !important; }

/* ---------- buy box column ---------- */
.eg-pdp .product-info-main { display: flex; flex-direction: column; gap: 14px; color: var(--eg-ink); }
.eg-pdp .product-info-main > * { margin-top: 0; margin-bottom: 0; }
.eg-pdp .product-info-main .eg-ptop { order: -2; }
.eg-pdp .product-info-main .page-title-wrapper { order: -1; }
.eg-pdp .page-title-wrapper.product .page-title { margin: 0; font-size: 28px; line-height: 1.2; font-weight: 800; color: var(--eg-ink); }

.eg-ptop { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; font-size: 12px; color: var(--eg-ink-2); }
.eg-ptop__plat { background: #000; color: #fff; border-radius: 6px; padding: 2px 8px; font-weight: 800; font-size: 11px; letter-spacing: .02em; }
.eg-ptag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11px; font-weight: 800; }
.eg-ptag--b { background: var(--eg-blue); color: #fff; }
.eg-ptag--g { background: var(--eg-green-l); color: var(--eg-green); }
.eg-ptag--w { background: var(--eg-yellow-l); color: #6b4e00; }

.eg-pmeta { display: flex; flex-direction: column; gap: 12px; }
.eg-prate { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--eg-ink-2); }
.eg-prate a { font-weight: 600; color: var(--eg-blue); }
.eg-stars { color: #f5a623; letter-spacing: 1px; }
.eg-stars--off { color: #cfd6e0; }
.eg-popt b { display: block; font-size: 12px; color: var(--eg-ink-2); margin-bottom: 6px; }
.eg-seg { display: flex; flex-wrap: wrap; gap: 8px; }
.eg-seg__i, a.eg-seg__i, a.eg-seg__i:visited, a.eg-seg__i:hover {
    min-width: 92px; border: 1.5px solid var(--eg-line); border-radius: 10px; padding: 8px 12px; color: var(--eg-ink);
    display: flex; flex-direction: column; font-weight: 700; font-size: 13px; line-height: 1.3; text-decoration: none; background: #fff;
}
a.eg-seg__i:hover { border-color: var(--eg-blue); }
.eg-seg__i small { font-weight: 600; color: var(--eg-ink-3); font-size: 11px; }
.eg-seg__i.is-on { border-color: var(--eg-blue); background: var(--eg-blue-xl); box-shadow: 0 0 0 1px var(--eg-blue) inset; }
.eg-seg__i.is-on small { color: var(--eg-blue); }
.eg-seg__i.is-off { opacity: .6; border-style: dashed; }
.eg-pcond { display: flex; gap: 10px; align-items: center; border: 1px solid var(--eg-line); border-radius: 12px; padding: 10px 12px; background: var(--eg-blue-xl); font-size: 12px; color: var(--eg-ink-2); }
.eg-pcond b { display: block; font-size: 13px; color: var(--eg-ink); }
.eg-pcond__ic { flex: none; width: 32px; height: 32px; border-radius: 8px; background: var(--eg-blue); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 900; }
.eg-pwarn { background: var(--eg-yellow-l); border: 1px solid #f3dc85; border-radius: 10px; padding: 9px 12px; font-size: 12px; color: #6b4e00; }

/* price + one-line status */
.eg-pdp .product-info-main .product-info-price { display: block; width: auto; border: 0; margin: 0; padding: 0; }
.eg-pdp .product-info-main .product-info-price .price-box { display: flex; align-items: flex-end; gap: 4px 12px; flex-wrap: wrap; padding: 0; margin: 0; width: auto; }
.eg-pdp .product-info-main .price-box .price-container > span, .eg-pdp .product-info-main .price-box .price-wrapper { display: inline; margin: 0; }
.eg-pdp .product-info-main .price-box .price { font-size: 32px; line-height: 1; font-weight: 800; color: var(--eg-ink); }
.eg-pdp .product-info-main .price-box .old-price .price { font-size: 15px; font-weight: 400; color: var(--eg-ink-3); text-decoration: line-through; }
.eg-pdp .product-info-main .price-box .old-price .price-label, .eg-pdp .product-info-main .price-box .special-price .price-label { display: none; }
.eg-pline { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 13px; }
.eg-pline__br { flex-basis: 100%; height: 0; }
.eg-psave { background: var(--eg-red-l); color: var(--eg-red); font-weight: 800; font-size: 12px; border-radius: 6px; padding: 3px 8px; }
.eg-psave--g { background: var(--eg-green-l); color: var(--eg-green); }
.eg-psave + .eg-pline__br { display: none; }
.eg-pline > .eg-psave { order: -1; }
.eg-pst { font-weight: 700; }
.eg-pst.is-in { color: var(--eg-green); }
.eg-pst.is-low { color: var(--eg-amber); }
.eg-pst.is-out { color: var(--eg-red); }
.eg-pst.is-pre { color: var(--eg-blue); }
.eg-ppts { display: inline-flex; align-items: center; gap: 5px; background: var(--eg-yellow-l); color: #7a5b00; border-radius: 999px; padding: 3px 10px; font-weight: 700; font-size: 12px; }
.eg-pline .product.alert { margin: 0; }
.eg-pline .product.alert a.action.alert, .eg-pline .product.alert a.action.alert:visited { font-size: 12px; font-weight: 700; color: var(--eg-blue); text-decoration: none; }
.eg-pline .product.alert a.action.alert:hover { text-decoration: underline; }
.eg-pline .product.alert a.action.alert::before { content: "🔔 "; }

/* instalments: one compact row (the modal behind it is unchanged) */
.eg-pdp .product-info-main .egygamer-bnpl { margin: 0; padding: 10px 14px; box-shadow: none; border: 1px solid var(--eg-line); border-radius: 12px; background: #fff; display: flex; align-items: center; gap: 10px; }
.eg-pdp .product-info-main .egygamer-bnpl .pips,
.eg-pdp .product-info-main .egygamer-bnpl .bnpl-chips,
.eg-pdp .product-info-main .egygamer-bnpl .bnpl-sticker { display: none; }
.eg-pdp .product-info-main .egygamer-bnpl .bnpl-main { flex: 1; min-width: 0; gap: 10px; }
.eg-pdp .product-info-main .egygamer-bnpl .bnpl-coin { width: 38px; height: 38px; transform: none; animation: none; border-width: 0; box-shadow: none; }
.eg-pdp .product-info-main .egygamer-bnpl .bnpl-headline { font-size: 14px; color: var(--eg-ink); }
.eg-pdp .product-info-main .egygamer-bnpl .bnpl-subtext { font-size: 12px; }
.eg-pdp .product-info-main .egygamer-bnpl .bnpl-foot { margin: 0; flex: none; }
.eg-pdp .product-info-main .egygamer-bnpl .bnpl-cta { font-size: 12px; font-weight: 700; color: var(--eg-blue); background: none; border: 0; box-shadow: none; padding: 0; }

/* add to cart row */
.eg-pdp .product-add-form { margin: 0; padding: 0; }
.eg-pdp .product-add-form .product-options-bottom, .eg-pdp .product-add-form .box-tocart { margin: 0; padding: 0; }
.eg-pdp .box-tocart .fieldset { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; margin: 0; width: 100%; }
.eg-pdp .box-tocart .field.qty { margin: 0; padding: 0; display: block; }
.eg-pdp .box-tocart .field.qty > .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.eg-pdp .box-tocart .field.qty .control { margin: 0; }
.eg-qty { display: flex; align-items: center; border: 1.5px solid var(--eg-line); border-radius: 10px; height: 52px; background: #fff; }
.eg-pdp .eg-qty button, .eg-pdp .eg-qty button:hover, .eg-pdp .eg-qty button:focus, .eg-pdp .eg-qty button:active {
    width: 38px; height: 100%; border: 0; background: none; box-shadow: none !important; color: var(--eg-ink-2); font-size: 20px; padding: 0; cursor: pointer; line-height: 1;
}
.eg-pdp .eg-qty button:hover { color: var(--eg-blue); }
.eg-pdp .eg-qty input.qty, .eg-pdp .eg-qty #qty { width: 34px !important; height: 100%; border: 0 !important; box-shadow: none !important; padding: 0; text-align: center; font-weight: 700; font-size: 15px; background: transparent; -moz-appearance: textfield; }
.eg-pdp .eg-qty input::-webkit-outer-spin-button, .eg-pdp .eg-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.eg-pdp .box-tocart .actions { flex: 1; display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; padding: 0; margin: 0; min-width: 200px; }
.eg-pdp .box-tocart .action.tocart, .eg-pdp .box-tocart .action.tocart:hover, .eg-pdp .box-tocart .action.tocart:focus {
    flex: 1; width: auto; height: 52px; margin: 0; padding: 0 20px; border-radius: 10px; border: 0; background: var(--eg-blue); color: #fff;
    font-size: 16px; font-weight: 800; line-height: 1; box-shadow: none; text-transform: none;
}
.eg-pdp .box-tocart .action.tocart:hover { background: var(--eg-blue-d); }
.eg-pdp .box-tocart .action.tocart[disabled] { opacity: .7; }
.eg-pdp .box-tocart .instant-purchase:empty { display: none; }
.eg-pwish, .eg-pwish:visited, .eg-pwish:hover {
    flex: none; width: 52px; height: 52px; border: 1.5px solid var(--eg-line); border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
    color: var(--eg-red); font-size: 22px; text-decoration: none; background: #fff; align-self: stretch;
}
.eg-pwish:hover { border-color: var(--eg-red); background: var(--eg-red-l); }
/* the store-check button now lives in the pick-up row */
.eg-pdp .box-tocart #modal-btn.instore-btn { display: none !important; }

/* how you get it */
.eg-ways { border: 1px solid var(--eg-line); border-radius: 12px; overflow: hidden; margin-top: 14px; }
.eg-way { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: center; padding: 11px 14px; border-top: 1px solid var(--eg-line); font-size: 13px; color: var(--eg-ink-2); }
.eg-way:first-child { border-top: 0; }
.eg-way__ic { font-size: 18px; text-align: center; }
.eg-way b { display: block; font-size: 13px; color: var(--eg-ink); }
.eg-way--pick [data-role="eg-pickup-slot"] { display: block; margin-top: 4px; }
.eg-pdp .eg-way--pick #modal-btn.instore-btn, .eg-pdp .eg-way--pick #modal-btn.instore-btn:hover, .eg-pdp .eg-way--pick #modal-btn.instore-btn:focus-visible {
    display: inline-flex; width: auto; height: auto; min-height: 0; margin: 0; padding: 0; border: 0; background: none; box-shadow: none; transform: none;
    color: var(--eg-blue); font-size: 12px; font-weight: 700; gap: 6px; text-align: start;
}
.eg-pdp .eg-way--pick #modal-btn.instore-btn:hover span:first-of-type { text-decoration: underline; }
.eg-pdp .eg-way--pick #modal-btn .instore-btn__icon { display: none; }
.eg-pdp .eg-way--pick #modal-btn .instore-btn__badge, .eg-pdp .eg-way--pick #modal-btn.instore-btn:hover .instore-btn__badge { background: var(--eg-green-l); color: var(--eg-green); padding: 1px 8px; font-size: 11px; }
.eg-redeem { margin-top: 10px; border: 1px dashed #c6d3e6; border-radius: 12px; padding: 10px 14px; background: var(--eg-blue-xl); font-size: 13px; }
.eg-redeem summary { cursor: pointer; font-weight: 700; color: var(--eg-blue); }
.eg-redeem__tx { margin-top: 8px; color: var(--eg-ink-2); line-height: 1.6; }

/* trade-in banner */
.eg-trade { margin: 14px 0 0; background: linear-gradient(135deg, #053879, #034ea2); color: #fff; border-radius: 12px; padding: 12px 16px; font-size: 13px; }
.eg-trade__row { display: flex; align-items: center; gap: 12px; }
.eg-trade__ic { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--eg-yellow); color: var(--eg-blue-d); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 18px; }
.eg-trade__tx { flex: 1; min-width: 0; }
.eg-trade__tx b { display: block; font-size: 14px; }
.eg-trade__tx span { font-size: 12px; opacity: .85; }
.eg-pdp .eg-trade button.eg-trade__btn, .eg-pdp .eg-trade button.eg-trade__btn:hover, .eg-pdp .eg-trade button.eg-trade__btn:focus {
    flex: none; background: var(--eg-yellow); color: var(--eg-blue-d); border: 0; border-radius: 8px; padding: 8px 14px; font-weight: 800; font-size: 13px; box-shadow: none !important; white-space: nowrap; cursor: pointer;
}
.eg-pdp .eg-trade button.eg-trade__btn:hover { background: #ffd630; }
.eg-pdp .eg-trade button.eg-trade__btn[disabled] { opacity: .7; }
.eg-trade__ok { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; background: rgba(255,255,255,.14); border-radius: 8px; padding: 7px 10px; font-weight: 700; }
.eg-trade__ok a, .eg-trade__ok a:visited, .eg-trade__ok a:hover { margin-inline-start: auto; color: #fff; text-decoration: underline; }
.eg-trade__err { margin: 8px 0 0; color: #ffd0cb; font-weight: 700; }
.eg-trade__note { margin: 8px 0 0; font-size: 11.5px; opacity: .75; }
.eg-trade__note a, .eg-trade__note a:visited, .eg-trade__note a:hover { color: #fff; text-decoration: underline; }

/* trust row */
.eg-trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; font-size: 12px; color: var(--eg-ink-2); margin-top: 14px; }
.eg-trust span { display: flex; gap: 6px; align-items: center; background: var(--eg-bg); border-radius: 8px; padding: 8px 10px; }

/* ---------- below the fold ---------- */
.eg-below { clear: both; margin-top: 10px; }
.eg-jump { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--eg-line); margin: 0 -10px; }
.eg-jump__in { display: flex; gap: 6px; align-items: center; padding: 10px; overflow-x: auto; }
.eg-jump a, .eg-jump a:visited, .eg-jump a:hover { padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: 13px; color: var(--eg-ink-2); text-decoration: none; white-space: nowrap; }
.eg-jump a:hover { background: var(--eg-bg); }
.eg-jump a.is-on { background: var(--eg-blue); color: #fff; }
.eg-jump__mini { margin-inline-start: auto; display: flex; align-items: center; gap: 12px; opacity: 0; pointer-events: none; transition: opacity .2s; }
.eg-pdp--past .eg-jump__mini { opacity: 1; pointer-events: auto; }
.eg-jump__mini b { font-size: 16px; white-space: nowrap; }
.eg-pdp button.eg-jump__buy, .eg-pdp button.eg-jump__buy:hover, .eg-pdp button.eg-jump__buy:focus {
    height: 38px; padding: 0 18px; border-radius: 8px; border: 0; background: var(--eg-blue); color: #fff; font-weight: 800; font-size: 14px; box-shadow: none; white-space: nowrap;
}
.eg-sec { padding-top: 28px; scroll-margin-top: 64px; }
.eg-sec h2 { font-size: 20px; margin: 0 0 12px; font-weight: 800; color: var(--eg-ink); }
.eg-sec--two { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; }
.eg-sec--two > :only-child { grid-column: 1 / -1; }
.eg-about__tx { color: var(--eg-ink-2); line-height: 1.65; font-size: 14px; }
.eg-about__tx.is-clamp { max-height: 220px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.eg-about__tx img { max-width: 100%; height: auto; }
.eg-pdp button.eg-more, .eg-pdp button.eg-more:hover, .eg-pdp button.eg-more:focus { margin-top: 6px; padding: 0; border: 0; background: none; box-shadow: none; color: var(--eg-blue); font-weight: 700; font-size: 13px; }
.eg-facts { border: 1px solid var(--eg-line); border-radius: 12px; overflow: hidden; margin: 0; }
.eg-facts div { display: grid; grid-template-columns: 130px 1fr; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--eg-line); font-size: 13px; }
.eg-facts div:first-child { border-top: 0; }
.eg-facts dt { color: var(--eg-ink-3); font-weight: 400; margin: 0; }
.eg-facts dd { margin: 0; color: var(--eg-ink); font-weight: 600; overflow-wrap: anywhere; }

.eg-rev { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; border-top: 1px solid var(--eg-line); margin-top: 28px; }
.eg-rev__score { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.eg-rev__score b { font-size: 42px; font-weight: 800; line-height: 1; }
.eg-rev__score .eg-stars { font-size: 18px; }
.eg-rev__score small { flex-basis: 100%; color: var(--eg-ink-3); }
.eg-bars { margin: 12px 0 14px; }
.eg-bars div { display: grid; grid-template-columns: 30px 1fr 30px; gap: 8px; align-items: center; font-size: 12px; color: var(--eg-ink-3); margin: 4px 0; }
.eg-bars i { height: 6px; border-radius: 3px; background: var(--eg-line); position: relative; overflow: hidden; }
.eg-bars i::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: var(--w); background: #f5a623; }
.eg-rev__none { background: var(--eg-bg); border-radius: 12px; padding: 14px; color: var(--eg-ink-2); font-size: 13px; margin: 0 0 12px; }
.eg-pdp button.eg-btn-o, .eg-pdp button.eg-btn-o:hover, .eg-pdp button.eg-btn-o:focus {
    width: 100%; height: 40px; border: 1.5px solid var(--eg-blue); border-radius: 10px; background: #fff; color: var(--eg-blue); font-weight: 800; font-size: 14px; box-shadow: none;
}
.eg-pdp button.eg-btn-o:hover { background: var(--eg-blue-xl); }
.eg-rev__list .block.review-list .block-title, .eg-rev__list .review-toolbar:empty { display: none; }
.eg-rev__list .block { margin-bottom: 18px; }
.eg-rev__list .review-items { margin: 0; padding: 0; }
.eg-rev__list .review-item { border-bottom: 1px solid var(--eg-line); padding: 12px 0; margin: 0; }
.eg-rev__list .review-title { font-size: 14px; font-weight: 800; margin: 0 0 4px; }
.eg-rev__list .review-content { font-size: 13px; color: var(--eg-ink-2); margin-bottom: 4px; }
.eg-rev__list .review-details { font-size: 12px; color: var(--eg-ink-3); }
.eg-rev__list .review-add { border: 1px solid var(--eg-line); border-radius: 12px; padding: 16px; scroll-margin-top: 70px; }
.eg-rev__list .review-add .block-title strong { font-size: 16px; font-weight: 800; }
.eg-rev__list .review-add .review-legend { margin-bottom: 10px; }
.eg-rev__list #product-review-container:empty { display: none; }
.eg-pdp .eg-rev__list .review-add .action.submit, .eg-pdp .eg-rev__list .review-add .action.submit:hover {
    height: 42px; padding: 0 22px; border: 0; border-radius: 10px; background: var(--eg-blue); color: #fff; font-weight: 800; font-size: 14px; box-shadow: none;
}
.eg-pdp .eg-rev__list .review-add .action.submit:hover { background: var(--eg-blue-d); }

.eg-also { border-top: 1px solid var(--eg-line); margin-top: 28px; }
.eg-also__row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.eg-pc, .eg-pc:visited, .eg-pc:hover { display: flex; flex-direction: column; border: 1px solid var(--eg-line); border-radius: 10px; overflow: hidden; color: var(--eg-ink); text-decoration: none; background: #fff; }
.eg-pc:hover { border-color: var(--eg-blue); box-shadow: 0 4px 14px rgba(3, 78, 162, .1); }
.eg-pc__img { display: block; padding: 8px; }
.eg-pc__img .product-image-container { display: block; width: 100% !important; }
.eg-pc__img img { max-width: 100%; height: auto; }
.eg-pc__nm { padding: 0 10px; font-size: 13px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.eg-pc b { padding: 6px 10px 10px; font-size: 14px; }

/* ---------- phones ---------- */
@media (max-width: 767px) {
    .eg-pdp .page-title-wrapper.product .page-title { font-size: 21px; }
    .eg-pdp .product-info-main .price-box .price { font-size: 26px; }
    .eg-seg__i, a.eg-seg__i { min-width: 0; flex: 1; }
    .eg-trust { grid-template-columns: 1fr 1fr 1fr; font-size: 11px; }
    .eg-trust span { padding: 7px 6px; }
    .eg-trade__row { flex-wrap: wrap; }
    .eg-pdp .eg-trade button.eg-trade__btn { width: 100%; }
    .eg-jump { margin: 0 -15px; }
    .eg-jump__in { padding: 8px 15px; }
    /* mini price + button become a bottom bar */
    .eg-jump__mini { position: fixed; inset-inline: 0; bottom: 0; z-index: 30; margin: 0; padding: 10px 14px 14px; background: #fff; border-top: 1px solid var(--eg-line); box-shadow: 0 -6px 20px rgba(0,0,0,.08); }
    .eg-jump__mini b { font-size: 17px; }
    .eg-pdp button.eg-jump__buy { flex: 1; height: 46px; }
    .eg-pdp--past .page-footer { padding-bottom: 72px; }
    /* keep the chat bubble above the bottom bar */
    #min-widget { transition: transform .2s; }
    .eg-pdp--past #min-widget { transform: translateY(-70px); }
    .eg-sec--two, .eg-rev { grid-template-columns: 1fr; gap: 20px; }
    .eg-also__row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; padding-bottom: 6px; }
    .eg-pc { flex: 0 0 42%; scroll-snap-align: start; }
    .eg-facts div { grid-template-columns: 110px 1fr; }
}
