:root {
  --primary-color: #df0100;
  --primary-dark: #b00000;
  --primary-light: #ff4d4d;
  --secondary-color: #333333;
  --secondary-light: #555555;
  --accent-color: #f8f1e5;
  --light-color: #f9f9f9;
  --dark-color: #222222;

  --transition: all 0.3s ease;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

body {
  font-family: 'Tajawal', sans-serif;
  background-color: #fff;
  color: var(--secondary-color);
}

section {
  width: 100%;
  overflow: hidden;
}


.section-title {
  position: relative;
  display: inline-block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--secondary-color);
  padding-right: 40px;
  /* مساحة للأيقونة */
  margin-bottom: 30px;
}

.section-title i {
  position: absolute;
  right: 0;
  top: 15px;
  /* transform: translateY(-50%); */
  font-size: 1.5rem;
  color: var(--primary-color);
  opacity: 0.8;
}

.section-title:after {
  content: '';
  position: absolute;
  width: 60%;
  height: 3px;
  bottom: -12px;
  right: 40px;
  /* محاذاة مع الأيقونة */
  background-color: var(--primary-color);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.section-title:hover:after {
  width: 80%;
}

.section-title:hover i {
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% {
    transform: translateY(-50%) scale(1);
  }

  50% {
    transform: translateY(-50%) scale(1.1);
  }

  100% {
    transform: translateY(-50%) scale(1);
  }
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--secondary-light);
  position: relative;
  padding: 0 2rem;
  font-weight: 500;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Navbar */
.navbar {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
  height: 50px;
}

.nav-link {
  color: var(--secondary-color);
  font-weight: 500;
  margin: 0 10px;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}

.nav-link:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary-color);
  transition: width 0.3s;
}

.nav-link:hover:after,
.nav-link.active:after {
  width: 100%;
}

#searchModal .modal-content {
  border-radius: 10px;
  border: none;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

#searchModal .modal-header {
  border-bottom: 1px solid #eee;
  color: var(--primary-color);
  border-radius: 10px 10px 0 0;
}

.search-results {
  max-height: 400px;
  overflow-y: auto;
  border-top: 1px solid #eee;
  padding-top: 15px;
}

.search-results .dropdown-item {
  padding: 10px 15px;
  border-radius: 5px;
  transition: all 0.3s;
}

.search-results .dropdown-item:hover {
  background-color: #f8f9fa;
  color: var(--primary-color);
}



.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.hero-slider .swiper {
  width: 100%;
  height: 100%;
}

.hero-slider .swiper-slide {
  width: 100%;
  height: 100%;
}

.hero-slider .hero-section {

  min-height: 600px;
  display: flex;
  align-items: center;
  color: white;
  padding: 120px 0;
  text-align: center;
  width: 100%;
  height: 100%;
  background-attachment: fixed;
}



.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 30px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* Swiper Navigation */
.hero-slider .swiper-button-next,
.hero-slider .swiper-button-prev {
  display: none !important;
}

/* Swiper Pagination */
.hero-slider .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 1;
}

.hero-slider .swiper-pagination-bullet-active {
  background: var(--primary-color);
  width: 30px;
  border-radius: 6px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero-slider .hero-section {
    min-height: 500px;
  }

  .hero-slider .swiper-button-next,
  .hero-slider .swiper-button-prev {
    display: none;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }
}

.about-section {
  padding: 80px 0 0 0;
}

.about-section img {
  max-height: 500px;
  object-fit: cover;
  width: 100%;
}

/* features */
.features-section {
  background-color: var(--light-color);
}

.feature-box {
  text-align: center;
  padding: 20px;
  border-radius: 10px;
  transition: all 0.3s;
  background-color: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  height: 100%;
}

.feature-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}


.product-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
  margin-bottom: 30px;
  background-color: white;


  display: flex;
  flex-direction: column;
  /* height: 100%; */
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 20px rgba(0, 0, 0, 0.1);
}

.product-img {
  height: 200px;
  object-fit: contain;
  background-color: #f9f9f9;
  width: 100%;
}

.product-title {
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.product-price {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.2rem;
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: var(--primary-color);
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.8rem;
}

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;

}

.category-tabs {
  margin-bottom: 40px;
  border-bottom: 1px solid #eee;
}

.category-tab {
  padding: 10px 20px;
  cursor: pointer;
  font-weight: 500;
  color: var(--secondary-light);
  border-bottom: 3px solid transparent;
  transition: all 0.3s;
}

.category-tab.active,
.category-tab:hover {
  color: var(--primary-color);
  border-bottom: 3px solid var(--primary-color);
}

.modal-body img {
  border-radius: 10px;
  background: #f5f5f5;
}

/* تحسينات Owl Carousel */
.products-carousel .owl-stage {
  padding-top: 15px;
}

.products-carousel {
  position: relative;
}

.products-carousel .owl-nav {
  position: absolute;
  top: -70px;
  right: 0;
}

.products-carousel .owl-nav button {
  width: 40px;
  height: 40px;
  border-radius: 50% !important;
  background-color: var(--primary-color) !important;
  color: white !important;
  margin: 0 5px !important;
  transition: all 0.3s;
}

.products-carousel .owl-nav button:hover {
  background-color: var(--primary-dark) !important;
  transform: scale(1.1);
}

.products-carousel .owl-dots {
  /* margin-top: 20px; */
  text-align: center;
}

.products-carousel .owl-dot span {
  width: 12px;
  height: 12px;
  background: rgba(223, 1, 0, 0.3) !important;
}

.products-carousel .owl-dot.active span {
  background: var(--primary-color) !important;
  width: 30px;
  border-radius: 6px;
}

.category-carousel {
  display: none !important;
}

.category-carousel.active {
  display: block !important;
}


.whatsapp-float {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  cursor: pointer;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #128C7E;
}

.language-switcher {
  margin-left: 15px;
}

.language-switcher .btn {
  padding: 7px 10px;
  font-size: 0.9rem;
}


.contact-cta {
  padding: 90px 0;
}

.site-footer {
  background-color: white;
  color: black;
  padding: 60px 0 0;
  position: relative;
  font-family: 'Tajawal', sans-serif;
  font-weight: 500;
}

.footer-top {
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom {
  padding: 20px 0;
}

/* تنسيق الشعار والوصف */
.footer-brand {
  padding-right: 20px;
}

.footer-logo {
  height: 60px;
  margin-bottom: 20px;
  /* filter: brightness(0) invert(1); */
}

.footer-description {
  color: balck;
  line-height: 1.8;
  margin-bottom: 25px;
}

/* تنسيق عناوين الأقسام */
.footer-title {
  color: rgb(82, 82, 82);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}


/* تنسيق الروابط */
.footer-links ul,
.footer-contact ul {
  list-style: none;
  padding: 0;
  margin: 0;

}

.footer-links li,
.footer-contact li {
  margin-bottom: 12px;
  position: relative;
  transition: all 0.3s ease;
}

.footer-links a,
.footer-contact li {
  color: black;
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: #df0100;
  padding-right: 5px;
}

.footer-links i,
.footer-contact i {
  font-size: 1.1rem;
  color: #df0100;
}

/* تنسيق وسائل التواصل الاجتماعي */
.footer-social {
  margin-top: 25px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: var(--primary-color);
  color: #fff;
  border-radius: 50%;
  margin-left: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon:hover {
  background-color: #df0100;
  transform: translateY(-3px);
}

/* تنسيق حقوق النشر */
.copyright {
  color: #5a5a5a;
  font-size: 0.9rem;
  /* padding-top: 20px; */
}

.copyright a {
  color: #df0100;
  text-decoration: none;
}

/* تأثيرات الحركة */
.footer-contact li:hover {
  color: black;
}

/* تنسيق للشاشات الصغيرة */
@media (max-width: 991.98px) {
  .footer-brand {
    margin-bottom: 20px;
    padding-right: 0;
    text-align: center;
  }

  .footer-title {
    margin-top: 20px;
  }

  .footer-title:after {
    right: auto;
    left: 0;
  }

  .footer-social {
    justify-content: center;
  }
}

@media (max-width: 767.98px) {
  .site-footer {
    padding: 40px 0 0;
  }

  .footer-logo {
    height: 50px;
  }


}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }
}



/* Floating Contact Button Styles */
.contact-info-btn {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 60px;
  height: 60px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  border: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.contact-info-btn i {
  font-size: 1.5rem;
}

.contact-info-btn:hover {
  background-color: var(--primary-light);
  transform: scale(1.1);
}

.contact-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: var(--primary-color);
  border-radius: 50%;
  z-index: -1;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    opacity: 0.7;
  }

  70% {
    transform: scale(1.3);
    opacity: 0;
  }

  100% {
    transform: scale(0.95);
    opacity: 0;
  }
}

/* Contact Info Box Styles */
.contact-info-box {
  position: fixed;
  bottom: 100px;
  left: 30px;
  width: 300px;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.contact-info-box.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.contact-body {
  padding: 1rem 0;
}

.contact-item {
  display: flex;
  align-items: center;
  padding: 0.5rem 1.5rem;
  text-decoration: none;
  color: var(--dark-color);
  transition: all 0.2s ease;
}

.contact-item:hover {
  background-color: #f9f9f9;
}

.contact-icon {
  /* width: 40px;
  height: 40px; */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 1rem;
}

.contact-icon i {
  font-size: 1.4rem;
}

.phone i {
  color: var(--primary-light) !important;
}

.whatsapp .contact-icon {
  color: #25D366;
}

.facebook .contact-icon {
  color: #395693;
}

.contact-details {
  display: flex;
  flex-direction: column;
}

.contact-label {
  font-size: 0.8rem;
  color: var(--gray-color);
}

.contact-value {
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 576px) {
  .contact-info-btn {
    width: 50px;
    height: 50px;
    bottom: 20px;
    left: 20px;
  }

  .contact-info-box {
    width: 280px;
    left: 20px;
  }
}