/* =========================================================================
   ShoppingArabia (تسوّق العربية) — shared stylesheet
   RTL, Arabic-first commerce/affiliate content site.
   Design goals: trustworthy, fast, scannable, monetizable.
   ========================================================================= */

:root {
  /* Brand palette — warm, trustworthy commerce */
  --teal:      #0e7c6b;   /* primary brand */
  --teal-dark: #0a5a4d;
  --gold:      #f0a500;   /* accent / CTAs / "deal" highlights */
  --gold-dark: #c9870a;
  --ink:       #1a2421;   /* body text */
  --muted:     #5b6b66;   /* secondary text */
  --sand:      #faf7f2;   /* page background */
  --card:      #ffffff;
  --line:      #e7e1d8;   /* hairline borders */
  --good:      #1f9d55;   /* pros / in-stock */
  --bad:       #d64545;   /* cons */

  --radius: 14px;
  --shadow: 0 6px 24px rgba(26, 36, 33, 0.08);
  --maxw: 1100px;
  --font: "Tajawal", "Cairo", system-ui, "Segoe UI", Tahoma, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--sand);
  color: var(--ink);
  line-height: 1.75;
  direction: rtl;          /* Arabic-first: whole document is right-to-left */
  text-align: right;
  -webkit-font-smoothing: antialiased;
}

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

.container { max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.35rem; color: var(--ink); }
.brand .logo {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  display: grid; place-items: center; color: #fff; font-weight: 800;
}
.brand b { color: var(--teal); }
.nav { display: flex; gap: 22px; font-weight: 600; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--teal); text-decoration: none; }
@media (max-width: 640px) { .nav { display: none; } }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, #0e7c6b 0%, #0a5a4d 100%);
  color: #fff; padding: 56px 0;
}
.hero h1 { font-size: 2.3rem; margin: 0 0 12px; line-height: 1.3; }
.hero p { font-size: 1.15rem; max-width: 640px; color: #e6f3f0; margin: 0 0 24px; }
.hero .cta {
  display: inline-block; background: var(--gold); color: #1a2421;
  font-weight: 800; padding: 13px 26px; border-radius: 999px;
}
.hero .cta:hover { background: var(--gold-dark); text-decoration: none; }

/* ---------- Section headings ---------- */
.section { padding: 44px 0; }
.section h2 { font-size: 1.6rem; margin: 0 0 6px; }
.section .sub { color: var(--muted); margin: 0 0 24px; }

/* ---------- Category tiles ---------- */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 800px) { .cats { grid-template-columns: repeat(2, 1fr); } }
.cat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; text-align: center; font-weight: 700; color: var(--ink);
  transition: transform .12s ease, box-shadow .12s ease;
}
.cat:hover { transform: translateY(-3px); box-shadow: var(--shadow); text-decoration: none; }
.cat .ic { font-size: 1.9rem; display: block; margin-bottom: 8px; }

/* ---------- Deal / product card grid ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 800px) { .grid { grid-template-columns: 1fr; } }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card .thumb {
  height: 160px; background: linear-gradient(135deg, #eef3f1, #dfe9e5);
  display: grid; place-items: center; font-size: 3rem; color: var(--teal);
}
.card .body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card .tag {
  align-self: flex-start; background: #fff6e0; color: var(--gold-dark);
  font-weight: 800; font-size: .78rem; padding: 3px 10px; border-radius: 999px;
}
.card h3 { margin: 0; font-size: 1.08rem; }
.card .desc { color: var(--muted); font-size: .92rem; flex: 1; }
.card .price { font-weight: 800; color: var(--teal-dark); font-size: 1.1rem; }
.btn-buy {
  display: block; text-align: center; background: var(--gold); color: #1a2421;
  font-weight: 800; padding: 11px; border-radius: 10px; margin-top: 6px;
}
.btn-buy:hover { background: var(--gold-dark); text-decoration: none; }

/* ---------- Article / buying guide ---------- */
.article { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow); }
.article h1 { font-size: 2rem; line-height: 1.35; margin: 0 0 10px; }
.article .meta { color: var(--muted); font-size: .9rem; margin-bottom: 8px; }
.article h2 { font-size: 1.4rem; margin: 32px 0 10px; border-inline-start: 4px solid var(--gold);
  padding-inline-start: 12px; }
.article p, .article li { font-size: 1.05rem; }
.article ul { padding-inline-start: 22px; }

/* Disclosure box (legally important for affiliate sites) */
.disclosure {
  background: #f3f8f6; border: 1px solid #d7e8e2; border-radius: 10px;
  padding: 12px 16px; font-size: .9rem; color: var(--muted); margin: 18px 0 24px;
}

/* In-content product pick block */
.pick {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
  margin: 22px 0; display: grid; grid-template-columns: 90px 1fr auto; gap: 16px; align-items: center;
}
@media (max-width: 640px) { .pick { grid-template-columns: 1fr; text-align: center; } }
.pick .pic { width: 90px; height: 90px; border-radius: 12px; background: linear-gradient(135deg,#eef3f1,#dfe9e5);
  display: grid; place-items: center; font-size: 2.2rem; color: var(--teal); }
.pick .info h3 { margin: 0 0 4px; }
.pick .info .why { color: var(--muted); font-size: .95rem; margin: 0; }
.pick .badge { display:inline-block; background: var(--teal); color:#fff; font-size:.75rem;
  font-weight:700; padding:2px 9px; border-radius:999px; margin-bottom:6px; }

/* Pros / cons */
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 16px 0; }
@media (max-width: 640px) { .proscons { grid-template-columns: 1fr; } }
.proscons div { background: #fafcfb; border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.proscons .pros strong { color: var(--good); }
.proscons .cons strong { color: var(--bad); }

/* ---------- Newsletter ---------- */
.newsletter { background: #fff6e0; border-radius: var(--radius); padding: 32px; text-align: center; }
.newsletter h2 { margin: 0 0 8px; }
.newsletter p { color: var(--muted); margin: 0 0 18px; }
.newsletter form { display: flex; gap: 10px; max-width: 440px; margin-inline: auto; }
.newsletter input { flex: 1; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font-family: var(--font); }
.newsletter button { background: var(--teal); color: #fff; border: 0; font-weight: 800; padding: 12px 22px; border-radius: 10px; cursor: pointer; }
@media (max-width: 480px) { .newsletter form { flex-direction: column; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c8d3cf; padding: 36px 0; margin-top: 40px; font-size: .92rem; }
.site-footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: #9fd8cc; }
.site-footer .small { color: #8b9b96; font-size: .82rem; max-width: 520px; }
