/* Extracted CSS */

:root{
  --dark: #0f1720;
  --muted: #dfe6e8;
  --accent-blue: #0b5b6a;
  --cyan: #00c3ff;
  --scientific: #0b7fb1;
  --medical: #ff7043;
  --panel-bg: #e6eaec;
  --panel-radius: 28px;
  --red: #900;
  --hero-red: #A80000;
}

html,body{
  height:100%;
  margin:0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  color:var(--dark);
  background:#fff;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
a{color:inherit;text-decoration:none}

/* ------------------ Layout Structure ------------------ */
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
}

/* ------------------ Sidebar (Desktop Default) ------------------ */
.sidebar{
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: 250px;
  background:
    linear-gradient(180deg, rgba(1,10,18,0.7), rgba(1,10,18,0.75)),
    url("../img/sliderbar.jpg");
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 22px 18px;
  box-sizing: border-box;
  z-index: 1000;
  transition: width .42s ease, left 0.42s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;

  /* --- FIX: Hide Scrollbar CSS --- */
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

/* FIX: Hide Scrollbar CSS for Chrome, Safari, and Opera */
.sidebar::-webkit-scrollbar {
  display: none;
}
/* ---------------------------------- */

.sidebar.closed{ width:62px; }

.sidebar .logo img{
  max-width:140px;
  transition: all .35s ease;
  display:block;
  margin-bottom: 20px;
}

.alsanielogo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ff7700;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.alsanielogo img {
  height: 100px;
}

.sidebar.closed .logo img{ max-width:36px; }

.sidebar .menu{
  margin-top:26px;
  width:100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.sidebar .menu a{
  display:flex;
  flex-direction: column;
  font-weight:700;
  padding: 14px 16px;
  font-size:26px;
  line-height:1;
  border-radius: 12px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.sidebar .menu a:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s ease;
}

.sidebar .menu a:hover:before {
  left: 100%;
}

.sidebar .menu a span{
  display:block;
  font-weight:400;
  font-size:20px;
  opacity:.85;
  margin-top:6px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.sidebar .menu a.elec{ color: var(--cyan); }
.sidebar .menu a.sci{ color: var(--scientific); }
.sidebar .menu a.med{ color: var(--medical); }

.sidebar .menu a:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(5px);
}

.sidebar .menu a:hover span {
  opacity: 1;
  transform: translateX(3px);
}

.sidebar.closed .menu a{
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size:15px;
  margin: 8px 0;
  text-align:center;
  padding: 16px 8px;
}

.sidebar.closed .menu a span{
  display: none;
}

.sidebar.closed .menu a:hover {
  transform: rotate(180deg) translateX(5px);
}

/* ------------------ Toggle Button (Desktop Arrow Default) ------------------ */
.toggle-btn{
  position:absolute;
  top:50%;
  right:-26px;
  transform:translateY(-50%);
  width:54px; height:54px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  box-shadow: 0 0 26px rgba(0,195,255,0.22), 0 0 8px rgba(0,0,0,0.3);
  background: radial-gradient(circle at 40% 30%, rgba(0,255,238,0.15), rgba(0,0,0,0));
  border: 6px solid rgba(0,255,238,0.06);
  backdrop-filter: blur(2px);
  z-index: 1100;
  transition: all 0.3s ease;
}

.toggle-btn:hover {
  box-shadow: 0 0 30px rgba(0,195,255,0.35), 0 0 12px rgba(0,0,0,0.4);
  transform: translateY(-50%) scale(1.05);
}

/* سهم الديسكتوب */
.toggle-btn .arrow{
  width:14px;height:14px;
  display:inline-block;
  transform:rotate(135deg);
  border-right:4px solid #fff;
  border-bottom:4px solid #fff;
  transition: all .35s ease;
}

.sidebar.closed .toggle-btn .arrow{ transform:rotate(-45deg); }

/* إخفاء الهمبرغر الافتراضية على الديسكتوب */
.toggle-btn .arrow::before,
.toggle-btn .arrow::after {
    content: none;
}

.sidebar::after{
  content:"";
  position:absolute;
  right:-2px;
  top:0;
  bottom:0;
  width:6px;
  background: linear-gradient(180deg, rgba(3,252,255,0.06), rgba(3,252,255,0.18), rgba(3,252,255,0.06));
  filter:blur(1px);
}

/* ------------------ Page (Desktop Default) ------------------ */
.page{
  margin-left:250px;
  transition:margin-left .42s ease;
  padding:28px 48px 90px 48px;
  box-sizing:border-box;
  min-height:100vh;
  width: calc(100% - 250px);
  background: #fff;
}

.sidebar.closed + .page{
  margin-left:62px;
  width: calc(100% - 62px);
}

/* --- TOPBAR & SEARCH BAR STYLES --- */
header.topbar{
  display:flex;
  align-items:center;
  gap:18px;
  padding-top:6px;
  padding-bottom:18px;
  min-height: 70px;
}

.brand img{ max-width:100%; display:block; }

.searchwrap {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0;
    width: 100%;
    flex-grow: 1;
}

.search-container {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-grow: 1;
    max-width: 800px;
}

.search-input-group {
    display: flex;
    align-items: center;
    background-color: #f1f4f5;
    border: 1px solid #e0e0e0;
    border-radius: 28px;
    padding: 8px 16px;
    flex-grow: 1;
    max-width: 450px;
}

.search-input-group .icon {
    font-size: 18px;
    color: #666;
    margin-right: 10px;
}

.search-input-group .search-input {
    border: none;
    outline: none;
    background-color: transparent;
    font-size: 16px;
    width: 100%;
}

.search-filters {
    display: flex;
    gap: 8px;
}

.search-filters select {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 28px;
    background-color: #fff;
    font-size: 14px;
    color: #333;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M287%2069.4L203.6%20182.6c-3.1%204.1-7.1%206.5-12.8%206.5H97.7c-5.8%200-9.8-2.4-12.8-6.5L3.3%2069.4c-3.1-4.1-4.7-8.1-4.7-12.8%200-6.1%202.8-11.4%208.5-14.1%205.7-2.7%2012.3-2.5%2017.6%201.2l76.7%2099.9c-3.1%204.1%207.1%206.5%2012.8%206.5h103c5.8%200%209.8-2.4%2012.8-6.5l76.7-99.9c5.3-3.7%2011.9-3.9%2017.6-1.2%205.7%202.7%208.5%208%208.5%2014.1.1%204.7-1.5%208.7-4.7%2012.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 10px;
    padding-right: 25px;
}

.round-buttons .btn {
    background-color: var(--hero-red, #A80000);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 10px 20px;
    font-weight: 500;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.round-buttons .btn:hover {
    background-color: #900;
}

/* NAV TOPBAR */
nav.topnav{
  margin-top:18px;
  margin-bottom:22px;
  display:flex;
  gap:28px;
  align-items:center;
  justify-content:center;
  color:#3c5160;
  font-weight:500;
}

nav.topnav a{
  color:#486b74;
  transition: color 0.2s ease;
}

nav.topnav a:hover {
  color: var(--accent-blue);
}

nav.topnav .active {
  color: var(--accent-blue);
  font-weight: 700;
  border-bottom: 2px solid var(--accent-blue);
  padding-bottom: 4px;
}

.page h1{ font-size:36px; margin:8px 0 18px; color:var(--accent-blue); }
.page .subtitle{ color:#8d9aa0; font-size:18px; font-weight:500; margin-bottom:24px; display:block; }

/* ------------------ Info Grid ------------------ */
.info-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:28px 36px; align-items:start; }
.info-item{ display:flex; gap:18px; align-items:center; }
.info-item .thumb{ width:140px; height:90px; flex:0 0 140px; overflow:hidden; border-radius:6px; background:#ddd; transition: transform 0.3s ease; }
.info-item .thumb:hover { transform: scale(1.03); }
.info-item .thumb img{ width:100%; height:100%; object-fit:cover; display:block; }

.info-item .panel{
  background:var(--panel-bg);
  border-radius: var(--panel-radius);
  padding:14px 20px;
  display:flex;
  flex-direction: column;
  align-items:flex-start;
  gap:6px;
  flex:1;
  transition: all 0.3s ease;
}

.info-item .panel:hover {
  background: #dde4e6;
  transform: translateY(-3px);
}

.panel .num{ font-size:28px; color:var(--accent-blue); font-weight:800; }
.panel .desc{ font-size:14px; color:#485a60; }

/* ------------------ Footer ------------------ */
footer {
  background: #000;
  color: #fff;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
  position: relative;
  z-index: 1200;
}

.footer-copyright {
  flex: 1;
  text-align: left;
  order: 1;
}

.footer-links {
  flex: 2;
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 20px;
  order: 2;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #00aced;
  text-decoration: underline;
}

.footer-social {
  flex: 1;
  text-align: right;
  order: 3;
}

.social-icons a {
  color: #fff;
  font-size: 18px;
  margin: 0 8px;
  transition: color 0.3s, transform 0.3s;
}

.social-icons a:hover {
  color: #00aced;
  transform: translateY(-3px);
}

/* ------------------ Responsive Fixes (Mobile/Tablet) ------------------ */

/* 1. Base Layout adjustments for Mobile/Tablet (Screens <= 992px) */
@media (max-width: 992px) {

  /* Sidebar: Off-Canvas behavior */
  .sidebar {
    left: -250px; /* إخفاء الشريط الجانبي عن الشاشة افتراضياً */
  }

  .sidebar.open {
    left: 0;
    box-shadow: 0 0 0 1000px rgba(0,0,0,0.5); /* إضافة ظل خفيف لتغطية المحتوى عند فتح القائمة */
  }

  .page {
    /* جعل الصفحة تأخذ العرض الكامل وعدم ترك أي هامش جانبي */
    margin-left: 0 !important;
    width: 100% !important;
    padding: 24px 18px 90px;
  }

  .sidebar.closed {
    /* للحفاظ على العرض الكامل (250px) للشريط الجانبي حتى لو كان كلاس closed مفعلاً (لأنه مختفٍ أصلاً) */
    width: 250px;
  }

  /* 2. Toggle Button: Change to Hamburger Menu */
  .toggle-btn {
    /* تحريك الزر إلى الزاوية العلوية اليسرى */
    position: fixed;
    top: 15px;
    left: 15px;
    right: auto;
    transform: none;
    z-index: 2001; /* فوق أي شيء آخر */
    background: var(--hero-red, #A80000);
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    /* إلغاء تأثيرات الـ border والـ box-shadow الخاصة بالديسكتوب */
    background: var(--hero-red, #A80000);
    border: 6px solid var(--hero-red, #A80000);
    backdrop-filter: none;
  }

  .toggle-btn:hover {
    transform: none;
    background-color: #900;
    border: 6px solid #900;
  }

  /* إخفاء سهم الديسكتوب وتحويل الـ .arrow ليكون خط الهمبرغر الأوسط */
  .toggle-btn .arrow {
    transform: none;
    border: none;
    width: 20px;
    height: 4px; /* خط الهمبرغر الأوسط */
    background: #fff;
    border-radius: 2px;
    position: relative;
    transition: all 0.3s ease;
  }

  /* خط الهمبرغر العلوي */
  .toggle-btn .arrow::before {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 4px;
    background: #fff;
    border-radius: 2px;
    top: -8px;
    transition: transform 0.3s, top 0.3s;
  }

  /* خط الهمبرغر السفلي */
  .toggle-btn .arrow::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 4px;
    background: #fff;
    border-radius: 2px;
    top: 8px;
    transition: transform 0.3s, top 0.3s;
  }

  /* عند فتح القائمة، تحويل الهمبرغر إلى (X) */
  .sidebar.open ~ .page .toggle-btn .arrow,
  .sidebar.open .toggle-btn .arrow {
    background: transparent !important;
  }

  .sidebar.open ~ .page .toggle-btn .arrow::before,
  .sidebar.open .toggle-btn .arrow::before {
    top: 0;
    transform: rotate(45deg);
  }

  .sidebar.open ~ .page .toggle-btn .arrow::after,
  .sidebar.open .toggle-btn .arrow::after {
    top: 0;
    transform: rotate(-45deg);
  }


  /* 3. Topbar/Search adjustments */
  header.topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-top: 15px;
    padding-bottom: 15px;
    min-height: auto;
    /* إضافة مسافة من الأعلى لتجنب تداخل شريط البحث مع زر التبديل الثابت */
    margin-top: 70px;
  }

  .search-container {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .search-input-group {
    max-width: none;
    width: 100%;
  }

  /* 4. Footer adjustments */
  footer {
    flex-direction: column;
    gap: 15px;
    text-align: center;
    padding: 20px;
  }

  .footer-copyright, .footer-links, .footer-social {
    text-align: center;
    width: 100%;
    order: unset;
  }

  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
    order: 3;
  }

  .footer-copyright {
    order: 2;
  }

  .footer-social {
    order: 1;
    margin-bottom: 10px;
  }

  /* Sections Adjustments */
  .info-grid{ grid-template-columns: 1fr; }
}

/* Mobile Breakpoint (<= 576px) */
@media (max-width: 576px) {
  .page{ padding:16px; }

  .search-filters {
    flex-direction: column;
  }
}

/* ---------------------------------------------------------------------- */
/* ------------------ NEW E-COMMERCE STYLES (PRODUCTS PAGE) ------------------ */
/* ---------------------------------------------------------------------- */

.page .container {
  max-width: 1400px; /* Wider container for e-commerce feel */
  margin: 0 auto;
  padding: 0;
}

.product-page-layout {
  display: flex;
  gap: 30px;
  margin-top: 30px;
}



/* ===================== ALSANIE FILTER SIDEBAR - GOLD ISLAMIC (FIXED VISIBILITY) ===================== */
.product-filter-sidebar {
  width: 270px;
  position: relative; /* بدل sticky */
  border-radius: 16px;
  border: 2px solid #d6d6d6;
  padding: 25px 20px;
  font-family: "Poppins", Arial, sans-serif;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  overflow: hidden;
  background-color: #f5f5f5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cpattern id='arabicmix' patternUnits='userSpaceOnUse' width='60' height='60'%3E%3Cpath d='M30 0 L37 15 L60 15 L42 30 L50 50 L30 37 L10 50 L18 30 L0 15 L23 15 Z' fill='none' stroke='%23bfbfbf' stroke-width='0.7' stroke-opacity='0.25'/%3E%3Ccircle cx='30' cy='30' r='5' fill='none' stroke='%23bfbfbf' stroke-width='0.6' stroke-opacity='0.2'/%3E%3Cpolygon points='15,15 45,15 30,45' fill='none' stroke='%23bfbfbf' stroke-width='0.6' stroke-opacity='0.2'/%3E%3Crect x='10' y='10' width='40' height='40' fill='none' stroke='%23bfbfbf' stroke-width='0.5' stroke-opacity='0.15'/%3E%3C/pattern%3E%3Crect width='100%25' height='100%25' fill='url(%23arabicmix)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 100px 100px;
  color: #222;
  display: inline-block; /* يخلي الصندوق بنفس طول المحتوى */
  vertical-align: top;   /* يخليه محاذي لبداية المنتجات */
}

/* عنوان الفلاتر */
.filter-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #A80000;
  border-left: 6px solid #A80000;
  padding-left: 12px;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* المجموعات */
.filter-group {
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid #d5d5d5;
}

.filter-group h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 12px;
}

/* العناصر */
.filter-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.9);
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 8px;
  cursor: pointer;
  color: #333;
  transition: all 0.25s ease;
  position: relative;
}

.filter-group label:hover {
  background: #fff8f2;
  border-color: #A80000;
  box-shadow: inset 0 0 4px rgba(168,0,0,0.15);
  color: #A80000;
  transform: translateX(3px);
}

/* مربعات الاختيار */
.filter-group input[type="checkbox"],
.filter-group input[type="radio"] {
  accent-color: #A80000;
  transform: scale(1.15);
  cursor: pointer;
  transition: transform 0.2s ease;
}
.filter-group input[type="checkbox"]:hover,
.filter-group input[type="radio"]:hover {
  transform: scale(1.25);
}

/* زر التطبيق */
.apply-filter-btn {
  display: block;
  width: 100%;
  padding: 11px 0;
  background: linear-gradient(135deg, #0C2D57 0%, #3A6D8C 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 14px rgba(12,45,87,0.25);
}
.apply-filter-btn:hover {
  background: linear-gradient(135deg, #133D6A 0%, #4C83A6 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(12,45,87,0.3);
}







/* ------------------ Product Listing Area ------------------ */
.product-listing-area {
  flex: 1;
}

.listing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 10px 0;
  border-bottom: 1px solid #e0e0e0;
}

.listing-header h2 {
  font-size: 1.8rem;
  color: var(--hero-red);
  font-weight: 700;
  margin: 0;
}

.sort-dropdown select {
  padding: 8px 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 0.9rem;
  background-color: white;
}

/* ------------------ Product Grid and Card ------------------ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

/* ==================== ENHANCED PRODUCT CARD STYLE ==================== */
.product-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
  text-align: center;
  position: relative;
  border: 1px solid #e0e0e0;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border-color: #bcbcbc;
}

.product-card .img-container {
  height: 220px;
  background: linear-gradient(180deg, #fafafa, #f2f2f2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  transition: all 0.3s ease;
}

.product-card .img-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.product-card:hover .img-container img {
  transform: scale(1.08);
}

.product-card .brand {
  color: #0b5b6a;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-card h3 {
  font-size: 1.0rem;
  color: #222;
  font-weight: 700;
  margin: 8px 0 10px;
  line-height: 1.3em;
  min-height: 2.6em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
   padding: 0 15px;
}

.product-card .price {
  background: #ffebee;
  color: #a80000;
  font-weight: 800;
  font-size: 0.9rem;
  border-radius: 8px;
  padding: 6px 12px;
  display: inline-block;
  margin: 10px auto 15px;
}

.product-card .request-btn {
  margin-top: auto;
  display: block;
  width: 100%;
  padding: 10px 0;
  background: linear-gradient(135deg, #a80000, #d32f2f);
  color: white;
  font-weight: 700;
  border-radius: 0 0 12px 12px;
  text-transform: uppercase;
  transition: background 0.3s ease, transform 0.2s ease;
}

.product-card .request-btn:hover {
  background: linear-gradient(135deg, #d32f2f, #ff5555);
  transform: scale(1.03);
}

/* Small floating badge (optional) */
.product-card::before {
  content: "★";
  color: gold;
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 1.2rem;
  opacity: 0.8;
}

.product-card .brand-logo {
  width: 50px;
  height: auto;
  max-height: 50px;
  object-fit: contain;
  display: block;
  margin: 0 auto 8px; /* توسيط الصورة وإضافة مسافة بسيطة أسفلها */
  opacity: 0.9;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.product-card:hover .brand-logo {
  transform: scale(1.05);
  opacity: 1;
}

/* ------------------ Pagination ------------------ */
/* --- Custom Pagination Fix (Improved Layout) --- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 40px 0;
  padding: 0;
  list-style: none;
}

.pagination li {
  list-style: none;
}

.pagination li a,
.pagination li span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 14px;
  font-size: 15px;
  border-radius: 6px;
  border: 1px solid #ccc;
  color: #0b5b6a;
  background-color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 600;
}

.pagination li a:hover {
  background-color: #0b5b6a;
  color: #fff;
  border-color: #0b5b6a;
}

.pagination li.active span {
  background-color: #d93d3d;
  color: #fff;
  border-color: #d93d3d;
}

.pagination li.disabled span {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Remove ugly bullets or extra dots */
.pagination .page-item,
.pagination li {
  list-style-type: none;
}

/* Optional: add subtle shadow for buttons */
.pagination li a,
.pagination li span {
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Hide extra "Showing to of" block if it appears */
.pagination-info {
  display: none !important;
}


/* ------------------ Responsive Adjustments (New) ------------------ */
@media (max-width: 992px) {
  .product-page-layout {
    flex-direction: column;
    gap: 20px;
  }

  .product-filter-sidebar {
    position: static; /* Remove sticky on mobile */
    flex: none;
    width: 100%;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
  }
}
@media (max-width: 576px) {
  .listing-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* Slider 3: Multi-Item Carousel */
.product-carousel-container {
    margin-bottom: 50px;
    padding: 20px 0;
}

.carousel-wrapper {
    position: relative;
    overflow: hidden; /* لإخفاء العناصر غير الظاهرة */
    padding: 0 40px; /* مساحة للأزرار */
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 20px;
}

/* بطاقة المنتج داخل الـ Carousel */
.carousel-card {
    min-width: calc(33.333% - 13.333px); /* 3 بطاقات + مسافات */
    max-width: calc(33.333% - 13.333px);
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    background: white;
}

.carousel-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 10px;
}

.carousel-card h3 {
    font-size: 1.1em;
    color: var(--accent-blue);
    margin-bottom: 5px;
}

/* أزرار التنقل (الأسهم) */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none; /* لتمرير النقرات إلى الأزرار بالداخل */
}

.carousel-nav button {
    pointer-events: all; /* تفعيل النقرات على الأزرار */
    background: var(--dark);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2em;
    transition: background-color 0.3s;
    z-index: 20;
}

.carousel-nav button:hover {
    background-color: var(--hero-red);
}

.carousel-nav .prev {
    margin-left: -40px;
}
.carousel-nav .next {
    margin-right: -40px;
}





/* this is css file*/
/* ------------------ Global Variables and Reset ------------------ */
:root {
    --page-bg: #ffffff;
    --text-dark: #263238; /* أسود داكن */
    --text-light: #607d8b; /* رمادي أزرق لـ الوصف */
    --accent-gold: #ffc107; /* الذهبي */
    --accent-hover: #e0a800;
    --hero-red: #d32f2f; /* الأحمر الرئيسي */
    --secondary-blue: #007bff; /* لون إضافي للعروض الخاصة/الأزرار */
    --Scientific-bg: #fdfdfd;
    --Scientific-contact-bg: #f5f5f5; /* لون خلفية قسم التواصل */
}

body, .container.index-content {
    background-color: var(--page-bg);
}

/* ------------------ Quote Button and Sidebar Styling (Keep) ------------------ */

.Scientific-btn-quote {
    background-color: var(--hero-red);
    color: white;
    margin-left: 0px;
}
.Scientific-btn-quote:hover {
    background-color: #a32424;
}

/* NEW: Login Button Styling (بروز أكبر وإرجاعه لليمين) */
.Scientific-btn-login {
    background-color: transparent;
    color: var(--text-dark);
    font-weight: 700;
    padding: 10px 15px;
    border: 2px solid var(--accent-gold); /* إطار ذهبي لتمييزه */
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    margin-right: 15px; /* فصله عن زر REQUEST QUOTE */
}

.Scientific-btn-login i {
    margin-right: 0px;
    color: var(--accent-gold); /* أيقونة ذهبية */
}

.Scientific-btn-login:hover {
    background-color: var(--accent-gold);
    color: white;
}


.Scientific-sidebar-quotation {
    position: fixed;
    top: 0;
    right: 0;
    width: 350px;
    height: 100%;
    background-color: #f8f8f8;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
    display: flex;
    flex-direction: column;
    padding: 0;
    text-align: left;
    font-family: 'Roboto', 'Arial', sans-serif;
    overflow-y: hidden;
}

.Scientific-sidebar-quotation.open {
    transform: translateX(0);
}

.Scientific-header-quotation {
    padding: 20px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
}

.Scientific-header-quotation h3 {
    margin: 0;
    color: var(--text-dark);
    font-size: 1.2em;
    font-weight: 700;
}

.Scientific-header-quotation .Scientific-btn-close {
    background: none;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    color: #777;
    transition: color 0.2s;
}

.Scientific-header-quotation .Scientific-btn-close:hover {
    color: var(--hero-red);
}

.Scientific-items-quotation {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
}

.Scientific-footer-quotation {
    padding: 20px;
    border-top: 1px solid #ddd;
    background-color: white;
}

.Scientific-total-quotation {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 1.1em;
    font-weight: 500;
    color: var(--text-dark);
}

.Scientific-footer-quotation .Scientific-btn-submit {
    width: 100%;
    background-color: var(--accent-gold);
    color: var(--text-dark);
    font-weight: 700;
    padding: 10px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.Scientific-footer-quotation .Scientific-btn-submit:hover {
    background-color: var(--accent-hover);
}


/* ------------------ Cinematic Overlay Scroll Design (Keep) ------------------ */
.swiper {
      width: 100%;
      height: 100%;
    }

    .swiper-slide {
      text-align: center;
      font-size: 18px;
      background: #444;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .swiper-slide img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .autoplay-progress {
      position: absolute;
      right: 16px;
      bottom: 16px;
      z-index: 10;
      width: 48px;
      height: 48px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: bold;
      color: var(--swiper-theme-color);
    }

    .autoplay-progress svg {
      --progress: 0;
      position: absolute;
      left: 0;
      top: 0px;
      z-index: 10;
      width: 100%;
      height: 100%;
      stroke-width: 4px;
      stroke: var(--swiper-theme-color);
      fill: none;
      stroke-dashoffset: calc(125.6px * (1 - var(--progress)));
      stroke-dasharray: 125.6;
      transform: rotate(-90deg);
    }
/* ------------------ End Cinematic Overlay Scroll Design ------------------ */


/* ------------------ Marquee Logo Section Styling (Keep) ------------------ */
.Scientific-section-partnerships-marquee {
    padding: 10px 0;
    text-align: center;
    margin: 0 auto 50px auto;
    background-color: white;
    overflow: hidden;
    border-radius: 15px;
    max-width: 1200px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.Scientific-section-partnerships-marquee h2 {
    font-size: 1.5em;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.Scientific-marquee-container {
    width: 100%;
    overflow-x: scroll;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    cursor: grab;
    padding: 10px 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.Scientific-marquee-container::-webkit-scrollbar {
    display: none;
}

.Scientific-marquee-content {
    display: inline-block;
}

.Scientific-brand-logo-marquee {
    max-width: 80px;
    height: 40px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    margin: 0 30px;
    transition: filter 0.3s, opacity 0.3s;
    display: inline-block;
}

.Scientific-brand-logo-marquee:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* ------------------ Best Sellers Grid Styling (Keep) ------------------ */
.Scientific-section-best-sellers, .Scientific-section-new-arrivals {
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px 0;
    text-align: center;
}

.Scientific-section-best-sellers h2, .Scientific-section-special-offers h2, .Scientific-section-new-arrivals h2 {
    font-size: 2.2em;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 30px;
    position: relative;
    letter-spacing: 1px;
}

.Scientific-section-best-sellers h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--hero-red);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* NEW: Style for New Arrivals Section Title */
.Scientific-section-new-arrivals h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--accent-gold); /* Gold accent for New Arrivals */
    margin: 10px auto 0;
    border-radius: 2px;
}

.Scientific-carousel-manual {
    width: 100%;
    overflow-x: scroll;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    cursor: grab;
    padding: 10px 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-behavior: smooth;
}
.Scientific-carousel-manual::-webkit-scrollbar {
    display: none;
}

.Scientific-card-list {
    display: flex;
    gap: 20px;
    padding: 0 10px;
    list-style: none;
    margin: 0;
}

.Scientific-card {
    width: 280px;
    min-width: 280px;
    max-width: 280px;
    background-color: var(--Scientific-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    font-family: 'Roboto', 'Arial', sans-serif;
}

.Scientific-card a {
    text-decoration: none;
    color: inherit;
    display: contents;
}

.Scientific-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-gold);
}

.Scientific-card-tag {
    position: absolute;
    top: 0;
    right: 0;
    left: auto;
    background-color: var(--hero-red);
    color: white;
    padding: 5px 15px;
    border-bottom-left-radius: 12px;
    font-size: 0.85em;
    font-weight: 700;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 5;
    text-transform: uppercase;
}

/* ------------------ NEW & UPDATED CARD STYLES for Offers ------------------ */

.Scientific-card[data-category]:not(.Scientific-card-best-seller) {
    border-color: #ddd; /* Light border for offers */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Tag colors for Special Offers */
.Scientific-card[data-category="hot-deals"] .Scientific-card-tag {
    background-color: var(--secondary-blue); /* Blue for Hot Deals */
}
.Scientific-card[data-category="clearance"] .Scientific-card-tag {
    background-color: #ff5722; /* Orange for Clearance */
}
.Scientific-card[data-category="flash-sales"] .Scientific-card-tag {
    background-color: #4CAF50; /* Green for Flash Sales */
}

/* Tag color for New Arrivals */
.Scientific-card[data-category="new-arrival"] .Scientific-card-tag {
    background-color: var(--accent-gold); /* Gold for New Arrivals */
    color: var(--text-dark);
}

.Scientific-card-tag i {
    margin-left: 5px;
}

.Scientific-card-image-wrapper {
    height: 180px;
    padding: 15px;
    background-color: #fcfcfc;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-bottom: 1px solid #eee;
}

.Scientific-card-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.6s ease-out;
}

.Scientific-card:hover .Scientific-card-image-wrapper img {
    transform: scale(1.05);
}

.Scientific-card-content {
    padding: 15px 15px 10px 15px;
    flex-grow: 1;
}

.Scientific-card h3 {
    font-size: 1.1em;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.3em;
    margin: 0 auto 10px auto;
    text-align: center;
    white-space: normal;
    min-height: 2.6em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Price block styling for Best Sellers & New Arrivals (Default) */
.Scientific-card:not([data-category]) .Scientific-card-price,
.Scientific-card[data-category="new-arrival"] .Scientific-card-price {
    font-size: 1.4em;
    font-weight: 900;
    color: var(--text-dark);
    background-color: var(--accent-gold);
    padding: 5px 10px;
    border-radius: 4px;
    display: block;
    text-align: center;
    width: 100%;
    white-space: nowrap;
    margin: 8px auto 10px auto;
}


/* NEW Price block styling for Special Offers */
.Scientific-price-line {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 8px auto 10px auto;
}

.Scientific-card-price.Scientific-discount {
    font-size: 0.9em;
    color: #999;
    text-decoration: line-through;
    display: inline;
    background: none;
    padding: 0;
    margin-right: 10px;
    font-weight: 400;
}
.Scientific-card-price.Scientific-new-price {
    font-size: 1.6em;
    font-weight: 900;
    background-color: var(--hero-red); /* Highlight new price with Red */
    color: white;
    padding: 5px 10px;
    display: inline;
    border-radius: 4px;
}

.Scientific-card-action-bar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 15px 15px 15px;
    background-color: white;
    border-top: none;
    margin-top: auto;
}

.Scientific-card-cta {
    width: 100%;
    background-color: var(--hero-red);
    color: white;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 700;
    transition: background-color 0.3s, transform 0.3s;
    text-transform: uppercase;
}

.Scientific-card-cta:hover {
    background-color: #a32424;
    transform: none;
}

.Scientific-card-cta i {
    margin-right: 5px;
}

/* ------------------ Special Offers Section Styling (REDESIGNED) ------------------ */

.Scientific-section-special-offers {
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px 0;
    text-align: center;
}

.Scientific-section-special-offers h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--secondary-blue); /* لون أزرق للتمييز عن الأفضل مبيعًا */
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Tab/Multitap Navigation Styling (REDESIGNED) */
.Scientific-offer-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    padding: 0 10px;
    border-bottom: 2px solid #eee; /* خط فاصل خفيف */
}

.Scientific-offer-tab-btn {
    background: none;
    border: none;
    padding: 12px 25px; /* مساحة أكبر */
    margin: 0 2px;
    font-size: 1.1em;
    font-weight: 700;
    color: var(--text-light);
    cursor: pointer;
    border-bottom: 4px solid transparent; /* خط التحديد */
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    outline: none;
}

.Scientific-offer-tab-btn i {
    margin-right: 8px;
}

.Scientific-offer-tab-btn.active {
    color: var(--secondary-blue);
    border-bottom: 4px solid var(--secondary-blue);
    background-color: #f9f9f9; /* خلفية فاتحة للتبويبة النشطة */
}

.Scientific-offer-tab-btn:hover:not(.active) {
    color: var(--text-dark);
    border-bottom: 4px solid var(--accent-gold); /* لون ثانوي عند التحويم */
}

/* Content wrapper for tabbed slides */
.Scientific-offer-slides-wrapper {
    position: relative;
    min-height: 400px;
    overflow: hidden; /* لإخفاء الشرائح غير النشطة مؤقتًا */
}

.Scientific-offer-slide {
    display: none;
    width: 100%;
    position: absolute; /* لجعل الشريحة النشطة فقط تأخذ المساحة */
    top: 0;
    left: 0;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease-in-out;
}

.Scientific-offer-slide.active {
    display: block;
    position: relative;
    opacity: 1;
    transform: translateY(0);
}

/* ------------------ Contact Us Section Styling (UPDATED TO TWO COLUMNS) ------------------ */
.Scientific-section-contact-us {
    max-width: 1200px;
    margin: 50px auto;
    padding: 40px;
    text-align: center;
    background-color: var(--Scientific-contact-bg);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.Scientific-contact-us-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* معلومات التواصل أصغر قليلاً من النموذج */
    gap: 40px;
    margin-top: 30px;
    text-align: left;
}

.Scientific-contact-info-col {
    padding-right: 20px;
    border-right: 1px solid #ddd;
}

.Scientific-contact-form-col {
    padding-left: 20px;
}

.Scientific-contact-info-col h3 {
    font-size: 1.8em;
    color: var(--text-dark);
    margin-bottom: 20px;
    border-bottom: 3px solid var(--hero-red);
    display: inline-block;
    padding-bottom: 5px;
}

.Scientific-contact-details p {
    font-size: 1.1em;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.5;
}

.Scientific-contact-details i {
    color: var(--hero-red);
    margin-left: 10px;
    width: 20px;
}

.Scientific-contact-location-map {
    margin-top: 30px;
    text-align: center;
}

.Scientific-contact-location-map iframe {
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Form Styling remains mostly the same, ensuring one column inside its wrapper */
.Scientific-contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.Scientific-contact-form input, .Scientific-contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    /* Added Styles for improvement */
    background-color: white;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.Scientific-contact-form input:focus, .Scientific-contact-form textarea:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.2);
    outline: none;
}

.Scientific-contact-form .Scientific-btn-submit {
    background-color: var(--accent-gold); /* MODIFIED: Changed from var(--hero-red) */
    color: var(--text-dark); /* MODIFIED: Changed from white */
    font-weight: 700;
    padding: 15px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s; /* MODIFIED: Added transition */
}

/* MODIFIED: Added hover style for the new button color */
.Scientific-contact-form .Scientific-btn-submit:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
}

/* Responsive adjustments for contact form */
@media (max-width: 992px) {
    .Scientific-contact-us-content-wrapper {
        grid-template-columns: 1fr;
    }
    .Scientific-contact-info-col {
        border-right: none;
        border-bottom: 1px solid #ddd;
        padding-right: 0;
        padding-bottom: 30px;
    }
    .Scientific-contact-form-col {
        padding-left: 0;
    }
}


/* ------------------ End Sections Styling ------------------ */


/*
General CSS (Assuming existing content is here)
---------------------------------------------
Since I don't have the *full* original content of style12.css, I will add the missing styles for the buttons and ensure general compatibility for the header structure.
*/

/*
*************************************************************************************************************
Scientific/Electronic Division Specific Styles for Header and Buttons (Copied from the style implied by Scientific_index.html)
*************************************************************************************************************
*/

/* --- Topbar structure adjustments for new buttons --- */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.searchwrap {
    display: flex;
    align-items: center;
    gap: 15px; /* Space between search container and round buttons */
}

.round-buttons {
    display: flex;
    gap: 10px;
}

/* Ensure the general 'btn' style is defined for the new buttons to inherit */
.btn {
    padding: 8px 15px;
    border-radius: 5px; /* Use 5px for uniformity, adjust if different in your original CSS */
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s;
    text-transform: uppercase;
}

/* --- Specific Styles for LOGIN and REQUEST QUOTE buttons from Scientific_index.html design --- */

:root {
    --primary-blue: #0b5b6a; /* A common color used in Alsanie */
    --secondary-blue: #0d6d7e; /* Slightly darker shade for hover/active */
    --hero-red: #d93d3d; /* Color used for "REQUEST QUOTE" in Scientific */
}

.Scientific-btn-login {
    background-color: var(--primary-blue);
    color: white;
    font-size: 14px;
    padding: 10px 18px;
    border-radius: 20px; /* Highly rounded */
}

.Scientific-btn-login:hover {
    background-color: var(--secondary-blue);
}

.Scientific-btn-quote {
    background-color: var(--hero-red);
    color: white;
    font-size: 14px;
    padding: 10px 18px;
    border-radius: 20px; /* Highly rounded */
}

.Scientific-btn-quote:hover {
    background-color: #c03131; /* Slightly darker red */
}

/* Icon spacing inside the buttons */
.Scientific-btn-login i,
.Scientific-btn-quote i {
    margin-right: 0px;
}

/* Search Filters in Header (to ensure alignment matches Scientific_index) */



/* Existing Styles from the uploaded style12.css are presumed to be here... */

/* Example of how the original 'products.html' search looked (if needed for compatibility) */
.products-page-layout .search-filters select {
    /* If you had specific overriding styles for products.html, they might go here */
}


/* ---------------------------------------------------------------------- */
/* ------------------ NEW PRODUCT DETAIL STYLES (Prefixed to avoid conflict) ------------------ */
/* ---------------------------------------------------------------------- */

/* متغيرات جديدة لصفحة التفاصيل */
:root {
  --detail-bg: #f8f8f8;
  --detail-border: #e9ecef;
}

.page .container.product-detail-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0;
}

/* Breadcrumbs */
.product-detail-breadcrumb-nav {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 25px;
}
.product-detail-breadcrumb-nav a {
    color: var(--accent-blue);
    margin: 0 5px;
}

/* Main Product Section Layout */
.product-detail-main-info {
    display: flex;
    gap: 40px;
    margin-bottom: 50px;
    background: var(--detail-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Product Gallery */
.product-detail-gallery {
    flex: 0 0 500px;
    max-width: 500px;
}

.product-detail-main-image {
    height: 400px;
    border: 1px solid var(--detail-border);
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #fff;
}
.product-detail-main-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-detail-thumbnail-selector {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.product-detail-thumbnail-selector img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border: 2px solid var(--detail-border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    background: #fff;
}
.product-detail-thumbnail-selector img.active,
.product-detail-thumbnail-selector img:hover {
    border-color: var(--hero-red);
    box-shadow: 0 0 5px rgba(168, 0, 0, 0.5);
}

/* Product Details Panel */
.product-detail-details-panel {
    flex: 1;
}

.product-detail-details-panel h1 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--dark);
    margin: 0 0 10px 0;
}

.product-detail-division {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--scientific);
    margin-bottom: 5px;
    text-transform: uppercase;
}

.product-detail-brand {
    display: block;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.product-detail-short-description {
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--detail-border);
}

.product-detail-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 30px;
}
.product-detail-price-label {
    font-size: 1.2rem;
    color: var(--text-light);
    font-weight: 500;
}
.product-detail-price-value {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--hero-red);
}

.product-detail-action-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.product-detail-action-buttons .btn {
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 6px;
    text-transform: uppercase;
}

.product-detail-primary-action {
    background-color: var(--hero-red);
    color: white;
    box-shadow: 0 4px 10px rgba(168, 0, 0, 0.2);
}
.product-detail-primary-action:hover {
    background-color: #900;
}

.product-detail-secondary-action {
    background-color: transparent;
    border: 2px solid var(--accent-blue);
    color: var(--accent-blue);
}
.product-detail-secondary-action:hover {
    background-color: var(--accent-blue);
    color: white;
}

.product-detail-key-features h3 {
    font-size: 1.4rem;
    color: var(--accent-blue);
    margin-bottom: 15px;
    border-bottom: 2px solid #ccc;
    padding-bottom: 5px;
}

.product-detail-key-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.product-detail-key-features ul li {
    font-size: 0.95rem;
    color: var(--dark);
}
.product-detail-key-features ul li i {
    color: var(--hero-red);
    margin-right: 8px;
}

/* Product Info Tabs */
.product-detail-tabs-section {
    margin-bottom: 50px;
}
.product-detail-tabs-nav {
    display: flex;
    border-bottom: 2px solid var(--detail-border);
    margin-bottom: 20px;
}

.product-detail-tab-button {
    background: transparent;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    top: 2px;
}

.product-detail-tab-button:hover {
    color: var(--dark);
}

.product-detail-tab-button.active {
    color: var(--hero-red);
    border-bottom: 3px solid var(--hero-red);
}

.product-detail-tabs-content .product-detail-tab-pane {
    display: none;
    padding: 15px 0;
    line-height: 1.7;
    color: var(--text-dark);
}

.product-detail-tabs-content .product-detail-tab-pane.active {
    display: block;
}

.product-detail-tabs-content h4 {
    color: var(--accent-blue);
    margin-top: 10px;
    margin-bottom: 15px;
}

.product-detail-tabs-content table {
    width: 100%;
    border-collapse: collapse;
}

.product-detail-tabs-content table th, .product-detail-tabs-content table td {
    padding: 12px 15px;
    border: 1px solid var(--detail-border);
    text-align: left;
    font-size: 0.95rem;
}
.product-detail-tabs-content table th {
    background-color: var(--panel-bg);
    font-weight: 700;
    color: var(--dark);
    width: 30%;
}

.product-detail-tabs-content ul {
    list-style: none;
    padding: 0;
}

.product-detail-tabs-content ul li a {
    display: block;
    padding: 10px 0;
    border-bottom: 1px dashed var(--detail-border);
    color: var(--accent-blue);
    transition: color 0.3s;
}
.product-detail-tabs-content ul li a:hover {
    color: var(--hero-red);
}
.product-detail-tabs-content ul li a i {
    margin-right: 10px;
}


/* Related Products Section */
.product-detail-related-products h2 {
    font-size: 1.8rem;
    color: var(--dark);
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--hero-red);
    display: inline-block;
}

.product-detail-related-grid {
    /* تستخدم أيضاً product-grid الأصلية لضمان التنسيق Grid */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* Mobile Adjustments for Detail Page */
@media (max-width: 992px) {
    .product-detail-main-info {
        flex-direction: column;
        gap: 30px;
    }
    .product-detail-gallery {
        flex: auto;
        max-width: 100%;
    }
    .product-detail-main-image {
        height: 300px;
    }
    .product-detail-action-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .product-detail-key-features ul {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .product-detail-details-panel h1 {
        font-size: 1.8rem;
    }
    .product-detail-main-image {
        height: 200px;
    }
    .product-detail-tabs-nav {
        flex-wrap: wrap;
        border-bottom: none;
    }
    .product-detail-tab-button {
        flex-basis: 50%;
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}


.page-content {
    background-color: #f0f2f5; /* Light gray background */
    padding: 60px 0;
    direction: ltr; /* Ensure Left-to-Right layout */
}

.timeline-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-intro-header {
    text-align: center;
    margin-bottom: 50px;
}
.main-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #1A1A2E;
    margin-bottom: 5px;
}
.subtitle {
    font-size: 1.2rem;
    color: #6c757d;
}

/* Filter Tabs */
.filter-tabs-modern {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}
.filter-tab {
    padding: 10px 25px;
    border: none;
    background-color: #fff;
    color: #495057;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}
.filter-tab.active {
    background-color: #00ADB5;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 173, 181, 0.4);
}
.filter-tab:hover:not(.active) {
    background-color: #e9ecef;
}

/* Timeline Core Structure */
.events-timeline {
    position: relative;
    padding: 20px 0;
}

/* Vertical Line */
.events-timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: #ced4da;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
    z-index: 1;
}

/* Single Event Container */
.timeline-event-card {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    margin-bottom: 20px;
}

/* Circle Marker on the timeline */
.timeline-event-card::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: -10px; /* Adjusted for LTR */
    background-color: #fff;
    border: 4px solid #00ADB5; /* Scientific color as primary */
    top: 30px;
    border-radius: 50%;
    z-index: 2;
}
.timeline-event-card.electronic::after { border-color: #FFC300; }
.timeline-event-card.medical::after { border-color: #FF5733; }


/* Positioning Left/Right */
.left-side {
    left: 0;
    padding-right: 40px;
    padding-left: 90px;
}
.right-side {
    left: 50%;
    padding-left: 40px;
    padding-right: 90px;
}

/* Arrow pointer */
.left-side::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 34px;
    width: 0;
    z-index: 1;
    left: 70px; /* Adjusted for LTR */
    border: medium solid white;
    border-width: 10px 10px 10px 0;
    border-color: transparent white transparent transparent;
}
.right-side::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 34px;
    width: 0;
    z-index: 1;
    right: 70px; /* Adjusted for LTR */
    border: medium solid white;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent white;
}
/* Fix marker position for right side */
.right-side::after {
    right: -7px;
    left: auto;
}


/* Content Box */
.timeline-content {
    padding: 20px;
    background-color: #fff;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    min-height: 180px;
}
.timeline-content:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.event-date-mobile {
    display: none;
    font-size: 0.9rem;
    color: #00ADB5;
    margin-bottom: 5px;
    font-weight: 700;
}

h3.event-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #1A1A2E;
}

.event-meta {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 15px;
}

.event-description {
    font-size: 1rem;
    color: #495057;
    margin-bottom: 15px;
}

/* Content Type Tags for prominence */
.content-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}
.gallery-tag { background-color: #00ADB5; }
.video-tag { background-color: #FF5733; }
.report-tag { background-color: #FFC300; }
.upcoming-tag { background-color: #6c757d; }


/* Call to Action Button */
.timeline-cta-btn {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    transition: background-color 0.3s;
    color: #fff;
}
.scientific-bg { background-color: #00ADB5; }
.electronic-bg { background-color: #FFC300; color: #1A1A2E; }
.medical-bg { background-color: #FF5733; }
.scientific-bg:hover { background-color: #008C94; }
.electronic-bg:hover { background-color: #E6B000; }
.medical-bg:hover { background-color: #E64C2E; }

/* Responsive adjustments for mobile */
@media screen and (max-width: 768px) {
    .events-timeline::after {
        left: 31px; /* Vertical line remains on the left */
        margin-left: 0;
    }

    .timeline-event-card {
        width: 100%;
        padding-left: 70px;
        padding-right: 20px;
        left: 0 !important;
    }

    /* Fix marker position for all cards on mobile */
    .timeline-event-card::after {
        left: 21px !important;
        right: auto !important;
    }

    /* Remove arrow pointers on mobile */
    .timeline-event-card::before {
        display: none;
    }

    /* Show date prominently on mobile */
    .event-date-mobile {
        display: block;
    }

    .right-side {
        padding-left: 70px;
    }
}


/* Modal Styles (Pop-up Screen) */
.event-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
}

.event-modal-content {
    background: #fff;
    border-radius: 10px;
    max-width: 90%;
    max-height: 90vh;
    width: 800px;
    position: relative;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
    padding: 20px;
    overflow-y: auto;
}

.event-modal-close-btn {
    position: sticky;
    top: 0;
    right: 0;
    float: right;
    background: #FF0000;
    color: white;
    border: none;
    font-size: 1.5rem;
    padding: 5px 10px;
    border-radius: 50%;
    cursor: pointer;
    line-height: 1;
    z-index: 2010;
}

.video-responsive {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}
.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}
.gallery-image-display img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.gallery-controls-modal {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}
.gallery-nav-btn {
    background-color: #00ADB5;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}



.product-page-layout {
  display: flex;
  align-items: flex-start; /* يخلي الأعمدة تبدأ من الأعلى فقط */
  gap: 20px; /* مسافة بسيطة بين الفلتر والمنتجات */
}

.product-filter-sidebar {
  width: 270px;
  flex-shrink: 0;
  align-self: flex-start; /* أهم سطر – يخلي الفلتر ياخد حجم محتواه فقط */
  border-radius: 16px;
  border: 2px solid #d6d6d6;
  padding: 25px 20px;
  font-family: "Poppins", Arial, sans-serif;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  overflow: hidden;
  background-color: #f5f5f5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cpattern id='arabicmix' patternUnits='userSpaceOnUse' width='60' height='60'%3E%3Cpath d='M30 0 L37 15 L60 15 L42 30 L50 50 L30 37 L10 50 L18 30 L0 15 L23 15 Z' fill='none' stroke='%23bfbfbf' stroke-width='0.7' stroke-opacity='0.25'/%3E%3Ccircle cx='30' cy='30' r='5' fill='none' stroke='%23bfbfbf' stroke-width='0.6' stroke-opacity='0.2'/%3E%3Cpolygon points='15,15 45,15 30,45' fill='none' stroke='%23bfbfbf' stroke-width='0.6' stroke-opacity='0.2'/%3E%3Crect x='10' y='10' width='40' height='40' fill='none' stroke='%23bfbfbf' stroke-width='0.5' stroke-opacity='0.15'/%3E%3C/pattern%3E%3Crect width='100%25' height='100%25' fill='url(%23arabicmix)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 100px 100px;
  color: #222;
}

.swiper {
    /* تصغير حجم السلايدر */
    width: 100%; /* يمكنك تعديل هذه القيمة حسب ما تراه مناسبًا */
    height: 450px; /* يمكنك تعديل هذه القيمة حسب ما تراه مناسبًا */
    /* إضافة حواف مستديرة لعدم جعلها حادة */
    border-radius: 15px; /* يمكنك زيادة/تقليل هذه القيمة */
    /* لضمان أن الحواف المستديرة تظهر بشكل صحيح على المحتوى الزائد */
    overflow: hidden;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    background: #444;
    display: flex;
    justify-content: center;
    align-items: center;
    /* الحواف المستديرة ستأتي من .swiper لكن يمكن تطبيقها هنا لضمان إضافي */
    border-radius: 15px;
}

.swiper-slide img {
    display: block;
    /* تأكد من أن الصور تغطي حجم الشريحة بالكامل (سترتش) */
    width: 100%;
    height: 100%;
    /* object-fit: cover هي التي تجعل الصورة تملأ الشريحة مع الحفاظ على الأبعاد */
    object-fit: fill;
}

.autoplay-progress {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 10;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--swiper-theme-color);
}

.autoplay-progress svg {
    --progress: 0;
    position: absolute;
    left: 0;
    top: 0px;
    z-index: 10;
    width: 100%;
    height: 100%;
    stroke-width: 4px;
    stroke: var(--swiper-theme-color);
    fill: none;
    stroke-dashoffset: calc(125.6px * (1 - var(--progress)));
    stroke-dasharray: 125.6;
    transform: rotate(-90deg);
}
.page .container {
  max-width: 1400px; /* لتوسيع عرض الصفحة ليتناسب مع تصميم التجارة الإلكترونية */
  margin: 0 auto;
  padding: 0;
} /* cite: uploaded:style12.css */

.product-page-layout {
  display: flex; /* لتقسيم الصفحة إلى عمودين: فلتر وقائمة منتجات */
  gap: 30px;
  margin-top: 30px;
} /* cite: uploaded:style12.css */

.product-filter-sidebar {
  width: 270px;
  position: relative;
  border-radius: 16px;
  border: 2px solid #d6d6d6;
  padding: 25px 20px;
  font-family: "Poppins", Arial, sans-serif;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  overflow: hidden;
  background-color: #f5f5f5;
  /* (كود background-image طويل تم حذفه هنا للاختصار) */
  background-repeat: repeat;
  background-size: 100px 100px;
  color: #222;
  display: inline-block;
  vertical-align: top;
} /* cite: uploaded:style12.css */

/* عنوان الفلاتر */
.filter-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #A80000; /* متغير --hero-red */
  border-left: 6px solid #A80000;
  padding-left: 12px;
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
} /* cite: uploaded:style12.css */

/* مجموعات الفلاتر (Category, Brand) */
.filter-group {
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid #d5d5d5;
} /* cite: uploaded:style12.css */

/* شكل العناصر القابلة للاختيار */
.filter-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.9);
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 8px;
  cursor: pointer;
  color: #333;
  transition: all 0.25s ease;
  position: relative;
} /* cite: uploaded:style12.css */

.filter-group label:hover {
  background: #fff8f2;
  border-color: #A80000;
  box-shadow: inset 0 0 4px rgba(168,0,0,0.15);
  color: #A80000;
  transform: translateX(3px);
} /* cite: uploaded:style12.css */

/* زر تطبيق الفلتر */
.apply-filter-btn {
  display: block;
  width: 100%;
  padding: 11px 0;
  background: linear-gradient(135deg, #0C2D57 0%, #3A6D8C 100%);
  color: white;
  border-radius: 10px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
  letter-spacing: 0.5px;
} /* cite: uploaded:style12.css */
.product-listing-area {
  flex: 1; /* لجعل هذه المنطقة تستهلك المساحة المتبقية */
} /* cite: uploaded:style12.css */

.product-grid {
  display: grid;
  /* شبكة تستخدم أعمدة قابلة للتكيف، بحيث لا يقل عرض العمود عن 220 بكسل */
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
} /* cite: uploaded:style12.css */
//* ==================== ENHANCED PRODUCT CARD STYLE ==================== */
.product-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
  text-align: center;
  position: relative;
  border: 1px solid #e0e0e0;
} /* cite: uploaded:style12.css */

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border-color: #bcbcbc;
} /* cite: uploaded:style12.css */

/* ⬅️ 1. حاوية الصورة - تم التعديل لتصبح 150x150 بكسل (الحد الأقصى) */
.product-card .img-container {
  height: 150px; /* القيمة الجديدة: الارتفاع الأقصى */
  max-width: 150px; /* القيمة الجديدة: العرض الأقصى */
  margin: 0 auto; /* لتوسيط الحاوية داخل البطاقة */

  background: linear-gradient(180deg, #fafafa, #f2f2f2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  transition: all 0.3s ease;
} /* cite: uploaded:style12.css */

/* ⬅️ 2. تنسيق الرابط - مهم لضمان أن الصورة تلتزم بحدود الـ 150x150 */
.product-card .img-container a {
  display: block; /* ليرث الأبعاد */
  width: 100%;    /* يملأ الـ 150 بكسل عرضاً */
  height: 100%;   /* يملأ الـ 150 بكسل ارتفاعاً */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ⬅️ 3. عنصر الصورة - يضمن التصغير التلقائي */
.product-card .img-container img {
  max-width: 100%;  /* لن تتجاوز 150 بكسل عرضاً */
  max-height: 100%; /* لن تتجاوز 150 بكسل ارتفاعاً */
  object-fit: contain; /* يضمن تصغير الصور الكبيرة مع الحفاظ على الأبعاد */
  transition: transform 0.5s ease;
} /* cite: uploaded:style12.css */

.product-card:hover .img-container img {
  transform: scale(1.08);
} /* cite: uploaded:style12.css */

/* تنسيقات شعار الماركة */
.brand-logo-overlay {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.85);
  padding: 5px;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  line-height: 0;
  z-index: 5;
} /* cite: uploaded:style12.css */

.product-card .brand-logo {
  width: 50px;
  height: auto;
  max-height: 50px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  opacity: 0.9;
  transition: transform 0.3s ease, opacity 0.3s ease;
} /* cite: uploaded:style12.css */

/* تنسيقات اسم المنتج */
.product-card h3 {
  font-size: 1.0rem;
  color: #222;
  font-weight: 700;
  margin: 8px 0 10px;
  line-height: 1.3em;
  min-height: 2.6em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding: 0 15px;
} /* cite: uploaded:style12.css */

/* تنسيقات السعر/طلب التسعير */
.product-card .price {
  background: #ffebee;
  color: #a80000;
  font-weight: 800;
  font-size: 0.9rem;
  border-radius: 8px;
  padding: 6px 12px;
  display: inline-block;
  margin: 10px auto 15px;
} /* cite: uploaded:style12.css */

/* تنسيقات زر "View Details" */
.product-card .view-details-btn {
  display: block;
  width: 100%;
  padding: 10px 0;
  background: #0C2D57;
  color: white;
  font-weight: 700;
  text-transform: uppercase;
  transition: background 0.3s ease, transform 0.2s ease;
  margin-top: auto;
  border-radius: 0;
} /* cite: uploaded:style12.css */

.product-card .view-details-btn:hover {
  background: #143e6c;
} /* cite: uploaded:style12.css */

/* تنسيقات زر "Request Quote" */
.product-card .request-btn {
  margin-top: auto;
  display: block;
  width: 100%;
  padding: 10px 0;
  background: linear-gradient(135deg, #a80000, #d32f2f);
  color: white;
  font-weight: 700;
  border-radius: 0 0 12px 12px;
  text-transform: uppercase;
  transition: background 0.3s ease, transform 0.2s ease;
} /* cite: uploaded:style12.css */

.product-card .request-btn:hover {
  background: linear-gradient(135deg, #d32f2f, #ff5555);
  transform: scale(1.03);
} /* cite: uploaded:style12.css */



/* style12.css - النسخة المعدلة لضبط الكروت */

.product-page-layout {
    display: flex;
    gap: 30px;
    padding: 20px 0;
}

.product-filter-sidebar {
    flex: 0 0 300px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    height: fit-content;
}

/* التعديل الجوهري هنا لمنع فرش الكارت */
.product-grid {
    display: grid !important; /* تحويل من flex إلى grid */
    /* توزيع الأعمدة: الحد الأدنى للكارت 280px والحد الأقصى 320px */
    grid-template-columns: repeat(auto-fill, minmax(280px, 320px));
    gap: 25px;
    justify-content: start; /* الكروت تبدأ من اليسار ولا تتمدد */
    padding: 20px 0;
    flex: 1;
}

.product-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    /* إلغاء خاصية النمو التي تسبب التمدد */
    flex: none !important;
    width: 100% !important;
    max-width: 320px;
    margin: 0 !important;
}

.product-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.product-card .img-container {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.product-card .img-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-card h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 10px;
    min-height: 2.4em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card .price {
    font-weight: bold;
    color: #b12704;
    margin-bottom: 15px;
}

.view-details-btn {
    display: block;
    text-align: center;
    padding: 10px;
    background: #003366;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    margin-bottom: 8px;
}

.request-btn {
    display: block;
    text-align: center;
    padding: 10px;
    background: #cc0000;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
}

/* تجاوب الشاشة للموبايل */
@media (max-width: 768px) {
    .product-page-layout {
        flex-direction: column;
    }
    .product-filter-sidebar {
        flex: none;
        width: 100%;
    }
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        justify-content: center;
    }
}



/* الحاوية الأساسية للمنتجات */
.product-listing-area {
    flex: 1;
    min-width: 0;
    padding: 0 15px;
}

/* الشبكة (Grid) - الإعداد الافتراضي 3 أعمدة */
.product-grid {
    display: grid !important;
    /* تقسيم المساحة لـ 3 أعمدة متساوية تماماً */
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 25px !important; /* مسافة واضحة تمنع التداخل */
    width: 100%;
    align-items: stretch;
}

/* عند إغلاق القائمة الجانبية - يتحول لـ 4 أعمدة */
.sidebar-closed .product-grid {
    grid-template-columns: repeat(4, 1fr) !important;
}

/* الكارت نفسه - نلغي أي عرض ثابت */
.product-card {
    width: 100% !important; /* بياخد عرض العمود المتاح له فقط */
    max-width: 100% !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100%;
    background: #fff;
    border: 1px solid #eee;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

/* تثبيت منطقة الصورة عشان الكروت متخبطش في بعضها بالطول */
.product-card .img-container {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.product-card .img-container img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

/* استجابة الشاشة للموبايل والتابلت */
@media (max-width: 992px) {
    .product-grid, .sidebar-closed .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 576px) {
    .product-grid, .sidebar-closed .product-grid {
        grid-template-columns: 1fr !important;
    }
}
/* 1. الحاوية اللي شايلة السايد بار والمنتجات */
.product-page-layout {
    display: flex !important;
    gap: 30px !important;
    align-items: flex-start;
}

/* 2. منطقة القائمة الجانبية */
.product-filter-sidebar {
    width: 280px !important;
    flex-shrink: 0 !important;
}

/* 3. منطقة عرض المنتجات */
.product-listing-area {
    flex-grow: 1 !important;
    min-width: 0 !important; /* مهم جداً لمنع التداخل */
}

/* 4. الشبكة (Grid) - 3 أعمدة */
.product-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px !important;
    width: 100% !important;
}

/* 5. الحالة لما نقفل السايد بار - 4 أعمدة */
.sidebar-closed .product-grid {
    grid-template-columns: repeat(4, 1fr) !important;
}

/* 6. الكارت نفسه (إصلاح التداخل الصغير) */
.product-card {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    background: #fff;
    border: 1px solid #ddd;
    box-sizing: border-box !important;
    position: relative !important;
    height: 100%;
}

/* تثبيت منطقة الصورة عشان الكروت متخبطش في بعض */
.product-card .img-container {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* --- قسم شركاء النجاح (Marquee Section) --- */

.Scientific-section-partnerships-marquee {
    padding: 40px 0;
    background-color: #fff;
    overflow: hidden;
}

.Scientific-section-partnerships-marquee h2 {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    margin-bottom: 30px;
    color: #333;
}

/* الحاوية الخارجية التي تخفي الأجزاء الخارجة */
.Scientific-marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

/* المحتوى الذي يتحرك (الشريط) */
.Scientific-marquee-content {
    display: flex; /* استخدام Flex لجعل العناصر بجانب بعضها */
    width: max-content; /* يجعل العرض يتناسب مع عدد الصور */
    animation: marquee-scroll 40s linear infinite; /* سرعة الحركة */
}

/* صندوق كل لوجو - لتوحيد المساحات */
.brand-item-wrapper {
    display: flex;
    align-items: center;    /* توسيط رأسي */
    justify-content: center; /* توسيط أفقي */
    width: 100px;           /* عرض ثابت لكل لوجو مهما كان حجمه */
    height: 50px;          /* ارتفاع ثابت لكل لوجو */
    margin: 0 30px;         /* مسافة بين الصناديق */
    flex-shrink: 0;         /* يمنع الصندوق من الانكماش */
}

/* تنسيق صورة اللوجو نفسها */
.Scientific-brand-logo-marquee {
    max-width: 100%;        /* لا تخرج عن عرض الصندوق */
    max-height: 80%;        /* لا تخرج عن ارتفاع الصندوق */
    width: auto;
    height: auto;
    object-fit: contain;    /* الحفاظ على الأبعاد بدون تمطيط */
    filter: grayscale(100%); /* لون رمادي كلاسيكي */
    opacity: 0.6;           /* شفافية بسيطة */
    transition: all 0.4s ease;
}

/* تأثير عند مرور الماوس على اللوجو */
.brand-item-wrapper:hover .Scientific-brand-logo-marquee {
    filter: grayscale(0%);  /* يظهر اللون الأصلي */
    opacity: 1;             /* يظهر بوضوح كامل */
    transform: scale(1.1);  /* تكبير بسيط */
}

/* إيقاف الحركة عند الوقوف بالماوس */
.Scientific-marquee-container:hover .Scientific-marquee-content {
    animation-play-state: paused;
}

/* تعريف حركة الشريط من اليمين لليسار */
@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%); /* يتحرك بمقدار نصف طول المحتوى المكرر */
    }
}

/* --- تحسينات للتجاوب مع الشاشات الصغيرة --- */
@media (max-width: 768px) {
    .brand-item-wrapper {
        width: 150px;
        height: 70px;
        margin: 0 15px;
    }
    .Scientific-section-partnerships-marquee h2 {
        font-size: 18px;
    }
}
/* الحاوية الرئيسية */
.alsanie-header {
    display: flex;
    align-items: center;
    padding: 10px 40px;
    background: #fff;
    gap: 15px; /* تقليل المسافة بين اللوجو والسيرش والأزرار */
    border-bottom: 1px solid #eee;
}

/* ضبط اللوجو ليكون كبيراً ولا يزاحم الآخرين */
.logo-box {
    flex-shrink: 0;
}
.logo-box img {
    height: 80px;
    width: auto;
}

/* جعل السيرش يأخذ كل المساحة المتاحة (يكون طويلاً) */
.search-main-container {
    flex-grow: 1; /* التمدد لملء الفراغ */
    display: flex;
}

/* الكبسولة المدمجة (Rounded Capsule) */
.search-capsule {
    display: flex;
    align-items: center;
    width: 100%;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 50px; /* حواف دائرية انسيابية */
    padding: 3px;
    transition: 0.3s;
}

.search-capsule:focus-within {
    background: #fff;
    border-color: #dc3545;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* جزء حقل النص */
.search-input-part {
    flex: 2; /* إعطاء مساحة أكبر للكتابة */
    display: flex;
    align-items: center;
    padding-left: 15px;
}
.search-input-part i { color: #888; margin-right: 10px; }
.search-input-part input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    height: 40px;
    font-size: 14px;
}

/* جزء القوائم (متقاربة جداً) */
.search-selects-part {
    display: flex;
    gap: 5px;
    padding: 0 10px;
    border-left: 1px solid #eee;
}
.search-selects-part select {
    border: none;
    background: #eee;
    border-radius: 20px;
    padding: 0 12px;
    height: 35px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
}

/* زر البحث داخل الكبسولة */
.inner-search-btn {
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 0 25px;
    height: 40px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

/* أزرار الأكشن (Login & Quote) */
.header-actions {
    display: flex;
    gap: 8px; /* تقليل المسافة بين الزرين */
    flex-shrink: 0;
}
.action-btn {
    border-radius: 50px;
    padding: 0 18px;
    height: 45px;
    font-weight: 700;
    font-size: 13px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}
.action-btn.login { background: #dc3545; color: #fff; }
.action-btn.quote { background: #dc3545; color: #fff; }

.action-btn:hover { opacity: 0.9; transform: translateY(-1px); }

/* تنسيق الكبسولة الموحدة */
.search-capsule {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 50px; /* جعلها كبسولة */
    padding: 2px 5px 2px 15px;
    max-width: 850px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.search-capsule:focus-within {
    border-color: #A80000;
    box-shadow: 0 0 8px rgba(168, 0, 0, 0.1);
}

.search-main-input {
    display: flex;
    align-items: center;
    flex: 1;
}

.search-main-input i { color: #888; margin-right: 10px; }

.search-main-input input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    height: 40px;
    font-size: 14px;
}

.search-filters-capsule {
    display: flex;
    gap: 5px;
    padding: 0 10px;
    border-left: 1px solid #eee;
}

.search-filters-capsule select {
    border: none;
    background: #fff;
    border-radius: 20px;
    height: 32px;
    font-size: 11px;
    font-weight: 600;
    color: #444;
    cursor: pointer;
    padding: 0 8px;
    min-width: 110px;
}

.search-btn-submit {
    background: #A80000;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0 25px;
    height: 40px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    text-transform: uppercase;
}
