@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Tajawal', sans-serif;
  background: linear-gradient(to bottom, #f7f9fc, #ebeff5);
  direction: rtl;
  color: #333;
  line-height: 1.7;
  font-size: 16px;
}

/* Header */
header {
  background: linear-gradient(to right, #1e1e2f, #343454);
  color: white;
  padding: 25px 20px;
  text-align: center;
  font-size: 24px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Branding */
.site-branding {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 10px 20px;
  max-width: 1200px;
  margin: auto;
}

.branding-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  transition: transform 0.3s;
}

.branding-link:hover {
  transform: scale(1.03);
}

.site-logo {
  height: 75px;
  border-radius: 10px;
}

.site-title {
  font-size: 24px;
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}

/* Navigation */
nav {
  background: linear-gradient(to right, #29293d, #40405a);
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 12px;
  flex-wrap: wrap;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

nav a, .dropbtn {
  color: white;
  text-decoration: none;
  font-family: 'Tajawal', sans-serif;
  padding: 10px 20px;
  font-weight: bold;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  border-radius: 6px;
  transition: background-color 0.3s, transform 0.3s;
}

nav a:hover, .dropbtn:hover {
  background-color: #4f4f72;
  transform: scale(1.05);
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #40405a;
  min-width: 160px;
  border-radius: 6px;
  z-index: 1000;
  top: 100%;
  right: 0;
}

.dropdown-content a {
  color: #fff;
  padding: 10px 15px;
  display: block;
  text-decoration: none;
  transition: background 0.3s;
}

.dropdown-content a:hover {
  background-color: #57577a;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* ✅ Responsive for mobile */
@media (max-width: 768px) {
  .site-branding {
    justify-content: center;
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .site-logo {
    height: 60px;
  }

  .site-title {
    font-size: 20px;
    white-space: normal;
  }

  nav {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 10px;
  }

  .dropdown-content {
    position: static;
    border: none;
    background: #40405a;
    box-shadow: none;
    width: 100%;
    text-align: center;
  }

  .dropdown-content a {
    border-bottom: 1px solid #555;
  }
}


/* Dropdown */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 180px;
  z-index: 1;
  top: 100%;
  right: 0;
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
  border-radius: 8px;
  overflow: hidden;
  animation: fadeIn 0.4s ease;
}

.dropdown-content a {
  color: #222;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  border-bottom: 1px solid #eee;
  transition: background-color 0.3s;
}

.dropdown-content a:hover {
  background-color: #f5f5f5;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Page Title */
.page-title {
  text-align: center;
  margin-top: 40px;
  font-size: 28px;
  color: #2e2e2e;
  margin-bottom: 20px;
}

/* Form */
form {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  margin: 40px auto;
  max-width: 700px;
  animation: fadeIn 0.7s ease-in-out;
}

form label {
  display: block;
  font-weight: bold;
  margin-bottom: 6px;
  color: #444;
}

form input[type="text"],
form input[type="number"],
form input[type="file"],
form select,
form textarea {
  width: 100%;
  padding: 14px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
  background-color: #fafafa;
  transition: border-color 0.3s;
}

form input:focus,
form textarea:focus,
form select:focus {
  border-color: #1e88e5;
  outline: none;
}

form button {
  background: linear-gradient(to right, #1e1e2f, #2e2e4d);
  color: white;
  border: none;
  padding: 15px;
  font-size: 17px;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
  display: block;
  width: 100%;
}

form button:hover {
  background: linear-gradient(to right, #2e2e4d, #40405a);
  transform: translateY(-2px);
}


  .site-branding {
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .site-logo {
    height: 60px;
  }

  .site-title {
    font-size: 20px;
    white-space: normal;
  }

  nav {
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
  }

  nav a, .dropbtn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 10px;
  }


  form {
    padding: 20px;
    margin: 20px auto;
  }
}


/* Success Message */
.message {
  background-color: #e0fce0;
  color: #2e7d32;
  border: 1px solid #c5e1c5;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 25px;
  text-align: center;
}

/* شبكة عرض المنتجات */
.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  padding: 0 10px;
}

/* كارت المنتج */
.product-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* الصورة ماليا الكارت بس */
.product-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
}

/* معلومات المنتج */
.product-info {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 10px;
  text-align: center;
  z-index: 2;
}

/* ✅ ميديا كويري للموبايل - بدون لعب */
@media (max-width: 768px) {
  .product-list {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .product-card {
    aspect-ratio: 1 / 1;
    width: 100%;
    max-width: 100%;
  }
}

.product-info h3 {
  font-size: 14px;
  margin: 0;
  color: #fff;
  transition: transform 0.3s ease, color 0.3s ease;
}

.product-card:hover .product-info {
  background: rgba(0, 0, 0, 0.7);
}

.product-card:hover .product-info h3 {
  transform: scale(1.05);
  color: #ffcc00;
}

.product-info .price {
  display: none; /* نخفي السعر هنا لو مش محتاجه */
}


.view-btn {
  background-color: #1e1e2f;
  color: white;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: 0.3s;
}

.view-btn:hover {
  background-color: #33334d;
}


@media (max-width: 480px) {
  .product-card {
    width: 90%;
  }
}

/* Product Details Page */
.product-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  padding: 20px;
  justify-content: center;
}

.product-gallery {
  flex: 1 1 350px;
  max-width: 500px;
  text-align: center;
}

.main-image img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}



.thumbnail-slider {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 15px;
  gap: 10px;
}

.thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}

.thumb.active,
.thumb:hover {
  border-color: #007BFF;
}

/* Footer */
footer {
  background: #1e1e2f;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

.footer-link.whatsapp { color: #25D366; }
.footer-link.facebook { color: #3b5998; }
.footer-link.email    { color: #ffa500; }

.footer-link:hover {
  opacity: 0.85;
  text-decoration: underline;
}

.footer-copy {
  font-size: 13px;
  color: #aaa;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

  .main-image img {
    max-height: 300px;
  }

  .thumbnail-slider {
    gap: 6px;
  }

  .footer-copy {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .thumb {
    width: 60px;
    height: 45px;
  }

  .view-btn {
    font-size: 13px;
    padding: 8px 12px;
  }
}


/* Product Info */
.product-info {
  max-width: 450px;
  font-size: 16px;
}

.product-info h2 {
  margin-bottom: 15px;
  color: #333;
}

.product-info p {
  margin-bottom: 10px;
  line-height: 1.6;
}

.product-info .description {
  margin-top: 15px;
}
/* ✅ زر واتساب */
.product-info a[target="_blank"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #25D366;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: bold;
  font-size: 16px;
  color: white;
  text-decoration: none;
  transition: background 0.3s ease;
}

.product-info a[target="_blank"]:hover {
  background-color: #1ebe5b;
}

/* ✅ Responsive للموبايل */
@media (max-width: 768px) {
  .product-container {
    flex-direction: column;
    padding: 10px;
  }

  .product-info {
    padding: 15px;
  }

  .product-info h2 {
    font-size: 20px;
  }
}
/* Contact Page */
.contact-info-page {
  padding: 40px 20px;
  background-color: #f9f9f9;
}

.contact-box {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
  max-width: 1000px;
  margin: auto;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.contact-details {
  flex: 1;
  min-width: 300px;
  font-size: 16px;
}

.contact-details h3 {
  margin-bottom: 20px;
  color: #222;
}

.contact-details p {
  margin-bottom: 12px;
  color: #333;
}

.contact-details a {
  color: #1e7a1e;
  text-decoration: none;
}

/* Map */
.map-box {
  flex: 1;
  min-width: 300px;
  height: 300px;
  border-radius: 10px;
  overflow: hidden;
}

/* About Page */
.about-page .container {
  max-width: 950px;
  margin: auto;
  padding: 40px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.about-section p {
  font-size: 17px;
  line-height: 1.9;
  margin-bottom: 20px;
  color: #333;
}

.section-block {
  margin-top: 40px;
}

.block-title {
  background-color: #1e1e2f;
  color: #fff;
  padding: 10px 15px;
  font-size: 18px;
  border-radius: 6px;
  margin-bottom: 15px;
}

.section-block ul {
  list-style: disc inside;
  padding-right: 15px;
  color: #444;
  font-size: 16px;
  line-height: 1.9;
}

/* Top Bar */
.top-bar {
  background-color: #f9f9f9;
  border-bottom: 1px solid #ddd;
  padding: 8px 15px;
  font-size: 14px;
  color: #333;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 5px 20px;
  background: #f2f2f2;
}

.info-links {
  display: flex;
  gap: 15px;
  font-weight: bold;
  flex-wrap: wrap;
}

.info-links a {
  text-decoration: none;
  color: #333;
}

.info-links a:hover {
  color: #007bff;
}

/* Social Section */
.social-section {
  padding: 60px 20px;
  background-color: #f9f9f9;
  text-align: center;
}

.social-section h3 {
  margin-bottom: 40px;
  color: #333;
  font-size: 28px;
}

.social-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

/* Social Card Style */
.social-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  width: 360px;
  max-width: 100%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.07);
  text-align: center;
}

/* Responsive for mobile */
@media (max-width: 600px) {
  .social-section {
    padding: 40px 10px;
  }

  .social-section h3 {
    font-size: 22px;
    margin-bottom: 25px;
  }

  .social-grid {
    gap: 20px;
  }

  .social-card {
    width: 100%;
    padding: 15px;
  }

  .social-card h4 {
    font-size: 18px;
    margin-bottom: 12px;
  }

  .fb-page,
  .tiktok-embed,
  .instagram-media {
    max-width: 100% !important;
    width: 100% !important;
  }
}

.whatsapp a {
  text-decoration: none;
  color: #1e7a1e;
  font-weight: bold;
  font-size: 14px;
}

/* ✅ Responsive Adjustments */
@media (max-width: 768px) {
  .contact-box {
    flex-direction: column;
    padding: 20px;
  }

  .contact-details,
  .map-box {
    min-width: 100%;
  }

  .about-page .container {
    padding: 20px;
  }

  .about-section p {
    font-size: 15px;
  }

  .block-title {
    font-size: 16px;
  }

  .section-block ul {
    font-size: 14px;
  }

  .top-bar-content {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
  }

  .info-links {
    justify-content: center;
  }

  .whatsapp a {
    font-size: 13px;
  }
}

/* Responsive Top Bar */
@media (max-width: 600px) {
  .top-bar-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* Fade-in Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
/* Hero Slider */
.hero-slider {
  position: relative;
  height: 80vh;
  overflow: hidden;
}

.hero-slider .slides {
  position: relative;
  height: 100%;
  width: 100%;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.slide.active {
  opacity: 1;
}

/* ===== Responsive for Mobile ===== */
@media (max-width: 600px) {
  .hero-slider {
    height: 50vh;       /* يقلل الارتفاع على الموبايل */
  }
  .hero-slider .slides {
    height: 100%;
  }
  .slide {
    object-position: center top; /* يركّز الجزء المهم من الصورة */
  }
}
.overlay-text {
  position: absolute;
  top: 50%;
  right: 50%;
  transform: translate(50%, -50%);
  text-align: center;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 20px 30px;
  border-radius: 10px;
  z-index: 2;
}

.overlay-text h2 {
  font-size: 36px;
  margin-bottom: 10px;
}

.overlay-text p {
  font-size: 20px;
}

/* ===== Responsive for Mobile ===== */
@media (max-width: 600px) {
  .overlay-text {
    top: 40%;
    right: 50%;
    transform: translate(50%, -40%);
    padding: 12px 16px;
    border-radius: 6px;
  }

  .overlay-text h2 {
    font-size: 20px;
    margin-bottom: 6px;
  }

  .overlay-text p {
    font-size: 14px;
  }
}


/* Services Section */
.services {
  padding: 60px 20px;
  background-color: #F9F9F9;
  text-align: center;
}

.services h3 {
  font-size: 30px;
  margin-bottom: 40px;
  color: #3B3B3B;
}

.services-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.service-card {
  width: 280px;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.service-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.service-card h4 {
  font-size: 20px;
  margin: 15px 0 10px;
  color: #3B3B3B;
}

.service-card p {
  font-size: 15px;
  padding: 0 15px 20px;
  color: #666;
}

/* Responsive: عرض كارتين في السطر على الموبايل */
@media (max-width: 600px) {
  .services {
    padding: 40px 10px;
  }

  .services h3 {
    font-size: 24px;
    margin-bottom: 25px;
  }

  .services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 10px;
  }

  .service-card {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .service-card img {
    height: 140px;
  }

  .service-card h4 {
    font-size: 18px;
    margin: 10px 0 8px;
  }

  .service-card p {
    font-size: 14px;
    padding: 0 10px 15px;
  }
}

  .site-logo {
    max-width: 150px;
    height: auto;
  }

  body {
    font-size: 14px;
    padding: 10px;
  }
}

.pagination {
  text-align: center;
  margin: 30px auto;
}

.pagination a {
  display: inline-block;
  padding: 8px 12px;
  margin: 0 3px;
  text-decoration: none;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 6px;
  transition: 0.3s;
}

.pagination a:hover {
  background-color: #f0f0f0;
}

.pagination .active {
  background-color: #333;
  color: #fff;
  pointer-events: none;
}

.pagination .page-link svg {
  vertical-align: middle;
}
.product-info1 {
  padding: 15px;
}

.product-info1 h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #222;
}

.product-info1 .price {
  color: #1e7a1e;
  font-weight: bold;
  margin-bottom: 12px;
}
.videos-title {
  text-align: center;
  font-size: 28px;
  margin-bottom: 30px;
  color: #333;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 في السطر افتراضياً (للموبايل) */
  gap: 15px;
  padding: 20px;
}

.video-card {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 10px;
  box-sizing: border-box;
  text-align: center;
}

.video-card h3 {
  font-size: 14px;
  margin-bottom: 6px;
  color: #222;
}

.video-card p {
  font-size: 13px;
  color: #555;
  margin: 4px 0;
}

.video-card .video-views {
  color: gray;
  font-size: 12px;
}

.video-card video {
  width: 100%;
  border-radius: 10px;
  margin-top: 8px;
}

/* ✅ للتابلت */
@media (min-width: 600px) {
  .videos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ✅ للكمبيوتر */
@media (min-width: 992px) {
  .videos-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.video-title {
  font-size: 18px;
  margin-bottom: 8px;
  color: #222;
}

.video-description {
  font-size: 15px;
  color: #555;
  margin-bottom: 10px;
}

.video-views {
  font-size: 13px;
  color: gray;
  margin-bottom: 10px;
}

.video-player {
  width: 100%;
  border-radius: 10px;
  margin-top: 10px;
}

/* ✅ Responsive */
@media (max-width: 768px) {
  .video-card {
    width: 45%;
  }
}

@media (max-width: 480px) {
  .video-card {
    width: 100%;
  }

  .videos-title {
    font-size: 22px;
  }

  .video-title {
    font-size: 16px;
  }

  .video-description {
    font-size: 14px;
  }
}
.videos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 في السطر افتراضياً (للموبايل) */
  gap: 15px;
  padding: 20px;
}

.video-card {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 10px;
  box-sizing: border-box;
  text-align: center;
}

.video-card h3 {
  font-size: 14px;
  margin-bottom: 6px;
  color: #222;
}

.video-card p {
  font-size: 13px;
  color: #555;
  margin: 4px 0;
}

.video-card .video-views {
  color: gray;
  font-size: 12px;
}

.video-card video {
  width: 100%;
  border-radius: 10px;
  margin-top: 8px;
}

/* ✅ للتابلت */
@media (min-width: 600px) {
  .videos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ✅ للكمبيوتر */
@media (min-width: 992px) {
  .videos-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
