/* Tajawal — self-hosted (was Google Fonts; local files load faster and work offline) */
@font-face { font-family: 'Tajawal'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/tajawal-arabic-400.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-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, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: 'Tajawal'; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/tajawal-arabic-700.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-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, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: 'Tajawal'; font-style: normal; font-weight: 800; font-display: swap; src: url(/assets/fonts/tajawal-arabic-800.woff2) format('woff2'); unicode-range: U+0600-06FF, U+0750-077F, U+0870-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, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC7, U+10EC9-10EEE, U+10EF0-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1; }
@font-face { font-family: 'Tajawal'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/tajawal-latin-400.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; }
@font-face { font-family: 'Tajawal'; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/tajawal-latin-700.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; }
@font-face { font-family: 'Tajawal'; font-style: normal; font-weight: 800; font-display: swap; src: url(/assets/fonts/tajawal-latin-800.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; }
/* عروض أونلاين 3rde.online — shared stylesheet (RTL, Arabic) */
:root {
  --blue: #0b5ed7;
  --blue-dark: #0a2540;
  --orange: #ff8a00;
  --orange-light: #ffb347;
  --text: #1c2733;
  --muted: #5b6b7c;
  --bg: #f4f7fb;
  --card: #ffffff;
  --border: #e2e8f0;
  --green: #15803d;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Tajawal", "Segoe UI", Tahoma, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.9;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 920px; margin: 0 auto; padding: 0 18px; }

/* ---------- header ---------- */
.site-header {
  background: var(--blue-dark);
  color: #fff;
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 10px rgba(10, 37, 64, .25);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand:hover { text-decoration: none; }
.brand img { height: 46px; width: auto; display: block; }
.brand-name { font-size: 1.35rem; font-weight: 800; line-height: 1.2; }
.main-nav { margin-inline-start: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a {
  color: #dbe7f5;
  font-weight: 700;
  font-size: .95rem;
  padding: 6px 12px;
  border-radius: 8px;
}
.main-nav a:hover, .main-nav a.active {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  text-decoration: none;
}
.nav-toggle {
  display: none;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 7px 12px;
  cursor: pointer;
  font-weight: 700;
  font-family: inherit;
  font-size: .95rem;
}

/* ---------- content ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--blue) 0%, #0a7cff 55%, var(--orange) 130%);
  color: #fff;
  padding: 34px 0 30px;
}
.page-hero h1 { margin: 0 0 6px; font-size: 1.7rem; line-height: 1.4; }
.page-hero p { margin: 0; color: #eaf2ff; }
.updated { font-size: .85rem; color: #dbe7f5; margin-top: 10px; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin: 26px 0;
  box-shadow: 0 2px 8px rgba(10, 37, 64, .05);
}
.card h2 {
  font-size: 1.25rem;
  color: var(--blue-dark);
  border-bottom: 2px solid var(--orange);
  padding-bottom: 8px;
  margin-top: 28px;
}
.card h2:first-child { margin-top: 0; }
.card h3 { font-size: 1.05rem; color: var(--blue-dark); margin-top: 22px; }
.card ul { padding-inline-start: 22px; }
.card li { margin-bottom: 6px; }

.note {
  background: #fff7e6;
  border: 1px solid #ffe1a1;
  border-inline-start: 4px solid var(--orange);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 18px 0;
}
.note strong { color: var(--blue-dark); }

table.data { width: 100%; border-collapse: collapse; margin: 14px 0; }
table.data th, table.data td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: right;
  vertical-align: top;
}
table.data th { background: #eef4fc; color: var(--blue-dark); }

/* ---------- forms ---------- */
label { display: block; font-weight: 700; margin: 14px 0 6px; }
input[type="text"], input[type="email"], input[type="number"], input[type="tel"], textarea, select {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
}
textarea { min-height: 140px; resize: vertical; }
.btn {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  border: 0;
  border-radius: 10px;
  padding: 12px 26px;
  cursor: pointer;
  margin-top: 16px;
}
.btn:hover { background: #f07d00; text-decoration: none; }
.btn-blue { background: var(--blue); }
.btn-blue:hover { background: #0a4fb8; }

/* ================== storefront additions (build 2026-11-19) ================== */
:root {
  --red: #d92d20;
  --shadow: 0 2px 10px rgba(10, 37, 64, .08);
}
html[data-theme="dark"] {
  --text: #e6edf5;
  --muted: #9fb0c3;
  --bg: #0f1b2a;
  --card: #16283d;
  --border: #27405e;
  --shadow: 0 2px 10px rgba(0, 0, 0, .35);
}
html[data-theme="dark"] .site-header,
html[data-theme="dark"] .site-footer { background: #0a1725; }
html[data-theme="dark"] .page-hero { filter: brightness(.92); }
html[data-theme="dark"] .btn-buy { filter: brightness(1.05); }

.wide { max-width: 1180px; }
.hero-search {
  background: linear-gradient(135deg, var(--blue) 0%, #0a7cff 55%, var(--orange) 140%);
  color: #fff; padding: 40px 0 36px;
}
.hero-search h1 { margin: 0 0 8px; font-size: 1.9rem; line-height: 1.4; }
.hero-search p { margin: 0 0 18px; color: #eaf2ff; }
.search-box { display: flex; gap: 8px; max-width: 640px; }
.search-box input {
  flex: 1; padding: 13px 16px; border: 0; border-radius: 12px;
  font-family: inherit; font-size: 1.05rem;
}
.search-box .btn { margin-top: 0; }

.toolbar {
  display: flex; gap: 6px; flex-wrap: nowrap; align-items: center;
  margin: 22px 0 6px;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 8px; box-shadow: var(--shadow);
  overflow-x: auto; scrollbar-width: thin;
}
.toolbar select, .toolbar input[type="number"], .toolbar input[type="search"] {
  width: auto; flex: 0 0 auto; min-width: 0;
  padding: 6px 8px; border: 1px solid var(--border); border-radius: 9px;
  font-family: inherit; font-size: .85rem; background: var(--card); color: var(--text);
}
.toolbar input[type="search"] { flex: 1 1 120px; min-width: 110px; }
.toolbar input[type="number"] { width: 118px; }
.toolbar .check { white-space: nowrap; font-size: .85rem; }
.chip {
  display: inline-block; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--card); color: var(--text);
  font-weight: 700; font-size: .9rem; cursor: pointer;
}
.chip:hover { border-color: var(--blue); }
.chip.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.check { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .95rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin: 18px 0; }
.pcard {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  position: relative;
}
.pcard img { width: 100%; height: 200px; object-fit: contain; background: #fff; display: block; }
.pcard-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.pcard h3 { margin: 0; font-size: 1.02rem; line-height: 1.5; }
.pcard h3 a { color: var(--text); }
.pcard .brand-line { color: var(--muted); font-size: .85rem; }
.price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price { font-size: 1.35rem; font-weight: 800; color: var(--blue-dark); }
html[data-theme="dark"] .price { color: #fff; }
.old-price { color: var(--muted); text-decoration: line-through; font-size: .95rem; }
.disc-badge {
  background: var(--red); color: #fff; font-weight: 800; font-size: .8rem;
  padding: 2px 8px; border-radius: 999px;
}
.lowest-badge {
  background: var(--green); color: #fff; font-weight: 800; font-size: .78rem;
  padding: 3px 9px; border-radius: 999px; display: inline-block;
}
.rating { color: #b45309; font-weight: 700; font-size: .9rem; }
.pcard .actions { display: flex; gap: 8px; margin-top: auto; padding-top: 8px; }
.btn-mini {
  flex: 1; text-align: center; padding: 10px 6px; border-radius: 10px; font-weight: 800;
  font-size: .9rem; border: 1px solid transparent; color: #fff; cursor: pointer;
  transition: filter .15s ease, transform .15s ease;
}
.btn-mini:hover { text-decoration: none; filter: brightness(1.08); }
.btn-mini:active { transform: scale(.97); }
.btn-prices { background: linear-gradient(180deg, #fb923c, #ea580c); box-shadow: 0 2px 8px rgba(234, 88, 12, .35); }
.btn-compare { background: linear-gradient(180deg, #3b82f6, #1d4ed8); box-shadow: 0 2px 8px rgba(29, 78, 216, .30); }
.btn-fav { background: var(--card); color: #e11d48; border-color: #fda4af; }
.btn-fav:hover { border-color: #e11d48; }
.btn-fav.fav-on { background: #e11d48; border-color: #e11d48; color: #fff; }

.section-head { display: flex; align-items: baseline; gap: 12px; margin: 30px 0 4px; flex-wrap: wrap; }
.section-head h2 { margin: 0; font-size: 1.35rem; color: var(--blue-dark); }
html[data-theme="dark"] .section-head h2 { color: #fff; }
.section-head a { font-size: .9rem; font-weight: 700; }

/* buy buttons */
.buy-buttons { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; }
.btn-buy {
  display: block; text-align: center; padding: 13px 16px; border-radius: 11px;
  font-weight: 800; font-size: 1.02rem; color: #fff;
}
.btn-buy:hover { text-decoration: none; filter: brightness(1.08); }
.btn-jumia { background: #f68b1e; }
.btn-amazon { background: #131921; }
.btn-noon { background: #feee00; color: #222; }
.affiliate-note { font-size: .82rem; color: var(--muted); margin: 0; text-align: center; }

/* ad slots: fixed height to protect CLS */
.ad-slot {
  background: #eef2f7; border: 1px dashed #c4d2e0; border-radius: 10px;
  color: var(--muted); text-align: center; font-size: .8rem;
  display: flex; align-items: center; justify-content: center;
  margin: 20px 0; overflow: hidden;
}
html[data-theme="dark"] .ad-slot { background: #1b3049; border-color: #33507a; }

/* offers table */
table.offers { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: .95rem; }
table.offers th, table.offers td { border: 1px solid var(--border); padding: 9px 10px; text-align: right; vertical-align: middle; }
table.offers th { background: #eef4fc; color: var(--blue-dark); }
html[data-theme="dark"] table.offers th { background: #1b3049; color: #fff; }
table.offers .best-row { background: #f0fdf4; }
html[data-theme="dark"] table.offers .best-row { background: #122b1d; }
.gap-up { color: var(--red); font-weight: 700; }

/* spec table */
.spec-table { width: 100%; border-collapse: collapse; margin: 10px 0; }
.spec-table td { border-bottom: 1px solid var(--border); padding: 8px 6px; vertical-align: top; }
.spec-table td:first-child { font-weight: 700; color: var(--blue-dark); width: 34%; }
html[data-theme="dark"] .spec-table td:first-child { color: #fff; }
.pros li::marker { content: "✓ "; color: var(--green); font-weight: 800; }
.cons li::marker { content: "✕ "; color: var(--red); font-weight: 800; }

/* product layout */
.product-top { display: grid; grid-template-columns: 340px 1fr; gap: 26px; align-items: start; }
.product-img { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.product-img img { width: 100%; height: auto; display: block; }
@media (max-width: 760px) { .product-top { grid-template-columns: 1fr; } }
.muted { color: var(--muted); font-size: .9rem; }
.share-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.share-row a {
  padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: .9rem; color: #fff;
}
.share-wa { background: #25d366; } .share-tg { background: #229ed9; } .share-fb { background: #1877f2; }
.share-row a:hover { text-decoration: none; filter: brightness(1.08); }

/* compare bar */
.compare-bar {
  position: fixed; bottom: 0; right: 0; left: 0; z-index: 60;
  background: var(--blue-dark); color: #fff; padding: 10px 16px;
  display: none; align-items: center; gap: 12px; flex-wrap: wrap;
  box-shadow: 0 -2px 14px rgba(0,0,0,.3);
}
.compare-bar.show { display: flex; }
.compare-bar .btn { margin-top: 0; padding: 8px 18px; }
.compare-bar .clear { background: none; border: 0; color: #ffb4ab; cursor: pointer; font-weight: 700; }

/* cookie banner + toast */
.cookie-banner {
  position: fixed; bottom: 0; right: 0; left: 0; z-index: 70; display: none;
  background: #fff; color: var(--text); border-top: 2px solid var(--orange);
  padding: 14px 18px; box-shadow: 0 -2px 16px rgba(0,0,0,.18);
}
.cookie-banner.show { display: block; }
html[data-theme="dark"] .cookie-banner { background: #16283d; }
.toast {
  position: fixed; bottom: 24px; right: 50%; transform: translateX(50%);
  background: var(--blue-dark); color: #fff; padding: 12px 20px; border-radius: 999px;
  font-weight: 700; z-index: 80; display: none; box-shadow: 0 4px 18px rgba(0,0,0,.3);
  max-width: 92vw; text-align: center;
}
.toast.show { display: block; }

/* coupon */
.coupon-card {
  background: var(--card); border: 1px dashed var(--orange); border-radius: var(--radius);
  padding: 18px 20px; margin: 14px 0;
}
.coupon-code {
  font-size: 1.3rem; font-weight: 800; letter-spacing: 1px; color: var(--blue-dark);
  background: #fff7e6; border: 1px dashed var(--orange); border-radius: 8px;
  padding: 6px 14px; display: inline-block; margin: 8px 0;
}
html[data-theme="dark"] .coupon-code { color: #ffb347; background: #2a2113; }
.countdown { font-weight: 800; color: var(--red); }
.example-tag {
  display: inline-block; background: #fef3c7; color: #92400e; border: 1px solid #fcd34d;
  font-size: .78rem; font-weight: 800; padding: 2px 9px; border-radius: 999px;
}
.draft-banner {
  background: #fef3c7; border: 1px solid #fcd34d; color: #92400e;
  border-radius: 10px; padding: 12px 16px; margin: 18px 0; font-weight: 700;
}
.faq-item { border-bottom: 1px solid var(--border); padding: 10px 0; }
.faq-item summary { cursor: pointer; font-weight: 800; color: var(--blue-dark); }
html[data-theme="dark"] .faq-item summary { color: #fff; }
.theme-toggle { background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 8px; padding: 6px 12px; cursor: pointer; font-weight: 700; }
.install-box { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin: 16px 0; }
.install-box label { display: inline-block; margin: 0 0 0 6px; }
.install-box select { padding: 9px 11px; border: 1px solid var(--border); border-radius: 9px; font-family: inherit; background: var(--card); color: var(--text); }
.install-result { font-size: 1.25rem; font-weight: 800; color: var(--blue-dark); margin-top: 10px; }
html[data-theme="dark"] .install-result { color: #fff; }
.news-list article { border-bottom: 1px solid var(--border); padding: 16px 0; }
.news-list h3 { margin: 0 0 6px; }
.news-meta { color: var(--muted); font-size: .85rem; }

.site-footer {
  background: var(--blue-dark);
  color: #c9d8ea;
  margin-top: 40px;
  padding: 34px 0 22px;
  font-size: .95rem;
}
.site-footer .cols {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.site-footer h3 { color: #fff; font-size: 1.05rem; margin: 0 0 10px; }
.site-footer a { color: #c9d8ea; display: block; margin-bottom: 6px; }
.site-footer a:hover { color: #fff; }
.site-footer .bottom {
  border-top: 1px solid rgba(255, 255, 255, .15);
  margin-top: 26px;
  padding-top: 16px;
  text-align: center;
  font-size: .85rem;
  color: #9db2cc;
}

@media (max-width: 640px) {
  .site-header { padding: 8px 0; }
  .site-header .container { flex-wrap: nowrap; gap: 10px; }
  .brand img { height: 34px; }
  .brand-name { display: none; }
  .nav-toggle { display: inline-block; margin-inline-start: auto; }
  .main-nav {
    display: none;
    order: 4;
    width: 100%;
    flex-direction: column;
    gap: 0;
    margin-inline-start: 0;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 12px; border-top: 1px solid rgba(255, 255, 255, .1); }
  .theme-toggle { padding: 6px 9px; font-size: .85rem; white-space: nowrap; }
  .card { padding: 20px 18px; }
  .page-hero h1 { font-size: 1.35rem; }
}

/* compare page: compact stacked buy buttons */
.compare-buy { display: flex; flex-direction: column; gap: 6px; }
.compare-buy .btn-buy { padding: 9px 10px; font-size: .9rem; margin: 0; }

/* ---- تخطيطات الصفحة الرئيسية (home_layout) ---- */
.row-scroll { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 14px; margin: 18px 0; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.row-scroll .pcard { flex: 0 0 230px; scroll-snap-align: start; }
.row-scroll .pcard img { height: 160px; }
details.filters-box { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; margin: 22px 0 6px; box-shadow: var(--shadow); }
details.filters-box summary { cursor: pointer; font-weight: 700; }
details.filters-box .toolbar { margin: 10px 0 0; border: 0; box-shadow: none; padding: 0; background: transparent; }
.grid-featured { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-featured .pcard img { height: 260px; }
@media (max-width: 640px) {
  .row-scroll .pcard { flex-basis: 200px; }
  .grid-featured { grid-template-columns: 1fr; }
}

/* ---- سمات ألوان التخطيطات (theme-*) ---- */
body.theme-ocean { --blue: #0e7490; --blue-dark: #164e63; --orange: #f97316; }
body.theme-slate { --blue: #475569; --blue-dark: #1e293b; --orange: #f59e0b; }
body.theme-gold { --bg: #101828; --card: #1a2436; --text: #f1f5f9; --muted: #94a3b8; --border: #2d3f57; --blue: #d4af37; --blue-dark: #0f172a; --orange: #f59e0b; }
body.theme-forest { --blue: #15803d; --blue-dark: #14532d; --orange: #ea580c; }
body.theme-royal { --blue: #7c3aed; --blue-dark: #4c1d95; --orange: #db2777; }
body.theme-sunset { --blue: #ea580c; --blue-dark: #7c2d12; --orange: #dc2626; }
body.theme-minimal { --blue: #334155; --blue-dark: #0f172a; --orange: #64748b; --bg: #ffffff; }
body.theme-rose { --blue: #db2777; --blue-dark: #831843; --orange: #f97316; }
body.theme-teal { --blue: #0d9488; --blue-dark: #134e4a; --orange: #f59e0b; }
body.theme-indigo { --blue: #4f46e5; --blue-dark: #312e81; --orange: #f97316; }

/* ---- بطاقات أفقية مدمجة (cards-list) ---- */
.cards-list { display: flex; flex-direction: column; gap: 12px; margin: 18px 0; }
.cards-list .pcard { flex-direction: row; align-items: stretch; }
.cards-list .pcard > a { flex: 0 0 150px; display: flex; }
.cards-list .pcard img { width: 150px; height: 100%; min-height: 150px; object-fit: contain; }
.cards-list .pcard-body { padding: 12px 14px; }
@media (max-width: 640px) {
  .cards-list .pcard > a { flex-basis: 110px; }
  .cards-list .pcard img { width: 110px; min-height: 110px; }
}

/* ---- بلاطات الماركات ---- */
.brand-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin: 18px 0; }
.brand-tiles .chip { display: flex; align-items: center; justify-content: center; padding: 24px 10px; font-size: 1.05rem; }

/* ---- هيرو مدمج ---- */
.hero-compact { padding: 22px 0 20px; }
.hero-compact h1 { font-size: 1.4rem; }
.hero-compact p { margin-bottom: 10px; }

/* ---- شريط فلاتر ثابت (sunset / quick) ---- */
@media (min-width: 641px) {
  body.layout-sunset .toolbar, body.layout-quick .toolbar { position: sticky; top: 76px; z-index: 40; }
}

/* ---- زر العودة للأعلى ---- */
#to-top { position: fixed; bottom: 22px; inset-inline-start: 22px; z-index: 60; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--blue); color: #fff; font-size: 1.3rem; font-weight: 800; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.25); opacity: 0; pointer-events: none; transition: opacity .2s; }
#to-top.show { opacity: 1; pointer-events: auto; }
#to-top:hover { background: var(--blue-dark); }

/* ---- إصلاح نصوص السمة الذهبية الداكنة (blue-dark كنص على خلفية داكنة) ---- */
body.theme-gold .section-head h2, body.theme-gold .card h2, body.theme-gold .card h3 { color: #f1f5f9; }
body.theme-gold .price { color: #ffd97a; }
