/* Mashaer catalog — products + category pages (match /Search) */

.mashaer-catalog {
  width: 100%;
  max-width: 1280px;
  margin:10px auto;
  padding: 0 16px 40px;
  box-sizing: border-box;
  color: #3b2b22;
}

@media (min-width: 640px) {
  .mashaer-catalog { padding-left: 24px; padding-right: 24px; }
}

@media (min-width: 1024px) {
  .mashaer-catalog { padding-left: 32px; padding-right: 32px; }
}

.mashaer-catalog__title {
  margin: 0 0 40px;
  text-align: center;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  color: #3b2b22;
}

@media (min-width: 768px) {
  .mashaer-catalog__title { font-size: 36px; }
}

.mashaer-catalog__search {
  display: flex;
  gap: 8px;
  max-width: 50rem;
  margin: 0 auto 40px;
}

.mashaer-catalog__search-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 50px;
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
  padding: 12px 20px;
  font-size: 16px;
  font-family: inherit;
  color: #3b2b22;
  background: #fff;
  outline: none;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.mashaer-catalog__search-input:focus {
  border-color: #1a2f26;
  box-shadow: 0 0 0 2px rgba(26, 47, 38, 0.25);
}

.mashaer-catalog__search-btn {
  flex: 0 0 auto;
  height: 50px;
  padding: 0 24px;
  border: 0;
  border-radius: 9999px;
  background: #1a2f26;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.2s, background 0.2s;
}

.mashaer-catalog__search-btn:hover {
  opacity: 0.9;
}

.mashaer-catalog__layout {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media (min-width: 768px) {
  .mashaer-catalog__layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 32px;
  }
}

.mashaer-catalog__aside {
  width: 100%;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .mashaer-catalog__aside {
    width: 240px;
  }
}

.mashaer-catalog__filters {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px;
}

.mashaer-catalog__filters-title {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 700;
  color: #3b2b22;
}

.mashaer-catalog__chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
}

.mashaer-catalog__chip {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  contain: layout;
  min-height: 38px;
  border-radius: 9999px;
  border: 1px solid #ece3d2;
  background: #faf6ef;
  color: #3b2b22;
  padding: 8px 16px;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  line-height: 1.3;
}

.mashaer-catalog__chip:hover {
  border-color: #1a2f26;
  color: #1a2f26;
}

.mashaer-catalog__chip.is-active {
  border-color: #1a2f26;
  background: #1a2f26;
  color: #fff;
}

.mashaer-catalog__main {
  flex: 1 1 0;
  min-width: 0;
}

.mashaer-catalog__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}

@media (min-width: 640px) {
  .mashaer-catalog__grid { gap: 24px; }
}

@media (min-width: 768px) {
  .mashaer-catalog__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1280px) {
  .mashaer-catalog__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.mashaer-catalog__empty {
  text-align: center;
  padding: 48px 16px;
  color: #6f6a61;
}

.mashaer-catalog__empty .material-symbols-outlined {
  font-size: 40px;
  color: #cbb9a4;
  display: block;
  margin-bottom: 12px;
}

/* Pagination restyle inside catalog */
.mashaer-catalog .pagination,
.mashaer-catalog #product-pagination {
  display: flex;
  justify-content: center;
  margin: 0 0 24px;
}

.mashaer-catalog .page-link {
  border-radius: 9999px !important;
  margin: 0 4px;
  color: #3b2b22 !important;
  border-color: #ece3d2 !important;
}

.mashaer-catalog .page-item.active .page-link {
  background: #1a2f26 !important;
  border-color: #1a2f26 !important;
  color: #fff !important;
}

/* Hide legacy breadcrumb/filter chrome when using catalog shell */
.mashaer-catalog ~ .breadcrumb-section,
.mashaer-catalog .products-filter {
  display: none !important;
}
