main.search {
  /* direction: rtl; */
  padding: 15px 20px;
  background-color: #f7f7f7;
  font-family: sans-serif;
}

/* شريط معلومات البحث */
.search-header-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  padding: 10px 15px;
  border-bottom: 1px solid #ddd;
  margin-bottom: 15px;
}

.query-highlight {
  font-weight: bold;
  color: #c45500;
}

/* التنسيق العام للـ Container */
.search-container {
  display: flex;
  gap: 20px;
}

/* القائمة الجانبية */
.search-sidebar {
  width: 220px;
  background: #fff;
  padding: 15px;
  border: 1px solid #e7e7e7;
  border-radius: 4px;
  flex-shrink: 0;
}

.search-sidebar h3 {
  font-size: 14px;
  margin-bottom: 8px;
  color: #333;
}

.filter-list, .rating-filters {
  list-style: none;
  padding: 0;
  margin: 0;
}

.filter-list li a, .rating-filters li a {
  text-decoration: none;
  color: #111;
  font-size: 13px;
  display: block;
  padding: 4px 0;
}

.filter-list li a:hover {
  color: #e47911;
}

.sidebar-divider {
  border: 0;
  border-top: 1px solid #ddd;
  margin: 12px 0;
}

.price-range {
  display: flex;
  align-items: center;
  gap: 5px;
}

.price-range input {
  width: 50px;
  padding: 4px;
  border: 1px solid #ccc;
  border-radius: 3px;
}

.price-range button {
  padding: 4px 8px;
  background: #f0c14b;
  border: 1px solid #a88734;
  border-radius: 3px;
  cursor: pointer;
}

/* شبكة المنتجات (نتائج البحث) */
.search-results-grid {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* كارت المنتج النمطي في البحث */
.search-product-card {
  display: flex;
  background: #fff;
  border: 1px solid #e7e7e7;
  border-radius: 4px;
  padding: 15px;
  gap: 15px;
  transition: box-shadow 0.2s ease;
}

.search-product-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.card-img-wrapper {
  width: 180px;
  height: 180px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.card-details {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.prod-title {
  font-size: 16px;
  color: #0f1111;
  margin: 0;
  line-height: 1.3;
}

.rating-row {
  color: #ffa41c;
  font-size: 13px;
}

.review-count {
  color: #007185;
  margin-inline-start: 5px;
}

.price-row {
  font-size: 20px;
  font-weight: bold;
  color: #0f1111;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.price-row sup {
  font-size: 11px;
}

.old-price {
  font-size: 12px;
  color: #565959;
  text-decoration: line-through;
  margin-inline-start: 8px;
}

.discount-badge {
  background: #cc0c39;
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  width: fit-content;
  border-radius: 2px;
}

.stock-warning {
  color: #b12704;
  font-size: 12px;
  margin: 0;
}

.add-to-cart-btn {
  width: fit-content;
  background: #ffd814;
  border: 1px solid #fcd200;
  border-radius: 20px;
  padding: 6px 15px;
  cursor: pointer;
  margin-top: auto;
  font-size: 13px;
}

.add-to-cart-btn:hover {
  background: #f7ca00;
}

/* حالة عدم وجود نتائج */
.no-results {
  background: #fff;
  padding: 40px;
  text-align: center;
  border-radius: 4px;
}



.search-container .aside{
    width: 200px;
}
.header-for-phone,.footer-mobile{
  display: none;
}
@media (max-width: 768px) {
  .header-for-phone, .footer-mobile {
    display: block;
  }
}