/* style.css */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700&display=swap');

:root {
  --primary-color: #6a0dad;
  --primary-light: #8a2be2;
  --bg-color: #f9f6ff;
  --text-color: #333;
  --white: #fff;
  --border-radius: 12px;
  --shadow: 0 4px 12px rgba(106, 13, 173, 0.2);
}

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

body {
  font-family: 'Tajawal', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  direction: rtl;
}

/* Header */
header {
  background-color: var(--white);
  padding: 1rem 5%;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

header nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.logo {
  height: 40px;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1.8rem;
  flex-wrap: wrap;
  justify-content: center;
}

nav a {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 500;
  font-size: 1.1rem;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--primary-light);
}

/* Slider */
.slider {
  width: 90%;
  max-width: 1000px;
  margin: 2rem auto;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 350px;
  background-size: cover;
  background-position: center;
}

/* Products */
.products-section {
  padding: 2rem 5%;
  text-align: center;
}

.section-title {
  margin-bottom: 2rem;
  color: var(--primary-color);
  font-size: 2rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2rem;
  max-width: 1500px;
  margin: 0 auto;
}

.product-card {
  background: var(--white);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s;
}

.product-card:hover {
  transform: translateY(-6px);
}

.product-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.product-title {
  font-size: 1.25rem;
  margin: 0.6rem 0;
  color: var(--text-color);
}

.product-price {
  font-weight: bold;
  color: var(--primary-color);
  font-size: 1.15rem;
  margin: 0.6rem 0;
}

.buy-btn {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 0.65rem 1.4rem;
  border-radius: 30px;
  cursor: pointer;
  font-family: 'Tajawal';
  font-weight: 600;
  transition: background 0.3s;
}

.buy-btn:hover {
  background-color: var(--primary-light);
}

/* Features */
.features {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 3rem 5%;
  background-color: var(--white);
  margin: 3rem 0;
}

.feature-box {
  background: var(--bg-color);
  padding: 1.8rem 1.2rem;
  border-radius: var(--border-radius);
  width: 200px;
  text-align: center;
  box-shadow: var(--shadow);
}

.feature-icon {
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.feature-title {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 1.1rem;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 2.5rem 5%;
  text-align: center;
}

footer .logo {
  height: 30px;
  margin-bottom: 1.2rem;
}

.footer-links {
  margin-bottom: 1.2rem;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  margin: 0 1rem;
  font-weight: 500;
}

.footer-links a:hover {
  text-decoration: underline;
}

.copyright {
  margin-top: 1rem;
  font-size: 0.95rem;
  opacity: 0.9;
}

/* General Page Content */
.page-content {
  padding: 3rem 5%;
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.8;
}

.page-content h2 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  text-align: center;
}

.page-content p, .page-content li {
  margin-bottom: 1rem;
}

/* Contact Page */
.contact-form {
  max-width: 600px;
  margin: 2rem auto;
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.3rem;
  text-align: right;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: 'Tajawal';
  font-size: 1rem;
}

.form-group textarea {
  height: 130px;
  resize: vertical;
}

.submit-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.85rem 2.2rem;
  border-radius: 30px;
  font-family: 'Tajawal';
  font-weight: 600;
  cursor: pointer;
  margin-top: 1rem;
  font-size: 1.05rem;
}

/* Social Icons */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  margin: 1.8rem 0;
}

.social-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: bold;
  color: white;
  font-size: 1.1rem;
  transition: transform 0.3s;
}

.social-icon:hover {
  transform: scale(1.15);
}

/* Guide Page */
.guide-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.guide-card {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.3s;
}

.guide-card:hover {
  transform: translateY(-8px);
}

.guide-card h3 {
  color: var(--primary-color);
  margin: 1rem 0;
}

.step-number {
  display: inline-block;
  width: 45px;
  height: 45px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  line-height: 45px;
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  nav ul {
    gap: 1rem;
  }
  .slider {
    height: 250px;
  }
}
/* === Slider محسّن === */
.slide-container {
  width: 90%;
  max-width: 1000px;
  height: 350px;
  margin: 2rem auto;
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.slides {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  height: 100%;
}

.slide {
  width: 100%;
  flex-shrink: 0;
  height: 100%;
  background-size: cover;
  background-position: center;
}

/* أزرار التنقل (نفس التصميم السابق) */
.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--primary-color);
  color: white;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: all 0.3s;
  z-index: 10;
}

.slider-nav:hover {
  background-color: var(--primary-light);
  transform: translateY(-50%) scale(1.05);
}

.prev-btn { left: 12px; }
.next-btn { right: 12px; }

/* تحسين للجوال */
@media (max-width: 768px) {
  .slide-container { height: 250px; width: 95%; }
  .slider-nav { width: 38px; height: 38px; font-size: 1.2rem; }
  .prev-btn { left: 8px; }
  .next-btn { right: 8px; }
}
@media (max-width: 480px) {
  .slide-container { height: 200px; }
}