/*
Theme Name: Arodi — عروضي
Description: قالب عربي خفيف لموقع عروضي (عروض أمازون وعلي إكسبريس)، للجوال أولاً، ويعمل مع إضافة Arodi Core.
Author: فريق عروضي
Version: 1.0.3
Requires at least: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: arodi
Tags: rtl-language-support, e-commerce, custom-menu
*/

:root {
	--brand: #6d28d9;
	--brand-2: #5b21b6;
	--brand-50: #f5f3ff;
	--brand-100: #ede9fe;
	--hot: #e11d48;
	--accent: #f59e0b;
	--amz: #ff9900;
	--amz-ink: #232f3e;
	--ali: #e62e04;
	--ink: #1e1533;
	--muted: #6b6280;
	--line: #ebe7f2;
	--bg: #faf9fc;
	--card: #fff;
	--ok: #047857;
	--radius: 16px;
	--radius-sm: 10px;
	--shadow: 0 1px 2px rgba(30, 21, 51, .05), 0 8px 24px rgba(30, 21, 51, .06);
	--font: "Cairo", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.7; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-2); }
h1, h2, h3 { line-height: 1.35; margin: 0 0 .5em; }
button, input { font: inherit; }
svg { width: 1.1em; height: 1.1em; flex: none; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link { position: absolute; top: -40px; right: 8px; background: var(--brand); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 8px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.wrap--narrow { max-width: 820px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; }
.brand:hover { color: var(--ink); }
.brand__text { display: flex; flex-direction: column; font-size: 22px; line-height: 1.05; }
.brand__text small { font-size: 11px; font-weight: 600; color: var(--muted); margin-top: 3px; }
.brand--light, .brand--light:hover { color: #fff; }
.nav { margin-inline-start: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a { display: block; padding: 8px 12px; border-radius: 999px; color: var(--ink); font-weight: 600; font-size: 15px; }
.nav a:hover, .nav .current-menu-item > a { background: var(--brand-50); color: var(--brand); }
.actions { display: flex; align-items: center; gap: 6px; }
.tg-btn { display: inline-flex; align-items: center; gap: 6px; background: #229ed9; color: #fff; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; }
.tg-btn:hover { color: #fff; background: #1c8cc2; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.icon-btn svg { width: 22px; height: 22px; }
.menu-btn { display: none; }
.hsearch { display: none; padding-bottom: 12px; }
.hsearch.is-open { display: block; }
.strip { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 8px 16px; color: #fff; font-size: 14px; font-weight: 700; background: linear-gradient(90deg, var(--g1), var(--g2)); }
.strip:hover { color: #fff; filter: brightness(1.08); }
.strip b { font-weight: 800; }

/* Search forms */
.sform { display: flex; gap: 8px; }
.sform input { flex: 1; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.sform button { width: 48px; border: 0; border-radius: 12px; background: var(--brand); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }

/* Hero */
.hero { background: radial-gradient(1200px 400px at 85% -20%, #a78bfa 0, transparent 60%), linear-gradient(135deg, #4c1d95, #6d28d9 45%, #be185d); color: #fff; padding: 40px 0 34px; }
.hero__in { text-align: center; }
.hero h1 { font-size: clamp(26px, 6vw, 44px); font-weight: 800; margin-bottom: 8px; }
.hero h1 span { color: #fde68a; }
.hero p { margin: 0 auto 20px; max-width: 640px; opacity: .92; }
.hero__search { display: flex; max-width: 640px; margin: 0 auto; background: #fff; border-radius: 16px; padding: 6px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.hero__search input { flex: 1; min-width: 0; border: 0; padding: 10px 12px; font-size: 16px; outline: none; color: var(--ink); }
.hero__search button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: var(--accent); color: #1f1300; font-weight: 800; padding: 10px 18px; border-radius: 12px; cursor: pointer; }
.hero__cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }

/* Chips & buttons */
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: 14px; font-weight: 600; white-space: nowrap; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip--light { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .28); color: #fff; }
.chip--light:hover { background: rgba(255, 255, 255, .24); color: #fff; border-color: #fff; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 16px; border-radius: 12px; font-weight: 800; font-size: 15px; border: 2px solid transparent; cursor: pointer; text-align: center; }
.btn--buy { background: var(--brand); color: #fff; }
.btn--buy:hover { background: var(--brand-2); color: #fff; }
.btn--big { width: 100%; padding: 14px 18px; font-size: 17px; }
.btn--amz { background: var(--amz); color: var(--amz-ink); }
.btn--amz:hover { background: #f08804; color: var(--amz-ink); }
.btn--ghost { background: #fff; border-color: var(--line); color: var(--amz-ink); }
.btn--ghost:hover { border-color: var(--amz); color: var(--amz-ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { color: var(--brand); }
.btn--outline { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn--outline:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* Blocks */
.block { margin: 30px 0; }
.block__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.block__head h2 { font-size: 22px; font-weight: 800; margin: 0; }
.block__head > a { font-weight: 700; }
.sorts { display: flex; gap: 6px; flex-wrap: wrap; }
.empty { background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); padding: 24px; text-align: center; color: var(--muted); }
.notice { background: #fff7ed; border: 1px solid #fed7aa; border-radius: var(--radius-sm); padding: 12px 14px; margin: 16px 0; }

/* Grid & cards */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(30, 21, 51, .06), 0 14px 32px rgba(30, 21, 51, .1); }
.card__img { position: relative; display: block; aspect-ratio: 1 / 1; background: #fff; border-bottom: 1px solid var(--line); }
.card__img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.card__ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-size: 64px; background: var(--brand-50); }
.pill { position: absolute; top: 8px; right: 8px; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; color: #fff; }
.pill--ali { background: var(--ali); }
.pill--amz { background: var(--amz-ink); color: var(--amz); }
.pill--static { position: static; display: inline-block; margin-bottom: 8px; font-size: 13px; padding: 3px 10px; }
.off { position: absolute; top: 8px; left: 8px; background: var(--hot); color: #fff; font-size: 13px; font-weight: 800; padding: 2px 8px; border-radius: 8px; font-style: normal; }
.off--inline { position: static; margin-inline-start: 8px; vertical-align: middle; }
.card__body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__title { font-size: 14px; font-weight: 600; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; line-height: 1.35; }
.card__title a { color: var(--ink); }
.price { margin: 0; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price b { font-size: 19px; font-weight: 800; color: var(--ink); }
.price span { font-size: 12px; color: var(--muted); font-weight: 700; }
.price del { color: var(--muted); font-size: 13px; }
.price--na { font-size: 14px; color: var(--muted); font-weight: 700; }
.asof { margin: 0; font-size: 11px; color: var(--muted); }
.price--big b { font-size: 34px; }
.price--big span { font-size: 15px; }
.price--big del { font-size: 16px; }
.meta { margin: 0; display: flex; gap: 10px; color: var(--muted); font-size: 12px; }
.meta span { display: inline-flex; align-items: center; gap: 3px; }
.meta svg { width: 14px; height: 14px; color: var(--accent); }
.card .btn--buy { margin-top: auto; padding: 8px 10px; font-size: 14px; }
.card--amz .btn--buy { background: var(--amz); color: var(--amz-ink); }

/* Categories */
.cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 8px; text-align: center; color: var(--ink); font-weight: 700; font-size: 14px; }
.cat:hover { border-color: var(--brand); color: var(--brand); }
.cat__icon { font-size: 30px; line-height: 1; }

/* Amazon box */
.amz { background: linear-gradient(135deg, #fff7e6, #fff); border: 1px solid #fde3b0; border-radius: var(--radius); padding: 18px; margin: 30px 0; }
.amz__head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.amz__head h2 { font-size: 20px; font-weight: 800; margin: 0; }
.amz__head p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.amz__logo { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--amz-ink); color: var(--amz); font: 800 30px/42px Georgia, serif; text-align: center; }
.amz__links { display: flex; flex-wrap: wrap; gap: 8px; }
.amz__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.amz-search { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #fde3b0; border-radius: var(--radius); padding: 12px 14px; color: var(--amz-ink); font-weight: 700; margin: 16px 0; }
.amz-search .amz__logo { width: 36px; height: 36px; font-size: 24px; line-height: 34px; }

/* Seasons */
.season { margin: 24px 0; border-radius: 20px; color: #fff; background: linear-gradient(135deg, var(--g1), var(--g2)); overflow: hidden; position: relative; }
.season::after { content: ""; position: absolute; inset: auto -60px -80px auto; width: 240px; height: 240px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.season__body { position: relative; z-index: 1; padding: 22px 20px; }
.season h1, .season h2 { font-size: clamp(24px, 5vw, 36px); font-weight: 800; margin: 8px 0 6px; }
.season p { margin: 0 0 10px; opacity: .95; max-width: 720px; }
.season__dates { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.season__state { display: inline-block; font-size: 13px; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .18); }
.season__state--now { background: #22c55e; color: #052e16; }
.season__btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.seasons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mini-season { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: var(--radius); color: #fff; background: linear-gradient(135deg, var(--g1), var(--g2)); }
.mini-season:hover { color: #fff; filter: brightness(1.08); }
.mini-season small { opacity: .9; }
.tips { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.tips h2 { font-size: 20px; }
.tips ul, .how ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tips li, .how li { display: flex; gap: 10px; align-items: flex-start; }
.tips svg, .how svg { color: var(--brand); margin-top: 5px; }

/* Telegram CTA */
.tg { display: flex; flex-direction: column; gap: 14px; background: linear-gradient(135deg, #e0f2fe, #f5f3ff); border: 1px solid #bae6fd; border-radius: var(--radius); padding: 20px; margin: 30px 0; }
.tg h2 { display: flex; align-items: center; gap: 8px; font-size: 21px; font-weight: 800; margin: 0 0 4px; }
.tg h2 svg { color: #229ed9; width: 26px; height: 26px; }
.tg p { margin: 0; color: var(--muted); }
.tg__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.tg__btn { display: flex; flex-direction: column; background: #229ed9; color: #fff; padding: 10px 18px; border-radius: 14px; min-width: 180px; }
.tg__btn:hover { color: #fff; background: #1c8cc2; }
.tg__btn small { opacity: .9; font-size: 12px; }

/* Page head, crumbs */
.page-head { display: flex; gap: 14px; align-items: center; margin: 22px 0 6px; }
.page-head__icon { flex: none; width: 60px; height: 60px; border-radius: 16px; background: var(--brand-50); display: flex; align-items: center; justify-content: center; font-size: 32px; }
.page-head h1 { font-size: clamp(24px, 5vw, 34px); font-weight: 800; margin: 0; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.page-head .sform { margin-top: 10px; max-width: 520px; }
.crumbs ol { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: "‹"; margin-inline-end: 6px; }

/* Single deal */
.deal { display: grid; gap: 20px; margin: 18px 0; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 16px; }
.deal__main { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: #fff; border-radius: 14px; }
.deal__ph { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; font-size: 120px; background: var(--brand-50); border-radius: 14px; }
.deal__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.deal__thumbs button { flex: none; width: 64px; height: 64px; padding: 2px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.deal__thumbs img { width: 100%; height: 100%; object-fit: contain; }
.deal__info h1 { font-size: clamp(20px, 4vw, 28px); font-weight: 800; }
.buybox { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: grid; gap: 10px; }
.checked { margin: 0; display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 14px; }
.facts li { display: inline-flex; align-items: center; gap: 5px; }
.facts svg { color: var(--brand); }
.small { font-size: 12.5px; color: var(--muted); margin: 0; }
.deal__desc { margin-top: 12px; color: #3b3150; }

/* Prose pages */
.prose { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px 20px; margin: 18px 0 30px; }
.prose h1 { font-size: clamp(24px, 5vw, 32px); font-weight: 800; }
.prose h2 { font-size: 20px; margin-top: 1.3em; }
.ar-contact { padding-inline-start: 1.2em; }
.how { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.how h2 { font-size: 21px; font-weight: 800; }

/* Pager, 404 */
.pager ul { list-style: none; display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; padding: 0; margin: 22px 0; }
.pager a, .pager span { display: block; min-width: 40px; padding: 6px 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; text-align: center; font-weight: 700; color: var(--ink); }
.pager .current { background: var(--brand); border-color: var(--brand); color: #fff; }
.nf { text-align: center; padding: 50px 0; }
.nf__big { font-size: 72px; font-weight: 800; color: var(--brand); margin: 0; line-height: 1; }
.nf .sform { max-width: 460px; margin: 16px auto; }

/* Footer */
.site-footer { background: #160e29; color: #d6cfe6; margin-top: 40px; padding-top: 34px; }
.site-footer a { color: #fff; }
.foot { display: grid; gap: 26px; }
.foot p { margin: 10px 0; font-size: 14px; }
.foot__tg { display: flex; flex-direction: column; gap: 6px; }
.foot__tg a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.foot__links h2 { color: #fff; font-size: 16px; margin-bottom: 8px; }
.foot__links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.foot__legal { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 26px; padding: 16px; font-size: 12.5px; color: #a99fc0; }
.foot__legal p { margin: 4px 0; }

/* Larger screens */
@media (min-width: 640px) {
	.grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
	.cats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.seasons { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.tg { flex-direction: row; align-items: center; justify-content: space-between; }
	.season__body { padding: 30px 30px; }
}
@media (min-width: 960px) {
	.grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.cats { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.deal { grid-template-columns: 1fr 1.1fr; padding: 24px; gap: 32px; }
	.foot { grid-template-columns: 2fr 1fr 1fr; }
	.card__title { font-size: 15px; }
}
@media (max-width: 959px) {
	.menu-btn { display: inline-flex; }
	.nav { display: none; position: absolute; top: 100%; right: 0; left: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 14px; margin: 0; }
	.nav.is-open { display: block; }
	.nav ul { flex-direction: column; }
	.actions { margin-inline-start: auto; }
}
@media (max-width: 420px) {
	.tg-btn span { display: none; }
	.tg-btn { padding: 10px; }
	.brand__text { font-size: 20px; }
	.hero__search button span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; }
}

/* Amazon picks: no product photo until the Amazon API is open, so the placeholder carries the look. */
.card--amz .card__ph { background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 100%); }
.block--amz .block__head h2 { color: #9a3412; }

/* «الأكثر طلباً في أمازون» */
.hot__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 760px) { .hot__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hot__card { display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 1px solid #fed7aa; border-radius: 16px; background: linear-gradient(160deg, #fff 0%, #fff7ed 100%); color: var(--amz-ink); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.hot__card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(255, 153, 0, .18); }
.hot__emoji { font-size: 34px; line-height: 1; }
.hot__name { font-size: 16px; line-height: 1.4; }
.hot__hook { font-size: 13px; color: #6b7280; line-height: 1.6; flex: 1; }
.hot__cta { font-size: 13px; font-weight: 700; color: #c2410c; }
