/*
Theme Name: Cards Store - متجر البطاقات الرقمية
Theme URI: https://mozn.ps
Author: شركة المزن العصرية
Author URI: https://mozn.ps
Description: قالب ووردبريس احترافي لمتاجر البطاقات الرقمية وبطاقات الألعاب والشحن. تصميم عصري مع دعم كامل للغة العربية و RTL. متوافق مع WooCommerce.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cards-store
Tags: rtl-language-support, right-to-left, e-commerce, custom-menu, custom-logo, featured-images, theme-options, translation-ready
*/

/* ============================================
   CSS VARIABLES & RESET
   ============================================ */
:root {
  --primary: #6C3BF5;
  --primary-light: #8B5CF6;
  --primary-dark: #5028C6;
  --primary-bg: rgba(108, 59, 245, 0.06);
  --primary-bg-hover: rgba(108, 59, 245, 0.10);
  --accent: #FF6B35;
  --accent-light: #FF8F5E;
  --accent-bg: rgba(255, 107, 53, 0.08);
  --green: #16A34A;
  --green-bg: rgba(22, 163, 74, 0.08);
  --blue: #2563EB;
  --blue-bg: rgba(37, 99, 235, 0.08);
  --red: #DC2626;
  --red-bg: rgba(220, 38, 38, 0.08);

  --bg-body: #F7F8FC;
  --bg-white: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FAFAFF;
  --bg-surface: #F1F3F9;
  --bg-input: #F4F5FA;

  --text-primary: #1A1D2E;
  --text-secondary: #5A6178;
  --text-muted: #9CA3B8;
  --text-heading: #0F1120;

  --border-color: #E5E7EB;
  --border-light: #F0F1F5;
  --border-focus: rgba(108, 59, 245, 0.4);

  --shadow-xs: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.10);
  --shadow-card-hover: 0 12px 40px rgba(108, 59, 245, 0.12);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Tajawal', sans-serif;
  background: var(--bg-body);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, textarea, select {
  font-family: inherit;
}

/* ============================================
   CONTAINER
   ============================================ */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
  background: var(--text-heading);
  padding: 8px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.top-bar-links a {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  font-weight: 500;
}

.top-bar-links a:hover {
  color: #fff;
}

.top-bar .social-icons {
  display: flex;
  gap: 8px;
}

.top-bar .social-icons a {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  transition: var(--transition);
}

.top-bar .social-icons a:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

/* ============================================
   HEADER / NAVBAR
   ============================================ */
.site-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 20px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  box-shadow: 0 4px 12px rgba(108, 59, 245, 0.3);
}

.logo-text {
  font-family: 'Cairo', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--text-heading);
}

.site-logo .custom-logo {
  max-height: 44px;
  width: auto;
}

/* Search */
.header-search {
  flex: 1;
  max-width: 480px;
  position: relative;
}

.header-search input {
  width: 100%;
  padding: 11px 20px 11px 48px;
  border-radius: var(--radius-full);
  border: 2px solid var(--border-color);
  background: var(--bg-input);
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}

.header-search input::placeholder {
  color: var(--text-muted);
}

.header-search input:focus {
  border-color: var(--primary);
  background: var(--bg-white);
  box-shadow: 0 0 0 4px rgba(108, 59, 245, 0.1);
}

.header-search .search-submit {
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.header-search .search-submit:hover {
  background: var(--primary-dark);
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-color);
  background: transparent;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-action-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-bg);
}

.nav-action-btn.cart-btn {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: -5px;
  left: -5px;
  min-width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.btn-login {
  padding: 10px 28px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(108, 59, 245, 0.25);
}

.btn-login:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(108, 59, 245, 0.3);
}

.mobile-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-color);
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

/* ============================================
   CATEGORIES NAV
   ============================================ */
.categories-nav {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  padding: 10px 0;
  overflow-x: auto;
}

.categories-nav::-webkit-scrollbar { display: none; }

.cat-list {
  display: flex;
  gap: 6px;
  align-items: center;
  white-space: nowrap;
}

.cat-list li a {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
  border: 1.5px solid transparent;
}

.cat-list li a:hover,
.cat-list li a.active {
  background: var(--primary-bg);
  color: var(--primary);
  border-color: rgba(108, 59, 245, 0.2);
}

.cat-list li a .cat-emoji {
  font-size: 16px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  padding: 32px 0 16px;
}

.hero-slider {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-slide {
  position: relative;
  padding: 56px 48px;
  min-height: 340px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #6C3BF5 0%, #8B5CF6 40%, #A78BFA 100%);
  overflow: hidden;
}

.hero-slide::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -15%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
  animation: heroPulse 6s ease-in-out infinite;
}

.hero-slide::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,53,0.15) 0%, transparent 70%);
  animation: heroPulse 8s ease-in-out infinite reverse;
}

@keyframes heroPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 55%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 16px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
  animation: fadeInUp 0.6s ease;
}

.hero-title {
  font-family: 'Cairo', sans-serif;
  font-size: 38px;
  font-weight: 900;
  line-height: 1.3;
  color: #fff;
  margin-bottom: 14px;
  animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-title span {
  background: linear-gradient(135deg, #FFD54F, #FFB347);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  color: rgba(255,255,255,0.85);
  font-size: 16px;
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 12px;
  animation: fadeInUp 0.6s ease 0.3s both;
}

.btn-hero {
  padding: 13px 30px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-family: 'Tajawal', sans-serif;
}

.btn-hero.primary {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.btn-hero.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.btn-hero.outline {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(8px);
}

.btn-hero.outline:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-3px);
}

.hero-visual {
  position: absolute;
  left: 48px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  display: flex;
  gap: 14px;
}

.hero-float-card {
  width: 125px;
  height: 165px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  animation: heroFloat 3s ease-in-out infinite;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.hero-float-card:nth-child(2) { animation-delay: 0.5s; margin-top: 30px; }
.hero-float-card:nth-child(3) { animation-delay: 1s; margin-top: -20px; }

.hero-float-card .card-icon { font-size: 38px; }
.hero-float-card .card-label { font-size: 12px; color: #fff; font-weight: 700; }

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Slider Dots */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 16px 0 0;
}

.slider-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: var(--border-color);
  cursor: pointer;
  transition: var(--transition);
}

.slider-dots .dot.active {
  width: 32px;
  border-radius: 10px;
  background: var(--primary);
}

/* ============================================
   SECTION COMMON
   ============================================ */
.section {
  padding: 40px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.section-title {
  font-family: 'Cairo', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--text-heading);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title .title-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.title-icon.offers { background: var(--accent-bg); }
.title-icon.bundles { background: var(--green-bg); }
.title-icon.best { background: var(--blue-bg); }
.title-icon.new { background: var(--primary-bg); }

.view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
}

.view-all:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-bg);
}

/* ============================================
   OFFERS HORIZONTAL SCROLL
   ============================================ */
.offers-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.offers-scroll::-webkit-scrollbar { height: 4px; }
.offers-scroll::-webkit-scrollbar-track { background: var(--bg-surface); border-radius: 10px; }
.offers-scroll::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 10px; }

.offer-card {
  min-width: 290px;
  scroll-snap-align: start;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
  color: #fff;
}

.offer-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.offer-card-inner {
  padding: 28px 24px;
  min-height: 175px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.offer-card:nth-child(1) { background: linear-gradient(135deg, #6C3BF5, #8B5CF6); }
.offer-card:nth-child(2) { background: linear-gradient(135deg, #0D9488, #14B8A6); }
.offer-card:nth-child(3) { background: linear-gradient(135deg, #EA580C, #F97316); }
.offer-card:nth-child(4) { background: linear-gradient(135deg, #2563EB, #3B82F6); }
.offer-card:nth-child(5) { background: linear-gradient(135deg, #7C3AED, #A78BFA); }

.offer-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.1) 0%, transparent 60%);
}

.offer-tag {
  display: inline-flex;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
  font-size: 12px;
  font-weight: 700;
  width: fit-content;
}

.offer-title {
  font-family: 'Cairo', sans-serif;
  font-size: 19px;
  font-weight: 800;
  margin-top: 12px;
}

.offer-discount {
  font-size: 30px;
  font-weight: 900;
  color: #FFD54F;
  font-family: 'Cairo', sans-serif;
}

/* ============================================
   PRODUCT CARDS
   ============================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
  gap: 16px;
}

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-light);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: rgba(108, 59, 245, 0.2);
  box-shadow: var(--shadow-card-hover);
}

.product-card .card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  z-index: 2;
  color: #fff;
}

.card-badge.sale { background: linear-gradient(135deg, #EA580C, #F97316); }
.card-badge.new { background: linear-gradient(135deg, #16A34A, #22C55E); }
.card-badge.hot { background: linear-gradient(135deg, #DC2626, #EF4444); }

.product-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  padding: 14px;
}

.product-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 8px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price {
  font-family: 'Cairo', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
}

.product-price .currency {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.product-old-price {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.btn-add-cart {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: var(--transition);
  flex-shrink: 0;
}

.btn-add-cart:hover {
  background: var(--accent);
  transform: scale(1.1);
}

/* ============================================
   APP DOWNLOAD
   ============================================ */
.app-section {
  padding: 50px 0;
}

.app-card {
  background: linear-gradient(135deg, #6C3BF5 0%, #8B5CF6 50%, #A78BFA 100%);
  border-radius: var(--radius-xl);
  padding: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  overflow: hidden;
  color: #fff;
}

.app-card::before {
  content: '';
  position: absolute;
  top: -80px;
  left: -80px;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.app-card::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,53,0.15) 0%, transparent 70%);
}

.app-info {
  position: relative;
  z-index: 2;
  max-width: 55%;
}

.app-info h2 {
  font-family: 'Cairo', sans-serif;
  font-size: 30px;
  font-weight: 900;
  margin-bottom: 14px;
}

.app-info p {
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  margin-bottom: 28px;
  line-height: 1.8;
}

.app-buttons {
  display: flex;
  gap: 12px;
}

.app-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}

.app-btn:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.app-btn .store-icon { font-size: 26px; }

.app-btn .store-text { display: flex; flex-direction: column; }
.app-btn .store-text small { font-size: 10px; opacity: 0.8; }
.app-btn .store-text strong { font-size: 14px; font-weight: 700; }

.app-mockup {
  position: relative;
  z-index: 2;
}

.phone-mockup {
  width: 200px;
  height: 400px;
  background: #fff;
  border-radius: 32px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 4px solid rgba(255,255,255,0.3);
}

.phone-mockup::before {
  content: '';
  position: absolute;
  top: 8px;
  width: 70px;
  height: 22px;
  background: var(--text-heading);
  border-radius: 20px;
  z-index: 3;
}

.phone-screen {
  width: 88%;
  height: 88%;
  border-radius: 24px;
  background: linear-gradient(180deg, #6C3BF5, #A78BFA);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 28px 14px;
  color: #fff;
}

.phone-screen .screen-icon { font-size: 44px; }
.phone-screen .screen-text { font-family: 'Cairo', sans-serif; font-size: 15px; font-weight: 800; text-align: center; }

.phone-screen .screen-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  width: 100%;
}

.phone-screen .mini-card {
  background: rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  font-size: 20px;
}

/* ============================================
   WHY US
   ============================================ */
.why-section {
  padding: 50px 0;
}

.why-section .section-title {
  justify-content: center;
  margin-bottom: 36px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.why-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 30px 22px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.why-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: right;
}

.why-card:hover {
  transform: translateY(-5px);
  border-color: rgba(108, 59, 245, 0.15);
  box-shadow: var(--shadow-card-hover);
}

.why-card:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.why-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 14px;
}

.why-card:nth-child(1) .why-icon { background: var(--accent-bg); }
.why-card:nth-child(2) .why-icon { background: var(--green-bg); }
.why-card:nth-child(3) .why-icon { background: var(--blue-bg); }
.why-card:nth-child(4) .why-icon { background: var(--primary-bg); }

.why-card h3 {
  font-family: 'Cairo', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.why-card p {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.8;
}

/* ============================================
   PARTNERS
   ============================================ */
.partners-section {
  padding: 30px 0 50px;
}

.partners-section .section-title {
  justify-content: center;
  margin-bottom: 28px;
}

.partners-strip {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.partner-item {
  width: 115px;
  height: 65px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  flex-direction: column;
  gap: 3px;
}

.partner-item:hover {
  border-color: rgba(108, 59, 245, 0.2);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.partner-item .p-icon { font-size: 22px; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--text-heading);
  color: rgba(255,255,255,0.7);
  padding: 50px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}

.footer-brand .site-logo {
  margin-bottom: 16px;
}

.footer-brand .site-logo .logo-text {
  color: #fff;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 15px;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-3px);
}

.footer-col h4 {
  font-family: 'Cairo', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-col ul li a:hover {
  color: #fff;
  padding-right: 4px;
}

.footer-payments {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.payment-icon {
  width: 52px;
  height: 34px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  text-align: center;
  color: rgba(255,255,255,0.4);
  font-size: 13px;
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   WOOCOMMERCE OVERRIDES
   ============================================ */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
}

.woocommerce ul.products li.product .price {
  color: var(--primary) !important;
  font-family: 'Cairo', sans-serif;
  font-weight: 800;
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  background: var(--primary) !important;
  color: #fff !important;
  border-radius: var(--radius-full) !important;
  font-family: 'Tajawal', sans-serif !important;
  font-weight: 600 !important;
  transition: var(--transition) !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover {
  background: var(--primary-dark) !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .hero-visual { display: none; }
  .hero-content { max-width: 70%; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 768px) {
  .top-bar { display: none; }
  .header-search { display: none; }
  .nav-action-btn:not(.cart-btn) { display: none; }
  .mobile-menu-toggle { display: flex; }
  .hero-content { max-width: 100%; }
  .hero-slide { padding: 36px 24px; min-height: 260px; }
  .hero-title { font-size: 26px; }
  .hero-visual { display: none; }
  .app-card { flex-direction: column; padding: 32px 24px; text-align: center; }
  .app-info { max-width: 100%; }
  .app-buttons { justify-content: center; }
  .app-mockup { display: none; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 20px; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-info { padding: 10px; }
  .product-price { font-size: 15px; }
  .hero-actions { flex-direction: column; }
  .why-grid { grid-template-columns: 1fr; }
  .offer-card { min-width: 250px; }
}
