/* === MI Cinema Main Styles === */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Tajawal', 'Cairo', sans-serif;
  background: #0a0a1f;
  color: #fff;
  line-height: 1.6;
  direction: rtl;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1400px; margin: 0 auto; padding: 0 5%; }

/* === Header === */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(10, 10, 31, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 212, 255, 0.2);
  z-index: 100;
}
.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.2rem 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.logo-en {
  font-size: 1.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, #00d4ff, #ffffff);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.logo-ar {
  font-size: 0.85rem;
  color: #00d4ff;
  letter-spacing: 0.05em;
}
.main-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.main-menu a {
  font-weight: 700;
  color: #fff;
  transition: color 0.3s;
  position: relative;
}
.main-menu a:hover { color: #00d4ff; }
.main-menu a::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 0;
  width: 0;
  height: 2px;
  background: #00d4ff;
  transition: width 0.3s;
}
.main-menu a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 1rem; }
.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 50%;
  color: #00d4ff;
  transition: all 0.3s;
}
.cart-btn:hover { background: #00d4ff; color: #000; }
.cart-count {
  position: absolute;
  top: -5px;
  left: -5px;
  background: #ff3366;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 30px; height: 30px;
  flex-direction: column;
  justify-content: space-around;
}
.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: #00d4ff;
  border-radius: 2px;
}

/* === Hero Section === */
.hero-section {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 5%;
  background:
    radial-gradient(ellipse at top, rgba(0,212,255,0.15) 0%, transparent 60%),
    linear-gradient(180deg, #0a0a1f 0%, #1a1a3a 100%);
  position: relative;
  overflow: hidden;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}
.hero-content h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 900;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #00d4ff, #ffffff);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.2;
}
.hero-content p {
  font-size: 1.3rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
}
.hero-cta {
  display: inline-block;
  padding: 1.2rem 3.5rem;
  background: linear-gradient(135deg, #00d4ff, #0099cc);
  color: #000;
  border-radius: 50px;
  font-weight: 900;
  font-size: 1.1rem;
  box-shadow: 0 10px 40px rgba(0, 212, 255, 0.4);
  transition: all 0.3s;
}
.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 50px rgba(0, 212, 255, 0.7);
}

/* === Sections === */
.section-header {
  text-align: center;
  padding: 4rem 5% 2rem;
}
.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #00d4ff, #ffffff);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-header p {
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
}

/* === Products === */
.featured-products { padding-bottom: 4rem; }
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  padding: 0 5%;
  max-width: 1400px;
  margin: 0 auto;
}
.product-card {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s ease;
}
.product-card:hover {
  transform: translateY(-8px);
  border-color: #00d4ff;
  box-shadow: 0 20px 50px rgba(0, 212, 255, 0.25);
}
.product-card.attention {
  border-color: #00d4ff;
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.6);
  transform: translateY(-5px) scale(1.02);
}
.product-image {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0,212,255,0.05), rgba(0,212,255,0.02));
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
  transition: transform 0.4s;
}
.product-card:hover .product-image img { transform: scale(1.08); }
.product-info { padding: 1.5rem; }
.product-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.4;
  min-height: 3rem;
}
.product-name a { color: #fff; transition: color 0.3s; }
.product-name a:hover { color: #00d4ff; }
.product-price {
  font-size: 1.4rem;
  color: #00d4ff;
  font-weight: 900;
  margin-bottom: 1rem;
}
.product-price del { color: rgba(255,255,255,0.4); font-size: 0.85rem; margin-left: 0.5rem; font-weight: 400; }
.btn-add-cart {
  display: block;
  width: 100%;
  padding: 0.8rem;
  background: rgba(0, 212, 255, 0.15);
  border: 1px solid #00d4ff;
  color: #fff;
  border-radius: 30px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  font-family: inherit;
  font-size: 0.95rem;
}
.btn-add-cart:hover {
  background: #00d4ff;
  color: #000;
  transform: scale(1.02);
}
.payment-options { margin-top: 0.8rem; text-align: center; }
.bnpl-badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: rgba(255, 195, 0, 0.15);
  border: 1px solid rgba(255, 195, 0, 0.4);
  border-radius: 20px;
  font-size: 0.8rem;
  color: #ffc300;
  font-weight: 700;
}

/* === Categories === */
.categories-section { padding-bottom: 4rem; }
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  padding: 0 5%;
  max-width: 1400px;
  margin: 0 auto;
}
.category-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 20px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s;
}
.category-card:hover {
  transform: translateY(-5px);
  border-color: #00d4ff;
  background: rgba(0, 212, 255, 0.08);
}
.category-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  background: rgba(0, 212, 255, 0.1);
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.category-icon img { width: 60%; height: 60%; object-fit: contain; }
.category-name {
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
}
.category-count {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
}

/* === Features === */
.features-section {
  padding: 4rem 5%;
  background: linear-gradient(180deg, transparent, rgba(0,212,255,0.05));
}
.features-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}
.feature-item {
  text-align: center;
  padding: 2rem 1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 20px;
  transition: all 0.3s;
}
.feature-item:hover {
  transform: translateY(-5px);
  border-color: #00d4ff;
}
.feature-icon { font-size: 3rem; margin-bottom: 1rem; }
.feature-item h3 {
  color: #00d4ff;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}
.feature-item p {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
}

/* === Footer === */
.site-footer {
  background: linear-gradient(180deg, #0a0a1f 0%, #000 100%);
  border-top: 1px solid rgba(0, 212, 255, 0.2);
  padding: 4rem 0 1rem;
  margin-top: 4rem;
}
.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
}
.footer-col h3 {
  color: #00d4ff;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  font-weight: 900;
}
.footer-col p { color: rgba(255,255,255,0.7); font-size: 0.9rem; margin-bottom: 0.6rem; }
.footer-menu { list-style: none; }
.footer-menu li { margin-bottom: 0.6rem; }
.footer-menu a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  transition: color 0.3s;
}
.footer-menu a:hover { color: #00d4ff; }
.payment-badges, .trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}
.badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 20px;
  font-size: 0.75rem;
  color: #00d4ff;
  font-weight: 700;
}
.social-icons {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
}
.social-icons a {
  width: 40px;
  height: 40px;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00d4ff;
  font-size: 1.1rem;
  transition: all 0.3s;
}
.social-icons a:hover {
  background: #00d4ff;
  color: #000;
  transform: scale(1.1);
}
.footer-bottom {
  text-align: center;
  padding: 2rem 5% 0;
  margin-top: 2rem;
  border-top: 1px solid rgba(0, 212, 255, 0.1);
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
}

/* === AI Helper === */
#ai-helper {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 90px; height: 90px;
  z-index: 200;
  cursor: pointer;
  filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.7));
  transition: all 0.5s ease;
  animation: helperFloat 3s ease-in-out infinite;
}
@keyframes helperFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-15px) rotate(2deg); }
}
.helper-pulse {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid #00d4ff;
  opacity: 0;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}
.chat-bubble {
  position: absolute;
  bottom: 100px;
  left: 0;
  background: linear-gradient(135deg, #00d4ff, #0099cc);
  color: #000;
  padding: 1rem 1.5rem;
  border-radius: 20px 20px 20px 0;
  font-weight: 700;
  font-size: 0.95rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
  box-shadow: 0 5px 30px rgba(0, 212, 255, 0.4);
  width: 240px;
  pointer-events: none;
}
.chat-bubble.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* === WhatsApp === */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px; height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 5px 20px rgba(37, 211, 102, 0.5);
  z-index: 200;
  transition: all 0.3s;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 5px 30px rgba(37, 211, 102, 0.8);
}

/* === Responsive === */
@media (max-width: 1024px) {
  .header-container { gap: 1rem; }
  .main-menu { gap: 1rem; }
}
@media (max-width: 768px) {
  .main-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(10,10,31,0.98);
    flex-direction: column;
    padding: 1.5rem;
    width: 250px;
    border-radius: 0 0 0 20px;
    display: none;
  }
  .main-menu.open { display: flex; }
  .mobile-menu-toggle { display: flex; }
  .header-nav { position: static; }
  #ai-helper { width: 70px; height: 70px; bottom: 20px; left: 20px; }
  .chat-bubble { width: 200px; font-size: 0.85rem; bottom: 80px; }
  .whatsapp-float { width: 50px; height: 50px; bottom: 20px; right: 20px; }
  .whatsapp-float svg { width: 26px; height: 26px; }
  .footer-container { gap: 1.5rem; }
}

/* === Page & Single === */
.page-content, .single-post {
  max-width: 900px;
  margin: 3rem auto;
  padding: 2rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(0, 212, 255, 0.15);
  border-radius: 20px;
}
.page-title, .post-title {
  font-size: 2rem;
  color: #00d4ff;
  margin-bottom: 1rem;
}
.entry-content { line-height: 1.8; color: rgba(255,255,255,0.9); }
.entry-content h2, .entry-content h3 { color: #00d4ff; margin: 1.5rem 0 1rem; }
.entry-content p { margin-bottom: 1rem; }
.entry-content a { color: #00d4ff; }

/* === 404 === */
.error-404 {
  text-align: center;
  padding: 6rem 5%;
}
.error-404 h1 {
  font-size: 8rem;
  background: linear-gradient(135deg, #00d4ff, #ffffff);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.error-404 h2 { font-size: 1.5rem; color: #fff; margin-bottom: 1rem; }
.btn-primary {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, #00d4ff, #0099cc);
  color: #000;
  border-radius: 50px;
  font-weight: 700;
  margin-top: 1rem;
}

/* === WooCommerce overrides === */
.wc-container { padding: 3rem 5%; max-width: 1400px; margin: 0 auto; }
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product { background: rgba(255,255,255,0.04); border: 1px solid rgba(0,212,255,0.15); border-radius: 20px; padding: 1rem; }
.woocommerce ul.products li.product .price { color: #00d4ff; font-weight: 900; }
.woocommerce a.button, .woocommerce button.button, .woocommerce-page a.button { background: linear-gradient(135deg, #00d4ff, #0099cc); color: #000; border-radius: 30px; font-weight: 700; }
