/* ============= الخطوط العامة والمتغيرات ============= */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&family=Tajawal:wght@400;500;700&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;

}

body {
    height: 100%;
  font-family: 'Tajawal', sans-serif;
  line-height: 1.7;
  color: #5a4a42;
  background-color: #fdf6f0;
  overflow-x: hidden;
  direction: rtl;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  color: #c05621;
  letter-spacing: -0.5px;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.animate {
  animation-duration: 0.5s;
  animation-fill-mode: both;
}

.animate-delay-1 {
  animation-delay: 0.2s;
}

.animate-delay-2 {
  animation-delay: 0.4s;
}

.animate-delay-3 {
  animation-delay: 0.6s;
}


/* ============= الهيدر الأول ============= */
.header {
  width: 100%;
  height: 50px;
  background: linear-gradient(135deg, #dd6b20, #dd6b20);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.header-container {
  width: 100%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 20px;
}

.list1 {
  display: flex;
  margin: 0;
  padding: 0;
  height: 100%;
  align-items: center;
  gap: 25px;
}

.list1 li {
  list-style: none;
  position: relative;
}

.list1 li a {
  color: white;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 4px;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.list1 li a:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  animation: pulse 1s infinite;
}

.list1 li a i {
  font-size: 14px;
  transition: transform 0.3s ease;
}

.list1 li a:hover i {
  transform: scale(1.1);
}

/* زر تسجيل الدخول */
.login-btn {
  position: absolute;
  right: 20px;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: white;
  padding: 3px 5px;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  white-space: nowrap;
  display: inline-block;
  min-width: 150px;
  /* أقل عرض للزر */
  min-height: 35px;
  text-align: center;
}

#navbarDropdown {
  display: inline-block;
  min-width: 120px;
  /* أقل عرض */
  max-width: 200px;
  /* ممكن تحدد أقصى عرض */
  height: 27px;
  text-align: center;
  /* الاسم يبقى في النص */
  overflow: hidden;
  /* يخفي الزيادة */
  text-overflow: ellipsis;
  /* يعمل ... لو الاسم طويل قوي */
  white-space: nowrap;
  /* يمنع النزول لسطر تاني */
  padding: 5px 10px;
  /* عشان يفضل شكله مظبوط */
}




/* ============= الهيدر الثاني ============= */
.nav2 {
  background: linear-gradient(135deg, #b45309, #3f1f1b);
  position: fixed;
  top: 50px;
  left: 0;
  right: 0;
  height: 70px;
  z-index: 999;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  ;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.5s ease;
}

.nav2 .container {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 0 20px;
}

.nav2 .image img {
  height: 150px;
  width: auto;
  transition: transform 0.3s ease;
  object-fit: contain;
}

.nav2 .image img:hover {
  transform: scale(1.05);
  animation: pulse 1s;
}

.nav2 .search {
  flex: 1;
  max-width: 600px;
  margin: 0 30px;
  position: relative;
}

.nav2 .search input {
  width: 100%;
  padding: 10px 15px 10px 40px;
  border-radius: 25px;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  font-family: 'Tajawal', sans-serif;
}

.nav2 .search input:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.7);
}

.nav2 .search::before {
  content: "\f002";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  font-size: 14px;
}

.navbar-nav {
  display: flex;
  gap: 15px;
  margin: 0;
  padding: 0;
}

.nav-item {
  list-style: none;
}

.nav-item a {
  color: white;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 4px;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}

.nav-item a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  animation: pulse 1s;
}

.nav-item a i {
  font-size: 14px;
  transition: transform 0.3s ease;
}

.nav-item a:hover i {
  transform: scale(1.1);
}

.Product-basket {
  position: relative;
  color: white;
  font-size: 1.3rem;
  margin-right: 15px;
  cursor: pointer;
  transition: transform 0.3s ease;
  padding: 8px;
  border-radius: 50%;
}

.Product-basket:hover {
  transform: scale(1.1);
  animation: pulse 1s;
}

/* أنماط قائمة العلامات التجارية المنسدلة */
.brands-dropdown {
  position: relative;
}

.brands-menu {
  position: absolute;
  top: 100%;
  right: 0;
  width: 300px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  padding: 15px;
  display: none;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

.brands-dropdown:hover .brands-menu {
  display: block;
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.brand-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  border-radius: 6px;
  transition: transform 0.3s ease;
}

.brand-item:hover {
  background: #f5f5f5;
  transform: scale(1.05);
}

.brand-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  margin-bottom: 5px;
}

.brand-name {
  font-size: 0.7rem;
  text-align: center;
  color: #333;
  font-weight: 500;
}

/* تنسيق كلمة المزيد في قائمة العلامات التجارية */
.brands-grid .fff {
  grid-column: 1 / -1;
  text-align: center;
  padding: 10px;
  margin-top: 10px;
  border-top: 1px solid #e5e7eb;
}

.brands-grid .fff h2 {
  font-size: 16px;
  color: #b45309;
  margin: 0;
  padding: 8px 15px;
  display: inline-block;
  border-radius: 4px;
  transition: transform 0.3s ease;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.brands-grid .fff h2:hover {
  color: #3f1f1b;
  background-color: rgba(249, 115, 22, 0.1);
  border-bottom-color: #b45309;
}

.hero-section {
  padding: 50px 10px;
  color: white;
  text-align: center;
  margin-top: 200px;
  padding-top: 0;
  position: relative;
  top: 0px;
  z-index: 1;
  margin-bottom: 60px;
}

.hero-content h1 {
  font-size: 48px;
  margin-bottom: 10px;
}

.hero-content p {
  font-size: 20px;
  margin-bottom: 10px;
  color: #9c4221;
}

.hero-content .btn {
  padding: 10px 30px;
  background: #e67e22;
  color: #9c4221;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
}

.hero-content a:hover {
  background: #3f1f1b;
  transform: translateY(-2px);
}

.hero-section222 {
  padding: 50px 10px;
  color: white;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 120px;
  /* تم تقليل هذه القيمة */
  margin-bottom: -30px;
  /* تم إضافة هذه القيمة لتقليل المسافة */
  z-index: 10;
  position: relative;

}

/* ============= MAIN SECTION ============= */
main {
  margin-top: 50px;
  padding: 0 15px 30px;
  animation: fadeInUp 0.8s ease;
}

.carousel {
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  background-color: #fdf6f0;
}

.carousel-inner {
  border-radius: 8px;
}

.carousel-item {
  height: 400px
}


.carousel-item img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
}

/* مؤشرات الشرائح */
.carousel-indicators {
  bottom: 10px;
}

.carousel-indicators [data-bs-target] {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin: 0 4px;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  transition: all 0.3s ease;
}

.carousel-indicators .active {
  background-color: #dd6b20;
  ;
  width: 20px;
  border-radius: 4px;
}

/* أزرار التحكم */
.carousel-control-prev,
.carousel-control-next {
  width: 36px;
  height: 36px;
  background-color: rgba(249, 115, 22, 0.8);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.9;
  transition: all 0.2s ease;
}

.carousel-control-prev {
  right: 15px;
  left: auto;
}

.carousel-control-next {
  left: 15px;
  right: auto;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.05);
}

/* النص فوق الصور */
.carousel-caption {
  right: 5%;
  left: 5%;
  bottom: 20px;
  padding: 15px;
  background: rgba(194, 65, 12, 0.8);
  border-radius: 6px;
}

.carousel-caption h5 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: white;
}

.carousel-caption p {
  font-size: 0.85rem;
  margin-bottom: 0;
  color: #f0f0f0;
}

/* ============= قسم تسوق بالأقسام ============= */
.suggested-products {
  margin-top: 50px;
  padding: 20px 0;
}

.section-header {
  margin-bottom: 30px;
  text-align: right;
}

.section-header h2 {
  font-size: 1.8rem;
  color: #c05621;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.section-header h2 i {
  color: #b45309;
}

/* أنماط البطاقات */
.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 150px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
  text-decoration: none;
  color: #c05621;
  animation: fadeInUp 0.5s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
  color: #b45309;
}

.category-icon {
  width: 60px;
  height: 60px;
  background: #feebc8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.category-card:hover .category-icon {
  background: #dd6b20;
}

.category-icon i {
  font-size: 24px;
  color: #b45309;
}

.category-card:hover .category-icon i {
  color: white;
}

.category-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

/* تعديلات السلايدر */
.swiper-slide {
  width: auto !important;
  padding: 10px;
}

.products-slider {
  padding: 20px 40px;
}

.swiper-button-prev,
.swiper-button-next {
  color: #b45309;
  background: rgba(255, 255, 255, 0.8);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 1.2rem;
}

/* ============= قسم مقترح لك ============= */
.products-row {
  margin: 80px auto;
  padding: 0 15px;
  max-width: 1200px;
}

.products-row .section-header {
  margin-bottom: 30px;
  text-align: right;
}

.products-row .section-header h2 {
  font-size: 1.8rem;
  color: #3f1f1b;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.products-row .section-header h2 i {
  color: #b45309;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.product-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  animation: fadeInUp 0.6s ease;
   
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 
                0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #d1fae5;
}

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #3f1f1b;
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 2;
}

.product-wishlist {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: all 0.3s ease;
}

.product-wishlist:hover {
  background: #b45309;
  color: white;
}

.product-wishlist i {
  font-size: 0.9rem;
}

.product-image {
  text-align: center;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  
}

.product-image img {
  margin-top: 20px;
  width: 300px !important; 
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-details {
  padding: 15px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-title {
  font-size: 0.95rem;
  color: #2d3748;
  margin-bottom: 10px;
  font-weight: 600;
  line-height: 1.4;
  display: flex;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 42px;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
  color: #ffb400;
  font-size: 0.8rem;
}

.product-rating span {
  color: #6b7280;
  margin-right: 5px;
}

.product-price {
  margin-top: auto;
  margin-bottom: 15px;
}

.current-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: #6b7280;
  display: block;
}

.original-price {
  font-size: 0.9rem;
  color: #6b7280;
  text-decoration: line-through;
  display: block;
}

.add-to-cart {
    background-color: #b45309;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 90%;
    position: relative;
    overflow: hidden;
}
.add-to-cart:hover {
  background: linear-gradient(135deg, #3f1f1b, #b45309);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(30, 58, 138, 0.3);
  animation: pulse 1s;
}

/* ============= قسم العلامات التجارية ============= */
.trade-marks {
  margin: 80px auto;
  padding: 0 15px;
  max-width: 1200px;
}

.trade-marks .section-header h2 {
  font-size: 1.8rem;
  color: #3f1f1b;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.trade-marks .section-header h2 i {
  color: #b45309;
}

/* ============= قسم عروض التصفية ============= */
.products-show {
  margin: 80px auto;
  padding: 0 15px;
  max-width: 1200px;
}

.products-show .show-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.products-show h3 {
  font-size: 1.8rem;
  color: #3f1f1b;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
  text-align: right;
}

.show-main {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  animation: fadeInUp 0.7s ease;
}

.show-main:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.show-info {
  padding: 25px;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.show-info img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.show-main:hover .show-info img {
  transform: scale(1.1);
}

.show-info h3 {
  font-size: 1.2rem;
  color: #3f1f1b;
  margin: 15px 0;
  padding: 0;
  position: relative;
}

.show-info h3::after {
  display: none;
}

.show-info h2 {
  color: #b45309;
  font-size: 1rem;
  margin-top: 15px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.show-info h2::after {
  content: "\f054";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.show-main:hover .show-info h2 {
  color: #3f1f1b;
}

.show-main:hover .show-info h2::after {
  transform: translateX(5px);
}

/* ============= مودال العلامات التجارية ============= */
#brandsModal .modal-header {
  border-bottom: 1px solid #e5e7eb;
  padding: 15px 20px;
}

#brandsModal .modal-title {
  font-size: 1.5rem;
  color: #dd6b20;
  font-weight: 700;
}

#brandsModal .modal-body {
  padding: 20px;
}

#brandsModal .brands-grid-modal {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 20px;
  padding: 10px;
}

#brandsModal .brand-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px;
  border-radius: 8px;
  transition: transform 0.3s ease;
  text-decoration: none;
  border: 1px solid #e5e7eb;
}

#brandsModal .brand-item:hover {
  background-color: #ffedd5;
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

#brandsModal .brand-logo {
  width: 70px;
  height: 70px;
  object-fit: contain;
  margin-bottom: 10px;
}

#brandsModal .brand-name {
  font-size: 0.9rem;
  color: #2d3748;
  font-weight: 600;
  text-align: center;
}

#brandsModal .modal-footer {
  border-top: 1px solid #e5e7eb;
  padding: 15px 20px;
}

#brandsModal .btn-secondary {
  background-color: #dd6b20;
  border: none;
  padding: 8px 20px;
}

#brandsModal .btn-secondary:hover {
  background-color: #3f1f1b;
}

/* ============= الفوتر ============= */
footer {
  background: linear-gradient(135deg, #7c2d12, #b45309);
  color: white;
  padding: 40px 0 20px;
  margin-top: 50px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 30px;
}

.footer-section {
  flex: 1;
  min-width: 250px;
  margin-bottom: 20px;
  padding: 0 15px;
}

.footer-section h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
  color: white;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50px;
  height: 2px;
  background-color: #b45309;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: #f0f0f0;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.footer-section ul li a:hover {
  color: #3f1f1b;
  transform: translateX(-5px);
}

.footer-section ul li a i {
  font-size: 14px;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.social-icons a:hover {
  background: #b45309;
  transform: translateY(-5px);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.tax-id {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  align-self: flex-start;
}

.tax-id i {
  font-size: 1rem;
}

/* ============= تحسينات الـ Responsiveness ============= */
@media (max-width: 1400px) {
  .container {
    max-width: 1140px;
  }
}

@media (max-width: 1200px) {
  .container {
    max-width: 960px;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

@media (max-width: 992px) {
  .container {
    max-width: 720px;
  }

  .nav2 {
    height: auto;
    padding: 10px 0;
    top: 60px;
  }

  main {
    margin-top: 180px;
  }

  .carousel-item {
    height: 250px;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media (max-width: 768px) {
  .container {
    max-width: 540px;
  }


  .header {
    height: auto;
    padding: 10px 0;
  }

  .header-container {
    flex-direction: column;
  }

  .login-btn {
    position: static;
    margin-bottom: 10px;
  }

  .list1 {
    flex-direction: column;
    gap: 10px;
  }

  main {
    margin-top: 140px;
  }

  .carousel-item {
    height: 200px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-section {
    flex: 100%;
    margin-bottom: 30px;
  }

  /* تعديلات قائمة العلامات التجارية للشاشات الصغيرة */
  .brands-menu {
    right: auto;
    left: 0;
    width: 250px;

  }

  .brands-grid-modal {
    grid-template-columns: repeat(2, 1fr);
  }

  #brandsModal .brands-grid-modal {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 15px;
  }

  .carousel-item {
    height: 160px;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    max-width: 280px;
    margin: 0 auto;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
  }

  .tax-id {
    align-self: center;
  }

  #brandsModal .brands-grid-modal {
    grid-template-columns: repeat(2, 1fr);
  }

  #brandsModal .brand-logo {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 400px) {
  .carousel-item {
    height: 140px;
  }

  .category-card {
    width: 100px;
    height: 100px;
  }

  .category-icon {
    width: 40px;
    height: 40px;
  }

  .category-icon i {
    font-size: 16px;
  }

  .product-card {
    max-width: 100%;
  }

  .show-container {
    grid-template-columns: 1fr;
  }

  .products-show h3 {
    font-size: 1.5rem;
  }

  .show-info {
    padding: 20px;
  }

  .show-info img {
    width: 70px;
    height: 70px;
  }
}

.news-ticker {
  width: 100%;
  background: linear-gradient(to right, #f8f9fa, #e9ecef);
  border: 1px solid #dee2e6;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin: 120px 0;
  direction: rtl;
}

.ticker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background: linear-gradient(to right, #6c757d, #495057);
  color: white;
}

.ticker-title {
  font-weight: bold;
  font-size: 18px;
  display: flex;
  align-items: center;
}

.ticker-title::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #ffc107;
  border-radius: 50%;
  margin-left: 10px;
  animation: blink 1.5s infinite;
}

.ticker-controls button {
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s;
}

.ticker-controls button:hover {
  color: #ffc107;
  transform: scale(1.1);
}

.ticker-content {
  padding: 15px;
  overflow: hidden;
  position: relative;
}

.ticker-items {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: ticker-scroll 40s linear infinite;
  padding-right: 100%;
}

.ticker-item {
  display: flex;
  align-items: center;
  background: white;
  padding: 10px 20px;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  flex-shrink: 0;
  min-width: 200px;
  justify-content: center;
  border-left: 3px solid #6c757d;
}

.ticker-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-left-color: #ffc107;
}

.ticker-logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
  margin-left: 10px;
  transition: transform 0.3s;
}

.ticker-item:hover .ticker-logo {
  transform: rotate(5deg) scale(1.1);
}

.ticker-name {
  font-weight: 600;
  color: #495057;
  white-space: nowrap;
}

@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(100% - 660px));
    /* 3 عناصر (200 + 20) * 3 */
  }
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

/* التحكم في التوقف */
.ticker-paused .ticker-items {
  animation-play-state: paused;
}

/* Responsive Design */
@media (max-width: 768px) {
  .ticker-items {
    gap: 15px;
    animation-duration: 30s;
  }

  .ticker-item {
    min-width: 160px;
    padding: 8px 15px;
  }

  @keyframes ticker-scroll {
    100% {
      transform: translateX(calc(100% - 525px));
      /* 3 عناصر (160 + 15) * 3 */
    }
  }
}

/* تخصيص شريط التمرير للمتصفحات التي تدعم WebKit (كروم، سفاري، إيدج الجديد) */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #f97316, #c2410c);
  border-radius: 10px;
  border: 3px solid #f1f1f1;
  transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #c2410c, #f97316);
  cursor: pointer;
}

::-webkit-scrollbar-corner {
  background: #f1f1f1;
}

/* تخصيص شريط التمرير لمتصفح فايرفوكس */
* {
  scrollbar-width: thin;
  scrollbar-color: #f97316 #f1f1f1;
}

/* تخصيص إضافي لشريط التمرير في عناصر محددة */
.ticker-content,
.products-slider,
.modal-body {
  scrollbar-width: thin;
  scrollbar-color: #6c757d #f1f1f1;
}

.ticker-content::-webkit-scrollbar,
.products-slider::-webkit-scrollbar,
.modal-body::-webkit-scrollbar {
  height: 8px;
}

.ticker-content::-webkit-scrollbar-thumb,
.products-slider::-webkit-scrollbar-thumb,
.modal-body::-webkit-scrollbar-thumb {
  background: #6c757d;
}

/* تأثيرات خاصة عند التركيز */
::-webkit-scrollbar-thumb:active {
  background: linear-gradient(135deg, #9a3412, #c2410c);
}

/* تخصيص شريط التمرير للوضع الداكن (إذا كان الموقع يدعمه) */
@media (prefers-color-scheme: dark) {
  ::-webkit-scrollbar {
    width: 12px;
  }

  ::-webkit-scrollbar-track {
    background: #2d3748;
  }

  ::-webkit-scrollbar-thumb {
    background: #4a5568;
    border: 3px solid #2d3748;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: #718096;
  }

  * {
    scrollbar-color: #4a5568 #2d3748;
  }
}

/* ============= أنماط تسجيل الدخول ============= */
.login-popup .swal2-title {
  font-size: 1.5rem;
  color: #c05621;
  /* برتقالي محروق */
}

.login-popup .form-group {
  margin-bottom: 1rem;
}

.login-popup .input-group-text {
  background-color: #feebc8;
  /* برتقالي فاتح */
  border-right: none;
  color: #b45309;
  /* بني داكن */
}

.login-popup .form-control {
  border-left: none;
  padding: 12px;
  background-color: #feebc8;
  /* برتقالي فاتح */
  color: #c05621;
  /* برتقالي محروق */
  font-family: 'Tajawal', sans-serif;
}

.login-popup .form-control:focus {
  box-shadow: none;
  background-color: #fff;
}

.login-popup .btn-primary {
  background-color: #dd6b20;
  /* برتقالي */
  border: none;
  font-weight: 600;
  transition: all 0.3s;
  font-family: 'Cairo', sans-serif;
}

.login-popup .btn-primary:hover {
  background-color: #b45309;
  /* بني داكن */
  transform: translateY(-2px);
}

.social-login {
  margin-bottom: 1.5rem;
}

.social-btn {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 5px;
  color: white;
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s;
  font-family: 'Cairo', sans-serif;
}

.social-btn i {
  font-size: 1.1rem;
}

.social-btn.facebook {
  background-color: #3b5998;
}

.social-btn.facebook:hover {
  background-color: #344e86;
  transform: translateY(-2px);
}

.social-btn.google {
  background-color: #db4437;
}

.social-btn.google:hover {
  background-color: #c33d32;
  transform: translateY(-2px);
}

.divider {
  display: flex;
  align-items: center;
  margin: 1rem 0;
  color: #b45309;
  /* بني داكن */
  font-size: 0.9rem;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #e0c8d5;
}

.divider::before {
  margin-right: 10px;
}

.divider::after {
  margin-left: 10px;
}

.phone-login .btn {
  padding: 10px;
  transition: all 0.3s;
  color: #c05621;
  /* برتقالي محروق */
  border-color: #d4a5c4;
  font-family: 'Tajawal', sans-serif;
}

.phone-login .btn:hover {
  transform: translateY(-2px);
  background-color: #feebc8;
  /* برتقالي فاتح */
}

@media (max-width: 576px) {
  .login-popup {
    width: 90% !important;
  }
}

.image-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 120px;
  /* تم تقليل هذه القيمة */
  margin-bottom: -30px;
  /* تم إضافة هذه القيمة لتقليل المسافة */
  z-index: 10;
  position: relative;
}


.image-logo img {
  width: 200px;
  /* يمكن تعديل الحجم حسب الحاجة */
  height: auto;
  /* للحفاظ على نسبة العرض إلى الارتفاع */
  object-fit: contain;
  transition: transform 0.3s ease;
}

/* ============================== */
/* Enhanced Product Cards */
/* ============================== */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.product-card {
  background: #FFFFFF;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  border: 1px solid #e5e7eb;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-color: #d1fae5;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #dd6b20, #3f1f1b);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover::before {
  opacity: 1;
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background: #f9fafb;
  padding: 1.5rem;
  transition: transform 0.3s ease;
}

.product-card:hover img {
  transform: scale(1.05);
}

.product-info {
  padding: 1.25rem;
  width: 100%;
  background: #fff;
  z-index: 1;
}

.product-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0.5rem 0;
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: color 0.3s ease;
}

.product-card:hover h3 {
  color: #b45309;
}

.product-card h3 i {
  font-size: 1rem;
  color: #b45309;
}

.product-card p {
  font-size: 1.1rem;
  font-weight: 700;
  color: #b45309;
  margin: 0.5rem 0 1.25rem;
  position: relative;
  display: inline-block;
}

.product-card p::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #b45309;
  transition: width 0.3s ease;
}

.product-card:hover p::after {
  width: 50%;
}

.add-to-cart {
  background-color: #b45309;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 90%;
  position: relative;
  overflow: hidden;
}

.add-to-cart::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(214, 137, 13, 0.2), transparent);
  transition: 0.5s;
}

.add-to-cart:hover {
  background-color: #b45309;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  ;
}

.add-to-cart:hover::before {
  left: 100%;
}

/* Animation for new items */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card {
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.product-card:nth-child(1) {
  animation-delay: 0.1s;
}

.product-card:nth-child(2) {
  animation-delay: 0.2s;
}

.product-card:nth-child(3) {
  animation-delay: 0.3s;
}

.product-card:nth-child(4) {
  animation-delay: 0.4s;
}

.product-card:nth-child(5) {
  animation-delay: 0.5s;
}

.product-card:nth-child(6) {
  animation-delay: 0.6s;
}

.product-card:nth-child(7) {
  animation-delay: 0.7s;
}

.product-card:nth-child(8) {
  animation-delay: 0.8s;
}

/* ============= سلة التسوق الجانبية ============= */
.cart-sidebar {
  position: fixed;
  top: 120px;
  right: -400px;
  width: 380px;
  height: calc(100vh - 120px);
  background: white;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 9999;
  overflow-y: auto;
  padding: 20px;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

.cart-sidebar.active {
  right: 0;
}

.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
  margin-bottom: 20px;
}

.cart-header h3 {
  font-size: 1.4rem;
  margin: 0;
  color: #c05621;
}

.close-cart {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #777;
  transition: all 0.3s ease;
}

.close-cart:hover {
  color: #c05621;
  transform: rotate(90deg);
}

.cart-items {
  margin-bottom: 20px;
}

.cart-item {
  display: flex;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #f5f5f5;
}

.cart-item-img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  margin-left: 15px;
  border-radius: 8px;
  background: #f9f9f9;
  padding: 5px;
}

.cart-item-details {
  flex: 1;
}

.cart-item-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: #333;
}

.cart-item-price {
  font-size: 0.9rem;
  color: #c05621;
  font-weight: 700;
  margin-bottom: 8px;
}

.cart-item-quantity {
  display: flex;
  align-items: center;
}

.quantity-btn {
  width: 25px;
  height: 25px;
  border: 1px solid #ddd;
  background: #f9f9f9;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.2s ease;
}

.quantity-btn:hover {
  background: #eee;
}

.quantity-input {
  width: 40px;
  height: 25px;
  text-align: center;
  border: 1px solid #ddd;
  border-left: none;
  border-right: none;
  font-size: 0.9rem;
}

.remove-item {
  margin-right: 15px;
  color: #c05621;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.2s ease;
}

.remove-item:hover {
  color: #ff0000;
  transform: scale(1.1);
}

.cart-total {
  padding: 15px;
  background: #f9f9f9;
  border-radius: 8px;
  margin-bottom: 20px;
}

.cart-total p {
  display: flex;
  justify-content: space-between;
  margin: 0 0 10px;
  font-weight: 600;
}

.cart-total p:last-child {
  margin-bottom: 0;
  font-size: 1.1rem;
  color: #c05621;
}

.checkout-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #dd6b20, #3f1f1b);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.checkout-btn:hover {
  background: linear-gradient(135deg, #3f1f1b, #dd6b20);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.empty-cart {
  text-align: center;
  padding: 40px 0;
  color: #777;
}

.empty-cart i {
  font-size: 3rem;
  margin-bottom: 15px;
  color: #ddd;
}

.empty-cart p {
  font-size: 1.1rem;
  margin: 0;
}

@media (max-width: 576px) {
  .cart-sidebar {
    width: 90%;
    right: -100%;
  }

  .cart-item-img {
    width: 60px;
    height: 60px;
  }
}

#notfound {
  display: none;
  text-align: center;
  padding: 20px;
  background: #fff8f8;
  border-radius: 8px;
  margin: 20px auto;
  max-width: 600px;
  border: 1px solid #ffebeb;
  color: #c05621;
}

#notfound i {
  margin-left: 8px;
  color: #c05621;
}







:root {
  --dark: #3f1f1b;
  --accent: #b45309;
  --bg: #fff8f6;
  --muted: #6b6b6b;
  --radius: 10px;
  --maxw: 720px;
  --gap: 14px;
}

.card {
  width: 100%;
  max-width: var(--maxw);
  background: linear-gradient(180deg, #fff, #fffefc);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 8px 30px rgba(63, 31, 27, 0.08);
  border: 1px solid rgba(63, 31, 27, 0.06);
  margin: 0 auto;
}

.card-title {
  margin: 0 0 16px 0;
  font-size: 20px;
  color: var(--dark);
  text-align: center;
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(180, 83, 9, 0.12);
}

/* rows */
.row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: var(--gap);
}

.row label {
  font-size: 14px;
  color: var(--dark);
  font-weight: 600;
}

input[type="text"],
input[type="number"],
textarea,
select,
input[type="file"] {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(63, 31, 27, 0.12);
  background: #fff;
  outline: none;
  font-size: 14px;
  color: var(--dark);
}

input[type="file"] {
  padding: 6px;
}

/* textarea */
textarea {
  resize: vertical;
  min-height: 110px;
}

/* buttons */
.actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 8px;
}

.btn-primary {
  background: linear-gradient(90deg, var(--accent), #c46a11);
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(180, 83, 9, 0.18);
}

.btn-primary:hover {
  transform: translateY(-2px)
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(63, 31, 27, 0.12);
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
}

/* image preview */
.img-preview-wrap {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 6px;
  border: 1px dashed rgba(63, 31, 27, 0.08);
  padding: 8px;
  border-radius: 8px;
}

.img-preview-wrap img {
  width: 86px;
  height: 86px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.btn-link {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font-weight: 600;
}

/* note */
.note {
  text-align: center;
  color: var(--muted);
  margin-top: 14px;
  font-size: 13px;
}

/* responsive */
@media (max-width:520px) {
  .card {
    padding: 18px
  }

  .img-preview-wrap img {
    width: 70px;
    height: 70px
  }
}


/* تخلي القائمة تظهر عند الـ hover */
.nav-item.dropdown:hover .dropdown-menu {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* إعدادات القائمة */
.dropdown-menu {
  width: 260px;
  max-height: 400px;
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: 8px;
  padding: 8px 0;
  background: white;
  /* خلفية أغمق سنة من الأبيض */
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);

  /* للحركة */
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
}

/* العناصر */
.dropdown-menu .dropdown-item {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 10px;
  font-size: 15px;
  padding: 10px 15px;
  cursor: pointer;
  color: #dd6b20;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s ease;
}

/* الأيقونة */
.dropdown-menu .dropdown-item i {
  color: #3f1f1b;
  font-size: 25px;
  width: 25px;
  text-align: center;
  margin-left: 15px;

}

/* عند المرور */
.dropdown-menu .dropdown-item:hover {
  background-color: #ffe5cc;
  /* برتقالي فاتح */
  color: #dd6b20;
}

/* Scrollbars */
.dropdown-menu::-webkit-scrollbar {
  width: 6px;
}

.dropdown-menu::-webkit-scrollbar-thumb {
  background-color: #dd6b20;
  border-radius: 10px;
}

.dropdown-menu::-webkit-scrollbar-track {
  background-color: #f5f5f5;
}

.dropdown-menu {
  scrollbar-width: thin;
  scrollbar-color: #dd6b20 #f5f5f5;
}






/* استايل الباجينيشن */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  direction: rtl;
  /* عشان يمشي مع العربي */
}

.pagination .page-link {
  color: #fff !important;
  background-color: #dd6b20 !important;
  /* برتقالي */
  border: none !important;
  margin: 0 3px;
  border-radius: 5px;
  padding: 8px 14px;
  font-size: 14px;
  transition: 0.3s;
}

.pagination .page-link:hover {
  background-color: #c65a1b !important;
  /* برتقالي أغمق */
}

.pagination .active .page-link {
  background-color: #3f1f1b !important;
  /* بني */
  border-color: #3f1f1b !important;
}

/* تثبيت حجم الأسهم (SVG) */
.pagination svg {
  height: 18px !important;
  width: 18px !important;
}

#cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: red;
  color: white;
  font-size: 0.65rem;
  font-weight: bold;
  padding: 0.15em 0.35em;
  border-radius: 50%;
  line-height: 1;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wishlist-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  outline: none;
}







/* ============= الهيدر الموحد للشاشات الصغيرة ============= */
.mobile-nav {
  background: linear-gradient(135deg, #c65a1b, #3f1f1b);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  padding: 10px 15px;
  display: none;
}

@media (max-width: 991.98px) {
  .mobile-nav {
    display: flex;
  }

  .mobile-nav .container-fluid {
    padding: 0;
  }

  .mobile-logo {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
  }

  .mobile-logo:hover {
    transform: scale(1.05);
  }

  .navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 5px 10px;
    transition: all 0.3s ease;
  }

  .navbar-toggler:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  .navbar-toggler-icon {
    color: #ffffff;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
  }

  /* محتوى القائمة المنبثقة */
  #mobileNavbar {
    background: #ffffff;
    border-radius: 8px;
    margin-top: 10px;
    padding: 15px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    animation: fadeInDown 0.3s ease;
  }

  /* شريط البحث في القائمة */
  .mobile-search {
    margin-bottom: 20px;
  }

  .search-box {
    display: flex;
    background: #f8f9fa;
    border-radius: 25px;
    overflow: hidden;
    border: 1px solid #e9ecef;
  }

  #mobileSearch {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 15px;
    font-size: 0.9rem;
    font-family: 'Tajawal', sans-serif;
  }

  #mobileSearch:focus {
    outline: none;
  }

  .search-btn {
    background: #f97316;
    ;
    border: none;
    color: #ffffff;
    padding: 0 15px;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .search-btn:hover {
    background: #c2410c;
  }

  /* روابط القائمة */
  .mobile-nav-links {
    margin-bottom: 15px;
    border-bottom: 1px solid #f1f1f1;
    padding-bottom: 15px;
  }

  .mobile-nav-links:last-child {
    border-bottom: none;
    margin-bottom: 0;
  }

  .mobile-nav-links .nav-item {
    margin-bottom: 5px;
  }

  .mobile-nav-links .nav-item:last-child {
    margin-bottom: 0;
  }

  .mobile-nav-links .nav-link {
    color: #2d3748;
    ;
    padding: 10px 15px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
  }

  .mobile-nav-links .nav-link:hover {
    background: #ffedd5;
    ;
    color: #c2410c;
    transform: translateX(-5px);
  }

  .mobile-nav-links .nav-link i {
    width: 20px;
    text-align: center;
    color: #f97316;
  }

  .mobile-nav-links .nav-link:hover i {
    color: #c2410c;
    animation: pulse 1s;
  }

  /* تعديلات على باقي العناصر لتناسب الهيدر الجديد */
  main {
    margin-top: 70px;
  }

  .news-ticker {
    margin-top: 90px;
  }

  .Product-basket {
    position: relative;
    color: white;
    font-size: 1.3rem;
    margin-right: 15px;
    cursor: pointer;
    transition: transform 0.3s ease;
    padding: 8px;
    border-radius: 50%;
  }

  .site-btn {
    background: linear-gradient(135deg, #c65a1b, #3f1f1b);
    /* نفس ألوان الهيدر */
    color: #fff !important;
    border: none;
    border-radius: 25px;
    padding: 6px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
  }

  .site-btn:hover {
    background: linear-gradient(135deg, #f97316, #c2410c);
    /* تأثير عند المرور */
    transform: scale(1.05);
  }

}

/* تحسينات إضافية للشاشات الصغيرة جداً */
@media (max-width: 576px) {
  .mobile-nav {
    padding: 8px 10px;
  }

  .mobile-logo {
    height: 40px;
  }

  #mobileNavbar {
    margin-top: 8px;
    padding: 12px;
  }

  .mobile-nav-links .nav-link {
    padding: 8px 12px;
    font-size: 0.9rem;
  }

  main {
    margin-top: 65px;
  }

  .news-ticker {
    margin-top: 85px;
  }
}

/* إخفاء الهيدر القديم في الشاشات الصغيرة */
@media (max-width: 991.98px) {
  .header,
  .nav2 {
    display: none !important;
  }
}



#mobileNavbar {
  max-height: 80vh;
  overflow-y: auto;
}


.products1 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.product-card1 {
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    border: 1px solid #e5e7eb;     
}

.product-card1:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 
                0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #d1fae5;
}

.product-card1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #dd6b20, #3f1f1b);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card1:hover::before {
    opacity: 1;
}

.product-card1 img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background: #f9fafb;
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.product-card1:hover img {
    transform: scale(1.05);
}

.product1-info {
    padding: 1.25rem;
    width: 100%;
    background: #fff;
    z-index: 1;
}

.product-card1 h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0.5rem 0;
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.product-card1:hover h3 {
    color: #b45309;
}

.product-card1 h3 i {
    font-size: 1rem;
    color: #b45309;
}

.product-card1 p {
    font-size: 1.1rem;
    font-weight: 700;
    color: #b45309;
    margin: 0.5rem 0 1.25rem;
    position: relative;
    display: inline-block;
}

.product-card1 p::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #b45309;
    transition: width 0.3s ease;
}

.product-card:hover p::after {
    width: 50%;
}

.add-to-cart {
    background-color: #b45309;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 90%;
    position: relative;
    overflow: hidden;
}

.add-to-cart::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(214, 137, 13, 0.2), transparent);
    transition: 0.5s;
}

.add-to-cart:hover {
    background-color:  #b45309;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);;
}

.add-to-cart:hover::before {
    left: 100%;
}

/* Animation for new items */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card1 {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.product-card1:nth-child(1) { animation-delay: 0.1s; }
.product-card1:nth-child(2) { animation-delay: 0.2s; }
.product-card1:nth-child(3) { animation-delay: 0.3s; }
.product-card1:nth-child(4) { animation-delay: 0.4s; }
.product-card1:nth-child(5) { animation-delay: 0.5s; }
.product-card1:nth-child(6) { animation-delay: 0.6s; }
.product-card1:nth-child(7) { animation-delay: 0.7s; }
.product-card1:nth-child(8) { animation-delay: 0.8s; }




@media (max-width: 768px) {
    .products1 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .product-card1 {
        margin-bottom: 0;
    }
    
    .product-card1 img {
        height: 140px;
        padding: 1rem;
    }
    
    .product-card1 h3 {
        font-size: 0.95rem;
    }
    
    .product-card1 p {
        font-size: 0.9rem;
    }
    
    .add-to-cart {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        width: 85%;
    }
}
@media (max-width: 480px) {
    .products1 {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .product-card1 img {
        height: 120px;
        padding: 0.8rem;
    }
    
    .product-info1 {
        padding: 0.8rem;
    }
    
    .product-card1 h3 {
        font-size: 0.9rem;
        margin: 0.3rem 0;
    }
    
    .product-card1 p {
        font-size: 0.85rem;
        margin: 0.3rem 0 0.8rem;
    }
    
    .add-to-cart {
        padding: 0.5rem;
        font-size: 0.8rem;
        margin-bottom: 0.8rem;
    }
}


@media (max-width:576px ) {
  .container1 {
    margin-top: 15% !important;
   margin-left: 5% !important;
  margin-right: 5% !important;
  }
}

@media (max-width:576px ) {
.hero-section {
  padding: 50px 10px;
  color: white;
  text-align: center;
  margin-top: 50px;
  margin-bottom: 0px!important;
  padding-top: 0;
  position: relative;
  top: 0px;
  z-index: 1;
  margin-bottom: 60px;
}
}

@media (max-width:576px ) {
.hero-section222 {
  padding: 50px 10px;
  color: white;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 15px;
  /* تم تقليل هذه القيمة */
  margin-bottom: -20px;
  /* تم إضافة هذه القيمة لتقليل المسافة */
  z-index: 10;
  position: relative;

}
}
@media (max-width:576px ) {
.image-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 50px;
  /* تم تقليل هذه القيمة */
  margin-bottom: -30px;
  /* تم إضافة هذه القيمة لتقليل المسافة */
  z-index: 10;
  position: relative;
}
}