/* ——— Global Reset ——— */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.cat-img {
  width: 167.5px;
  height: 204.8px;
  object-fit: cover; /* يحافظ على نسبة العرض إلى الارتفاع ويقص الصورة إذا لزم الأمر */
}
        .color-box {
      width: 140px;
      height: 140px;
      border-radius: 4px;
    }
    body {
      font-family: 'Open Sans', sans-serif;
      line-height: 1.5;
      color: #333;
      background-color: #EAF2F6;   /* حسب التعليمة */
    }
    a { text-decoration: none; color: inherit; }
    ul { list-style: none; }

    /* ——— Top Bar ——— */
    .top-bar {
      background-color: #5599C8;   /* أكسنت */
      color: #fff;
      text-align: center;
      padding: 0.5em;
      font-size: 0.9rem;
      font-weight: 600;
    }

    /* ——— Header / Navigation ——— */
    header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 1em;
      background-color: #fff;
    }
    .logo img { height: 40px; }
    nav ul {
      display: flex;
      gap: 1.5em;
      align-items: center;
    }
    nav li { position: relative; }
    nav li > a { padding: 0.5em; display: block; }
    nav li:hover > a { color: #5599C8; }  /* لون أكسنت عند المرور */
    nav li:hover > ul { display: block; }
    nav li > ul {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      background: #fff;
      box-shadow: 0 4px 8px rgba(0,0,0,0.1);
      padding: 0.5em 0;
    }
    nav li > ul li { padding: 0.5em 1em; white-space: nowrap; }

    .icons a {
      margin-left: 1em;
      font-size: 1.2rem;
      color: #333;
    }
    .icons a:hover { color: #5599C8; }

    /* ——— Hero Section ——— */
    .hero {
      position: relative;
      overflow: hidden;
 
    }
    .c-p{
              color: black;

    }
    .hero .slides {
      display: flex;
      width: 300%;
      transition: transform 0.8s ease-in-out;
    }
    .hero .slide {
      width: 100%;
      flex-shrink: 0;
      position: relative;
      background-size: cover;
      background-position: center;
      height: 70vh;
      max-height: 600px;
    }

    .hero .overlay {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      text-align: center;
      color: #fff;
      padding: 1em;
    }
    .hero .overlay h1 {
      font-size: 2rem;
      margin-bottom: 0.5em;
      text-transform: uppercase;
      font-weight: 600;
    }
    .hero .overlay p {
      margin-bottom: 1em;
      font-size: 1rem;
    }
    .hero .overlay .btn {
      display: inline-block;
      margin: 0 0.5em;
      padding: 0.8em 1.5em;
      background-color: #5599C8;   /* أكسنت */
      color: #fff;
      font-weight: 600;
      border-radius: 4px;
    }
    .hero .nav-btn {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      background: rgba(255,255,255,0.8);
      border: none;
      font-size: 2rem;
      padding: 0 0.5em;
      cursor: pointer;
      color: #333;
    }
    .hero .prev { left: 1em; }
    .hero .next { right: 1em; }

    /* ——— Shop Core Colors ——— */
    .colors-section {
      padding: 3em 1em;
      text-align: center;
    }
    .colors-section h2 {
      font-size: 1.8rem;
      margin-bottom: 0.5em;
      text-transform: uppercase;
      font-weight: 600;
    }
    .colors-section p {
      margin-bottom: 1.5em;
      color: #666;
      font-size: 1rem;
    }
    .colors-section .btn-group .btn {
      display: inline-block;
      top: 10px;
      margin: 0 0.5em;
      padding: 0.7em 1.4em;
      /* border: 2px solid #5599C8;   أكسنت */
      color: #5599C8;
      font-weight: 600;
      border-radius: 4px;
      transition: background 0.3s, color 0.3s;
    }
    .colors-section .btn-group .btn:hover {
      background-color: #5599C8;   /* أكسنت */
      color: #fff;
    }
    .color-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
      gap: 1em;
      margin-top: 2em;
    }
    .color-card {
      display: flex;
      flex-direction: column;
      align-items: center;
      cursor: pointer;
    }
    .color-circle {
      width: 60px;
      height: 60px;
      border-radius: 50%;
      margin-bottom: 0.5em;
    }
    .color-label { font-size: 0.9rem; }

    /* ——— Footer ——— */
    footer {
      background: #f8f8f8;
      padding: 2em 1em;
      text-align: center;
      font-size: 0.9rem;
      color: #666;
    }
    .social-icons a {
      margin: 0 0.5em;
      font-size: 1.2rem;
      color: #333;
    }
    .social-icons a:hover { color: #5599C8; }
        .slide-img {
      height: 70vh;
      max-height: 600px;
      object-fit: cover;
    }

    .best-sellers .card-img-top {
  width: 311.36;
  height: 231.5px;
  
  object-fit: cover; /* يحافظ على نسبة العرض إلى الارتفاع ويقص الصورة إذا لزم الأمر */
}
/* ——— ألوان الأزرار لتتوافق مع التصميم ——— */
.btn-success {
  background-color: #5599C8 !important;
  border-color:   #5599C8 !important;
  color: #fff !important;
}
.btn-success:hover,
.btn-success:focus {
  background-color: #3F7AA3 !important;
  border-color:   #3F7AA3 !important;
}

/* ——— أيقونات النافبار ——— */
.icons a {
  margin-left: 1em;
  font-size: 1.25rem;
  color: #333;
  display: inline-block;
}
.icons a:hover {
  color: #5599C8;
}

/* إخفاء القائمة الرئيسية وعرض زر الهامبرغر على الشاشات الصغيرة */
.menu-toggle { display: none; cursor: pointer; }
@media (max-width: 768px) {
  nav ul { display: none; }
  .menu-toggle { display: inline-block; }
}

/* ——— القائمة الجانبية (Sidebar) ——— */
.sidebar {
  position: fixed;
  top: 0; right: -260px;
  width: 260px; height: 100%;
  background: #fff;
  box-shadow: -2px 0 6px rgba(0,0,0,0.1);
  transition: right 0.3s ease;
  z-index: 1001;
  padding-top: 3em;
}
.sidebar.active { right: 0; }

.sidebar ul {
  list-style: none;
  padding: 0 1em;
}
.sidebar ul li {
  margin: 0.5em 0;
}
.sidebar ul li.divider {
  border-top: 1px solid #ddd;
  margin: 1em 0;
}
.sidebar ul li a {
  display: block;
  padding: 0.6em 0.4em;
  color: #333;
  font-weight: 600;
}
.sidebar ul li a:hover {
  color: #5599C8;
}

/* ——— خلفية لتعتيم المحتوى عند فتح الـ Sidebar ——— */
.sidebar-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 1000;
}
.sidebar-overlay.active {
  opacity: 1; visibility: visible;
}
/* تغيير لون الأزرار والروابط حسب الهوية اللونية */
.navbar-light .navbar-nav .nav-link {
  color: #333;
}
.navbar-light .navbar-nav .nav-link:hover {
  color: #5599C8;
}
/* عند تفعيل offcanvas */
.offcanvas {
  width: 260px;
}
/* أيقونة الهامبرغر */
.navbar-toggler {
  border: none;
}

/* إظهار collapse desktop + إخفاء toggler على ≥lg */
@media (min-width: 992px) {
  .navbar-toggler {
    display: none;
  }
  #desktopMenu {
    display: flex !important;
  }
}

/* إخفاء القائمة التقليدية على <lg */
@media (max-width: 991.98px) {
  #desktopMenu {
    display: none !important;
  }
}
/* في style.css أو داخل <style> */
.product-card {
  width: 231.5px;           /* العرض الثابت */
  border: none;             /* بدون بُرْدَر */
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border-radius: .5rem;
}
.product-card .card-img-top {
  width: 231.5px;           /* العرض */
  height: 311.36px;         /* الارتفاع */
  object-fit: cover;        /* يقص/يملأ بشكل مناسب */
  border-top-left-radius: .5rem;
  border-top-right-radius: .5rem;
}
.product-card .card-body {
  padding: .5rem 0;
}
.product-card .card-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  margin-bottom: .25rem;
  line-height: 1.2;
}
.product-card .card-text {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 0;
}
/* .best-sellers .row.flex-row.flex-nowrap {
  gap: 5px;            /* مسافة 5px بين البطاقات */
  /* البطاقات بفلِكس-باص (flex: 0 0 auto) ممتدة تلقائياً من Bootstrap */
/* } */

 .product-slider {
  gap: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden; /* إخفاء التمرير بالكامل */
}

.product-item {
  min-width: 180px;
  flex: 0 0 auto;
}

.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: white;
  color: #000000;
  border: none;
  font-size: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  display: none; /* تظهر فقط عند الحاجة عبر JS */
  transition: background 0.3s ease;
}

.scroll-btn:hover {
  background: #5599C8;
}

.scroll-left {
  left: 8%;
}

.scroll-right {
  right: 8%;
}

@media (max-width: 768px) {
  .scroll-btn {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }
}
