/*
Theme Name: Al Rased
Theme URI: https://zat-it.com/
Author: ذات لتكنولوجيا المعلومات
Author URI: https://zat-it.com/
Description: ثيم الراصد للنشر والترجمة والتوزيع — ACF Free + WooCommerce
Version: 1.0.8
Text Domain: alrased
Tags: rtl, arabic, publishing, books, woocommerce
*/

/* ══════════════════════════════
   VARIABLES
══════════════════════════════ */
:root {
  --gold:        #b8962e;
  --gold-pale:   #e8d48a;
  --gold-bg:     #fdf8ee;
  --dark:        #1a1a1a;
  --dark2:       #232323;
  --dark3:       #161616;
  --text:        #2d2d2d;
  --gray:        #6b6b6b;
  --light:       #f9f6f0;
  --border:      #e8e0d0;
  --shadow:      0 4px 24px rgba(0,0,0,.10);
  --shadow-lg:   0 12px 48px rgba(0,0,0,.18);
  --r:   10px;
  --r-sm: 6px;
  --tr: all .3s ease;
  --fh: 'Cairo', sans-serif;
  --fb: 'Tajawal', sans-serif;
}

/* ══════════════════════════════
   RESET
══════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--fb); color: var(--text); direction: rtl; background: #fff; line-height: 1.75; font-size: 16px; }
img  { max-width: 100%; height: auto; display: block; }
a    { text-decoration: none; color: inherit; transition: var(--tr); }
ul   { list-style: none; }

/* ══════════════════════════════
   UTILITIES
══════════════════════════════ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.sec-head { text-align: center; margin-bottom: 40px; }
.sec-title {
  font-family: var(--fh);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 800;
  color: var(--dark);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.sec-title::before,
.sec-title::after {
  content: '';
  display: block;
  width: 40px; height: 2px;
  background: var(--gold);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 24px;
  border-radius: var(--r-sm);
  font-family: var(--fh); font-weight: 700; font-size: .88rem;
  cursor: pointer; transition: var(--tr); border: 1.5px solid transparent;
}
.btn-gold     { background: var(--gold); color: #fff; border-color: var(--gold); }
.btn-gold:hover { background: #9a7d22; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline  { background: transparent; color: var(--dark); border-color: var(--dark); }
.btn-outline:hover { background: var(--dark); color: #fff; }
.btn-outline-gold { background: transparent; color: var(--gold); border-color: var(--gold); }
.btn-outline-gold:hover { background: var(--gold); color: #fff; }
.btn-sm { padding: 7px 16px; font-size: .82rem; }

.fade-in { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: none; }

/* ══════════════════════════════
   TOP BAR
══════════════════════════════ */
#ar-topbar {
  background: var(--dark3);
  color: rgba(255,255,255,.75);
  font-size: .82rem;
  padding: 7px 0;
  display: none; /* يُفعَّل من الإعدادات */
}
#ar-topbar .tb-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
#ar-topbar a { color: rgba(255,255,255,.75); }
#ar-topbar a:hover { color: var(--gold-pale); }
#ar-topbar .tb-left { display: flex; gap: 20px; }
#ar-topbar .tb-right { display: flex; align-items: center; gap: 14px; }

/* ══════════════════════════════
   HEADER
══════════════════════════════ */
#ar-header {
  position: sticky; top: 0; z-index: 999;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  border-bottom: 1px solid var(--border);
}
.hdr-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 16px 24px; max-width: 1420px; margin: 0 auto;
}
.site-logo img { height:90px; width: 125px; }
.logo-text { font-family: var(--fh); font-weight: 900; color: var(--dark); }
.logo-text span { display: block; font-size: 1.25rem; line-height: 1.2; }
.logo-text small { font-size: .72rem; font-weight: 500; color: var(--gold); letter-spacing: .5px; }

/* Nav */
.main-nav ul { display: flex; align-items: center; gap: 2px; }
.main-nav a {
  font-size: .88rem; font-weight: 600; font-family: var(--fh);
  padding: 8px 14px; border-radius: var(--r-sm); color: var(--dark);
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current-menu-ancestor > a { color: var(--gold); }

/* Dropdown */
.main-nav li { position: relative; }
.main-nav ul ul {
  display: none; flex-direction: column; gap: 0;
  position: absolute; top: calc(100% + 6px); right: 0;
  background: #fff; border-radius: var(--r); box-shadow: var(--shadow-lg);
  border: 1px solid var(--border); min-width: 200px;
  padding: 8px 0; z-index: 100;
}
.main-nav li:hover > ul { display: flex; }
.main-nav ul ul a { padding: 9px 18px; font-size: .86rem; border-radius: 0; }
.main-nav ul ul a:hover { background: var(--light); color: var(--gold); }

/* Header actions */
.hdr-actions { display: flex; align-items: center; gap: 8px; }
.hdr-btn {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border); background: transparent;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--tr); color: var(--dark); position: relative;
}
.hdr-btn:hover { border-color: var(--gold); color: var(--gold); }
.hdr-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.cart-count {
  position: absolute; top: -4px; left: -4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold); color: #fff; font-size: .65rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* Search bar */
.hdr-search {
  display: flex; align-items: center;
  border: 1.5px solid var(--border); border-radius: 30px;
  padding: 6px 14px; gap: 8px; transition: var(--tr);
}
.hdr-search:focus-within { border-color: var(--gold); }
.hdr-search input {
  border: none !important ; outline: none !important; font-family: var(--fb);
  font-size: .88rem; width: 180px; background: transparent;
}
.hdr-search button { background: none; border: none; cursor: pointer; color: var(--gray); display: flex; }
.hdr-search svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--dark); border-radius: 2px; transition: var(--tr); }

/* ══════════════════════════════
   HERO SLIDER
══════════════════════════════ */
.ar-hero { position: relative; overflow: hidden; background: var(--dark3); }
.hero-slides { display: flex; transition: transform .6s cubic-bezier(.4,0,.2,1); }
.hero-slide {
  flex: 0 0 100%;
  position: relative; min-height: 500px;
  display: flex; align-items: center;
}
.hero-slide-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.hero-slide-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to left, rgba(10,10,10,.85) 45%, rgba(10,10,10,.32) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto; padding: 64px 24px;
  width: 100%;
}
.hero-inner { max-width: 540px; }
.hero-tag {
  display: inline-block; font-size: .85rem; font-family: var(--fh);
  color: var(--gold-pale); border: 1px solid rgba(184,150,46,.4);
  border-radius: 30px; padding: 5px 16px; margin-bottom: 16px;
}
.hero-inner h1 {
  font-family: var(--fh); font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900; color: #fff; line-height: 1.2; margin-bottom: 8px;
}
.hero-inner h1 span { color: var(--gold-pale); display: block; }
.hero-inner p { color: rgba(255,255,255,.78); font-size: .97rem; margin-bottom: 28px; line-height: 1.85; }

/* Hero nav arrows */
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3);
  cursor: pointer; color: #fff; display: flex; align-items: center; justify-content: center;
  transition: var(--tr); z-index: 5;
}
.hero-arrow:hover { background: var(--gold); border-color: var(--gold); }
.hero-arrow svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; }
.hero-prev { right: 20px; }
.hero-next { left: 20px; }

/* Hero dots */
.hero-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 5; }
.hero-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.45); cursor: pointer; transition: var(--tr); }
.hero-dots span.active { background: var(--gold); width: 24px; border-radius: 4px; }

/* ══════════════════════════════
   CATEGORIES SECTION (أحدث الإصدارات)
══════════════════════════════ */
.ar-cats { padding: 56px 0; background: #fff; }
.cats-grid {
  display: grid;
  grid-template-columns: 200px repeat(4, 1fr);
  gap: 16px; align-items: stretch;
}
/* البطاقة الكبيرة يمين - "عرض جميع الإصدارات" */
.cat-featured {
  background: var(--dark2);
  border-radius: var(--r);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 32px 20px; text-align: center; min-height: 200px;
  cursor: pointer; transition: var(--tr);
}
.cat-featured:hover { background: var(--gold); }
.cat-featured .cf-ico {
  width: 72px; height: 72px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.cat-featured .cf-ico svg {
  width: 100%; height: 100%;
  stroke: var(--gold); fill: none;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
.cat-featured span { font-family: var(--fh); font-size: 1rem; font-weight: 700; color: #fff; line-height: 1.4; }
.cat-featured .cf-arr { margin-top: 16px; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.15); display: flex; align-items: center; justify-content: center; }
.cat-featured .cf-arr svg { width: 14px; height: 14px; stroke: #fff; fill: none; stroke-width: 2.5; stroke-linecap: round; }

/* بطاقة فئة عادية */
.cat-card {
  border: 1px solid var(--border); border-radius: var(--r);
  padding: 24px 16px; text-align: center;
  transition: var(--tr); cursor: pointer;
}
.cat-card:hover { border-color: var(--gold); box-shadow: var(--shadow); transform: translateY(-4px); }
.cat-ico {
  width: 66px; height: 66px; border-radius: 50%;
  background: var(--gold-bg); border: none;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.cat-ico svg { width: 28px; height: 28px; stroke: var(--gold); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ألوان دوائر الفئات — قابلة للتخصيص عبر ACF (data-color) */
.cat-ico[data-color="green"]  { background: #1e3a2f; }
.cat-ico[data-color="green"]  svg { stroke: #d4af50; }
.cat-ico[data-color="purple"] { background: #4a3566; }
.cat-ico[data-color="purple"] svg { stroke: #e8d8f5; fill: #e8d8f5; }
.cat-ico[data-color="brown"]  { background: #5a3a28; }
.cat-ico[data-color="brown"]  svg { stroke: #f0dcc8; fill: #f0dcc8; }
.cat-ico[data-color="blue"]   { background: #3d4f5c; }
.cat-ico[data-color="blue"]   svg { stroke: #e8eef2; }
.cat-ico[data-color="gold"]   { background: var(--gold-bg); }
.cat-ico[data-color="gold"]   svg { stroke: var(--gold); }
.cat-card h3 { font-family: var(--fh); font-size: .95rem; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.cat-card p  { font-size: .78rem; color: var(--gray); line-height: 1.55; margin-bottom: 12px; }
.cat-card .cat-more { font-size: .78rem; color: var(--gold); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.cat-card .cat-more::before { content: '←'; }

/* ══════════════════════════════
   CULTURAL SECTION (الراصد الثقافي)
══════════════════════════════ */
.ar-cultural { padding: 56px 0; background: var(--light); }
.cult-tabs-row { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 32px; margin-bottom: 40px; }
.cult-tab {
  padding: 8px 18px; border-radius: 30px;
  border: 1.5px solid var(--border); background: #fff;
  font-family: var(--fh); font-size: .87rem; font-weight: 600;
  cursor: pointer; transition: var(--tr); color: var(--dark);
  display: flex; align-items: center; gap: 7px;
}
.cult-tab svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.cult-tab:hover, .cult-tab.active { background: var(--dark); color: #fff; border-color: var(--dark); }
.cult-explore { text-align: center; margin-top: 24px; }

/* ══════════════════════════════
   NEWS & EVENTS (أخبار وفعاليات)
══════════════════════════════ */
.ar-news { padding: 56px 0; background: #fff; }
.news-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.news-card {
  border-radius: var(--r); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow);
  transition: var(--tr); background: #fff;
}
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.news-thumb { overflow: hidden; }
.news-thumb img { width: 100%; aspect-ratio: 16/10; object-fit: cover; transition: transform .4s; }
.news-card:hover .news-thumb img { transform: scale(1.05); }
.news-thumb-ph { background: var(--light); aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center; }
.news-thumb-ph svg { width: 40px; height: 40px; stroke: var(--gold); fill: none; stroke-width: 1.5; opacity: .5; }
.news-body { padding: 16px; }
.news-body h3 { font-family: var(--fh); font-size: .93rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; line-height: 1.4; }
.news-body h3 a { color: var(--dark); }
.news-body h3 a:hover { color: var(--gold); }
.news-body p  { font-size: .82rem; color: var(--gray); line-height: 1.6; margin-bottom: 12px; }
.news-more { font-size: .8rem; color: var(--gold); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.news-more::before { content: '←'; }
.news-more:hover { gap: 8px; }
.news-cta { text-align: center; margin-top: 32px; }

/* ══════════════════════════════
   STORE SECTION (المتجر) - WooCommerce
══════════════════════════════ */
.ar-store { padding: 56px 0; background: var(--dark2); }
.ar-store .sec-title { color: #fff; }
.ar-store .sec-title::before, .ar-store .sec-title::after { background: var(--gold); }
.store-tabs { display: flex; align-items: center; gap: 6px; justify-content: center; margin: 20px 0 28px; }
.store-tab {
  padding: 8px 20px; border-radius: 30px;
  border: 1.5px solid rgba(255,255,255,.2); background: transparent;
  font-family: var(--fh); font-size: .87rem; font-weight: 600;
  cursor: pointer; transition: var(--tr); color: rgba(255,255,255,.7);
}
.store-tab:hover, .store-tab.active { background: var(--gold); color: #fff; border-color: var(--gold); }

.store-slider-wrap { position: relative; overflow: hidden; }
.store-panel[hidden] { display: none !important; }
.store-track { display: flex; gap: 16px; transition: transform .45s ease; }
.store-card {
  flex: 0 0 calc(20% - 13px);
  background: rgba(255,255,255,.06); border-radius: var(--r);
  border: 1px solid rgba(255,255,255,.1); overflow: hidden;
  transition: var(--tr);
}
.store-card:hover { transform: translateY(-5px); background: rgba(255,255,255,.12); border-color: rgba(184,150,46,.4); }
.book-cover { position: relative; overflow: hidden; }
.book-cover img { width: 100%; aspect-ratio: 2/3; object-fit: cover; display: block; }
.book-cover-ph {
  background: linear-gradient(135deg, #232323, #161616);
  aspect-ratio: 2/3; display: flex; align-items: center; justify-content: center;
}
.book-cover-ph svg { width: 48px; height: 48px; stroke: var(--gold); fill: none; stroke-width: 1.5; opacity: .4; }
.book-info { padding: 14px 12px; }
.book-info h3 { font-family: var(--fh); font-size: .88rem; font-weight: 700; color: #fff; margin-bottom: 4px; line-height: 1.3; }
.book-info .author { font-size: .78rem; color: rgba(255,255,255,.55); margin-bottom: 10px; }
.book-info .price { font-family: var(--fh); font-size: .9rem; font-weight: 700; color: var(--gold); }
.store-arrows { display: flex; justify-content: center; gap: 10px; margin-top: 24px; }
.store-arrow {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.2); background: transparent;
  cursor: pointer; color: rgba(255,255,255,.7); display: flex; align-items: center; justify-content: center;
  transition: var(--tr);
}
.store-arrow:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.store-arrow svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; }
.store-cta { text-align: center; margin-top: 24px; }

/* ══════════════════════════════
   INFO GRID (المؤلفون / انشر معنا / عن الراصد)
══════════════════════════════ */
.ar-info { padding: 56px 0; background: #fff; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1.1fr; gap: 20px; align-items: start; }
.info-block {
  border: 1px solid var(--border); border-radius: var(--r);
  padding: 28px 22px; transition: var(--tr);
}
.info-block:hover { box-shadow: var(--shadow); border-color: var(--gold-pale); }
.info-block-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.info-block-head svg { width: 22px; height: 22px; stroke: var(--gold); fill: none; stroke-width: 2; }
.info-block-head h3 { font-family: var(--fh); font-size: 1rem; font-weight: 800; color: var(--dark); }
.info-block p { font-size: .85rem; color: var(--gray); line-height: 1.7; margin-bottom: 14px; }
.info-block ul { margin-bottom: 18px; }
.info-block ul li { font-size: .84rem; color: var(--gray); padding: 4px 0; border-bottom: 1px solid var(--border); }
.info-block ul li:last-child { border-bottom: none; }
.authors-faces { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 16px; }
.authors-faces img { width: 46px; height: 46px; border-radius: 50%; border: 2px solid #fff; object-fit: cover; }
.author-ph { width: 46px; height: 46px; border-radius: 50%; background: var(--light); border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; }
.author-ph svg { width: 22px; height: 22px; stroke: var(--gray); fill: none; stroke-width: 1.5; }

/* بطاقة الاقتباس */
.info-quote {
  background: var(--dark2);
  border-color: var(--dark2);
  position: relative; overflow: hidden;
}
.info-quote:hover { border-color: var(--gold); }
.info-quote .qmark {
  font-size: 6rem; font-family: Georgia, serif;
  color: rgba(184,150,46,.15); position: absolute; top: -10px; right: 12px;
  line-height: 1;
}
.info-quote p { color: rgba(255,255,255,.85); font-size: .9rem; line-height: 1.8; margin-bottom: 16px; font-style: italic; }
.info-quote .q-attr { font-size: .8rem; color: var(--gold); font-weight: 600; }
.info-quote-bg {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 100px; background: url('') center bottom/cover no-repeat; opacity: .12;
}

/* ══════════════════════════════
   FOOTER
══════════════════════════════ */
#ar-footer { background: var(--dark3); color: #fff; padding: 56px 0 0; }
.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 36px; padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.foot-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.foot-brand img { height: 105px; width: auto; }
.foot-brand-name { font-family: var(--fh); font-size: 1.15rem; font-weight: 900; color: #fff; }
.foot-brand-name small { display: block; font-size: .72rem; color: var(--gold); font-weight: 500; }
.foot-about p { font-size: .86rem; opacity: .72; line-height: 1.75; margin-bottom: 18px; }

.newsletter-form { display: flex; gap: 0; border: 1px solid rgba(255,255,255,.15); border-radius: var(--r-sm); overflow: hidden; }
.newsletter-form input {
  flex: 1; border: none; outline: none; background: transparent;
  padding: 10px 14px; font-family: var(--fb); font-size: .85rem; color: #fff;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.4); }
.newsletter-form button { background: var(--gold); border: none; cursor: pointer; padding: 10px 16px; color: #fff; font-family: var(--fh); font-size: .85rem; font-weight: 700; }
.newsletter-form button:hover { background: #9a7d22; }

.foot-col h4 { font-family: var(--fh); font-size: .88rem; font-weight: 700; color: var(--gold-pale); margin-bottom: 16px; }
.foot-links li { margin-bottom: 8px; }
.foot-links a { font-size: .85rem; color: rgba(255,255,255,.72); opacity: 1; transition: var(--tr); }
.foot-links a:hover { color: var(--gold-pale); padding-right: 4px; }

.foot-contact li { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 10px; font-size: .84rem; opacity: .78; }
.foot-contact svg { width: 15px; height: 15px; flex-shrink: 0; stroke: var(--gold); fill: none; stroke-width: 2; margin-top: 3px; }

.foot-socials { display: flex; gap: 8px; margin-top: 12px; }
.foot-socials a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; transition: var(--tr); }
.foot-socials a:hover { background: var(--gold); }
.foot-socials svg { width: 15px; height: 15px; stroke: #fff; fill: none; stroke-width: 2; }

.foot-btm {
  padding: 18px 0; display: flex; align-items: center; justify-content: space-between;
  font-size: .8rem; opacity: .5;
}
.foot-btm a { opacity: 1; color: var(--gold-pale); }
.foot-btm .zat-credit { opacity: .7; }
.foot-btm .zat-credit a { color: var(--gold); opacity: 1; }

/* ══════════════════════════════
   BACK TO TOP
══════════════════════════════ */
#ar-btt {
  position: fixed; bottom: 24px; left: 24px;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--gold); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg); transition: var(--tr);
  opacity: 0; pointer-events: none; z-index: 997;
}
#ar-btt.show { opacity: 1; pointer-events: all; }
#ar-btt:hover { background: #9a7d22; transform: translateY(-3px); }
#ar-btt svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2.5; stroke-linecap: round; }

/* ══════════════════════════════
   PAGE BANNER
══════════════════════════════ */
.ar-banner {
  background: linear-gradient(135deg, var(--dark2) 0%, var(--dark3) 100%);
  padding: 56px 0; text-align: center; position: relative;
  border-bottom: 2px solid var(--gold);
}
.ar-banner h1 { font-family: var(--fh); font-size: 2rem; font-weight: 800; color: #fff; margin-bottom: 8px; }
.breadcrumbs { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: .85rem; color: rgba(255,255,255,.6); }
.breadcrumbs a { color: var(--gold-pale); }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs span.sep { opacity: .5; }

/* ══════════════════════════════
   WOOCOMMERCE OVERRIDES
   (كل تنسيقات WooCommerce منقولة بالكامل إلى assets/css/woocommerce.css
   — مصدر واحد فقط لتفادي التضارب وتسهيل الصيانة)
══════════════════════════════ */

/* ══════════════════════════════
   SINGLE POST
══════════════════════════════ */
.single-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 40px; padding: 48px 0; }
.post-content h1,h2,h3,h4 { font-family: var(--fh); color: var(--dark); margin: 1.2em 0 .6em; }
.post-content p { line-height: 1.85; margin-bottom: 1.1em; color: var(--text); }
.post-content img { border-radius: var(--r); margin: 1.5em 0; }
/* مشكلة قديمة: عند استخدام .post-content فوق خلفية داكنة (كقسم "رؤيتنا"
   بصفحة "من نحن")، كانت الفقرات <p> تاخد اللون الداكن var(--text) الخاص
   بالخلفيات الفاتحة بدل اللون الفاتح الموروث من العنصر الأب، لأن أي
   تنسيق مباشر على الوسم نفسه (كـ .post-content p) بياخد أولوية على
   أي لون موروث (inherited) من عنصر أب حتى لو كان الأخير inline style —
   فالنص كان بيظهر شبه غير مقروء (داكن على داكن). أضفنا كلاس
   .invert-text كـ "مفتاح" صريح نضيفه فقط للأقسام فوق خلفية داكنة،
   ليعكس ألوان النص والعناوين لدرجات فاتحة بدل الاعتماد على الوراثة. */
.post-content.invert-text h1,
.post-content.invert-text h2,
.post-content.invert-text h3,
.post-content.invert-text h4 { color: #fff; }
.post-content.invert-text p { color: rgba(255,255,255,.82); }
.post-content.invert-text a { color: var(--gold-pale); }
.post-sidebar { }
.sidebar-widget { border: 1px solid var(--border); border-radius: var(--r); padding: 22px; margin-bottom: 24px; }
.sidebar-widget h3 { font-family: var(--fh); font-size: .95rem; font-weight: 700; color: var(--dark); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }

/* ══════════════════════════════
   AUTHORS PAGE
══════════════════════════════ */
.authors-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; padding: 48px 0; }
.author-card {
  border: 1px solid var(--border); border-radius: var(--r);
  padding: 28px 20px; text-align: center; transition: var(--tr);
}
.author-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-color: var(--gold-pale); }
.author-card img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; border: 3px solid var(--gold-pale); }
.author-card h3 { font-family: var(--fh); font-size: .95rem; font-weight: 700; color: var(--dark); margin-bottom: 6px; }
.author-card p  { font-size: .82rem; color: var(--gray); line-height: 1.6; margin-bottom: 14px; }

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media(max-width:1100px){
  .cats-grid { grid-template-columns: 160px repeat(4,1fr); }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .foot-grid > :last-child { grid-column: 1/-1; }
  .store-card { flex: 0 0 calc(25% - 12px); }
}
@media(max-width:900px){
  .cats-grid { grid-template-columns: repeat(3,1fr); }
  .cats-grid .cat-featured { grid-column: span 3; flex-direction: row; justify-content: flex-start; gap: 14px; padding: 18px 22px; min-height: auto; }
  .news-grid { grid-template-columns: repeat(2,1fr); }
  .single-wrap { grid-template-columns: 1fr; }
  .authors-grid { grid-template-columns: repeat(3,1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media(max-width:768px){
  .main-nav { display: none; width: 100%; background: #fff; border-top: 1px solid var(--border); padding: 10px 0; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
  .nav-toggle { display: flex; }
  .hdr-inner { flex-wrap: wrap; }
  .site-logo img { height: 60px; }
  .hdr-search input { width: 120px; }
  .cats-grid { grid-template-columns: repeat(2,1fr); }
  .cats-grid .cat-featured { grid-column: span 2; }
  .store-card { flex: 0 0 calc(50% - 8px); }
  .info-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-btm { flex-direction: column; gap: 8px; }
  .authors-grid { grid-template-columns: repeat(2,1fr); }
}
@media(max-width:480px){
  .news-grid { grid-template-columns: 1fr; }
  .store-card { flex: 0 0 calc(80% - 8px); }
  .hero-inner h1 { font-size: 1.7rem; }
  .authors-grid { grid-template-columns: 1fr 1fr; }
}
