/* Lalezar (SIL Open Font License), served from the site itself. */
@font-face { font-family: "Lalezar"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/lalezar-arabic-400-normal.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Lalezar"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/lalezar-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* =====================================================================
   El Basha Games, home: "Arcade Palace"
   Royal ink + brass. The one loud thing is the stage of big product art;
   everything below it stays calm so the pictures do the selling.
   ===================================================================== */
.ap {
    --ap-ink: #161b45;
    --ap-ink-2: #222a66;
    --ap-indigo: #4b3bff;
    --ap-brass: #f5b83d;
    --ap-brass-2: #ffd679;
    --ap-mint: #10b981;
    --ap-coral: #ff5c6c;
    --ap-paper: #f4f5fb;
    --ap-text: #151a33;
    --ap-muted: #6a7194;
    --ap-line: #e3e6f2;
    --ap-display: "Lalezar", "Alexandria", system-ui, sans-serif;
    max-width: 1240px;
    margin: 0 auto;
    padding: 14px 16px 40px;
    color: var(--ap-text);
}
.ap *, .ap *::before, .ap *::after { box-sizing: border-box; }
.ap svg { width: 20px; height: 20px; flex: none; }
.ap a { color: inherit; text-decoration: none; }
.ap :focus-visible { outline: 3px solid var(--ap-indigo); outline-offset: 3px; border-radius: 12px; }
.ap-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- buttons ---------- */
.ap-btn { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 20px; border-radius: 14px; font-weight: 800; font-size: 15px; white-space: nowrap; }
.ap-btn-brass { background: linear-gradient(180deg, var(--ap-brass-2), var(--ap-brass)); color: var(--ap-ink); box-shadow: 0 10px 24px rgba(245, 184, 61, .35), inset 0 -2px 0 rgba(0, 0, 0, .12); }
.ap-btn-brass:hover { filter: brightness(1.05); }

/* ---------- stage ---------- */
.ap-stage { position: relative; margin: 0 -16px; }
.ap-stage-track {
    display: grid; grid-auto-flow: column; grid-auto-columns: calc(100% - 44px); gap: 12px;
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 22px; padding: 0 22px 4px;
    scrollbar-width: none; overscroll-behavior-x: contain;
}
.ap-stage-track::-webkit-scrollbar { display: none; }
.ap-slide {
    position: relative; isolation: isolate; overflow: hidden; scroll-snap-align: center;
    min-height: 300px; border-radius: 28px; background: var(--ap-ink); color: #fff;
    display: grid; grid-template-columns: 1fr; align-items: end;
}
.ap-glow { position: absolute; inset: -30%; z-index: -2; display: block; filter: blur(48px) saturate(1.7) brightness(.85); opacity: .95; }
.ap-glow img { width: 100%; height: 100%; object-fit: cover; }
.ap-slide::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(14, 17, 48, .92) 0%, rgba(14, 17, 48, .55) 45%, rgba(14, 17, 48, .1) 100%); }
.ap-slide-copy { position: relative; display: grid; justify-items: start; gap: 8px; padding: 0 22px 22px; }
.ap-slide h2 { margin: 0; font-family: var(--ap-display); font-weight: 400; font-size: 38px; line-height: 1.05; letter-spacing: 0; text-wrap: balance; }
.ap-slide p { margin: 0 0 6px; color: rgba(255, 255, 255, .86); font-size: 15px; font-weight: 600; }
.ap-badge { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: rgba(245, 184, 61, .18); color: var(--ap-brass-2); font-size: 12.5px; font-weight: 800; border: 1px solid rgba(245, 184, 61, .45); }
.ap-badge svg { width: 16px; height: 16px; }
.ap-slide-art { position: absolute; z-index: -1; top: 18px; inset-inline-end: 18px; width: 52%; max-width: 270px; aspect-ratio: 1; display: grid; place-items: center; }
.ap-slide-art img { width: 100%; height: 100%; object-fit: contain; transform: rotate(-5deg); filter: drop-shadow(0 22px 30px rgba(0, 0, 0, .45)); }
.ap-slide-photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.ap-dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.ap-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: #c9cde4; cursor: pointer; transition: width .25s, background .25s; }
.ap-dots button[aria-selected="true"] { width: 26px; background: var(--ap-brass); }

/* ---------- search ---------- */
.ap-search { position: relative; z-index: 5; display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 8px; margin: 16px 0 0; padding: 6px 6px 6px 6px; padding-inline-start: 16px; border-radius: 18px; background: #fff; border: 1px solid var(--ap-line); box-shadow: 0 14px 34px rgba(22, 27, 69, .08); }
.ap-search-ico { color: var(--ap-muted); display: grid; }
.ap-search input { min-width: 0; height: 46px; border: 0; outline: 0; background: transparent; font: inherit; font-size: 15px; color: var(--ap-text); }
.ap-search button { height: 46px; padding: 0 20px; border: 0; border-radius: 13px; background: var(--ap-indigo); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.ap-suggest { position: absolute; top: calc(100% + 8px); inset-inline: 0; display: grid; gap: 2px; padding: 8px; border-radius: 18px; background: #fff; border: 1px solid var(--ap-line); box-shadow: 0 24px 50px rgba(22, 27, 69, .16); }
.ap-suggest a { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; }
.ap-suggest a:hover, .ap-suggest a:focus { background: var(--ap-paper); }
.ap-suggest img, .ap-suggest i { width: 42px; height: 42px; border-radius: 10px; object-fit: contain; background: var(--ap-paper); }
.ap-suggest small { color: var(--ap-muted); font-weight: 700; }

/* ---------- quick sections ---------- */
.ap-quick { display: grid; grid-auto-flow: column; grid-auto-columns: 104px; gap: 10px; margin: 16px -16px 0; padding: 4px 16px 8px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.ap-quick::-webkit-scrollbar { display: none; }
.ap-quick a { scroll-snap-align: start; display: grid; justify-items: center; gap: 6px; padding: 12px 6px; border-radius: 20px; background: #fff; border: 1px solid var(--ap-line); text-align: center; }
.ap-quick a:hover { border-color: hsl(var(--h) 70% 70%); }
.ap-quick-ico { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 17px; color: #fff; background: linear-gradient(145deg, hsl(var(--h) 85% 62%), hsl(calc(var(--h) + 35) 80% 45%)); box-shadow: 0 10px 20px hsl(var(--h) 80% 50% / .3); }
.ap-quick-ico svg { width: 26px; height: 26px; }
.ap-quick b { font-size: 12.5px; line-height: 1.3; font-weight: 800; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ap-quick small { color: var(--ap-muted); font-size: 11px; font-weight: 600; }

/* ---------- blocks & headers ---------- */
.ap-block { margin-top: 34px; }
.ap-narrow { max-width: 820px; margin-inline: auto; }
.ap-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; margin-bottom: 14px; }
.ap-head h2 { margin: 0; font-family: var(--ap-display); font-weight: 400; font-size: 27px; line-height: 1.1; letter-spacing: 0; }
.ap-head p { margin: 2px 0 0; color: var(--ap-muted); font-size: 13px; }
.ap-head-ico { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 15px; color: #fff; background: linear-gradient(145deg, hsl(var(--h) 85% 60%), hsl(calc(var(--h) + 35) 80% 44%)); }
.ap-head-ico svg { width: 24px; height: 24px; }
.ap-more { display: inline-flex; align-items: center; gap: 4px; height: 38px; padding: 0 12px 0 10px; border-radius: 12px; background: #eceaff; color: var(--ap-indigo); font-size: 13px; font-weight: 800; white-space: nowrap; }
.ap-more svg { width: 17px; height: 17px; }
.ap-empty { padding: 26px; border-radius: 20px; background: #fff; border: 1px dashed var(--ap-line); color: var(--ap-muted); text-align: center; }

/* ---------- picture plate (shared by every tile) ---------- */
.ap-plate { position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center; aspect-ratio: 1; border-radius: 22px; background: hsl(var(--h) 55% 90%); }
.ap-plate .ap-glow { inset: -35%; filter: blur(26px) saturate(1.8); opacity: .9; }
.ap-plate-img { position: relative; width: 100%; height: 100%; object-fit: contain; padding: 13%; filter: drop-shadow(0 12px 16px rgba(0, 0, 0, .28)); transition: transform .3s ease; }
.ap-plate-letter { font-family: var(--ap-display); font-style: normal; font-size: 54px; color: hsl(var(--h) 55% 32%); }
.ap-chip { position: absolute; bottom: 8px; inset-inline-start: 8px; display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: 99px; background: rgba(255, 255, 255, .92); color: var(--ap-text); font-style: normal; font-size: 11px; font-weight: 800; }
.ap-chip svg { width: 13px; height: 13px; }
a:hover > .ap-plate .ap-plate-img { transform: scale(1.05) rotate(-2deg); }

/* ---------- best sellers ---------- */
.ap-top { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ap-prod { display: grid; gap: 8px; padding: 8px 8px 10px; border-radius: 26px; background: #fff; border: 1px solid var(--ap-line); height: 100%; align-content: start; }
.ap-prod > b { padding: 0 4px; font-size: 14px; line-height: 1.45; font-weight: 800; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
.ap-rank { position: absolute; top: 8px; inset-inline-start: 8px; display: inline-flex; align-items: center; gap: 3px; height: 28px; min-width: 28px; justify-content: center; padding: 0 8px; border-radius: 10px; background: rgba(22, 27, 69, .86); color: #fff; font-family: var(--ap-display); font-style: normal; font-size: 17px; }
.ap-rank.is-first { background: linear-gradient(180deg, var(--ap-brass-2), var(--ap-brass)); color: var(--ap-ink); }
.ap-rank svg { width: 15px; height: 15px; }
.ap-price { display: flex; align-items: center; gap: 6px; padding: 0 4px; }
.ap-price strong { color: var(--ap-indigo); font-size: 15px; font-weight: 800; }
.ap-price s { color: var(--ap-muted); font-size: 12px; }
.ap-buy { margin-inline-start: auto; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: var(--ap-ink); color: #fff; }
.ap-buy svg { width: 17px; height: 17px; }
.ap-prod:hover .ap-buy { background: var(--ap-indigo); }

/* ---------- rails & grids of brands ---------- */
.ap-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 42%; gap: 12px; margin: 0 -16px; padding: 2px 16px 8px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; }
.ap-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ap-tile { scroll-snap-align: start; display: grid; gap: 6px; align-content: start; }
.ap-tile > b { padding: 0 2px; font-size: 14px; font-weight: 800; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ap-tile > small { padding: 0 2px; color: var(--ap-muted); font-size: 12px; }
.ap-tile > small strong { color: var(--ap-indigo); font-weight: 800; }

/* ---------- deal ---------- */
.ap-deal { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; min-height: 160px; padding: 22px; border-radius: 26px; background: var(--ap-ink); color: #fff; }
.ap-deal::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14, 17, 48, .25), rgba(14, 17, 48, .85)); }
.ap-deal-tag { position: absolute; top: 14px; inset-inline-end: 14px; height: 34px; padding: 0 12px; display: grid; place-items: center; border-radius: 11px; background: var(--ap-coral); font-family: var(--ap-display); font-size: 21px; }
.ap-deal-copy { display: grid; justify-items: start; gap: 8px; }
.ap-deal-copy small { display: inline-flex; gap: 6px; align-items: center; color: var(--ap-brass-2); font-weight: 800; }
.ap-deal-copy b { font-family: var(--ap-display); font-weight: 400; font-size: 28px; line-height: 1.15; }
.ap-deal-art { width: 120px; height: 120px; object-fit: contain; transform: rotate(6deg); filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .4)); }

/* ---------- promise ---------- */
.ap-promise { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ap-promise li { display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: 12px; padding: 14px; border-radius: 20px; background: #fff; border: 1px solid var(--ap-line); }
.ap-promise li > svg { width: 48px; height: 48px; padding: 12px; border-radius: 15px; background: #e2f8ef; color: #0c8a62; }
.ap-promise b { display: block; font-size: 15px; font-weight: 800; }
.ap-promise span { color: var(--ap-muted); font-size: 13px; }

/* ---------- faq ---------- */
.ap-faq { display: grid; gap: 8px; }
.ap-faq details { border-radius: 16px; background: #fff; border: 1px solid var(--ap-line); }
.ap-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 16px; font-weight: 800; cursor: pointer; list-style: none; }
.ap-faq summary::-webkit-details-marker { display: none; }
.ap-faq summary svg { color: var(--ap-muted); transition: transform .2s; }
.ap-faq details[open] summary svg { transform: rotate(180deg); }
.ap-faq p { margin: 0; padding: 0 16px 16px; color: var(--ap-muted); line-height: 1.8; }

/* ---------- wider screens ---------- */
@media (min-width: 700px) {
    .ap { padding-top: 20px; }
    .ap-stage { margin: 0; }
    .ap-stage-track { grid-auto-columns: 100%; padding: 0; scroll-padding-inline: 0; }
    .ap-slide { min-height: 380px; grid-template-columns: 1.1fr 1fr; align-items: center; }
    .ap-slide::after { background: linear-gradient(90deg, rgba(14, 17, 48, .15) 0%, rgba(14, 17, 48, .8) 70%); }
    html[dir="ltr"] .ap-slide::after { background: linear-gradient(270deg, rgba(14, 17, 48, .15) 0%, rgba(14, 17, 48, .8) 70%); }
    .ap-slide-copy { padding: 40px 48px; gap: 12px; }
    .ap-slide h2 { font-size: 58px; }
    .ap-slide p { font-size: 18px; }
    .ap-slide-art { position: relative; z-index: 0; inset: auto; width: 78%; max-width: 330px; justify-self: center; }
    .ap-slide-banner { grid-template-columns: 1fr; }
    .ap-quick { margin-inline: 0; padding-inline: 0; grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); overflow: visible; }
    .ap-top { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
    .ap-rail { grid-auto-columns: 180px; margin: 0; padding-inline: 0; gap: 16px; }
    .ap-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
    .ap-promise { grid-template-columns: repeat(3, 1fr); }
    .ap-head h2 { font-size: 32px; }
    .ap-deal { padding: 32px 40px; }
    .ap-deal-art { width: 170px; height: 170px; }
}
@media (max-width: 360px) {
    .ap-slide h2 { font-size: 32px; }
    .ap-rail { grid-auto-columns: 46%; }
}
@media (prefers-reduced-motion: reduce) {
    .ap *, .ap *::before, .ap *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* The old storefront sheet forces one font on every heading with !important inside a CSS layer;
   an !important in the earliest layer (ap-first, declared in the page head) wins. */
@layer ap-first {
    .ap .ap-slide h2, .ap .ap-head h2, .ap .ap-pp-copy h1, .ap .ap-cat-hero h1, .ap .ap-deal-copy b { font-family: "Lalezar", "Alexandria", system-ui, sans-serif !important; font-weight: 400 !important; }
}
