/*
Theme Name: اشتراك XP IPTV
Theme URI: https://example.com/xp-iptv
Author: XP IPTV Store
Author URI: https://example.com
Description: متجر اشتراكات XP IPTV الاحترافي — تصميم عربي RTL بألوان الأسود والبرتقالي، بطاقات زجاجية، طلب مباشر عبر واتساب، ومتوافق مع WooCommerce والمدونة. الكلمات المفتاحية: اشتراك XP IPTV، كود XP IPTV، تحميل XP Player، تطبيق XP Player، XP IPTV APK، XP IPTV PC، XP Player TV.
Version: 3.0.0
Requires at least: 6.0
Tested up to: 6.7
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: xp-iptv
Tags: rtl-language, arabic, iptv, xp-iptv, dark, orange, responsive, glassmorphism, store
*/

/* ═══════════════════════════════════════════════
   DESIGN TOKENS — Deep Black × Fiery Orange
═══════════════════════════════════════════════ */
:root {
  /* Backgrounds */
  --bg:        #0a0705;
  --bg2:       #0f0a07;
  --bg3:       #170f0a;
  --bg-card:   #1c130d;
  --bg-card2:  #251a12;
  --bg-card3:  #30221a;

  /* Brand: XP Orange */
  --red:       #ff6b1a;
  --red2:      #ff8a3d;
  --red3:      #ffb27a;
  --red-dim:   rgba(255,107,26,0.12);
  --red-glow:  rgba(255,107,26,0.40);
  --red-border:rgba(255,107,26,0.28);

  /* Accent: Amber Gold */
  --gold:      #ffc233;
  --gold2:     #ffd466;
  --gold-dim:  rgba(255,194,51,0.12);

  /* Border & Surface */
  --border:    rgba(255,255,255,0.08);
  --border2:   rgba(255,107,26,0.22);
  --surface:   rgba(255,255,255,0.038);
  --glass-shine: rgba(255,255,255,0.055);

  /* WhatsApp */
  --wa:        #25d366;
  --wa-h:      #1ebe5d;
  --wa-glow:   rgba(37,211,102,0.42);

  /* Text */
  --text:      #fff5ee;
  --text2:     #e6d3c5;
  --text3:     #a89080;
  --text4:     #6b5748;
  --white:     #ffffff;

  /* Radii */
  --r-sm:  8px;
  --r:     14px;
  --r-lg:  20px;
  --r-xl:  28px;

  /* Font */
  --font: 'Cairo', sans-serif;
  --font-en: 'Exo 2', 'Cairo', sans-serif;
}

/* ═══════════════════════════════════════════════
   RESET & RTL BASE
═══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  direction: rtl;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text2);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.75;
  direction: rtl;
}

a   { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }
ul, ol { list-style: none; }

/* ═══════════════════════════════════════════════
   AMBIENT BACKGROUND
═══════════════════════════════════════════════ */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 15% 0%,   rgba(255,107,26,.18) 0%, transparent 60%),
    radial-gradient(ellipse 55% 45% at 88% 100%, rgba(255,107,26,.11) 0%, transparent 55%),
    radial-gradient(ellipse 45% 40% at 50% 50%,  rgba(255,194,51,.04) 0%, transparent 65%);
}
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,107,26,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,107,26,.028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 0%, transparent 100%);
}

/* ═══════════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════════ */
.hp-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative; z-index: 1;
}

/* ═══════════════════════════════════════════════
   STICKY HEADER
═══════════════════════════════════════════════ */
#hp-header {
  position: sticky; top: 0; z-index: 1000;
  padding: 0;
  transition: background .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
#hp-header.scrolled {
  background: rgba(10,7,5,.94);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 40px rgba(0,0,0,.6);
}
.hp-header-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 16px; padding: 16px 0;
}

/* Logo */
.hp-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-en);
  font-size: clamp(17px,3.5vw,23px);
  font-weight: 900; color: var(--white);
  text-decoration: none; flex-shrink: 0;
  letter-spacing: .3px;
}
.hp-logo-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  background: linear-gradient(145deg, var(--red) 0%, #b93c00 100%);
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 1px rgba(255,255,255,.1),
              0 8px 28px var(--red-glow),
              inset 0 1px 0 rgba(255,255,255,.15);
  position: relative; overflow: hidden;
}
.hp-logo-icon::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(rgba(255,255,255,.12), transparent);
  pointer-events: none;
}
.hp-logo-icon svg { width: 22px; height: 22px; position: relative; z-index: 1; }
.hp-logo-name { color: var(--white); }
.hp-logo-name span { color: var(--red2); }

/* Desktop nav */
.hp-nav { display: flex; align-items: center; gap: 26px; }
.hp-nav a {
  font-size: .875rem; font-weight: 600;
  color: var(--text3); transition: color .2s;
  position: relative; padding-bottom: 2px;
}
.hp-nav a::after {
  content: ''; position: absolute; bottom: -2px; right: 0; left: 0;
  height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: right;
  transition: transform .25s;
}
.hp-nav a:hover { color: var(--text); }
.hp-nav a:hover::after { transform: scaleX(1); }

/* Hamburger */
.hp-ham {
  display: none; flex-direction: column; gap: 5px;
  padding: 4px; background: none; border: none;
}
.hp-ham span {
  display: block; width: 24px; height: 2px;
  background: var(--text2); border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.hp-ham.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hp-ham.open span:nth-child(2) { opacity: 0; }
.hp-ham.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
#hp-mobile-nav {
  display: none; flex-direction: column;
  padding: .75rem 20px 1.5rem;
  background: rgba(10,7,5,.98);
  border-top: 1px solid var(--border);
  direction: rtl;
}
#hp-mobile-nav.open { display: flex; }
#hp-mobile-nav a {
  padding: .9rem 0;
  color: var(--text3); font-size: .95rem; font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,.05);
  transition: color .2s;
}
#hp-mobile-nav a:last-child { border-bottom: none; }
#hp-mobile-nav a:hover { color: var(--text); }

/* ═══════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════ */

/* Primary — Orange gradient */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--red) 0%, #d64500 100%);
  color: #fff; font-family: var(--font);
  font-weight: 800; font-size: .92rem;
  padding: 12px 24px; border-radius: 9999px;
  box-shadow: 0 4px 20px var(--red-glow);
  transition: all .2s; border: none; cursor: pointer;
  position: relative; overflow: hidden; white-space: nowrap;
}
.btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.16) 0%, transparent 55%);
  pointer-events: none;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--red-glow);
  color: #fff;
}
.btn-primary.full { width: 100%; justify-content: center; }
.btn-primary.lg { font-size: 1rem; padding: 14px 30px; }

/* WhatsApp */
.btn-wa {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--wa); color: #fff;
  font-family: var(--font); font-weight: 800; font-size: .92rem;
  padding: 12px 24px; border-radius: 9999px;
  border: none; cursor: pointer; white-space: nowrap;
  transition: background .2s, box-shadow .2s, transform .15s;
  position: relative; overflow: hidden;
}
.btn-wa::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.14) 0%, transparent 55%);
  pointer-events: none;
}
.btn-wa:hover {
  background: var(--wa-h);
  box-shadow: 0 0 28px var(--wa-glow), 0 6px 20px rgba(0,0,0,.4);
  transform: translateY(-2px); color: #fff;
}
.btn-wa svg { width: 17px; height: 17px; flex-shrink: 0; }
.btn-wa.full { width: 100%; justify-content: center; }
.btn-wa.lg { font-size: 1rem; padding: 14px 28px; }

/* Ghost outline */
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--text2);
  font-family: var(--font); font-weight: 700; font-size: .92rem;
  padding: 11px 22px; border-radius: 9999px;
  border: 1px solid var(--border);
  transition: all .2s;
}
.btn-ghost:hover {
  border-color: var(--red-border); color: var(--text);
  background: var(--red-dim);
}

/* ═══════════════════════════════════════════════
   GLASS CARD BASE
═══════════════════════════════════════════════ */
.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: relative; overflow: hidden;
}
.glass::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-shine), transparent);
  pointer-events: none;
}

/* ═══════════════════════════════════════════════
   BADGES & LABELS
═══════════════════════════════════════════════ */
.hp-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--red-dim); border: 1px solid var(--red-border);
  color: var(--red3);
  font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 9999px;
}
.hp-badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--red2);
  animation: hpDot 2s ease-in-out infinite;
}
@keyframes hpDot { 0%,100%{opacity:1;transform:scale(1);}50%{opacity:.5;transform:scale(.8);} }

.hp-section-label {
  display: inline-block;
  font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--red2); background: var(--red-dim);
  border: 1px solid var(--red-border);
  padding: 4px 14px; border-radius: 9999px; margin-bottom: 14px;
}

/* ═══════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════ */
#hp-hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 100px 0 64px;
  position: relative; overflow: hidden;
}
.hp-orb {
  position: absolute; border-radius: 50%;
  filter: blur(100px); pointer-events: none;
}
.hp-orb-1 {
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(255,107,26,.22) 0%, transparent 70%);
  top: -120px; left: -100px;
  animation: hpOrb 11s ease-in-out infinite;
}
.hp-orb-2 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(255,194,51,.08) 0%, transparent 70%);
  bottom: -60px; right: -80px;
  animation: hpOrb 13s ease-in-out infinite reverse;
}
@keyframes hpOrb { 0%,100%{transform:translate(0,0);}50%{transform:translate(30px,-30px);} }

.hp-hero-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 56px; align-items: center; width: 100%;
}

.hp-hero-h1 {
  font-family: var(--font);
  font-size: clamp(28px,5.5vw,56px);
  font-weight: 900; line-height: 1.2;
  color: var(--white); margin-bottom: 20px;
}
.hp-hero-h1 .accent {
  background: linear-gradient(135deg, var(--red2) 0%, var(--gold2) 60%, var(--white) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hp-hero-sub {
  font-size: clamp(14px,2vw,17px); color: var(--text2);
  line-height: 1.85; margin-bottom: 36px; max-width: 540px;
}

.hp-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 48px; }

/* Stats bar */
.hp-stats {
  display: flex; flex-wrap: wrap; gap: 36px;
  padding-top: 36px; border-top: 1px solid rgba(255,255,255,.07);
}
.hp-stat-n {
  font-family: var(--font-en);
  font-size: clamp(26px,4.5vw,38px); font-weight: 900;
  color: var(--white); line-height: 1;
}
.hp-stat-n em { color: var(--red2); font-style: normal; }
.hp-stat-l { font-size: 12px; color: var(--text4); margin-top: 4px; }

/* Hero visual card */
.hp-hero-card {
  background: linear-gradient(145deg, rgba(28,19,13,.95) 0%, rgba(37,26,18,.9) 100%);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--r-xl);
  backdrop-filter: blur(24px);
  padding: 36px 28px; text-align: center;
  position: relative; overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,.5);
}
.hp-hero-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.14), transparent);
}
.hp-hero-card::after {
  content: '';
  position: absolute; top: -80px; right: -80px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(255,107,26,.12) 0%, transparent 70%);
  pointer-events: none;
}

.hp-app-icon {
  width: 90px; height: 90px; margin: 0 auto 20px;
  background: linear-gradient(145deg, var(--red) 0%, #8f2e00 100%);
  border-radius: 22px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 1px rgba(255,255,255,.1),
              0 20px 56px var(--red-glow),
              inset 0 1px 0 rgba(255,255,255,.18);
  position: relative; overflow: hidden;
}
.hp-app-icon::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(rgba(255,255,255,.14), transparent);
}
.hp-app-icon svg { width: 52px; height: 52px; position: relative; z-index: 1; }
.hp-app-name {
  font-family: var(--font-en);
  font-size: clamp(22px,3.5vw,30px); font-weight: 900;
  color: var(--white); margin-bottom: 4px;
}
.hp-app-name span { color: var(--red2); }
.hp-app-tag { font-size: 13px; color: var(--text3); margin-bottom: 20px; }
.hp-rating {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; font-size: 13px; color: var(--text3); margin-bottom: 22px;
}
.hp-stars { color: var(--gold); font-size: 15px; letter-spacing: 1px; }

.hp-mini-feats { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; text-align: right; }
.hp-mini-feat {
  display: flex; align-items: center; gap: 10px; padding: 9px 14px;
  background: rgba(255,255,255,.038);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--r-sm); font-size: 13px; color: var(--text2);
}
.hp-mini-dot {
  width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
  background: var(--red2); box-shadow: 0 0 10px var(--red);
}

/* ═══════════════════════════════════════════════
   TRUST BAND
═══════════════════════════════════════════════ */
.hp-trust-band {
  background: linear-gradient(135deg, rgba(28,19,13,.8) 0%, rgba(23,15,10,.9) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.hp-trust-inner {
  display: flex; flex-wrap: wrap; justify-content: center;
  align-items: center; gap: 8px 32px;
  font-size: 13px; color: var(--text3);
}
.hp-trust-item {
  display: flex; align-items: center; gap: 7px;
  white-space: nowrap;
}
.hp-trust-item svg { width: 16px; height: 16px; color: var(--red2); flex-shrink: 0; }

/* ═══════════════════════════════════════════════
   SECTION BASE
═══════════════════════════════════════════════ */
.hp-section { padding: 80px 0; position: relative; z-index: 1; }
.hp-section + .hp-section { border-top: 1px solid rgba(255,255,255,.05); }
.hp-sec-head { text-align: center; margin-bottom: 56px; }
.hp-sec-title {
  font-family: var(--font);
  font-size: clamp(24px,4.5vw,40px); font-weight: 900;
  color: var(--white); line-height: 1.25; margin-bottom: 14px;
}
.hp-sec-sub {
  font-size: 15px; color: var(--text3);
  max-width: 540px; margin: 0 auto; line-height: 1.85;
}

/* ═══════════════════════════════════════════════
   FEATURES GRID
═══════════════════════════════════════════════ */
.hp-feat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.hp-feat-card {
  padding: 28px 22px; direction: rtl; text-align: right;
  transition: transform .28s, border-color .28s, box-shadow .28s;
}
.hp-feat-card:hover {
  transform: translateY(-6px);
  border-color: var(--red-border);
  box-shadow: 0 24px 60px rgba(0,0,0,.5), 0 0 40px var(--red-dim);
}
.hp-feat-icon {
  width: 54px; height: 54px;
  background: var(--red-dim); border: 1px solid var(--red-border);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.hp-feat-icon svg {
  width: 24px; height: 24px; stroke: var(--red3);
  fill: none; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.hp-feat-title { font-size: 15px; font-weight: 800; color: var(--white); margin-bottom: 8px; line-height: 1.4; }
.hp-feat-desc  { font-size: 13px; color: var(--text3); line-height: 1.8; }

/* ═══════════════════════════════════════════════
   SETUP STEPS
═══════════════════════════════════════════════ */
.hp-steps-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; position: relative; }
.hp-step {
  padding: 30px 22px; text-align: center;
  transition: transform .25s, border-color .25s;
}
.hp-step:hover { transform: translateY(-5px); border-color: var(--red-border); }
.hp-step-num {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--red) 0%, #b93c00 100%);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-en); font-size: 20px; font-weight: 900; color: #fff;
  margin: 0 auto 18px;
  box-shadow: 0 6px 22px var(--red-glow);
}

/* connector line */
.hp-steps-grid .hp-step:not(:last-child)::after {
  display: none; /* handled via before-pseudo on connector div */
}
.hp-steps-connector {
  display: none;
  position: absolute; top: 44px;
  right: calc(12.5% + 26px);
  left:  calc(12.5% + 26px);
  height: 2px;
  border-top: 2px dashed rgba(255,107,26,.25);
  pointer-events: none; z-index: 0;
}

.hp-step-title { font-size: 15px; font-weight: 800; color: var(--white); margin-bottom: 8px; }
.hp-step-desc  { font-size: 13px; color: var(--text3); line-height: 1.8; direction: rtl; }

/* ═══════════════════════════════════════════════
   PRICING
═══════════════════════════════════════════════ */
.hp-pricing-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 22px; align-items: stretch;
}
.hp-plan {
  padding: 36px 28px;
  display: flex; flex-direction: column; gap: 22px;
  position: relative; direction: rtl; text-align: right;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.hp-plan:hover {
  transform: translateY(-7px);
  border-color: var(--red-border);
  box-shadow: 0 32px 80px rgba(0,0,0,.55), 0 0 50px var(--red-dim);
}
.hp-plan.popular {
  background: linear-gradient(155deg,
    rgba(255,107,26,.16) 0%, rgba(255,255,255,.05) 55%, rgba(255,107,26,.08) 100%);
  border-color: rgba(255,107,26,.4);
  transform: scale(1.045);
  box-shadow: 0 0 0 1px rgba(255,107,26,.28),
              0 32px 80px rgba(0,0,0,.55),
              0 0 80px rgba(255,107,26,.14);
}
.hp-plan.popular:hover { transform: scale(1.045) translateY(-7px); }
.hp-plan.popular::after {
  content: ''; position: absolute; top: 0; right: -100%;
  width: 55%; height: 100%;
  background: linear-gradient(270deg, transparent, rgba(255,255,255,.04), transparent);
  animation: hpShine 5s ease-in-out infinite; pointer-events: none;
}
@keyframes hpShine { 0%{right:-100%} 60%{right:150%} 100%{right:150%} }

.hp-pop-badge {
  position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--red), var(--red2));
  color: #fff; font-size: 11px; font-weight: 900;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 18px; border-radius: 9999px;
  box-shadow: 0 4px 16px var(--red-glow); white-space: nowrap;
}
.hp-plan-name {
  font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--red3); margin-bottom: 10px;
}
.hp-plan.popular .hp-plan-name { color: var(--red2); }

.hp-price-row {
  display: flex; align-items: baseline; gap: 4px;
  line-height: 1; direction: ltr; justify-content: flex-end;
}
.hp-price-cur { font-size: 20px; color: var(--text3); margin-top: 5px; }
.hp-price-val {
  font-family: var(--font-en);
  font-size: clamp(40px,6vw,58px); font-weight: 900; color: var(--white);
}
.hp-price-per { font-size: 13px; color: var(--text4); align-self: flex-end; padding-bottom: 4px; }
.hp-price-note { font-size: 12px; color: var(--text4); margin-top: 5px; }
.hp-save-badge {
  display: inline-block;
  background: var(--red-dim); border: 1px solid var(--red-border);
  color: var(--red3); font-size: 11px; font-weight: 900;
  padding: 3px 12px; border-radius: 6px; margin-top: 7px;
}
.hp-plan-feats { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.hp-plan-feats li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text2); }
.hp-chk {
  width: 20px; height: 20px; flex-shrink: 0;
  background: var(--red-dim); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.hp-chk svg { width: 11px; height: 11px; stroke: var(--red2); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Trust row */
.hp-trust-row {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 8px 24px; margin-top: 28px;
  font-size: 12px; color: var(--text4);
}

/* ═══════════════════════════════════════════════
   CTA BAND
═══════════════════════════════════════════════ */
.hp-cta-band {
  padding: 60px 40px; text-align: center;
  background: linear-gradient(135deg,
    rgba(255,107,26,.16) 0%, rgba(255,255,255,.04) 52%, rgba(255,107,26,.08) 100%);
  border: 1px solid rgba(255,107,26,.28);
  border-radius: var(--r-xl); position: relative; overflow: hidden;
}
.hp-cta-band::before {
  content: ''; position: absolute;
  top: -90px; left: 50%; transform: translateX(-50%);
  width: 400px; height: 300px;
  background: radial-gradient(ellipse, rgba(255,107,26,.22) 0%, transparent 70%);
  pointer-events: none;
}
.hp-cta-band h2 {
  font-family: var(--font);
  font-size: clamp(24px,4.5vw,38px); font-weight: 900;
  color: var(--white); margin: 16px 0 12px; line-height: 1.25;
  position: relative; z-index: 1;
}
.hp-cta-band p {
  font-size: 15px; color: var(--text3); max-width: 440px;
  margin: 0 auto 32px; line-height: 1.85;
  position: relative; z-index: 1;
}
.hp-cta-btns {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 14px; position: relative; z-index: 1;
}

/* ═══════════════════════════════════════════════
   TESTIMONIALS
═══════════════════════════════════════════════ */
.hp-testimonials-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.hp-testimonial {
  padding: 26px 22px; direction: rtl; text-align: right;
}
.hp-testi-stars { color: var(--gold); font-size: 14px; margin-bottom: 12px; letter-spacing: 1px; }
.hp-testi-text {
  font-size: 14px; color: var(--text2); line-height: 1.85;
  margin-bottom: 16px; font-style: italic;
}
.hp-testi-text::before { content: '"'; color: var(--red2); font-size: 1.2em; }
.hp-testi-text::after  { content: '"'; color: var(--red2); font-size: 1.2em; }
.hp-testi-author {
  display: flex; align-items: center; gap: 10px;
}
.hp-testi-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--red) 0%, #702400 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800; color: #fff;
}
.hp-testi-name { font-size: 13px; font-weight: 700; color: var(--white); }
.hp-testi-loc  { font-size: 11px; color: var(--text4); margin-top: 1px; }

/* ═══════════════════════════════════════════════
   FAQ
═══════════════════════════════════════════════ */
.hp-faq-wrap { max-width: 760px; margin: 0 auto; }
.hp-faq-list { display: flex; flex-direction: column; gap: 10px; }
.hp-faq-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r); overflow: hidden; transition: border-color .2s;
}
.hp-faq-item.open { border-color: var(--red-border); }
.hp-faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  gap: 12px; padding: 18px 22px; text-align: right;
  font-family: var(--font); font-size: 14px; font-weight: 800;
  color: var(--text); background: none; border: none; cursor: pointer;
  transition: color .2s; direction: rtl;
}
.hp-faq-q:hover { color: var(--white); }
.hp-faq-arrow {
  width: 18px; height: 18px; flex-shrink: 0;
  stroke: var(--red2); fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform .25s;
}
.hp-faq-item.open .hp-faq-arrow { transform: rotate(180deg); }
.hp-faq-a {
  display: none; padding: 0 22px 18px;
  font-size: 14px; color: var(--text3); line-height: 1.9;
  border-top: 1px solid var(--border); padding-top: 14px;
  direction: rtl; text-align: right;
}
.hp-faq-item.open .hp-faq-a { display: block; }
.hp-faq-cta { text-align: center; margin-top: 36px; }
.hp-faq-cta p { font-size: 14px; color: var(--text4); margin-bottom: 16px; }

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
#hp-footer {
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 56px 0 24px; position: relative; z-index: 1;
}
.hp-footer-inner {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.05);
  direction: rtl;
}
.hp-footer-brand p {
  font-size: 14px; color: var(--text4); line-height: 1.85;
  margin-top: 14px; max-width: 280px;
}
.hp-footer-col-title {
  font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text); margin-bottom: 16px;
}
.hp-footer-links { display: flex; flex-direction: column; gap: 10px; }
.hp-footer-links a {
  font-size: 14px; color: var(--text4);
  transition: color .2s; display: flex; align-items: center; gap: 6px;
}
.hp-footer-links a:hover { color: var(--text); }
.hp-footer-links a.accent { color: var(--red3) !important; }
.hp-footer-links a.wa-link { color: var(--wa) !important; }
.hp-footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 14px; padding-top: 24px;
  font-size: 12px; color: var(--text4); direction: rtl;
}
.hp-footer-payments { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hp-pay-badge {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 4px 10px;
  font-size: 11px; font-weight: 700; color: var(--text3);
}
.hp-disclaimer {
  grid-column: 1/-1; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.04);
  font-size: 11px; color: var(--text4); line-height: 1.7;
  text-align: center; direction: rtl;
}

/* ═══════════════════════════════════════════════
   FLOATING WHATSAPP
═══════════════════════════════════════════════ */
#hp-float {
  position: fixed; bottom: 24px; left: 24px; z-index: 9999;
  width: 60px; height: 60px; background: var(--wa); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 28px var(--wa-glow), 0 2px 8px rgba(0,0,0,.4);
  transition: transform .2s, box-shadow .2s; text-decoration: none;
  animation: hpWaPulse 3.5s ease-in-out infinite;
}
#hp-float:hover {
  transform: scale(1.12); box-shadow: 0 10px 44px var(--wa-glow);
  animation-play-state: paused;
}
#hp-float svg { width: 32px; height: 32px; }
#hp-float::before {
  content: ''; position: absolute; inset: -5px; border-radius: 50%;
  border: 2px solid rgba(37,211,102,.38);
  animation: hpWaRing 3.5s ease-in-out infinite;
}
@keyframes hpWaPulse { 0%,100%{transform:scale(1);}50%{transform:scale(1.06);} }
@keyframes hpWaRing  { 0%{transform:scale(1);opacity:.6;} 70%{transform:scale(1.38);opacity:0;} 100%{transform:scale(1.38);opacity:0;} }

/* ═══════════════════════════════════════════════
   PAGE INNER (legal + about pages)
═══════════════════════════════════════════════ */
.hp-page-hero {
  padding: 60px 0 40px; text-align: center;
  position: relative; z-index: 1;
}
.hp-page-hero h1 {
  font-family: var(--font);
  font-size: clamp(28px,5vw,48px); font-weight: 900;
  color: var(--white); margin: 12px 0 10px; line-height: 1.25;
}
.hp-page-hero p {
  font-size: 15px; color: var(--text3);
  max-width: 520px; margin: 0 auto; line-height: 1.85;
}
.hp-page-content {
  max-width: 840px; margin: 0 auto;
  padding: 0 20px 80px; position: relative; z-index: 1;
}
.hp-page-content h2 {
  font-size: 1.5rem; color: var(--white); font-weight: 800;
  margin: 2.75rem 0 .85rem; padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}
.hp-page-content h2:first-of-type { border-top: none; padding-top: 0; margin-top: .5rem; }
.hp-page-content h3 { font-size: 1.05rem; color: var(--text); font-weight: 700; margin: 1.5rem 0 .55rem; }
.hp-page-content p { font-size: .925rem; color: var(--text2); line-height: 1.95; margin-bottom: 1.15rem; }
.hp-page-content ul, .hp-page-content ol { padding-right: 1.5rem; margin-bottom: 1.25rem; }
.hp-page-content li { font-size: .9rem; color: var(--text3); line-height: 1.85; margin-bottom: .5rem; }
.hp-page-content strong { color: var(--text); font-weight: 700; }
.hp-page-content a { color: var(--red2); text-decoration: underline; text-underline-offset: 3px; }
.hp-page-content a:hover { color: var(--red3); }

.hp-info-box {
  background: var(--red-dim); border: 1px solid var(--red-border);
  border-radius: var(--r); padding: 1.25rem 1.5rem;
  display: flex; gap: 12px; align-items: flex-start; margin: 1.5rem 0;
}
.hp-info-box svg { flex-shrink: 0; width: 22px; height: 22px; stroke: var(--red3); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.hp-info-box p { margin: 0; font-size: .875rem; color: var(--text2); line-height: 1.85; }
.hp-info-box.green { background: rgba(37,211,102,.09); border-color: rgba(37,211,102,.25); }
.hp-info-box.green svg { stroke: var(--wa); }

.hp-page-table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: .875rem; }
.hp-page-table th {
  background: var(--bg-card2); color: var(--white); font-weight: 700;
  padding: .75rem 1rem; text-align: right; border-bottom: 2px solid var(--border);
}
.hp-page-table td {
  padding: .7rem 1rem; color: var(--text3); border-bottom: 1px solid var(--border); vertical-align: top;
}
.hp-page-table tr:last-child td { border-bottom: none; }
.hp-page-table tr:hover td { background: rgba(255,255,255,.02); }

.hp-quick-nav {
  background: var(--bg-card); border-bottom: 1px solid var(--border);
  padding: .85rem 0; overflow-x: auto;
}
.hp-quick-nav-inner {
  display: flex; align-items: center; gap: .85rem;
  flex-wrap: nowrap; min-width: max-content; padding: 0 20px;
}
.hp-quick-nav-inner a {
  font-size: .8rem; font-weight: 600; color: var(--text3);
  transition: color .2s; white-space: nowrap;
}
.hp-quick-nav-inner a:hover { color: var(--red2); }
.hp-quick-nav-inner .sep { color: var(--border); }

.hp-last-updated {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .78rem; color: var(--text4);
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 9999px; padding: .3rem .9rem; margin-top: .75rem;
}

/* values grid */
.hp-values-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; margin: 1.5rem 0; }
.hp-value-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.5rem;
  transition: border-color .2s;
}
.hp-value-card:hover { border-color: var(--red-border); }
.hp-value-card-icon { font-size: 1.6rem; margin-bottom: .6rem; }
.hp-value-card h3 { font-size: 1rem; color: var(--white); margin-bottom: .4rem; }
.hp-value-card p { font-size: .84rem; line-height: 1.75; margin: 0; }

/* trust stats */
.hp-trust-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; text-align: center; margin: 2rem 0; }
.hp-trust-stat-num { font-family: var(--font-en); font-size: 2.2rem; font-weight: 900; color: var(--red2); line-height: 1; }
.hp-trust-stat-label { font-size: .8rem; color: var(--text4); margin-top: .3rem; }

/* breadcrumb */
.hp-breadcrumbs {
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  font-size: .8rem; color: var(--text4); margin-bottom: 1.25rem;
}
.hp-breadcrumbs a { color: var(--text3); transition: color .2s; }
.hp-breadcrumbs a:hover { color: var(--red2); }
.hp-breadcrumbs .sep { color: var(--border); }

/* ═══════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════ */
@keyframes fadeUp { from{opacity:0;transform:translateY(26px);}to{opacity:1;transform:translateY(0);} }
.fade-up { animation: fadeUp .75s cubic-bezier(.22,1,.36,1) both; }
.d1{animation-delay:.08s} .d2{animation-delay:.18s}
.d3{animation-delay:.30s} .d4{animation-delay:.44s}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--red); border-radius: 3px; }

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media(max-width:1100px){
  .hp-feat-grid { grid-template-columns: repeat(2,1fr); }
  .hp-steps-grid { grid-template-columns: repeat(2,1fr); }
  .hp-pricing-grid { grid-template-columns: repeat(2,1fr); }
  .hp-plan.popular { transform: none; }
  .hp-plan.popular:hover { transform: translateY(-7px); }
  .hp-testimonials-grid { grid-template-columns: 1fr 1fr; }
  .hp-footer-inner { grid-template-columns: 1fr 1fr; }
  .hp-trust-stats { grid-template-columns: repeat(2,1fr); }
}
@media(max-width:860px){
  .hp-hero-grid { grid-template-columns: 1fr; }
  .hp-hero-card { max-width: 400px; margin: 0 auto; }
  .hp-pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .hp-nav { display: none; }
  .hp-ham { display: flex; }
  .hp-header-inner .btn-primary,
  .hp-header-inner .btn-wa { display: none; }
  .hp-section { padding: 56px 0; }
  .hp-cta-band { padding: 44px 24px; }
  .hp-values-grid { grid-template-columns: 1fr; }
}
@media(max-width:640px){
  .hp-feat-grid { grid-template-columns: 1fr; }
  .hp-steps-grid { grid-template-columns: 1fr; }
  .hp-testimonials-grid { grid-template-columns: 1fr; }
  .hp-footer-inner { grid-template-columns: 1fr; }
  .hp-hero-ctas { flex-direction: column; }
  .hp-hero-ctas .btn-primary, .hp-hero-ctas .btn-wa, .hp-hero-ctas .btn-ghost { width: 100%; justify-content: center; }
  .hp-cta-btns { flex-direction: column; align-items: center; }
  .hp-cta-btns > * { width: 100%; justify-content: center; }
  .hp-stats { gap: 20px; }
  #hp-hero { padding: 82px 0 48px; }
  .hp-page-hero { padding: 40px 0 28px; }
}


/* ═══════════════════════════════════════════════
   الرأس: أيقونة السلة + الجوال
═══════════════════════════════════════════════ */
.hp-cart-link { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); color: var(--text); transition: all .2s; }
.hp-cart-link:hover { border-color: var(--red-border); color: var(--red3); }
.hp-cart-count { position: absolute; top: -5px; left: -5px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; }

/* ═══════════════════════════════════════════════
   المدونة
═══════════════════════════════════════════════ */
.hp-blog-wrap { padding-bottom: 60px; }
.hp-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.hp-post-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; border-radius: var(--r-lg); transition: transform .2s, border-color .2s; }
.hp-post-card:hover { transform: translateY(-5px); border-color: var(--red-border); }
.hp-post-thumb { display: block; aspect-ratio: 16/10; background: var(--bg-card2); overflow: hidden; }
.hp-post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.hp-post-card:hover .hp-post-thumb img { transform: scale(1.05); }
.hp-thumb-ph { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 2.5rem; color: var(--red); opacity: .5; }
.hp-post-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.hp-post-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--text3); }
.hp-post-meta a { color: var(--red2); font-weight: 700; }
.hp-post-title { font-size: 1.08rem; font-weight: 800; line-height: 1.6; color: var(--white); }
.hp-post-title a:hover { color: var(--red2); }
.hp-post-excerpt { font-size: .86rem; color: var(--text3); line-height: 1.85; flex: 1; }
.hp-post-more { color: var(--red2); font-weight: 700; font-size: .85rem; }
.hp-post-more:hover { color: var(--red3); }
.hp-single-meta { justify-content: flex-start; margin-top: 14px; }
.hp-single-thumb { border-radius: var(--r-lg); overflow: hidden; margin-bottom: 2rem; border: 1px solid var(--border); }
.hp-single-thumb img { width: 100%; height: auto; }
.hp-entry { max-width: none; }
.hp-entry img { border-radius: var(--r); margin: 1.5rem auto; height: auto; }
.hp-entry blockquote { border-right: 3px solid var(--red); padding: 1rem 1.25rem; margin: 1.5rem 0; background: var(--surface); border-radius: var(--r-sm); color: var(--text2); }
.hp-entry pre, .hp-entry code { background: var(--bg-card); border-radius: var(--r-sm); padding: 2px 6px; direction: ltr; }
.hp-entry pre { padding: 1rem; overflow-x: auto; }
.hp-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 1.5rem 0; }
.hp-tags a { font-size: 12px; padding: 5px 12px; border-radius: 9999px; background: var(--surface); border: 1px solid var(--border); color: var(--text3); }
.hp-tags a:hover { border-color: var(--red-border); color: var(--red3); }
.hp-post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 2rem 0; }
.hp-post-nav a { padding: 16px 18px; border-radius: var(--r); font-weight: 700; color: var(--text); font-size: .9rem; }
.hp-post-nav a small { display: block; color: var(--red2); font-size: 11px; margin-bottom: 4px; }
.hp-post-nav a:last-child { text-align: left; }
.hp-post-nav a:hover { border-color: var(--red-border); }

/* ترقيم الصفحات (مدونة + متجر) */
.hp-pagination, .woocommerce-pagination { margin: 40px 0 0; }
.hp-pagination ul, .woocommerce-pagination ul { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.hp-pagination a, .hp-pagination span, .woocommerce-pagination a, .woocommerce-pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 14px; border-radius: 9999px; background: var(--surface); border: 1px solid var(--border); color: var(--text2); font-weight: 700; font-size: .85rem; }
.hp-pagination a:hover, .woocommerce-pagination a:hover { border-color: var(--red-border); color: var(--red3); }
.hp-pagination .current, .woocommerce-pagination .current { background: var(--red); border-color: var(--red); color: #fff; }

/* التعليقات */
.hp-comments { margin: 2.5rem 0 4rem; }
.hp-comments-title, .comment-reply-title { font-size: 1.15rem; color: var(--white); margin-bottom: 1.2rem; font-weight: 800; }
.hp-comment-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 2rem; }
.hp-comment-list .comment-body { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r); padding: 16px; font-size: .9rem; }
.hp-comment-list .children { margin: 12px 24px 0 0; display: flex; flex-direction: column; gap: 12px; }
.hp-comment-list .avatar { display: inline-block; border-radius: 50%; margin-left: 10px; vertical-align: middle; }
.comment-form p { margin-bottom: 14px; }
.comment-form label { display: block; font-size: .85rem; margin-bottom: 6px; color: var(--text2); }

/* ═══════════════════════════════════════════════
   حقول النماذج (تعليقات + WooCommerce)
═══════════════════════════════════════════════ */
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=search], input[type=url], select, textarea {
  width: 100%; background: var(--bg-card); border: 1px solid var(--border); color: var(--text);
  border-radius: var(--r-sm); padding: 11px 14px; font-family: var(--font); font-size: .9rem; transition: border-color .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-dim); }
select { appearance: none; }
textarea { min-height: 110px; }
input[type=submit], .comment-form .submit {
  background: linear-gradient(135deg, var(--red), #d64500); color: #fff; font-weight: 800; padding: 12px 26px;
  border-radius: 9999px; border: none; cursor: pointer; font-family: var(--font); box-shadow: 0 4px 20px var(--red-glow);
}

/* ═══════════════════════════════════════════════
   WooCommerce
═══════════════════════════════════════════════ */
.hp-woo-wrap { padding-bottom: 70px; }
.woocommerce-breadcrumb a { color: inherit; }
.woocommerce-result-count, .woocommerce-ordering { display: inline-block; font-size: .85rem; color: var(--text3); margin-bottom: 20px; }
.woocommerce-ordering { float: left; }
.woocommerce-ordering select { width: auto; padding: 8px 14px; }
.woocommerce-products-header { margin-bottom: 10px; }
.woocommerce-products-header__title { display: none; }

ul.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; clear: both; }
.hp-product-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; border-radius: var(--r-lg); position: relative; transition: transform .2s, border-color .2s; }
.hp-product-card:hover { transform: translateY(-5px); border-color: var(--red-border); }
.hp-product-thumb { display: block; position: relative; aspect-ratio: 1/1; background: var(--bg-card2); overflow: hidden; }
.hp-product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hp-sale-badge, span.onsale { position: absolute; top: 12px; right: 12px; z-index: 2; background: var(--red); color: #fff; font-size: 12px; font-weight: 800; padding: 4px 12px; border-radius: 9999px; }
.hp-product-body { padding: 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.hp-product-body .hp-plan-name a:hover { color: var(--red2); }
.hp-product-price, p.price, span.price { font-family: var(--font-en); font-size: 1.5rem; font-weight: 900; color: var(--white); }
.price del { font-size: .95rem; color: var(--text4); margin-left: 8px; }
.price ins { text-decoration: none; color: var(--red2); }
.hp-product-body .button { margin-top: auto; }

/* الأزرار */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
a.button, button.button, .single_add_to_cart_button, .add_to_cart_button, #place_order {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, var(--red) 0%, #d64500 100%); color: #fff !important;
  font-family: var(--font); font-weight: 800; font-size: .92rem; padding: 12px 24px; border-radius: 9999px;
  box-shadow: 0 4px 20px var(--red-glow); border: none; cursor: pointer; transition: all .2s; text-align: center;
}
a.button:hover, button.button:hover, .single_add_to_cart_button:hover, .add_to_cart_button:hover, #place_order:hover { transform: translateY(-2px); box-shadow: 0 8px 32px var(--red-glow); }
a.button.added::after { content: '✓'; }
a.added_to_cart { display: inline-block; margin-top: 8px; color: var(--red2); font-weight: 700; font-size: .85rem; }
button.button.disabled, button.button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
#place_order { width: 100%; font-size: 1rem; padding: 15px; }
.woocommerce a.button.alt, .woocommerce a.checkout-button { width: 100%; padding: 15px; }
.woocommerce .button.wc-forward.wp-element-button, .checkout-button { width: 100%; }

/* رسائل التنبيه */
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-notice {
  background: var(--bg-card); border: 1px solid var(--border); border-right: 4px solid var(--wa);
  border-radius: var(--r-sm); padding: 14px 18px; margin: 0 0 24px; font-size: .9rem; color: var(--text2);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; list-style: none;
}
.woocommerce-info { border-right-color: var(--gold); }
.woocommerce-error { border-right-color: var(--red); }
.woocommerce-message .button, .woocommerce-info .button { padding: 8px 18px; font-size: .8rem; order: 2; }

/* صفحة المنتج */
.woocommerce div.product, .single-product div.product { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; position: relative; }
.woocommerce-product-gallery { position: relative; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.woocommerce-product-gallery img { width: 100%; height: auto; }
.woocommerce-product-gallery .flex-control-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 8px; }
.woocommerce-product-gallery .flex-control-thumbs img { border-radius: var(--r-sm); cursor: pointer; opacity: .6; }
.woocommerce-product-gallery .flex-control-thumbs img.flex-active, .woocommerce-product-gallery .flex-control-thumbs img:hover { opacity: 1; }
.woocommerce-product-gallery__trigger { position: absolute; top: 12px; left: 12px; z-index: 5; width: 36px; height: 36px; border-radius: 50%; background: rgba(0,0,0,.6); font-size: 0; }
.woocommerce-product-gallery__trigger::after { content: '⤢'; font-size: 16px; color: #fff; }
.summary.entry-summary { display: flex; flex-direction: column; gap: 14px; }
.product_title { font-size: 1.7rem; color: var(--white); font-weight: 900; line-height: 1.5; }
.woocommerce-product-details__short-description { color: var(--text2); font-size: .95rem; line-height: 1.95; }
.product_meta { font-size: .82rem; color: var(--text3); display: flex; flex-direction: column; gap: 4px; padding-top: 14px; border-top: 1px solid var(--border); }
.product_meta a { color: var(--red2); }
form.cart { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 6px 0; }
form.cart .variations { width: 100%; margin-bottom: 8px; }
form.cart .variations td, form.cart .variations th { padding: 6px 0; display: block; text-align: right; }
.quantity input.qty { width: 84px; text-align: center; padding: 11px 6px; }
.star-rating { position: relative; display: inline-block; height: 1.1em; width: 5.4em; font-size: 1rem; line-height: 1; overflow: hidden; letter-spacing: 2px; direction: ltr; }
.star-rating::before { content: '★★★★★'; color: var(--text4); position: absolute; top: 0; left: 0; }
.star-rating span { position: absolute; top: 0; left: 0; overflow: hidden; padding-top: 1.5em; }
.star-rating span::before { content: '★★★★★'; color: var(--gold2); position: absolute; top: 0; left: 0; }

.woocommerce-tabs { grid-column: 1 / -1; margin-top: 20px; }
.woocommerce-tabs ul.tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--border); margin-bottom: 24px; flex-wrap: wrap; }
.woocommerce-tabs ul.tabs li a { display: block; padding: 12px 22px; font-weight: 700; color: var(--text3); border-bottom: 2px solid transparent; }
.woocommerce-tabs ul.tabs li.active a { color: var(--red2); border-bottom-color: var(--red); }
.woocommerce-Tabs-panel { font-size: .93rem; line-height: 2; color: var(--text2); }
.woocommerce-Tabs-panel h2 { color: var(--white); font-size: 1.15rem; margin-bottom: 12px; }
.woocommerce-Tabs-panel p { margin-bottom: 1rem; }
.related.products, .up-sells { grid-column: 1 / -1; margin-top: 30px; }
.related.products > h2, .up-sells > h2 { color: var(--white); font-size: 1.3rem; margin-bottom: 20px; }
#reviews .commentlist { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
#reviews .commentlist li { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r); padding: 16px; }

/* جداول السلة والدفع */
table.shop_table { width: 100%; border-collapse: collapse; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; font-size: .9rem; }
table.shop_table th, table.shop_table td { padding: 14px 16px; text-align: right; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.shop_table th { color: var(--white); font-weight: 700; background: var(--bg-card2); }
table.shop_table .product-thumbnail img { width: 64px; border-radius: var(--r-sm); }
table.shop_table .product-name a { color: var(--white); font-weight: 700; }
table.shop_table a.remove { display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; border-radius: 50%; background: var(--red-dim); color: var(--red2) !important; font-size: 18px; }
table.shop_table a.remove:hover { background: var(--red); color: #fff !important; }
.woocommerce-cart-form .actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: space-between; }
.woocommerce-cart-form .coupon { display: flex; gap: 8px; flex-wrap: wrap; }
.woocommerce-cart-form .coupon input { width: 180px; }
.cart-collaterals { display: flex; justify-content: flex-end; margin-top: 30px; }
.cart_totals { width: 100%; max-width: 440px; }
.cart_totals h2, #order_review_heading, .woocommerce-billing-fields h3, .woocommerce-additional-fields h3, .woocommerce-shipping-fields h3, .woocommerce-column__title, .woocommerce-order-details__title { font-size: 1.15rem; color: var(--white); margin-bottom: 14px; }
.wc-proceed-to-checkout { margin-top: 16px; }

/* إتمام الطلب */
form.checkout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: start; }
form.checkout #customer_details { grid-column: 1; }
form.checkout #order_review_heading, form.checkout #order_review { grid-column: 2; }
form.checkout #order_review_heading { grid-row: 1; }
form.checkout #order_review { grid-row: 1; margin-top: 2.6rem; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px; }
form.checkout #order_review table.shop_table { border: none; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: var(--text2); }
.form-row .required { color: var(--red2); text-decoration: none; }
.form-row-first, .form-row-last { width: 100%; }
.select2-container .select2-selection { background: var(--bg-card) !important; border: 1px solid var(--border) !important; height: 44px !important; border-radius: var(--r-sm) !important; }
.select2-container .select2-selection__rendered { color: var(--text) !important; line-height: 42px !important; }
#payment { background: transparent; }
#payment ul.payment_methods { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
#payment ul.payment_methods li { background: var(--bg-card2); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 12px 14px; }
#payment ul.payment_methods li label { display: inline; cursor: pointer; font-weight: 700; color: var(--white); }
#payment .payment_box { font-size: .82rem; color: var(--text3); margin-top: 8px; }
.woocommerce-privacy-policy-text { font-size: .8rem; color: var(--text3); margin-bottom: 14px; }

/* حسابي */
.woocommerce-account .woocommerce { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: start; }
.woocommerce-MyAccount-navigation ul { display: flex; flex-direction: column; gap: 6px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r); padding: 10px; }
.woocommerce-MyAccount-navigation a { display: block; padding: 10px 14px; border-radius: var(--r-sm); color: var(--text2); font-weight: 600; font-size: .9rem; }
.woocommerce-MyAccount-navigation .is-active a, .woocommerce-MyAccount-navigation a:hover { background: var(--red-dim); color: var(--red2); }
.woocommerce-MyAccount-content { font-size: .93rem; }
.woocommerce-MyAccount-content a:not(.button) { color: var(--red2); }
.woocommerce-account:not(.logged-in) .woocommerce, .woocommerce-account .u-columns { display: block; }
.woocommerce-form-login, .woocommerce-form-register { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; max-width: 480px; }
.u-columns { display: grid !important; grid-template-columns: 1fr 1fr; gap: 24px; }
.woocommerce-order-received .woocommerce-order { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px; }
ul.woocommerce-order-overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 20px 0; }
ul.woocommerce-order-overview li { background: var(--bg-card2); padding: 12px 14px; border-radius: var(--r-sm); font-size: .8rem; color: var(--text3); }
ul.woocommerce-order-overview li strong { display: block; color: var(--white); font-size: .95rem; }

@media (max-width: 900px) {
  .hp-blog-grid, ul.products { grid-template-columns: repeat(2, 1fr); }
  .woocommerce div.product, .single-product div.product, form.checkout, .woocommerce-account .woocommerce, .u-columns { grid-template-columns: 1fr !important; }
  form.checkout #customer_details, form.checkout #order_review_heading, form.checkout #order_review { grid-column: 1; grid-row: auto; margin-top: 0; }
}
@media (max-width: 600px) {
  .hp-blog-grid, ul.products, .hp-post-nav { grid-template-columns: 1fr; }
  table.shop_table_responsive thead { display: none; }
  table.shop_table_responsive tr td { display: flex; justify-content: space-between; gap: 10px; }
  table.shop_table_responsive tr td::before { content: attr(data-title); font-weight: 700; color: var(--white); }
  .product_title { font-size: 1.35rem; }
}

/* ═══ قسم الدليل (SEO) ═══ */
.hp-seo-intro { max-width: 860px; margin: 0 auto 36px; text-align: center; }
.hp-seo-intro p { font-size: 1rem; color: var(--text2); line-height: 2.05; }
.hp-seo-intro strong, .hp-seo-card strong { color: var(--white); }
.hp-seo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hp-seo-card { padding: 24px; border-radius: var(--r-lg); }
.hp-seo-card h3 { font-size: 1.02rem; font-weight: 800; color: var(--white); margin-bottom: 10px; }
.hp-seo-card p { font-size: .88rem; color: var(--text3); line-height: 1.95; }
.hp-seo-card a, .hp-seo-more a { color: var(--red2); text-decoration: underline; text-underline-offset: 3px; }
.hp-seo-more { text-align: center; margin-top: 28px; font-size: .9rem; color: var(--text3); }
@media (max-width: 900px) { .hp-seo-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .hp-seo-grid { grid-template-columns: 1fr; } }

/* ── مقال SEO الرئيسي (الصفحة الرئيسية) ── */
.hp-article { max-width: 860px; margin: 0 auto; }
.hp-article-head { text-align: center; margin-bottom: 28px; }
.hp-toc { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 36px; }
.hp-toc a { font-size: .8rem; color: var(--text2); padding: 7px 14px; border: 1px solid var(--border); border-radius: 9999px; transition: color .2s, border-color .2s; }
.hp-toc a:hover { color: var(--white); border-color: var(--red2); }
.hp-article h3 { font-size: 1.3rem; font-weight: 800; color: var(--white); margin: 2.4rem 0 .9rem; scroll-margin-top: 90px; }
.hp-article p { font-size: .98rem; color: var(--text2); line-height: 2.1; margin-bottom: 1rem; }
.hp-article strong { color: var(--white); }
.hp-article a { color: var(--red2); text-decoration: underline; text-underline-offset: 3px; }
.hp-article-steps, .hp-article-list { margin: 0 0 1.2rem; padding-inline-start: 1.4rem; color: var(--text2); font-size: .95rem; line-height: 2.05; }
.hp-article-steps li, .hp-article-list li { margin-bottom: .35rem; }
.hp-table-scroll { overflow-x: auto; margin: 1rem 0 1.4rem; }
.hp-table-scroll .hp-page-table { min-width: 520px; }
.hp-table-scroll .hp-page-table th, .hp-table-scroll .hp-page-table td { text-align: right; }
.hp-device-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 1rem 0 1.4rem; }
.hp-device { padding: 18px 20px; border-radius: var(--r-lg); }
.hp-device h4 { font-size: .98rem; font-weight: 800; color: var(--white); margin-bottom: 6px; }
.hp-device p { font-size: .86rem !important; color: var(--text3) !important; line-height: 1.9 !important; margin: 0 !important; }
@media (max-width: 600px) { .hp-device-grid { grid-template-columns: 1fr; } }
