/* ========================================
   👑 Siwar Abayas - Premium Dark Brown & Beige
   Complete Stylesheet with Effects
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&display=swap');

/* ─── CSS Variables ─── */
:root {
  --siwar-dark: #2C1810;
  --siwar-brown: #5C3A2E;
  --siwar-gold: #C9A87C;
  --siwar-beige: #E8D5B5;
  --siwar-cream: #FDF8F0;
  --siwar-light: #F5EDE0;
  --siwar-text: #4A3222;
  --siwar-muted: #8B7A6B;
  --siwar-shadow: rgba(44, 24, 16, 0.12);
  --siwar-shadow-lg: rgba(44, 24, 16, 0.25);
  --transition-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-spring: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

body {
  font-family: 'Cairo', sans-serif;
  background: var(--siwar-cream);
  color: var(--siwar-text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ═══════════════════════════════════════════
   ✨ KEYFRAMES & ANIMATIONS
   ═══════════════════════════════════════════ */

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

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes shimmer-gold {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 168, 124, 0.5); }
  50% { box-shadow: 0 0 0 15px rgba(201, 168, 124, 0); }
}

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

@keyframes float-slow {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(3deg); }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes bounce-in {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.1); }
  70% { transform: scale(0.95); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-3px); }
  20%, 40%, 60%, 80% { transform: translateX(3px); }
}

@keyframes glow-pulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.15); }
}

@keyframes border-glow {
  0%, 100% { border-color: var(--siwar-beige); }
  50% { border-color: var(--siwar-gold); }
}

@keyframes text-shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

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

@keyframes ripple {
  0% { transform: scale(0); opacity: 1; }
  100% { transform: scale(4); opacity: 0; }
}

@keyframes confetti-fall {
  0% { transform: translateY(-100vh) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

@keyframes particle-float {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0.6; }
  25% { transform: translateY(-20px) translateX(10px); opacity: 1; }
  50% { transform: translateY(-10px) translateX(-5px); opacity: 0.8; }
  75% { transform: translateY(-30px) translateX(15px); opacity: 0.9; }
}

@keyframes heart-beat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.15); }
  28% { transform: scale(1); }
  42% { transform: scale(1.15); }
  70% { transform: scale(1); }
}

@keyframes rotate-in {
  from { transform: rotate(-180deg) scale(0); opacity: 0; }
  to { transform: rotate(0deg) scale(1); opacity: 1; }
}

@keyframes reveal-up {
  from { clip-path: inset(100% 0 0 0); opacity: 0; }
  to { clip-path: inset(0 0 0 0); opacity: 1; }
}

/* ═══════════════════════════════════════════
   🏛️ HEADER
   ═══════════════════════════════════════════ */

header,
.site-header,
.navbar {
  background: linear-gradient(135deg, var(--siwar-dark) 0%, #3D2117 50%, var(--siwar-dark) 100%) !important;
  box-shadow: 0 4px 30px var(--siwar-shadow-lg);
  border-bottom: 3px solid var(--siwar-gold);
  padding: 18px 5% !important;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  animation: slide-down 0.6s var(--transition-smooth);
}

/* تأثير الهيدر عند التمرير */
header.scrolled,
.site-header.scrolled,
.navbar.scrolled {
  padding: 12px 5% !important;
  box-shadow: 0 4px 20px rgba(44, 24, 16, 0.15);
}

/* اللوجو الفاخر */
.logo a,
.site-logo {
  font-size: 32px !important;
  font-weight: 900 !important;
  color: var(--siwar-beige) !important;
  letter-spacing: 4px;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.4);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  animation: fadeInLeft 0.8s var(--transition-smooth);
}

.logo a::before {
  content: '👑';
  font-size: 28px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
  animation: pulse-gold 2s infinite, float 3s ease-in-out infinite;
  display: inline-block;
}

/* تأثير shimmer على اللوجو */
.logo a::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(201,168,124,0.15), transparent);
  animation: shimmer 3s infinite;
}

/* الروابط */
.navbar-nav,
.header .nav-links {
  display: flex;
  align-items: center;
  gap: 5px;
  animation: fadeInRight 0.8s var(--transition-smooth) 0.2s both;
}

.navbar-nav a,
.header .nav-link {
  font-weight: 600 !important;
  margin: 0 6px !important;
  position: relative !important;
  transition: all 0.3s var(--transition-smooth) !important;
  color: var(--siwar-beige) !important;
  font-size: 15px !important;
  padding: 8px 16px !important;
  border-radius: 25px;
  text-decoration: none;
  overflow: hidden;
}

/* تأثير الخلفية المتحركة */
.navbar-nav a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,168,124,0.1), rgba(201,168,124,0.05));
  border-radius: 25px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--transition-smooth);
}

.navbar-nav a:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.navbar-nav a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  right: 50%;
  transform: translateX(50%);
  width: 0;
  height: 2.5px;
  background: linear-gradient(90deg, var(--siwar-gold), var(--siwar-beige));
  border-radius: 2px;
  transition: width 0.3s var(--transition-smooth);
}

.navbar-nav a:hover::after {
  width: 50%;
}

.navbar-nav a:hover {
  color: var(--siwar-gold) !important;
  transform: translateY(-2px);
}

.navbar-nav a.active {
  color: var(--siwar-gold) !important;
  background: rgba(201, 168, 124, 0.1);
}

/* أيقونات المستخدم */
.icons,
.user-icons {
  display: flex;
  align-items: center;
  gap: 6px;
  animation: fadeInRight 0.8s var(--transition-smooth) 0.3s both;
}

.icons i,
.user-icons i {
  font-size: 20px;
  color: var(--siwar-beige);
  cursor: pointer;
  transition: all 0.4s var(--transition-bounce);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
}

.icons i::before,
.user-icons i::before {
  position: relative;
  z-index: 1;
}

.icons i::after,
.user-icons i::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,168,124,0.15), rgba(201,168,124,0.05));
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.4s var(--transition-bounce);
}

.icons i:hover::after,
.user-icons i:hover::after {
  transform: scale(1);
}

.icons i:hover,
.user-icons i:hover {
  color: var(--siwar-gold);
  transform: scale(1.15) rotate(-8deg);
}

/* عداد السلة */
.icons i[data-count]::after,
.user-icons i[data-count]::after {
  content: attr(data-count);
  position: absolute;
  top: -2px;
  right: -2px;
  background: linear-gradient(135deg, var(--siwar-gold), #B8956A);
  color: var(--siwar-dark);
  font-size: 11px;
  font-weight: 800;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--siwar-dark);
  animation: bounce-in 0.5s var(--transition-bounce);
  z-index: 2;
}

/* ═══════════════════════════════════════════
   🛍️ BUTTONS
   ═══════════════════════════════════════════ */

button,
.btn,
.add-to-cart,
.product-item .btn-primary,
.single_add_to_cart_button,
.checkout-button,
.wishlist-button,
.quick-view,
.siwar-btn {
  background: linear-gradient(135deg, var(--siwar-dark) 0%, var(--siwar-brown) 100%) !important;
  color: var(--siwar-beige) !important;
  border: none !important;
  border-radius: 50px !important;
  padding: 14px 32px !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  cursor: pointer !important;
  transition: all 0.4s var(--transition-smooth) !important;
  box-shadow: 0 6px 20px var(--siwar-shadow-lg);
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  letter-spacing: 0.5px;
}

/* تأثير الوميض */
button::before,
.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.6s ease;
}

button:hover::before,
.btn:hover::before {
  left: 100%;
}

/* تأثير الـ ripple */
button::after,
.btn::after {
  content: '';
  position: absolute;
  width: 100px;
  height: 100px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  transform: scale(0);
  opacity: 0;
}

button:active::after,
.btn:active::after {
  animation: ripple 0.6s ease-out;
}

button:hover,
.btn:hover,
.add-to-cart:hover {
  transform: translateY(-3px) scale(1.02) !important;
  box-shadow: 0 15px 35px var(--siwar-shadow-lg);
  background: linear-gradient(135deg, var(--siwar-brown) 0%, var(--siwar-dark) 100%) !important;
  color: #FFFFFF !important;
}

button:active,
.btn:active {
  transform: translateY(-1px) scale(0.97) !important;
}

/* زر ذهبي خاص */
.btn-gold {
  background: linear-gradient(135deg, var(--siwar-gold) 0%, #B8956A 100%) !important;
  color: var(--siwar-dark) !important;
  box-shadow: 0 6px 20px rgba(201, 168, 124, 0.4);
  animation: glow-pulse 3s ease-in-out infinite;
}

.btn-gold:hover {
  background: linear-gradient(135deg, #B8956A 0%, var(--siwar-gold) 100%) !important;
  box-shadow: 0 12px 30px rgba(201, 168, 124, 0.5);
}

/* ═══════════════════════════════════════════
   🃏 PRODUCT CARDS
   ═══════════════════════════════════════════ */

.product-item,
.product-card,
.card {
  background: white !important;
  border-radius: 24px !important;
  overflow: hidden !important;
  transition: all 0.5s var(--transition-smooth) !important;
  border: 1px solid rgba(232, 213, 181, 0.4) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
  margin-bottom: 30px;
  position: relative;
  animation: fadeInUp 0.7s var(--transition-smooth) backwards;
}

.product-item:nth-child(1) { animation-delay: 0.1s; }
.product-item:nth-child(2) { animation-delay: 0.2s; }
.product-item:nth-child(3) { animation-delay: 0.3s; }
.product-item:nth-child(4) { animation-delay: 0.4s; }
.product-item:nth-child(5) { animation-delay: 0.5s; }
.product-item:nth-child(6) { animation-delay: 0.6s; }

.product-item:hover,
.product-card:hover {
  transform: translateY(-12px) scale(1.01) !important;
  box-shadow: 0 25px 50px rgba(44, 24, 16, 0.12);
  border-color: var(--siwar-gold) !important;
}

/* تأثير الإطار الذهبي المتحرك */
.product-item::after,
.product-card::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 26px;
  background: linear-gradient(135deg, var(--siwar-gold), var(--siwar-beige), var(--siwar-gold));
  background-size: 200% 200%;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: shimmer-gold 3s ease infinite;
}

.product-item:hover::after,
.product-card:hover::after {
  opacity: 1;
}

/* صورة المنتج */
.product-image {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--siwar-cream) 0%, var(--siwar-light) 100%);
  aspect-ratio: 3/4;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--transition-smooth), filter 0.4s ease;
}

.product-item:hover .product-image img {
  transform: scale(1.1);
  filter: brightness(1.05);
}

/* طبقة overlay عند الهوفر */
.product-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(44, 24, 16, 0.7) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.product-item:hover .product-image::after {
  opacity: 1;
}

/* أزرار سريعة تظهر عند الهوفر */
.product-actions {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(30px);
  display: flex;
  gap: 10px;
  opacity: 0;
  transition: all 0.5s var(--transition-bounce);
  z-index: 2;
}

.product-item:hover .product-actions {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.product-actions button {
  width: 45px;
  height: 45px;
  padding: 0 !important;
  border-radius: 50% !important;
  background: white !important;
  color: var(--siwar-dark) !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  font-size: 16px !important;
  animation: fadeInScale 0.3s var(--transition-bounce) backwards;
}

.product-actions button:nth-child(1) { animation-delay: 0.1s; }
.product-actions button:nth-child(2) { animation-delay: 0.15s; }
.product-actions button:nth-child(3) { animation-delay: 0.2s; }

.product-actions button:hover {
  background: var(--siwar-gold) !important;
  color: white !important;
  transform: scale(1.2) !important;
  box-shadow: 0 6px 20px rgba(201, 168, 124, 0.4);
}

/* شارة SIWAR */
.product-item::before {
  content: '👑 SIWAR';
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, var(--siwar-dark) 0%, var(--siwar-brown) 100%);
  color: var(--siwar-beige);
  padding: 7px 18px;
  border-radius: 30px;
  font-size: 11px;
  font-weight: 800;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  letter-spacing: 1.5px;
  border: 1px solid rgba(201, 168, 124, 0.3);
  animation: fadeInScale 0.5s var(--transition-bounce) 0.3s both;
}

/* خصم */
.product-item .discount-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: linear-gradient(135deg, #C0392B 0%, #E74C3C 100%);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
  animation: bounce-in 0.5s var(--transition-bounce) 0.4s both;
}

/* معلومات المنتج */
.product-info {
  padding: 20px;
  background: white;
  position: relative;
}

.product-title,
.product-name {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: var(--siwar-dark) !important;
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s ease;
}

.product-item:hover .product-title,
.product-item:hover .product-name {
  color: var(--siwar-brown) !important;
}

/* التقييم */
.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.product-rating i {
  color: #F1C40F;
  font-size: 14px;
  transition: transform 0.3s var(--transition-bounce);
}

.product-item:hover .product-rating i {
  animation: heart-beat 1s ease;
}

.product-rating span {
  color: var(--siwar-muted);
  font-size: 13px;
}

/* السعر */
.product-price,
.price {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 5px;
}

.current-price {
  color: var(--siwar-gold) !important;
  font-size: 24px !important;
  font-weight: 800 !important;
  background: linear-gradient(135deg, var(--siwar-gold), #B8956A);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.old-price {
  color: var(--siwar-muted) !important;
  text-decoration: line-through;
  font-size: 15px;
  font-weight: 500;
  position: relative;
}

/* ═══════════════════════════════════════════
   🛒 CART SIDEBAR
   ═══════════════════════════════════════════ */

.cart-sidebar,
.drawer,
.mini-cart {
  background: white !important;
  border-radius: 30px 0 0 30px !important;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
  border-left: 3px solid var(--siwar-gold);
  animation: fadeInRight 0.5s var(--transition-smooth);
}

.cart-header,
.drawer-header {
  background: linear-gradient(135deg, var(--siwar-dark) 0%, var(--siwar-brown) 100%);
  color: var(--siwar-beige);
  padding: 25px;
  border-radius: 30px 0 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.cart-header::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(201,168,124,0.1) 0%, transparent 70%);
  animation: shimmer-gold 4s ease infinite;
}

.cart-header h3 {
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.cart-item {
  display: flex;
  gap: 15px;
  padding: 15px;
  border-bottom: 1px solid var(--siwar-light);
  transition: all 0.3s ease;
  animation: fadeInUp 0.4s var(--transition-smooth) backwards;
}

.cart-item:hover {
  background: var(--siwar-cream);
  transform: translateX(-5px);
}

.cart-item img {
  width: 80px;
  height: 100px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid var(--siwar-beige);
  transition: transform 0.3s ease;
}

.cart-item:hover img {
  transform: scale(1.05);
}

.cart-item-info h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--siwar-dark);
  margin-bottom: 5px;
}

.cart-item-price {
  color: var(--siwar-gold);
  font-weight: 800;
  font-size: 16px;
}

/* ═══════════════════════════════════════════
   🔍 SEARCH BAR
   ═══════════════════════════════════════════ */

.search-bar {
  position: relative;
  max-width: 400px;
  animation: fadeInScale 0.6s var(--transition-smooth) 0.4s both;
}

.search-bar input {
  width: 100%;
  border-radius: 50px !important;
  border: 2px solid var(--siwar-beige) !important;
  padding: 14px 24px 14px 50px !important;
  transition: all 0.4s var(--transition-smooth);
  background: white;
  font-family: 'Cairo', sans-serif;
  font-size: 15px;
  color: var(--siwar-text);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.search-bar input:focus {
  border-color: var(--siwar-gold) !important;
  box-shadow: 0 0 0 5px rgba(201, 168, 124, 0.15), 0 4px 20px rgba(201, 168, 124, 0.1) !important;
  outline: none;
  transform: translateY(-1px);
}

.search-bar input::placeholder {
  color: var(--siwar-muted);
  transition: color 0.3s ease;
}

.search-bar input:focus::placeholder {
  color: var(--siwar-gold);
}

.search-bar i {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--siwar-gold);
  font-size: 18px;
  transition: all 0.3s ease;
}

.search-bar input:focus + i,
.search-bar:focus-within i {
  transform: translateY(-50%) scale(1.1);
}

/* ═══════════════════════════════════════════
   🦶 FOOTER
   ═══════════════════════════════════════════ */

footer,
.site-footer {
  background: linear-gradient(135deg, var(--siwar-dark) 0%, #3D2117 50%, var(--siwar-dark) 100%);
  color: var(--siwar-beige);
  padding: 60px 5% 30px !important;
  margin-top: 80px;
  border-radius: 40px 40px 0 0;
  position: relative;
  overflow: hidden;
}

/* خط ذهبي متحرك في الأعلى */
footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--siwar-gold), var(--siwar-beige), var(--siwar-gold), transparent);
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}

/* particles خلفية */
footer::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(201,168,124,0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(201,168,124,0.03) 0%, transparent 50%);
  pointer-events: none;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 50px;
  position: relative;
  z-index: 1;
}

.footer-section {
  animation: fadeInUp 0.6s var(--transition-smooth) backwards;
}

.footer-section:nth-child(1) { animation-delay: 0.1s; }
.footer-section:nth-child(2) { animation-delay: 0.2s; }
.footer-section:nth-child(3) { animation-delay: 0.3s; }
.footer-section:nth-child(4) { animation-delay: 0.4s; }

.footer-section h4 {
  color: var(--siwar-gold);
  margin-bottom: 25px;
  font-size: 20px;
  font-weight: 800;
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}

.footer-section h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--siwar-gold), var(--siwar-beige));
  border-radius: 3px;
  transition: width 0.4s var(--transition-smooth);
}

.footer-section:hover h4::after {
  width: 100%;
}

.footer-section p {
  color: #D4C4A8;
  line-height: 1.8;
  margin-bottom: 15px;
}

.footer-section a {
  color: #D4C4A8;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  transition: all 0.4s var(--transition-smooth);
  font-size: 15px;
  padding: 5px 0;
  position: relative;
  overflow: hidden;
}

.footer-section a::before {
  content: '›';
  color: var(--siwar-gold);
  font-size: 20px;
  font-weight: bold;
  transition: all 0.3s var(--transition-bounce);
}

.footer-section a:hover {
  color: var(--siwar-beige);
  padding-right: 12px;
}

.footer-section a:hover::before {
  transform: translateX(-5px) scale(1.2);
  color: var(--siwar-beige);
}

/* أيقونات التواصل */
.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icons a {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(232, 213, 181, 0.08);
  border: 1px solid rgba(232, 213, 181, 0.2);
  transition: all 0.5s var(--transition-bounce);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.social-icons a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--siwar-gold), #B8956A);
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.4s var(--transition-bounce);
}

.social-icons a:hover::before {
  transform: scale(1);
}

.social-icons i {
  font-size: 22px;
  color: var(--siwar-beige);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.social-icons a:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 25px rgba(201, 168, 124, 0.3);
  border-color: var(--siwar-gold);
}

.social-icons a:hover i {
  color: var(--siwar-dark);
}

/* حقوق النشر */
.footer-bottom {
  margin-top: 50px;
  padding-top: 25px;
  border-top: 1px solid rgba(232, 213, 181, 0.1);
  text-align: center;
  color: #A09080;
  font-size: 14px;
  position: relative;
  z-index: 1;
}

.footer-bottom span {
  color: var(--siwar-gold);
  font-weight: 700;
}

/* ═══════════════════════════════════════════
   📜 SCROLLBAR
   ═══════════════════════════════════════════ */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--siwar-light);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--siwar-brown), var(--siwar-dark));
  border-radius: 10px;
  border: 2px solid var(--siwar-light);
  transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--siwar-gold), var(--siwar-brown));
}

/* ═══════════════════════════════════════════
   🔔 TOAST NOTIFICATIONS
   ═══════════════════════════════════════════ */

.siwar-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99999;
  transform: translateX(500px);
  transition: transform 0.5s var(--transition-bounce);
}

.siwar-toast.show {
  transform: translateX(0);
}

.siwar-toast-inner {
  background: linear-gradient(135deg, var(--siwar-dark) 0%, var(--siwar-brown) 100%);
  color: var(--siwar-beige);
  padding: 16px 28px;
  border-radius: 20px;
  font-family: 'Cairo', sans-serif;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 12px 35px rgba(44, 24, 16, 0.35);
  border-right: 4px solid var(--siwar-gold);
  min-width: 320px;
  position: relative;
  overflow: hidden;
}

.siwar-toast-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  animation: shimmer 2s infinite;
}

.siwar-toast-inner i {
  color: var(--siwar-gold);
  font-size: 22px;
  animation: heart-beat 1.5s ease infinite;
}

.siwar-toast-inner.success { border-right-color: #27AE60; }
.siwar-toast-inner.success i { color: #27AE60; animation: none; }
.siwar-toast-inner.error { border-right-color: #E74C3C; }
.siwar-toast-inner.error i { color: #E74C3C; animation: none; }

/* ═══════════════════════════════════════════
   🪟 POPUP SYSTEM
   ═══════════════════════════════════════════ */

.siwar-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(44, 24, 16, 0.88);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  opacity: 0;
  transition: opacity 0.5s ease;
  padding: 20px;
}

.siwar-popup-overlay.show {
  opacity: 1;
}

.siwar-popup {
  background: white;
  max-width: 420px;
  width: 100%;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 40px 60px rgba(44, 24, 16, 0.5);
  border: 2px solid var(--siwar-beige);
  transform: scale(0.88) translateY(25px);
  transition: transform 0.6s var(--transition-bounce);
  position: relative;
}

.siwar-popup-overlay.show .siwar-popup {
  transform: scale(1) translateY(0);
}

.siwar-popup-close {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 36px;
  height: 36px;
  background: rgba(232, 213, 181, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #8B7A6B;
  font-size: 15px;
  font-weight: bold;
  transition: all 0.4s var(--transition-bounce);
  border: 1px solid rgba(232, 213, 181, 0.25);
  z-index: 10;
}

.siwar-popup-close:hover {
  background: rgba(232, 213, 181, 0.3);
  transform: rotate(90deg) scale(1.1);
  color: var(--siwar-dark);
}

/* ─── Welcome Popup ─── */
.siwar-welcome-content {
  padding: 35px 30px;
  text-align: center;
  background: linear-gradient(180deg, var(--siwar-cream) 0%, white 100%);
  position: relative;
  overflow: hidden;
}

/* particles خلفية */
.siwar-welcome-content::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(201,168,124,0.08) 0%, transparent 30%),
    radial-gradient(circle at 90% 80%, rgba(201,168,124,0.06) 0%, transparent 30%);
  pointer-events: none;
}

.siwar-welcome-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--siwar-dark) 0%, var(--siwar-brown) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  box-shadow: 0 6px 20px rgba(44, 24, 16, 0.25);
  border: 2px solid var(--siwar-gold);
  animation: pulse-gold 2.5s infinite, float 3s ease-in-out infinite;
  position: relative;
  z-index: 1;
}

.siwar-welcome-icon i {
  font-size: 32px;
  color: var(--siwar-gold);
}

.siwar-welcome-brand {
  font-size: 28px;
  font-weight: 900;
  color: var(--siwar-dark);
  letter-spacing: 5px;
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
}

.siwar-welcome-tagline {
  font-size: 12px;
  color: var(--siwar-muted);
  font-weight: 600;
  margin-bottom: 15px;
  letter-spacing: 2px;
  position: relative;
  z-index: 1;
}

.siwar-welcome-divider {
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, var(--siwar-gold), var(--siwar-beige));
  border-radius: 2px;
  margin: 0 auto 18px;
  position: relative;
  z-index: 1;
}

.siwar-welcome-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--siwar-dark);
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.siwar-welcome-text {
  font-size: 14px;
  color: var(--siwar-brown);
  line-height: 1.8;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.siwar-welcome-features {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}

.siwar-welcome-features span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: white;
  border: 1.5px solid var(--siwar-beige);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--siwar-brown);
  transition: all 0.3s var(--transition-smooth);
}

.siwar-welcome-features span:hover {
  border-color: var(--siwar-gold);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(201, 168, 124, 0.15);
}

.siwar-welcome-features span i {
  color: var(--siwar-gold);
  font-size: 12px;
}

.siwar-popup-btn {
  background: linear-gradient(135deg, var(--siwar-dark) 0%, var(--siwar-brown) 100%);
  color: var(--siwar-beige);
  border: none;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 800;
  width: 100%;
  cursor: pointer;
  transition: all 0.4s var(--transition-smooth);
  box-shadow: 0 6px 20px rgba(44, 24, 16, 0.25);
  font-family: 'Cairo', sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.siwar-popup-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.6s ease;
}

.siwar-popup-btn:hover::before {
  left: 100%;
}

.siwar-popup-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(44, 24, 16, 0.35);
  background: linear-gradient(135deg, var(--siwar-brown) 0%, var(--siwar-dark) 100%);
}

.siwar-popup-btn i {
  font-size: 16px;
}

/* ─── Farewell Popup ─── */
.siwar-farewell .siwar-welcome-content {
  background: linear-gradient(180deg, var(--siwar-dark) 0%, #3D2117 100%);
}

.siwar-farewell .siwar-welcome-brand {
  color: var(--siwar-beige);
}

.siwar-farewell .siwar-welcome-title {
  color: var(--siwar-beige);
}

.siwar-farewell .siwar-welcome-text {
  color: #D4C4A8;
}

.siwar-farewell-icon {
  background: linear-gradient(135deg, var(--siwar-gold) 0%, #B8956A 100%) !important;
  border-color: var(--siwar-beige) !important;
  animation: heart-beat 2s ease-in-out infinite, float 3s ease-in-out infinite !important;
}

.siwar-farewell-icon i {
  color: var(--siwar-dark) !important;
}

.siwar-farewell .siwar-welcome-features span {
  background: rgba(255,255,255,0.06);
  border-color: rgba(232, 213, 181, 0.2);
  color: #D4C4A8;
}

.siwar-farewell .siwar-welcome-features span:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--siwar-gold);
}

.siwar-farewell .siwar-popup-btn {
  background: linear-gradient(135deg, var(--siwar-gold) 0%, #B8956A 100%);
  color: var(--siwar-dark);
}

.siwar-farewell .siwar-popup-btn:hover {
  background: linear-gradient(135deg, #B8956A 0%, var(--siwar-gold) 100%);
  box-shadow: 0 12px 30px rgba(201, 168, 124, 0.4);
}

/* ═══════════════════════════════════════════
   ⚡ LOADING & SKELETON
   ═══════════════════════════════════════════ */

.skeleton {
  background: linear-gradient(90deg, var(--siwar-light) 25%, var(--siwar-cream) 50%, var(--siwar-light) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 12px;
}

/* ═══════════════════════════════════════════
   🎯 SECTIONS
   ═══════════════════════════════════════════ */

.section-title {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  animation: fadeInUp 0.8s var(--transition-smooth) both;
}

.section-title h2 {
  font-size: 36px;
  font-weight: 900;
  color: var(--siwar-dark);
  display: inline-flex;
  align-items: center;
  gap: 15px;
  position: relative;
}

/* تأثير shimmer على العنوان */
.section-title h2 {
  background: linear-gradient(90deg, var(--siwar-dark), var(--siwar-gold), var(--siwar-dark));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: text-shimmer 4s linear infinite;
}

.section-title h2::before,
.section-title h2::after {
  content: '✦';
  color: var(--siwar-gold);
  font-size: 20px;
  animation: spin-slow 8s linear infinite;
  display: inline-block;
}

.section-title p {
  color: var(--siwar-muted);
  margin-top: 10px;
  font-size: 16px;
}

.gold-line {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--siwar-gold), var(--siwar-beige), var(--siwar-gold));
  border-radius: 4px;
  margin: 15px auto;
  background-size: 200% 100%;
  animation: shimmer 2s linear infinite;
}

/* ═══════════════════════════════════════════
   🏷️ CATEGORY PILLS
   ═══════════════════════════════════════════ */

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 50px;
  background: white;
  border: 2px solid var(--siwar-beige);
  color: var(--siwar-dark);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.4s var(--transition-smooth);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.category-pill::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--siwar-dark), var(--siwar-brown));
  border-radius: 50px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--transition-smooth);
}

.category-pill:hover::before,
.category-pill.active::before {
  transform: scaleX(1);
  transform-origin: left;
}

.category-pill:hover,
.category-pill.active {
  color: var(--siwar-beige);
  border-color: var(--siwar-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--siwar-shadow);
}

.category-pill span,
.category-pill i {
  position: relative;
  z-index: 1;
}

.category-pill i {
  font-size: 16px;
  transition: transform 0.3s var(--transition-bounce);
}

.category-pill:hover i {
  transform: scale(1.2) rotate(-10deg);
}

/* ═══════════════════════════════════════════
   🎊 CONFETTI EFFECT
   ═══════════════════════════════════════════ */

.siwar-confetti-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999998;
  overflow: hidden;
}

.siwar-confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  top: -10px;
  animation: confetti-fall linear forwards;
}

/* ═══════════════════════════════════════════
   ✨ PARTICLES BACKGROUND
   ═══════════════════════════════════════════ */

.siwar-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.siwar-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--siwar-gold);
  border-radius: 50%;
  opacity: 0.3;
  animation: particle-float linear infinite;
}

/* ═══════════════════════════════════════════
   🌟 SPECIAL EFFECTS
   ═══════════════════════════════════════════ */

/* تأثير الإضاءة عند hover على الكروت */
.glow-effect {
  position: relative;
}

.glow-effect::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--siwar-gold), transparent, var(--siwar-gold));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
  filter: blur(8px);
}

.glow-effect:hover::before {
  opacity: 0.4;
}

/* تأثير المغناطيسية */
.magnetic-hover {
  transition: transform 0.3s var(--transition-smooth);
}

/* تأثير الظل الذهبي */
.gold-shadow {
  box-shadow: 0 4px 15px rgba(201, 168, 124, 0.2);
  transition: box-shadow 0.4s ease;
}

.gold-shadow:hover {
  box-shadow: 0 8px 30px rgba(201, 168, 124, 0.4);
}

/* تأثير الـ parallax خفيف */
.parallax-slow {
  will-change: transform;
}

/* ═══════════════════════════════════════════
   📱 RESPONSIVE
   ═══════════════════════════════════════════ */

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 15px;
    padding: 15px !important;
  }

  .logo a {
    font-size: 26px !important;
  }

  .navbar-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .navbar-nav a {
    font-size: 14px !important;
    padding: 6px 12px !important;
    margin: 3px !important;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 35px;
  }

  .footer-section h4::after {
    right: 50%;
    transform: translateX(50%);
  }

  .social-icons {
    justify-content: center;
  }

  .product-title {
    font-size: 16px !important;
  }

  .current-price {
    font-size: 20px !important;
  }

  .product-item:hover {
    transform: translateY(-6px) !important;
  }

  .section-title h2 {
    font-size: 26px;
  }

  .siwar-popup {
    max-width: 92%;
    border-radius: 22px;
  }

  .siwar-welcome-content {
    padding: 25px 20px;
  }

  .siwar-welcome-brand {
    font-size: 24px;
  }

  .siwar-welcome-title {
    font-size: 17px;
  }

  .siwar-welcome-features {
    gap: 8px;
  }

  .siwar-welcome-features span {
    font-size: 11px;
    padding: 6px 10px;
  }

  .siwar-toast {
    right: 15px;
    left: 15px;
    bottom: 15px;
  }

  .siwar-toast-inner {
    min-width: unset;
    justify-content: center;
  }
}

/* تقليل الحركة للمستخدمين الذين يفضلونها */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}