.sidebar {
  width: 240px;
  background: var(--main-light, #fff);
  border-radius: 14px;
  box-shadow: 0 2px 10px #1a234011;
  padding: 28px 18px 18px 18px;
  margin: 57px 30px 0 0;
  min-width: 180px;
  max-height: 700px;
  position: sticky;
  top: var(--navbar-height, 90px);
  align-self: flex-start;
  transition: box-shadow 0.2s;
  display: block;
  /* إظهار الـ sidebar على الديسكتوب */
}

.sidebar h3 {
  font-size: 1.15em;
  color: var(--main-navy, #1a2340);
  margin-bottom: 18px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.categories-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.categories-list li {
  margin-bottom: 12px;
  color: var(--main-dark, #222);
  cursor: pointer;
  padding: 7px 10px;
  border-radius: 7px;
  transition: background 0.15s, color 0.15s;
  font-weight: 600;
}

.categories-list li:hover {
  background: var(--main-blue, #2546bd);
  color: #fff;
}

/* Layout for main-content (sidebar + product) */
.main-content {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0;
  width: 100%;
  margin: 0 auto;
  max-width: 1200px;
}

/* إخفاء الـ sidebar على الشاشات الصغيرة (1024px وأقل) */
@media (max-width: 1024px) {
  .sidebar {
    display: none !important;
    /* إخفاء الـ sidebar تماماً */
  }

  .main-content {
    flex-direction: column;
    align-items: stretch;
  }
}

/* للشاشات الصغيرة جداً (الموبايل) */
@media (max-width: 600px) {
  .sidebar {
    display: none !important;
    /* التأكد من إخفاء الـ sidebar */
  }
}



/* -------------------------- */

.results-section {
  flex: 1;
}

.product-card.big-card {
  display: flex;
  gap: 25px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px #0002;
  padding: 18px;
  align-items: center;
  cursor: pointer;
  transition: box-shadow 0.2s;
  margin-bottom: 30px;
}

.product-card.big-card:hover {
  box-shadow: 0 4px 24px #0003;
}

.product-card.big-card img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  border-radius: 10px;
  background: #f3f3f3;
}

.product-info h2 {
  margin: 0 0 10px 0;
}

.product-info ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 0 0;
}

.product-info li {
  margin-bottom: 4px;
  color: #555;
}

.product-info button {
  margin-top: 12px;
  padding: 8px 20px;
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.search-bar-wrap {
  text-align: center;
  margin: 30px 0 10px 0;
}

#search-bar {
  width: 60%;
  padding: 10px;
  font-size: 1.1rem;
  border-radius: 5px;
  border: 1px solid #ccc;
}

#search-btn {
  padding: 10px 20px;
  font-size: 1.1rem;
  border-radius: 5px;
  border: none;
  background: #007bff;
  color: #fff;
  cursor: pointer;
  margin-left: 8px;
}

.not-found {
  background: #ffe0e0;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 30px;
}