/* ================================
   1. Reset + Base
================================ */

/* Box sizing موحد */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* متغيرات عامة */
:root {
  --primary-color: #0056b3;
  --accent-color: #ffc107;
  --dark-bg: #333;
  --white: #ffffff;
}

/* إعدادات الجسم */
body {
  font-family: "Cairo", sans-serif;
  line-height: 1.6;
  color: #333;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.seo-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* تخطيط علوي */
.top-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.icons-wrapper {
  display: flex;
  justify-content: left;
  gap: 20px;
  flex-wrap: wrap;
  padding: 30px 0;
  background: #f4f7f9; /* خلفية خفيفة للقسم */
}

.icon-item {
  text-align: center;
  text-decoration: none;
  color: #333;
  width: 100px;
  transition: transform 0.3s;
}

.icon-item img {
  width: 80px;
  height: 80px;
  background: #ffffff;
  border-radius: 50%;
  padding: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* ظل لطيف */
  transition: all 0.3s ease;
}

.icon-item:hover img {
  transform: scale(1.4); /* تكبير + دوران بسيط */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* ظل أكبر عند المرور */
}

.icon-item span {
  display: block;
  font-size: 13px;
  margin-top: 10px;
  font-weight: bold;
  color: #007bff;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  padding: 20px 0;
}

.product-card {
  background: #fff;
  border-radius: 15px;
  padding: 15px;
  text-align: center;
  border: 1px solid #f0f0f0;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  will-change: transform;
}


.product-img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

.skeleton-card {
  height: 350px;
  width: 100%;
  background: #f0f0f0;
  /* هذا الجزء هو المسؤول عن حركة الوميض */
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 15px;
  margin-bottom: 20px;
}
/* تحسين الاستجابة */
@media (max-width: 500px) {
  .icon-item {
    width: 80px;
  }
  .icon-item img {
    width: 60px;
    height: 60px;
    padding: 10px;
  }
}

/* تعريف حركة الوميض */
@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }

}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.p-whatsapp {
  background-color: #0056b3;
  color: white;
  border: none;
  padding: 10px;
  width: 90%;
  margin: 10px auto;
  display: block;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
@media (max-width: 768px) {
  /* تقليص الفراغ بين أيقونات الأقسام */
  .icons-wrapper {
    justify-content: center;
    gap: 15px;
    padding: 20px 10px;
  }

  .icon-item {
    width: 70px;
  }

  .icon-item img {
    width: 50px;
    height: 50px;
    padding: 8px;
  }

  .icon-item span {
    font-size: 12px;
  }

  /* تصميم بطاقة الهيكل العظمي */
  .skeleton-card {
    height: 350px;
    background: #eee;
    background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
    border-radius: 15px;
    background-size: 200% 100%;
animation: skeleton-loading 1.5s infinite;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr); /* كارتين في السطر */
    gap: 12px;
    padding: 15px 10px;
  }

  .product-img img {
    height: 140px;
  }

  .product-card {
    padding: 10px;
  }

  .p-whatsapp {
    width: 100%; /* زر واتساب يأخذ العرض بالكامل */
    margin: 10px 0;
  }
}

/* للشاشات الصغيرة جدًا (موبايل ضيق جدًا) */
@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr; /* بطاقة واحدة لكل سطر */
    gap: 10px;
  }

  .icons-wrapper {
    gap: 10px;
  }

  .icon-item {
    width: 60px;
  }

  .icon-item img {
    width: 40px;
    height: 40px;
    padding: 6px;
  }

  .icon-item span {
    font-size: 11px;
  }

  .product-img img {
    height: 120px;
  }
}
.pagination {
  margin-top: 30px;
  text-align: center;
}

.pagination button {
  padding: 8px 12px;
  margin: 5px;
  border: none;
  background: #eee;
  cursor: pointer;
  border-radius: 6px;
}

.pagination button.active {
  background: black;
  color: white;
}
.brand-filter {
  padding: 20px 0;
  border-top: 1px solid #eee;
  margin-top: 40px;
}

.brand-filter h3 {
  margin-bottom: 15px;
}

.brands-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.brand-item {
  width: 100px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 10px;
  background: #fff;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.brand-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.brand-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
/*header    






*/
.nav-panel {
  background: rgba(255, 255, 255, 0.9);
  width: 100%;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(6px);
}

/* LOGO */
.logo h1 {
  color: var(--primary-color);
  font-size: 24px;
  font-weight: 700;
}

.logo span {
  color: var(--accent-color);
}

.logo p {
  font-size: 12px;
  color: #666;
}

/* SEARCH */
.search-box {
  display: flex;
  flex: 1;
  max-width: 400px;
  margin: 0 20px;
}

.search-box input {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px 0 0 5px;
  outline: none;
}

.search-box button {
  padding: 10px 15px;
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
}

/* MENU */
.menu a {
  position: relative;
  text-decoration: none;
  color: #333;
  margin-left: 15px;
  font-weight: 600;
  padding-bottom: 4px;
  transition: color 0.3s ease;
}

/* CTA BUTTON */
.btn-order {
  background: var(--accent-color);
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: bold;
  color: #000;
  border: 2px solid transparent;
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
  transition: all 0.3s ease;
}

.btn-order:hover {
  background: transparent;
  border-color: var(--accent-color);
  color: var(--accent-color);
}

/* ================================
   HERO CONTENT
================================ */

.hero-content {
  text-align: center;
  color: #fff;
  margin-top: 100px;
}

/* Animation مع احترام accessibility */
@media (prefers-reduced-motion: no-preference) {
  .hero-content {
    animation: fadeInUp 0.8s ease-out;
  }
}

.hero-content h2 {
  font-size: 48px;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hero-content p {
  font-size: 20px;
  margin-bottom: 30px;
}

/* CTA */
.cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  font-size: 18px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

/* ================================
   RESPONSIVE
================================ */

@media (max-width: 768px) {
  .nav-panel {
    flex-direction: column;
    text-align: center;
  }

  .search-box {
    margin: 10px 0;
    max-width: 100%;
  }

  .menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .menu a {
    margin: 0;
    font-size: 14px;
  }

  .hero-content h2 {
    font-size: 28px;
  }
}

/* ================================
   Explorer nos univers produits









================================ */

.univers-section {
  background: #fafafa;
  padding: 0px 0;
}

.univers-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 40px;
  color: #222;
}

.univers-grid {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  overflow-x: auto;
  padding-bottom: 15px;
}

/* إخفاء شريط التمرير (Scrollbar) لمنظر أنظف */
.univers-grid::-webkit-scrollbar {
  display: none;
}
.univers-grid {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

.univers-item {
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  will-change: transform;
  transition: transform 0.3s ease;
  flex: 0 0 auto;
  width: 120px;
}

.univers-item:hover {
  transform: translateY(-6px);
}

.univers-icon {
  width: 110px;
  height: 110px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 12px;
}

.univers-icon img {
  width: 60%;
  height: auto;
  object-fit: contain;
}

.univers-item span {
  font-size: 14px;
  font-weight: 600;
  color: #292626;
  font-style: normal;
}
/* قسم اختيار المنتجات */
.product-selection {
  padding: 40px 0;
}

.selection-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.selection-tabs a {
  text-decoration: none;
  color: #555;
  margin-left: 20px;
  font-weight: 600;
  font-size: 15px;
}

.selection-tabs a.active {
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
}
.selection-content {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 42px;
  align-items: start;
  padding: 20px;
}
/*




*/
/* ================================
   FOOTER – Optimized
================================ */

.main-footer {
  background: #161616;
  color: #e6e6e6;
  padding: 50px 0 20px;
  margin-top: 60px;
}

/* Grid */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 35px;
}

/* Titles */
.footer-col h3,
.footer-col h4 {
  color: #ffffff;
  margin-bottom: 18px;
}

.footer-col h3 span {
  color: var(--accent-color);
}

.footer-col h4 {
  font-size: 17px;
  border-bottom: 2px solid var(--primary-color);
  display: inline-block;
  padding-bottom: 6px;
}

/* Text */
.footer-col p {
  font-size: 14px;
  line-height: 1.7;
  color: #cccccc;
}

/* Links */
.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: #d0d0d0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-col ul li a:hover {
  color: var(--accent-color);
}

/* Map */
.map-container {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #2c2c2c;
  aspect-ratio: 16 / 9;
}

/* Social Icons */
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #2b2b2b;
  color: #ffffff;
  border-radius: 50%;
  margin: 12px 8px 0 0;
  text-decoration: none;
  transition:
    background 0.3s ease,
    transform 0.3s ease;
}

.social-icons a:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
}

/* Footer Bottom */
.footer-bottom {
  text-align: center;
  padding-top: 30px;
  margin-top: 40px;
  border-top: 1px solid #2a2a2a;
  font-size: 13px;
  color: #999;
}

/* Mobile */
@media (max-width: 768px) {
  .main-footer {
    padding: 40px 0 15px;
  }

  .footer-grid {
    text-align: center;
    gap: 25px;
  }

  .footer-col h4 {
    margin: 0 auto 16px;
  }
}
.product-link-wrapper {
    text-decoration: none; /* إزالة الخط السفلي */
    color: inherit;       /* جعل النص يأخذ لون العناصر الأصلي */
    display: block;      /* لضمان أن المساحة كاملة قابلة للضغط */
}

.product-card:hover {
    transform: translateY(-5px); /* تأثير بسيط عند تمرير الماوس */
    transition: 0.3s;
}
.p-title {
    font-size: 14px;
    margin: 8px 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 40px; /* توحيد الطول لتبقى الأزرار على مستوى واحد */
}
/* تحسين العرض للهواتف (منتجين في كل سطر) */
@media (max-width: 768px) {
  .product-grid {
    /* هذا السطر يضمن ظهور منتجين فقط */
    grid-template-columns: repeat(2, 1fr) !important; 
    gap: 10px; /* تقليل المسافة بين المنتجات لتناسب الشاشة */
    padding: 10px;
  }

  .product-card {
    padding: 8px; /* تقليل الحواف الداخلية للبطاقة */
  }

  .p-title {
    font-size: 13px; /* تصغير الخط قليلاً ليناسب العرض الضيق */
  }

  .product-img img {
    height: auto; 
    aspect-ratio: 1 / 1; /* جعل الصور مربعة لتبدو متناسقة */
  }
}

/* تأكيد الإعداد للشاشات الصغيرة جداً أيضاً */
@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
/* تنسيق زر التفاصيل الجديد */
.p-detail-btn {
    background-color: var(--primary-color); /* سيأخذ اللون الأزرق من متغيراتك */
    color: white;
    text-decoration: none;
    padding: 10px;
    width: 95%;
    margin: 10px auto;
    display: block;
    border-radius: 8px;
    font-weight: bold;
    font-size: 14px;
    transition: background 0.3s ease;
}

.p-detail-btn:hover {
    background-color: #004494; /* لون أغمق قليلاً عند تمرير الماوس */
}

/* تعديل للموبايل لضمان ظهور منتجين بشكل أنيق */
@media (max-width: 768px) {
    .p-detail-btn {
        font-size: 12px;
        padding: 8px 5px;
        width: 100%;
    }
}